|
|
@ -56,6 +56,7 @@ |
|
|
|
@success="getList" |
|
|
|
:isOpenSearchTable="true" |
|
|
|
fieldTableColumn="poNumber" |
|
|
|
:updateTypeEdiltSubList="true" |
|
|
|
:rules="PurchasereceiptRequestMainRules" |
|
|
|
:formAllSchemas="PurchasereceiptRequestMain.allSchemas" |
|
|
|
:tableAllSchemas="PurchasereceiptRequestDetail.allSchemas" |
|
|
@ -412,19 +413,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
const getSupplierOptions = async (itemCode)=>{ |
|
|
|
let res = await PurchasereturnRequestDetailApi.getPurchasereturnSupplierByCode({ |
|
|
|
itemCode |
|
|
|
}) |
|
|
|
console.log('物料供应商',res) |
|
|
|
if(res&&res.length>0){ |
|
|
|
PurchasereturnRequestMainNew.allSchemas.formSchema.forEach(item=>{ |
|
|
|
if(item.field == 'supplierCode'){ |
|
|
|
item.componentProps.options = res |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 查询页面返回——详情 |
|
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
@ -680,7 +669,6 @@ const openForm = async (type: string, row?: Object) => { |
|
|
|
updateData['hahaha'] = updateData['receiptNumber'] |
|
|
|
} |
|
|
|
console.log('updateData',updateData) |
|
|
|
getSupplierOptions(updateData['itemCode']) |
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'supplierCode') { |
|
|
|
item.componentProps.disabled = true |
|
|
|