|
@@ -14,11 +14,26 @@
|
|
|
<a-badge :count="numModelbom" title="备件总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
<a-button style="margin-left: 20px" type="default" @ok="handleOk" @click="handleViewBom()">备件BOM</a-button>
|
|
|
</a-badge>
|
|
|
- <a-badge :count="numCheckStandard" title="维护项目总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
- <a-button style="margin-left: 20px" type="default" @ok="handleOk" @click="handleViewCheck()">维护项目</a-button>
|
|
|
+
|
|
|
+ <a-badge :count="numCheckStandard1" title="点检标准" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
+ <a-button style="margin-left: 20px" type="default" @ok="handleOk" @click="handleViewCheck(1)">点检标准</a-button>
|
|
|
+ </a-badge>
|
|
|
+ <a-badge :count="numCheckjob1" title="点检任务" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
+ <a-button style="margin-left: 20px" type="default" @click="handleViewCheckJob(1)">点检任务</a-button>
|
|
|
</a-badge>
|
|
|
- <a-badge :count="numCheckjob" title="保养任务总数" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
- <a-button style="margin-left: 20px" type="default" @click="handleViewCheckJob()">保养任务</a-button>
|
|
|
+
|
|
|
+ <a-badge :count="numCheckStandard2" title="保养标准" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
+ <a-button style="margin-left: 20px" type="default" @ok="handleOk" @click="handleViewCheck(2)">保养标准</a-button>
|
|
|
+ </a-badge>
|
|
|
+ <a-badge :count="numCheckjob2" title="保养任务" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
+ <a-button style="margin-left: 20px" type="default" @click="handleViewCheckJob(2)">保养任务</a-button>
|
|
|
+ </a-badge>
|
|
|
+
|
|
|
+ <a-badge :count="numCheckStandard3" title="润滑标准" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
+ <a-button style="margin-left: 20px" type="default" @ok="handleOk" @click="handleViewCheck(3)">润滑标准</a-button>
|
|
|
+ </a-badge>
|
|
|
+ <a-badge :count="numCheckjob3" title="润滑任务" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
+ <a-button style="margin-left: 20px" type="default" @click="handleViewCheckJob(3)">润滑任务</a-button>
|
|
|
</a-badge>
|
|
|
<a-button style="margin-left: 20px" type="default" @click="handleViewTree()">设备树</a-button>
|
|
|
<a-button v-show="model.useType==4" style="margin-left: 8px" type="default" @click="handleMeasure()">检定记录</a-button>
|
|
@@ -84,6 +99,7 @@
|
|
|
<a-descriptions-item label="设备编号">
|
|
|
{{ model.no }}
|
|
|
</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="资产编号">{{ model.financingNo }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="设备(旧号)">
|
|
|
{{ model.zbh }}
|
|
|
</a-descriptions-item>
|
|
@@ -128,7 +144,7 @@
|
|
|
</a-descriptions>
|
|
|
</a-card>
|
|
|
<br>
|
|
|
- <a-card >
|
|
|
+ <!-- <a-card >
|
|
|
<div style="margin:0; padding:15px 30px; background:#EFEFFB;font-size:16px; color: #1890ff"><b>资产编号</b></div>
|
|
|
<a-descriptions bordered :column="3">
|
|
|
<a-descriptions-item label="资产编号1">{{ model.financingNo }}</a-descriptions-item>
|
|
@@ -138,7 +154,7 @@
|
|
|
<a-descriptions-item label="资产编号5">{{ model.financingNoFive }}</a-descriptions-item>
|
|
|
</a-descriptions>
|
|
|
</a-card>
|
|
|
- <br>
|
|
|
+ <br>-->
|
|
|
<a-card >
|
|
|
<div style="margin:0; padding:15px 30px; background:#EFEFFB;font-size:16px; color: #1890ff"><b>人员信息</b></div>
|
|
|
<a-descriptions bordered :column="3">
|
|
@@ -384,8 +400,12 @@ export default {
|
|
|
'retirementDate': null,
|
|
|
'registerDate': null
|
|
|
},
|
|
|
- numCheckStandard: 0,
|
|
|
- numCheckjob: 0,
|
|
|
+ numCheckStandard1: 0,
|
|
|
+ numCheckjob1: 0,
|
|
|
+ numCheckStandard2: 0,
|
|
|
+ numCheckjob2: 0,
|
|
|
+ numCheckStandard3: 0,
|
|
|
+ numCheckjob3: 0,
|
|
|
numRepairReason: 0,
|
|
|
numModelbom: 0,
|
|
|
numPartInfo: 0,
|
|
@@ -439,13 +459,13 @@ export default {
|
|
|
// let routeUrl = this.$router.resolve(`/share/${96}`)
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
},
|
|
|
- handleViewCheck (record) {
|
|
|
- const routeUrl = this.$router.resolve({ path: '/check/polling-standard', query: { id: this.model.id } })
|
|
|
+ handleViewCheck (type) {
|
|
|
+ const routeUrl = this.$router.resolve({ path: '/check/polling-standard', query: { id: this.model.id, checkType: type } })
|
|
|
// let routeUrl = this.$router.resolve(`/share/${96}`)
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
},
|
|
|
- handleViewCheckJob (record) {
|
|
|
- const routeUrl = this.$router.resolve({ path: '/check/polling-job', query: { id: this.model.id } })
|
|
|
+ handleViewCheckJob (type) {
|
|
|
+ const routeUrl = this.$router.resolve({ path: '/check/polling-job', query: { id: this.model.id, checkType: type } })
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
},
|
|
|
// 根据keyNum路由相关页面
|
|
@@ -504,16 +524,24 @@ export default {
|
|
|
Promise.all([
|
|
|
queryNumPartInfo({ sbId: this.model.id }),
|
|
|
queryNumModelbom({ sbId: this.model.id }),
|
|
|
- queryNumCheckStandard({ sbId: this.model.id }),
|
|
|
- queryNumCheckjob({ sbId: this.model.id }),
|
|
|
- queryNumRepairReason({ sbId: this.model.id })
|
|
|
+ queryNumRepairReason({ sbId: this.model.id }),
|
|
|
+ queryNumCheckStandard({ sbId: this.model.id, type: 1 }),
|
|
|
+ queryNumCheckStandard({ sbId: this.model.id, type: 2 }),
|
|
|
+ queryNumCheckStandard({ sbId: this.model.id, type: 3 }),
|
|
|
+ queryNumCheckjob({ sbId: this.model.id, type: 1 }),
|
|
|
+ queryNumCheckjob({ sbId: this.model.id, type: 2 }),
|
|
|
+ queryNumCheckjob({ sbId: this.model.id, type: 3 })
|
|
|
])
|
|
|
.then((values) => {
|
|
|
this.numPartInfo = values[0].data
|
|
|
this.numModelbom = values[1].data
|
|
|
- this.numCheckStandard = values[2].data
|
|
|
- this.numCheckjob = values[3].data
|
|
|
- this.numRepairReason = values[4].data
|
|
|
+ this.numRepairReason = values[2].data
|
|
|
+ this.numCheckStandard1 = values[3].data
|
|
|
+ this.numCheckStandard2 = values[4].data
|
|
|
+ this.numCheckStandard3 = values[5].data
|
|
|
+ this.numCheckjob1 = values[6].data
|
|
|
+ this.numCheckjob2 = values[7].data
|
|
|
+ this.numCheckjob3 = values[8].data
|
|
|
})
|
|
|
|
|
|
// 如果是父设备,则要获取子设备的数量,并点击后可以看到子设备的情况
|