|
@@ -473,9 +473,9 @@
|
|
|
<span>{{ scope.row.specification }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip></el-table-column> -->
|
|
|
+ <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column
|
|
|
align="right"
|
|
|
label="单价"
|
|
@@ -530,7 +530,7 @@
|
|
|
{{ scope.row.depositAmount | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column
|
|
|
+ <el-table-column
|
|
|
align="right"
|
|
|
label="合同数量"
|
|
|
prop="contractQty"
|
|
@@ -602,6 +602,8 @@
|
|
|
class="inpt"
|
|
|
v-model.number="scope.row.dataQty"
|
|
|
size="mini"
|
|
|
+ @blur="setDataQty($event,scope.row)"
|
|
|
+
|
|
|
clearable
|
|
|
></el-input>
|
|
|
<div v-else>
|
|
@@ -630,7 +632,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.diffPolicyPrice | numToFixed }}
|
|
|
</template>
|
|
|
- </el-table-column> -->
|
|
|
+ </el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
</div>
|
|
@@ -992,6 +994,8 @@ import {
|
|
|
getDepositManageEdit,
|
|
|
getCommonFileGetStream,
|
|
|
} from "@/api/engin_deposit/refund_list";
|
|
|
+import { computeDiff } from '@/api/engin_deposit.js'
|
|
|
+
|
|
|
import ret from "bluebird/js/release/util";
|
|
|
export default {
|
|
|
props: {
|
|
@@ -1091,6 +1095,17 @@ export default {
|
|
|
return "";
|
|
|
}
|
|
|
},
|
|
|
+ // 计算收差金额
|
|
|
+ setDataQty(e,row){
|
|
|
+ if(!row.dataQty) return
|
|
|
+ row.saleTypeId = this.details.saleTypeId
|
|
|
+ computeDiff(row).then(res=>{
|
|
|
+ row.diffAmount = res.data.diffAmount
|
|
|
+ row.diffPolicyPrice = res.data.diffPolicyPrice
|
|
|
+ this.$successMsg('已计算收差金额')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ ,
|
|
|
//审批驳回
|
|
|
async rejectFn() {
|
|
|
this.$confirm("此操作将审批订单, 是否继续?", "提示", {
|
|
@@ -1104,13 +1119,13 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- // for (let i = 0; i < this.detailList.items.length; i++) {
|
|
|
- // this.detailList.items[i].contractAmount = this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
|
|
|
- // if (this.detailList.items[i].contractAmount) {
|
|
|
- // return this.$errorMsg('合同单价、合同数量不能为空')
|
|
|
- // }
|
|
|
+ for (let i = 0; i < this.detailList.items.length; i++) {
|
|
|
+ this.detailList.items[i].contractAmount = this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
|
|
|
+ if (this.detailList.items[i].contractAmount) {
|
|
|
+ return this.$errorMsg('合同单价、合同数量不能为空')
|
|
|
+ }
|
|
|
|
|
|
- // }
|
|
|
+ }
|
|
|
|
|
|
// this.detailList.items.map(e=>{
|
|
|
// e.contractAmount = e.contractQty * e.contractPrice
|
|
@@ -1180,12 +1195,13 @@ export default {
|
|
|
this.$message.error("请选择安装时间");
|
|
|
return;
|
|
|
}
|
|
|
- // this.detailList.items.map(e=>{
|
|
|
- // if (!e.contractAmount) {
|
|
|
- // return this.$errorMsg('合同单价、合同数量不能为空')
|
|
|
- // }
|
|
|
- // })
|
|
|
+ for (let i = 0; i < this.detailList.items.length; i++) {
|
|
|
+ this.detailList.items[i].contractAmount = this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
|
|
|
+ if (this.detailList.items[i].contractAmount) {
|
|
|
+ return this.$errorMsg('合同单价、合同数量不能为空')
|
|
|
+ }
|
|
|
|
|
|
+ }
|
|
|
let data = {
|
|
|
...this.detailList,
|
|
|
checkBy: this.checkBy,
|