|
@@ -110,8 +110,8 @@
|
|
>
|
|
>
|
|
<!-- <van-switch size="24px" v-model="item.isSleep" /> -->
|
|
<!-- <van-switch size="24px" v-model="item.isSleep" /> -->
|
|
</div>
|
|
</div>
|
|
- <div class="layer8_1 o-ptb-10">
|
|
|
|
- <span v-if="item.isSleep" class="word8_1">
|
|
|
|
|
|
+ <div v-if="item.isSleep" class="layer8_1 o-ptb-10">
|
|
|
|
+ <span class="word8_1">
|
|
<div v-if="!sleepDescBoxShow" >
|
|
<div v-if="!sleepDescBoxShow" >
|
|
<span>{{ $t("device.sleepDesc") }}:
|
|
<span>{{ $t("device.sleepDesc") }}:
|
|
<van-field
|
|
<van-field
|
|
@@ -159,53 +159,46 @@
|
|
<span class="txt5 o-ptb-10">{{ item.fullName }}</span>
|
|
<span class="txt5 o-ptb-10">{{ item.fullName }}</span>
|
|
<span
|
|
<span
|
|
v-if="item.latitude"
|
|
v-if="item.latitude"
|
|
- class="txt5 o-ptb-10 kBordBott l-flex-RC"
|
|
|
|
|
|
+ class="txt5 o-ptb-5 kBordBott l-flex-RC"
|
|
><span>{{ $t("device.position") }}:</span>
|
|
><span>{{ $t("device.position") }}:</span>
|
|
<van-button @click="viewPosiClk(item)" type="primary">{{
|
|
<van-button @click="viewPosiClk(item)" type="primary">{{
|
|
$t("device.view")
|
|
$t("device.view")
|
|
}}</van-button>
|
|
}}</van-button>
|
|
</span>
|
|
</span>
|
|
- <div
|
|
|
|
- class="layer7 o-ptb-10 kBordBott flex-row justify-between"
|
|
|
|
|
|
+ <van-row
|
|
|
|
+ class="layer7 o-ptb-10 kBordBott"
|
|
|
|
+ justify="space-between"
|
|
>
|
|
>
|
|
- <span class="word10"
|
|
|
|
|
|
+ <van-col class="word10"
|
|
>{{ $t("device.furnaceHeadTemperature") }}:{{
|
|
>{{ $t("device.furnaceHeadTemperature") }}:{{
|
|
item.furnaceTm
|
|
item.furnaceTm
|
|
- }}{{ $t("device.degree") }}</span
|
|
|
|
|
|
+ }}{{ $t("device.degree") }}</van-col
|
|
>
|
|
>
|
|
- <span class="word11"
|
|
|
|
|
|
+ <van-col class="word11"
|
|
>{{ $t("device.temperatureInCabinet") }}:{{
|
|
>{{ $t("device.temperatureInCabinet") }}:{{
|
|
item.cabinetTm
|
|
item.cabinetTm
|
|
- }}{{ $t("device.degree") }}</span
|
|
|
|
|
|
+ }}{{ $t("device.degree") }}</van-col
|
|
>
|
|
>
|
|
- <span class="word11"
|
|
|
|
|
|
+ <van-col class="word11"
|
|
>{{ $t("device.humidityInCabinet") }}:{{ item.cabinetHd
|
|
>{{ $t("device.humidityInCabinet") }}:{{ item.cabinetHd
|
|
- }}{{ $t("device.degree") }}</span
|
|
|
|
|
|
+ }}{{ $t("device.degree") }}</van-col
|
|
>
|
|
>
|
|
- </div>
|
|
|
|
|
|
+ </van-row>
|
|
<template v-if="item.isMaterialUse === '1'">
|
|
<template v-if="item.isMaterialUse === '1'">
|
|
- <div class="sugarTxt o-ptb-10 kBordBott">
|
|
|
|
- <span
|
|
|
|
- >{{ $t("device.whiteSugar") }}:{{
|
|
|
|
- $M_FormatCalcuDecial(item.whiteSugar)
|
|
|
|
- }}%</span
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- >--{{ $t("device.redSugar") }}:{{
|
|
|
|
- $M_FormatCalcuDecial(item.redSugar)
|
|
|
|
- }}%</span
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- >--{{ $t("device.yellowSugar") }}:{{
|
|
|
|
- $M_FormatCalcuDecial(item.yellowSugar)
|
|
|
|
- }}%</span
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- >--{{ $t("device.blueSugar") }}:{{
|
|
|
|
- $M_FormatCalcuDecial(item.blueSugar)
|
|
|
|
- }}%</span
|
|
|
|
- >
|
|
|
|
- </div>
|
|
|
|
|
|
+ <van-row justify="space-between" class="sugarTxt o-ptb-10 kBordBott">
|
|
|
|
+ <van-col>
|
|
|
|
+ {{ $t("device.whiteSugar") }}:{{$M_FormatCalcuDecial(item.whiteSugar)}}%
|
|
|
|
+ </van-col>
|
|
|
|
+ <van-col>
|
|
|
|
+ {{ $t("device.redSugar") }}:{{$M_FormatCalcuDecial(item.redSugar)}}%
|
|
|
|
+ </van-col>
|
|
|
|
+ <van-col>
|
|
|
|
+ {{ $t("device.yellowSugar") }}:{{$M_FormatCalcuDecial(item.yellowSugar)}}%
|
|
|
|
+ </van-col>
|
|
|
|
+ <van-col>
|
|
|
|
+ {{ $t("device.blueSugar") }}:{{$M_FormatCalcuDecial(item.blueSugar)}}%
|
|
|
|
+ </van-col>
|
|
|
|
+ </van-row>
|
|
<div class="sugarTxt o-ptb-10 kBordBott">
|
|
<div class="sugarTxt o-ptb-10 kBordBott">
|
|
<span
|
|
<span
|
|
>{{ $t("device.stick") }}:{{
|
|
>{{ $t("device.stick") }}:{{
|
|
@@ -213,19 +206,15 @@
|
|
}}%</span
|
|
}}%</span
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
- <div class="sugarTxt o-ptb-10 kBordBott">
|
|
|
|
- <span
|
|
|
|
- >{{ $t("device.water") }}:{{
|
|
|
|
- $M_FormatCalcuDecial(item.water)
|
|
|
|
- }}%</span
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- >--{{ $t("device.wasteWater") }}:{{
|
|
|
|
- $M_FormatCalcuDecial(item.wasteWater)
|
|
|
|
- }}%</span
|
|
|
|
- >
|
|
|
|
- </div>
|
|
|
|
- <span class="txt5 o-ptb-10 kBordBott l-flex-RC"
|
|
|
|
|
|
+ <van-row gutter="50" class="sugarTxt o-ptb-10 kBordBott">
|
|
|
|
+ <van-col>
|
|
|
|
+ {{ $t("device.water") }}:{{$M_FormatCalcuDecial(item.water)}}%
|
|
|
|
+ </van-col>
|
|
|
|
+ <van-col>
|
|
|
|
+ {{ $t("device.wasteWater") }}:{{$M_FormatCalcuDecial(item.wasteWater)}}%
|
|
|
|
+ </van-col>
|
|
|
|
+ </van-row>
|
|
|
|
+ <span class="txt5 o-ptb-5 kBordBott l-flex-RC"
|
|
><span>{{ $t("device.oneKeyFeed") }}:</span>
|
|
><span>{{ $t("device.oneKeyFeed") }}:</span>
|
|
<van-button @click="replenishmentClk(item)" type="primary"
|
|
<van-button @click="replenishmentClk(item)" type="primary"
|
|
>{{ $t("device.replenishment") }}
|
|
>{{ $t("device.replenishment") }}
|
|
@@ -300,7 +289,7 @@ import {
|
|
Api_postMachineNum,
|
|
Api_postMachineNum,
|
|
} from "@/service/home";
|
|
} from "@/service/home";
|
|
import { onMounted, reactive, toRefs, ref } from "vue";
|
|
import { onMounted, reactive, toRefs, ref } from "vue";
|
|
-import { Toast } from "vant";
|
|
|
|
|
|
+import { Toast, Dialog } from "vant";
|
|
import navBar from "@/components/NavBar";
|
|
import navBar from "@/components/NavBar";
|
|
import sHeader from "@/components/SimpleHeader";
|
|
import sHeader from "@/components/SimpleHeader";
|
|
import { getLoginUser, $M_FormatCalcuDecial } from "@/common/js/utils";
|
|
import { getLoginUser, $M_FormatCalcuDecial } from "@/common/js/utils";
|
|
@@ -364,6 +353,7 @@ export default {
|
|
|
|
|
|
// 获取设备列表数据
|
|
// 获取设备列表数据
|
|
const getList = async () => {
|
|
const getList = async () => {
|
|
|
|
+ finished.value = false;
|
|
const { data } = await getDeviceList(Object.assign({}, searchParams));
|
|
const { data } = await getDeviceList(Object.assign({}, searchParams));
|
|
if (data.code === "00000") {
|
|
if (data.code === "00000") {
|
|
if (searchParams.current === 0) {
|
|
if (searchParams.current === 0) {
|
|
@@ -464,7 +454,13 @@ export default {
|
|
console.log("row", row);
|
|
console.log("row", row);
|
|
Api_getReplenishment({ equipmentId: row.id }).then((res) => {
|
|
Api_getReplenishment({ equipmentId: row.id }).then((res) => {
|
|
console.log("res", res);
|
|
console.log("res", res);
|
|
- Toast(res.data.message);
|
|
|
|
|
|
+ // Toast(res.data.message);
|
|
|
|
+ Dialog.alert({
|
|
|
|
+ message: t('device.sentSuccessfully'),
|
|
|
|
+ }).then(() => {
|
|
|
|
+ //返回上一页
|
|
|
|
+ router.go(0);
|
|
|
|
+ });
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
getList();
|
|
getList();
|
|
}, 500);
|
|
}, 500);
|
|
@@ -953,6 +949,7 @@ export default {
|
|
.sugarTxt {
|
|
.sugarTxt {
|
|
color: rgba(64, 77, 116, 1);
|
|
color: rgba(64, 77, 116, 1);
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
|
+ line-height: 13px;
|
|
}
|
|
}
|
|
|
|
|
|
.word7 {
|
|
.word7 {
|
|
@@ -1028,7 +1025,7 @@ export default {
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
|
|
.word10 {
|
|
.word10 {
|
|
- width: 33.33%;
|
|
|
|
|
|
+ // width: 33.33%;
|
|
overflow-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
color: rgba(64, 77, 116, 1);
|
|
color: rgba(64, 77, 116, 1);
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
@@ -1038,7 +1035,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.word11 {
|
|
.word11 {
|
|
- width: 33.33%;
|
|
|
|
|
|
+ // width: 33.33%;
|
|
overflow-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
color: rgba(64, 77, 116, 1);
|
|
color: rgba(64, 77, 116, 1);
|
|
font-size: 14px;
|
|
font-size: 14px;
|