diff --git a/src/main/resources/templates/admin/business/process-new.ftl b/src/main/resources/templates/admin/business/process-new.ftl index 5edf70b..02ef695 100644 --- a/src/main/resources/templates/admin/business/process-new.ftl +++ b/src/main/resources/templates/admin/business/process-new.ftl @@ -86,9 +86,13 @@ + <#--显示项目名称,但是值是 projectNo 定义显示的列表样式--> +
@@ -579,7 +583,7 @@ goToHome() { // 判断是否已填写了 - if (Object.keys(this.processForm).length > 1) { + if (Object.keys(this.processForm).length > 2) { // 2代表 -> sealTypes,projectTitle this.$confirm('您确认要返回上一级吗 返回后填写的表单将重置', '返回上一级', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -720,10 +724,16 @@ .finally(() => loading.close()) }, clearProjectProcess() { - this.projectSelected = false this.initForm({}) this.incomeDetails = [] + this.projectSelected = false this.procurementDetails = [] + + if (this.isProcurementContractMode) { + this.goToHome() + // 重新打开对话框选择项目 + this.newProcurementContractClick() + } }, async saveDraft() {