|
@@ -164,7 +164,7 @@
|
|
}}
|
|
}}
|
|
</span>
|
|
</span>
|
|
<span
|
|
<span
|
|
- v-if="item.equimentType != 'P10'"
|
|
|
|
|
|
+ v-if="item.equimentType === 'P30'"
|
|
class="temperature"
|
|
class="temperature"
|
|
>
|
|
>
|
|
{{
|
|
{{
|
|
@@ -182,7 +182,7 @@
|
|
$t("device.cupQuantity") + ":" + item.furnaceTm
|
|
$t("device.cupQuantity") + ":" + item.furnaceTm
|
|
}}</span
|
|
}}</span
|
|
>
|
|
>
|
|
- <span v-if="item.furnaceSp" class="humidity">
|
|
|
|
|
|
+ <span v-if="item.equimentType === 'P30'" class="humidity">
|
|
{{
|
|
{{
|
|
$t("device.bucketWeight") +
|
|
$t("device.bucketWeight") +
|
|
":" +
|
|
":" +
|
|
@@ -381,7 +381,8 @@
|
|
class="detail-section material-usage"
|
|
class="detail-section material-usage"
|
|
v-if="item.machineType === '1'"
|
|
v-if="item.machineType === '1'"
|
|
>
|
|
>
|
|
- <div class="material-group">
|
|
|
|
|
|
+ <!-- 爆米花P30物料-->
|
|
|
|
+ <div class="material-group" v-if="item.equimentType === 'P30'">
|
|
<div class="material-grid">
|
|
<div class="material-grid">
|
|
<div
|
|
<div
|
|
v-for="(poporn, index) in popornTypes"
|
|
v-for="(poporn, index) in popornTypes"
|
|
@@ -408,6 +409,35 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <!-- 爆米花SBM10物料-->
|
|
|
|
+ <div class="material-group" v-if="item.equimentType === 'SBM10'">
|
|
|
|
+ <div class="material-grid">
|
|
|
|
+ <div
|
|
|
|
+ v-for="(poporn, index) in poporn10Types"
|
|
|
|
+ :key="index"
|
|
|
|
+ class="material-item"
|
|
|
|
+ >
|
|
|
|
+ <van-icon
|
|
|
|
+ :name="poporn.icon"
|
|
|
|
+ class="material-icon"
|
|
|
|
+ size="25px"
|
|
|
|
+ :style="{ color: poporn.color }"
|
|
|
|
+ />
|
|
|
|
+ <div class="material-info">
|
|
|
|
+ <span class="material-label">{{
|
|
|
|
+ $t(`device.${poporn.type}`)
|
|
|
|
+ }}</span>
|
|
|
|
+ <span class="material-value"
|
|
|
|
+ >{{
|
|
|
|
+ Format_calcuDecial(item[poporn.code])
|
|
|
|
+ }}
|
|
|
|
+ g</span
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<!-- 冰淇淋物料 -->
|
|
<!-- 冰淇淋物料 -->
|
|
<div
|
|
<div
|
|
@@ -564,12 +594,13 @@ import {
|
|
import sHeader from "../../components/SimpleHeader";
|
|
import sHeader from "../../components/SimpleHeader";
|
|
import { getLoginUser, Format_calcuDecial } from "../../common/js/utils";
|
|
import { getLoginUser, Format_calcuDecial } from "../../common/js/utils";
|
|
import {
|
|
import {
|
|
- getDeviceList,
|
|
|
|
|
|
+ // getDeviceList,
|
|
eliminate,
|
|
eliminate,
|
|
Api_getReplenishment,
|
|
Api_getReplenishment,
|
|
changeSleepDesc,
|
|
changeSleepDesc,
|
|
setFurnace,
|
|
setFurnace,
|
|
sleepEquipment,
|
|
sleepEquipment,
|
|
|
|
+ getMachineList,
|
|
} from "../../service/device/index";
|
|
} from "../../service/device/index";
|
|
import deviceSearch from "./deviceSearch";
|
|
import deviceSearch from "./deviceSearch";
|
|
import deviceOper from "./deviceOper";
|
|
import deviceOper from "./deviceOper";
|
|
@@ -606,7 +637,7 @@ export default {
|
|
{ type: "wasteWater", icon: "weapp-nav", color: "#666" },
|
|
{ type: "wasteWater", icon: "weapp-nav", color: "#666" },
|
|
]);
|
|
]);
|
|
|
|
|
|
- // 爆米花物料
|
|
|
|
|
|
+ // 爆米花P30物料
|
|
const popornTypes = ref([
|
|
const popornTypes = ref([
|
|
{ code: "whiteSugar", type: "chocolate", icon: "stop", color: "#5C3317" },
|
|
{ code: "whiteSugar", type: "chocolate", icon: "stop", color: "#5C3317" },
|
|
{ code: "redSugar", type: "cheese", icon: "stop", color: "#fcdd8d" },
|
|
{ code: "redSugar", type: "cheese", icon: "stop", color: "#fcdd8d" },
|
|
@@ -614,6 +645,12 @@ export default {
|
|
{ code: "blueSugar", type: "caramel", icon: "stop", color: "#D2691E" },
|
|
{ code: "blueSugar", type: "caramel", icon: "stop", color: "#D2691E" },
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
+ // 爆米花P10物料
|
|
|
|
+ const poporn10Types = ref([
|
|
|
|
+ { code: "redSugar", type: "sweet", icon: "stop", color: "#FFC0CB" },
|
|
|
|
+ { code: "whiteSugar", type: "salty", icon: "stop", color: "#fcdd8d" },
|
|
|
|
+ ]);
|
|
|
|
+
|
|
// 冰淇淋物料
|
|
// 冰淇淋物料
|
|
const iceTypes = ref([
|
|
const iceTypes = ref([
|
|
{ code: "whiteSugar", type: "C01", icon: "stop", color: "#5C3317" },
|
|
{ code: "whiteSugar", type: "C01", icon: "stop", color: "#5C3317" },
|
|
@@ -621,7 +658,7 @@ export default {
|
|
{ code: "yellowSugar", type: "J01", icon: "stop", color: "#ff4d4f" },
|
|
{ code: "yellowSugar", type: "J01", icon: "stop", color: "#ff4d4f" },
|
|
{ code: "blueSugar", type: "J02", icon: "stop", color: "#1890ff" },
|
|
{ code: "blueSugar", type: "J02", icon: "stop", color: "#1890ff" },
|
|
{ code: "stick", type: "J03", icon: "stop", color: "#f8ff3b" },
|
|
{ code: "stick", type: "J03", icon: "stop", color: "#f8ff3b" },
|
|
- ])
|
|
|
|
|
|
+ ]);
|
|
|
|
|
|
// 创建容器引用
|
|
// 创建容器引用
|
|
const scrollContainer = ref(null);
|
|
const scrollContainer = ref(null);
|
|
@@ -732,7 +769,7 @@ export default {
|
|
// 获取设备列表数据
|
|
// 获取设备列表数据
|
|
const getList = async () => {
|
|
const getList = async () => {
|
|
finished.value = false;
|
|
finished.value = false;
|
|
- const { data } = await getDeviceList(Object.assign({}, searchParams));
|
|
|
|
|
|
+ const { data } = await getMachineList(Object.assign({}, searchParams));
|
|
if (data.code === "00000") {
|
|
if (data.code === "00000") {
|
|
if (searchParams.current === 0) {
|
|
if (searchParams.current === 0) {
|
|
list.value = [];
|
|
list.value = [];
|
|
@@ -1092,6 +1129,8 @@ export default {
|
|
popornTypes,
|
|
popornTypes,
|
|
iceTypes,
|
|
iceTypes,
|
|
|
|
|
|
|
|
+ poporn10Types,
|
|
|
|
+
|
|
scrollContainer,
|
|
scrollContainer,
|
|
scrollTop,
|
|
scrollTop,
|
|
handleScroll,
|
|
handleScroll,
|