From 328e45f71b36562eae2324d4e64ba294f42276f6 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Mon, 8 Jan 2024 16:09:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A3=80=E9=AA=8C=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E6=B7=BB=E5=8A=A0=E9=A1=B5=E9=9D=A2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspect/inspectRequestMain/index.vue | 20 +++++++++++++------ .../inspectRequestMain.data.ts | 13 ++---------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue index ffa85fa80..6babf91e1 100644 --- a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue @@ -71,25 +71,33 @@ // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { nextTick(() => { + const setV = {} if (type == 'tableForm') { // 明细查询页赋值 - row[formField] = val[0][searchField] - row['itemCode'] = val[0]['code'] + if(formField == 'fromLocationCode'){ + row['fromLocationCode'] = val[0]['code'] + }else if(formField == 'itemCode'){ + row['itemCode'] = val[0]['itemCode'] + } } else { - const setV = {} setV[formField] = val[0][searchField] setV['purchaseReceiptRecordNumber'] = val[0]['number'] // setV['supplierCode'] = val[0]['supplierCode'] - formRef.setValues(setV) } + formRef.setValues(setV) }) } // 查询页面返回——详情 const searchTableSuccessDetail = (formField, searchField, val, formRef) => { nextTick(() => { const setV = {} - setV[formField] = val[0][searchField] - setV['itemCode'] = val[0]['code'] + if(formField == 'fromLocationCode'){ + setV['fromLocationCode'] = val[0]['code'] + }else if(formField == 'itemCode'){ + setV['itemCode'] = val[0]['itemCode'] + }else { + setV[formField] = val[0][searchField] + } formRef.setValues(setV) }) } diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts index 0b039f48a..c84385ac9 100644 --- a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts @@ -591,19 +591,10 @@ export const InspectRequestDetail = useCrudSchemas(reactive([ disabled: true, isInpuFocusShow: true, earchListPlaceholder: '请选择包装号', - searchField: 'packingNumber', + searchField: 'itemCode', searchTitle: '库存余额信息', searchAllSchemas: Balance.allSchemas, - searchPage: BalanceApi.getBalancePagePutaway, - searchCondition: [{ - key: 'available', - value: 'TRUE', - isMainValue: false - }, { - key: 'workshopCode', - value: 'workshopCode', - isMainValue: true - }] + searchPage: BalanceApi.getBalancePagePutaway }, }, {