工单管理模块缺陷修复

master
jinna 10 months ago
parent 974371742c
commit 11e74bd5ec
  1. 55
      src/views/invoiceManagement/workManage.vue

@ -176,6 +176,9 @@
</template>
</el-table>
</el-form-item>
<el-form-item label="维修总金额" prop="totalCost">
<el-input placeholder="请输入维修总金额" disabled v-model="detailForm.totalCost" style="width:98%;"><template slot="append"></template></el-input>
</el-form-item>
</div>
</el-form>
</div>
@ -207,6 +210,28 @@
<el-form-item label="异常清单">
<el-table :span-method="errorSpanMethod" :data="errorForm.tableData" border style="width: 98%"
:summary-method="getSummaries" show-summary :row-class-name="tableRowClassName">
<el-table-column type="expand" fixed="left">
<template slot-scope="props">
<el-table :data="props.row.detailGoodsList" stripe style="width: 100%">
<el-table-column prop="goodsName" align="center" label="物料名称">
</el-table-column>
<el-table-column prop="warehouseId" label="库存ID" align="center">
</el-table-column>
<el-table-column prop="rule" align="center" label="规格" width="80">
</el-table-column>
<el-table-column prop="xh" align="center" label="型号" width="120">
</el-table-column>
<el-table-column prop="number" align="center" label="数量">
</el-table-column>
<el-table-column prop="unit" align="center" label="单位" width="80">
</el-table-column>
<el-table-column prop="price" align="center" label="价格" width="200">
<template slot-scope="scope">{{ scope.row.price }}
</template>
</el-table-column>
</el-table>
</template>
</el-table-column>
<el-table-column label="楼层" prop="floorName"></el-table-column>
<el-table-column label="房间名称" prop="deptName"></el-table-column>
<el-table-column label="专业/设备" prop="deviceName"></el-table-column>
@ -243,10 +268,16 @@
</el-radio-group>
</template>
</el-table-column>
<el-table-column align="center" label="物料配置">
<!-- <el-table-column align="center" label="物料配置">
<template slot-scope="scope">
<el-button @click="setMaterial(scope.row)" :disabled="scope.row.isNeed == 0">物料配置</el-button>
</template>
</el-table-column> -->
<el-table-column align="center" label="维修完成图片" width="200">
<template slot-scope="scope">
<img v-for="item in scope.row.completeImgList" :key="item" :src="item.url" alt=""
style="width: 148px; height: 148px;margin-right:10px;">
</template>
</el-table-column>
</el-table>
</el-form-item>
@ -267,6 +298,11 @@
:disabled="viewType == 'view' || errorForm.repairStatus != 1"><template
slot="append"></template></el-input>
</el-form-item>
<el-form-item label="维修总计">
<el-input placeholder="请输入" v-model="errorForm.actualAmount" style="width:98%;" disabled>
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="巡检结论">
<el-input placeholder="请输入巡检结论" type="textarea" v-model="errorForm.inspectionConclusion"
style="width:98%;" :disabled="viewType == 'view' || errorForm.repairStatus != 1"></el-input>
@ -302,7 +338,7 @@
</el-form-item>
</div>
<!-- 维修完成 -->
<!-- 维修完成
<div v-show="errorForm.repairStatus == 4 || errorForm.repairStatus == 5 || errorForm.repairStatus == 6 || errorForm.repairStatus == 7 || errorForm.repairStatus == 8">
<el-form-item label="维修完成图片" prop="signaturePerson" v-if="errorForm.repairStatus == 4">
<el-upload action="/api/blade-resource/oss/endpoint/put-file" list-type="picture-card" :headers="headers"
@ -315,7 +351,7 @@
<img v-for="item in completeImgList" :key="item" :src="item.url" alt=""
style="width: 148px; height: 148px;margin-right:10px;">
</el-form-item>
</div>
</div> -->
</el-form>
</div>
<span slot="footer" class="dialog-footer">
@ -473,11 +509,20 @@ export default {
},
methods:{
onLoad(){
getList().then(res =>{
getList({current:this.page.currentPage,size:this.page.pageSize}).then(res =>{
console.log('res==========>',res)
this.data = res.data.data.records
this.page.total = res.data.data.total
})
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
this.onLoad()
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
this.onLoad()
},
selectSection(selection) {
this.selectList = selection
},
@ -508,6 +553,7 @@ export default {
console.log('res----------->',res)
this.detailForm = res.data.data
this.detailForm.errorVideo = res.data.data.videoAttaches.length > 0 ? res.data.data.videoAttaches[0].link : ''
this.detailForm.totalCost = this.detailForm.totalCost == -1 ? '' : this.detailForm.totalCost
this.dialogView = true
})
}else{
@ -517,6 +563,7 @@ export default {
let data = this.checkDeepData(res.data.data.details)
if (this.errorForm.repairStatus > 1) {
data.forEach(item => {
item.completeImgList = item.completeImgList != '' ? JSON.parse(item.completeImgList) : []
if (item.detailGoodsList.length > 0) {
item.isNeed = '1'
} else {

Loading…
Cancel
Save