|
@@ -19,9 +19,6 @@
|
|
<a-badge :count="numCheckjob" title="待保养项目总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
<a-badge :count="numCheckjob" title="待保养项目总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
<a-button style="margin-left: 8px" type="default" @click="handleViewCheckJob()">保养任务</a-button>
|
|
<a-button style="margin-left: 8px" type="default" @click="handleViewCheckJob()">保养任务</a-button>
|
|
</a-badge>
|
|
</a-badge>
|
|
- <a-badge :count="numRepairReason" title="历史故障分析总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
|
- <a-button style="margin-left: 8px" type="default" @click="handleViewRepairReason()">历史故障分析</a-button>
|
|
|
|
- </a-badge>
|
|
|
|
<a-button v-show="model.useType==4" style="margin-left: 8px" type="default" @click="handleMeasure()">检定记录</a-button>
|
|
<a-button v-show="model.useType==4" style="margin-left: 8px" type="default" @click="handleMeasure()">检定记录</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>
|
|
</span>
|
|
</span>
|
|
@@ -141,6 +138,12 @@
|
|
<q-tab-pane key="3" tab="保养任务">
|
|
<q-tab-pane key="3" tab="保养任务">
|
|
<check-job-table :type="2" :check-type="2" :table-params="{sbId: model.id}" ref="spotJobTable" />
|
|
<check-job-table :type="2" :check-type="2" :table-params="{sbId: model.id}" ref="spotJobTable" />
|
|
</q-tab-pane>
|
|
</q-tab-pane>
|
|
|
|
+ <q-tab-pane key="4" tab="历史故障分析">
|
|
|
|
+ <repair-reason-table :table-params="{sbId: model.id}" ref="repairReasonTable" />
|
|
|
|
+ </q-tab-pane>
|
|
|
|
+ <q-tab-pane key="5" tab="历史费用">
|
|
|
|
+ <repair-fee-table :table-params="{sbId: model.id}" ref="repairFeeTable" />
|
|
|
|
+ </q-tab-pane>
|
|
</q-tabs>
|
|
</q-tabs>
|
|
</div>
|
|
</div>
|
|
<detail-sb-bom ref="detailSbBomModal" @ok="handleOk"/>
|
|
<detail-sb-bom ref="detailSbBomModal" @ok="handleOk"/>
|
|
@@ -148,7 +151,6 @@
|
|
<detail-sb-check-job ref="detailSbCheckJobModal" @ok="handleOk"/>
|
|
<detail-sb-check-job ref="detailSbCheckJobModal" @ok="handleOk"/>
|
|
<detail-sb-measure ref="detailSbMeasureModal" @ok="handleOk"/>
|
|
<detail-sb-measure ref="detailSbMeasureModal" @ok="handleOk"/>
|
|
<detail-sb-info ref="detailSbInfoModal" @ok="handleOk"/>
|
|
<detail-sb-info ref="detailSbInfoModal" @ok="handleOk"/>
|
|
- <detail-repair-reason ref="detailRepairReasonModal" @ok="handleOk"/>
|
|
|
|
<part-info-list ref="partInfoList" />
|
|
<part-info-list ref="partInfoList" />
|
|
<!-- <check-job-table-wait-do :type="2" :check-type="2" ref="checkJobTableWaitDo" @ok="handleOk"/>-->
|
|
<!-- <check-job-table-wait-do :type="2" :check-type="2" ref="checkJobTableWaitDo" @ok="handleOk"/>-->
|
|
</a-card>
|
|
</a-card>
|
|
@@ -175,7 +177,8 @@ import DetailSbCheck from '@/views/check/checkstandard/modules/DetailSbCheck'
|
|
import DetailSbCheckJob from '@/views/check/checkjob/modules/DetailSbCheckJob'
|
|
import DetailSbCheckJob from '@/views/check/checkjob/modules/DetailSbCheckJob'
|
|
import DetailSbMeasure from '@/views/sb/measurelog/modules/DetailSbCheck'
|
|
import DetailSbMeasure from '@/views/sb/measurelog/modules/DetailSbCheck'
|
|
import DetailSbInfo from '@/views/sb/info/modules/DetailSbInfo'
|
|
import DetailSbInfo from '@/views/sb/info/modules/DetailSbInfo'
|
|
-import DetailRepairReason from '@/views/repair/repair-reason/modules/DetailRepairReason'
|
|
|
|
|
|
+import RepairReasonTable from '@/views/repair/repair-reason/modules/RepairReasonTable'
|
|
|
|
+import RepairFeeTable from '@/views/repair/fee/modules/RepairFeeTable'
|
|
import PartInfoList from '@/views/part/info/modules/PartInfoList'
|
|
import PartInfoList from '@/views/part/info/modules/PartInfoList'
|
|
const DetailListItem = DetailList.Item
|
|
const DetailListItem = DetailList.Item
|
|
|
|
|
|
@@ -196,7 +199,8 @@ export default {
|
|
PartInfoList,
|
|
PartInfoList,
|
|
DetailSbMeasure,
|
|
DetailSbMeasure,
|
|
DetailSbInfo,
|
|
DetailSbInfo,
|
|
- DetailRepairReason
|
|
|
|
|
|
+ RepairReasonTable,
|
|
|
|
+ RepairFeeTable
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -327,15 +331,6 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
inited (viewer) {
|
|
inited (viewer) {
|
|
this.$viewer = viewer
|
|
this.$viewer = viewer
|
|
- // this.$viewer.index = 0
|
|
|
|
- // // 不要他的按钮
|
|
|
|
- // this.$viewer.options.button = false
|
|
|
|
- // // 不要他的底部缩略图
|
|
|
|
- // this.$viewer.options.navbar = false
|
|
|
|
- // // 不要他的底部标题
|
|
|
|
- // this.$viewer.options.title = false
|
|
|
|
- // // 不要他的底部工具栏
|
|
|
|
- // this.$viewer.options.toolbar = false
|
|
|
|
},
|
|
},
|
|
handleViewBom (record) {
|
|
handleViewBom (record) {
|
|
this.visible = false
|
|
this.visible = false
|
|
@@ -357,11 +352,6 @@ export default {
|
|
const modal = this.$refs.detailSbCheckJobModal
|
|
const modal = this.$refs.detailSbCheckJobModal
|
|
modal.base(this.model)
|
|
modal.base(this.model)
|
|
},
|
|
},
|
|
- handleViewRepairReason (record) {
|
|
|
|
- this.visible = false
|
|
|
|
- const modal = this.$refs.detailRepairReasonModal
|
|
|
|
- modal.base(this.model)
|
|
|
|
- },
|
|
|
|
handleMeasure (record) {
|
|
handleMeasure (record) {
|
|
this.visible = false
|
|
this.visible = false
|
|
const modal = this.$refs.detailSbMeasureModal
|
|
const modal = this.$refs.detailSbMeasureModal
|
|
@@ -402,10 +392,6 @@ export default {
|
|
},
|
|
},
|
|
changeTab (activeKey) {
|
|
changeTab (activeKey) {
|
|
this.activeKey = activeKey
|
|
this.activeKey = activeKey
|
|
- if (this.activeKey === '1' && this.BaseTool.Object.isNotBlank(this.$refs.repairApplicationFormTable)) {
|
|
|
|
- this.$refs.repairApplicationFormTable.handleOk()
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
if (this.activeKey === '2' && this.BaseTool.Object.isNotBlank(this.$refs.sparePartUsedSelectTable)) {
|
|
if (this.activeKey === '2' && this.BaseTool.Object.isNotBlank(this.$refs.sparePartUsedSelectTable)) {
|
|
this.$refs.sparePartUsedSelectTable.handleOk()
|
|
this.$refs.sparePartUsedSelectTable.handleOk()
|
|
return
|
|
return
|
|
@@ -414,24 +400,11 @@ export default {
|
|
this.$refs.spotJobTable.handleOk()
|
|
this.$refs.spotJobTable.handleOk()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.activeKey === '4' && this.BaseTool.Object.isNotBlank(this.$refs.pollingJobTable)) {
|
|
|
|
- this.$refs.pollingJobTable.handleOk()
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.activeKey === '5' && this.BaseTool.Object.isNotBlank(this.$refs.spotCheckJobTable)) {
|
|
|
|
- this.$refs.spotCheckJobTable.handleOk()
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.activeKey === '6' && this.BaseTool.Object.isNotBlank(this.$refs.spotCheckJobTable)) {
|
|
|
|
- this.$refs.spotCheckJobTable.handleOk()
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.activeKey === '7' && this.BaseTool.Object.isNotBlank(this.$refs.sbOilPageTable)) {
|
|
|
|
- this.$refs.sbOilPageTable.handleOk()
|
|
|
|
- return
|
|
|
|
|
|
+ if (this.activeKey === '4' && this.BaseTool.Object.isNotBlank(this.$refs.repairReasonTable)) {
|
|
|
|
+ this.$refs.repairReasonTable.handleOk()
|
|
}
|
|
}
|
|
- if (this.activeKey === '8' && this.BaseTool.Object.isNotBlank(this.$refs.sbInspectionFillPageTable)) {
|
|
|
|
- this.$refs.sbInspectionFillPageTable.handleOk()
|
|
|
|
|
|
+ if (this.activeKey === '5' && this.BaseTool.Object.isNotBlank(this.$refs.repairFeeTable)) {
|
|
|
|
+ this.$refs.repairFeeTable.handleOk()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getQrcodeSrc: (dom) => {
|
|
getQrcodeSrc: (dom) => {
|