From 96a94a59c08f55712ba04eb413e7f61739f11f66 Mon Sep 17 00:00:00 2001
From: zhanghonglin <zhanghonglin@hnkhzn.com>
Date: 星期二, 19 八月 2025 17:09:31 +0800
Subject: [PATCH] 定时一周自动清楚重量厚度,不合格背景红色提示、筛选功能
---
项目代码/WCS/WIDESEAWCS_Client/src/views/wmsPart/locationimg.vue | 184 +++++++++++++++++++++++++++++----------------
1 files changed, 118 insertions(+), 66 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/wmsPart/locationimg.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/wmsPart/locationimg.vue"
index 6bd71da..4ddfee5 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/wmsPart/locationimg.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/wmsPart/locationimg.vue"
@@ -989,6 +989,13 @@
</div>
</div>
<div id="kuang">
+ <div id="qiehuan">
+ <div class="qiean" @click="qiehuan(4)"></div>
+ <div class="qiean" @click="qiehuan(3)"></div>
+ <div class="qiean" @click="qiehuan(2)"></div>
+ <div class="qiean" @click="qiehuan(1)"></div>
+ <div class="qiean" @click="baohu()" style="background-color: green;">X</div>
+ </div>
<div id="ti">
<div class="ge" id="a" style="width: 6%;height:60%;margin-top: 1%;margin-left: 1%;"></div>
<div class="wen">绌洪棽</div>
@@ -1024,6 +1031,7 @@
const weis = ref("");
const swei = ref("");
const lie = ref("");
+const bao = ref(0);
const qu = ref(0);
const ji = ref(0);
@@ -1039,6 +1047,36 @@
const store = useStore();
const data = ref({});
+//淇敼搴撲綅淇濇姢鎸夐挳
+const baohu = k => {
+ bao.value = 0;
+ let t = document.getElementsByClassName("qiean");
+ t[4].style.background = "green";
+ alert("鍙栨秷鎴愬姛");
+};
+
+//鍒囨崲搴撲綅
+const qiehuan = k => {
+ let t = document.getElementsByClassName("qiean");
+ if (bao.value == 0) {
+ bao.value = 1;
+ alert("宸叉縺娲讳慨鏀瑰簱浣�");
+ t[4].style.background = "red";
+ } else {
+ axios.post("api/LocationInfo/setlocations/?k=" + k, {}).then(x => {
+ if (x.data.message == 1) {
+ alert("淇敼鎴愬姛");
+ } else if (x.data.message == 2) {
+ alert("搴撳瓨閲屾湁璐э紝鏃犳硶淇敼");
+ } else if (x.data.message == 4) {
+ alert("淇敼澶辫触");
+ }
+ bao.value = 0;
+ t[4].style.background = "green";
+ });
+ }
+};
+
//鍑哄簱
const kc = () => {
let t = document.getElementById("zxj");
@@ -1047,58 +1085,51 @@
if (wei.value != "") {
//鏅�氳揣鍗婅嚜鍔ㄥ嚭搴�
if (ji.value == 1) {
- //鍒ゆ柇鍒�
- if (lie.value != 38) {
- //data.value.R_ZXJ_isWork == true &&
- if (R_ZXJ_TCMode.value == true && R_HC_isReadyWork.value == true) {
- axios
- .post(
- "api/Task/banzidong/?wei=" + wei.value + "&weis=" + weis.value,
- {}
- )
- .then(x => {
- qu.value = 0;
- t.style.background = "#f60";
- if (x.data.message == 1) {
- alert("鍑哄簱澶辫触锛堝彲鑳芥槸 鈥滄槸鍚﹀嚭搴撯�� 鐨勯棶棰橈級");
- } else if (x.data.message == 3) {
- alert("鍑哄簱澶辫触锛堟壘涓嶅埌搴撳瓨锛�");
- } else {
- alert("鍑哄簱鎴愬姛");
- }
- console.log(x);
- });
- } else {
- alert("淇″彿涓嶆纭�");
- }
+ //data.value.R_ZXJ_isWork == true &&
+ if (R_ZXJ_TCMode.value == true && R_HC_isReadyWork.value == true) {
+ axios
+ .post(
+ "api/Task/banzidong/?wei=" + wei.value + "&weis=" + weis.value,
+ {}
+ )
+ .then(x => {
+ qu.value = 0;
+ t.style.background = "#f60";
+ if (x.data.message == 1) {
+ alert("鍑哄簱澶辫触锛堝彲鑳芥槸 鈥滄槸鍚﹀嚭搴撯�� 鐨勯棶棰橈級");
+ } else if (x.data.message == 3) {
+ alert("鍑哄簱澶辫触锛堟壘涓嶅埌搴撳瓨锛�");
+ } else if (x.data.message == 5) {
+ alert("鏅�氬嚭搴撴棤娉曢�変腑鍓旈櫎搴撲綅");
+ } else {
+ alert("鍑哄簱鎴愬姛");
+ }
+ });
} else {
- alert("鏅�氬嚭搴撲笉鑳介�変腑38鍒楃殑搴�");
+ alert("淇″彿涓嶆纭�");
}
//鍓旈櫎璐у崐鑷姩鍑哄簱
} else if (ji1.value == 1) {
- //鍒ゆ柇鍒�
- if (lie.value == 38) {
- //鍒ゆ柇淇″彿////////////////////////////////////////////////////////////////////////////////
- if (R_TC_isready.value == true) {
- axios.post("api/Task/tichuchuku/?wei=" + wei.value, {}).then(x => {
- qu1.value = 0;
- s.style.background = "#f60";
- if (x.data.message == 1) {
- alert("鍑哄簱澶辫触锛堝彲鑳芥槸 鈥滄槸鍚﹀嚭搴撯�� 鐨勯棶棰橈級");
- } else if (x.data.message == 2) {
- alert("鍑哄簱鎴愬姛");
- } else if (x.data.message == 3) {
- alert("鍑哄簱澶辫触");
- } else if (x.data.message == 4) {
- alert("搴撳瓨閲岄潰鏃犺揣");
- }
- });
- }else{
- alert("淇″彿涓嶆纭�");
+ //鍒ゆ柇淇″彿////////////////////////////////////////////////////////////////////////////////
+ if (R_TC_isready.value == true) {
+ axios.post("api/Task/tichuchuku/?wei=" + wei.value, {}).then(x => {
+ qu1.value = 0;
+ s.style.background = "#f60";
+ if (x.data.message == 1) {
+ alert("鍑哄簱澶辫触锛堝彲鑳芥槸 鈥滄槸鍚﹀嚭搴撯�� 鐨勯棶棰橈級");
+ } else if (x.data.message == 2) {
+ alert("鍑哄簱鎴愬姛");
+ } else if (x.data.message == 3) {
+ alert("鍑哄簱澶辫触");
+ } else if (x.data.message == 4) {
+ alert("搴撳瓨閲岄潰鏃犺揣");
+ } else if (x.data.message == 5) {
+ alert("鍓旈櫎鍑哄簱鏃犳硶閫変腑鏅�氬簱浣�");
}
+ });
} else {
- alert("鏅�氬嚭搴撳彧鑳介�変腑38鍒楃殑搴�");
+ alert("淇″彿涓嶆纭�");
}
}
//鍓旈櫎鐩存帴鍑哄簱
@@ -1128,29 +1159,29 @@
}
};
-//鍏ュ簱
+//鍓旈櫎鍏ュ簱
const kr = () => {
let t = document.getElementById("zxj");
if (ji.value == 1 && wei.value != "") {
- if (lie.value == 38) {
- //鍒ゆ柇淇″彿////////////////////////////////////////////////////////////////////////////////
- if (R_ZXJ_TC_isready.value == true && R_TCMode_TC.value == true) {
- axios.post("api/Task/tichuruku/?wei=" + wei.value, {}).then(x => {
- qu.value = 0;
- t.style.background = "#f60";
- if (x.data.message == 1) {
- alert("鍏ュ簱澶辫触锛堝彲鑳芥槸 鈥滄槸鍚﹀嚭搴撯�� 鐨勯棶棰橈級");
- } else if (x.data.message == 2) {
- alert("鍏ュ簱鎴愬姛");
- } else if (x.data.message == 3) {
- alert("鍏ュ簱澶辫触");
- } else if (x.data.message == 4) {
- alert("搴撳瓨閲岄潰宸叉湁璐�");
- }
- });
- }
+ //鍒ゆ柇淇″彿////////////////////////////////////////////////////////////////////////////////
+ if (R_ZXJ_TC_isready.value == true && R_TCMode_TC.value == true) {
+ axios.post("api/Task/tichuruku/?wei=" + wei.value, {}).then(x => {
+ qu.value = 0;
+ t.style.background = "#f60";
+ if (x.data.message == 1) {
+ alert("鍏ュ簱澶辫触锛堝彲鑳芥槸 鈥滄槸鍚﹀嚭搴撯�� 鐨勯棶棰橈級");
+ } else if (x.data.message == 2) {
+ alert("鍏ュ簱鎴愬姛");
+ } else if (x.data.message == 3) {
+ alert("鍏ュ簱澶辫触");
+ } else if (x.data.message == 4) {
+ alert("搴撳瓨閲岄潰宸叉湁璐�");
+ } else if (x.data.message == 5) {
+ alert("鍓旈櫎鍏ュ簱蹇呴』閫夋嫨鍓旈櫎搴撲綅");
+ }
+ });
} else {
- alert("鍓旈櫎鍏ュ簱鍙兘閫変腑38鍒楃殑搴�");
+ alert("淇″彿涓嶆纭�");
}
} else {
alert("璇峰厛閫変腑搴撲綅鍜屾暣褰㈡満");
@@ -1312,6 +1343,27 @@
</script>
<style scoped>
+.qiean {
+ width: 15%;
+ height: 70%;
+ border: 1px solid green;
+ float: left;
+ margin-left: 5%;
+ text-align: center;
+ line-height: 3vh;
+ font-size: 2vh;
+}
+.qiean:hover {
+ border: 2px solid yellow;
+}
+#qiehuan {
+ width: 13%;
+ height: 5%;
+ position: absolute;
+ left: 85.7%;
+ top: 71%;
+ cursor: pointer;
+}
#kr {
width: 4%;
height: 4%;
@@ -1334,7 +1386,7 @@
width: 10%;
height: 15%;
position: absolute;
- top: 75%;
+ top: 80%;
left: 87%;
text-align: center;
line-height: 700%;
@@ -1371,7 +1423,7 @@
width: 10%;
height: 15%;
position: absolute;
- top: 75%;
+ top: 80%;
left: 2%;
text-align: center;
line-height: 700%;
--
Gitblit v1.9.3