|
@@ -131,7 +131,7 @@
|
|
|
const {
|
|
|
recentlyPrice = "0",
|
|
|
isApprovalFirst = "N",
|
|
|
- isPriceAdjustment = "N",
|
|
|
+ isPriceAdjustment = "",
|
|
|
} = await fetchExist({puOrg, customer, supplier, materialCode, customerName: ""});
|
|
|
this.loading = false;
|
|
|
await this.onRowAdd(this.tabName, {
|
|
@@ -155,6 +155,25 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ //
|
|
|
+ async changeCustomerName(prop) {
|
|
|
+ console.log("prop", prop)
|
|
|
+ const {
|
|
|
+ puOrg,
|
|
|
+ supplier,
|
|
|
+ currency,
|
|
|
+ currencyCode,
|
|
|
+ currencyName,
|
|
|
+ } = this.params;
|
|
|
+ const {
|
|
|
+ recentlyPrice,
|
|
|
+ isApprovalFirst,
|
|
|
+ purchasequantity
|
|
|
+ } = await fetchExist({puOrg, supplier, materialCode: prop.row.materialCode, customer:prop.row.customer,customerName: prop.row.customerName});
|
|
|
+ prop.row.yPurchaseQuantity = purchasequantity
|
|
|
+ prop.row.recentlyPrice = recentlyPrice
|
|
|
+ prop.row.isApprovalFirst = isApprovalFirst
|
|
|
+ },
|
|
|
//
|
|
|
async fetchItem(prop) {
|
|
|
try {
|
|
@@ -328,6 +347,16 @@
|
|
|
>
|
|
|
</component>
|
|
|
</template>
|
|
|
+ <template slot="customerName" slot-scope="scope">
|
|
|
+ <component
|
|
|
+ v-bind="scope.attr"
|
|
|
+ v-model="scope.row[scope.item.key]"
|
|
|
+ :size="$attrs.size"
|
|
|
+ :source.sync="scope.row"
|
|
|
+ @change="changeCustomerName({ ...scope, selectData: $event })"
|
|
|
+ >
|
|
|
+ </component>
|
|
|
+ </template>
|
|
|
<el-table-column fixed="right" label="操作" width="100">
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
<el-button :size="$attrs.size" @click="onRowAdd(tabName)">
|