From 87110c04df904eb4947587a34f3fc5a1eb45eb7e Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期日, 12 十月 2025 16:21:11 +0800
Subject: [PATCH] 入库单据开发导入入库单功能;
---
Pda/View/SoSetting/WorkshopOut.html | 108 +++++++++++++++++++++++++++++-------------------------
1 files changed, 58 insertions(+), 50 deletions(-)
diff --git a/Pda/View/SoSetting/WorkshopOut.html b/Pda/View/SoSetting/WorkshopOut.html
index 95e1c08..5ef004e 100644
--- a/Pda/View/SoSetting/WorkshopOut.html
+++ b/Pda/View/SoSetting/WorkshopOut.html
@@ -109,7 +109,7 @@
<div id="content1">
<div id="zongDiv" class="layout-bill-info" style="height: 285px;">
<form class="layui-form" action="">
-
+
<div id="" class="layui-form-item layout-input">
<label class="layui-form-label" lang>鎵樼洏鏉$爜锛�</label>
<div class="layui-input-block">
@@ -124,24 +124,24 @@
placeholder="璇锋壂鎻忓绠辨潯鐮�" autocomplete="off" class="layui-input">
</div>
</div>
-
+
<table class="layout-tbl-input" border="" cellspacing="" cellpadding="">
<tr>
<td>
<div id="" class="layui-form-item layout-boxinfo">
<label class="layui-form-label" style=" width: 21%;" lang>鎵规:</label>
- <div class="layui-input-block" style=" width: 79%;margin-left: 21%;" >
+ <div class="layui-input-block" style=" width: 79%;margin-left: 21%;">
<input id="LotNo" type="text" disabled placeholder="" autocomplete="off"
class="layui-input">
</div>
</div>
</td>
</tr>
- <tr>
- <td>
+ <tr>
+ <td>
<div id="" class="layui-form-item layout-boxinfo">
<label class="layui-form-label" style=" width: 21%;" lang>鐗╂枡鍚嶇О锛�</label>
- <div class="layui-input-block" style=" width: 79%;margin-left: 21%;" >
+ <div class="layui-input-block" style=" width: 79%;margin-left: 21%;">
<input id="SkuName" type="text" disabled placeholder="" autocomplete="off"
class="layui-input">
</div>
@@ -169,17 +169,18 @@
<div id="content2">
<div id="zongDiv2" class="layout-bill-info" style="height: 255px;">
<form class="layui-form" id="form2" action="">
- <div id="" class="layui-form-item layout-input">
+ <div id="" class="layui-form-item layout-input">
<label class="layui-form-label" lang>鐗╂枡缂栫爜锛�</label>
<div class="layui-input-block">
- <input id="SkuNo" type="text" lay-verify="stock" lang langholder
- placeholder="璇疯緭鍏ョ墿鏂欑紪鐮�" autocomplete="off" class="layui-input">
+ <input id="SkuNo" type="text" lay-verify="stock" lang langholder placeholder="璇疯緭鍏ョ墿鏂欑紪鐮�"
+ autocomplete="off" class="layui-input">
</div>
- </div><div id="" class="layui-form-item layout-input">
+ </div>
+ <div id="" class="layui-form-item layout-input">
<label class="layui-form-label" lang>鎵规鍙凤細</label>
<div class="layui-input-block">
- <input id="LotNo2" type="text" lay-verify="stock" lang langholder
- placeholder="璇疯緭鍏ユ壒娆�" autocomplete="off" class="layui-input">
+ <input id="LotNo2" type="text" lay-verify="stock" lang langholder placeholder="璇疯緭鍏ユ壒娆�"
+ autocomplete="off" class="layui-input">
</div>
</div>
<div id="" class="layui-form-item layout-input">
@@ -286,7 +287,7 @@
/* 鏍囩鍒囨崲浠g爜 */
$('#demodiv').hide();
$('#demodiv1').hide();
- var xianshiyemian = 0;
+ var xianshiyemian = 0; // 0锛氭爣绛� 1锛氭暟閲�
$('#option1').attr("style", "background-color: red;width: 50%;float: left;text-align: center;"); //閫変腑鍚庨鑹�
$('#option2').attr("style", "background-color: #999;width: 50%;float: right;text-align: center;"); //榛樿棰滆壊
@@ -320,7 +321,7 @@
initLanguage()
setLanguage()
-
+
//鏄惁杩炵画缁勬墭
isContinue = "0";
@@ -388,18 +389,32 @@
//绠辩爜鍥炶溅浜嬩欢
- $("#BoxCode").keydown(function (e) {
- if (e.keyCode === 13) {
- if ($("#BoxCode").val() == "") {
- layer.msg('璇峰厛鎵弿绠辩爜', {
- icon: 2,
- time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
- });
- return
- }
- checkBoxInfo()
+ // $("#BoxCode").keydown(function (e) {
+ // if (e.keyCode === 13) {
+ // if ($("#BoxCode").val() == "") {
+ // layer.msg('璇峰厛鎵弿绠辩爜', {
+ // icon: 2,
+ // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ // });
+ // return
+ // }
+ // checkBoxInfo()
+ // }
+ // });
+
+
+ // 绠辩爜澶卞幓鐒︾偣鏃跺嚭鍙�
+ $("#BoxCode").blur(function () {
+ if ($("#BoxCode").val() == "") {
+ layer.msg('璇峰厛鎵弿绠辩爜', {
+ icon: 2,
+ time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ });
+ return
}
- });
+ checkBoxInfo()
+ })
+
//绠卞洖杞︿簨浠�
function checkBoxInfo() {
@@ -407,26 +422,26 @@
"BoxNo": $("#BoxCode").val(),
}
sendData(IP + "/PdaSo/GetWmsBoxInfos", param, 'get', function (res) {
-
+
if (res.code == 0) { //鎴愬姛
$("#SkuName").val(res.data[0].SkuName);
$("#LotNo").val(res.data[0].LotNo);
-
+
} else { //涓嶆垚鍔�
layer.msg(res.msg, {
- icon: 2,
- time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
- });
-
+ icon: 2,
+ time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ });
+
}
});
- }
-
+ }
+
//缁戝畾鍒版墭鐩樹簨浠�
form.on('submit(formBind)', function (data) {
if (xianshiyemian == 0) {
-
+
if ($("#PalletNo").val() == "") {
layer.msg('璇锋壂鎻忔墭鐩樻潯鐮�', {
icon: 2,
@@ -446,7 +461,7 @@
BoxNo: $("#BoxCode").val(),
TableType: xianshiyemian,
}
- //缁勭洏
+ // 鍑哄簱
sendData(IP + "/PdaSo/ChejianPick", param, 'post', function (res) {
if (res.code == 0) { //鎴愬姛
layer.msg(res.msg, {
@@ -456,7 +471,7 @@
$("#BoxCode").val("");
$("#SkuName").val("");
$("#LotNo").val("");
-
+
});
} else { //涓嶆垚鍔�
layer.msg(res.msg, {
@@ -469,13 +484,6 @@
});
}
else if (xianshiyemian == 1) {
- if ($("#bar1").val() == "") {
- layer.msg('璇烽�夋嫨鍏ュ簱鍗�', {
- icon: 2,
- time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
- });
- return;
- }
if ($("#SkuNo").val() == "") {
layer.msg('璇疯緭鍏ョ墿鏂�', {
icon: 2,
@@ -490,17 +498,17 @@
});
return;
}
- var param = {
+ var param = {
PalletNo: $("#PalletNo2").val(),
SkuNo: $("#SkuNo").val(),
LotNo: $("#LotNo2").val(),
- SkuQty: parseFloat($("#SkuQty2").val()), //鐗╂枡鏁伴噺
- AreaNo:$("#area").val(),
+ PickQty: $("#SkuQty2").val(), //鐗╂枡鏁伴噺parseFloat()
+ AreaNo: $("#area2").val(),
TableType: xianshiyemian,
}
console.log(param)
- //缁勭洏
- sendData(IP + "/PdaAsn/ChejianIn", param, 'post', function (res) {
+ // 鏁伴噺鏍囩 鍑哄簱鍑芥暟
+ sendData(IP + "/PdaSo/ChejianPickNum", param, 'post', function (res) {
if (res.code == 0) { //鎴愬姛
layer.msg(res.msg, {
icon: 1,
@@ -510,7 +518,7 @@
$("#SkuNo").val("");
$("#SkuQty2").val("");
$("#LotNo2").val("");
-
+
});
} else { //涓嶆垚鍔�
layer.msg(res.msg, {
@@ -526,7 +534,7 @@
return false; //闃绘琛ㄥ崟璺宠浆銆傚鏋滈渶瑕佽〃鍗曡烦杞紝鍘绘帀杩欐鍗冲彲銆�
});
-
+
/*鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��*/
--
Gitblit v1.8.0