审核取值方式修正

main
zhen 11 months ago
parent 1db45a0c66
commit a3a667912e
  1. 1
      src/views/smart/operationticket.vue
  2. 26
      src/views/smart/operationticketDetail.vue
  3. 1
      src/views/smart/workpermit.vue
  4. 27
      src/views/smart/workpermitDetail.vue

@ -651,7 +651,6 @@ import {getList, getDetail, add, update, remove, closeticket} from "@/api/smart/
frameMode:"search", frameMode:"search",
id: row.id, id: row.id,
operationTicketNo:row.operationTicketNo, operationTicketNo:row.operationTicketNo,
reviewStatus: row.reviewStatus
}, },
}); });
}, },

@ -634,19 +634,6 @@ export default {
this.frame_class = 'frame_class1'; this.frame_class = 'frame_class1';
this.SearchDetail(); this.SearchDetail();
} }
switch (this.$route.query.reviewStatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
// if(this.$route.query.reviewStatus ===1){ // if(this.$route.query.reviewStatus ===1){
// this.form = ""; // this.form = "";
// }else if(this.$route.query.reviewStatus ===2){ // }else if(this.$route.query.reviewStatus ===2){
@ -842,6 +829,19 @@ export default {
getDetail(this.$route.query.id).then(res => { getDetail(this.$route.query.id).then(res => {
console.log(res); console.log(res);
this.tab1_form = res.data.data; this.tab1_form = res.data.data;
switch (this.tab1_form.reviewStatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
}); });
}, },
auditing() { auditing() {

@ -435,7 +435,6 @@
query: { query: {
frameMode:"search", frameMode:"search",
id: row.id, id: row.id,
checkstatus: row.checkStatus,
ticketCode:row.ticketCode ticketCode:row.ticketCode
}, },
}); });

@ -547,20 +547,6 @@
create_date.display = false; create_date.display = false;
const ticketCode = this.findObject(this.optionParam.column, "ticketCode"); const ticketCode = this.findObject(this.optionParam.column, "ticketCode");
ticketCode.display = false; ticketCode.display = false;
switch (this.$route.query.checkstatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
}, },
methods: { methods: {
handleFormSubmit() { handleFormSubmit() {
@ -714,6 +700,19 @@
getDetail(this.$route.query.id).then(res => { getDetail(this.$route.query.id).then(res => {
console.log(res); console.log(res);
this.tab1_form = res.data.data; this.tab1_form = res.data.data;
switch (this.tab1_form.checkStatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
}); });
}, },
closeTicket() { closeTicket() {

Loading…
Cancel
Save