|
@ -56,6 +56,7 @@ |
|
|
@success="getList" |
|
|
@success="getList" |
|
|
:isOpenSearchTable="true" |
|
|
:isOpenSearchTable="true" |
|
|
fieldTableColumn="poNumber" |
|
|
fieldTableColumn="poNumber" |
|
|
|
|
|
:updateTypeEdiltSubList="true" |
|
|
:rules="PurchasereceiptRequestMainRules" |
|
|
:rules="PurchasereceiptRequestMainRules" |
|
|
:formAllSchemas="PurchasereceiptRequestMain.allSchemas" |
|
|
:formAllSchemas="PurchasereceiptRequestMain.allSchemas" |
|
|
:tableAllSchemas="PurchasereceiptRequestDetail.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) => { |
|
|
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
@ -680,7 +669,6 @@ const openForm = async (type: string, row?: Object) => { |
|
|
updateData['hahaha'] = updateData['receiptNumber'] |
|
|
updateData['hahaha'] = updateData['receiptNumber'] |
|
|
} |
|
|
} |
|
|
console.log('updateData',updateData) |
|
|
console.log('updateData',updateData) |
|
|
getSupplierOptions(updateData['itemCode']) |
|
|
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
if (item.field == 'supplierCode') { |
|
|
if (item.field == 'supplierCode') { |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.disabled = true |
|
|