From 1742b997ebabda0ab5555d0cc53a8ef709eceb44 Mon Sep 17 00:00:00 2001 From: chenfang Date: Tue, 26 Dec 2023 16:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerreceiptRecordMain.data.ts | 16 +++++----- .../inventorymoveRequestMain/index.vue | 32 +++++++++++++++++++ .../inventorymoveRequestMain.data.ts | 6 ++-- 3 files changed, 43 insertions(+), 11 deletions(-) diff --git a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/customerreceiptRecordMain.data.ts b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/customerreceiptRecordMain.data.ts index 8643f50b2..4b05dd042 100644 --- a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/customerreceiptRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/customerreceiptRecordMain.data.ts @@ -460,14 +460,14 @@ export const CustomerreceiptRecordDetail = useCrudSchemas(reactive width: 150 }, }, - { - label: '包装号', - field: 'packingNumber', - sort: 'custom', - table: { - width: 150 - }, - }, + // { + // label: '包装号', + // field: 'packingNumber', + // sort: 'custom', + // table: { + // width: 150 + // }, + // }, { label: '从包装号', field: 'fromPackingNumber', diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue index 1d82a833f..c26bf5022 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue @@ -167,6 +167,38 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { item.tableForm.disabled = false } } + if(item.field == "toLocationCode"){ + if (toInventoryStatus.value == 'HOLD') { + item.tableForm.searchCondition = [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }, + { + key: 'type', + value: 'HOLD', + isMainValue: false + }] + } + if (toInventoryStatus.value == 'SCRAP') { + item.tableForm.searchCondition = [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }, + { + key: 'type', + value: 'SCRAP', + isMainValue: false + }] + }else { + item.tableForm.searchCondition = { + key: 'available', + value: 'TRUE', + isMainValue: false + } + } + } }) // 字段设置 更新主列表字段 diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts index 4ddbadab5..030cf8b62 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts @@ -839,9 +839,9 @@ export const InventorymoveRequestDetailRules = reactive({ // toBatch: [ // { required: true, message: '请输入到批次', trigger: 'blur' } // ], - // toLocationCode: [ - // { required: true, message: '请选择到库位代码', trigger: 'change' } - // ], + toLocationCode: [ + { required: true, message: '请选择到库位代码', trigger: 'change' } + ], // toInventoryStatus: [ // { required: true, message: '请选择到库存状态', trigger: 'change' } // ],