From 5ffc36a1db18d3112a9b50a9cf3953d7fcf21bae Mon Sep 17 00:00:00 2001 From: huanghongfeng <huanghongfeng@hnkhzn.com> Date: 星期二, 19 八月 2025 16:37:24 +0800 Subject: [PATCH] 更新 --- 项目代码/WMS/WIDESEA_WMSClient/src/views/Home.vue | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue" index 17edbff..13268d2 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue" @@ -10,7 +10,7 @@ <el-button class="bun1" type="danger" v-if="item.stationStatus === '0'" v-on:click="selectss(1)">1鍙峰帇瑁呮満</el-button> <p> - 2鍙峰帇瑁呮満 : + 1鍙峰帇瑁呮満 : <el-tag type="success" v-if="item.stationStatus === '1'">鍚敤</el-tag> <el-tag type="danger" v-if="item.stationStatus === '0'">绂佺敤</el-tag> </p> @@ -23,11 +23,21 @@ <el-button class="bun2" type="danger" v-if="item.stationStatus === '0'" v-on:click="selectss(2)">2鍙峰帇瑁呮満</el-button> <p> - 1鍙峰帇瑁呮満 : + 2鍙峰帇瑁呮満 : <el-tag type="success" v-if="item.stationStatus === '1'">鍚敤</el-tag> <el-tag type="danger" v-if="item.stationStatus === '0'">绂佺敤</el-tag> </p> </div> + </div> + </div> + + + <div style="margin: 0px auto;width: 600px;"> + <div> + <div style="color: brown;font-size: 25px;">杞﹁疆瓒呮湡鏁伴噺锛� <i style="font-size: 35px;">{{ wheelsCount }} 涓�</i></div> + </div> + <div> + <div style="color: brown;font-size: 25px;">鍒跺姩鐩樿秴鏈熸暟閲忥細 <i style="font-size: 35px;">{{ zdpCount }} 涓�</i></div> </div> </div> @@ -38,6 +48,8 @@ data() { return { datalist: [], + zdpCount:0, + wheelsCount:0, url: "http://192.168.12.189/:8098/api/", }; @@ -45,6 +57,7 @@ mounted() { // setInterval(() => { this.AddTask(); + this.StockYx(); // }, 5000); }, @@ -78,6 +91,17 @@ } }) + }, + StockYx() { + axios.post("http://172.21.1.139:5000/api/Task/GetStockStatue") + .then(response => { + console.log(response.data.data.zdpCount) + if(response.status){ + this.wheelsCount=response.data.data.wheelsCount; + this.zdpCount=response.data.data.zdpCount; + } + + }) } }, -- Gitblit v1.9.3