Commit bcbd5b13 by 前端

版本代码提交

1 parent 220362d3
...@@ -1895,6 +1895,51 @@ ...@@ -1895,6 +1895,51 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true "dev": true
}, },
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ssri": { "ssri": {
"version": "8.0.1", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
...@@ -1903,6 +1948,28 @@ ...@@ -1903,6 +1948,28 @@
"requires": { "requires": {
"minipass": "^3.1.1" "minipass": "^3.1.1"
} }
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
} }
} }
}, },
...@@ -13347,75 +13414,6 @@ ...@@ -13347,75 +13414,6 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.6.5", "version": "3.6.5",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, maxValue, regRule) { function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, maxValue, regRule) {
/* eslint-disable */ /* eslint-disable */
var reg = { var reg = {
priceReg: /^\d[\d\.]*$/, priceReg: /^\d[\d\.]*$/,
numReg: /^[1-9]\d*$/, numReg: /^[1-9]\d*$/,
zNumReg: /^\d*$/ zNumReg: /^\d*$/
} }
/* eslint-enable */ /* eslint-enable */
regRule = regRule || 'priceReg' regRule = regRule || 'priceReg'
if (newValue && ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))) { if (newValue && ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))) {
return oldValue || '' return oldValue || ''
...@@ -62,21 +62,22 @@ const deliveryTypeList = [ ...@@ -62,21 +62,22 @@ const deliveryTypeList = [
//会员中心得状态list //会员中心得状态list
const statusList = [ const statusList = [
// { // {
// confId: '', // confId: '',
// confName: '全部' // confName: '全部'
// }, // },
{ {
confId: 1, confId: 1,
confName: '生效中' confName: '生效中'
}, },
{ {
confId: 2, confId: 2,
confName: '已失效' confName: '已失效'
} }
] ]
//会员订单类型字典 //会员订单类型字典
const orderTypesList = [{ const orderTypesList = [
{
confId: 1, confId: 1,
confName: '套餐' confName: '套餐'
}, },
...@@ -110,9 +111,10 @@ const orderStatusList = [ ...@@ -110,9 +111,10 @@ const orderStatusList = [
{ {
confId: 6, confId: 6,
confName: '已退款' confName: '已退款'
}, }
] ]
const serviceStatusList = [{ const serviceStatusList = [
{
confId: 1, confId: 1,
confName: '未生效' confName: '未生效'
}, },
...@@ -126,7 +128,8 @@ const serviceStatusList = [{ ...@@ -126,7 +128,8 @@ const serviceStatusList = [{
} }
] ]
const memberTypeList = [{ const memberTypeList = [
{
confId: 1, confId: 1,
confName: '正式会员' confName: '正式会员'
}, },
...@@ -135,7 +138,8 @@ const memberTypeList = [{ ...@@ -135,7 +138,8 @@ const memberTypeList = [{
confName: '试用会员' confName: '试用会员'
} }
] ]
const stateList = [{ const stateList = [
{
confId: 0, confId: 0,
confName: '待上架' confName: '待上架'
}, },
...@@ -146,18 +150,18 @@ const stateList = [{ ...@@ -146,18 +150,18 @@ const stateList = [{
{ {
confId: 2, confId: 2,
confName: '已下架' confName: '已下架'
}, }
]
// 商品库-发卷宝-领用明细-预约状态
const inviteStatusList = [
{ confId: 1, confValue: '待预约' },
{ confId: 2, confValue: '已预约' },
{ confId: 3, confValue: '取消预约' },
{ confId: 4, confValue: '过期到店' },
{ confId: 5, confValue: '已施工' },
{ confId: 6, confValue: '已撤销' },
{ confId: 7, confValue: '已支付' }
] ]
export {
limitPrice,
orderManageStatusList,
orderSourceList,
deliveryTypeList,
statusList,
serviceStatusList,
memberTypeList,
stateList,
orderTypesList,
orderStatusList
}
\ No newline at end of file \ No newline at end of file
export { limitPrice, orderManageStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, inviteStatusList }
...@@ -60,6 +60,32 @@ const couponsObj = { ...@@ -60,6 +60,32 @@ const couponsObj = {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'sellerNameList' optionsName: 'sellerNameList'
},
{
label: '领用时间',
name: 'useTime',
type: 'datePicker',
isClear: true,
isHide: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '预约状态',
name: 'inviteStatus',
type: 'select',
isClear: true,
isHide: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'inviteStatusList'
},
{
label: '客户车型',
name: 'carSeriesName',
type: 'input',
isClear: true,
isHide: true
} }
] ]
} }
......
<template> <template>
<div class="purchase"> <div class="purchase">
<div class="container"> <div class="container">
<GLCombiForm :key="refresh" ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :key="refresh"
ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"
@handleRest="handleReset"></GLCombiForm>
<div class="table-header"> <div class="table-header">
<el-tabs v-model="activeName" type="card" @tab-click="handleTabChange"> <el-tabs v-model="activeName"
<el-tab-pane label="店面列表" name="storeList"></el-tab-pane> type="card"
<el-tab-pane label="领用明细" name="couponsDetail"></el-tab-pane> @tab-click="handleTabChange">
<el-tab-pane label="店面列表"
name="storeList"></el-tab-pane>
<el-tab-pane label="领用明细"
name="couponsDetail"></el-tab-pane>
</el-tabs> </el-tabs>
<div class="btn"> <div class="btn">
<GLButton v-show="activeName == 'storeList'" type="primary" size="small" @click="handleEdit('add', {})" fn="新增">新增</GLButton> <GLButton v-show="activeName == 'storeList'"
<el-button size="small" @click="handleExport">导出</el-button> type="primary"
size="small"
@click="handleEdit('add', {})"
fn="新增">新增</GLButton>
<el-button size="small"
@click="handleExport">导出</el-button>
</div> </div>
</div> </div>
<!-- 店面列表 - 表格区域 开始 --> <!-- 店面列表 - 表格区域 开始 -->
<GLTable v-show="activeName == 'storeList'" ref="storeRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @sortChange="sortChange"> <GLTable v-show="activeName == 'storeList'"
<div class="table-btns" slot="auth-button" slot-scope="scope"> ref="storeRef"
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> :getListApi="getListApi"
:noDataImg="url"
:searchForm="searchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
@sortChange="sortChange">
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
<GLTableButton :buttonList="tableButtonList"
:buttonItem="scope.scope"
:buttonNum="3"></GLTableButton>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
<!-- 领用明细 - 表格区域 开始 --> <!-- 领用明细 - 表格区域 开始 -->
<GLTable v-show="activeName == 'couponsDetail'" ref="detailRef" :getListApi="getDetailListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="detailTableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @sortChange="detailSortChange"></GLTable> <GLTable v-show="activeName == 'couponsDetail'"
ref="detailRef"
:getListApi="getDetailListApi"
:noDataImg="url"
:searchForm="searchForm"
:tableParams="detailTableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
@sortChange="detailSortChange"></GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<edit-coupons-dialog :coupons-visible="couponsVisible" :coupon-info="couponInfo" @couponClose="couponClose" /> <edit-coupons-dialog :coupons-visible="couponsVisible"
:coupon-info="couponInfo"
@couponClose="couponClose" />
</div> </div>
</template> </template>
...@@ -37,6 +76,7 @@ import editCouponsDialog from './components/editCouponsDialog' ...@@ -37,6 +76,7 @@ import editCouponsDialog from './components/editCouponsDialog'
import { getOptionsList, aToExport } from '@/utils/index' import { getOptionsList, aToExport } from '@/utils/index'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
// import baseList from './constant/baseList' // import baseList from './constant/baseList'
import { inviteStatusList } from '@/common/constant.js'
export default { export default {
name: 'coupons', name: 'coupons',
...@@ -222,11 +262,23 @@ export default { ...@@ -222,11 +262,23 @@ export default {
prop: 'customerName' prop: 'customerName'
}, },
{ {
label: '客户车型',
prop: 'carSeriesName'
},
{
label: '手机号', label: '手机号',
prop: 'customerPhone', prop: 'customerPhone',
width: '140px' width: '140px'
}, },
{ {
label: '预约状态',
prop: 'inviteStatus',
width: '100px',
formatter: cellValue => {
return this.baseData.inviteStatusList.find(item => item.confId === cellValue.inviteStatus)?.confValue
}
},
{
label: '礼券名称', label: '礼券名称',
prop: 'couponName' prop: 'couponName'
}, },
...@@ -295,7 +347,8 @@ export default { ...@@ -295,7 +347,8 @@ export default {
{ confLabel: '待核销', confId: 'N' }, { confLabel: '待核销', confId: 'N' },
{ confLabel: '已核销', confId: 'Y' } { confLabel: '已核销', confId: 'Y' }
], ],
sellerNameList: [] sellerNameList: [],
inviteStatusList: inviteStatusList
}, },
imgVisible: false, imgVisible: false,
previewImgUrl: '' previewImgUrl: ''
...@@ -312,6 +365,11 @@ export default { ...@@ -312,6 +365,11 @@ export default {
return new Promise(resolve => { return new Promise(resolve => {
// 店面列表-类型:couponTypeList;领用详情-类型:couponTypes // 店面列表-类型:couponTypeList;领用详情-类型:couponTypes
this.searchForm.couponTypes = this.searchForm.couponTypeList this.searchForm.couponTypes = this.searchForm.couponTypeList
if (this.searchForm.useTime && this.searchForm.useTime.length) {
this.searchForm.startDate = dayjs(this.searchForm.useTime[0]).format('YYYY-MM-DD HH:mm:ss')
this.searchForm.endDate = dayjs(this.searchForm.useTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
delete this.searchForm.useTime
}
resolve() resolve()
}) })
}, },
...@@ -369,7 +427,7 @@ export default { ...@@ -369,7 +427,7 @@ export default {
handleTabChange() { handleTabChange() {
this.refresh = new Date() this.refresh = new Date()
let storeAttrList = ['状态'] let storeAttrList = ['状态']
let couponAttrList = ['发券人', '核销状态', '核销人'] let couponAttrList = ['发券人', '核销状态', '核销人', '领用时间', '预约状态', '客户车型']
this.changeFormAttr('searchFormData', 'isHide', storeAttrList, this.activeName != 'storeList') this.changeFormAttr('searchFormData', 'isHide', storeAttrList, this.activeName != 'storeList')
this.changeFormAttr('searchFormData', 'isHide', couponAttrList, this.activeName != 'couponsDetail') this.changeFormAttr('searchFormData', 'isHide', couponAttrList, this.activeName != 'couponsDetail')
this.handleReset() this.handleReset()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!