diff --git a/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue index cbf5aa539..45b1e7f44 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue @@ -368,6 +368,9 @@ const searchTableSuccess1 = (formField, searchField, val, type, row) => { setV['asnNumber'] = '' formRef.value.formRef.setValues(setV) } + if(formRef.value.formRef.formModel['locationCode']){ + getTableData() + } } const clearSearchInput = (formField) => { @@ -398,11 +401,12 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro if(formField=='supplierCode'){ setV['supplierName'] = val[0]['shortName'] tableData.value = [] + } formRef.setValues(setV) - if(formField == 'locationCode' ){ - // 退货库位 获取明细列表 - getTableData() + if(formField == 'locationCode'&&formRef.formModel['supplierCode']){ + // 退货库位 获取明细列表 + getTableData() } }