|
|
|
|
@ -98,13 +98,7 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="异常原因" prop="remark" width="100"></el-table-column> |
|
|
|
|
<!-- <el-table-column label="价格" prop="price" v-if="errorForm.repairStatus != 1"></el-table-column> |
|
|
|
|
<el-table-column label="价格" prop="price" v-if="errorForm.repairStatus == 1"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-input v-model="scope.row.price" |
|
|
|
|
:disabled="viewType == 'view' || viewType == 'evaluate' || viewType == 'confirm'"></el-input> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
|
|
<el-table-column prop="isRepair" align="center" label="是否维修" |
|
|
|
|
v-if="(errorForm.repairStatus >= 3) && (errorForm.repairStatus != 101)" width="150"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
@ -116,17 +110,16 @@ |
|
|
|
|
</el-radio-group> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="repairOption" align="center" label="维修方案" width="150"> |
|
|
|
|
<el-table-column prop="repairOption" align="center" label="维修方案" width="150" v-if="(viewType != 'view')|| (errorForm.repairStatus != 1 && errorForm.repairStatus != 101)"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-input placeholder="请输入维修方案" |
|
|
|
|
:disabled="viewType == 'view' || (errorForm.repairStatus != 1 && errorForm.repairStatus != 101)" |
|
|
|
|
v-model="scope.row.repairOption" style="width: 98%;"></el-input> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="isNeed" align="center" label="是否需要物料" width="120"> |
|
|
|
|
<el-table-column prop="isNeed" align="center" label="是否需要物料" width="120" v-if="(viewType != 'view')|| (errorForm.repairStatus != 1 && errorForm.repairStatus != 101)"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-radio-group v-model="scope.row.isNeed" fill="red"> |
|
|
|
|
<!-- || errorForm.repairStatus != 1 --> |
|
|
|
|
<el-radio |
|
|
|
|
:disabled="viewType == 'view' || (errorForm.repairStatus != 1 && errorForm.repairStatus != 101)" |
|
|
|
|
:label="'1'">是</el-radio> |
|
|
|
|
@ -136,7 +129,7 @@ |
|
|
|
|
</el-radio-group> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="物料配置" width="120" v-if="errorForm.repairStatus == 1"> |
|
|
|
|
<el-table-column align="center" label="物料配置" width="120" v-if="(viewType != 'view')|| (errorForm.repairStatus != 1 && errorForm.repairStatus != 101)"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button @click="setMaterial(scope.row)" :disabled="scope.row.isNeed == 0" |
|
|
|
|
size="mini">物料配置</el-button> |
|
|
|
|
@ -144,7 +137,7 @@ |
|
|
|
|
</el-table-column> |
|
|
|
|
<!-- 维修完成 --> |
|
|
|
|
<el-table-column align="center" label="维修完成图片" width="200" |
|
|
|
|
v-if="errorForm.repairStatus == 4 || errorForm.repairStatus == 5 || errorForm.repairStatus == 6 || errorForm.repairStatus == 7 || errorForm.repairStatus == 8"> |
|
|
|
|
v-if="(viewType != 'view')|| errorForm.repairStatus == 5 || errorForm.repairStatus == 6 || errorForm.repairStatus == 7 || errorForm.repairStatus == 8"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div v-if="errorForm.repairStatus == 4"> |
|
|
|
|
<el-upload action="/api/blade-resource/oss/endpoint/put-file" list-type="picture-card" |
|
|
|
|
@ -164,17 +157,18 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="差旅费"> |
|
|
|
|
<el-form-item label="差旅费" v-if="(viewType != 'view')|| (errorForm.repairStatus != 1 && errorForm.repairStatus != 101)"> |
|
|
|
|
<el-input placeholder="请输入差旅费" v-model="errorForm.travelExpense" style="width:98%;" |
|
|
|
|
:disabled="viewType == 'view' || (errorForm.repairStatus != 1 && errorForm.repairStatus != 101)" |
|
|
|
|
@input="actualAmount()"><template slot="append">元</template></el-input> |
|
|
|
|
><template slot="append">元</template></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="处理结果"> |
|
|
|
|
<el-form-item label="处理结果" v-if="(viewType != 'view')|| (errorForm.repairStatus != 1 && errorForm.repairStatus != 101)"> |
|
|
|
|
<el-input placeholder="请输入处理结果" type="textarea" v-model="errorForm.processingResult" style="width:98%;" |
|
|
|
|
:disabled="viewType == 'view' || (errorForm.repairStatus != 1 && errorForm.repairStatus != 101)"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="维修总计" |
|
|
|
|
v-if="errorForm.repairStatus == 2 || errorForm.repairStatus == 3 || errorForm.repairStatus == 4 || errorForm.repairStatus == 5 || errorForm.repairStatus == 6 || errorForm.repairStatus == 7 || errorForm.repairStatus == 8 || errorForm.repairStatus == 102"> |
|
|
|
|
v-if="viewType != 'view' ||(errorForm.repairStatus == 2 || errorForm.repairStatus == 3 || errorForm.repairStatus == 4 || errorForm.repairStatus == 5 || errorForm.repairStatus == 6 || errorForm.repairStatus == 7 || errorForm.repairStatus == 8 || errorForm.repairStatus == 102)"> |
|
|
|
|
<el-input placeholder="请输入" v-model="errorForm.actualAmount" style="width:98%;" |
|
|
|
|
:disabled="viewType == 'view' || (errorForm.repairStatus != 2 && errorForm.repairStatus != 102)"><template |
|
|
|
|
slot="append">元</template></el-input> |
|
|
|
|
@ -212,7 +206,7 @@ |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 客户确认审核效果 --> |
|
|
|
|
<!-- 客户确认方案 --> |
|
|
|
|
<div v-show="errorForm.repairStatus == 3 && viewType != 'view'"> |
|
|
|
|
<div style=" |
|
|
|
|
color: #101010; |
|
|
|
|
@ -236,7 +230,7 @@ |
|
|
|
|
</div> |
|
|
|
|
<!-- 维修效果确认 --> |
|
|
|
|
<div |
|
|
|
|
v-show="(errorForm.repairStatus == 5 || errorForm.repairStatus == 6 || errorForm.repairStatus == 7 || errorForm.repairStatus == 8)"> |
|
|
|
|
v-show="viewType != 'view'||( errorForm.repairStatus == 6 || errorForm.repairStatus == 7 || errorForm.repairStatus == 8)"> |
|
|
|
|
<div style=" |
|
|
|
|
color: #101010; |
|
|
|
|
font-size: 20px; |
|
|
|
|
@ -651,10 +645,6 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return sums; |
|
|
|
|
}, |
|
|
|
|
// 计算维修总金额 |
|
|
|
|
actualAmount() { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
closeName() { |
|
|
|
|
if (this.nameImg == '') { |
|
|
|
|
@ -1349,15 +1339,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// this.$confirm('请确认提交保存当前数据?', '提示', { |
|
|
|
|
// confirmButtonText: '确定', |
|
|
|
|
// cancelButtonText: '取消', |
|
|
|
|
// type: 'warning' |
|
|
|
|
// }).then(() => { |
|
|
|
|
// this.$message.success('提交成功') |
|
|
|
|
// this.viewType = '' |
|
|
|
|
// this.dialogerror = false |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
@ -1409,7 +1391,7 @@ export default { |
|
|
|
|
let data = this.checkDeepData(res.data.data.details) |
|
|
|
|
if (this.errorForm.repairStatus > 1) { |
|
|
|
|
data.forEach(item => { |
|
|
|
|
item.completeImgList = JSON.parse(item.completeImgList) |
|
|
|
|
item.completeImgList =item.completeImgList==''?[]:JSON.parse(item.completeImgList) |
|
|
|
|
if (item.detailGoodsList.length > 0) { |
|
|
|
|
item.isNeed = '1' |
|
|
|
|
} else { |
|
|
|
|
@ -1516,7 +1498,10 @@ export default { |
|
|
|
|
getExpandedKeys(table) { |
|
|
|
|
this.expandedKeys = [] |
|
|
|
|
table.forEach(item => { |
|
|
|
|
this.expandedKeys.push(item.id) |
|
|
|
|
if(item.detailGoodsList.length>0){ |
|
|
|
|
this.expandedKeys.push(item.id) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|