Commit 6f9f5e9b authored by 邓春圆's avatar 邓春圆

Merge remote-tracking branch 'origin/release' into release

parents 9840e6eb 1ba2fc7a
......@@ -1158,7 +1158,7 @@ function getColmnMapping() {
type: "date",
},
{
title: i18n.$t("卸货时间"),
title: i18n.$t("到仓通过时间"),
key: "ulBoxTime",
type: "date",
},
......
......@@ -1151,7 +1151,7 @@ function getColmnMapping() {
type: "date",
},
{
title: i18n.$t("时间"),
title: i18n.$t("柜通过时间"),
key: "ulBoxTime",
type: "date",
},
......
......@@ -276,6 +276,7 @@ import Editor from '@/components/Editor'
import Selector from '@/components/Selector/index'
import {parseTime} from '@/utils/ruoyi'
import {str2arr} from '@/utils/index'
import item from '@/layout/components/Sidebar/Item.vue'
export default {
......@@ -447,6 +448,12 @@ export default {
getCoupon(this.$route.query.id).then((res) => {
this.form = res.data;
// 线路种的渠道字段跟价格模块不同,需要转换兼容
if(this.form.lineIds?.length) {
this.form.lineIds = this.form.lineIds.map(item => {
return {...item, shippingChannelId: item.channelId}
})
}
['orderAttr', 'isCargoControl', 'brand', 'documentDeclaration'].forEach(field => {
this.$set(this.form, field + 'Arr', str2arr(res.data[field]))
})
......@@ -663,8 +670,6 @@ export default {
})
this.$set(this.form, 'suitableProdType', this.isAllProduct ? 0 : 1)
let data = Object.assign({}, this.form, {discountDetailedVOs})
// 开始时间必填
if(!data.startTime)data.startTime = parseTime(Date.now()) // '2022-01-01 00:00:00'
......@@ -683,6 +688,13 @@ export default {
}
this.$set(this.form, 'suitableProdType', this.isAllProduct ? 0 : 1)
// 优惠模块的线路渠道字段跟价格模块不同,需要转换
if(data.lineIds?.length){
data.lineIds = data.lineIds.map(item => {
return {...item, channelId: item.shippingChannelId}
})
}
// 修改的提交
if (data.couponId != null) {
updateCoupon(data).then((response) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment