|
|
|
@ -305,6 +305,8 @@
|
|
|
|
|
const data = RefmailingInfo.value.getFieldsValueR()
|
|
|
|
|
RefNoteInfo.value.setAddress(data, v)
|
|
|
|
|
}
|
|
|
|
|
// 存储箱型价格列
|
|
|
|
|
const ctnPriceData = ref([])
|
|
|
|
|
// 获取表单设置数据
|
|
|
|
|
const getFormSet = (v) => {
|
|
|
|
|
const postData = { permissionId: permissionsInfo('/BookingDetail').permissionId, formNo: 10, taskStatus: route.query.status || 'NORMAL' }
|
|
|
|
@ -347,6 +349,10 @@
|
|
|
|
|
RefNoteInfo.value.updateSchema(content)
|
|
|
|
|
}
|
|
|
|
|
}, 1500)
|
|
|
|
|
// 存储箱型价格判断隐藏不校验必填
|
|
|
|
|
ctnPriceData.value = content.filter(item => {
|
|
|
|
|
return item.field == "ctnPriceInfo"
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -455,8 +461,9 @@
|
|
|
|
|
createMessage.warning(err?.errorFields[0]?.errors[0])
|
|
|
|
|
throw Error()
|
|
|
|
|
})
|
|
|
|
|
console.log(ctnPriceData.value[0].show)
|
|
|
|
|
// 校验箱型价格
|
|
|
|
|
if (goodsForm.ctnPriceInfo && goodsForm.ctnPriceInfo.length) {
|
|
|
|
|
if (goodsForm.ctnPriceInfo && goodsForm.ctnPriceInfo.length && ctnPriceData.value.length && ctnPriceData.value[0].show !== false) {
|
|
|
|
|
for (let i = 0; i < goodsForm.ctnPriceInfo.length; i++) {
|
|
|
|
|
if (!goodsForm.ctnPriceInfo[i].ctn) {
|
|
|
|
|
return createMessage.warning('请填写箱型价格!')
|
|
|
|
|