审核状态取得方式修正

main
yangzhicheng 11 months ago
parent f5ff0c1d41
commit 5e50fd9e44
  1. 3
      src/views/leger/equipmentledger.vue
  2. 50
      src/views/leger/equipmentledgerDetail.vue
  3. 3
      src/views/smart/workorder.vue
  4. 19
      src/views/smart/workorderDetail.vue

@ -562,8 +562,7 @@ import {getList, getDetail, add, update, remove, reject, auditing} from "@/api/l
path: "/leger/equipmentledgerDetail",
query: {
frameMode:"search",
id: row.id,
checkstatus: row.checkStatus
id: row.id
},
});
},

@ -7,14 +7,6 @@
<el-col >
审核状态:
<avue-input v-model="form" placeholder="" class="frame_class1" style = "width: 100px"></avue-input>
<!-- <el-select v-model="checkStatusValue">-->
<!-- <el-option-->
<!-- v-for="item in optionCheckStatus"-->
<!-- :key="item.value"-->
<!-- :label="item.label"-->
<!-- :value="item.value">-->
<!-- </el-option>-->
<!-- </el-select>-->
</el-col>
</span>
</div>
@ -141,20 +133,6 @@
}
};
return {
checkStatusValue: this.$route.query.checkstatus,
optionCheckStatus: [{
value: 1,
label: '审核中'
}, {
value: 2,
label: '已审核'
}, {
value: 3,
label: '未通过'
}, {
value: 4,
label: ' '
}],
frame_class: '',
type: {},
shouldShowButton:{},
@ -699,7 +677,6 @@
this.addUpdateShowButton=false;
this.UpdateShowButton=true;
this.frame_class = 'frame_class1';
this.checkStatusValue = this.$route.query.checkstatus;
this.SearchDetail();
}else{
this.readonlyForm=false;
@ -707,20 +684,6 @@
this.UpdateShowButton=false;
this.addUpdateShowButton=true;
this.frame_class = null;
this.checkStatusValue = 4;
}
switch (this.$route.query.checkstatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
},
methods: {
@ -922,6 +885,19 @@
getDetail(this.$route.query.id).then(res => {
console.log(res);
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 =" ";
}
});
},
auditing() {

@ -493,8 +493,7 @@
path: "/workorder/detail",
query: {
frameMode:"search",
id: row.id,
checkstatus: row.approvalStatus
id: row.id
},
});
},

@ -5,7 +5,8 @@
<div class="check_status_class">
<span>
<el-col >
{{ getOptionCheckStatusLabel($route.query.checkstatus) }}
审核状态:
<avue-input v-model="form" placeholder="" class="frame_class1" style = "width: 100px"></avue-input>
</el-col>
</span>
</div>
@ -58,7 +59,6 @@
value: 4,
label: ''
}],
checkStatusValue: this.$route.query.checkstatus,
item_form: {},
option: {
column: [{
@ -316,7 +316,6 @@
this.shouldShowButton = false;
this.addupdateShowButton = true;
this.frame_class = null;
this.checkStatusValue = this.$route.query.checkstatus;
this.searchDetail();
} else if (this.$route.query.frameMode == "search") {
this.tab1_option.column[1].disabled = false;
@ -326,7 +325,6 @@
this.addupdateShowButton = false;
this.frame_class = 'frame_class1';
this.searchDetail();
this.checkStatusValue = 4;
}
},
methods: {
@ -363,6 +361,19 @@
searchDetail() {
getDetail(this.$route.query.id).then(res => {
this.tab1_form = res.data.data;
switch (this.tab1_form.approvalStatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
});
},
submitForm() {

Loading…
Cancel
Save