|
@@ -102,7 +102,7 @@ export default {
|
|
|
const {
|
|
|
recentlyPrice = "0",
|
|
|
isApprovalFirst = "N",
|
|
|
- } = await fetchExist({ puOrg, customer, supplier, materialCode });
|
|
|
+ } = await fetchExist({ puOrg, customer, supplier, materialCode, priceType: prop.row.priceType });
|
|
|
this.loading = false;
|
|
|
await this.onRowAdd(this.tabName, {
|
|
|
...item,
|
|
@@ -138,7 +138,7 @@ export default {
|
|
|
recentlyPrice,
|
|
|
isApprovalFirst,
|
|
|
purchasequantity
|
|
|
- } = await fetchExist({puOrg, supplier, materialCode: prop.row.materialCode, customer:prop.row.customer,customerName: prop.row.customerName});
|
|
|
+ } = await fetchExist({puOrg, supplier, materialCode: prop.row.materialCode, customer:prop.row.customer,customerName: prop.row.customerName, priceType: prop.row.priceType});
|
|
|
prop.row.yPurchaseQuantity = purchasequantity
|
|
|
prop.row.recentlyPrice = recentlyPrice
|
|
|
prop.row.isApprovalFirst = isApprovalFirst
|
|
@@ -152,7 +152,8 @@ export default {
|
|
|
const { TableColumns } = TabColumns.find(
|
|
|
({ item: { key } }) => key === tabName
|
|
|
);
|
|
|
- const { code, data } = await ITEM(prop);
|
|
|
+ console.log('看看prop', prop)
|
|
|
+ const { code, data } = await ITEM(prop, true);
|
|
|
if (code === 200) {
|
|
|
this.params = data;
|
|
|
this.params.priceApplyItems = data.priceApplyItems.map((item) => ({
|