新增合同界面 项目提示提前

master
Harry Yang 2022-12-30 15:35:48 +08:00
parent 37dbe77fe6
commit 7fe28430a9
1 changed files with 6 additions and 4 deletions

View File

@ -824,6 +824,11 @@
.then(res => res.json())
.then(data => {
const { incomeDetails, procurementDetails, ...form } = data
if (!form.projectNo || !form.projectName) {
this.$message.warning("当前选择的项目没有编号或者名称")
return
}
// 转换数据
// @formatter:off
const computeType = (type) => {
@ -844,7 +849,7 @@
default: return '未知'
}
}
// @formatter:on
// @formatter:on
this.initForm(form)
this.projectSelected = true
@ -861,9 +866,6 @@
this.procurementDetailsRowKey = rowKey
if (!form.projectNo || !form.projectName) {
this.$message.warning("当前选择的项目没有编号或者名称");
}
})
.catch(err => {
this.$message.error("项目'" + name + "'加载失败");