|
@@ -272,7 +272,7 @@
|
|
<a-button style="margin-left: 8px" type="default">接单</a-button>
|
|
<a-button style="margin-left: 8px" type="default">接单</a-button>
|
|
</a-popconfirm>
|
|
</a-popconfirm>
|
|
<a-button v-if="$auth('repair-application-forms-dispatch') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.RECEIVED === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.MM_DISPATCH === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.DISPATCH_REPAIR === model.status)" style="margin-left: 16px" type="default" @click="handleAssign">派单</a-button>
|
|
<a-button v-if="$auth('repair-application-forms-dispatch') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.RECEIVED === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.MM_DISPATCH === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.DISPATCH_REPAIR === model.status)" style="margin-left: 16px" type="default" @click="handleAssign">派单</a-button>
|
|
- <a-button v-if="(DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REPAIR_FAIL === model.status)" style="margin-left: 16px" type="default" @click="reportRepair">维修上报</a-button>
|
|
|
|
|
|
+ <a-button v-if="(DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status )" style="margin-left: 16px" type="default" @click="reportRepair">维修上报</a-button>
|
|
<a-button v-if="(DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REPAIR_FAIL === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.MM_REPAIR_FAIL === model.status)" style="margin-left: 16px" type="default" @click="handleReportRepair">处理维修上报</a-button>
|
|
<a-button v-if="(DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REPAIR_FAIL === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.MM_REPAIR_FAIL === model.status)" style="margin-left: 16px" type="default" @click="handleReportRepair">处理维修上报</a-button>
|
|
<a-button v-if="$auth('repair-application-forms-finish') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.WAIT_SUBMIT === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REPAIR_FAIL === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.MM_REPAIR_FAIL === model.status)" style="margin-left: 8px" type="default" @click="handleTransfer()">转派</a-button>
|
|
<a-button v-if="$auth('repair-application-forms-finish') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.WAIT_SUBMIT === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REPAIR_FAIL === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.MM_REPAIR_FAIL === model.status)" style="margin-left: 8px" type="default" @click="handleTransfer()">转派</a-button>
|
|
<a-button v-if="$auth('repair-application-forms-examine') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleFinish()">完成维修</a-button>
|
|
<a-button v-if="$auth('repair-application-forms-examine') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleFinish()">完成维修</a-button>
|
|
@@ -289,16 +289,15 @@
|
|
<a-popconfirm v-if="$auth('repair-application-forms-reback') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ACCEPTANCE === model.status" title="是否要拒绝?" @confirm="handleReturn">
|
|
<a-popconfirm v-if="$auth('repair-application-forms-reback') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ACCEPTANCE === model.status" title="是否要拒绝?" @confirm="handleReturn">
|
|
<a-button style="margin-left: 8px" type="error">拒绝</a-button>
|
|
<a-button style="margin-left: 8px" type="error">拒绝</a-button>
|
|
</a-popconfirm>
|
|
</a-popconfirm>
|
|
- <!-- <a-button v-show="model.level!==6 && model.status!==6 && model.status!==14" style="margin-left: 8px" type="primary" >转大修</a-button> -->
|
|
|
|
|
|
+ <a-button v-show=" model.status===10" style="margin-left: 8px" type="primary" @click="recoverPause">挂起解除</a-button>
|
|
|
|
+ <a-button v-show="model.level!==6 && model.status!==6 && model.status!==14" style="margin-left: 8px" type="primary" >转大修</a-button>
|
|
|
|
+ <a-button v-show="model.status===21" style="margin-left: 8px" type="primary" >大修审核</a-button>
|
|
<a-button style="margin-left: 8px" type="primary" @click="handleCancel">返回</a-button>
|
|
<a-button style="margin-left: 8px" type="primary" @click="handleCancel">返回</a-button>
|
|
</div>
|
|
</div>
|
|
<div class="btn" v-else>
|
|
<div class="btn" v-else>
|
|
<a-button style="margin-left: 8px" type="primary" @click="handleCancel">返回</a-button>
|
|
<a-button style="margin-left: 8px" type="primary" @click="handleCancel">返回</a-button>
|
|
<a-button v-show="model.status===15 || model.status===17 || model.status === 19 " style="margin-left: 8px" type="primary" @click="handleCheck">审核</a-button>
|
|
<a-button v-show="model.status===15 || model.status===17 || model.status === 19 " style="margin-left: 8px" type="primary" @click="handleCheck">审核</a-button>
|
|
- <a-button v-show="model.status===21" style="margin-left: 8px" type="primary" >大修审核</a-button>
|
|
|
|
- <a-button v-show="model.status===20" style="margin-left: 8px" type="primary" >再次发起审核</a-button>
|
|
|
|
- <a-button v-show="model.status===8" style="margin-left: 8px" type="primary" >维修挂起</a-button>
|
|
|
|
-
|
|
|
|
|
|
+ <a-button v-show="model.status===20" style="margin-left: 8px" type="primary" @click="handleCheck">再次发起审核</a-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<check-form ref="checkForm" @ok="handleOk" />
|
|
<check-form ref="checkForm" @ok="handleOk" />
|
|
@@ -336,7 +335,7 @@
|
|
<script>
|
|
<script>
|
|
// import { stringify } from 'qs'
|
|
// import { stringify } from 'qs'
|
|
import DetailList from '@/components/tools/DetailList'
|
|
import DetailList from '@/components/tools/DetailList'
|
|
-import { fetchRepairApplicationForm, approve, receive, receiveRepair, closeRepair } from '@/api/repair/application-form'
|
|
|
|
|
|
+import { fetchRepairApplicationForm, approve, receive, receiveRepair, closeRepair, recoverRepair } from '@/api/repair/application-form'
|
|
import CheckForm from './CheckForm'
|
|
import CheckForm from './CheckForm'
|
|
import BaseOutForm from './BaseOutForm'
|
|
import BaseOutForm from './BaseOutForm'
|
|
import FinishForm from './FinishForm'
|
|
import FinishForm from './FinishForm'
|
|
@@ -913,6 +912,11 @@ export default {
|
|
this.handleOk()
|
|
this.handleOk()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ recoverPause () {
|
|
|
|
+ recoverRepair({ id: this.model.id }).then(res => {
|
|
|
|
+ this.$message.info('操作成功')
|
|
|
|
+ })
|
|
|
|
+ },
|
|
batchDeleteFee (id) {
|
|
batchDeleteFee (id) {
|
|
let ids = []
|
|
let ids = []
|
|
if (this.BaseTool.String.isBlank(id)) {
|
|
if (this.BaseTool.String.isBlank(id)) {
|