Эх сурвалжийг харах

项目管理-按钮显示

sr 4 жил өмнө
parent
commit
6b47d547dc

+ 9 - 0
ruoyi-ui/src/api/projectInfo/info.js

@@ -8,6 +8,15 @@ export function setExamine(data) {
     data: data
   })
 }
+// 确认审核
+export function setPass(data) {
+  return request({
+    url: '/bmProject/project/pass',
+    method: 'post',
+    data: data
+  })
+}
+
 // 驳回项目
 export function setReject(data) {
   return request({

+ 26 - 7
ruoyi-ui/src/views/management/info/index.vue

@@ -64,9 +64,11 @@
       <el-table-column label="操作" width="280" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button size="mini" type="text" style="background: #0669B2;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
-            @click="chei(scope.row)">查看/审核</el-button>
+            @click="chei(scope.row)">查看详情</el-button>
+            <el-button size="mini" type="text" style="background: #3FBCEF;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']" v-if="scope.row.projectStatus%2==0"
+              @click="getPass(scope.row)">通过</el-button>
           <el-button size="mini" type="text" style="background: #3FBCEF;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
-            @click="infoBtn(scope.row)">{{scope.row.projectStatus%2==1?'提交审核':'驳回'}}</el-button>
+            @click="infoBtn(scope.row)">{{scope.row.projectStatus%2==1?'提交':'驳回'}}</el-button>
           <!-- <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']">修改</el-button> -->
           <el-button size="mini" type="text" style="background: #DE1939;color: #FFF;padding: 7px;" @click="handleDelete(scope.row)"
             v-hasPermi="['projectInfo:info:remove']">销号</el-button>
@@ -197,6 +199,7 @@
     addInfo,
     updateInfo,
     listProject,
+    setPass,
     exportInfo
   } from "@/api/projectInfo/info";
   let vm = ''
@@ -309,8 +312,24 @@
       }
     },
     methods: {
+      getPass(row) {
+        const _this = this
+        this.$confirm('是否提交通过', "提醒", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return setPass({
+          code: 3,
+          bmProjectId: row.id,
+        })
+        }).then(() => {
+          _this.getList();
+          _this.msgSuccess("提交成功");
+        })
+      },
       infoBtn(scrop) {
-        console.log()
+        const _this = this
         if (scrop.projectStatus % 2 == 1) {
           this.$confirm('是否确认提交审核', "提醒", {
             confirmButtonText: "确定",
@@ -322,8 +341,8 @@
               bmProjectId: scrop.id
             });
           }).then(() => {
-            this.getList();
-            this.msgSuccess("提交成功");
+            _this.getList();
+            _this.msgSuccess("提交成功");
           })
         } else {
           this.$confirm('是否确认驳回', "提醒", {
@@ -336,8 +355,8 @@
               bmProjectId: scrop.id
             });
           }).then(() => {
-            this.getList();
-            this.msgSuccess("提交成功");
+            _this.getList();
+            _this.msgSuccess("提交成功");
           })
         }
       },

+ 9 - 7
ruoyi-ui/src/views/statistical/clue/index.vue

@@ -12,7 +12,7 @@
                   <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
                     @click="dec_btn(scope.row)">查看详情</el-button>
                   <el-button size="mini" type="text" style="background: #0669B2;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
-                    @click="infoBtn(scope.row)" v-if="scope.row.projectStatus%2==1">提交审核</el-button>
+                    @click="infoBtn(scope.row)" v-if="scope.row.projectStatus%2==1">提交</el-button>
                   <el-button size="mini" type="text" style="background: #DE1939;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
                     @click="bh_brn(scope.row)">销号</el-button>
                 </template>
@@ -126,19 +126,21 @@
           },
         })
       },
-      bh_brn(scope) {
+      bh_brn(scope) {
+        const _this = this
         this.$confirm('是否确认销号', "提醒", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning"
         }).then(function() {
           delProject(scope.id).then(() => {
-            this.getList();
-            this.msgSuccess("提交成功");
+            _this.getList();
+            _this.msgSuccess("提交成功");
           })
         })
       },
-      infoBtn(scope) {
+      infoBtn(scope) {
+        const _this = this
         this.$confirm('是否确认提交申请', "提醒", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
@@ -149,8 +151,8 @@
             bmProjectId: scope.id
           });
         }).then(() => {
-          this.getList();
-          this.msgSuccess("提交成功");
+          _this.getList();
+          _this.msgSuccess("提交成功");
         })
       },
       getList() {

+ 9 - 7
ruoyi-ui/src/views/statistical/putProduction/index.vue

@@ -12,7 +12,7 @@
                   <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
                     @click="dec_btn(scope.row)">查看详情</el-button>
                   <el-button size="mini" type="text" style="background: #0669B2;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
-                    @click="infoBtn(scope.row)" v-if="scope.row.projectStatus%2==1">提交审核</el-button>
+                    @click="infoBtn(scope.row)" v-if="scope.row.projectStatus%2==1">提交</el-button>
                   <el-button size="mini" type="text" style="background: #DE1939;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
                     @click="bh_brn(scope.row)">销号</el-button>
                 </template>
@@ -122,19 +122,21 @@
           },
         })
       },
