From 8ce306b63f703c6ea4cb2863fb526e61145252c8 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Thu, 30 May 2024 13:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=A9=BA=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereturnRequestMain/index.vue | 80 ++++++++++--------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue index 0c46c5e11..47f9ad915 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue @@ -208,49 +208,51 @@ const searchTableSuccessLabel = (formField, searchField, val, formRef, type, row // 查询页面返回 const searchTableSuccess = async(formField, searchField, val, formRef, type, row) => { - console.log('searchTableSuccess',) - nextTick(async () => { + console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) + + nextTick( async () => { + if (type == 'tableForm') { // 明细查询页赋值 row[formField] = val[0][searchField] - row['supplierCode'] = val[0]['supplierCode'] - row['poNumber'] = val[0]['poNumber'] - row['poLine'] = val[0]['poLine'] - row['itemCode'] = val[0]['itemCode'] - row['itemName'] = val[0]['itemName'] - row['itemDesc1'] = val[0]['itemDesc1'] - row['itemDesc2'] = val[0]['itemDesc2'] - row['batch'] = val[0]['batch'] - row['altBatch'] = val[0]['altBatch'] - row['containerNumber'] = val[0]['containerNumber'] - row['qty'] = val[0]['qty'] - row['uom'] = val[0]['uom'] - row['supplierQty'] = val[0]['supplierQty'] - row['supplierUom'] = val[0]['supplierUom'] - row['inventoryStatus'] = val[0]['inventoryStatus'] - // row['fromLocationCode'] = val[0]['toLocationCode'] - row['toLocationCode'] = val[0]['toLocationCode'] - row['fromLocationGroupCode'] = val[0]['locationGroupCode'] - row['toLocationGroupCode'] = null - row['toWarehouseCode'] = null - row['toAreaTypes'] = null - row['fromAreaCode'] = val[0]['areaCode'] - row['toAreaCode'] = val[0]['toAreaCode'] - row['fromQwnerCode'] = val[0]['fromQwnerCode'] - row['toOwnerCode'] = val[0]['toOwnerCode'] - row['arriveDate'] = val[0]['arriveDate'] - row['produceDate'] = val[0]['produceDate'] - row['expireDate'] = val[0]['expireDate'] - row['convertRate'] = val[0]['convertRate'] - row['visualInspectResult'] = val[0]['visualInspectResult'] - row['visualInspectPhotos'] = val[0]['visualInspectPhotos'] - row['failedReason'] = val[0]['failedReason'] - row['singlePrice'] = val[0]['singlePrice'] - row['amount'] = val[0]['amount'] - row['projectCode'] = val[0]['projectCode'] - - if(formField == 'itemCode'){ + if(formField=='purchaseReceiptRecordNumber'){ + row['supplierCode'] = val[0]['supplierCode'] + row['poNumber'] = val[0]['poNumber'] + row['poLine'] = val[0]['poLine'] + row['itemCode'] = val[0]['itemCode'] + row['itemName'] = val[0]['itemName'] + row['itemDesc1'] = val[0]['itemDesc1'] + row['itemDesc2'] = val[0]['itemDesc2'] + row['batch'] = val[0]['batch'] + row['altBatch'] = val[0]['altBatch'] + row['containerNumber'] = val[0]['containerNumber'] + row['qty'] = val[0]['qty'] + row['uom'] = val[0]['uom'] + row['supplierQty'] = val[0]['supplierQty'] + row['supplierUom'] = val[0]['supplierUom'] + row['inventoryStatus'] = val[0]['inventoryStatus'] + // row['fromLocationCode'] = val[0]['toLocationCode'] + row['toLocationCode'] = val[0]['toLocationCode'] + row['fromLocationGroupCode'] = val[0]['locationGroupCode'] + row['toLocationGroupCode'] = null + row['toWarehouseCode'] = null + row['toAreaTypes'] = null + row['fromAreaCode'] = val[0]['areaCode'] + row['toAreaCode'] = val[0]['toAreaCode'] + row['fromQwnerCode'] = val[0]['fromQwnerCode'] + row['toOwnerCode'] = val[0]['toOwnerCode'] + row['arriveDate'] = val[0]['arriveDate'] + row['produceDate'] = val[0]['produceDate'] + row['expireDate'] = val[0]['expireDate'] + row['convertRate'] = val[0]['convertRate'] + row['visualInspectResult'] = val[0]['visualInspectResult'] + row['visualInspectPhotos'] = val[0]['visualInspectPhotos'] + row['failedReason'] = val[0]['failedReason'] + row['singlePrice'] = val[0]['singlePrice'] + row['amount'] = val[0]['amount'] + row['projectCode'] = val[0]['projectCode'] + }else if(formField == 'itemCode'){ row['batch'] = val[0]['toBatch'] row['containerNumber'] = val[0]['toContainerNumber'] row['containerNumber'] = val[0]['containerNumber']