|
@@ -111,6 +111,7 @@
|
|
effect="light"
|
|
effect="light"
|
|
placement="bottom"
|
|
placement="bottom"
|
|
:content="scope.row.orderStatus == 4 ? '已关闭' : '关闭'"
|
|
:content="scope.row.orderStatus == 4 ? '已关闭' : '关闭'"
|
|
|
|
+ v-if="$closeAudit"
|
|
>
|
|
>
|
|
<i
|
|
<i
|
|
v-if="scope.row.orderStatus !== 4"
|
|
v-if="scope.row.orderStatus !== 4"
|
|
@@ -187,7 +188,9 @@ export default {
|
|
if (val == 1) {
|
|
if (val == 1) {
|
|
return '审核中'
|
|
return '审核中'
|
|
} else if (val == 2) {
|
|
} else if (val == 2) {
|
|
- return '已审核'
|
|
|
|
|
|
+ return '审核通过'
|
|
|
|
+ } else if (val == 3) {
|
|
|
|
+ return '审核不通过'
|
|
} else {
|
|
} else {
|
|
return '-'
|
|
return '-'
|
|
}
|
|
}
|
|
@@ -304,7 +307,6 @@ export default {
|
|
this.$http.postForm('/czc-community/workOrder/checkAudit', { orderId: Number(row.id) }).then(({ data, status, msg }) => {
|
|
this.$http.postForm('/czc-community/workOrder/checkAudit', { orderId: Number(row.id) }).then(({ data, status, msg }) => {
|
|
if (status == 0) {
|
|
if (status == 0) {
|
|
this.dataJurisdiction = data;
|
|
this.dataJurisdiction = data;
|
|
- console.log('this.dataJurisdiction', this.dataJurisdiction);
|
|
|
|
new Promise((resolve) => {
|
|
new Promise((resolve) => {
|
|
let title = '关闭工单';
|
|
let title = '关闭工单';
|
|
this.$store.dispatch('addPopup', {
|
|
this.$store.dispatch('addPopup', {
|
|
@@ -319,10 +321,10 @@ export default {
|
|
},
|
|
},
|
|
notip: true,
|
|
notip: true,
|
|
title: title,
|
|
title: title,
|
|
- confirmButtonText: row.auditStatus == null ? '提交审核' : '确认',
|
|
|
|
- showConfirmButton: row.auditStatus == null ? false : row.auditStatus == 2 ? true : this.dataJurisdiction != '1' ? true : false,
|
|
|
|
- showCancelButton: row.auditStatus == 2 ? true : this.dataJurisdiction != '1' ? true : false,
|
|
|
|
- hideStar: row.auditStatus == 2 ? true : this.dataJurisdiction != '1' ? true : false,
|
|
|
|
|
|
+ confirmButtonText: row.auditStatus == null ? '提交审核' : row.auditStatus == '3' ? '提交审核' : '确认',
|
|
|
|
+ showConfirmButton: row.auditStatus == null ? false : row.auditStatus == '3' ? false : row.auditStatus == 2 ? true : this.dataJurisdiction != '1' ? true : false,
|
|
|
|
+ showCancelButton: row.auditStatus == 2 ? true : row.auditStatus == '3' ? true : this.dataJurisdiction != '1' ? true : false,
|
|
|
|
+ hideStar: row.auditStatus == 2 ? true : row.auditStatus == '3' ? true : this.dataJurisdiction != '1' ? true : false,
|
|
});
|
|
});
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.mixins_search();
|
|
this.mixins_search();
|