-      bh_brn(scope) {
+      bh_brn(scope) {
+        const _this =  this
         this.$confirm('是否确认销号', "提醒", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning"
         }).then(function() {
           delProject(scope.id).then(() => {
-            this.getList();
-            this.msgSuccess("提交成功");
+            _this.getList();
+            _this.msgSuccess("提交成功");
           })
         })
       },
-      infoBtn(scope) {
+      infoBtn(scope) {
+        const _this = this
         this.$confirm('是否确认提交申请', "提醒", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
@@ -145,8 +147,8 @@
             bmProjectId: scope.id
           });
         }).then(() => {
-          this.getList();
-          this.msgSuccess("提交成功");
+          _this.getList();
+          _this.msgSuccess("提交成功");
         })
       },
       getList() {

+ 9 - 7
ruoyi-ui/src/views/statistical/sign/index.vue

@@ -12,7 +12,7 @@
                   <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
                     @click="dec_btn(scope.row)">查看详情</el-button>
                   <el-button size="mini" type="text" style="background: #0669B2;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
-                    @click="infoBtn(scope.row)">{{scope.row.projectStatus%2==1?'提交审核':'驳回'}}</el-button>
+                    @click="infoBtn(scope.row)">{{scope.row.projectStatus%2==1?'提交':'驳回'}}</el-button>
                   <el-button size="mini" type="text" style="background: #DE1939;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
                     @click="bh_brn(scope.row)">销号</el-button>
                 </template>
@@ -147,18 +147,20 @@
         })
       },
       bh_brn(scope) {
+        const _this = this
         this.$confirm('是否确认销号', "提醒", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning"
         }).then(function() {
           delProject(scope.id).then(() => {
-            this.getList();
-            this.msgSuccess("提交成功");
+            _this.getList();
+            _this.msgSuccess("提交成功");
           })
         })
       },
       infoBtn(scope) {
+        const _this = this
         if (scope.projectStatus % 2 == 1) {
           this.$confirm('是否确认提交审核', "提醒", {
             confirmButtonText: "确定",
@@ -170,8 +172,8 @@
               bmProjectId: scope.id
             });
           }).then(() => {
-            this.getList();
-            this.msgSuccess("提交成功");
+            _this.getList();
+            _this.msgSuccess("提交成功");
           })
         } else {
           this.$confirm('是否确认驳回', "提醒", {
@@ -184,8 +186,8 @@
               bmProjectId: scope.id
             });
           }).then(() => {
-            this.getList();
-            this.msgSuccess("提交成功");
+            _this.getList();
+            _this.msgSuccess("提交成功");
           })
         }
 

+ 9 - 7
ruoyi-ui/src/views/statistical/underConstruction/index.vue

@@ -12,7 +12,7 @@
                   <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
                     @click="dec_btn(scope.row)">查看详情</el-button>
                   <el-button size="mini" type="text" style="background: #0669B2;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
-                    @click="infoBtn(scope.row)" v-if="scope.row.projectStatus%2==1">提交审核</el-button>
+                    @click="infoBtn(scope.row)" v-if="scope.row.projectStatus%2==1">提交</el-button>
                   <el-button size="mini" type="text" style="background: #DE1939;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
                     @click="bh_brn(scope.row)">销号</el-button>
                 </template>
@@ -126,19 +126,21 @@
           },
         })
       },
-      bh_brn(scope) {
+      bh_brn(scope) {
+        const _this = this
         this.$confirm('是否确认销号', "提醒", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning"
         }).then(function() {
           delProject(scope.id).then(() => {
-            this.getList();
-            this.msgSuccess("提交成功");
+            _this.getList();
+            _this.msgSuccess("提交成功");
           })
         })
       },
-      infoBtn(scope) {
+      infoBtn(scope) {
+        const _this = this
         this.$confirm('是否确认提交申请', "提醒", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
@@ -149,8 +151,8 @@
             bmProjectId: scope.id
           });
         }).then(() => {
-          this.getList();
-          this.msgSuccess("提交成功");
+          _this.getList();
+          _this.msgSuccess("提交成功");
         })
       },
       getList() {