|
@@ -13,7 +13,7 @@
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>工单编号:</span>
|
|
<span>工单编号:</span>
|
|
|
- <span>{{ workOrderInfo ? workOrderInfo.outsourcCode : '' }}</span>
|
|
|
|
|
|
|
+ <span>{{ workOrderInfo ? workOrderInfo.code : '' }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>发布时间:</span>
|
|
<span>发布时间:</span>
|
|
@@ -34,7 +34,7 @@
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>计划完成时间:</span>
|
|
<span>计划完成时间:</span>
|
|
|
<span>{{
|
|
<span>{{
|
|
|
- workOrderInfo ? workOrderInfo.plannCompletionTime : ''
|
|
|
|
|
|
|
+ workOrderInfo ? workOrderInfo.planCompletionTime : ''
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
@@ -93,19 +93,19 @@
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>设备编码:</span>
|
|
<span>设备编码:</span>
|
|
|
- <span>{{ equipmentInfo ? equipmentInfo.assetCode : '' }}</span>
|
|
|
|
|
|
|
+ <span>{{ equipmentInfo ? equipmentInfo.code : '' }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>权属部门:</span>
|
|
<span>权属部门:</span>
|
|
|
<span>{{
|
|
<span>{{
|
|
|
- equipmentInfo ? equipmentInfo.ownershipDeptName : ''
|
|
|
|
|
|
|
+ equipmentInfo ? equipmentInfo.ownershipGroupName : ''
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>设备名称:</span>
|
|
<span>设备名称:</span>
|
|
|
- <span>{{ equipmentInfo ? equipmentInfo.assetName : '' }}</span>
|
|
|
|
|
|
|
+ <span>{{ equipmentInfo ? equipmentInfo.name : '' }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>权属人:</span>
|
|
<span>权属人:</span>
|
|
@@ -117,9 +117,8 @@
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>设备分类:</span>
|
|
<span>设备分类:</span>
|
|
|
- <span>{{
|
|
|
|
|
- equipmentInfo.assetType
|
|
|
|
|
- ? assetTypeList[equipmentInfo.assetType - 1]
|
|
|
|
|
|
|
+ <span>{{ equipmentInfo.category
|
|
|
|
|
+ ? equipmentInfo.category.categoryLevelPath
|
|
|
: ''
|
|
: ''
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -133,25 +132,19 @@
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>固定资产编码:</span>
|
|
<span>固定资产编码:</span>
|
|
|
- <span>{{ equipmentInfo ? equipmentInfo.fixAssetCode : '' }}</span>
|
|
|
|
|
|
|
+ <span>{{ equipmentInfo ? equipmentInfo.fixCode : '' }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>设备位置:</span>
|
|
<span>设备位置:</span>
|
|
|
- <span
|
|
|
|
|
- >{{ equipmentInfo ? equipmentInfo.factoryName : '' }}—{{
|
|
|
|
|
- equipmentInfo ? equipmentInfo.workshopName : ''
|
|
|
|
|
- }}—{{ equipmentInfo ? equipmentInfo.lineName : '' }}</span
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <span>{{ equipmentInfo.position}}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>规格型号:</span>
|
|
<span>规格型号:</span>
|
|
|
- <span>{{
|
|
|
|
|
- equipmentInfo.information
|
|
|
|
|
- ? equipmentInfo.information.specification
|
|
|
|
|
- : ''
|
|
|
|
|
- }}</span>
|
|
|
|
|
|
|
+ <span>
|
|
|
|
|
+ {{equipmentInfo.category&&equipmentInfo.category.specification}}|{{equipmentInfo.category&&equipmentInfo.category.modelType}}
|
|
|
|
|
+ </span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
@@ -159,7 +152,7 @@
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>报修记录编号:</span>
|
|
<span>报修记录编号:</span>
|
|
|
- <span>{{ infoData ? infoData.repairsCode : '' }}</span>
|
|
|
|
|
|
|
+ <span>{{ infoData ? infoData.code : '' }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>报修时间:</span>
|
|
<span>报修时间:</span>
|
|
@@ -169,9 +162,7 @@
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>来源:</span>
|
|
<span>来源:</span>
|
|
|
- <span>{{
|
|
|
|
|
- infoData && infoData.source ? infoData.source.desc : ''
|
|
|
|
|
- }}</span>
|
|
|
|
|
|
|
+ <span>{{infoData ?getDictValue('报修来源', infoData.sourceType):''}}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>来源编码:</span>
|
|
<span>来源编码:</span>
|
|
@@ -181,11 +172,11 @@
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>报修部门:</span>
|
|
<span>报修部门:</span>
|
|
|
- <span>{{ infoData ? infoData.repairsDeptName : '' }}</span>
|
|
|
|
|
|
|
+ <span>{{ infoData ? infoData.requestDeptName : '' }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12" class="repair_column">
|
|
<el-col :span="12" class="repair_column">
|
|
|
<span>报修人:</span>
|
|
<span>报修人:</span>
|
|
|
- <span>{{ infoData ? infoData.repairsPerson : '' }}</span>
|
|
|
|
|
|
|
+ <span>{{ infoData ? infoData.requestUserName : '' }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
@@ -201,10 +192,10 @@
|
|
|
<el-row class="repair_row">
|
|
<el-row class="repair_row">
|
|
|
<el-col :span="24" class="repair_column">
|
|
<el-col :span="24" class="repair_column">
|
|
|
<span>故障描述:</span>
|
|
<span>故障描述:</span>
|
|
|
- <span>{{ infoData ? infoData.repairsDescription : '' }}</span>
|
|
|
|
|
|
|
+ <span>{{ infoData ? infoData.remark : '' }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <el-row class="repair_row">
|
|
|
|
|
|
|
+<!-- <el-row class="repair_row">
|
|
|
<el-col :span="24" class="repair_column">
|
|
<el-col :span="24" class="repair_column">
|
|
|
<span>图片:</span>
|
|
<span>图片:</span>
|
|
|
<el-image
|
|
<el-image
|
|
@@ -215,7 +206,7 @@
|
|
|
:preview-src-list="[item.url]"
|
|
:preview-src-list="[item.url]"
|
|
|
/>
|
|
/>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
|
|
|
|
+ </el-row> -->
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
|
|
|
|
@@ -250,18 +241,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-// import {
|
|
|
|
|
-// getOutsourcDetail,
|
|
|
|
|
-// getDetailByCode,
|
|
|
|
|
-// checkOrBack
|
|
|
|
|
-// } from '@/api/maintenance/repair/repair'
|
|
|
|
|
-// import { getWorkOrderDetail } from '@/api/maintenance/repair/maintenancePlan'
|
|
|
|
|
-// import { getNewinfo } from '@/api/stockManagement/stocking'
|
|
|
|
|
-// import { imageView } from '@/utils'
|
|
|
|
|
-// import UploadImg from '@/components/uploadImg/WithView.vue'
|
|
|
|
|
|
|
+import { getAssetInfo } from '@/api/ledgerAssets';
|
|
|
|
|
+import { getRepairById , getOutsourceInfo , checkOrBack } from '@/api/maintenance/repair_report';
|
|
|
|
|
+import dictMixins from '@/mixins/dictMixins';
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ mixins: [dictMixins],
|
|
|
props: {},
|
|
props: {},
|
|
|
- // components: { RepairNotesTab, WorkOrderTab, UploadImg },
|
|
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
equipmentdialog: false,
|
|
equipmentdialog: false,
|
|
@@ -292,6 +277,10 @@ export default {
|
|
|
imageUrl: null
|
|
imageUrl: null
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ created () {
|
|
|
|
|
+ this.requestDict('报修来源');
|
|
|
|
|
+ this.requestDict('报修状态');
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
handleClose () {
|
|
handleClose () {
|
|
|
this.equipmentdialog = false
|
|
this.equipmentdialog = false
|
|
@@ -305,38 +294,39 @@ export default {
|
|
|
this.equipmentdialog = true
|
|
this.equipmentdialog = true
|
|
|
this.dialogTitle = row.title
|
|
this.dialogTitle = row.title
|
|
|
this.detailsTabsActiveName = 'keepInRepair'
|
|
this.detailsTabsActiveName = 'keepInRepair'
|
|
|
- // const res = await getOutsourcDetail(row.id)
|
|
|
|
|
- // this.workOrderInfo = res.data
|
|
|
|
|
- // this.getSbinfo({ code: this.row.equiCode })
|
|
|
|
|
- // this.getBxinfo(row.repairsCode)
|
|
|
|
|
|
|
+ const res = await getOutsourceInfo(row.id)
|
|
|
|
|
+ this.workOrderInfo = res
|
|
|
|
|
+ this.getSbinfo(row.equiId)
|
|
|
|
|
+ this.getBxinfo(row.repairRequestId)
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
getSbinfo (params) {
|
|
getSbinfo (params) {
|
|
|
- getNewinfo(params).then(res => {
|
|
|
|
|
- if (res.success) {
|
|
|
|
|
- this.equipmentInfo = res.data
|
|
|
|
|
|
|
+ getAssetInfo(params).then(res => {
|
|
|
|
|
+ if (res) {
|
|
|
|
|
+ this.equipmentInfo = res
|
|
|
|
|
+ this.$set(this.equipmentInfo,'position',res.positionList[0].pathName?res.positionList[0].pathName:'')
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
getBxinfo (params) {
|
|
getBxinfo (params) {
|
|
|
- getDetailByCode(params).then(res => {
|
|
|
|
|
- if (res.success) {
|
|
|
|
|
- this.infoData = res.data
|
|
|
|
|
|
|
+ getRepairById(params).then(res => {
|
|
|
|
|
+ if (res) {
|
|
|
|
|
+ this.infoData = res
|
|
|
// 处理图片
|
|
// 处理图片
|
|
|
- if (this.infoData && this.infoData.repairsImg) {
|
|
|
|
|
- const repairsImg = this.infoData.repairsImg
|
|
|
|
|
- this.infoData.repairsImg = []
|
|
|
|
|
- repairsImg.split(',').map(item => {
|
|
|
|
|
- imageView(item).then(res => {
|
|
|
|
|
- this.infoData.repairsImg.push({
|
|
|
|
|
- name: item.substring('/download/'.length),
|
|
|
|
|
- url: res
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
- return
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (this.infoData && this.infoData.repairsImg) {
|
|
|
|
|
+ // const repairsImg = this.infoData.repairsImg
|
|
|
|
|
+ // this.infoData.repairsImg = []
|
|
|
|
|
+ // repairsImg.split(',').map(item => {
|
|
|
|
|
+ // imageView(item).then(res => {
|
|
|
|
|
+ // this.infoData.repairsImg.push({
|
|
|
|
|
+ // name: item.substring('/download/'.length),
|
|
|
|
|
+ // url: res
|
|
|
|
|
+ // })
|
|
|
|
|
+ // })
|
|
|
|
|
+ // return
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -351,11 +341,9 @@ export default {
|
|
|
rejectReason: ''
|
|
rejectReason: ''
|
|
|
}
|
|
}
|
|
|
checkOrBack(params).then(res => {
|
|
checkOrBack(params).then(res => {
|
|
|
- if (res.success) {
|
|
|
|
|
this.$message.success('验收成功!')
|
|
this.$message.success('验收成功!')
|
|
|
this.$emit('refesh')
|
|
this.$emit('refesh')
|
|
|
this.handleClose()
|
|
this.handleClose()
|
|
|
- }
|
|
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
//驳回按钮事件
|
|
//驳回按钮事件
|
|
@@ -387,11 +375,9 @@ export default {
|
|
|
rejectReason: this.cause
|
|
rejectReason: this.cause
|
|
|
}
|
|
}
|
|
|
checkOrBack(params).then(res => {
|
|
checkOrBack(params).then(res => {
|
|
|
- if (res.success) {
|
|
|
|
|
this.$message.success('驳回成功!')
|
|
this.$message.success('驳回成功!')
|
|
|
this.$emit('refesh')
|
|
this.$emit('refesh')
|
|
|
this.handleClose()
|
|
this.handleClose()
|
|
|
- }
|
|
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|