Commit e6801af1 by zhangxw

Merge branch 'SAAS+V4.43.1-0819' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.43.1-0819
2 parents e4258f70 9cab5c50
...@@ -894,3 +894,14 @@ export const subBusinessList = [ ...@@ -894,3 +894,14 @@ export const subBusinessList = [
{ confId: "0", confValue: "权益" }, { confId: "0", confValue: "权益" },
{ confId: "1", confValue: "延保" } { confId: "1", confValue: "延保" }
] ]
// 商品库-发卷宝-领用明细-预约状态
export const inviteStatusList = [
{ confId: 1, confValue: "待预约" },
{ confId: 2, confValue: "已预约" },
{ confId: 3, confValue: "取消预约" },
{ confId: 4, confValue: "过期到店" },
{ confId: 5, confValue: "已施工" },
{ confId: 6, confValue: "已撤销" },
{ confId: 7, confValue: "已支付" }
]
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<script> <script>
import { getDetailList, getDistinctColum } from '@api/coupons' import { getDetailList, getDistinctColum } from '@api/coupons'
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { BaseData } from '@/common/constants.js' import { BaseData, inviteStatusList } from '@/common/constants.js'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
export default { export default {
name: 'CouponsDetail', name: 'CouponsDetail',
...@@ -30,7 +30,9 @@ export default { ...@@ -30,7 +30,9 @@ export default {
usedFlagList: [], usedFlagList: [],
employeeNameList: [], employeeNameList: [],
sellerNameList: [], sellerNameList: [],
couponTypeList: [] couponTypeList: [],
inviteStatus: '',
carSeriesName: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
getListApi: getDetailList, getListApi: getDetailList,
...@@ -58,10 +60,20 @@ export default { ...@@ -58,10 +60,20 @@ export default {
label: '车主姓名', label: '车主姓名',
prop: 'customerName' prop: 'customerName'
}, { }, {
label: '客户车型',
prop: 'carSeriesName'
}, {
label: '手机号', label: '手机号',
prop: 'customerPhone', prop: 'customerPhone',
width: '120px' width: '120px'
}, { }, {
label: '预约状态',
prop: 'inviteStatus',
width: '100px',
formatter: (cellValue) => {
return this.baseData.inviteStatusList.find(item => item.confId === cellValue.inviteStatus)?.confValue
}
}, {
label: '礼券名称', label: '礼券名称',
prop: 'couponName', prop: 'couponName',
addHtml: 'couponName' addHtml: 'couponName'
...@@ -130,7 +142,8 @@ export default { ...@@ -130,7 +142,8 @@ export default {
employeeNameList: [], employeeNameList: [],
sellerNameList: [], sellerNameList: [],
couponTypeList: [], couponTypeList: [],
usedFlagList: [{ confValue: '待核销', confId: 'N' }, { confValue: '已核销', confId: 'Y' }] usedFlagList: [{ confValue: '待核销', confId: 'N' }, { confValue: '已核销', confId: 'Y' }],
inviteStatusList: inviteStatusList
} }
} }
}, },
......
<!-- 发券宝 --> <!-- 发券宝 -->
<template> <template>
<d2-container class="coupons"> <d2-container class="coupons">
<div class="header" slot="header"> <div class="header"
<d2-search slot="header">
ref="showSearch" <d2-search ref="showSearch"
class="show-search" class="show-search"
:search-form="parentSearchForm" :search-form="parentSearchForm"
:form-data="copyShowFormData" :form-data="copyShowFormData" />
/>
<div class="up-btns"> <div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch"> <el-button size="small"
type="primary"
@click="handleSearch">
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button> <el-button size="small"
@click="handleReset"> 重置 </el-button>
</div> </div>
</div> </div>
<div class="d2-container-content" style="position: positive"> <div class="d2-container-content"
style="position: positive">
<span style="position: absolute; right: 41px; top: 42px; z-index: 999"> <span style="position: absolute; right: 41px; top: 42px; z-index: 999">
<auth-button <auth-button :show-btn-ids="
:show-btn-ids="
activeName === 'storeList' ? ['9030601', '9030605'] : ['9030605'] activeName === 'storeList' ? ['9030601', '9030605'] : ['9030605']
" "
category="Button" category="Button" />
/>
</span> </span>
<el-tabs v-model="activeName" type="card" @tab-click="handleReset"> <el-tabs v-model="activeName"
<el-tab-pane label="店面列表" name="storeList"> type="card"
<store-list @tab-click="handleReset">
v-if="activeName == 'storeList'" <el-tab-pane label="店面列表"
name="storeList">
<store-list v-if="activeName == 'storeList'"
ref="storeList" ref="storeList"
:parent-search-form="parentSearchForm" :parent-search-form="parentSearchForm" />
/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="领用明细" name="couponsDetail"> <el-tab-pane label="领用明细"
<coupons-detail name="couponsDetail">
v-if="activeName == 'couponsDetail'" <coupons-detail v-if="activeName == 'couponsDetail'"
ref="couponsDetail" ref="couponsDetail"
:parent-search-form="parentSearchForm" :parent-search-form="parentSearchForm" />
/>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<edit-coupons-dialog <edit-coupons-dialog :coupons-visible="couponsVisible"
:coupons-visible="couponsVisible" @couponClose="couponClose" />
@couponClose="couponClose"
/>
</d2-container> </d2-container>
</template> </template>
...@@ -56,7 +55,7 @@ import editCouponsDialog from './editCouponsDialog' ...@@ -56,7 +55,7 @@ import editCouponsDialog from './editCouponsDialog'
// import { asyncExportExcel } from '@api/sys.base' // import { asyncExportExcel } from '@api/sys.base'
import { getDistinctColum } from '@api/coupons' import { getDistinctColum } from '@api/coupons'
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { BaseData } from '@/common/constants.js' import { BaseData, inviteStatusList } from '@/common/constants.js'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
export default { export default {
name: 'Coupons', name: 'Coupons',
...@@ -89,7 +88,8 @@ export default { ...@@ -89,7 +88,8 @@ export default {
employeeNameList: [], employeeNameList: [],
sellerNameList: [], sellerNameList: [],
couponTypeList: [], couponTypeList: [],
usedFlagList: [{ confValue: '待核销', confId: 'N' }, { confValue: '已核销', confId: 'Y' }] usedFlagList: [{ confValue: '待核销', confId: 'N' }, { confValue: '已核销', confId: 'Y' }],
inviteStatusList: inviteStatusList
} }
} }
}, },
...@@ -224,6 +224,22 @@ export default { ...@@ -224,6 +224,22 @@ export default {
isClear: true, isClear: true,
pickerOptions: 'rangePickerOptions', pickerOptions: 'rangePickerOptions',
keyFn: this.handleSearch keyFn: this.handleSearch
}, {
label: '预约状态',
name: 'inviteStatus',
type: 'select',
// multiple: true,
isClear: true,
optionList: this.baseData.inviteStatusList,
optionId: 'confId',
optionLabel: 'confValue',
keyFn: this.handleSearch
}, {
label: '客户车型',
name: 'carSeriesName',
type: 'input',
isClear: true,
keyFn: this.handleSearch
}) })
this.copyShowFormData = copyShowFormData this.copyShowFormData = copyShowFormData
break break
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!