diff --git a/src/views/device/faultReport/index.vue b/src/views/device/faultReport/index.vue
index 819466e..95da096 100644
--- a/src/views/device/faultReport/index.vue
+++ b/src/views/device/faultReport/index.vue
@@ -352,7 +352,7 @@
-
+
@@ -918,7 +918,12 @@
-
+
{{
form.equipmentCode
}}
@@ -942,7 +947,11 @@
}}
-
+
-
+
-
+
-
+
@@ -1009,7 +1018,25 @@ export default {
dicts: ["device_order_source", "device_reach_standard"],
data() {
return {
- //选择设备维修班组
+ CS: {
+ "text-align": "center", //文本居中
+ "min-width": "100px", //最小宽度
+ "word-break": "break-all", //过长时自动换行
+ },
+
+ LS: {
+ color: "#000",
+
+ "text-align": "center",
+
+ "font-weight": "600",
+
+ height: "40px",
+
+ "min-width": "110px",
+
+ "word-break": "keep-all",
+ },
teamOption: [],
//图片存储
fileList: [],
@@ -1315,34 +1342,51 @@ export default {
newFiles.push(newFile);
});
this.form.fileList = newFiles;
+
var urlLists = [];
this.form.fileList.forEach((item) => {
urlLists.push(item.url);
});
this.urlLists = urlLists;
console.log("2222222222", this.urlLists);
+ } else if (response.data.files == null) {
+ this.urlLists = null;
}
+ this.checkList = null;
this.checkList = response.data.checkList;
- //检查项遍历
- var standards = [];
- this.checkList.forEach((item1) => {
- //检查项名字
- item1.standardList.forEach((item) => {
- var standard = {};
- standard.itemName = item1.itemName;
- standard.itemMethod = item1.itemMethod;
- standard.standardName = item.standardName;
- standard.detailUpLimit = item.detailUpLimit;
- standard.detailDownLimit = item.detailDownLimit;
- standard.detailUnit = item.detailUnit;
- standard.detailReach = item.detailReach;
- standard.actualValue = item.actualValue;
- standard.standardType = item.standardType;
- standards.push(standard);
+ if (this.checkList != null) {
+ //检查项遍历
+ var standards = [];
+ this.checkList.forEach((item1) => {
+ //检查项名字
+ if (item1 != null) {
+ item1.standardList.forEach((item) => {
+ var standard = {};
+ standard.itemName = item1.itemName;
+ standard.itemMethod = item1.itemMethod;
+ standard.standardName = item.standardName;
+ standard.detailUpLimit = item.detailUpLimit;
+ standard.detailDownLimit = item.detailDownLimit;
+ standard.detailUnit = item.detailUnit;
+ standard.detailReach = item.detailReach;
+ standard.actualValue = item.actualValue;
+ standard.standardType = item.standardType;
+
+ var standardUrlLists = [];
+ item.picturePaths.forEach((item2) => {
+ standardUrlLists.push(item2.fileAddress);
+ });
+ standard.standardUrlLists = standardUrlLists;
+
+ standards.push(standard);
+ });
+ }
});
- });
- this.checkList = standards;
- console.log("1111111111", this.checkList);
+
+ this.checkList = standards;
+ console.log("1111111111", this.checkList);
+ }
+
this.openView = true;
this.title = "查看故障报修";
});
@@ -1356,6 +1400,7 @@ export default {
this.teamOption = response.rows;
});
getFaultReport(orderId).then((response) => {
+ this.form = response.data;
if (response.data.files != null) {
var newFiles = [];
response.data.files.forEach((item) => {
@@ -1365,7 +1410,51 @@ export default {
newFiles.push(newFile);
});
this.form.fileList = newFiles;
+
+ var urlLists = [];
+ this.form.fileList.forEach((item) => {
+ urlLists.push(item.url);
+ });
+ this.urlLists = urlLists;
+ console.log("2222222222", this.urlLists);
+ } else if (response.data.files == null) {
+ this.urlLists = null;
}
+ this.checkList = null;
+ this.checkList = response.data.checkList;
+ if (this.checkList != null) {
+ //检查项遍历
+ var standards = [];
+ this.checkList.forEach((item1) => {
+ //检查项名字
+ if (item1 != null) {
+ item1.standardList.forEach((item) => {
+ var standard = {};
+ standard.itemName = item1.itemName;
+ standard.itemMethod = item1.itemMethod;
+ standard.standardName = item.standardName;
+ standard.detailUpLimit = item.detailUpLimit;
+ standard.detailDownLimit = item.detailDownLimit;
+ standard.detailUnit = item.detailUnit;
+ standard.detailReach = item.detailReach;
+ standard.actualValue = item.actualValue;
+ standard.standardType = item.standardType;
+
+ var standardUrlLists = [];
+ item.picturePaths.forEach((item2) => {
+ standardUrlLists.push(item2.fileAddress);
+ });
+ standard.standardUrlLists = standardUrlLists;
+
+ standards.push(standard);
+ });
+ }
+ });
+
+ this.checkList = standards;
+ console.log("1111111111", this.checkList);
+ }
+
if (
response.data.orderStatus == "审核通过" ||
response.data.orderStatus == "驳回"
@@ -1406,6 +1495,10 @@ export default {
},
/** 审核提交按钮 */
submitCheckForm() {
+ if (Array.isArray(this.form.fileList)) {
+ this.form.fileList = this.listToString(this.form.fileList);
+ }
+
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.orderId != null) {
diff --git a/src/views/device/outsourceWorkOrder/index.vue b/src/views/device/outsourceWorkOrder/index.vue
index bc151a6..173511d 100644
--- a/src/views/device/outsourceWorkOrder/index.vue
+++ b/src/views/device/outsourceWorkOrder/index.vue
@@ -354,6 +354,22 @@
style="width: 270px"
/>
+
+
+
+
+