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) => {