queryProjectBudgetIncomeDetail(@PathVariable int id) {
+ Project project = new Project();
+ project.setId(id);
+ return projectBudgetService.getBudgetIncomeDetail(project);
+ }
+
+ @Setter
+ public static class SaleContractDetailForm {
+
+ public int id;
+
+ // 5 个字符
+ public String expirationDate;
+
+ }
+
+ @ResponseBody
+ @PostMapping("/sale-contract-details")
+ public void saleContractDetails(SaleContractDetailForm form) {
+
+
+ }
+
}
diff --git a/src/main/resources/templates/admin/business/process-new.ftl b/src/main/resources/templates/admin/business/process-new.ftl
index 6eae1b4..122a687 100644
--- a/src/main/resources/templates/admin/business/process-new.ftl
+++ b/src/main/resources/templates/admin/business/process-new.ftl
@@ -229,24 +229,25 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
-
- 保存并返回上一级
+
+ 返回上一级
+ 保存并返回上一级
@@ -590,14 +591,8 @@
}
],
fileList: [],
- businessPurchaseDetails: [
- {
- fee: 100
- },
- {
- fee: 200
- }
- ],
+ saleContractDetails: [],
+ businessPurchaseDetails: [],
showBusinessPurchaseDetails: false,
}
}
@@ -620,6 +615,22 @@
},
goToSaleContractDetail() {
this.changeMode(saleContractDetail)
+ const loading = this.$loading({
+ lock: true,
+ text: '正在加载项目',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ })
+
+ fetch("${base}/process/sale-contract-details/" + this.processForm.id)
+ .then(res => res.json())
+ .then(data => {
+ this.businessPurchaseDetails = data
+ })
+ .catch(err => {
+ this.$message.error("销售合同清单明细加载失败");
+ })
+ .finally(() => loading.close())
},
queryProject(q, callback) {
@@ -635,10 +646,7 @@
}])
}
else {
- callback(data.map(project => ({
- name: project.name,
- id: project.id,
- })))
+ callback(data)
}
})
.catch(err => {
@@ -710,6 +718,31 @@
})
},
+ submitToSaleContractProcess() {
+ const loading = this.$loading({
+ lock: true,
+ text: '正在提交',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ })
+
+ const processForm = this.processForm
+ fetch("${base}/process/sale-contract-details", {
+ method: 'POST', // or 'PUT'
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify(processForm),
+ }).then(response => {
+ this.goToSaleContractProcess()
+
+ }).catch(err => {
+ this.$message.error("项目提交失败");
+ }).finally(() => loading.close())
+
+
+ },
+
handleRemove(file, fileList) {
console.log(file, fileList);
},