From 631a0578bbd5f911abcecb5fc51ce15a1c2995a8 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 9 Aug 2024 15:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E7=A7=BB=E5=8A=A8=E8=AE=B0?= =?UTF-8?q?=E5=BD=95-=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymoveRecordMainNew/index.vue | 4 +- .../inventorymoveRecordRequestMain.data.ts | 82 +++++++++---------- 2 files changed, 42 insertions(+), 44 deletions(-) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue index 4bea72d15..213534050 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue @@ -43,7 +43,7 @@ console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) nextTick(() => { if (type == 'tableForm') { - if(formField == 'fromPackingNumber'){ + if(formField == 'itemCode'){ val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromPackingNumber']==item['packingNumber']&&item1['origin_fromLocationCode']==item['locationCode']&&item1['fromInventoryStatus']==item['inventoryStatus'])) if(val.length==0) return val.forEach(item=>{ diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordRequestMain.data.ts index 4674afe6c..e9b5422f8 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordRequestMain.data.ts @@ -217,14 +217,45 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( table: { width: 150 }, - tableForm: { - disabled: true + tableForm:{ + multiple:true, + disabled: true, + isInpuFocusShow: false, // 开启查询弹窗 + searchListPlaceholder: '请选择从包装号', + searchField: 'packingNumber', + searchTitle: '库存余额信息', + searchAllSchemas: Balance.allSchemas, + searchPage: BalanceApi.selectLocationTypeToBalance, + searchCondition: [{ + key: 'businessType', + value: 'Move', + isMainValue: false + },{ + key:'locationCode', // 查询列表中字段 + value:'fromLocationCode', // 指主表某字段 + message: '请选择从库位代码!', // 当前置条件为空时 弹出信息提示 + isMainValue: true, // 表示查询条件是主表的字段的值 + action: '==', // 查询拼接条件 + }] }, form: { + // labelMessage: '信息提示说明!!!', componentProps: { - disabled: true + disabled: true, + isSearchList: false, // 开启查询弹窗 + searchListPlaceholder: '请选择从包装号', + searchField: 'packingNumber', + searchTitle: '库存余额信息', + searchAllSchemas: Balance.allSchemas, + searchPage: BalanceApi.selectLocationTypeToBalance, + searchCondition: [{ + key: 'businessType', + value: 'Move', + isMainValue: false + }] } } + }, { label: '批次', @@ -249,36 +280,12 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( table: { width: 150 }, - tableForm:{ - multiple:true, - disabled: true, - isInpuFocusShow: false, // 开启查询弹窗 - searchListPlaceholder: '请选择从包装号', - searchField: 'packingNumber', - searchTitle: '库存余额信息', - searchAllSchemas: Balance.allSchemas, - searchPage: BalanceApi.selectLocationTypeToBalance, - searchCondition: [{ - key: 'businessType', - value: 'Move', - isMainValue: false - }] + tableForm: { + disabled: true }, form: { - // labelMessage: '信息提示说明!!!', componentProps: { - disabled: true, - isSearchList: false, // 开启查询弹窗 - searchListPlaceholder: '请选择从包装号', - searchField: 'packingNumber', - searchTitle: '库存余额信息', - searchAllSchemas: Balance.allSchemas, - searchPage: BalanceApi.selectLocationTypeToBalance, - searchCondition: [{ - key: 'businessType', - value: 'Move', - isMainValue: false - }] + disabled: true } } }, @@ -402,19 +409,10 @@ export const InventorymoveRequestDetailRules = reactive({ itemCode: [ { required: true, message: '请点击从包装号选择物料代码', trigger: 'change' } ], - fromLocationCode: [ - { required: true, message: '请选择从库位代码', trigger: 'change' } - ], - fromPackingNumber: [ - { required: true, message: '请选择从包装号', trigger: 'change' } - ], fromInventoryStatus: [ { required: true, message: '请选择从库存状态', trigger: 'change' } ], - toLocationCode: [ - { required: true, message: '请选择到库位代码', trigger: 'change' } - ], - remark: [ - { max: 50, message: '不得超过50个字符', trigger: 'blur' } - ], + toInventoryStatus: [ + { required: true, message: '请选择到库存状态', trigger: 'change' } + ] })