|
@@ -257,11 +257,12 @@
|
|
|
<a-popconfirm v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status " title="是否要接单?" @confirm="receiveRepair">
|
|
|
<a-button style="margin-left: 8px" type="default">接单</a-button>
|
|
|
</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)" 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.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)" 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="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleViewTicket()">维修票证</a-button>
|
|
|
<a-popconfirm v-if="$auth('repair-application-forms-finish') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.WAIT_SUBMIT === model.status)" title="是否要结单?" @confirm="handleExamine">
|
|
|
<a-button style="margin-left: 8px" type="default">结单</a-button>
|
|
|
</a-popconfirm>
|
|
@@ -298,6 +299,7 @@
|
|
|
<detail-check-new ref='detailCheckNew' @ok='handleVerifyRecordOk'/>
|
|
|
<repair-record-form ref='repairRecordForm' @ok='handleRepairRecordOk' />
|
|
|
<report-up-form ref='reportUpForm' @ok='handleOk' />
|
|
|
+ <ticket-form ref='ticketForm' @ok='handleOk' />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -324,11 +326,11 @@ import BaseTool from '@/utils/tool'
|
|
|
import FeeBaseForm from '@/views/repair/fee/modules/BaseForm'
|
|
|
import FeeDetail from '@/views/repair/fee/modules/Detail'
|
|
|
import { deleteRepairFees, fetchRepairFee, queryRepairFee } from '@/api/repair/fee'
|
|
|
-import {getSelfRole } from '@/api/upms/role'
|
|
|
+import { getSelfRole } from '@/api/upms/role'
|
|
|
import ReasonBaseForm from '@/views/repair/repair-reason/modules/BaseForm'
|
|
|
import ReasonDetail from '@/views/repair/repair-reason/modules/Detail'
|
|
|
import { deleteRepairReasons, fetchRepairReason, queryRepairReason } from '@/api/repair/repair-reason'
|
|
|
-import { queryRepairRecord, fetchCustomDataForRepairRecord } from '@/api/customize/fieldTemplateData'
|
|
|
+import { queryRepairRecord, fetchCustomDataForRepairRecord, fetchRepairTicketRecord } from '@/api/customize/fieldTemplateData'
|
|
|
import DetailSbBom from '@/views/sb/modelbom/modules/DetailSbBom'
|
|
|
import DetailSbCheck from '@/views/check/checkstandard/modules/DetailSbCheck'
|
|
|
import { fetchSbInfo } from '@/api/sb/info'
|
|
@@ -342,6 +344,7 @@ import TransferForm from './TransferForm'
|
|
|
import DetailCheckNew from './DetailCheckNew'
|
|
|
import RepairRecordForm from './RepairRecordForm'
|
|
|
import ReportUpForm from './ReportUpForm'
|
|
|
+import TicketForm from './TicketForm'
|
|
|
const DetailListItem = DetailList.Item
|
|
|
|
|
|
export default {
|
|
@@ -376,7 +379,8 @@ export default {
|
|
|
TransferForm,
|
|
|
DetailCheckNew,
|
|
|
RepairRecordForm,
|
|
|
- ReportUpForm
|
|
|
+ ReportUpForm,
|
|
|
+ TicketForm
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -746,7 +750,8 @@ export default {
|
|
|
'repairDeptId': null,
|
|
|
'userId': null,
|
|
|
'sbCph': null,
|
|
|
- 'actualUser': null
|
|
|
+ 'actualUser': null,
|
|
|
+ 'dispatchUserId': null
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -904,6 +909,13 @@ export default {
|
|
|
modal.base(res.data)
|
|
|
})
|
|
|
},
|
|
|
+ handleViewTicket () {
|
|
|
+ this.visible = false
|
|
|
+ fetchRepairTicketRecord({ id: this.model.id }).then(res => {
|
|
|
+ const modal = this.$refs.ticketForm
|
|
|
+ modal.base(res.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
handleVerifyRecord (record) {
|
|
|
this.visible = false
|
|
|
fetchCustomDataForRepairRecord({ id: record.id }).then(res => {
|