|
|
@ -556,6 +556,7 @@ const inputNumberChange = (field, index, row, val) => { |
|
|
|
message.error(t('ts.可开票数量范围是')+`:${row.maxInvoicableQuantity}~0`) |
|
|
|
} |
|
|
|
} |
|
|
|
handleAllocationPrice() |
|
|
|
} |
|
|
|
} |
|
|
|
const onChange = (field, cur) => { |
|
|
@ -603,6 +604,7 @@ const searchTableSuccess = (formField, searchField, val, searchFormRef, type, ro |
|
|
|
} |
|
|
|
tableData.value.push(newRow) |
|
|
|
}) |
|
|
|
handleAllocationPrice() |
|
|
|
} else { |
|
|
|
// 切换供应商代码 |
|
|
|
console.log(11,val[0][searchField]) |
|
|
@ -626,6 +628,18 @@ const searchTableSuccess = (formField, searchField, val, searchFormRef, type, ro |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
// 模具分摊单价 |
|
|
|
const handleAllocationPrice = async ()=>{ |
|
|
|
let res = await SupplierinvoiceRequestDetailApi.handleAllocationPrice(tableData.value) |
|
|
|
tableData.value.forEach(item=>{ |
|
|
|
let findItem = res.find(item1=>item1.id == item?.id) |
|
|
|
if(findItem){ |
|
|
|
item['allocationPrice'] = findItem['allocationPrice'] |
|
|
|
} |
|
|
|
}) |
|
|
|
console.log('模具分摊单价',res) |
|
|
|
|
|
|
|
} |
|
|
|
const Echo = [] |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|