fix:修改bug
This commit is contained in:
parent
556ea2f59c
commit
471129b6a0
@ -47,4 +47,3 @@ export default {
|
|||||||
@import "./colorui/icon.css";
|
@import "./colorui/icon.css";
|
||||||
@import "./common/uni-main.scss";
|
@import "./common/uni-main.scss";
|
||||||
</style>
|
</style>
|
||||||
、
|
|
||||||
@ -1,134 +1,186 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="divRowQC">
|
<div class="divRowQC">
|
||||||
<lable class="lbNoQC">{{data.bikeCode}}</lable>
|
<lable class="lbNoQC">{{ data.bikeCode }}</lable>
|
||||||
<label v-for="(item,index) in data.arrTag" :key="index" :class="getTagClass(item.type)">
|
<label
|
||||||
{{item.title}}
|
v-for="(item, index) in data.arrTag"
|
||||||
</label>
|
:key="index"
|
||||||
|
:class="getTagClass(item.type)"
|
||||||
</div>
|
>
|
||||||
<div class="divRowQC" style="color:#adb3b3;font-size: 14px;">
|
{{ item.title }}
|
||||||
电量刷新时间:{{data.time}}
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="divRowQC" style="display:flex;justify-content: space-between;font-size: 14px;">
|
<div class="divRowQC" style="color: #adb3b3; font-size: 14px">
|
||||||
|
电量刷新时间:{{ data.time }}
|
||||||
<label>
|
</div>
|
||||||
<label :style="{color:data.color}">
|
<div
|
||||||
<uni-icons custom-prefix="iconfont" :type="data.icon" :color="data.color" :size="iconsize" />
|
class="divRowQC"
|
||||||
{{data.soc}}%
|
style="display: flex; justify-content: space-between; font-size: 14px"
|
||||||
</label>
|
>
|
||||||
<lable style="color: #00C57C;margin-left: 10px;">
|
<label>
|
||||||
(
|
<label :style="{ color: data.color }">
|
||||||
<label>
|
<uni-icons
|
||||||
<uni-icons custom-prefix="iconfont" type="icon-ebikecheliangguanli" color="#00C57C" />
|
custom-prefix="iconfont"
|
||||||
</label>
|
:type="data.icon"
|
||||||
<label>{{data.distance}}</label>
|
:color="data.color"
|
||||||
)
|
:size="iconsize"
|
||||||
|
/>
|
||||||
</lable>
|
{{ data.soc }}%
|
||||||
</label>
|
</label>
|
||||||
<div style="background-color:#E2F8FF;border-radius:15px;padding: 3px 15px;">
|
<lable style="color: #00c57c; margin-left: 10px">
|
||||||
<label>
|
(
|
||||||
<uni-icons custom-prefix="iconfont" type="icon-ebikeyinlianglabashengyin" color="#0084FF"
|
<label>
|
||||||
size="16" />
|
<uni-icons
|
||||||
</label>
|
custom-prefix="iconfont"
|
||||||
<label style="color: #0084FF;" @click="checkecu()">寻车铃</label>
|
type="icon-ebikecheliangguanli"
|
||||||
</div>
|
color="#00C57C"
|
||||||
</div>
|
/>
|
||||||
<div style="margin-top:15px;display:flex;justify-content:space-between;">
|
</label>
|
||||||
<label class="divBtnBlue" @click="openBikeInfo">车辆详情</label>
|
<label>{{ data.distance }}</label>
|
||||||
<label v-show="data.rightlx=='dd'" class="divBtnBlue" style="margin-left: 10px;" @click="checkecu('unlock')">开锁</label>
|
)
|
||||||
<label v-show="data.rightlx=='dd'" class="divBtnBlue" style="margin-left: 10px;" @click="checkecu('lock')">关锁</label>
|
</lable>
|
||||||
<label v-show="data.rightlx=='dd'" class="divBtnBlue" style="margin-left: 10px;" @click="openBikeInfo">调度</label>
|
</label>
|
||||||
<label v-show="data.rightlx=='hd'" class="divBtnBlue" style="margin-left: 10px;" @click="changeBattery">换电</label>
|
<div
|
||||||
|
style="
|
||||||
</div>
|
background-color: #e2f8ff;
|
||||||
</div>
|
border-radius: 15px;
|
||||||
|
padding: 3px 15px;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<label>
|
||||||
|
<uni-icons
|
||||||
|
custom-prefix="iconfont"
|
||||||
|
type="icon-ebikeyinlianglabashengyin"
|
||||||
|
color="#0084FF"
|
||||||
|
size="16"
|
||||||
|
/>
|
||||||
|
</label>
|
||||||
|
<label style="color: #0084ff" @click="checkecu()">寻车铃</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
style="margin-top: 15px; display: flex; justify-content: space-between"
|
||||||
|
>
|
||||||
|
<label class="divBtnBlue" @click="openBikeInfo">车辆详情</label>
|
||||||
|
<label
|
||||||
|
v-show="data.rightlx == 'dd'"
|
||||||
|
class="divBtnBlue"
|
||||||
|
style="margin-left: 10px"
|
||||||
|
@click="checkecu('unlock')"
|
||||||
|
>开锁</label
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
v-show="data.rightlx == 'dd'"
|
||||||
|
class="divBtnBlue"
|
||||||
|
style="margin-left: 10px"
|
||||||
|
@click="checkecu('lock')"
|
||||||
|
>关锁</label
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
v-show="data.rightlx == 'dd'"
|
||||||
|
class="divBtnBlue"
|
||||||
|
style="margin-left: 10px"
|
||||||
|
@click="openDispatch"
|
||||||
|
>调度</label
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
v-show="data.rightlx == 'hd'"
|
||||||
|
class="divBtnBlue"
|
||||||
|
style="margin-left: 10px"
|
||||||
|
@click="changeBattery"
|
||||||
|
>换电</label
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {checkEcuBells} from "@/utils/commonApi";
|
import { checkEcuBells } from "@/utils/commonApi";
|
||||||
|
|
||||||
const props = defineProps(["data"]);
|
const props = defineProps(["data"]);
|
||||||
|
|
||||||
//查看车辆信息
|
// 调度按钮
|
||||||
function openBikeInfo() {
|
function openDispatch() {
|
||||||
const {
|
const { bikeCode } = props.data;
|
||||||
bikeId,
|
console.log(props.data);
|
||||||
ecuId,
|
const url = `/pages/warehouse/carDispatchByMine/carDispatchByMine?bikeCode=${bikeCode}`;
|
||||||
ecuSn
|
uni.navigateTo({
|
||||||
} = props.data;
|
url: url,
|
||||||
const url = `/pages/devops/ebikeinfo/ebikeinfo?bikeId=${bikeId}&ecuId=${ecuId}&ecuSn=${ecuSn}`;
|
});
|
||||||
uni.navigateTo({
|
}
|
||||||
url: url
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function getTagClass(type) {
|
//查看车辆信息
|
||||||
let tagclass = "lbTag";
|
function openBikeInfo() {
|
||||||
switch (type) {
|
const { bikeId, ecuId, ecuSn } = props.data;
|
||||||
case "red":
|
const url = `/pages/devops/ebikeinfo/ebikeinfo?bikeId=${bikeId}&ecuId=${ecuId}&ecuSn=${ecuSn}`;
|
||||||
tagclass += " lbTagRed";
|
uni.navigateTo({
|
||||||
break;
|
url: url,
|
||||||
case "green":
|
});
|
||||||
tagclass += " lbTagGreen";
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
return tagclass;
|
|
||||||
}
|
|
||||||
|
|
||||||
//中控操作
|
function getTagClass(type) {
|
||||||
function checkecu () {
|
let tagclass = "lbTag";
|
||||||
checkEcuBells(props.data)
|
switch (type) {
|
||||||
}
|
case "red":
|
||||||
|
tagclass += " lbTagRed";
|
||||||
|
break;
|
||||||
|
case "green":
|
||||||
|
tagclass += " lbTagGreen";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return tagclass;
|
||||||
|
}
|
||||||
|
|
||||||
//完成换电
|
//中控操作
|
||||||
function changeBattery() {
|
function checkecu() {
|
||||||
const{bikeCode}=props.data;
|
checkEcuBells(props.data);
|
||||||
uni.navigateTo({
|
}
|
||||||
url:`/pages/devops/changebatteries/changebatteries?bikeCode=${bikeCode}`
|
|
||||||
})
|
//完成换电
|
||||||
}
|
function changeBattery() {
|
||||||
|
const { bikeCode } = props.data;
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/devops/changebatteries/changebatteries?bikeCode=${bikeCode}`,
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.divBtnBlue {
|
.divBtnBlue {
|
||||||
background-color: #0084FF;
|
background-color: #0084ff;
|
||||||
color: white;
|
color: white;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 5px 0px;
|
padding: 5px 0px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divRowQC {
|
.divRowQC {
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lbNoQC {
|
.lbNoQC {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #000;
|
color: #000;
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lbTag {
|
.lbTag {
|
||||||
padding: 3px 10px;
|
padding: 3px 10px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
.lbTagGreen {
|
||||||
|
color: #1dd950;
|
||||||
|
background-color: #e8f9e6;
|
||||||
|
}
|
||||||
|
|
||||||
.lbTagGreen {
|
.lbTagRed {
|
||||||
color: #1DD950;
|
color: #f98f93;
|
||||||
background-color: #E8F9E6;
|
background-color: #ffeced;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lbTagRed {
|
|
||||||
color: #F98F93;
|
|
||||||
background-color: #FFECED;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
@ -426,6 +426,7 @@ const selRight = ref({
|
|||||||
...arrRight.value[0],
|
...arrRight.value[0],
|
||||||
});
|
});
|
||||||
const statusHeight = ref(0); //顶部
|
const statusHeight = ref(0); //顶部
|
||||||
|
const isTouchDisable = ref(false); //是否禁止触摸
|
||||||
|
|
||||||
const mapRef = ref("mapRef");
|
const mapRef = ref("mapRef");
|
||||||
let mapContext = null;
|
let mapContext = null;
|
||||||
|
|||||||
@ -81,8 +81,13 @@ const navButtonGroup = reactive([
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
onLoad(() => {
|
onLoad((options) => {
|
||||||
scanCodeStore.clearCode();
|
scanCodeStore.clearCode();
|
||||||
|
|
||||||
|
if (options.bikeCode) {
|
||||||
|
scanCodeStore.addCode(options.bikeCode);
|
||||||
|
setCarList();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
v-model="listdata"
|
v-model="listdata"
|
||||||
@query="loadMoreData"
|
@query="loadMoreData"
|
||||||
:default-page-no="1"
|
:default-page-no="1"
|
||||||
:default-page-size="5"
|
:default-page-size="10"
|
||||||
:auto-show-back-to-top="true"
|
:auto-show-back-to-top="true"
|
||||||
:paging-style="{
|
:paging-style="{
|
||||||
'background-color': ' #f3f4f6',
|
'background-color': ' #f3f4f6',
|
||||||
@ -345,7 +345,7 @@ const submit = (ref) => {
|
|||||||
const handleLeaveWarehouse = () => {
|
const handleLeaveWarehouse = () => {
|
||||||
isSubmit.value = true; // 设置提交状态为加载中
|
isSubmit.value = true; // 设置提交状态为加载中
|
||||||
const params = {
|
const params = {
|
||||||
bikeCode: customFormData.value.deviceValues, // 车辆编号
|
bikeCode: stringToArray(customFormData.value.deviceValues, ""), // 车辆编号
|
||||||
status: statusZT.value,
|
status: statusZT.value,
|
||||||
reginId: "",
|
reginId: "",
|
||||||
};
|
};
|
||||||
|
|||||||
@ -162,9 +162,11 @@ const delChangeImg = (res) => {
|
|||||||
};
|
};
|
||||||
const selectImg = (data) => {
|
const selectImg = (data) => {
|
||||||
const file = data.tempFiles[0];
|
const file = data.tempFiles[0];
|
||||||
|
console.log(file, "selectImg data");
|
||||||
api
|
api
|
||||||
.fileUpload(file)
|
.fileUpload(file)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
console.log(res, "fileUpload");
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
fileLists.value.push(res.data);
|
fileLists.value.push(res.data);
|
||||||
} else {
|
} else {
|
||||||
@ -291,6 +293,8 @@ const navButtonClick = (res) => {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log("fileLists.value:", fileLists.value);
|
||||||
|
|
||||||
if (!fileLists.value.length) {
|
if (!fileLists.value.length) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "请上传投放的照片",
|
title: "请上传投放的照片",
|
||||||
|
|||||||
@ -9,3 +9,4 @@ const config = {
|
|||||||
filePath: "https://www.cdzhuojing.cn/file"
|
filePath: "https://www.cdzhuojing.cn/file"
|
||||||
}
|
}
|
||||||
export default config;
|
export default config;
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user