scorpio 2 years ago
parent
commit
2dc12ac1ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/home/component/dash.vue

+ 2 - 2
src/views/home/component/dash.vue

@@ -477,12 +477,12 @@ export default {
         this.$message.error('该项目已经上报')
         return
       }
-      this.$confirm('是否确定进行项目上报', {
+      this.$confirm(res.project_stage === 1 ? '上报后该项目情况将更新为正式项目,请确认项目相关信息已经审核完成' : '是否确定进行项目上报', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        const data = { id: res.id, is_report: 1 }
+        const data = { id: res.id, is_report: 1, project_stage: res.project_stage === 1 ? 2 : res.project_stage }
         this.$api.project.proUpdate(data).then(res => {
           if (res.code === 200) {
             this.onLoad()