diff --git a/src/components/ImportForm/src/ImportFormStep.vue b/src/components/ImportForm/src/ImportFormStep.vue index 34170ac47..0228aed64 100644 --- a/src/components/ImportForm/src/ImportFormStep.vue +++ b/src/components/ImportForm/src/ImportFormStep.vue @@ -228,6 +228,11 @@ const props = defineProps({ type:Boolean, default:false }, + sourcePage:{ + type:String, + required: false, + default:'' + }, }) // 确保 tableObject 是响应式的 @@ -326,6 +331,13 @@ const submitForm = async () => { return; } + if(props.sourcePage == 'inducedProduct'){ + if(!formRef.value.formModel?.customerCode){ + message.error('请输入客户代码') + return + } + } + const elForm = unref(formRef)?.getElFormRef() // 校验表单 if (!elForm) return diff --git a/src/views/wms/deliversettlementManage/directSupplyPinRecordMain/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/directSupplyPinRecordMain/deliverRecordMain/deliverRecordMain.data.ts index 6d2b63475..c0afdfae0 100644 --- a/src/views/wms/deliversettlementManage/directSupplyPinRecordMain/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/directSupplyPinRecordMain/deliverRecordMain/deliverRecordMain.data.ts @@ -330,6 +330,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain: true, }, { label: '包装规格', @@ -396,6 +397,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain: true, }, { label: '从库位', diff --git a/src/views/wms/deliversettlementManage/directSupplyPinRecordMain/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/directSupplyPinRecordMain/deliverRecordMain/index.vue index 8e93dd99b..22f2846e5 100644 --- a/src/views/wms/deliversettlementManage/directSupplyPinRecordMain/deliverRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/directSupplyPinRecordMain/deliverRecordMain/index.vue @@ -69,7 +69,6 @@ @success="importSuccess" :isShowDownloadBtn="true" :extend="importExtend" - :formSchema="ExtendColumn.allSchemas.formSchema" :rules="ExtendColumnRules" accept=".xlsx,.xls" :importTemplateData="importTemplateData" diff --git a/src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/deliverRecordMain.data.ts index a99a9e113..7881765dd 100644 --- a/src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/deliverRecordMain.data.ts @@ -307,6 +307,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive([ table: { width: 150 }, + hiddenInMain: true, isTable: false, }, { diff --git a/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue index 082daee5f..e2e47a829 100644 --- a/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/index.vue @@ -73,6 +73,7 @@ :isShowDownloadBtn="false" :confirmFormSuccess="confirmFormSuccess" @searchTableSuccess="searchTableSuccess" + sourcePage="inducedProduct" />