Commit bcbd5b13 by 前端

版本代码提交

1 parent 220362d3
......@@ -1895,6 +1895,51 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"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": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
......@@ -1903,6 +1948,28 @@
"requires": {
"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 @@
}
}
},
"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": {
"version": "3.6.5",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
......
......@@ -2,11 +2,11 @@
function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, maxValue, regRule) {
/* eslint-disable */
var reg = {
priceReg: /^\d[\d\.]*$/,
numReg: /^[1-9]\d*$/,
zNumReg: /^\d*$/
}
/* eslint-enable */
priceReg: /^\d[\d\.]*$/,
numReg: /^[1-9]\d*$/,
zNumReg: /^\d*$/
}
/* eslint-enable */
regRule = regRule || 'priceReg'
if (newValue && ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))) {
return oldValue || ''
......@@ -62,21 +62,22 @@ const deliveryTypeList = [
//会员中心得状态list
const statusList = [
// {
// confId: '',
// confName: '全部'
// },
{
confId: 1,
confName: '生效中'
},
{
confId: 2,
confName: '已失效'
}
]
//会员订单类型字典
const orderTypesList = [{
// {
// confId: '',
// confName: '全部'
// },
{
confId: 1,
confName: '生效中'
},
{
confId: 2,
confName: '已失效'
}
]
//会员订单类型字典
const orderTypesList = [
{
confId: 1,
confName: '套餐'
},
......@@ -110,9 +111,10 @@ const orderStatusList = [
{
confId: 6,
confName: '已退款'
},
}
]
const serviceStatusList = [{
const serviceStatusList = [
{
confId: 1,
confName: '未生效'
},
......@@ -126,7 +128,8 @@ const serviceStatusList = [{
}
]
const memberTypeList = [{
const memberTypeList = [
{
confId: 1,
confName: '正式会员'
},
......@@ -135,7 +138,8 @@ const memberTypeList = [{
confName: '试用会员'
}
]
const stateList = [{
const stateList = [
{
confId: 0,
confName: '待上架'
},
......@@ -146,18 +150,18 @@ const stateList = [{
{
confId: 2,
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
export { limitPrice, orderManageStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, inviteStatusList }
......@@ -60,6 +60,32 @@ const couponsObj = {
optionId: 'confId',
optionLabel: 'confLabel',
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>
<div class="purchase">
<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">
<el-tabs v-model="activeName" type="card" @tab-click="handleTabChange">
<el-tab-pane label="店面列表" name="storeList"></el-tab-pane>
<el-tab-pane label="领用明细" name="couponsDetail"></el-tab-pane>
<el-tabs v-model="activeName"
type="card"
@tab-click="handleTabChange">
<el-tab-pane label="店面列表"
name="storeList"></el-tab-pane>
<el-tab-pane label="领用明细"
name="couponsDetail"></el-tab-pane>
</el-tabs>
<div class="btn">
<GLButton v-show="activeName == 'storeList'" type="primary" size="small" @click="handleEdit('add', {})" fn="新增">新增</GLButton>
<el-button size="small" @click="handleExport">导出</el-button>
<GLButton v-show="activeName == 'storeList'"
type="primary"
size="small"
@click="handleEdit('add', {})"
fn="新增">新增</GLButton>
<el-button size="small"
@click="handleExport">导出</el-button>
</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">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
<GLTable v-show="activeName == 'storeList'"
ref="storeRef"
: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>
</GLTable>
<!-- 表格区域 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 -->
</div>
<edit-coupons-dialog :coupons-visible="couponsVisible" :coupon-info="couponInfo" @couponClose="couponClose" />
<edit-coupons-dialog :coupons-visible="couponsVisible"
:coupon-info="couponInfo"
@couponClose="couponClose" />
</div>
</template>
......@@ -37,6 +76,7 @@ import editCouponsDialog from './components/editCouponsDialog'
import { getOptionsList, aToExport } from '@/utils/index'
import * as dayjs from 'dayjs'
// import baseList from './constant/baseList'
import { inviteStatusList } from '@/common/constant.js'
export default {
name: 'coupons',
......@@ -222,11 +262,23 @@ export default {
prop: 'customerName'
},
{
label: '客户车型',
prop: 'carSeriesName'
},
{
label: '手机号',
prop: 'customerPhone',
width: '140px'
},
{
label: '预约状态',
prop: 'inviteStatus',
width: '100px',
formatter: cellValue => {
return this.baseData.inviteStatusList.find(item => item.confId === cellValue.inviteStatus)?.confValue
}
},
{
label: '礼券名称',
prop: 'couponName'
},
......@@ -295,7 +347,8 @@ export default {
{ confLabel: '待核销', confId: 'N' },
{ confLabel: '已核销', confId: 'Y' }
],
sellerNameList: []
sellerNameList: [],
inviteStatusList: inviteStatusList
},
imgVisible: false,
previewImgUrl: ''
......@@ -312,6 +365,11 @@ export default {
return new Promise(resolve => {
// 店面列表-类型:couponTypeList;领用详情-类型:couponTypes
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()
})
},
......@@ -369,7 +427,7 @@ export default {
handleTabChange() {
this.refresh = new Date()
let storeAttrList = ['状态']
let couponAttrList = ['发券人', '核销状态', '核销人']
let couponAttrList = ['发券人', '核销状态', '核销人', '领用时间', '预约状态', '客户车型']
this.changeFormAttr('searchFormData', 'isHide', storeAttrList, this.activeName != 'storeList')
this.changeFormAttr('searchFormData', 'isHide', couponAttrList, this.activeName != 'couponsDetail')
this.handleReset()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!