Commit 4e2bf37b by 胡悦

添加重置

1 parent fdd05b09
...@@ -23,9 +23,10 @@ VueAMap.initAMapApiLoader({ ...@@ -23,9 +23,10 @@ VueAMap.initAMapApiLoader({
}); });
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$apis = apis Vue.prototype.$apis = apis
Vue.prototype.size = 'small'
start() start()
export { bootstrap, mount, unmount } export { bootstrap, mount, unmount }
from '@/setup' from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params) export const http_common = params => Vue.prototype.$http_common(params)
export const http_config = params => Vue.prototype.$http_config(params) export const http_config = params => Vue.prototype.$http_config(params)
......
<template> <template>
<div class="scrm-main"> <div class="scrm-main">
<div class="form-header" v-if="$globalState.session.accountLevel == 1 && $globalState.session.merchantModel == 1"> <div
<GLButton @click="handleContact" icon="el-icon-link" fn="门店账户关联企微" type="primary" size="small" mode="el-button">门店账户关联企微</GLButton> class="form-header"
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
> --> >-->
</div> </div>
<div class="follow-form"> <div class="follow-form">
<el-form :inline="true" :model="searchForm" class="follow-form-item" label-width="90px"> <el-form :inline="true" :model="searchForm" class="follow-form-item" label-width="90px">
<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 v-for="item in optionsContact" :key="item.value" :label="item.label" :value="item.value"></el-option> <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 size="small" v-model="searchForm.merchantLoginAccount" placeholder="请输入" v-if="searchForm.accountOrPhone == 1"> <el-input
size="small"
v-model="searchForm.merchantLoginAccount"
placeholder="请输入"
v-if="searchForm.accountOrPhone == 1"
>
<el-select <el-select
class="merchant-row-input"
size="small" size="small"
v-model="searchForm.accountOrPhone" v-model="searchForm.accountOrPhone"
@change=" @change="
...@@ -30,8 +52,15 @@ ...@@ -30,8 +52,15 @@
<el-option label="手机号" :value="2"></el-option> <el-option label="手机号" :value="2"></el-option>
</el-select> </el-select>
</el-input> </el-input>
<el-input size="small" v-model="searchForm.merchantLegalPersonPhone" placeholder="请输入" v-if="searchForm.accountOrPhone == 2"> <el-input
size="small"
v-model="searchForm.merchantLegalPersonPhone"
placeholder="请输入"
v-if="searchForm.accountOrPhone == 2"
>
<el-select <el-select
class="merchant-row-input"
size="small" size="small"
v-model="searchForm.accountOrPhone" v-model="searchForm.accountOrPhone"
slot="prepend" slot="prepend"
...@@ -48,48 +77,98 @@ ...@@ -48,48 +77,98 @@
</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 v-for="item in merchantStatus" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option> <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 v-for="item in accountLevel" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option> <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-form-item class="merchant-wx" size="small">
<el-input size="small" v-model="searchForm.merchantName" placeholder="请输入商户名称/关联的企业微信名"></el-input> <el-input size="small" v-model="searchForm.merchantName" placeholder="请输入商户名称/关联的企业微信名"></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" label="商户号"> <el-form-item size="small" label="商户号">
<el-input size="small" v-model="searchForm.merchantNo" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="请输入商户号,仅限11位" maxlength="11"></el-input> <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 size="small" style="float: right; margin-right: 0px" 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 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 size="small" label="上级商户号">
<el-input size="small" v-model="searchForm.parentMerchantNo" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="请输入上级商户号,仅限11位" maxlength="11"></el-input> <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="small" 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 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 ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch"> <GLTable
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 class="accountType-row" v-for="(item, index) in scope.scope.accountTypeNames.split(',')" :key="index"> <div
{{ item }} class="accountType-row"
</div> 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 type="text" @click="handleEdit(scope.scope)" v-if="$globalState.session.merchantId != scope.scope.merchantNo" fn="修改" mode="el-button">修改</GLButton> <GLButton
<GLButton type="text" @click="handleAdd(scope.scope)" v-if="scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4" fn="创建子商户/门店" mode="el-button">创建子商户/门店</GLButton> type="text"
@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>-->
</template> </template>
</GLTable> </GLTable>
</div> </div>
...@@ -248,6 +327,14 @@ export default { ...@@ -248,6 +327,14 @@ export default {
this.$refs.table.setTableHeightFun() this.$refs.table.setTableHeightFun()
} }
}) })
},
handleReset() {
this.searchForm = {
accountOrPhone: 1,
merchantLegalPersonPhone: '',
merchantLoginAccount: ''
}
this.handleSearch()
} }
}, },
...@@ -293,6 +380,13 @@ export default { ...@@ -293,6 +380,13 @@ export default {
} }
.merchant-row { .merchant-row {
margin-left: 20px; margin-left: 20px;
&-input {
/deep/ {
.el-input__inner {
width: 118px!important;
}
}
}
/deep/ { /deep/ {
.el-form-item__content { .el-form-item__content {
line-height: 1; line-height: 1;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!