Commit 8f2b2b1e by cwq0219

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

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