diff --git a/src/main/resources/templates/admin/business/process-new.ftl b/src/main/resources/templates/admin/business/process-new.ftl
index fc360aa..d3f5a8a 100644
--- a/src/main/resources/templates/admin/business/process-new.ftl
+++ b/src/main/resources/templates/admin/business/process-new.ftl
@@ -239,12 +239,11 @@
-
+
-
-
-
-
+
+
+
@@ -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("销售合同清单明细加载失败");