|
|
@ -263,6 +263,7 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
if(formField=='itemCode'){ |
|
|
|
setV['itemName'] = val[0]['name'] |
|
|
|
// 更换查询 供应商下拉框数据 |
|
|
|
let res = await PurchasereturnRequestDetailApi.getPurchasereturnSupplierByCode({ |
|
|
|
itemCode:val[0][searchField] |
|
|
@ -899,7 +900,7 @@ const submitForm = async (formType, submitData) => { |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
data.returnSourceType='1' |
|
|
|
await PurchasereturnRequestMainApi.createPurchasereturnRequestMain(data) |
|
|
|
await PurchasereturnRequestMainApi.createPurchasereturnRequestMainNew(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
data.returnSourceType='1' |
|
|
|