|
@@ -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("提交成功");
|
|
|
})
|
|
|
}
|
|
|
},
|