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