Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 791aa609
authored
Feb 25, 2022
by
yy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
account
1 parent
60aece47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
98 deletions
src/views/account/index.vue
src/views/account/index.vue
View file @
791aa60
<
template
>
<
template
>
<div
class=
"scrm-main"
>
<div
class=
"scrm-main"
>
<div
<div
class=
"form-header"
v-if=
"$globalState.session.accountLevel == 1 && $globalState.session.merchantModel == 1"
>
class=
"form-header"
<GLButton
@
click=
"handleContact"
icon=
"el-icon-link"
fn=
"门店账户关联企微"
type=
"primary"
size=
"small"
mode=
"el-button"
>
门店账户关联企微
</GLButton>
v-if=
"$globalState.session.accountLevel == 1 && $globalState.session.merchantModel == 1"
>
<GLButton
@
click=
"handleContact"
icon=
"el-icon-link"
fn=
"门店账户关联企微"
type=
"primary"
size=
"small"
mode=
"el-button"
>
门店账户关联企微
</GLButton>
<!--
<el-button
type=
"primary"
@
click=
"handleContact"
size=
"small"
icon=
"el-icon-link"
<!--
<el-button
type=
"primary"
@
click=
"handleContact"
size=
"small"
icon=
"el-icon-link"
>
门店账户关联企微
</el-button
>
门店账户关联企微
</el-button
>
-->
>
-->
...
@@ -21,23 +11,12 @@
...
@@ -21,23 +11,12 @@
<el-row>
<el-row>
<el-form-item
size=
"small"
label=
"关联企微"
>
<el-form-item
size=
"small"
label=
"关联企微"
>
<el-select
v-model=
"searchForm.isRelevance"
placeholder=
"请选择"
>
<el-select
v-model=
"searchForm.isRelevance"
placeholder=
"请选择"
>
<el-option
<el-option
v-for=
"item in optionsContact"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
v-for=
"item in optionsContact"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
class=
"merchant-row"
size=
"small"
>
<el-form-item
class=
"merchant-row"
size=
"small"
>
<el-input
<el-input
size=
"small"
v-model=
"searchForm.merchantLoginAccount"
placeholder=
"请输入"
v-if=
"searchForm.accountOrPhone == 1"
>
size=
"small"
v-model=
"searchForm.merchantLoginAccount"
placeholder=
"请输入"
v-if=
"searchForm.accountOrPhone == 1"
>
<el-select
<el-select
class=
"merchant-row-input"
class=
"merchant-row-input"
size=
"small"
size=
"small"
v-model=
"searchForm.accountOrPhone"
v-model=
"searchForm.accountOrPhone"
...
@@ -52,14 +31,8 @@
...
@@ -52,14 +31,8 @@
<el-option
label=
"手机号"
:value=
"2"
></el-option>
<el-option
label=
"手机号"
:value=
"2"
></el-option>
</el-select>
</el-select>
</el-input>
</el-input>
<el-input
<el-input
size=
"small"
v-model=
"searchForm.merchantLegalPersonPhone"
placeholder=
"请输入"
v-if=
"searchForm.accountOrPhone == 2"
>
size=
"small"
v-model=
"searchForm.merchantLegalPersonPhone"
placeholder=
"请输入"
v-if=
"searchForm.accountOrPhone == 2"
>
<el-select
<el-select
class=
"merchant-row-input"
class=
"merchant-row-input"
size=
"small"
size=
"small"
v-model=
"searchForm.accountOrPhone"
v-model=
"searchForm.accountOrPhone"
...
@@ -77,95 +50,49 @@
...
@@ -77,95 +50,49 @@
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"账户状态"
>
<el-form-item
size=
"small"
label=
"账户状态"
>
<el-select
size=
"small"
v-model=
"searchForm.status"
placeholder=
"请选择"
>
<el-select
size=
"small"
v-model=
"searchForm.status"
placeholder=
"请选择"
>
<el-option
<el-option
v-for=
"item in merchantStatus"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
v-for=
"item in merchantStatus"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<el-row>
<el-row>
<el-form-item
size=
"small"
label=
"账户等级"
>
<el-form-item
size=
"small"
label=
"账户等级"
>
<el-select
size=
"small"
v-model=
"searchForm.merchantAccountLevel"
placeholder=
"请选择"
>
<el-select
size=
"small"
v-model=
"searchForm.merchantAccountLevel"
placeholder=
"请选择"
>
<el-option
<el-option
v-for=
"item in accountLevel"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
v-for=
"item in accountLevel"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
class=
"merchant-wx"
size=
"small"
>
<el-input
size=
"small"
v-model=
"searchForm.merchantName"
placeholder=
"请输入商户名称/关联的企业微信名"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
label=
"商户号"
>
<el-form-item
size=
"small"
label=
"商户号"
>
<el-input
<el-input
size=
"small"
class=
"merchant-num"
v-model=
"searchForm.merchantNo"
onkeyup=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入商户号,仅限11位"
maxlength=
"11"
></el-input>
size=
"small"
v-model=
"searchForm.merchantNo"
onkeyup=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入商户号,仅限11位"
maxlength=
"11"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
size=
"small"
label=
"上级商户号"
v-if=
"$globalState.session.accountLevel != 4"
>
size=
"small"
<el-input
size=
"small"
v-model=
"searchForm.parentMerchantNo"
onkeyup=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入上级商户号,仅限11位"
maxlength=
"11"
></el-input>
style=
"float: right; margin-right: 0px"
</el-form-item>
v-if=
"$globalState.session.accountLevel == 4"
<el-form-item
class=
"merchant-wx"
size=
"small"
v-if=
"$globalState.session.accountLevel == 4"
>
>
<el-input
size=
"small"
v-model=
"searchForm.merchantName"
placeholder=
"请输入商户名称/关联的企业微信名"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right; margin-right: 0px"
v-if=
"$globalState.session.accountLevel == 4"
>
<el-button
@
click=
"handleReset"
>
重置
</el-button>
<el-button
@
click=
"handleReset"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<el-row
v-if=
"$globalState.session.accountLevel != 4"
>
<el-row
v-if=
"$globalState.session.accountLevel != 4"
>
<el-form-item
size=
"small"
label=
"上级商户号"
>
<el-form-item
class=
"merchant-wx"
size=
"small"
>
<el-input
<el-input
size=
"small"
v-model=
"searchForm.merchantName"
placeholder=
"请输入商户名称/关联的企业微信名"
></el-input>
size=
"small"
v-model=
"searchForm.parentMerchantNo"
onkeyup=
"value=value.replace(/[^\d]/g,'')"
placeholder=
"请输入上级商户号,仅限11位"
maxlength=
"11"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
:size=
"size"
style=
"float: right; margin-right: 0px"
>
<el-form-item
:size=
"size"
style=
"float: right; margin-right: 0px"
>
<el-button
@
click=
"handleReset"
>
重置
</el-button>
<el-button
@
click=
"handleReset"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
<GLTable
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<div
slot=
"accountTypeNames"
slot-scope=
"scope"
>
<div
slot=
"accountTypeNames"
slot-scope=
"scope"
>
<div
<div
class=
"accountType-row"
v-for=
"(item, index) in scope.scope.accountTypeNames.split(',')"
:key=
"index"
>
{{
item
}}
</div>
class=
"accountType-row"
v-for=
"(item, index) in scope.scope.accountTypeNames.split(',')"
:key=
"index"
>
{{
item
}}
</div>
</div>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
type=
"text"
@
click=
"handleLook(scope.scope)"
fn=
"查看"
>
查看
</GLButton>
<GLButton
type=
"text"
@
click=
"handleLook(scope.scope)"
fn=
"查看"
>
查看
</GLButton>
<GLButton
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
fn=
"修改"
mode=
"el-button"
>
修改
</GLButton>
type=
"text"
<GLButton
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
fn=
"创建子商户/门店"
mode=
"el-button"
>
创建子商户/门店
</GLButton>
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
fn=
"修改"
mode=
"el-button"
>
修改
</GLButton>
<GLButton
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
fn=
"创建子商户/门店"
mode=
"el-button"
>
创建子商户/门店
</GLButton>
<!--
<el-button
type=
"text"
@
click=
"handleLook(scope.scope)"
>
查看
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleLook(scope.scope)"
>
查看
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
>
修改
</el-button>
<!--
<el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
v-if=
"$globalState.session.merchantId != scope.scope.merchantNo"
>
修改
</el-button>
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
>
创建子商户/门店
</el-button>
-->
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
v-if=
"scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
>
创建子商户/门店
</el-button>
-->
...
@@ -391,8 +318,8 @@ export default {
...
@@ -391,8 +318,8 @@ export default {
margin-left
:
20px
;
margin-left
:
20px
;
&-input
{
&-input
{
/deep/
{
/deep/
{
.el-input__inner
{
.el-input__inner
{
width
:
118px
!important
;
width
:
118px
!important
;
}
}
}
}
}
}
...
@@ -411,7 +338,14 @@ export default {
...
@@ -411,7 +338,14 @@ export default {
margin-left
:
20px
;
margin-left
:
20px
;
/deep/
{
/deep/
{
.el-input--small
.el-input__inner
{
.el-input--small
.el-input__inner
{
width
:
325px
;
width
:
285px
;
}
}
}
.merchant-num
{
/deep/
{
.el-input__inner
{
width
:
255px
!important
;
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment