Commit bf7c1cd2 by 前端

Merge branch 'v4.26.0' into 'master'

V4.26.0

See merge request !30
2 parents c7c3a683 41665c8a
...@@ -1878,51 +1878,6 @@ ...@@ -1878,51 +1878,6 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true "dev": true
}, },
"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
},
"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",
...@@ -1931,28 +1886,6 @@ ...@@ -1931,28 +1886,6 @@
"requires": { "requires": {
"minipass": "^3.1.1" "minipass": "^3.1.1"
} }
},
"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-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"
}
} }
} }
}, },
...@@ -2873,6 +2806,11 @@ ...@@ -2873,6 +2806,11 @@
"resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz",
"integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ=="
}, },
"bignumber.js": {
"version": "9.1.1",
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz",
"integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig=="
},
"binary-extensions": { "binary-extensions": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
...@@ -13294,6 +13232,75 @@ ...@@ -13294,6 +13232,75 @@
} }
} }
}, },
"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.5.4", "version": "3.5.4",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.4.tgz", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.4.tgz",
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {
"bignumber.js": "^9.1.1",
"core-js": "^3.4.4", "core-js": "^3.4.4",
"dayjs": "^1.10.7", "dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
......
import { http } from '@/main'
const path = 'dj.api.smarcarlife.'
const path2 = 'dj.api.goodsInfo.'
const path3 = 'dj.api.smartcarlife.'
// 获取当前登录园区店商户收货地址
const addressGet = (params = {}) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}yqMerchantDeliveryAddress.get`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取省市区信息
const getAreaInfoApi = function (params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.yseMerchantOffline.getAreaInfo`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 分页查询采购订单
const getPurchaseOrderList = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smarcarlife.purchaseApply.page`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 采购订单取消/审核
const purchaseOrderCancelOrCheck = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smarcarlife.purchaseApply.cancel`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 分页查询采购上架记录
const listWithPagePurchaseInfo = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smartcarlife.purchaseMall.page`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 保存园区店商户收货地址
const addressSave = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}yqMerchantDeliveryAddress.save`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 按商品类目分组获取购物车列表
const listGroupByGoodsType = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseShoppingCar.listGroupByGoodsType`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 更新购物车商品选中标识
const updateSelectedFlag = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseShoppingCar.updateSelectedFlag`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 添加到购物车
const shoppingCarAdd = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseShoppingCar.add`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 添加采购订单
export function purchaseOrderAdd(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smarcarlife.purchaseApply.add`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
export function exportExcel(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smarcarlife.purchaseApply.export`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 采购订单入库
export function purchaseOrderPutIn(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseOrder.putIn`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取下单/入库门店
export function getMerchantList(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path3}permission.yqMerchant.list`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
//查询园区店关联的4s店列表 -入库门店
const get4SRefByYqShopList = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.scenemerchantref.query4SRefByYqShop`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
//编辑
export function selectByOrderCode(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smarcarlife.purchaseOrder.selectByOrderCode`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 是否有发货主体
export function checkShipper(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smarcarlife.purchaseOrder.checkShipper`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll:true
})
}
// 确认发货
// export function purchaseOrderConfirmDelivery(data) {
// params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
// data.routerMethod = `${path}purchaseOrder.confirmDelivery`
// return http(data)
// }
export default {getAreaInfoApi,checkShipper,get4SRefByYqShopList, selectByOrderCode, getMerchantList, purchaseOrderPutIn, exportExcel, purchaseOrderAdd, shoppingCarAdd, updateSelectedFlag, listGroupByGoodsType, getPurchaseOrderList, purchaseOrderCancelOrCheck, listWithPagePurchaseInfo, addressGet, addressSave }
\ No newline at end of file \ No newline at end of file
No preview for this file type
...@@ -285,3 +285,13 @@ ...@@ -285,3 +285,13 @@
font-size: 12px; font-size: 12px;
} }
} }
.el-cascader-menu__wrap{
height: 204px!important;
}
.one-line-ellipsis {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
\ No newline at end of file \ No newline at end of file
No preview for this file type
...@@ -32,7 +32,7 @@ function downloadIamge(imgsrc, name = new Date().getTime()) { ...@@ -32,7 +32,7 @@ function downloadIamge(imgsrc, name = new Date().getTime()) {
var image = new Image() var image = new Image()
// 解决跨域 Canvas 污染问题 // 解决跨域 Canvas 污染问题
image.setAttribute('crossOrigin', 'anonymous') image.setAttribute('crossOrigin', 'anonymous')
image.onload = function() { image.onload = function () {
var canvas = document.createElement('canvas') var canvas = document.createElement('canvas')
canvas.width = image.width canvas.width = image.width
canvas.height = image.height canvas.height = image.height
...@@ -97,5 +97,10 @@ const auditStatusList = [ ...@@ -97,5 +97,10 @@ const auditStatusList = [
confName: '审核失败' confName: '审核失败'
} }
] ]
const statusList = [{ id: '1', label: '待审核' },
{ id: '2', label: '已审核' },
{ id: '3', label: '已取消' }, {
id: '4', label: '已驳回'
}]
export { limitPrice, liveStatusList, auditStatusList, downloadIamge } export { statusList, limitPrice, liveStatusList, auditStatusList, downloadIamge }
...@@ -17,7 +17,9 @@ export const fetchConfig = function(isEnv = true) { ...@@ -17,7 +17,9 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config') // return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=services')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://192.168.1.68:7001/glsxAdmin/config?moduleurl=services')
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }) // request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
} }
......
import Vue from 'vue'
import { statusList } from '@/common/constant.js'
// 订单状态状态
Vue.filter('orderStatus', (id, formatString) => {
const text = '--'
for (let i = 0; i < statusList.length; i++) {
if (statusList[i].id ==id) {
return statusList[i].label
}
}
return text
})
...@@ -11,6 +11,7 @@ import Vue from 'vue' ...@@ -11,6 +11,7 @@ import Vue from 'vue'
import apis from './api' import apis from './api'
import './public-path' import './public-path'
import '@/assets/css/public.scss' import '@/assets/css/public.scss'
import '@/filter'
// import 'glsx-components/dist/glsx-components.css' // import 'glsx-components/dist/glsx-components.css'
import { start } from '@/setup' import { start } from '@/setup'
Vue.config.productionTip = false Vue.config.productionTip = false
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<!-- 自选权益 --> <!-- 自选权益 -->
<div v-if="equityRadio == '1'" class="auto_widget"> <div v-if="equityRadio == '1'" class="auto_widget">
<el-checkbox-group v-model="curSelectPro" :disabled="disabled"> <el-checkbox-group v-model="curSelectPro" :disabled="disabled || dataSourceDisable">
<div v-for="(item, index) in productList" :key="index" class="product_wrapper"> <div v-for="(item, index) in productList" :key="index" class="product_wrapper">
<div style="padding-left: 73px"> <div style="padding-left: 73px">
<!-- <el-checkbox @change="changeCheckBox($event, item, index)" :disabled="item.disabled" :label="errGlassName&&item.idName=='glass'?item.packageName+`(${errGlassName})`:item.packageName"> --> <!-- <el-checkbox @change="changeCheckBox($event, item, index)" :disabled="item.disabled" :label="errGlassName&&item.idName=='glass'?item.packageName+`(${errGlassName})`:item.packageName"> -->
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</div> </div>
<div class="arrt_pannel"> <div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'"> <template v-if="attr.attributeType == 'input'">
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input> <el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex, 1)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
</template> </template>
<template v-if="attr.attributeType == 'select'"> <template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc"> <el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc">
...@@ -113,74 +113,44 @@ ...@@ -113,74 +113,44 @@
<!-- 定制权益 --> <!-- 定制权益 -->
<div v-if="equityRadio == '2'" class="auto_widget"> <div v-if="equityRadio == '2'" class="auto_widget">
<el-radio-group v-model="curSelectCustomPro" :disabled="disabled"> <el-checkbox-group v-model="curSelectCustomPro" :disabled="disabled || dataSourceDisable">
<div v-for="(item, index) in customProductList" :key="index" class="product_wrapper"> <div v-for="(item, index) in customProductList" :key="index" class="product_wrapper">
<div style="padding-left: 73px"> <div style="padding-left: 73px">
<el-radio @change="changeRaido($event, item)" :disabled="item.disabled" :label="item.packageName"></el-radio> <el-checkbox @change="changeRaido($event, item, index)" :label="item.packageName" :disabled="item.disabled">
<div>{{ item.packageName }}</div>
</el-checkbox>
<p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p> <p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p>
</div> </div>
<div v-if="curSelectCustomPro == item.packageName" :key="indexs" class="child_wrap custom-made"> <div class="customer-form">
<div class="child_wrap_pannel" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex"> <template v-for="(ele, indexs) in curSelectCustomPro">
<div class="attr_wrapper flex_sc"> <div v-if="ele == item.packageName" :key="indexs" class="child_wrap">
<div class="attr_label h13_title"> <div class="child_wrap_pannel" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<span v-if="attr.required == 1" style="color: red">*</span> <div class="attr_wrapper flex_sc">
{{ attr.attributeDesc }} <div class="attr_label h13_title">
</div> <span v-if="attr.required == 1" style="color: red">*</span>
<div class="arrt_pannel"> {{ attr.attributeDesc }}
<template v-if="attr.attributeType == 'input'"> </div>
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input> <div class="arrt_pannel">
</template> <template v-if="attr.attributeType == 'input'">
<template v-if="attr.attributeType == 'select'"> <el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex, 2)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
<el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc"> </template>
<el-option v-for="option in attr.optionList" :key="option.value" :label="option.label" :value="option.value"></el-option> <template v-if="attr.attributeType == 'select'">
</el-select> <el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc">
</template> <el-option v-for="option in attr.optionList" :key="option.value" :label="option.label" :value="option.value"></el-option>
<template v-if="attr.attributeType == 'datePicker'"> </el-select>
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName == 'additional_date' ? pickerOptions2 : pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker> </template>
</template> <template v-if="attr.attributeType == 'datePicker'">
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName == 'additional_date' ? pickerOptions2 : pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
</template>
</div>
</div>
</div> </div>
</div> </div>
</div> </template>
</div> </div>
</div> </div>
</el-radio-group> </el-checkbox-group>
</div> </div>
<!-- <div v-if="equityRadio == '2'" class="auto_widget">
<glsx-combi-form class="edit-form-container" :isEdit="true" defaultWidth="320px" :formObj="editForm" :formData="editFormDataPro">
<template slot="packageCode" slot-scope="scope">
<el-radio-group class="package-code-box" v-model="editForm[scope.scope.name]" :disabled="scope.scope.isDisabled" @change="scope.scope.handleRadioChange">
<el-radio class="package-code" v-for="subItem in scope.scope.optionList" :key="subItem[scope.scope.optionId]" :label="subItem[scope.scope.optionId]">
<span class="package-title">{{ subItem[scope.scope.optionLabel] }}</span>
<div class="radio-add-block" @click.stop.prevent="e => handleCancelBubble(e)">
<p class="package-subtitle">{{ subItem.serviceItems }}</p>
<div v-if="editForm.packageCode == subItem[scope.scope.optionId]">
<glsx-combi-form class="edit-form-container" ref="editFormRefPro" :isEdit="true" defaultWidth="320px" formRef="editChildRefPro" :isBlock="isBlock" :formObj="editFormPro" :formData="subItem.editFormData" :formRules="editRulePro">
<template slot="table" slot-scope="scope">
<table class="table-style">
<tbody>
<tr>
<td v-for="(m, n) in scope.scope.attributeList" :key="n" :style="{ width: 100 / scope.scope.attributeList.length + '%' }">{{ m.attributeDesc }}</td>
</tr>
<tr v-for="(m, n) in scope.scope.tableList" :key="n">
<td v-for="(i, j) in m" :key="j" :style="{ width: 100 / scope.scope.attributeList.length + '%' }">
<el-input :disabled="i.isDisabled" :class="{ 'border-red': !editFormPro[i.name] }" placeholder="请输入" v-model="editFormPro[i.name]" :maxlength="i.maxlength">
<el-popover v-show="!editFormPro[i.name]" slot="suffix" placement="top" title="" width="90" trigger="hover" :content="i.attributeDesc + '是必填项'">
<i class="el-icon-warning color-red" slot="reference"></i>
</el-popover>
</el-input>
</td>
</tr>
</tbody>
</table>
</template>
</glsx-combi-form>
</div>
</div>
</el-radio>
</el-radio-group>
</template>
</glsx-combi-form>
</div> -->
</div> </div>
<!-- 其他信息 --> <!-- 其他信息 -->
...@@ -196,9 +166,7 @@ ...@@ -196,9 +166,7 @@
</div> </div>
<!-- 底部固定按钮 --> <!-- 底部固定按钮 -->
<!-- <div style="height: 78px"></div> -->
<div class="fixed_bottom"> <div class="fixed_bottom">
<!-- <div class="ma_top"></div> -->
<div class="flex_cc ma_bot"> <div class="flex_cc ma_bot">
<el-button class="btn-three" plain v-if="![3, 5].includes(routeInfo.addOrEdit)" @click="handleReset">重置</el-button> <el-button class="btn-three" plain v-if="![3, 5].includes(routeInfo.addOrEdit)" @click="handleReset">重置</el-button>
<div class="mar-10"></div> <div class="mar-10"></div>
...@@ -486,21 +454,8 @@ export default { ...@@ -486,21 +454,8 @@ export default {
packageList: [], packageList: [],
editRulePro: {}, editRulePro: {},
editFormPro: {}, editFormPro: {},
// editFormDataPro: [
// {
// label: '',
// name: 'packageCode',
// optionList: [],
// optionId: 'packageCode',
// optionLabel: 'packageName',
// addHtml: 'packageCode',
// handleRadioChange: val => {
// this.packageAttr()
// }
// }
// ],
curSelectPro: [], curSelectPro: [],
curSelectCustomPro: '', curSelectCustomPro: [],
editProductObj: {}, editProductObj: {},
productList: [], productList: [],
customProductList: [], customProductList: [],
...@@ -509,7 +464,6 @@ export default { ...@@ -509,7 +464,6 @@ export default {
crash: {}, crash: {},
stolen: {}, stolen: {},
tire: {}, tire: {},
vip: {},
glass: {} glass: {}
}, },
// 其他信息 // 其他信息
...@@ -714,7 +668,8 @@ export default { ...@@ -714,7 +668,8 @@ export default {
pickerOptions2: {}, pickerOptions2: {},
hotline: '', hotline: '',
compensationNameDisable: false, compensationNameDisable: false,
errGlassName: '' errGlassName: '',
dataSourceDisable: false
} }
}, },
...@@ -902,7 +857,7 @@ export default { ...@@ -902,7 +857,7 @@ export default {
// } // }
} else { } else {
this.errGlassName = '' this.errGlassName = ''
if (this.vailIndex !=undefined) this.$set(this.productList[this.vailIndex], 'disabled', false) if (this.vailIndex != undefined) this.$set(this.productList[this.vailIndex], 'disabled', false)
if (this.vail_sale_price_index) this.$set(this.productList[this.vailIndex].groupAttributeList[this.vail_sale_price_index], 'disabled', false) if (this.vail_sale_price_index) this.$set(this.productList[this.vailIndex].groupAttributeList[this.vail_sale_price_index], 'disabled', false)
} }
} else { } else {
...@@ -911,18 +866,18 @@ export default { ...@@ -911,18 +866,18 @@ export default {
} }
}, },
// 轮胎玻璃提单参数处理 // 轮胎玻璃提单参数处理
vaildGlassParams(){ vaildGlassParams() {
if(this.equityRadio == 1&&this.tempAttributeList.length&&this.packageCodeList.length&&this.errGlassName){ if (this.equityRadio == 1 && this.tempAttributeList.length && this.packageCodeList.length && this.errGlassName) {
if( this.packageCodeList.indexOf(this.vailGlassCode)!=-1){ if (this.packageCodeList.indexOf(this.vailGlassCode) != -1) {
let arr1 = [] let arr1 = []
let arr2 = [] let arr2 = []
this.tempAttributeList.forEach(ele=>{ this.tempAttributeList.forEach(ele => {
if(ele.packageCode!=this.vailGlassCode){ if (ele.packageCode != this.vailGlassCode) {
arr1.push(ele) arr1.push(ele)
} }
}) })
this.packageCodeList.forEach(ele=>{ this.packageCodeList.forEach(ele => {
if(ele!=this.vailGlassCode){ if (ele != this.vailGlassCode) {
arr2.push(ele) arr2.push(ele)
} }
}) })
...@@ -966,10 +921,12 @@ export default { ...@@ -966,10 +921,12 @@ export default {
}, },
changeRaido(e, item) { changeRaido(e, item) {
if (e) { if (e) {
this.checkCodeList = [] // this.checkCodeList = []
this.autoPackageCodeList = [] // this.autoPackageCodeList = []
this.checkCodeList.push(item.packageCode) this.checkCodeList.push(item.packageCode)
this.autoPackageCodeList.push(item.packageCode) this.autoPackageCodeList.push(item.packageCode)
this.checkCodeList = Array.from(new Set(this.checkCodeList))
this.autoPackageCodeList = Array.from(new Set(this.autoPackageCodeList))
for (let key in this.productModal[item.idName]) { for (let key in this.productModal[item.idName]) {
item.groupAttributeList.forEach(attr => { item.groupAttributeList.forEach(attr => {
if (attr.attributeName == key) { if (attr.attributeName == key) {
...@@ -981,7 +938,17 @@ export default { ...@@ -981,7 +938,17 @@ export default {
attributeGroup: 'planId', attributeGroup: 'planId',
attributeName: 'planId' attributeName: 'planId'
} }
this.commonPart(this.productModal['vip']['planId'], item, customAttr) this.commonPart(this.productModal[`vip${item.packageCode}`]['planId'], item, customAttr)
} else {
this.checkCodeList = this.checkCodeList.filter(t => t != item.packageCode)
this.autoPackageCodeList = this.autoPackageCodeList.filter(t => t != item.packageCode)
for (let key in this.productModal[item.idName]) {
item.groupAttributeList.forEach(attr => {
if (attr.attributeName == key) {
this.commonPart(this.productModal[item.idName][key], item, attr)
}
})
}
} }
}, },
// 获取店铺信息 // 获取店铺信息
...@@ -1027,7 +994,7 @@ export default { ...@@ -1027,7 +994,7 @@ export default {
this.compensationNameDisable = false this.compensationNameDisable = false
}, },
// 自选权益产品套餐处理参数---输入框 // 自选权益产品套餐处理参数---输入框
getCurChangeInput(e, pack, attr, faIndex, childIndex) { getCurChangeInput(e, pack, attr, faIndex, childIndex, radio) {
if (!e) { if (!e) {
return return
} }
...@@ -1040,7 +1007,8 @@ export default { ...@@ -1040,7 +1007,8 @@ export default {
} }
} }
if (attr.attributeName == 'card') { if (attr.attributeName == 'card') {
this.productList[faIndex].groupAttributeList.map(el => { let _tempArr = radio == 2 ? this.customProductList[faIndex] : this.productList[faIndex]
_tempArr.groupAttributeList.map(el => {
if (el.attributeName == 'service_period') { if (el.attributeName == 'service_period') {
el.disabled = true el.disabled = true
return el return el
...@@ -1074,7 +1042,6 @@ export default { ...@@ -1074,7 +1042,6 @@ export default {
} else { } else {
this.tempAttributeList.push(temp) this.tempAttributeList.push(temp)
} }
// this.packageCodeList.push(pack.packageCode)
this.handleProductArrParam(this.tempAttributeList, this.packageCodeList) this.handleProductArrParam(this.tempAttributeList, this.packageCodeList)
} else { } else {
let flag = this.autoAttriButeList.findIndex(val => { let flag = this.autoAttriButeList.findIndex(val => {
...@@ -1085,14 +1052,35 @@ export default { ...@@ -1085,14 +1052,35 @@ export default {
} else { } else {
this.autoAttriButeList.push(temp) this.autoAttriButeList.push(temp)
} }
// this.autoPackageCodeList.push(pack.packageCode)
this.handleProductArrParam(this.autoAttriButeList, this.autoPackageCodeList) this.handleProductArrParam(this.autoAttriButeList, this.autoPackageCodeList)
} }
}, },
objSort(obj) {
let newObj = {}
//遍历对象,并将key进行排序
Object.keys(obj)
.sort()
.map(key => {
newObj[key] = obj[key]
})
//将排序好的数组转成字符串
return JSON.stringify(newObj)
},
unique(arr) {
let set = new Set()
for (let i = 0; i < arr.length; i++) {
let str = this.objSort(arr[i])
set.add(str)
}
//将数组中的字符串转回对象
arr = [...set].map(item => {
return JSON.parse(item)
})
return arr
},
// 处理数据结构对比后台所需的参数 // 处理数据结构对比后台所需的参数
handleProductArrParam(arr, codearr) { handleProductArrParam(arr, codearr) {
let newArr = [] let newArr = [],filterList = []
const codeList = Array.from(new Set(codearr)) const codeList = Array.from(new Set(codearr))
this.checkCodeList = codeList this.checkCodeList = codeList
let blackArr = [] let blackArr = []
...@@ -1100,12 +1088,18 @@ export default { ...@@ -1100,12 +1088,18 @@ export default {
blackArr.push([]) blackArr.push([])
} }
const newParaArr = [] const newParaArr = []
codeList.forEach((item, index) => { if (arr.length) {
let attrStr = `attributes[${index}].packageCode` filterList = this.unique(arr)
let obj = { }
[attrStr]: item arr = filterList
} arr.forEach(el=>{
newArr.push(obj) arr.forEach(els=>{
if(el.packageCode==els.packageCode){
if(el.contractNo){
els.contractNo = el.contractNo
}
}
})
}) })
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
for (let j = 0; j < codeList.length; j++) { for (let j = 0; j < codeList.length; j++) {
...@@ -1121,6 +1115,14 @@ export default { ...@@ -1121,6 +1115,14 @@ export default {
} }
} }
blackArr[j].push(obj) blackArr[j].push(obj)
// 2023 7月底版本 多商品
let attrStr = `attributes[${j}].packageCode`
let contractNoStr = `attributes[${j}].contractNo`
let temp = {
[attrStr]: codeList[j],
[contractNoStr]: arr[i].contractNo
}
newArr.push(temp)
} }
} }
} }
...@@ -1146,6 +1148,7 @@ export default { ...@@ -1146,6 +1148,7 @@ export default {
this.formatProduct = Object.assign(this.formatProduct, item) this.formatProduct = Object.assign(this.formatProduct, item)
}) })
} else { } else {
this.autoFormatProduct = {}
concactArr.forEach(item => { concactArr.forEach(item => {
this.autoFormatProduct = Object.assign(this.autoFormatProduct, item) this.autoFormatProduct = Object.assign(this.autoFormatProduct, item)
}) })
...@@ -1174,17 +1177,20 @@ export default { ...@@ -1174,17 +1177,20 @@ export default {
// 获取产品的数据 // 获取产品的数据
toGetProductData(arr) { toGetProductData(arr) {
arr.forEach(item => { arr.forEach(item => {
if(item.packageType==1){//定制权益 if (item.packageType == 1) {
item.idName = 'vip' //定制权益
}else{// 自选权益 item.idName = `vip${item.packageCode}`
if (item.packageName.includes('整车全损')) { this.$set(this.productModal, item.idName, {})
this.productModal[item.idName]['planId'] = item.planId
} else {
// 自选权益
if (item.packageName.includes('整车全损')) {
item.idName = 'car' item.idName = 'car'
} else if (item.packageName.includes('轮胎')) { } else if (item.packageName.includes('轮胎')) {
item.idName = 'tire' item.idName = 'tire'
} else if (item.packageName.includes('碰撞')) { } else if (item.packageName.includes('碰撞')) {
item.idName = 'crash' item.idName = 'crash'
this.productModal[item.idName]['planId'] = item.planId this.productModal[item.idName]['planId'] = item.planId
this.productModal['vip']['planId'] = item.planId
this.getCase(item.planId) this.getCase(item.planId)
} else if (item.packageName.includes('盗抢')) { } else if (item.packageName.includes('盗抢')) {
item.idName = 'stolen' item.idName = 'stolen'
...@@ -1194,24 +1200,6 @@ export default { ...@@ -1194,24 +1200,6 @@ export default {
item.idName = 'glass' item.idName = 'glass'
} }
} }
// if (item.packageName.includes('整车全损')) {
// item.idName = 'car'
// } else if (item.packageName.includes('轮胎')) {
// item.idName = 'tire'
// } else if (item.packageName.includes('碰撞')) {
// item.idName = 'crash'
// this.productModal[item.idName]['planId'] = item.planId
// this.productModal['vip']['planId'] = item.planId
// this.getCase(item.planId)
// } else if (item.packageName.includes('盗抢')) {
// item.idName = 'stolen'
// } else if (item.packageType == 1) {
// item.idName = 'vip'
// } else if (item.packageName.includes('玻璃')) {
// this.vailGlassName = item.packageName // 备用
// this.vailGlassCode = item.packageCode
// item.idName = 'glass'
// }
item.disabled = false item.disabled = false
item.serviceItems = item.serviceItemsList.length ? item.serviceItemsList.map(k => k.serviceName).join(',') : '' item.serviceItems = item.serviceItemsList.length ? item.serviceItemsList.map(k => k.serviceName).join(',') : ''
let newArr = [] let newArr = []
...@@ -1229,31 +1217,35 @@ export default { ...@@ -1229,31 +1217,35 @@ export default {
} }
e.optionList = [...arr] e.optionList = [...arr]
this.serviceObj[item.packageCode] = item.servicePeriod this.serviceObj[item.packageCode] = item.servicePeriod
this.productModal[item.idName][e.attributeName] = '1' // this.productModal[item.idName][e.attributeName] = '1'
this.$set(this.productModal[item.idName],`${e.attributeName}`,'1')
} else if (e.attributeDesc == '购车类型') { } else if (e.attributeDesc == '购车类型') {
e.optionList = this.baseData.buyCarTypeList e.optionList = this.baseData.buyCarTypeList
this.productModal[item.idName][e.attributeName] = '0' // this.productModal[item.idName][e.attributeName] = '0'
} else if ((item.idName == 'tire' || item.idName == 'crash' || item.idName == 'vip' || item.idName == 'glass') && e.attributeDesc == '服务期限') { this.$set(this.productModal[item.idName],`${e.attributeName}`,'0')
} else if ((item.idName == 'tire' || item.idName == 'crash' || item.idName == `vip${item.packageCode}` || item.idName == 'glass') && e.attributeDesc == '服务期限') {
if (item.idName == 'tire' || item.idName == 'crash') { if (item.idName == 'tire' || item.idName == 'crash') {
e.optionList = this.baseData.servicePeriodList e.optionList = this.baseData.servicePeriodList
} else { } else {
e.optionList = this.baseData.servicePeriodList2 e.optionList = this.baseData.servicePeriodList2
} }
e.disabled = true e.disabled = true
// v3.1.2--新版的定制权益-服务期限--改为1,2,3年---旧版的依然是一年 // v3.1.2--新版的定制权益-服务期限--改为1,2,3年---旧版的依然是一年
let isOld = item.packageName.includes('尊享版') || item.packageName.includes('舒享版') || item.packageName.includes('优享版') let isOld = item.packageName.includes('尊享版') || item.packageName.includes('舒享版') || item.packageName.includes('优享版')
if(item.idName == 'vip' && !isOld){ if (item.idName == `vip${item.packageCode}` && !isOld) {
e.disabled = false e.disabled = false
e.optionList = this.baseData.servicePeriodList e.optionList = this.baseData.servicePeriodList
} }
this.productModal[item.idName][e.attributeName] = '1' // this.productModal[item.idName][e.attributeName] = '1'
this.$set(this.productModal[item.idName],`${e.attributeName}`,'1')
} else if (e.attributeDesc == '生效日期') { } else if (e.attributeDesc == '生效日期') {
let nextDay = new Date().getTime() + 24 * 60 * 60 * 1000 let nextDay = new Date().getTime() + 24 * 60 * 60 * 1000
this.productModal[item.idName][e.attributeName] = utils.dateFormat(nextDay) // this.productModal[item.idName][e.attributeName] = utils.dateFormat(nextDay)
this.$set(this.productModal[item.idName],`${e.attributeName}`,utils.dateFormat(nextDay))
if (item.idName == 'glass') { if (item.idName == 'glass') {
let tAdd2 = new Date().getTime() + 24 * 60 * 60 * 1000 * 2 let tAdd2 = new Date().getTime() + 24 * 60 * 60 * 1000 * 2
this.productModal[item.idName][e.attributeName] = utils.dateFormat(tAdd2) // this.productModal[item.idName][e.attributeName] = utils.dateFormat(tAdd2)
this.$set(this.productModal[item.idName],`${e.attributeName}`,utils.dateFormat(tAdd2))
e.disabled = true e.disabled = true
} }
} }
...@@ -1314,7 +1306,7 @@ export default { ...@@ -1314,7 +1306,7 @@ export default {
}) })
}, },
getInfo(productArrData) { getInfo(productArrData) {
this.$apis.beforeSale.getEquityApi({ contractNo: this.routeInfo.contractNo }).then(res => { this.$apis.beforeSale.getEquityApi({ contractNo: this.routeInfo.contractNo, repeatedFlag: this.routeInfo.addOrEdit == 4 ? 1 : 0 }).then(res => {
this.editForm = { this.editForm = {
...res ...res
} }
...@@ -1355,6 +1347,7 @@ export default { ...@@ -1355,6 +1347,7 @@ export default {
if ([2, 4].includes(this.routeInfo.addOrEdit)) { if ([2, 4].includes(this.routeInfo.addOrEdit)) {
this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1)) this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1))
} }
this.dataSourceDisable = res.dataSource == 'car'
this.editForm.packageCode && this.packageAttr(true, productArrData, res) this.editForm.packageCode && this.packageAttr(true, productArrData, res)
const spaItem = this.baseData.agreeList.find(item => item.id == this.editForm.specialAppointId) const spaItem = this.baseData.agreeList.find(item => item.id == this.editForm.specialAppointId)
if (spaItem) { if (spaItem) {
...@@ -1399,140 +1392,160 @@ export default { ...@@ -1399,140 +1392,160 @@ export default {
} }
}, },
packageAttr(recovery = false, productArrData, detailInfo) { packageAttr(recovery = false, productArrData, detailInfo) {
var targetItem = productArrData.find(item => item.packageCode == this.editForm.packageCode) // 2023 7月底版本 改版
if (targetItem.packageType == 1) { let attrList = [],
this.equityRadio = 2 packCode = []
this.curSelectCustomPro = targetItem.packageName detailInfo.attributes.forEach(item => {
this.editForm.attributeList.forEach(item => { let targetItem = productArrData.find(k => k.packageCode == item.packageCode)
if (item.attributeName.includes('price')) { const defalutAttr = this.handleDefaultValue(targetItem, item.attributeDTOList)
item.attributeValue = item.attributeValue / 100 if (defalutAttr.length) {
} item.attributeDTOList = [...defalutAttr,...item.attributeDTOList]
if (item.attributeName == 'tireScale' && item.sort == 1) {
item.attributeName = 'afterTireScale'
}
if (item.attributeName == 'buy_car_type' && item.attributeValue == 1) {
this.compensationNameDisable = true
}
this.productModal.vip[item.attributeName] = item.attributeValue
})
if (this.routeInfo.addOrEdit == 3) {
this.leftDisable = true
this.customProductList.map(item => {
item.disabled = true
item.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period') {
ele.disabled = true
}
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date') {
ele.disabled = true
}
})
return item
})
} }
} else { if (targetItem.packageType == 1) {
this.equityRadio = 1 this.equityRadio = 2
this.curSelectPro = [targetItem.packageName] this.curSelectCustomPro.push(targetItem.packageName)
this.editForm.attributeList.forEach(item => { this.curSelectCustomPro = Array.from(new Set(this.curSelectCustomPro))
if (item.attributeName.includes('price')) { item.attributeDTOList.forEach(a => {
item.attributeValue = item.attributeValue / 100 if (a.attributeName.includes('price')) {
} else if (item.attributeName == 'planId') { a.attributeValue = a.attributeValue / 100
this.getCase(parseInt(item.attributeValue)) }
if (a.attributeName == 'tireScale' && a.sort == 1) {
a.attributeName = 'afterTireScale'
}
if (a.attributeName == 'buy_car_type' && a.attributeValue == 1) {
this.compensationNameDisable = true
}
this.productModal[`vip${item.packageCode}`][a.attributeName] = a.attributeValue
})
if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) {
this.leftDisable = true
this.customProductList.map(c => {
c.disabled = true
c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' &&(this.routeInfo.addOrEdit >2)) {
ele.disabled = true
}
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date'&&this.routeInfo.addOrEdit==3) {
ele.disabled = true
}
})
return c
})
} }
if (item.attributeName == 'tireScale' && item.sort == 1) { if (this.routeInfo.addOrEdit == 2) {
item.attributeName = 'afterTireScale' this.customProductList.map(c => {
c.disabled = true
c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
ele.disabled = true
this.leftDisable = true
}
})
return c
})
} }
if (item.attributeName == 'buy_car_type' && item.attributeValue == 1) { } else {
this.compensationNameDisable = true this.equityRadio = 1
this.curSelectPro.push(targetItem.packageName)
this.curSelectPro = Array.from(new Set(this.curSelectPro))
item.attributeDTOList.forEach(b => {
if (b.attributeName.includes('price')) {
b.attributeValue = b.attributeValue / 100
} else if (b.attributeName == 'planId') {
this.getCase(parseInt(b.attributeValue))
}
if (b.attributeName == 'tireScale' && b.sort == 1) {
b.attributeName = 'afterTireScale'
}
if (b.attributeName == 'buy_car_type' && b.attributeValue == 1) {
this.compensationNameDisable = true
}
this.productModal[targetItem.idName][b.attributeName] = b.attributeValue
})
if (this.routeInfo.addOrEdit == 3 || this.routeInfo.addOrEdit == 4) {
this.rightDisable = true
this.productList.map(d => {
d.disabled = true
d.groupAttributeList.map(elee => {
if (elee.attributeName == 'service_period' &&(this.routeInfo.addOrEdit >2)) {
elee.disabled = true
}
if (elee.attributeName == 'card') {
elee.disabled = true
}
if (elee.attributeName == 'effective_date'&&this.routeInfo.addOrEdit==3) {
elee.disabled = true
}
if (elee.attributeName == 'buy_car_type' && elee.attributeValue == 1) {
elee.disabled = true
}
})
return d
})
} }
this.productModal[targetItem.idName][item.attributeName] = item.attributeValue if (this.routeInfo.addOrEdit == 2) {
}) this.productList.map(c => {
if (this.routeInfo.addOrEdit == 3) { c.disabled = true
this.rightDisable = true c.groupAttributeList.map(ele => {
this.productList.map(item => { if (ele.attributeName == 'service_period' && this.dataSourceDisable) {
item.disabled = true ele.disabled = true
this.rightDisable = true
item.groupAttributeList.map(ele => { }
if (ele.attributeName == 'service_period') { })
ele.disabled = true return c
}
if (ele.attributeName == 'card') {
ele.disabled = true
}
if (ele.attributeName == 'effective_date') {
ele.disabled = true
}
if (ele.attributeName == 'buy_car_type' && ele.attributeValue == 1) {
ele.disabled = true
}
}) })
}
}
return item packCode.push(item.packageCode)
item.attributeDTOList.forEach(el => {
attrList.push({
...el,
packageCode: item.packageCode,
contractNo: item.contractNo
}) })
}
}
// this.packageToPrice()
// var tempObj = this.$common.utils.deepClone(this.editFormPro)
let attrList = []
detailInfo.attributeList.forEach(item => {
attrList.push({
...item,
packageCode: detailInfo.packageCode
}) })
}) })
if (this.equityRadio == 1) { if (this.equityRadio == 1) {
this.tempAttributeList = attrList this.tempAttributeList = attrList
this.packageCodeList = [detailInfo.packageCode] this.packageCodeList = packCode
} else { } else {
this.autoAttriButeList = attrList this.autoAttriButeList = attrList
this.autoPackageCodeList = [detailInfo.packageCode] this.autoPackageCodeList = packCode
} }
this.checkCodeList = [detailInfo.packageCode] this.checkCodeList = packCode
this.handleProductArrParam(attrList, [detailInfo.packageCode]) this.handleProductArrParam(attrList, packCode)
// this.editRulePro = {}
// this.editFormPro = {}
// var attrName = ''
// targetItem &&
// targetItem.groupAttributeList.forEach(item => {
// if (item.attributeList.length == 1) {
// attrName = item.attributeList[0].attributeName
// this.$set(this.editFormPro, attrName, tempObj.hasOwnProperty(attrName) ? tempObj[attrName] : '')
// if (item.attributeList[0].required == 1) {
// this.editRulePro[item.attributeList[0].attributeName] = [
// {
// required: true,
// message: '请输入' + item.attributeList[0].attributeDesc,
// trigger: 'change'
// }
// ]
// }
// } else {
// for (var i = 0; i < item.num; i++) {
// item.attributeList.forEach(k => {
// attrName = k.attributeName
// this.$set(this.editFormPro, attrName + i, tempObj.hasOwnProperty(attrName + i) ? tempObj[attrName + i] : '')
// })
// }
// }
// })
// if (recovery) {
// this.recoveryEditFormPro()
// }
}, },
recoveryEditFormPro() { // 处理默认值赋值
this.editForm.attributeList.length && handleDefaultValue(targetItem, attributeDTOList) {
this.editForm.attributeList.forEach((item, idx) => { const currentPackageValue = this.productModal[targetItem.idName]
let hashObj = {} const groupAttributeList = targetItem.groupAttributeList
this.editForm.attributeList let tempArr = [],
.map(i => i.attributeName) result = []
.forEach((i, subIdx) => { for (let key in currentPackageValue) {
Object.keys(hashObj).includes(i) ? (hashObj[i] = hashObj[i] + 1) : (hashObj[i] = 1) for (let i = 0; i < groupAttributeList.length; i++) {
}) if (key === groupAttributeList[i].attributeName) {
this.$set(this.editFormPro, hashObj[item.attributeName] != 1 ? item.attributeName + item.sort : item.attributeName, item.attributeValue) let obj = {
attributeGroup: key,
attributeName: key,
attributeValue: currentPackageValue[key],
sort: 0
}
tempArr.push(obj)
}
}
}
tempArr.forEach(el => {
attributeDTOList.forEach(item => {
if (item.attributeName !== el.attributeName) {
result.push(el)
}
}) })
})
return result
}, },
autoGenerate(arr1, arr2) { autoGenerate(arr1, arr2) {
const tempList = arr1.concat(arr2) const tempList = arr1.concat(arr2)
...@@ -1540,59 +1553,6 @@ export default { ...@@ -1540,59 +1553,6 @@ export default {
return return
} }
this.routeInfo.addOrEdit != '1' ? this.getInfo(tempList) : '' this.routeInfo.addOrEdit != '1' ? this.getInfo(tempList) : ''
// var tempList = []
// this.packageList.forEach(item => {
// tempList = []
// item.groupAttributeList.forEach((k, idx) => {
// if (k.attributeList.length == 1) {
// tempList.push({
// label: k.attributeList[0].attributeDesc,
// name: k.attributeList[0].attributeName,
// type: k.attributeList[0].attributeType,
// isDisabled: this.disabled || this.successDisable,
// maxlength: k.attributeList[0].maxLength
// })
// if (k.attributeList[0].attributeType == 'datePicker') {
// tempList[idx].dateType = 'date'
// ;(tempList[idx].valueFormat = 'yyyy-MM-dd'), (tempList[idx].pickerOptions = 'beforeRangePickerOptions')
// }
// } else {
// var tableList = []
// for (var i = 0; i < k.num; i++) {
// tableList[i] = []
// k.attributeList.forEach((j, index) => {
// tableList[i].push({
// groupName: j.groupName,
// attributeDesc: j.attributeDesc,
// attributeName: j.attributeName,
// name: j.attributeName + i,
// sort: i,
// attributeGroup: j.attributeGroup,
// maxlength: j.maxLength,
// required: j.required,
// attributeType: j.attributeType,
// isDisabled: this.disabled || this.successDisable
// })
// })
// }
// tempList.push({
// label: '',
// name: '',
// addHtml: 'table',
// attributeList: k.attributeList,
// tableList: tableList
// })
// }
// })
// this.editFormDataPro[0].optionList.push({
// packageCode: item.packageCode,
// packageName: item.packageName,
// serviceItems: item.serviceItemsList.length ? item.serviceItemsList.map(k => k.serviceName).join(',') : '',
// serviceItemsList: item.serviceItemsList,
// groupAttributeList: item.groupAttributeList,
// editFormData: this.$common.utils.deepClone(tempList)
// })
// })
}, },
getOptionsList(formName, hasAll = true, refreshSigle) { getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
...@@ -1752,6 +1712,7 @@ export default { ...@@ -1752,6 +1712,7 @@ export default {
} }
this.submit = true this.submit = true
var params = this.getParams() var params = this.getParams()
delete params.attributes
params.operationType = 0 params.operationType = 0
if (this.routeInfo.addOrEdit == '2') { if (this.routeInfo.addOrEdit == '2') {
params.contractNo = this.routeInfo.contractNo params.contractNo = this.routeInfo.contractNo
...@@ -1768,6 +1729,7 @@ export default { ...@@ -1768,6 +1729,7 @@ export default {
if (!params.sn) { if (!params.sn) {
delete params.sn delete params.sn
} }
params.dataSource = this.editForm.dataSource || ''
this.$apis.beforeSale.updateEquityApi(params).then(res => { this.$apis.beforeSale.updateEquityApi(params).then(res => {
this.submit = false this.submit = false
...@@ -1839,6 +1801,7 @@ export default { ...@@ -1839,6 +1801,7 @@ export default {
return true return true
} }
var params = this.getParams() var params = this.getParams()
delete params.attributes
params.operationType = 1 params.operationType = 1
if ([2, 3, 4].includes(this.routeInfo.addOrEdit)) { if ([2, 3, 4].includes(this.routeInfo.addOrEdit)) {
if (this.routeInfo.addOrEdit == 4 && this.editForm.orderStatus != 3) { if (this.routeInfo.addOrEdit == 4 && this.editForm.orderStatus != 3) {
...@@ -1910,7 +1873,6 @@ export default { ...@@ -1910,7 +1873,6 @@ export default {
crash: {}, crash: {},
stolen: {}, stolen: {},
tire: {}, tire: {},
vip: {},
glass: {} glass: {}
} }
this.customProductList = [] this.customProductList = []
......
<template>
<el-drawer ref="drawerRef" class="shoppingCartDrawerCon" v-bind="$attrs" title="收货地址管理" size="774px"
:direction="direction" :before-close="cancel">
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="154px" defaultWidth="432px"
:formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<span slot="provincesAndCities">
<el-cascader v-model="editForm.provincesAndCities" size="mini" ref="cascader" placeholder="请选择 省/市/区"
style="width:432px" :options="provincesAndCities_options"
:props="{ label: 'name', value: 'code', children: 'childrenList' }" />
</span>
</glsx-combi-form>
<div class="footer-btn">
<span class="btn">
<el-button size="small" @click="cancel">取消</el-button>
<el-button size="small" @click="submit" type="primary">保存</el-button>
</span>
</div>
</el-drawer>
</template>
<script>
import glsxCombiForm from '@/components/glsx-combi-form'
export default {
name: 'AddressCom',
components: { glsxCombiForm },
props: {
addressInfo: {
type: Object,
default: () => {
return {}
}
}
},
data() {
let checkPhone = (rule, value, callback) => {
if (!this.validPhone(value)) {
callback(new Error('请输入正确的手机号码'))
return false
}
callback()
}
return {
direction: 'rtl',
editFormData: [
{
label: '收货人',
name: 'contactName',
type: 'input',
maxlength: 10,
placeholder: '请输入姓名'
},
{
label: '收货人电话',
name: 'contactPhone',
type: 'input',
maxlength: 20,
placeholder: '请输入电话号码'
},
{
label: '收货地址',
name: 'provincesAndCities',
type: 'other',
addHtml: 'provincesAndCities'
},
{
label: '',
name: 'contactAddress',
type: 'input',
maxlength: 50,
placeholder: '请输入收货地址',
inputType: 'textarea',
rows: 3,
style: {
'padding-left': '154px'
}
}
],
editForm: {
contactName: '',
contactPhone: '',
contactAddress: '',
provincesAndCities: []
},
provincesAndCities_options: [],
editRule: {
contactName: [{ required: true, message: '请输入姓名', trigger: 'change' }],
contactPhone: [
{ required: true, message: '请输入电话号码', trigger: 'change' },
{ validator: checkPhone, trigger: 'blur' }
],
contactAddress: [{ required: true, message: '请输入收货地址', trigger: 'change' }],
provincesAndCities: [{ required: true, message: '请选择省市区', trigger: 'change' }]
},
editChildRef: 'editChildRef'
}
},
watch: {
addressInfo: {
immediate: true,
handler(val) {
if (val) {
this.editForm = this.$common.utils.deepClone(this.addressInfo)
this.editForm.provincesAndCities = [String(this.editForm.provinceId), String(this.editForm.cityId), String(this.editForm.areaId)]
} else {
this.editForm = {}
}
}
}
},
created() {
this.getAreaInfo()
},
methods: {
// 获取省市区信息
getAreaInfo() {
this.$apis.purchase.getAreaInfoApi({ areaType: '2' }).then(res => {
this.provincesAndCities_options = res.areaList
})
},
getProvincesAndCities() {
const nodesInfo = this.$refs.cascader.getCheckedNodes()
if (nodesInfo.length == 0 || Object.prototype.toString.call(nodesInfo[0]) != '[object Object]') {
return
}
this.editForm.provinceId = nodesInfo[0].pathNodes[0].value
this.editForm.provinceName = nodesInfo[0].pathNodes[0].label
this.editForm.cityId = nodesInfo[0].pathNodes[1].value
this.editForm.cityName = nodesInfo[0].pathNodes[1].label
this.editForm.areaId = nodesInfo[0].pathNodes[2].value
this.editForm.areaName = nodesInfo[0].pathNodes[2].label
},
submit() {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) {
this.getProvincesAndCities()
const params = this.$common.utils.deepClone(this.editForm)
delete params.provincesAndCities
this.$apis.purchase
.addressSave(params)
.then(result => {
this.$notify({
type: 'success',
title: '保存成功'
})
this.$parent.addressComVisible = false
this.$emit('handleConfirmAddress')
})
.catch(err => { })
}
})
},
cancel() {
this.$parent.addressComVisible = false
},
validPhone(mobile) {
const myreg =
/^(13[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9]|14[0-9])[0-9]{8}$/
return myreg.test(mobile)
}
}
}
</script>
<style lang="scss" scoped>
.shoppingCartDrawerCon {
// position: relative;
/deep/ .el-drawer__header {
border-bottom: 1px solid #e7eaec;
margin-bottom: 20px;
padding-bottom: 10px;
font-weight: 600;
font-size: 20px;
}
/deep/ .el-textarea {
width: 580px!important;
.el-textarea__inner {
height: auto !important;
}
}
.footer-btn {
width: 774px;
height: 64px;
border-radius: 4px;
border-top: 1px solid #E5E5E5;
position: fixed;
bottom: 0;
text-align: right;
line-height: 64px;
.btn {
text-align: right;
margin-right: 20px;
}
}
}
</style>
...@@ -65,6 +65,7 @@ const SERCH_GOODSNAME = { ...@@ -65,6 +65,7 @@ const SERCH_GOODSNAME = {
type: 'input', type: 'input',
isClear: true isClear: true
} }
const DISABLE_MERCHANTID =[44191564,44191528,44191536,44184606,44209510]
export default { export default {
name: '', name: '',
props: { props: {
...@@ -315,6 +316,7 @@ export default { ...@@ -315,6 +316,7 @@ export default {
created() { created() {
this.tableParams = this.tableParams2 this.tableParams = this.tableParams2
const { session } = this.$globalState const { session } = this.$globalState
this.merchantId = session.merchantId
this.accountLevel = session.accountLevel this.accountLevel = session.accountLevel
this.isAdmin = session.admin this.isAdmin = session.admin
// 1.工厂 2省代 3市代 4门店 // 1.工厂 2省代 3市代 4门店
...@@ -440,8 +442,11 @@ export default { ...@@ -440,8 +442,11 @@ export default {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startdate = utils.dateFormat(openInfo.openDate, 'YYYY-MM-DD 00:00:00') let startdate = utils.dateFormat(openInfo.openDate, 'YYYY-MM-DD 00:00:00')
let endDate = utils.dateFormat(new Date(), 'YYYY-MM-DD 23:59:59') let endDate = utils.dateFormat(new Date(), 'YYYY-MM-DD 23:59:59')
params.paySuccessDateStartDate = startdate const ISEXIT = DISABLE_MERCHANTID.includes(Number(this.merchantId))
params.paySuccessDateEndDate = endDate if(!ISEXIT){
params.paySuccessDateStartDate = startdate
params.paySuccessDateEndDate = endDate
}
return params return params
}, },
getCurStoreId(e) { getCurStoreId(e) {
......
<!-- 评价管理-->
<template>
<div class="purchase-wrap">
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData"
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<h2>订单列表</h2>
<el-button size="small" @click="exportExcel">导出</el-button>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="status" slot-scope="scope">
<div>
<span v-if="scope.scope.status" :class="Spot[scope.scope.status - 1]"></span>
<span> {{ scope.scope.status | orderStatus }}</span>
</div>
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" v-if="scope.scope.status == 1" @click="handleCancel(scope.scope)">取消</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
</div>
</template>
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { statusList } from '@/common/constant.js'
export default {
name: 'order',
data() {
return {
size: 'small',
url: url,
Spot: ['yellowSpot', 'greenSpot', 'ashSpot','redSpot'],
searchForm: {
status: '',
upgradeGoodsName: '',
type: '',
merchantName: '',
sortType: 1,
orderTimeStr: [],
placeOrderTimeStr: [],
},
tableSearchForm: {},
paramsObj: {},
// 查看门店
detailVisible: false,
showFormData: [
{
label: '下单时间',
name: 'placeOrderTimeStr',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '下单商户',
name: 'merchantName',
type: 'input',
isClear: true,
maxlength: 50
},
{
label: '商品名称',
name: 'upgradeGoodsName',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '商品编号',
name: 'type',
type: 'input',
isClear: true,
maxlength: 50
},
{
label: '状态',
name: 'status',
type: 'select',
optionList: [],
optionId: 'id',
optionLabel: 'label',
optionsName: 'statusList'
},
],
// 表格
getListApi: this.$apis.purchase.getPurchaseOrderList,
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '下单时间',
prop: 'orderTime',
formatter: cellValue => {
return dayjs(cellValue.orderTime).format('YYYY-MM-DD HH:mm:ss')
},
width: 180
},
{
label: '下单商户',
prop: 'merchantName',
line: 1,
width: 150
},
{
label: '收货人',
prop: 'contactName'
},
{
label: '收货人电话',
prop: 'contactPhone',
width: 120
},
{
label: '收货地址',
prop: 'contactAddress',
line: 1,
width: 150
},
{
label: '商品名称',
prop: 'upgradeGoodsName',
line: 1,
width: 120
},
{
label: '商品编码',
prop: 'type',
line: 1,
width: 100
},
{
label: '采购数量',
prop: 'goodsNumber'
},
{
label: '采购价/元',
prop: 'shopPurchasePrice',
formatter: cellValue => {
return '¥' + cellValue.shopPurchasePrice
}
},
{
label: '采购总价/元',
prop: 'totalPrice',
formatter: cellValue => {
return '¥' + cellValue.totalPrice
},
width: 120
},
{
label: '状态',
prop: 'status',
addHtml: 'status'
},
{
label: '说明',
prop: 'rejectCause',
},
{
label: '操作',
width: '80px',
addHtml: 'auth-button'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据
baseData: {
statusList: statusList
}
}
},
mounted() {
this.getOptionsList('showFormData')
},
methods: {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.placeOrderTimeStr.length) {
params.orderTimeStr[0] = new Date(this.searchForm.placeOrderTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.orderTimeStr[1] = new Date(this.searchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
delete params.placeOrderTimeStr
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
delete this.tableSearchForm.placeOrderTimeStr
resolve()
})
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: action => {
if (action == 'confirm') {
this.$apis[apiModule][apiName](apiParams).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
fn && fn()
this.handleSearch()
}
})
}
}
})
},
//取消
handleCancel(row) {
this.secondConfirm('取消', '订单取消后即自动作废该订单,且无法撤回。是否确定取消?', 'purchase', 'purchaseOrderCancelOrCheck', { id: row.id })
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName] && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.orderRef.data.length ? (this.$refs.orderRef.tableHeightValues = '') : this.$refs.orderRef.setTableHeightFun()
},
exportExcel() {
var params = this.getParams()
this.$apis.purchase.exportExcel(params).then(res => {
window.location.href = res
})
},
handleSearch() {
this.$refs.orderRef.refreshTable()
},
handleReset() {
this.searchForm = {
status: '',
upgradeGoodsName: '',
type: '',
merchantName: '',
sortType: 1,
orderTimeStr: [],
placeOrderTimeStr: [],
}
this.handleSearch()
}
}
}
</script>
<style scoped lang="scss">
@mixin dot {
width: 6px;
height: 6px;
border-radius: 50%;
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}
$color-yellow: #fdb757;
$color-green: #2cca74;
$color-gray: #999;
$color-red: #EB4E4E;
.purchase-wrap {
background-color: #fff;
padding: 20px;
.table-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
margin-top: 20px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333;
}
}
.greenSpot {
@include dot;
background: $color-green;
}
.yellowSpot {
@include dot;
background: $color-yellow;
}
.ashSpot {
@include dot;
background: $color-gray;
}
.redSpot {
@include dot;
background: $color-red;
}
.table-btns /deep/.el-button--text {
min-width: 0 !important;
padding: 0;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="purchase-wrap">
<div class="purchase-head">
<div class="addressTitle">
<img src="@/assets/addressIcon.webp" alt="" class="icon" />
<span class="title">{{ addressInfo.yqMerchantName }}</span>
<span class="edit pointer" @click="addressComVisible = true">
<img src="@/assets/editAddressIcon.webp" alt="" class="editIcon" />
修改
</span>
</div>
<div class="addressInfo">
<!-- 收货人:白敬亭 -->
<span class="name">
收货人:
<span class="label">{{ addressInfo.contactName }}</span>
</span>
<span class="phone">
电话:
<span class="label">{{ addressInfo.contactPhone }}</span>
</span>
<span class="address">
收货地址:
<span class="label">{{ addressInfo.provinceName }}{{ addressInfo.cityName }}{{ addressInfo.areaName }}{{
addressInfo.contactAddress }}</span>
</span>
</div>
</div>
<div class="mall-wrap">
<div class="searchCon">
<el-form :inline="true" size="small" :model="searchForm" class="demo-form-inline">
<el-form-item>
<el-input v-model="searchForm.upgradeGoodsName" placeholder="请输入商品名称"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
</div>
<div class="goodsCon">
<div class="goodsItemCon" v-for="(item, index) in purchaseList"
:class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index">
<!-- 图片{{ item.thumbUrl }} -->
<img :src="item.goodsInfo.thumbUrl ? item.goodsInfo.thumbUrl : defaultImg" class="img" alt="" />
<span class="goodsName one-line-ellipsis">{{ item.upgradeGoods.upgradeGoodsName }}</span>
<!-- 名称{{ item.goodsName }} -->
<span class="purchaseOrderCount">编码:{{ item.upgradeGoods.type }}</span>
<!-- 成交量{{ item.purchaseOrderCount }} -->
<div class="viewPurchase">
<div>¥{{ item.shopPurchasePrice }}<span class="purchaseOrderCount">/ {{
membraneTypeList.includes(item.goodsInfo.goodsType) ? `卷` : '件' }}</span></div>
<div class="pointer" @click="handleDetail(item)">购买</div>
</div>
</div>
<div class="emptyCom" v-show="!purchaseList.length">
<img :src="emptyImgUrl" class="emptyImg" alt="" />
<span class="tips">暂无数据</span>
</div>
</div>
<div class="pageCon">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange"
:current-page="page.currentPage" :page-sizes="[20, 40, 60, 100]" :page-size="page.pageSize"
:total="total" layout="total, sizes, prev, pager, next, jumper" />
</div>
</div>
<address-com :visible.sync="addressComVisible" @handleConfirmAddress="getAddressInfo" :address-info="addressInfo" />
<!--商品购买 -->
<GLDialog title="商品购买" :visible.sync="isBuy" mode="mid" :close-on-click-modal="false" :before-close="handleClose">
<div class="gl-form-page gl-form-min">
<el-form ref="form" label-width="94px" size="small">
<el-form-item label="购买数量:">
<el-input-number v-model="goodsNumber" @change="handleChange" :min="1"
:max="9999"></el-input-number> {{
membraneTypeList.includes(goodsInfo.goodsInfo && goodsInfo.goodsInfo.goodsType) ?
`卷(1卷=${goodsInfo.goodsInfo && goodsInfo.goodsInfo.convertedValue || 30}米)` : '件' }}
</el-form-item>
</el-form>
</div>
<div slot="footer" class="footer-wrap">
<div class="total">共计:<span>¥{{ totalPrice }}</span></div>
<div>
<el-button size="small" @click="handleClose">取消</el-button>
<el-button type="primary" size="small" @click="isSettle = true">确定</el-button>
</div>
</div>
</GLDialog>
<!--结算 -->
<el-drawer class="drawer-wrap" title="结算确认" size="774px" :visible.sync="isSettle" :direction="direction"
:before-close="handleSettleClose">
<div class="title-wrap">
<i class="el-icon-warning"></i>
<div class="info">确定要结算订单吗?</div>
</div>
<div class="receiving-info">
<div class="receiving-info-title flex">
<div>请核对收货仓信息</div>
<div class="edit flex" @click="addressComVisible = true"> <img src="@/assets/editAddressIcon.webp"
alt="" class="editIcon" />修改</div>
</div>
<div class="address-info">
<template v-for="(item, index) in addressList">
<div class="flex mb16" :key="index"><label>{{ item.label }}:</label>
<span class="conten" v-if="item.name == 'contactAddress'">{{ addressInfo.provinceName }}{{
addressInfo.cityName }}{{ addressInfo.areaName }}{{ addressInfo.contactAddress }}</span>
<span v-else>{{ addressInfo[item.name]
}}</span>
</div>
</template>
</div>
</div>
<div class="footer-btn">
<span class="btn">
<el-button size="small" @click="isSettle = false">取消</el-button>
<el-button type="primary" size="small" :loading="throttleSubmit" @click="handleSubmit">确定</el-button>
</span>
</div>
</el-drawer>
</div>
</template>
<script>
import AddressCom from './components/addressCom.vue'
import BigNumber from 'bignumber.js'
export default {
components: {
AddressCom
},
data() {
return {
emptyImgUrl: require('@/assets/empty.png'),
defaultImg: require('@/assets/default.png'),
addressComVisible: false,
addressInfo: {},
purchaseList: [],
searchForm: {
upgradeGoodsName: ''
},
total: 0,
page: {
currentPage: 1,
pageSize: 20
},
goodsInfo: {
},
goodsNumber: 1,
isBuy: false,
membraneTypeList: [1, 4, 6, 12, 14],
isSettle: false,
direction: 'rtl',
throttleSubmit: false,
addressList: [
{
label: '店铺名称',
name: 'yqMerchantName'
},
{
label: '店铺编号',
name: 'yqMerchantId'
},
{
label: '收货人',
name: 'contactName'
},
{
label: '收货人电话',
name: 'contactPhone'
},
{
label: '收货地址',
name: 'contactAddress'
}
]
}
},
created() {
this.getAddressInfo()
this.listWithPagePurchaseInfo()
},
computed: {
totalPrice() {
return new BigNumber(this.goodsInfo.shopPurchasePrice)
.times(this.goodsNumber)
.dp(2)
.toNumber()
}
},
methods: {
getAddressInfo() {
this.$apis.purchase
.addressGet()
.then(result => {
if (result) {
this.addressInfo = result
}
})
.catch(err => {
console.log(err)
})
},
listWithPagePurchaseInfo() {
const { merchantId } = this.$globalState.session
const params = {
...this.page,
upgradeGoodsName: this.searchForm.upgradeGoodsName,
status: 2,
shopMerchantIdList: [merchantId]
}
this.$apis.purchase
.listWithPagePurchaseInfo(params)
.then(result => {
const { list, total } = result
this.purchaseList = list
this.total = total
})
.catch(err => {
console.log(err)
})
},
handleSearch() {
this.page.currentPage = 1
this.listWithPagePurchaseInfo()
},
handleRest() {
this.searchForm.upgradeGoodsName = ''
this.page.currentPage = 1
this.listWithPagePurchaseInfo()
},
handleDetail(item) {
const { provinceName } = this.addressInfo
if (provinceName == null) {
this.$message.error('请先完善收货地址')
return
}
this.goodsInfo = item
this.totalPrice = new BigNumber(this.goodsInfo.shopPurchasePrice)
.times(this.goodsNumber)
.dp(2)
.toNumber()
this.isBuy = true
},
// 每页条数
handleSizeChange(value) {
this.page.pageSize = value
this.listWithPagePurchaseInfo()
},
// 页码
handleCurrentChange(value) {
this.page.currentPage = value
this.listWithPagePurchaseInfo()
},
handleSubmit() {
this.throttleSubmit = true
const { contactAddress, contactName, contactPhone, provinceId, provinceName, cityId, cityName, areaId, areaName } = this.addressInfo
const params = {
purchaseMallId: this.goodsInfo.id,
goodsNumber: this.goodsNumber,
contactAddress: provinceName + cityName + areaName + contactAddress,
contactName,
contactPhone,
provinceId,
provinceName,
cityId,
cityName,
areaId,
areaName
}
if (provinceName == null) {
this.$message.error('请先完善收货地址')
return
}
this.throttleSubmit = true
this.$apis.purchase.purchaseOrderAdd(params).then(result => {
if (result) {
this.isBuy = false
this.isSettle = false
this.$message.success('提交成功')
}
}).catch(err => {
this.$message.error(err)
}).finally(() => {
this.throttleSubmit = false
})
},
handleChange() {
},
handleClose() {
this.goodsNumber = 1
this.isBuy = false
},
handleSettleClose() {
this.isSettle = false
}
}
}
</script>
<style lang="scss" scoped>
.purchase-wrap {
padding: 16px 20px;
background: #fff;
.purchase-head {
background: #F9F9F9;
padding: 10px 20px;
.addressTitle {
display: flex;
align-items: center;
.title {
font-weight: 600;
font-size: 16px;
color: #333333;
}
.edit {
display: flex;
align-items: center;
margin-left: auto;
font-size: 14px;
color: #5850ff;
cursor: pointer;
}
.editIcon {
width: 20px;
height: 20px;
}
.icon {
width: 32px;
height: 32px;
margin-right: 8px;
}
}
}
.addressInfo {
display: flex;
box-sizing: border-box;
flex-wrap: wrap;
align-items: center;
padding: 8px 20px;
background: #F3F3F3;
font-size: 14px;
color: #666666;
margin-top: 10px;
span {
margin-right: 25px;
}
.label {
color: #333333;
// margin-left: 0px;
}
.address {
min-width: 500px;
}
}
.mall-wrap {
// max-width: 1350px;
margin: 0 auto;
overflow: scroll;
margin-top: 16px;
.goodsCon {
box-sizing: border-box;
// padding: 0 40px;
display: flex;
// justify-content: space-around;
flex-wrap: wrap;
.goodsItemCon {
box-sizing: border-box;
width: 177px;
height: 272px;
display: flex;
flex-direction: column;
background: #f9f9f9;
border-radius: 4px;
// margin-bottom: 16px;
margin: 0 16px 16px 0;
overflow: hidden;
padding: 8px 8px 16px;
&:hover {
border: 1px solid #5850ff;
}
&.active {
border: 1px solid #5850ff;
}
.img {
width: 157px;
height: 157px;
margin-bottom: 8px;
}
.goodsName {
font-weight: 600;
color: #333333;
margin-bottom: 8px;
}
.purchaseOrderCount {
font-size: 12px;
color: #666666;
margin-bottom: 16px;
}
.viewPurchase {
font-size: 14px;
color: #5850ff;
display: flex;
align-items: center;
justify-content: space-between;
.pointer {
cursor: pointer;
}
}
}
.last {
margin-right: auto;
}
}
.emptyCom {
display: flex;
flex-direction: column;
margin: 75px auto;
text-align: center;
.tips {
font-size: 20px;
color: #666;
margin: 16px 0;
}
}
}
}
.footer-wrap {
display: flex;
justify-content: space-between;
align-items: center;
.total {
color: #666666;
font-size: 14px;
span {
color: #5850ff;
}
}
}
.drawer-wrap {
/deep/.el-drawer__header {
font-weight: 500 !important;
font-size: 20px;
color: #333333;
padding: 16px 20px;
border-bottom: 1px solid #E5E5E5;
}
.title-wrap {
margin: 62px 0 16px 0;
display: flex;
align-items: center;
flex-direction: column;
justify-items: center;
.el-icon-warning {
font-size: 58.67px;
color: #5850ff;
}
.info {
font-weight: 600;
font-size: 24px;
color: #000000;
margin-top: 17px;
}
}
.receiving-info {
height: 253px;
background-color: #F9F9F9;
margin: 0 20px;
padding: 16px 20px 20px;
box-sizing: border-box;
&-title {
padding-bottom: 16px;
border-bottom: 1px solid #E5E5E5;
justify-content: space-between;
font-size: 14px;
color: #333333;
box-sizing: border-box;
.edit {
color: #5850FF;
cursor: pointer;
.editIcon {
width: 20px;
height: 20px;
}
}
}
.flex {
display: flex;
align-items: center;
}
.address-info {
margin: 16px 0 0 14px;
font-size: 14px;
color: #666666;
.mb16 {
margin-bottom: 16px;
}
label {
display: inline-block;
width: 84px;
text-align: right;
}
span {
color: #333333;
}
}
}
.footer-btn {
width: 774px;
height: 64px;
border-radius: 4px;
border-top: 1px solid #E5E5E5;
position: fixed;
bottom: 0;
text-align: right;
line-height: 64px;
.btn {
text-align: right;
margin-right: 20px;
}
}
}
.gl-form-page {
display: flex;
justify-content: center;
}
.searchCon {
/deep/ .el-input__inner {
width: 284px;
}
/deep/ .el-form-item {
margin-right: 12px;
}
}
</style>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<span>,累计订单支付金额:</span> <span>,累计订单支付金额:</span>
<span style="color: #5850ff">¥{{ tableCountInfo.totalPrice || 0 }}</span> <span style="color: #5850ff">¥{{ tableCountInfo.totalPrice || 0 }}</span>
<span>元,累计导流方利润:</span> <span>元,累计导流方利润:</span>
<span style="color: #5850ff">{{ tableCountInfo.totalShopGrossProfit || 0 }}</span> <span style="color: #5850ff">{{ tableCountInfo.totalShopProfitMoney || 0 }}</span>
<span>元</span> <span>元</span>
</div> </div>
<div class="right_select"> <div class="right_select">
...@@ -64,9 +64,10 @@ ...@@ -64,9 +64,10 @@
<div class="box_info"> <div class="box_info">
<div class="info_text"> <div class="info_text">
<span>支付方式:</span> <span>支付方式:</span>
<span v-if="orderDetail.payOrder.payType == 1" class="h19_title">微信支付</span> <!-- <span v-if="orderDetail.payOrder.payType == 1" class="h19_title">微信支付</span>
<span v-if="orderDetail.payOrder.payType == 2" class="h19_title">线下支付</span> <span v-if="orderDetail.payOrder.payType == 2" class="h19_title">线下支付</span>
<span v-if="orderDetail.payOrder.payType == 3" class="h19_title">POS机收款</span> <span v-if="orderDetail.payOrder.payType == 3" class="h19_title">POS机收款</span> -->
<span v-if="orderDetail.payOrder.payType" class="h19_title">{{pageTypeObj[orderDetail.payOrder.payType]}}</span>
</div> </div>
<div class="info_text flex_img"> <div class="info_text flex_img">
<span>收款凭证:</span> <span>收款凭证:</span>
...@@ -87,7 +88,7 @@ ...@@ -87,7 +88,7 @@
<div class="box_info"> <div class="box_info">
<div class="info_text"> <div class="info_text">
<span>用户姓名:</span> <span>用户姓名:</span>
<span class="h19_title">{{ orderDetail.customer.customerName || '--' }}</span> <span class="h19_title">{{ orderDetail && orderDetail.customer ? orderDetail.customer.customerName : '--' }}</span>
</div> </div>
<div class="info_text"> <div class="info_text">
<span>评价:{{ orderDetail.comment ? '' : '--' }}</span> <span>评价:{{ orderDetail.comment ? '' : '--' }}</span>
...@@ -97,7 +98,7 @@ ...@@ -97,7 +98,7 @@
<div class="box_info"> <div class="box_info">
<div class="info_text"> <div class="info_text">
<span>车架号:</span> <span>车架号:</span>
<span class="h19_title">{{ orderDetail.customer.standNo || '--' }}</span> <span class="h19_title">{{ orderDetail && orderDetail.customer ? orderDetail.customer.standNo : '--' }}</span>
</div> </div>
<div class="info_text"></div> <div class="info_text"></div>
</div> </div>
...@@ -201,6 +202,14 @@ import { converterApi } from '../../api/modules/converter' ...@@ -201,6 +202,14 @@ import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util' import utils from '../../util/util'
const logTypeList = ['预录用户', '用户下单', '用户付款', '完成服务'] const logTypeList = ['预录用户', '用户下单', '用户付款', '完成服务']
const orderStatusList = ['待升级', '未升级', '待支付', '已支付', '已退款', '已完成'] const orderStatusList = ['待升级', '未升级', '待支付', '已支付', '已退款', '已完成']
const PAYTYPEOBJ = {
1: "微信支付",
2: "4S店支付",
3: "POS机收款",
4: "支付宝支付",
5: "嘀加收款"
}
const DISABLE_MERCHANTID =[44191564,44191528,44191536,44184606,44209510]
export default { export default {
name: '', name: '',
...@@ -209,6 +218,7 @@ export default { ...@@ -209,6 +218,7 @@ export default {
}, },
data() { data() {
return { return {
pageTypeObj:PAYTYPEOBJ,
dynamicTableShow: true, dynamicTableShow: true,
rowNumber: 2, rowNumber: 2,
refreshKey: Date.now(), refreshKey: Date.now(),
...@@ -255,7 +265,15 @@ export default { ...@@ -255,7 +265,15 @@ export default {
{ {
confId: 3, confId: 3,
confName: 'POS机' confName: 'POS机'
} },
{
confId: 4,
confName: '支付宝支付'
},
{
confId: 5,
confName: '嘀加收款'
},
] ]
}, },
{ {
...@@ -328,7 +346,10 @@ export default { ...@@ -328,7 +346,10 @@ export default {
label: '商品名称', label: '商品名称',
prop: 'goodsName', prop: 'goodsName',
width: 150, width: 150,
line: 1 line: 1,
formatter: cellValue => {
return cellValue.upgradeGoodsAlias || cellValue.goodsName || '--'
}
}, },
{ {
label: '商品分类', label: '商品分类',
...@@ -482,13 +503,20 @@ export default { ...@@ -482,13 +503,20 @@ export default {
disabled: true disabled: true
}, },
{ {
value: 'shopMerchantName', value: 'realityShopMerchantName',
label: '分账对象', label: '分账对象',
level: 3, level: 3,
width: '200', width: '200',
disabled: false disabled: false
}, },
{ {
value: 'subShopMerchantName',
label: '二级流量方',
level: 3,
width: '200',
disabled: false
},
{
value: 'rule', value: 'rule',
label: '分账规则', label: '分账规则',
level: 3, level: 3,
...@@ -620,7 +648,12 @@ export default { ...@@ -620,7 +648,12 @@ export default {
}, },
{ {
label: '分账对象', label: '分账对象',
prop: 'shopMerchantName', prop: 'realityShopMerchantName',
width: '200'
},
{
label: '二级流量方',
prop: 'subShopMerchantName',
width: '200' width: '200'
}, },
{ {
...@@ -692,9 +725,12 @@ export default { ...@@ -692,9 +725,12 @@ export default {
let startDate = utils.dateFormat(openInfo.openDate) let startDate = utils.dateFormat(openInfo.openDate)
let endDate = utils.dateFormat(new Date()) let endDate = utils.dateFormat(new Date())
this.openCount = openInfo.openCount || 0 this.openCount = openInfo.openCount || 0
let params = { let params = {}
payStartDateStr: utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00'), // 2023.6.28 特殊门店不需要默认传支付时间
payEndDateStr: utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59') const ISEXIT = DISABLE_MERCHANTID.includes(Number(this.merchantId))
if(!ISEXIT){
params.payStartDateStr = utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00')
params.payEndDateStr = utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59')
} }
this.defaultStart = utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00') this.defaultStart = utils.dateFormat(startDate, 'YYYY-MM-DD 00:00:00')
this.defaultEnd = utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59') this.defaultEnd = utils.dateFormat(endDate, 'YYYY-MM-DD 23:59:59')
...@@ -872,8 +908,11 @@ export default { ...@@ -872,8 +908,11 @@ export default {
params.payStartDateStr = startDate params.payStartDateStr = startDate
params.payEndDateStr = endDate params.payEndDateStr = endDate
} else { } else {
params.payStartDateStr = this.defaultStart const ISEXIT = DISABLE_MERCHANTID.includes(Number(this.merchantId))
params.payEndDateStr = this.defaultEnd if(!ISEXIT){
params.payStartDateStr = this.defaultStart
params.payEndDateStr = this.defaultEnd
}
} }
if (this.searchForm.payType || this.searchForm.payType === 0) { if (this.searchForm.payType || this.searchForm.payType === 0) {
//支付方式 //支付方式
...@@ -927,7 +966,12 @@ export default { ...@@ -927,7 +966,12 @@ export default {
item.rule = `${ruleType}${item.shopTrafficMoneyCalculateType == 0 ? '' : item.shopTrafficMoneyCalculateValue}${item.shopTrafficMoneyCalculateType == 0 ? '' : '%'}` item.rule = `${ruleType}${item.shopTrafficMoneyCalculateType == 0 ? '' : item.shopTrafficMoneyCalculateValue}${item.shopTrafficMoneyCalculateType == 0 ? '' : '%'}`
item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上分账' item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上分账'
item.paySuccessDate = utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss') item.paySuccessDate = utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss')
item.payTypeName = item.payType == 1 ? '微信支付' : item.payType == 2 ? '线下收款' : 'POS机' // item.payTypeName = item.payType == 1 ? '微信支付' : item.payType == 2 ? '线下收款' : 'POS机'
item.payTypeName = PAYTYPEOBJ[item.payType]
// 如果有虚拟对账成本virtualAccountCost则取virtualAccountCost,否则按照原有逻辑
if(item.virtualAccountCost){
item.goodsCost = item.virtualAccountCost
}
return item return item
}) })
this.tableTotal = res.total this.tableTotal = res.total
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!