|
@@ -4,6 +4,8 @@
|
|
|
<view class="device-header_name">
|
|
<view class="device-header_name">
|
|
|
<text>洗车机编号:{{ state.device.shortId }}</text>
|
|
<text>洗车机编号:{{ state.device.shortId }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <uv-tags plain size="mini" type="primary" :text="fmtDictName('WashDevice.status',state.device.state)"></uv-tags>
|
|
|
|
|
+
|
|
|
<view class="device-header_fun">
|
|
<view class="device-header_fun">
|
|
|
<view class="device-header_func-tag" v-for="f in state.device.functionList" :key="f">
|
|
<view class="device-header_func-tag" v-for="f in state.device.functionList" :key="f">
|
|
|
<uv-tags :text="f" size="mini" plain plainFill bgColor="#19A497" color="white"> </uv-tags>
|
|
<uv-tags :text="f" size="mini" plain plainFill bgColor="#19A497" color="white"> </uv-tags>
|
|
@@ -17,8 +19,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="device-body">
|
|
<view class="device-body">
|
|
|
<view class="device-body_ops" @click="debounceStartStopDevice">
|
|
<view class="device-body_ops" @click="debounceStartStopDevice">
|
|
|
- <text v-if="state.device.state==='idle'">启动</text>
|
|
|
|
|
- <text v-else>停止</text>
|
|
|
|
|
|
|
+ <text v-if="state.device.state==='idle'">启动设备</text>
|
|
|
|
|
+ <text v-else>停止设备</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class=device-body_guide>
|
|
<view class=device-body_guide>
|
|
@@ -42,7 +44,7 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
|
|
import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
|
|
|
import {reactive, ref} from "vue";
|
|
import {reactive, ref} from "vue";
|
|
|
-import {debounce} from "@/utils/common";
|
|
|
|
|
|
|
+import {debounce, fmtDictName} from "@/utils/common";
|
|
|
import {get, post} from "@/utils/https";
|
|
import {get, post} from "@/utils/https";
|
|
|
|
|
|
|
|
const initState = () => ({
|
|
const initState = () => ({
|
|
@@ -106,7 +108,7 @@ const handleClickDevice = () => {
|
|
|
post(`/wash-device/startDevice/${state.device.shortId}`).then((res:any)=>{
|
|
post(`/wash-device/startDevice/${state.device.shortId}`).then((res:any)=>{
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
- title:'启动成功,请到洗车机面板选择服务项目'
|
|
|
|
|
|
|
+ title:'设备启动成功'
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
}else{
|
|
}else{
|
|
@@ -184,8 +186,8 @@ const countTime = () => {
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
align-content: center;
|
|
align-content: center;
|
|
|
- width: 240rpx;
|
|
|
|
|
- height: 240rpx;
|
|
|
|
|
|
|
+ width: 300rpx;
|
|
|
|
|
+ height: 300rpx;
|
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
|
background-color: $uni-color-primary;
|
|
background-color: $uni-color-primary;
|
|
|
color: white;
|
|
color: white;
|