|
@@ -16,12 +16,12 @@
|
|
<a-badge :count="numCheckStandard" title="保养项目总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
<a-badge :count="numCheckStandard" title="保养项目总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
<a-button style="margin-left: 16px" type="default" @ok="handleOk" @click="handleViewCheck()">保养项目</a-button>
|
|
<a-button style="margin-left: 16px" type="default" @ok="handleOk" @click="handleViewCheck()">保养项目</a-button>
|
|
</a-badge>
|
|
</a-badge>
|
|
- <!-- <a-badge :count="numCheckjob" title="待保养任务总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
|
- <a-button style="margin-left: 16px" type="default" @ok="handleOk" @click="checkJobTableWaitDoListView()">待保养任务</a-button>
|
|
|
|
- </a-badge>-->
|
|
|
|
<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>
|
|
@@ -135,9 +135,6 @@
|
|
</detail-list>
|
|
</detail-list>
|
|
<title-divider title="相关数据" width="90px"></title-divider>
|
|
<title-divider title="相关数据" width="90px"></title-divider>
|
|
<q-tabs :activeKey="activeKey" @change="changeTab">
|
|
<q-tabs :activeKey="activeKey" @change="changeTab">
|
|
- <q-tab-pane key="1" tab="报修记录">
|
|
|
|
- <repair-application-form-table :type="2" :table-params="{sbId: model.id, sbName: model.name}" ref="repairApplicationFormTable" />
|
|
|
|
- </q-tab-pane>
|
|
|
|
<q-tab-pane key="2" tab="配件记录">
|
|
<q-tab-pane key="2" tab="配件记录">
|
|
<spare-part-used-select-table :type="2" :table-params="{sbId: model.id, modelId: model.modelId}" ref="sparePartUsedSelectTable"/>
|
|
<spare-part-used-select-table :type="2" :table-params="{sbId: model.id, modelId: model.modelId}" ref="sparePartUsedSelectTable"/>
|
|
</q-tab-pane>
|
|
</q-tab-pane>
|
|
@@ -151,6 +148,7 @@
|
|
<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>
|
|
@@ -164,6 +162,7 @@ import CheckJobTable from '@/views/check/checkjob/modules/CheckJobTable'
|
|
import { fetchFirmProducer } from '@/api/firm/producer'
|
|
import { fetchFirmProducer } from '@/api/firm/producer'
|
|
import { queryNumCheckStandard } from '@/api/check/checkstandard'
|
|
import { queryNumCheckStandard } from '@/api/check/checkstandard'
|
|
import { queryNumCheckjob } from '@/api/check/checkjob'
|
|
import { queryNumCheckjob } from '@/api/check/checkjob'
|
|
|
|
+import { queryNumRepairReason } from '@/api/repair/repair-reason'
|
|
import { queryNumPartInfo } from '@/api/part/info'
|
|
import { queryNumPartInfo } from '@/api/part/info'
|
|
import { queryNumModelbom } from '@/api/sb/modelbom'
|
|
import { queryNumModelbom } from '@/api/sb/modelbom'
|
|
import { queryChildNumSbInfo } from '@/api/sb/info'
|
|
import { queryChildNumSbInfo } from '@/api/sb/info'
|
|
@@ -176,6 +175,7 @@ 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 PartInfoList from '@/views/part/info/modules/PartInfoList'
|
|
import PartInfoList from '@/views/part/info/modules/PartInfoList'
|
|
const DetailListItem = DetailList.Item
|
|
const DetailListItem = DetailList.Item
|
|
|
|
|
|
@@ -195,7 +195,8 @@ export default {
|
|
DetailSbCheckJob,
|
|
DetailSbCheckJob,
|
|
PartInfoList,
|
|
PartInfoList,
|
|
DetailSbMeasure,
|
|
DetailSbMeasure,
|
|
- DetailSbInfo
|
|
|
|
|
|
+ DetailSbInfo,
|
|
|
|
+ DetailRepairReason
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -291,6 +292,7 @@ export default {
|
|
},
|
|
},
|
|
numCheckStandard: 0,
|
|
numCheckStandard: 0,
|
|
numCheckjob: 0,
|
|
numCheckjob: 0,
|
|
|
|
+ numRepairReason: 0,
|
|
numModelbom: 0,
|
|
numModelbom: 0,
|
|
numPartInfo: 0,
|
|
numPartInfo: 0,
|
|
numChildSbInfo: 0,
|
|
numChildSbInfo: 0,
|
|
@@ -354,6 +356,11 @@ 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
|
|
@@ -372,12 +379,19 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
fetchNum () {
|
|
fetchNum () {
|
|
- Promise.all([queryNumPartInfo({ sbId: this.model.id }), queryNumModelbom({ sbId: this.model.id }), queryNumCheckStandard({ sbId: this.model.id }), queryNumCheckjob({ sbId: this.model.id, status: this.DictCache.VALUE.CHECK_JOB_STATUS.NOT_EXECUTE })])
|
|
|
|
|
|
+ Promise.all([
|
|
|
|
+ queryNumPartInfo({ sbId: this.model.id }),
|
|
|
|
+ queryNumModelbom({ sbId: this.model.id }),
|
|
|
|
+ queryNumCheckStandard({ sbId: this.model.id }),
|
|
|
|
+ queryNumCheckjob({ sbId: this.model.id, status: this.DictCache.VALUE.CHECK_JOB_STATUS.NOT_EXECUTE }),
|
|
|
|
+ queryNumRepairReason({ sbId: this.model.id })
|
|
|
|
+ ])
|
|
.then((values) => {
|
|
.then((values) => {
|
|
this.numPartInfo = values[0].data
|
|
this.numPartInfo = values[0].data
|
|
this.numModelbom = values[1].data
|
|
this.numModelbom = values[1].data
|
|
this.numCheckStandard = values[2].data
|
|
this.numCheckStandard = values[2].data
|
|
this.numCheckjob = values[3].data
|
|
this.numCheckjob = values[3].data
|
|
|
|
+ this.numRepairReason = values[4].data
|
|
})
|
|
})
|
|
|
|
|
|
// 如果是父设备,则要获取子设备的数量,并点击后可以看到子设备的情况
|
|
// 如果是父设备,则要获取子设备的数量,并点击后可以看到子设备的情况
|