|
@@ -5,17 +5,17 @@
|
|
<a-col :md="48" :sm="48">
|
|
<a-col :md="48" :sm="48">
|
|
<span class="table-page-search-submitButtons" style="float: right">
|
|
<span class="table-page-search-submitButtons" style="float: right">
|
|
<a-badge :count="numPartInfo" title="设备部位总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
<a-badge :count="numPartInfo" title="设备部位总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
- <a-button style="margin-left: 16px" type="default" @click="partInfoListView()">设备部位</a-button>
|
|
|
|
|
|
+ <a-button style="margin-left: 16px" type="default" @ok="handleOk" @click="partInfoListView()">设备部位</a-button>
|
|
</a-badge>
|
|
</a-badge>
|
|
<a-badge :count="numModelbom" title="备件总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
<a-badge :count="numModelbom" title="备件总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
- <a-button style="margin-left: 16px" type="default" @click="handleViewBom()">备件BOM</a-button>
|
|
|
|
|
|
+ <a-button style="margin-left: 16px" type="default" @ok="handleOk" @click="handleViewBom()">备件BOM</a-button>
|
|
</a-badge>
|
|
</a-badge>
|
|
<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" @click="handleViewCheck()">保养项目</a-button>
|
|
|
|
- </a-badge>
|
|
|
|
- <a-badge :count="numNumCheckjob" title="待保养任务总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
|
- <a-button style="margin-left: 16px" type="default" @click="partInfoListView()">待保养任务</a-button>
|
|
|
|
|
|
+ <a-button style="margin-left: 16px" type="default" @ok="handleOk" @click="handleViewCheck()">保养项目</a-button>
|
|
</a-badge>
|
|
</a-badge>
|
|
|
|
+<!-- <a-badge :count="numNumCheckjob" title="待保养任务总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
|
+ <a-button style="margin-left: 16px" type="default" @ok="handleOk" @click="checkJobTableWaitDoListView()">待保养任务</a-button>
|
|
|
|
+ </a-badge>-->
|
|
<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>
|
|
</a-col>
|
|
</a-col>
|
|
@@ -101,7 +101,7 @@
|
|
<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>
|
|
- <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-tabs>
|
|
</q-tabs>
|
|
@@ -109,6 +109,7 @@
|
|
<detail-sb-bom ref="detailSbBomModal" @ok="handleOk"/>
|
|
<detail-sb-bom ref="detailSbBomModal" @ok="handleOk"/>
|
|
<detail-sb-check ref="detailSbCheckModal" @ok="handleOk"/>
|
|
<detail-sb-check ref="detailSbCheckModal" @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"/>
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -116,6 +117,7 @@
|
|
import DetailList from '@/components/tools/DetailList'
|
|
import DetailList from '@/components/tools/DetailList'
|
|
import RepairApplicationFormTable from '@/views/repair/application-form/modules/RepairApplicationFormTable'
|
|
import RepairApplicationFormTable from '@/views/repair/application-form/modules/RepairApplicationFormTable'
|
|
import CheckJobTable from '@/views/check/checkjob/modules/CheckJobTable'
|
|
import CheckJobTable from '@/views/check/checkjob/modules/CheckJobTable'
|
|
|
|
+import CheckJobTableWaitDo from '@/views/check/checkjob/modules/CheckJobTableWaitDo'
|
|
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'
|
|
@@ -138,6 +140,7 @@ export default {
|
|
DetailListItem,
|
|
DetailListItem,
|
|
RepairApplicationFormTable,
|
|
RepairApplicationFormTable,
|
|
CheckJobTable,
|
|
CheckJobTable,
|
|
|
|
+ CheckJobTableWaitDo,
|
|
SparePartUsedSelectTable,
|
|
SparePartUsedSelectTable,
|
|
SbOilPageTable,
|
|
SbOilPageTable,
|
|
SbRunFillPageTable,
|
|
SbRunFillPageTable,
|
|
@@ -275,6 +278,12 @@ export default {
|
|
this.model = record
|
|
this.model = record
|
|
this.activeKey = '1'
|
|
this.activeKey = '1'
|
|
this.collapseActiveKey = '0'
|
|
this.collapseActiveKey = '0'
|
|
|
|
+ this.fetchNum()
|
|
|
|
+ fetchFirmProducer({ id: this.model.producerId }).then(res => {
|
|
|
|
+ this.firmProducer = res.data
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ fetchNum(){
|
|
Promise.all([queryNumPartInfo({ sbId: this.model.id }), queryNumModelbom({ sbId: this.model.id }), queryNumCheckStandard({ sbId: this.model.id }), queryNumCheckjob({ sbId: this.model.id })])
|
|
Promise.all([queryNumPartInfo({ sbId: this.model.id }), queryNumModelbom({ sbId: this.model.id }), queryNumCheckStandard({ sbId: this.model.id }), queryNumCheckjob({ sbId: this.model.id })])
|
|
.then((values) => {
|
|
.then((values) => {
|
|
this.numPartInfo = values[0].data
|
|
this.numPartInfo = values[0].data
|
|
@@ -282,9 +291,6 @@ export default {
|
|
this.numCheckStandard = values[2].data
|
|
this.numCheckStandard = values[2].data
|
|
this.numNumCheckjob = values[3].data
|
|
this.numNumCheckjob = values[3].data
|
|
})
|
|
})
|
|
- fetchFirmProducer({ id: this.model.producerId }).then(res => {
|
|
|
|
- this.firmProducer = res.data
|
|
|
|
- })
|
|
|
|
},
|
|
},
|
|
changeTab (activeKey) {
|
|
changeTab (activeKey) {
|
|
this.activeKey = activeKey
|
|
this.activeKey = activeKey
|
|
@@ -331,10 +337,15 @@ export default {
|
|
},
|
|
},
|
|
handleOk () {
|
|
handleOk () {
|
|
this.visible = true
|
|
this.visible = true
|
|
|
|
+ this.fetchNum()
|
|
},
|
|
},
|
|
partInfoListView () {
|
|
partInfoListView () {
|
|
const modal = this.$refs.partInfoList
|
|
const modal = this.$refs.partInfoList
|
|
modal.base({ sbId: this.model.id }, { sbId: this.model.id })
|
|
modal.base({ sbId: this.model.id }, { sbId: this.model.id })
|
|
|
|
+ },
|
|
|
|
+ checkJobTableWaitDoListView () {
|
|
|
|
+ const modal = this.$refs.checkJobTableWaitDo
|
|
|
|
+ modal.base({ sbId: this.model.id }, { sbId: this.model.id, status: 1 })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|