10.8禅道问题修复

szh-new
lijingjia 2 months ago
parent 4bc2bc8d71
commit ba49f5fe45

@ -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('请填写箱型价格!')

@ -681,7 +681,8 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
label: '开船日期',
labelSlot: 'etd',
component: 'DatePicker',
rules: [{ required: true, message: '请选择开船日期' }],
required: true,
rules: [{ message: '请选择开船日期' }],
dynamicDisabled: false,
defaultValue: undefined,
colProps: { className: 'edt-picker ant-col ant-col-5' },

Loading…
Cancel
Save