|
|
@ -799,7 +799,7 @@
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
:title="title"
|
|
|
|
:title="title"
|
|
|
|
:visible.sync="openWrite"
|
|
|
|
:visible.sync="openWrite"
|
|
|
|
width="1200px"
|
|
|
|
width="1500px"
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
v-if="openWrite"
|
|
|
|
v-if="openWrite"
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -807,10 +807,10 @@
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
<el-tab-pane label="维修基本信息">
|
|
|
|
<el-tab-pane label="维修基本信息">
|
|
|
|
<el-descriptions
|
|
|
|
<el-descriptions
|
|
|
|
:column="2"
|
|
|
|
:column="3"
|
|
|
|
border
|
|
|
|
border
|
|
|
|
:contentStyle="CS"
|
|
|
|
:contentStyle="CS1"
|
|
|
|
:label-style="LS"
|
|
|
|
:label-style="LS1"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-descriptions-item label="维修工单号">{{
|
|
|
|
<el-descriptions-item label="维修工单号">{{
|
|
|
|
form.workCode
|
|
|
|
form.workCode
|
|
|
@ -876,8 +876,8 @@
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions-item
|
|
|
|
<el-descriptions-item
|
|
|
|
label="维修前故障图片"
|
|
|
|
label="维修前故障图片"
|
|
|
|
:contentStyle="CS"
|
|
|
|
:contentStyle="CS1"
|
|
|
|
:label-style="LSP"
|
|
|
|
:label-style="LSP1"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-image
|
|
|
|
<el-image
|
|
|
|
v-for="(item, index) in urlBeforeLists"
|
|
|
|
v-for="(item, index) in urlBeforeLists"
|
|
|
@ -889,8 +889,8 @@
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions-item
|
|
|
|
<el-descriptions-item
|
|
|
|
label="维修后故障图片"
|
|
|
|
label="维修后故障图片"
|
|
|
|
:contentStyle="CS"
|
|
|
|
:contentStyle="CS1"
|
|
|
|
:label-style="LSP"
|
|
|
|
:label-style="LSP1"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-image
|
|
|
|
<el-image
|
|
|
|
v-for="(item, index) in urlAfterLists"
|
|
|
|
v-for="(item, index) in urlAfterLists"
|
|
|
@ -900,6 +900,7 @@
|
|
|
|
></el-descriptions-item>
|
|
|
|
></el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
:data="detailList"
|
|
|
|
:data="detailList"
|
|
|
@ -967,24 +968,9 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="40">
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="40">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="picturePath" label="维修后图片" width="60">
|
|
|
|
<el-table-column prop="picturePath" label="提交图片">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-popover placement="right" width="300" trigger="hover">
|
|
|
|
<FileUpload v-model="scope.row.picturePath" />
|
|
|
|
<div class="standardUrl_body">
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
|
|
|
v-for="(url, index) in scope.row.standardUrlLists"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-image :src="url"></el-image>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
slot="reference"
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
icon="el-icon-picture"
|
|
|
|
|
|
|
|
circle
|
|
|
|
|
|
|
|
></el-button>
|
|
|
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -1490,15 +1476,28 @@ export default {
|
|
|
|
CS: {
|
|
|
|
CS: {
|
|
|
|
"text-align": "center",
|
|
|
|
"text-align": "center",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
CS1: {
|
|
|
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
|
|
|
width: "250px",
|
|
|
|
|
|
|
|
},
|
|
|
|
LS: {
|
|
|
|
LS: {
|
|
|
|
"text-align": "center",
|
|
|
|
"text-align": "center",
|
|
|
|
width: "225px",
|
|
|
|
width: "225px",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
LS1: {
|
|
|
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
|
|
|
width: "250px",
|
|
|
|
|
|
|
|
},
|
|
|
|
//图片表格样式
|
|
|
|
//图片表格样式
|
|
|
|
LSP: {
|
|
|
|
LSP: {
|
|
|
|
"text-align": "center",
|
|
|
|
"text-align": "center",
|
|
|
|
width: "225px",
|
|
|
|
width: "225px",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//图片表格样式
|
|
|
|
|
|
|
|
LSP1: {
|
|
|
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
|
|
|
width: "250px",
|
|
|
|
|
|
|
|
},
|
|
|
|
//检查项表格数据
|
|
|
|
//检查项表格数据
|
|
|
|
detailList: [],
|
|
|
|
detailList: [],
|
|
|
|
//维修前照片
|
|
|
|
//维修前照片
|
|
|
@ -1818,6 +1817,7 @@ export default {
|
|
|
|
this.openAdd = true;
|
|
|
|
this.openAdd = true;
|
|
|
|
this.title = "快速工单";
|
|
|
|
this.title = "快速工单";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/** 填写按钮操作 */
|
|
|
|
/** 填写按钮操作 */
|
|
|
|
handleWrite(row) {
|
|
|
|
handleWrite(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
@ -1894,7 +1894,18 @@ export default {
|
|
|
|
standard.repairValue = item.repairValue;
|
|
|
|
standard.repairValue = item.repairValue;
|
|
|
|
standard.repairReach = item.repairReach;
|
|
|
|
standard.repairReach = item.repairReach;
|
|
|
|
standard.standardType = item.standardType;
|
|
|
|
standard.standardType = item.standardType;
|
|
|
|
//检查项图片
|
|
|
|
|
|
|
|
|
|
|
|
if (item.picturePaths != null) {
|
|
|
|
|
|
|
|
var newFiles = [];
|
|
|
|
|
|
|
|
item.picturePaths.forEach((item) => {
|
|
|
|
|
|
|
|
var newFile = {};
|
|
|
|
|
|
|
|
newFile.name = item.fileName;
|
|
|
|
|
|
|
|
newFile.url = item.fileAddress;
|
|
|
|
|
|
|
|
newFiles.push(newFile);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
standard.picturePath = newFiles;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//检查项图片显示
|
|
|
|
var standardUrlLists = [];
|
|
|
|
var standardUrlLists = [];
|
|
|
|
if (item.picturePaths != null) {
|
|
|
|
if (item.picturePaths != null) {
|
|
|
|
item.picturePaths.forEach((item2) => {
|
|
|
|
item.picturePaths.forEach((item2) => {
|
|
|
@ -1985,12 +1996,22 @@ export default {
|
|
|
|
this.form.afterRepairFile
|
|
|
|
this.form.afterRepairFile
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.form.faultType = this.form.faultType.join(",");
|
|
|
|
|
|
|
|
|
|
|
|
if (this.form.faultType != null) {
|
|
|
|
|
|
|
|
this.form.faultType = this.form.faultType.join(",");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
console.log(this.form.faultType);
|
|
|
|
console.log(this.form.faultType);
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
if (this.form.workId != null) {
|
|
|
|
if (this.form.workId != null) {
|
|
|
|
this.form.standardList = this.detailList;
|
|
|
|
this.form.standardList = this.detailList;
|
|
|
|
|
|
|
|
//每个检查项
|
|
|
|
|
|
|
|
this.form.standardList.forEach((item) => {
|
|
|
|
|
|
|
|
if (Array.isArray(item.picturePath)) {
|
|
|
|
|
|
|
|
item.picturePath = this.listToString(item.picturePath);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
console.log(this.form.standardList);
|
|
|
|
console.log(this.form.standardList);
|
|
|
|
writeRepairOrder(this.form).then((response) => {
|
|
|
|
writeRepairOrder(this.form).then((response) => {
|
|
|
|
this.openWrite = false;
|
|
|
|
this.openWrite = false;
|
|
|
|