销售合同清单明细调整
parent
65d853fc7b
commit
3204b10b5f
|
@ -239,12 +239,11 @@
|
|||
<el-table-column prop="param" label="参数"></el-table-column>
|
||||
<el-table-column prop="unit" label="单位"></el-table-column>
|
||||
<el-table-column prop="amount" label="数量"></el-table-column>
|
||||
<el-table-column prop="price" label="单价" width="100"></el-table-column>
|
||||
<el-table-column prop="price" label="单价" width="120"></el-table-column>
|
||||
<el-table-column prop="taxRate" label="税率"></el-table-column>
|
||||
<el-table-column prop="totalTaxInclude" label="含税金额" width="100"></el-table-column>
|
||||
<el-table-column prop="totalTaxExclude" label="不含税金额" width="100"></el-table-column>
|
||||
<el-table-column prop="totalTax" label="含税总金额" width="100"></el-table-column>
|
||||
<el-table-column prop="fee" label="税金"></el-table-column>
|
||||
<el-table-column prop="totalTaxInclude" label="含税金额" width="120"></el-table-column>
|
||||
<el-table-column prop="totalTaxExclude" label="不含税金额" width="120"></el-table-column>
|
||||
<el-table-column prop="totalTax" label="税金"></el-table-column>
|
||||
|
||||
<el-table-column prop="expirationDate" label="质保期" fixed="right" width="150">
|
||||
<template slot-scope="scope">
|
||||
|
@ -627,14 +626,27 @@
|
|||
this.changeMode(saleContractDetail)
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: '正在加载项目',
|
||||
text: '销售合同清单明细',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
fetch("${base}/process/sale-contract-details/" + id)
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
this.saleContractDetails = data
|
||||
// 转换数据
|
||||
// @formatter:off
|
||||
const computeType = (type) => {
|
||||
switch (type) {
|
||||
case 1: return '设备'
|
||||
case 2: return '工程'
|
||||
case 3: return '服务'
|
||||
default: return '未知'
|
||||
}
|
||||
}
|
||||
// @formatter:on
|
||||
this.saleContractDetails = data.map(detail => ({
|
||||
...detail, type: computeType(detail.type)
|
||||
}))
|
||||
})
|
||||
.catch(err => {
|
||||
this.$message.error("销售合同清单明细加载失败");
|
||||
|
|
Loading…
Reference in New Issue