From 62b53e78b9bbef5c1850b74168e2ae0a6a2dc9b9 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 16 Aug 2024 08:55:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=94=B6=E8=B4=A7=E5=8D=95?= =?UTF-8?q?=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereturnRequestMainNew/index.vue | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue index e134c3774..ab994d604 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue @@ -281,12 +281,6 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro } }) } - }else if(formField=='hahaha'){ - // 选择收货单明细 - setV['poNumber'] = val[0]['poNumber'] - setV['poLine'] = val[0]['poLine'] - setV['receiptNumber'] = val[0]['receiptNumber'] - setV['asnNumber'] = val[0]['asnNumber'] } formRef.setValues(setV) @@ -628,11 +622,18 @@ const chooseReceiptList = ()=>{ } // 选择收货单明细 -const searchTableSuccess1 = (formField, searchField, selections, type, row) => { - console.log('searchTableSuccess1',formField, searchField, selections, type, row) - formRef.value.formRef.setValues({ - poNumber:111 - }) +const searchTableSuccess1 = (formField, searchField, val, type, row) => { + console.log('searchTableSuccess1',formField, searchField, val, type, row) + + if(formField=='hahaha'){ + // 选择收货单明细 + const setV = {} + setV['poNumber'] = val[0]['poNumber'] + setV['poLine'] = val[0]['poLine'] + setV['receiptNumber'] = val[0]['receiptNumber'] + setV['asnNumber'] = val[0]['asnNumber'] + formRef.value.formRef.setValues(setV) + } } // 删除明细 const handleDeleteTable = (item, index, formRef) => {