| | |
| | | <div class="statistics putincolor"> |
| | | <div class="stat_label font16"> 总投料量 </div> |
| | | <div class="stat_value"> |
| | | {{ originWeight.toFixed(2) }} |
| | | {{ originWeight?.toFixed(2) || 0 }} |
| | | <span class="font16"> Kg </span> |
| | | </div> |
| | | <div class="stat_avg"> |
| | | <div> 预计产量 </div> |
| | | <div> {{ totalYield.toFixed(2) }} kg </div> |
| | | <div> {{ totalYield?.toFixed(2) || 0 }} kg </div> |
| | | </div> |
| | | </div> |
| | | </dv-border-box7> |
| | |
| | | <div class="statistics putincolor"> |
| | | <div class="stat_label font16"> 电量消耗 </div> |
| | | <div class="stat_value"> |
| | | {{ watt.toFixed(2) }} |
| | | {{ watt?.toFixed(2) || 0 }} |
| | | <span class="font16"> Kwh </span> |
| | | </div> |
| | | <div class="stat_avg"> |
| | | <div> 平均电耗 </div> |
| | | <div> {{wattAvg.toFixed(2)}} Kwh/kg </div> |
| | | <div> {{wattAvg?.toFixed(2) || 0}} Kwh/kg </div> |
| | | </div> |
| | | </div> |
| | | </dv-border-box7> |
| | |
| | | <div class="statistics putincolor"> |
| | | <div class="stat_label font16"> 蒸汽消耗 </div> |
| | | <div class="stat_value"> |
| | | {{ steam.toFixed(2) }} |
| | | {{ steam?.toFixed(2) || 0 }} |
| | | <span class="font16"> m³ </span> |
| | | </div> |
| | | <div class="stat_avg"> |
| | | <div> 平均汽耗 </div> |
| | | <div> {{steamAvg.toFixed(2)}} m³ </div> |
| | | <div> {{steamAvg?.toFixed(2) || 0}} m³/kg </div> |
| | | </div> |
| | | </div> |
| | | </dv-border-box7> |
| | |
| | | <div class="eqp-timer"> |
| | | <div |
| | | ><Icon style="color: #1850b7" icon="ic:twotone-water-drop" :size="20" /> |
| | | {{ realTime.get(eqpCodes[num - 1])?.trendVo?.moisture.toFixed(1) || '0' }} % |
| | | {{ realTime.get(eqpCodes[num - 1])?.trendVo?.moisture?.toFixed(1) || '0' }} % |
| | | </div> |
| | | <div |
| | | ><Icon style="color: #873853" icon="fluent:temperature-20-regular" :size="20" /> |
| | | {{ realTime.get(eqpCodes[num - 1])?.trendVo?.bellowsTemp.toFixed(0) || '0' }} ℃ |
| | | {{ realTime.get(eqpCodes[num - 1])?.trendVo?.bellowsTemp?.toFixed(0) || '0' }} ℃ |
| | | </div> |
| | | <div |
| | | ><Icon style="color: rgb(134 207 106)" icon="gg:sand-clock" :size="20" /> |
| | |
| | | <div class="eqp-timer"> |
| | | <div |
| | | ><Icon style="color: #1850b7" icon="ic:twotone-water-drop" :size="20" /> |
| | | {{ realTime.get(eqpCodes[num + 3])?.trendVo?.moisture.toFixed(1) || '0' }} % |
| | | {{ realTime.get(eqpCodes[num + 3])?.trendVo?.moisture?.toFixed(1) || '0' }} % |
| | | </div> |
| | | <div |
| | | ><Icon style="color: #873853" icon="fluent:temperature-20-regular" :size="20" /> |
| | | {{ realTime.get(eqpCodes[num + 3])?.trendVo?.bellowsTemp.toFixed(0) || '0' }} ℃ |
| | | {{ realTime.get(eqpCodes[num + 3])?.trendVo?.bellowsTemp?.toFixed(0) || '0' }} ℃ |
| | | </div> |
| | | <!-- <div><Icon style="color: rgb(42 154 234)" icon="mdi:clock-outline" :size="20" /> |
| | | {{realTime.get(eqpCodes[num + 3])?.dryTime || 0}} min |
| | |
| | | const eqpMap = ref(new Map()) |
| | | const eqpCodes = ref(['GM001', 'GM002', 'GM003', 'GM004', 'GM005', 'GM006', 'GM007', 'GM008']) |
| | | const eqps = ref([] as dryEquipment[]) |
| | | const title = ref('兰浦智能干燥车间') |
| | | const title = ref('智能干燥车间') |
| | | const userStore = useUserStore() |
| | | const envHum = ref(0) |
| | | const envTemp = ref(0) |
| | |
| | | |
| | | const steamAvg = ref(0) |
| | | const wattAvg = ref(0) |
| | | console.log(userStore.dictItems.title) |
| | | // console.log(userStore.dictItems.title) |
| | | userStore.dictItems.title?.forEach((element) => { |
| | | if (element.value === 'bigscreentitle') { |
| | | title.value = element.text |
| | |
| | | function listAllEqp() { |
| | | listAll({ enable: 'Y' }) |
| | | .then((result) => { |
| | | console.log(`output->result`, result) |
| | | // (`output->result`, result) |
| | | eqps.value = result |
| | | |
| | | result.forEach((item) => { |
| | |
| | | updateRealTime() |
| | | }) |
| | | .catch((err) => { |
| | | console.log(`output->err`, err) |
| | | // console.log(`output->err`, err) |
| | | }) |
| | | } |
| | | |
| | |
| | | function queryWorkShopStatistics() { |
| | | let tenantId = userStore.getTenant |
| | | defHttp.get({ url: '/dry/real/workshopStatistics', params: { tenantid: tenantId } }).then((res) => { |
| | | console.log(`output->res`, res) |
| | | // console.log(`output->res`, res) |
| | | steam.value = res.steam |
| | | watt.value = res.watt |
| | | envHum.value = res.envHum |
| | |
| | | }) |
| | | } |
| | | function gotoeqp(num) { |
| | | console.log('跳转机台', num) |
| | | //console.log('跳转机台', num) |
| | | if (num < eqpCodes.value.length) { |
| | | router.push({ path: '/bigEqp', query: { num: num } }) |
| | | } |
| | |
| | | } |
| | | |
| | | function showInfo(data) { |
| | | return data ? (data.fault ? data.fault : data.warning ? data.warning : data.level ? data.level : '空闲') : '空闲' |
| | | return data ? (data.fault ? data.fault : data.warning ? data.warning : data.orderStatus ? covertStatus(data.orderStatus+'') : '空闲') : '空闲' |
| | | } |
| | | |
| | | function covertStatus(status){ |
| | | //console.log('status',status) |
| | | switch (status) { |
| | | case '0': |
| | | return '准备阶段' |
| | | case '1': |
| | | return '上料阶段' |
| | | case '2': |
| | | return '干燥阶段' |
| | | case '3': |
| | | return '暂停' |
| | | case '4': |
| | | return '干燥完成' |
| | | |
| | | } |
| | | } |
| | | console.log("router-param", router.currentRoute.value.params.tenant); |
| | | getNowTime() |
| | | listAllEqp() |
| | | onMounted(() => { |