From 8f9b9411ca279670bd85fcfa7763987295ed9abf Mon Sep 17 00:00:00 2001
From: zhanghonglin <zhanghonglin@hnkhzn.com>
Date: 星期五, 10 四月 2026 10:55:38 +0800
Subject: [PATCH] 空桶入出扩展开发
---
项目代码/WMS/WIDESEA_WMSClient/src/views/Home.vue | 47 +++++++++++++++++++++++++++++++++++++++++------
1 files changed, 41 insertions(+), 6 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 a90c459..51400b9 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"
@@ -32,13 +32,17 @@
</div>
<div id="xiak">
<div class="fenk">
- <p class="biaoti">浜哄伐寮哄埗婊℃《鍑哄簱</p>
+ <p class="biaoti">浜哄伐鍑哄簱</p>
<input placeholder="鏁伴噺(缁�)" type="text" id="shuliang" />
- <input placeholder="绉嶇被" type="text" id="zhonglei" style="margin-top: 0%;" />
+ <input placeholder="绉嶇被(浠e彿)" type="text" id="zhonglei" style="margin-top: 0%;" />
<button id="fasong" @click="SendTask()">涓嬪彂浠诲姟</button>
</div>
<div class="fenk">
- <p class="biaoti"></p>
+ <p class="biaoti">绌烘《鍏ュ簱璁剧疆</p>
+ <input placeholder="浠e彿" type="text" id="daihao" style="margin-top: 5%;margin-left: 10%;" />
+ <button id="kongtong" @click="Rukong()">淇敼</button>
+ <p class="went" style="margin-left: 10%;margin-top: 10%">褰撳墠鍏ュ簱浠e彿锛�</p>
+ <p class="wenx" id="xianA4" style="margin-top: 11%"></p>
</div>
<div class="fenk">
<p class="biaoti"></p>
@@ -95,6 +99,14 @@
}
Hint();
};
+//鍏ョ┖璁剧疆
+const Rukong=()=>{
+ let tiwz = document.getElementById("tiwz");
+ let n = document.getElementById("daihao").value;
+ tiwz.innerHTML = "鏄惁鎶婂綋鍓嶇┖妗剁被鍨嬫敼鎴�"+ n;
+ num.value = 5;
+ Hint();
+}
///鎻愮ず妗�
//鏄剧ず
@@ -154,7 +166,7 @@
Cancel();
});
} else if (type == 4) {
- //浜哄伐寮哄埗婊℃《鍑哄簱
+ //浜哄伐鍑哄簱
let nums = document.getElementById("shuliang");
let types = document.getElementById("zhonglei");
axios
@@ -176,6 +188,25 @@
nums.value = "";
types.value = "";
} else if (type == 5) {
+ //绌烘《鍏ュ簱璁剧疆
+ let n = document.getElementById("daihao")
+ axios
+ .post(
+ "api/Outstockinfo/EmptyOutSet/?Code=" + n.value,
+ {
+ rows: 100
+ }
+ )
+ .then(x => {
+ console.log("绌烘《鍏ュ簱璁剧疆"+x);
+ if (x.data.message != null) {
+ tiwz.innerHTML = x.data.message;
+ } else {
+ tiwz.innerHTML = "淇敼鎴愬姛";
+ }
+ Refresh();
+ num.value = 7;
+ });
} else if (type == 6) {
} else if (type == 7) {
Cancel();
@@ -219,10 +250,12 @@
//鑾峰彇椤甸潰鏄剧ず浣嶇疆
let xianA1 = document.getElementById("xianA1");
let xianA3 = document.getElementById("xianA3");
+ let xianA4 = document.getElementById("xianA4");
//鏄剧ず
xianA1.innerHTML = x.data.bigOrLittle == 0 ? "浼樺厛鍑哄皯" : "鍑哄叏婊�";
xianA3.innerHTML = x.data.outMode == 1 ? "姝e父鍏ュ簱" : "鐩存帴鍑哄簱";
+ xianA4.innerHTML = x.data.emptyOutSet;
});
};
</script>
@@ -237,7 +270,8 @@
text-align: center;
font-size: 30px;
}
-#MaterielCha {
+#MaterielCha,
+#kongtong {
float: left;
margin: 6% -10%;
width: 15%;
@@ -306,7 +340,8 @@
}
#MaterielName,
#shuliang,
-#zhonglei {
+#zhonglei,
+#daihao {
width: 50%;
height: 10%;
float: left;
--
Gitblit v1.9.3