|
@@ -210,7 +210,11 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
+ <template v-if="detailList.examineStatus !== 'WAIT'">
|
|
|
+ {{ scope.row.contractQty }}
|
|
|
+ </template>
|
|
|
<el-input
|
|
|
+ v-else
|
|
|
class="inpt"
|
|
|
v-model="scope.row.contractQty"
|
|
|
size="mini"
|
|
@@ -226,9 +230,11 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
-
|
|
|
+ <template v-if="detailList.examineStatus !== 'WAIT'">
|
|
|
+ {{ scope.row.contractPrice }}
|
|
|
+ </template>
|
|
|
<el-input
|
|
|
-
|
|
|
+ v-else
|
|
|
class="inpt"
|
|
|
v-model="scope.row.contractPrice"
|
|
|
size="mini"
|
|
@@ -243,13 +249,20 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input
|
|
|
+ <template v-if="detailList.examineStatus !== 'WAIT'">
|
|
|
+ {{ comTotal(scope.row.contractQty,scope.row.contractPrice) }}
|
|
|
+ </template>
|
|
|
+ <div v-else>
|
|
|
+ {{comTotal(scope.row.contractQty,scope.row.contractPrice)}}
|
|
|
+ </div>
|
|
|
+ <!-- <el-input
|
|
|
|
|
|
+ readonly
|
|
|
class="inpt"
|
|
|
v-model="scope.row.contractAmount"
|
|
|
size="mini"
|
|
|
clearable
|
|
|
- ></el-input>
|
|
|
+ ></el-input> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -265,7 +278,20 @@
|
|
|
prop="dataQty"
|
|
|
min-width="160"
|
|
|
show-overflow-tooltip
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <template v-if="details.examineStatus !== 'SAVE'">
|
|
|
+ {{ scope.row.dataQty }}
|
|
|
+ </template>
|
|
|
+ <el-input
|
|
|
+ v-else
|
|
|
+ class="inpt"
|
|
|
+ v-model="scope.row.dataQty"
|
|
|
+ size="mini"
|
|
|
+ clearable
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
label="收差全额"
|
|
@@ -491,7 +517,13 @@ export default {
|
|
|
details: {},
|
|
|
restrictFilename: [
|
|
|
'结算单', '合同', '明细表', '审核表', '收据', '发票', '照片','相片'
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ comTotal(){
|
|
|
+ return (qty,price)=>{
|
|
|
+ console.log(qty,price);
|
|
|
+ return Number(qty) * Number(price)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
computed:{
|
|
@@ -509,7 +541,7 @@ 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",
|
|
|
+ item.sums2 = ['totalAmount', 'diffAmount', 'price','depositAmount', "contractPrice","comTotal",
|
|
|
"contractAmount",]
|
|
|
})
|
|
|
res.data.items = arr
|
|
@@ -527,6 +559,15 @@ export default {
|
|
|
this.$errorMsg('请选择安装时间')
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ this.details.items.map(e=>{
|
|
|
+ e.contractAmount = e.contractQty * e.contractPrice
|
|
|
+ if (!e.contractAmount) {
|
|
|
+ return this.$errorMsg('合同单价、合同数量不能为空')
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
this.fileList.forEach((el) => {
|
|
|
|
|
|
if (this.details.dataList.length){
|