|
@@ -199,15 +199,22 @@
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
- v-show="scope.row.processStatus == null || scope.row.processStatus == '-1' || scope.row.processStatus == ''"
|
|
|
icon="el-icon-edit"
|
|
|
@click="process(scope.row)"
|
|
|
+ v-if="btnShow(scope.row)"
|
|
|
v-hasPermi="['gas:regulatingBoxMaintenance:edit']"
|
|
|
>审核
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="reviewListOpen(scope.row)"
|
|
|
+ >审核记录
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['gas:valveWellInspection:remove']"
|
|
@@ -316,7 +323,7 @@ import {
|
|
|
import {listValveWellPosition} from "@/api/gas/valveWellPosition";
|
|
|
import Cookies from "js-cookie";
|
|
|
import {listPostAll} from "@/api/system/post";
|
|
|
-import {updateRegulatingBoxMaintenance} from "@/api/gas/regulatingBoxMaintenance";
|
|
|
+import {getReviewList, updateRegulatingBoxMaintenance} from "@/api/gas/regulatingBoxMaintenance";
|
|
|
import {getWorker} from "@/api/gas/user";
|
|
|
|
|
|
export default {
|
|
@@ -324,10 +331,15 @@ export default {
|
|
|
dicts: ['find_problem','process_status'],
|
|
|
data() {
|
|
|
return {
|
|
|
- shFrom:{
|
|
|
+ //审核记录
|
|
|
+ reviewListShow: false,
|
|
|
+ reviewList: [],
|
|
|
+ shFrom: {
|
|
|
id: '',
|
|
|
- processStatus:'',
|
|
|
- processComments: ""
|
|
|
+ uids: [],
|
|
|
+ processStatus: '',
|
|
|
+ processComments: "",
|
|
|
+ postNameArias: null,
|
|
|
},
|
|
|
pickerOptions: {
|
|
|
shortcuts: [{
|
|
@@ -394,6 +406,8 @@ export default {
|
|
|
discoverProblems: undefined,
|
|
|
discoverTime: undefined,
|
|
|
createTimes:[],
|
|
|
+ processStatus: '',
|
|
|
+ postNameArias:this.$store.state.user.postName,
|
|
|
ranks:(Cookies.get("postName").indexOf('xx') > -1 ? parseInt(Cookies.get("postId")) : undefined),
|
|
|
},
|
|
|
// 表单参数
|
|
@@ -424,6 +438,22 @@ export default {
|
|
|
this.getWorkerList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ btnShow(row){
|
|
|
+ let b = false;
|
|
|
+ if (row.flag==true){
|
|
|
+ b = true;
|
|
|
+ }
|
|
|
+ //主表审核状态通过与不通过都不显示
|
|
|
+ if (row.processStatus=='0' || row.processStatus=='1'){
|
|
|
+ b = false;
|
|
|
+ }
|
|
|
+ return b;
|
|
|
+ },
|
|
|
+ reviewListOpen(row){
|
|
|
+ this.reviewList = [];
|
|
|
+ this.reviewListShow=true;
|
|
|
+ getReviewList({emrId: row.id}).then(res=>this.reviewList = res.rows);
|
|
|
+ },
|
|
|
checkRemark(value){
|
|
|
if (value=='0'){
|
|
|
this.$nextTick(() => {
|
|
@@ -524,6 +554,8 @@ export default {
|
|
|
this.title = "添加阀井巡查";
|
|
|
},
|
|
|
upprocess(){
|
|
|
+ const postNameArias = this.$store.state.user.postName;
|
|
|
+ this.shFrom.postNameArias = postNameArias
|
|
|
if (this.shFrom.processStatus == undefined || this.shFrom.processStatus == ''){
|
|
|
this.$message.warning("请选择审核状态")
|
|
|
}
|