Commit 533e35b4 by 李伟康

fix(sales): 修复货架类型切换和数据格式化问题

- 监听货架类型变化时清空商户信息字段
- 将区域运营ID列表连接符从逗号改为斜杠
- 将在线运营ID列表连接符从逗号改为斜杠
- 将区域主管ID列表连接符从逗号改为斜杠
- 删除已转换的数据列表字段以避免冗余数据提交
1 parent 1c72da1a
......@@ -342,6 +342,16 @@ export default {
},
immediate: true,
deep: true,
},
'infoForm.shelfType': {
handler (val) {
if (val == 2) {
this.infoForm.merchantId = ''
this.infoForm.merchantName = ''
}
},
immediate: true,
deep: true,
}
},
computed: {
......
......@@ -247,9 +247,9 @@ export default {
trafficProviderInformationRef.formRef.validate((valid) => {
if (valid) {
let componentData = deepClone(trafficProviderInformationRef.componentData)
componentData.areaOpId = componentData.areaOpIdList.join(',')
componentData.onlineOpId = componentData.onlineOpIdList.join(',')
componentData.regionSupervisorId = componentData.regionSupervisorIdList.join(',')
componentData.areaOpId = componentData.areaOpIdList.join('/')
componentData.onlineOpId = componentData.onlineOpIdList.join('/')
componentData.regionSupervisorId = componentData.regionSupervisorIdList.join('/')
delete componentData.areaOpIdList
delete componentData.onlineOpIdList
delete componentData.regionSupervisorIdList
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!