diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts index 5afe8c6f5..70550b4df 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts @@ -207,12 +207,15 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - },{ - key: 'costcentreType', - value: 'costCenterType', - message: '成本中心类型不能为空!', - isMainValue: true - }], + }, + // { + // key: 'costcentreType', + // value: 'costCenterType', + // message: '成本中心类型不能为空!', + // isMainValue: true + // } + + ], verificationParams: [{ key: 'code', action: '==', @@ -236,12 +239,14 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive([ key: 'available', value: 'TRUE', isMainValue: false - },{ - key: 'costcentreType', - value: 'costCenterType', - message: '成本中心类型不能为空!', - isMainValue: true - }], + }, + // { + // key: 'costcentreType', + // value: 'costCenterType', + // message: '成本中心类型不能为空!', + // isMainValue: true + // } + ], verificationParams: [{ key: 'code', action: '==', @@ -669,7 +674,7 @@ export const UnplannedissueRequestMainRules = reactive({ { required: true, message: '请输入成本中心代码', trigger: 'blur' } ], costCenterType: [ - { required: true, message: '请输入成本中心类型', trigger: 'blur' } + { required: false, message: '请输入成本中心类型', trigger: 'blur' } ], reasonCodeRequisition: [ { required: true, message: '请输入领用原因代码', trigger: 'blur' } diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts index 5522488a9..b579f0938 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts @@ -207,12 +207,14 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive key: 'available', value: 'TRUE', isMainValue: false - },{ - key: 'costcentreType', - value: 'costCenterType', - message: '成本中心类型不能为空!', - isMainValue: true - }], + }, + // { + // key: 'costcentreType', + // value: 'costCenterType', + // message: '成本中心类型不能为空!', + // isMainValue: true + // } + ], verificationParams: [{ key: 'code', action: '==', @@ -236,12 +238,14 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive key: 'available', value: 'TRUE', isMainValue: false - },{ - key: 'costcentreType', - value: 'costCenterType', - message: '成本中心类型不能为空!', - isMainValue: true - }], + }, + // { + // key: 'costcentreType', + // value: 'costCenterType', + // message: '成本中心类型不能为空!', + // isMainValue: true + // } + ], verificationParams: [{ key: 'code', action: '==', @@ -648,7 +652,7 @@ export const UnplannedreceiptRequestMainRules = reactive({ { required: true, message: '请输入成本中心代码', trigger: 'blur' } ], costCenterType: [ - { required: true, message: '请输入成本中心类型', trigger: 'blur' } + { required: false, message: '请输入成本中心类型', trigger: 'blur' } ], projectCode: [ { required: false, message: '请输入项目代码', trigger: 'blur' }