Browse Source

HL-5888策略规则配置显示问题

hella_online_20240911
yufei_wang 3 months ago
parent
commit
986d7c477a
  1. 4
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

4
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

@ -1097,7 +1097,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
} }
if (data.configuration) { if (data.configuration) {
formData.value.configuration = JSON.parse(data.configuration) formData.value.configuration = JSON.parse(data.configuration)
if(!Array.isArray(formData.value.configuration.overflowLocationCode)&&formData.value.configuration.overflowLocationCode.length>0){ if(formData.value.configuration.overflowLocationCode&&!Array.isArray(formData.value.configuration.overflowLocationCode)&&formData.value.configuration.overflowLocationCode.length>0){
formData.value.configuration.overflowLocationCode = formData.value.configuration.overflowLocationCode.split(',') formData.value.configuration.overflowLocationCode = formData.value.configuration.overflowLocationCode.split(',')
} }
} }
@ -1202,7 +1202,7 @@ const submitForm = async () => {
} }
}) })
let configuration = {...formData.value.configuration} let configuration = {...formData.value.configuration}
if(Array.isArray(configuration.overflowLocationCode)){ if(configuration.overflowLocationCode&&Array.isArray(configuration.overflowLocationCode)){
configuration.overflowLocationCode = configuration.overflowLocationCode.join(',') configuration.overflowLocationCode = configuration.overflowLocationCode.join(',')
} }
let data = { let data = {

Loading…
Cancel
Save