From 7cc5db3248c26da300aff4b933e9987b23d1e955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=83=9C=E6=A5=A0?= <2792649152@qq.com> Date: Fri, 3 Nov 2023 15:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=88=97=E8=A1=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceiptRecordMain.data.ts | 115 +++++++++++++++--- 1 file changed, 101 insertions(+), 14 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts index 0662ba3c0..d86cdad73 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts @@ -14,6 +14,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, }, { label: '任务单号', @@ -46,6 +47,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ table: { width: 150 }, + isSearch: true, }, { label: '到月台代码', @@ -100,7 +102,6 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ field: 'fromLocationTypes', dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', - isSearch: true, isTable: true, sort: 'custom', table: { @@ -112,7 +113,6 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ field: 'toLocationTypes', dictType: DICT_TYPE.LOCATION_TYPE, dictClass: 'string', - isSearch: true, isTable: true, sort: 'custom', table: { @@ -252,7 +252,6 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ field: 'interfaceType', dictType: DICT_TYPE.INTERFACE_TYPE, dictClass: 'string', - isSearch: true, isTable: true, sort: 'custom', table: { @@ -264,8 +263,10 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ field: 'number', sort: 'custom', table: { - width: 150 + width: 150, + fixed: 'left' }, + isSearch: true, }, { label: '业务类型', @@ -335,15 +336,51 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive([ // 表单校验 export const PurchasereceiptRecordMainRules = reactive({ - requestNumber: [required], - supplierCode: [required], - toWarehouseCode: [required], - outTransaction: [required], - inTransaction: [required], - executeTime: [required], - activeDate: [required], - toLocationTypes: [required], - available: [required], + requestNumber: [ + { required: true, message: '请选择申请单号', trigger: 'change' } + ], + supplierCode: [ + { required: true, message: '请选择供应商代码', trigger: 'change' } + ], + toWarehouseCode: [ + { required: true, message: '请选择到仓库代码', trigger: 'change' } + ], + toLocationTypes: [ + { required: true, message: '请选择到库位类型服务', trigger: 'change' } + ], + outTransaction: [ + { required: true, message: '请输入出库事务类型', trigger: 'blur' } + ], + inTransaction: [ + { required: true, message: '请输入入库事务类型', trigger: 'blur' } + ], + executeTime: [ + { required: true, message: '请输入执行时间', trigger: 'change' } + ], + activeDate: [ + { required: true, message: '请输入生效日期', trigger: 'change' } + ], + available: [ + { required: true, message: '请输入是否可用', trigger: 'blur' } + ], + departmentCode: [ + { required: true, message: '请输入部门', trigger: 'blur' } + ], + interfaceType: [ + { required: true, message: '请选择接口类型', trigger: 'change' } + ], + number: [ + { required: true, message: '请输入单据号', trigger: 'blur' } + ], + businessType: [ + { required: true, message: '请输入业务类型', trigger: 'blur' } + ], + createTime: [ + { required: true, message: '请选择创建时间', trigger: 'change' } + ], + creator: [ + { required: true, message: '请输入创建者', trigger: 'blur' } + ], }) /** @@ -827,5 +864,55 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive // 表单校验 export const PurchasereceiptRecordDetailRules = reactive({ - fromPackingNumber: [required], + fromPackingNumber: [ + { required: true, message: '请选择从包装号', trigger: 'change' } + ], + toPackingNumber: [ + { required: true, message: '请选择到包装号', trigger: 'change' } + ], + fromBatch: [ + { required: true, message: '请输入从批次', trigger: 'blur' } + ], + toBatch: [ + { required: true, message: '请输入到批次', trigger: 'blur' } + ], + arriveDate: [ + { required: true, message: '请选择到货日期', trigger: 'change' } + ], + produceDate: [ + { required: true, message: '请选择生产日期', trigger: 'change' } + ], + expireDate: [ + { required: true, message: '请选择过期日期', trigger: 'change' } + ], + inventoryStatus: [ + { required: true, message: '请选择库存状态', trigger: 'change' } + ], + toLocationCode: [ + { required: true, message: '请选择到库位代码', trigger: 'change' } + ], + toLocationGroupCode: [ + { required: true, message: '请选择到库位组代码', trigger: 'change' } + ], + toAreaCodes: [ + { required: true, message: '请选择到库区代码', trigger: 'change' } + ], + poNumber: [ + { required: true, message: '请选择订单号', trigger: 'change' } + ], + poLine: [ + { required: true, message: '请选择订单行', trigger: 'change' } + ], + stdPackQty: [ + { required: true, message: '请输入标包数量', trigger: 'blur' } + ], + stdPackUnit: [ + { required: true, message: '请选择标包单位', trigger: 'change' } + ], + convertRate: [ + { required: true, message: '请输入转换率', trigger: 'blur' } + ], + visualInspectResult: [ + { required: true, message: '请选择目检结果', trigger: 'change' } + ], }) \ No newline at end of file