Commit 209d5e5e by 张杰

修复bug

1 parent 0dd05e40
...@@ -88,12 +88,15 @@ ...@@ -88,12 +88,15 @@
<el-form-item label="设备型号:" :prop="'snList.' + index + '.deviceClassifyName'" :rules="[{ required: true, message: '未识别到正确设备型号', trigger:['blur','change']}]"> <el-form-item label="设备型号:" :prop="'snList.' + index + '.deviceClassifyName'" :rules="[{ required: true, message: '未识别到正确设备型号', trigger:['blur','change']}]">
<el-input v-model="item.deviceClassifyName" disabled></el-input> <el-input v-model="item.deviceClassifyName" disabled></el-input>
</el-form-item> </el-form-item>
<template v-if="type == 4"> <template v-if="type == 4 || type == 3">
<span class="device_tips" :class="!item.checkResult?'cred':''" v-if="item.sn">{{item.checkResult?'验证通过':'验证不通过'}}</span> <span class="device_tips" :class="!item.checkResult?'cred':''" v-if="item.sn">{{item.checkResult?'验证通过':'验证不通过'}}</span>
<el-button type="primary" size="mini" class="el_btn" @click="lookLocation(item,index)">查看定位</el-button> <el-button type="primary" size="mini" class="el_btn" @click="lookLocation(item,index)">查看定位</el-button>
</template> </template>
</div> </div>
<map-location :info="getMapInfo(item)" :key="`map_${index}`" v-if="item.showMap"></map-location> <div class="map_wrapper" :key="`map_${index}`" v-if="item.showMap">
<i class="el-icon-error el_icon" @click="closeMapLocation(item,index)"></i>
<map-location :info="getMapInfo(item)" v-if="item.showMap"></map-location>
</div>
</template> </template>
</template> </template>
<!-- 设备信息 end --> <!-- 设备信息 end -->
...@@ -780,6 +783,15 @@ export default { ...@@ -780,6 +783,15 @@ export default {
// 展开地图 // 展开地图
lookLocation(row, index) { lookLocation(row, index) {
let list = this.editForm.snList; let list = this.editForm.snList;
let gpsInfo = row.gpsBsData ? row.gpsBsData.gpsLocation : {};
let bsInfo = row.gpsBsData ? row.gpsBsData.bsLocation : {};
if (!gpsInfo.lng || !bsInfo.lng) {
showToast({
message: "暂无位置点信息",
});
return false;
}
row.showMap = !row.showMap; row.showMap = !row.showMap;
list.map((k) => { list.map((k) => {
if (k.sn != row.sn) { if (k.sn != row.sn) {
...@@ -814,6 +826,12 @@ export default { ...@@ -814,6 +826,12 @@ export default {
_this.$set(_this.editForm, "snList", data || []); _this.$set(_this.editForm, "snList", data || []);
}); });
}, },
// 关闭地图
closeMapLocation(row, index) {
row.showMap = false;
this.$set(this.editForm.snList, index, row);
},
}, },
}; };
</script> </script>
...@@ -871,4 +889,15 @@ export default { ...@@ -871,4 +889,15 @@ export default {
} }
} }
} }
.map_wrapper {
position: relative;
.el_icon {
position: absolute;
top: 0;
right: 0;
z-index: 99999;
cursor: pointer;
font-size: 24px;
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -419,6 +419,24 @@ export default { ...@@ -419,6 +419,24 @@ export default {
this.orderId = row.id; this.orderId = row.id;
this.orderType = type; this.orderType = type;
this.orderInfo = row; this.orderInfo = row;
this.menus = [
{ id: "orderInfo", name: "工单信息" },
{ id: "orderProgress", name: "工单进度" },
{ id: "deviceInfo", name: "设备信息" },
{ id: "lesseeInfo", name: "承租人信息" },
{ id: "carInfo", name: "车辆信息" },
{ id: "logInfo", name: "操作日志" },
];
if (row.needInstall != "Y") {
this.menus = [
{ id: "orderInfo", name: "工单信息" },
{ id: "deviceInfo", name: "设备信息" },
{ id: "lesseeInfo", name: "承租人信息" },
{ id: "carInfo", name: "车辆信息" },
{ id: "logInfo", name: "操作日志" },
];
}
if (type == 3) { if (type == 3) {
this.activeId = "deviceInfo"; this.activeId = "deviceInfo";
} }
...@@ -495,11 +513,10 @@ export default { ...@@ -495,11 +513,10 @@ export default {
}, },
// 审核工单 // 审核工单
auditWorkOrderInfo(){ auditWorkOrderInfo() {
this.aloading = true; this.aloading = true;
this.$refs.editOrderCom.auditWorkOrderInfo(); this.$refs.editOrderCom.auditWorkOrderInfo();
} },
}, },
}; };
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!