Commit 791aa609 by yy

account

1 parent 60aece47
<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,24 +11,13 @@ ...@@ -21,24 +11,13 @@
<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"
@change=" @change="
...@@ -52,15 +31,9 @@ ...@@ -52,15 +31,9 @@
<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"
slot="prepend" slot="prepend"
...@@ -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" </el-form-item>
v-model="searchForm.merchantNo" <el-form-item size="small" label="上级商户号" v-if="$globalState.session.accountLevel != 4">
onkeyup="value=value.replace(/[^\d]/g,'')" <el-input size="small" v-model="searchForm.parentMerchantNo" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="请输入上级商户号,仅限11位" maxlength="11"></el-input>
placeholder="请输入商户号,仅限11位"
maxlength="11"
></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item class="merchant-wx" size="small" v-if="$globalState.session.accountLevel == 4">
size="small" <el-input size="small" v-model="searchForm.merchantName" placeholder="请输入商户名称/关联的企业微信名"></el-input>
style="float: right; margin-right: 0px" </el-form-item>
v-if="$globalState.session.accountLevel == 4" <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>-->
...@@ -327,7 +254,7 @@ export default { ...@@ -327,7 +254,7 @@ export default {
this.tableData = res.data this.tableData = res.data
this.tableTotal = res.count this.tableTotal = res.count
this.tableData.length ? (this.$refs.table.tableHeightValues = '') : this.$refs.table.setTableHeightFun() this.tableData.length ? (this.$refs.table.tableHeightValues = '') : this.$refs.table.setTableHeightFun()
// if (res.data && res.data.length == []) { // if (res.data && res.data.length == []) {
// this.$refs.table.setTableHeightFun() // this.$refs.table.setTableHeightFun()
...@@ -391,9 +318,9 @@ export default { ...@@ -391,9 +318,9 @@ export default {
margin-left: 20px; margin-left: 20px;
&-input { &-input {
/deep/ { /deep/ {
.el-input__inner { .el-input__inner {
width: 118px!important; width: 118px !important;
} }
} }
} }
/deep/ { /deep/ {
...@@ -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;
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!