|
@@ -538,7 +538,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <template v-if="detailList.examineStatus !== 'WAIT'">
|
|
|
+ <template v-if="detailList.examineStatus !== 'SAVE'">
|
|
|
{{ scope.row.contractQty }}
|
|
|
</template>
|
|
|
<el-input
|
|
@@ -558,7 +558,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <template v-if="detailList.examineStatus !== 'WAIT'">
|
|
|
+ <template v-if="detailList.examineStatus !== 'SAVE'">
|
|
|
{{ scope.row.contractPrice }}
|
|
|
</template>
|
|
|
<el-input
|
|
@@ -569,7 +569,8 @@
|
|
|
clearable
|
|
|
></el-input>
|
|
|
</template>
|
|
|
- </el-table-column> <el-table-column
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
align="right"
|
|
|
label="合同金额"
|
|
|
prop="contractAmount"
|
|
@@ -577,7 +578,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <template v-if="detailList.examineStatus !== 'WAIT'">
|
|
|
+ <template v-if="detailList.examineStatus !== 'SAVE'">
|
|
|
{{ comTotal(scope.row.contractQty,scope.row.contractPrice) }}
|
|
|
</template>
|
|
|
<div v-else>
|
|
@@ -1023,6 +1024,21 @@ export default {
|
|
|
this.checkBy = this.name;
|
|
|
this.getData({ id: this.detailId });
|
|
|
},
|
|
|
+ watch:{
|
|
|
+ "detailList.items": {
|
|
|
+ handler(newValue, oldValue) {
|
|
|
+ if (newValue && newValue.length) {
|
|
|
+ newValue.forEach((item, index) => {
|
|
|
+ item.contractAmount = Number(item.contractQty) * Number(item.contractPrice)
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ this.detailList.items = newValue;
|
|
|
+ },
|
|
|
+ immediate: true,
|
|
|
+ deep: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
//审批通过后可以编辑
|
|
|
async saveFn() {
|
|
@@ -1149,7 +1165,6 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
this.detailList.items.map(e=>{
|
|
|
- e.contractAmount = e.contractQty * e.contractPrice
|
|
|
if (!e.contractAmount) {
|
|
|
return this.$errorMsg('合同单价、合同数量不能为空')
|
|
|
}
|
|
@@ -1220,8 +1235,8 @@ export default {
|
|
|
}
|
|
|
// item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
|
|
|
item.sums1 = ['orderHasSendQty', 'dataQty', 'qty',"hasSendQty","contractQty"]
|
|
|
- item.sums2 = ['totalAmount', 'diffAmount', 'price','depositAmount',"contractPrice","comTotal",
|
|
|
- "contractAmount",]
|
|
|
+ item.sums2 = ['totalAmount', 'diffAmount', 'price','depositAmount',"contractPrice","comTotal","contractAmount",
|
|
|
+ ]
|
|
|
});
|
|
|
res.data.items = arr;
|
|
|
this.detailList = res.data;
|