Commit d1d544a6 authored by xiangzj's avatar xiangzj

公关团购优化

parent fc014d8c
...@@ -266,6 +266,7 @@ ...@@ -266,6 +266,7 @@
const params = { const params = {
'PARTNER': this.userInfo.code 'PARTNER': this.userInfo.code
} }
console.log(this.isKeepData,'isKeepDataisKeepData')
const res = await apiInitGroupData(params) const res = await apiInitGroupData(params)
const { const {
HEAD, HEAD,
...@@ -283,10 +284,45 @@ ...@@ -283,10 +284,45 @@
'OBJNAME': this.groupOrder.INFO.GRPNAME, 'OBJNAME': this.groupOrder.INFO.GRPNAME,
'ID': this.groupOrder.INFO.GRPUTID 'ID': this.groupOrder.INFO.GRPUTID
} }
this.HEADINFO.GRPUTID = this.groupOrder.INFO.GRPUTID // 团购单位编码
this.HEADINFO.GRPNAME = this.groupOrder.INFO.GRPNAME // 团购单位名称
this.condition.GRPUTID = this.groupOrder.INFO.GRPUTID
// 商机选择
this.HEADINFO.BUSOPPID = this.groupOrder.INFO.BUSOPPID // 商机编码
this.HEADINFO.BUSINAME = this.groupOrder.INFO.BUSINAME // 商机名称
this.condition.BUSOPPID = this.groupOrder.INFO.BUSOPPID
this.selectedBusiness = { this.selectedBusiness = {
'ID': this.groupOrder.INFO.BUSOPPID, // 团购单位编码 'ID': this.groupOrder.INFO.BUSOPPID,
'NAME': this.groupOrder.INFO.BUSINAME // 团购单位名称 'NAME': this.groupOrder.INFO.BUSINAME
}
// 收货单位
this.selectedAddress = {
NAME_ORG1: this.groupOrder.INFO.ZZFLD00008T_DSCR,
C_O_NAME: this.groupOrder.INFO.ZZFLD00002L,
TEL_NUMBER: this.groupOrder.INFO.ZZFLD00002M,
STREET: this.groupOrder.INFO.ZZFLD00002N,
}
this.HEADINFO.ZZFLD00002L = this.groupOrder.INFO.ZZFLD00002L
this.HEADINFO.ZZFLD00002M = this.groupOrder.INFO.ZZFLD00002M
this.HEADINFO.ZZFLD00008T = this.groupOrder.INFO.ZZFLD00008T
this.HEADINFO.ZZFLD00008T_DSCR = this.groupOrder.INFO.ZZFLD00008T_DSCR // 组织名称
this.HEADINFO.ZZFLD00002N = this.groupOrder.INFO.ZZFLD00002N
this.condition.ZZFLD00008T = this.groupOrder.INFO.ZZFLD00008T
this.condition.ZZFLD00002L = this.groupOrder.INFO.ZZFLD00002L
this.condition.ZZFLD00002M = this.groupOrder.INFO.ZZFLD00002M
this.condition.ZZFLD00002N = this.groupOrder.INFO.ZZFLD00002N
// 喷码方式
this.paintDesignPicker.forEach((ele,idx) => {
if (ele.key === this.groupOrder.INFO.PENGMETHOD) {
this.paintDesignIndex = idx
this.condition.PENGMETHOD = ele.key
this.HEADINFO.PENGMETHOD = ele.key
} }
})
// 喷码内容
this.condition.ZZFLD000098 = this.groupOrder.INFO.ZZFLD000098
this.HEADINFO.ZZFLD000098 = this.groupOrder.INFO.ZZFLD000098
this.condition.BUSOPPID = this.groupOrder.INFO.BUSOPPID this.condition.BUSOPPID = this.groupOrder.INFO.BUSOPPID
} }
}, },
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
this.updateGroupOrder() this.updateGroupOrder()
}, },
preStep() { preStep() {
this.$emit('click', 'quotaOrder') this.$emit('click', 'quotaOrder', true)
}, },
...mapMutations(["$uStore"]), ...mapMutations(["$uStore"]),
} }
......
...@@ -137,6 +137,12 @@ ...@@ -137,6 +137,12 @@
productInitInfo: {}, productInitInfo: {},
} }
}, },
props: {
isKeepData: {
type: Boolean,
default: false
}
},
computed: { computed: {
...mapState(['groupOrder']), ...mapState(['groupOrder']),
intotalComputed() { intotalComputed() {
...@@ -210,6 +216,7 @@ ...@@ -210,6 +216,7 @@
uni.$off('selectedGroupPlan') uni.$off('selectedGroupPlan')
}, },
created() { created() {
console.log(this.isKeepData,'this.isKeepData',this.groupOrder)
const { const {
INFO, INFO,
ITEM ITEM
...@@ -220,6 +227,17 @@ ...@@ -220,6 +227,17 @@
...ITEM[0] ...ITEM[0]
} }
this.productInitInfo = ITEM[0] this.productInitInfo = ITEM[0]
// 回显营销
if(this.isKeepData){
this.selectedSalesCenterArr.forEach((ele,idx) => {
if(ele.KEY === this.groupOrder.INFO.ZZFLD000001){
this.salesCenterIndex = idx
this.selectedSalesCenter = this.selectedSalesCenterArr[this.salesCenterIndex]
this.HEADINFO.ZZFLD000001 = this.selectedSalesCenter.KEY
}
});
this.planinnerLists = [...this.groupOrder.ITEM]
}
}, },
methods: { methods: {
async updateQuotaData(productIndex, mode, product) { async updateQuotaData(productIndex, mode, product) {
......
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