|
@@ -2,10 +2,13 @@
|
|
|
<view :class="['page']">
|
|
<view :class="['page']">
|
|
|
<view class="device-header">
|
|
<view class="device-header">
|
|
|
<view class="device-header_name">
|
|
<view class="device-header_name">
|
|
|
- <text>洗车机编号:{{ state.device.deviceName }}</text>
|
|
|
|
|
|
|
+ <text>洗车机编号:{{ state.device.shortId }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="device-header_fun">
|
|
<view class="device-header_fun">
|
|
|
- <uv-tags plain size="mini" type="info" :text="f" v-for="(f,i) in state.device.functions.split('\\|')" :key="i"></uv-tags>
|
|
|
|
|
|
|
+ <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>
|
|
|
|
|
+ </view>
|
|
|
|
|
+<!-- <uv-tags plain size="mini" type="info" :text="f" v-for="(f,i) in state.device.functions.split('|')" :key="i"></uv-tags>-->
|
|
|
</view>
|
|
</view>
|
|
|
<view class="device-header_fun">
|
|
<view class="device-header_fun">
|
|
|
<uv-tags plain size="mini" type="primary" :text="state.device.state"></uv-tags>
|
|
<uv-tags plain size="mini" type="primary" :text="state.device.state"></uv-tags>
|
|
@@ -17,6 +20,20 @@
|
|
|
<text v-if="state.device.state==='idle'">启动</text>
|
|
<text v-if="state.device.state==='idle'">启动</text>
|
|
|
<text v-else>停止</text>
|
|
<text v-else>停止</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
|
|
+ <view class=device-body_guide>
|
|
|
|
|
+ <view>●点击上方【启动】按钮启动设备;
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view>●设备启动后,请在设备功能面板按下功能按键以选择服务项目;
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view>●洗车过程中再次按下功能按键可以暂停次功能,暂停过程中将停止计费,如需恢复请再次按下功能按键;
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view>●洗车结束后,请按下结算按键或小程序【结束】按钮,设备停止运行之后将结束计费;
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view>●请在洗车完成后尽快将车辆驶离工位以方便后续用户,谢谢配合。
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ </view>
|
|
|
<!-- <view class="device-body_ops-time">{{ state.time }}</view>-->
|
|
<!-- <view class="device-body_ops-time">{{ state.time }}</view>-->
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -64,6 +81,7 @@ onLoad((options:any) => {
|
|
|
|
|
|
|
|
const loadDeviceDetail = (id: number) => {
|
|
const loadDeviceDetail = (id: number) => {
|
|
|
get(`/wash-device/queryDevice/${id}`).then((res: any) => {
|
|
get(`/wash-device/queryDevice/${id}`).then((res: any) => {
|
|
|
|
|
+ res.functionList = res.funcs.split("|")||[]
|
|
|
state.device = res;
|
|
state.device = res;
|
|
|
}).catch(e => {
|
|
}).catch(e => {
|
|
|
console.error(e)
|
|
console.error(e)
|
|
@@ -143,6 +161,11 @@ const countTime = () => {
|
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
|
color: #7a7a7a;
|
|
color: #7a7a7a;
|
|
|
margin: 10rpx 0;
|
|
margin: 10rpx 0;
|
|
|
|
|
+ display: inline-flex;
|
|
|
|
|
+
|
|
|
|
|
+ &-tag{
|
|
|
|
|
+ margin-right: 10px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -169,5 +192,11 @@ const countTime = () => {
|
|
|
font-size: 28px;
|
|
font-size: 28px;
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ &_guide{
|
|
|
|
|
+ width: 80%;
|
|
|
|
|
+ margin-top: 40px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|