|
@@ -312,6 +312,12 @@
|
|
|
</el-select>
|
|
|
<span v-else>{{ row.price }}</span>
|
|
|
</template>
|
|
|
+ <template slot="amount" slot-scope="{ row }">
|
|
|
+ <span>{{ row.amount | decimalFormat }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="actualQuantity" slot-scope="{ row }">
|
|
|
+ <span>{{ row.actualQuantity | IntegerFormat }}</span>
|
|
|
+ </template>
|
|
|
<template slot="orderQuantity" slot-scope="{ row }">
|
|
|
<el-input
|
|
|
v-if="row.$cellEdit"
|
|
@@ -1548,6 +1554,9 @@ export default {
|
|
|
filters: {
|
|
|
IntegerFormat(num) {
|
|
|
return IntegerFormat(num);
|
|
|
+ },
|
|
|
+ decimalFormat(num) {
|
|
|
+ return num ? Number(num).toFixed(2) : "0.00";
|
|
|
}
|
|
|
},
|
|
|
//初始化查询
|
|
@@ -1710,11 +1719,20 @@ export default {
|
|
|
this.contactsData.forEach(item => {
|
|
|
delete item.id
|
|
|
delete item.pid
|
|
|
+ delete item.itemId
|
|
|
})
|
|
|
- this.advantageProjectData.forEach(item => {
|
|
|
+ this.goodsShowData.forEach(item => {
|
|
|
delete item.id
|
|
|
delete item.pid
|
|
|
+ delete item.itemId
|
|
|
})
|
|
|
+ this.giftData.forEach(item => {
|
|
|
+ delete item.id
|
|
|
+ delete item.pid
|
|
|
+ delete item.itemId
|
|
|
+ })
|
|
|
+ this.advantageProjectData = []
|
|
|
+ this.bankOfDepositData = []
|
|
|
this.bankOfDepositData.forEach(item => {
|
|
|
delete item.id
|
|
|
delete item.pid
|
|
@@ -3008,13 +3026,20 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
returnBack(row) {
|
|
|
- const queryParams = {
|
|
|
- corpType: 'KH',
|
|
|
- belongtocompany: row.id
|
|
|
- }
|
|
|
- getKHList(queryParams).then(res => {
|
|
|
+ getKHList({corpType: 'KH', belongtocompany: row.id}).then(res => {
|
|
|
this.form.corpId = res.data.data.records.length > 0? res.data.data.records[0].id: null
|
|
|
- this.getCorpRow({adminProfiles: res.data.data.records[0].adminProfiles, id: res.data.data.records[0].id})
|
|
|
+ if (this.form.corpId) {
|
|
|
+ this.getCorpRow({adminProfiles: res.data.data.records[0].adminProfiles,
|
|
|
+ id: res.data.data.records[0].id,
|
|
|
+ packageRemarks: res.data.data.records[0].packageRemarks,
|
|
|
+ paymentType: res.data.data.records[0].paymentType})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ getKHList({corpType: 'GYS', belongtocompany: row.id}).then(res => {
|
|
|
+ this.form.productionPlant = res.data.data.records.length > 0? res.data.data.records[0].id: null;
|
|
|
+ if (this.form.productionPlant) {
|
|
|
+ this.getPlantRow({id: this.form.productionPlant})
|
|
|
+ }
|
|
|
})
|
|
|
this.form.belongCompany = row.cname
|
|
|
getlistBankBy(row.id).then(res =>{
|