|
|
@ -83,7 +83,7 @@ |
|
|
|
</template> |
|
|
|
</BasicForm> |
|
|
|
<!-- 添加明细:采购收货记录单号 --> |
|
|
|
<SearchTable ref="searchTableRef" @searchTableSuccess="searchTableSuccess1" > |
|
|
|
<SearchTable ref="searchTableRef" :hiddenFilterBtn="true" @searchTableSuccess="searchTableSuccess1" > |
|
|
|
<template #searchQueryhahaha> |
|
|
|
<el-form :inline="true"> |
|
|
|
<el-form-item label="供应商"> |
|
|
@ -278,10 +278,13 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro |
|
|
|
setV['asnNumber'] = '' |
|
|
|
tableData.value = [] |
|
|
|
getSupplierOptions(val[0][searchField]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
formRef.setValues(setV) |
|
|
|
if(formField=='itemCode'){ |
|
|
|
onChangeForm('itemCode',null,formRef) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@ -788,7 +791,6 @@ const handleAddTable = () => { |
|
|
|
// }) |
|
|
|
} |
|
|
|
const onChangeForm = async (field, cur, formRef)=>{ |
|
|
|
console.log('onChangeForm',field, cur, formRef) |
|
|
|
if(field=='supplierCode'){ |
|
|
|
//供应商 |
|
|
|
PurchasereturnRequestMainNew.allSchemas.formSchema.forEach(item=>{ |
|
|
@ -799,11 +801,16 @@ const onChangeForm = async (field, cur, formRef)=>{ |
|
|
|
formRef.value.setValues(setV) |
|
|
|
} |
|
|
|
}) |
|
|
|
}else if(field == 'locationCode'){ |
|
|
|
}else if(field == 'locationCode' || field == 'itemCode'){ |
|
|
|
// 退货库位 获取明细列表 |
|
|
|
let itemCode = field == 'locationCode'?formRef.value.formModel.itemCode:formRef.formModel.itemCode |
|
|
|
let fromLocationCode = field == 'locationCode'?formRef.value.formModel.locationCode:formRef.formModel.locationCode |
|
|
|
if(!itemCode||!fromLocationCode){ |
|
|
|
return |
|
|
|
} |
|
|
|
let subList = await PurchasereturnRequestDetailApi.getBalancePurchaseReceiptReturn({ |
|
|
|
itemCode:formRef.value.formModel.itemCode, |
|
|
|
fromLocationCode:formRef.value.formModel.locationCode |
|
|
|
itemCode, |
|
|
|
fromLocationCode |
|
|
|
}) |
|
|
|
|
|
|
|
console.log('subList',subList) |
|
|
|