From 48ed41879227c9b495f48ecd7cfde0acfd375da3 Mon Sep 17 00:00:00 2001
From: zhanghonglin <zhanghonglin@hnkhzn.com>
Date: 星期二, 28 十月 2025 08:53:12 +0800
Subject: [PATCH] 新增整形机入库功能
---
项目代码/WCS/WIDESEAWCS_Client/src/views/wmsPart/locationimg.vue | 125 ++++++++++++++++++++++++++++++-----------
1 files changed, 91 insertions(+), 34 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 4ddfee5..1c65734 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"
@@ -1013,6 +1013,7 @@
<div id="xian"></div>
</div>
</div>
+ <div id="zxjrk" @click="zxjrks">寮�鍚暣褰㈡満鍏ュ簱</div>
<div id="zxj" @click="zxj">鏁村舰鏈�</div>
<div id="kc" @click="kc">鍑哄簱</div>
<div id="gzj" @click="gzj">瑙勬暣鏈�</div>
@@ -1026,12 +1027,14 @@
import axios from "axios";
import { useStore } from "vuex";
import { getCurrentInstance } from "vue";
+//import { useRouter } from 'vue - router';
const wei = ref("");
const weis = ref("");
const swei = ref("");
const lie = ref("");
const bao = ref(0);
+const zxjrk = ref(0);
const qu = ref(0);
const ji = ref(0);
@@ -1046,6 +1049,18 @@
const store = useStore();
const data = ref({});
+
+//鏁村舰鏈哄叆搴�
+const zxjrks = () => {
+ let t = document.getElementById("zxjrk");
+ if (zxjrk.value == 0) {
+ zxjrk.value = 1;
+ t.style.background = "red";
+ } else {
+ zxjrk.value = 0;
+ t.style.background = "#f60";
+ }
+};
//淇敼搴撲綅淇濇姢鎸夐挳
const baohu = k => {
@@ -1087,24 +1102,24 @@
if (ji.value == 1) {
//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("鍑哄簱鎴愬姛");
- }
- });
+ 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("淇″彿涓嶆纭�");
}
@@ -1113,21 +1128,21 @@
} else if (ji1.value == 1) {
//鍒ゆ柇淇″彿////////////////////////////////////////////////////////////////////////////////
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("鍓旈櫎鍑哄簱鏃犳硶閫変腑鏅�氬簱浣�");
- }
- });
+ 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("淇″彿涓嶆纭�");
}
@@ -1159,10 +1174,12 @@
}
};
-//鍓旈櫎鍏ュ簱
+//鍏ュ簱
const kr = () => {
let t = document.getElementById("zxj");
+ let tt = document.getElementById("zxjrk");
if (ji.value == 1 && wei.value != "") {
+ //鍓旈櫎鍏ュ簱
//鍒ゆ柇淇″彿////////////////////////////////////////////////////////////////////////////////
if (R_ZXJ_TC_isready.value == true && R_TCMode_TC.value == true) {
axios.post("api/Task/tichuruku/?wei=" + wei.value, {}).then(x => {
@@ -1180,6 +1197,27 @@
alert("鍓旈櫎鍏ュ簱蹇呴』閫夋嫨鍓旈櫎搴撲綅");
}
});
+ //鏁村舰鏈哄叆搴� R_ZXJ_TC_isready.value == true ////////////////////////////////////////////////////////
+ } else if (zxjrk.value == 1) {
+ axios
+ .post("api/Task/zxjruku/?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 == 2) {
+ alert("鍏ュ簱鎴愬姛");
+ } else if (x.data.message == 3) {
+ alert("鍏ュ簱澶辫触");
+ } else if (x.data.message == 4) {
+ alert("搴撳瓨閲岄潰宸叉湁璐�");
+ } else if (x.data.message == 5) {
+ alert("鏁村舰鏈哄叆搴撳繀椤婚�夋嫨姝e父搴撲綅");
+ }
+ zxjrk.value = 0;
+ tt.style.background = "#f60";
+ });
} else {
alert("淇″彿涓嶆纭�");
}
@@ -1343,6 +1381,25 @@
</script>
<style scoped>
+#zxjrk:hover {
+ opacity: 0.8;
+ color: black;
+}
+#zxjrk {
+ width: 10%;
+ height: 5%;
+ background: #f60;
+ float: left;
+ border: 1px solid black;
+ border-radius: 5px;
+ position: absolute;
+ top: 73%;
+ left: 2%;
+ text-align: center;
+ color: white;
+ line-height: 240%;
+ cursor: pointer;
+}
.qiean {
width: 15%;
height: 70%;
--
Gitblit v1.9.3