Commit 8f2b2b1e by cwq0219

发券宝-门店-筛选;客户列表-客户状态

1 parent 0073f8da
......@@ -192,7 +192,7 @@
prop="source"
>
<template slot-scope="scope">
<span>{{scope.row.source === 3 ? '现场升级' : '系统录入'}}</span>
<span>{{scope.row.source === 3 ? '现场升级' : (scope.row.source === 5 ? '核销抵扣' : '系统录入')}}</span>
</template>
</el-table-column>
</el-table>
......@@ -338,10 +338,11 @@ export default {
1: [1, 3],
2: [2, 4, 6]
},
// 客户状态;1-系统录入;2-现场升级
// 客户状态;1-系统录入;2-现场升级;5-核销抵扣
sourceStatusObj: {
1: [1, 2],
2: [3]
2: [3],
5: [5]
},
baseData: {
parkServiceList: [],
......@@ -370,6 +371,9 @@ export default {
}, {
confId: 2,
confLabel: '现场升级'
}, {
confId: 5,
confLabel: '核销抵扣'
}]
},
total: 0,
......
......@@ -64,8 +64,10 @@
prop="couponName"
>
<el-input
style="width: 216px;"
v-model="couponsForm.couponName"
placeholder="给目标起个名字"
maxlength="10"
></el-input>
</el-form-item>
<el-form-item
......@@ -133,10 +135,40 @@
:relateStoreVisible="relateStoreVisible"
:sourcePage="sourcePage"
:storeApi="storeApi"
:storeSearchForm="storeSearchForm"
:storeSelected="storeSelected"
@handleRelateStoreConfirm="handleRelateStoreConfirm"
@handleRelateStoreClose="handleRelateStoreClose"
>
<el-row slot>
<el-form
:model="storeSearchForm"
:rules="rules"
ref="relate"
:inline="true"
>
<el-form-item label="园区店:">
<el-input
v-model="storeSearchForm.yqMerchantName"
placeholder="园区店名称"
@keydown.native="handleStoreInput"
clearable
></el-input>
</el-form-item>
<el-form-item label="4s店:">
<el-input
v-model="storeSearchForm.merchantName"
placeholder="园区店名称"
@keydown.native="handleStoreInput"
clearable
></el-input>
</el-form-item>
<el-button
type="primary"
@click="handleSearchStore"
>搜索</el-button>
</el-form>
</el-row>
</relate-store-dialog>
</d2-container>
</template>
......@@ -193,6 +225,10 @@ export default {
sourcePage: 'coupons',
storeSelected: [],
storeApi: commodityAddSeviceMerchant,
storeSearchForm: {
yqMerchantName: '',
merchantName: ''
},
// 表格参数
getListApi: getList,
tableParams: {
......@@ -316,6 +352,12 @@ export default {
this.relateStoreVisible = !this.relateStoreVisible
this.relateCloseReset()
},
handleStoreInput(e) {
(e.keyCode === 13) && this.handleSearchStore()
},
handleSearchStore() {
this.$refs.relateStore.getSelectingList()
},
relateCloseReset() {
this.storeSelected = []
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!