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