From 265fa2b9f6816f62fffac3db611fcb1fc9dfe1a6 Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期四, 17 十月 2024 18:47:53 +0800
Subject: [PATCH] 修改问题
---
Pda/View/HouseDataSetting/agvTransport.html | 103 ++++++++++++++++++++++++++-------------------------
1 files changed, 53 insertions(+), 50 deletions(-)
diff --git a/Pda/View/HouseDataSetting/agvTransport.html b/Pda/View/HouseDataSetting/agvTransport.html
index 5c89e82..3418149 100644
--- a/Pda/View/HouseDataSetting/agvTransport.html
+++ b/Pda/View/HouseDataSetting/agvTransport.html
@@ -7,7 +7,7 @@
<!-- <meta name="viewport" content="width=device-width, initial-scale=0.665, minimum-scale=0.5, maximum-scale=1, user-scalable=no" /> -->
<!-- <meta name="viewport" content="width=device-width, initial-scale=0.665" /> -->
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
- <title>Boxline PDA</title>
+ <title>AGV杞繍</title>
<link rel="stylesheet" href="/layui/css/layui.css" />
<link rel="stylesheet" href="/css/style.css" />
@@ -101,13 +101,16 @@
</ul>
</div>
- <ul>
+ <!-- <ul>
<li id="option1">灏忚溅</li>
<li id="option2">鍙揣</li>
- </ul>
+ </ul> -->
- <br />
+ <button id="option1" class="layout-btn" type="button">灏忚溅</button>
+ <button id="option2" class="layout-btn" type="button">鍙揣</button>
+ <br /><br />
+
<!-- 鏈夌爜 -->
<div id="content1">
<div id="zongDiv" class="layout-bill-info" style="height: 170px;">
@@ -229,14 +232,14 @@
</select>
<img src="/assets/down_arraw.png">
</div>
- </div>
+ </div>
<table class="layout-tbl-submit" border="" cellspacing="" cellpadding="">
<tr>
<td style="width: 23%;"></td>
<td>
<button class="layout-btn layout-btn-red" lang type="button" lay-submit
- lay-filter="formCall2">鍙皬杞�</button>
+ lay-filter="formCall">鍙皬杞�</button>
</td>
<td style="width: 33%;"></td>
@@ -298,28 +301,28 @@
var xianshiyemian = 0;
- $('#option1').attr("style", "background-color: aqua;width: 45.77%;float: left;text-align: center;"); //閫変腑鍚庨鑹�
- $('#option2').attr("style", "background-color: #999;width: 45.77%;float: right;text-align: center;"); //榛樿棰滆壊
+ $('#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;"); //榛樿棰滆壊
$('#content2').hide();
$(document).ready(function () {
$('#option1').click(function () {
// qingkong();
xianshiyemian = 0;
$('#content1').show();
- $('#option1').attr("style", "background-color: aqua;width: 45.77%;float: left;text-align: center;"); //閫変腑鍚庨鑹�
+ $('#option1').attr("style", "background-color: red;width: 50%;float: left;text-align: center;"); //閫変腑鍚庨鑹�
$('#content2').hide();
- $('#option2').attr("style", "background-color: #999;width: 45.77%;float: right;text-align: center;"); //榛樿棰滆壊
+ $('#option2').attr("style", "background-color: #999;width: 50%;float: right;text-align: center;"); //榛樿棰滆壊
});
$('#option2').click(function () {
// qingkong();
xianshiyemian = 1;
$('#content1').hide();
- $('#option1').attr("style", "background-color: #999;width: 45.77%;float: left;text-align: center;"); //榛樿棰滆壊
+ $('#option1').attr("style", "background-color: #999;width: 50%;float: left;text-align: center;"); //榛樿棰滆壊
$('#content2').show();
- $('#option2').attr("style", "background-color: aqua;width: 45.77%;float: right;text-align: center;"); //閫変腑鍚庨鑹�
+ $('#option2').attr("style", "background-color: red;width: 50%;float: right;text-align: center;"); //閫変腑鍚庨鑹�
});
});
@@ -331,7 +334,7 @@
//褰撳墠鍒嗛〉
var curPageIndex = 1;
-
+
// 鎵樼洏鐮佹枃鏈敼鍙樻椂瑙﹀彂
$("#STOCKCODE").on('input', function () {
if ($("#STOCKCODE").val() == "" || $("#STOCKCODE").val().length < 8) {
@@ -382,7 +385,7 @@
});
}
else if (xianshiyemian == 1) {
-
+
}
}
@@ -426,7 +429,7 @@
if (res.code == 0) { //鎴愬姛
for (var i = 0; i < res.data.length; i++) {
$("#Quyu").append('<option value =' + res.data[i].AreaNo + '>' + res.data[i]
- .AreaNo + '-'+res.data[i].AreaName+
+ .AreaNo + '-' + res.data[i].AreaName +
'</option>');
}
form.render('select');
@@ -441,9 +444,9 @@
callback(res.data)
} else { //涓嶆垚鍔�
layer.msg(res.msg, {
- icon: 2,
- time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
- }, function() {});
+ icon: 2,
+ time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ }, function () { });
}
});
}
@@ -473,7 +476,7 @@
sendData(IP + "/PdaCr/GetRunSoNoticeList", param, 'get', function (res) {
if (res.code == 0) { //鎴愬姛
for (var i = 0; i < res.data.length; i++) {
- $("#OutNo").append('<option value =' + res.data[i] + '>' + res.data[i]+
+ $("#OutNo").append('<option value =' + res.data[i] + '>' + res.data[i] +
'</option>');
}
form.render('select');
@@ -494,8 +497,8 @@
}
});
}
- //閫変腑鍑哄簱鍗曚簨浠�
- form.on('select(getOutNo)', function (data) {
+ //閫変腑鍑哄簱鍗曚簨浠�
+ form.on('select(getOutNo)', function (data) {
$("#PalletNo").empty()
$("#PalletNo").append('<option value =>' + '</option>');
form.render('select');
@@ -504,7 +507,7 @@
$("#Quyu2").append('<option value =>' + '</option>');
form.render('select');
- refreshTable()
+ //refreshTable()
});
//鐐瑰嚮鎵樼洏鏉$爜涓嬫媺妗嗕簨浠�
@@ -534,12 +537,12 @@
form.render('select');
var param = {
- soNo:$("#OutNo").val()
+ soNo: $("#OutNo").val()
};
sendData(IP + "/PdaCr/GetPalletNoListBySoNo", param, 'get', function (res) {
if (res.code == 0) { //鎴愬姛
for (var i = 0; i < res.data.length; i++) {
- $("#PalletNo").append('<option value =' + res.data[i] + '>' + res.data[i]+
+ $("#PalletNo").append('<option value =' + res.data[i] + '>' + res.data[i] +
'</option>');
}
form.render('select');
@@ -572,13 +575,13 @@
//鐐瑰嚮鐩爣鍖哄煙涓嬫媺妗嗕簨浠�
$("#selectQuyu2").click(function () {
- if ($("#PalletNo").val() == "") {
- layer.msg('璇峰厛閫夋嫨鎵樼洏鏉$爜', {
- icon: 2,
- time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
- });
- return
- }
+ // if ($("#PalletNo").val() == "") {
+ // layer.msg('璇峰厛閫夋嫨鎵樼洏鏉$爜', {
+ // icon: 2,
+ // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ // });
+ // return
+ // }
var input = $('select[id="Quyu2"]').next().find('.layui-select-title input')
var val = input.val()
//鍏堟洿鏂颁竴涓嬬洰鏍囧尯鍩�
@@ -603,7 +606,7 @@
if (res.code == 0) { //鎴愬姛
for (var i = 0; i < res.data.length; i++) {
$("#Quyu2").append('<option value =' + res.data[i].AreaNo + '>' + res.data[i]
- .AreaNo + '-'+res.data[i].AreaName+
+ .AreaNo + '-' + res.data[i].AreaName +
'</option>');
}
form.render('select');
@@ -618,9 +621,9 @@
callback(res.data)
} else { //涓嶆垚鍔�
layer.msg(res.msg, {
- icon: 2,
- time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
- }, function() {});
+ icon: 2,
+ time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ }, function () { });
}
});
}
@@ -661,7 +664,7 @@
icon: 1,
time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
}, function () {
-
+
});
} else { //涓嶆垚鍔�
layer.msg(res.msg, {
@@ -680,14 +683,14 @@
time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
});
return;
- }
- if ($("#PalletNo").val() == "") {
- layer.msg('璇锋壂鎻忔墭鐩樻潯鐮�', {
- icon: 2,
- time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
- });
- return;
}
+ // if ($("#PalletNo").val() == "") {
+ // layer.msg('璇锋壂鎻忔墭鐩樻潯鐮�', {
+ // icon: 2,
+ // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ // });
+ // return;
+ // }
if ($("#Quyu2").val() == "") {
layer.msg('璇烽�夋嫨鐩爣鍖哄煙', {
icon: 2,
@@ -698,7 +701,7 @@
var param = {
SoNo: $("#OutNo").val(), //鍑哄簱鍗曟嵁
PalletNo: $("#PalletNo").val(), //鎵樼洏鏉$爜
- AreaNo: $("#Quyu").val()//鐩爣鍖哄煙
+ AreaNo: $("#Quyu2").val()//鐩爣鍖哄煙
}
//鍛煎彨灏忚溅
sendData(IP + "/PdaCr/AgvTransport2", param, 'post', function (res) {
@@ -707,7 +710,7 @@
icon: 1,
time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
}, function () {
-
+
});
} else { //涓嶆垚鍔�
layer.msg(res.msg, {
@@ -734,13 +737,13 @@
for (i = len - 1; i >= 2; i--) {
trs[i].remove();
}
- if($("#STOCKCODE").val()==''){
+ if ($("#STOCKCODE").val() == '') {
return;
}
var param = {
PalletNo: $("#STOCKCODE").val(),
- IsHuiKu:1
+ IsHuiKu: 1
};
// 鏍规嵁鎵樼洏鍙疯幏鍙栫鐮佷俊鎭�
sendData(IP + "/PdaCr/GetSkuInfoByPalletNo", param, 'get', function (res) {
@@ -759,7 +762,7 @@
tr.find("td[name='code']").html(res.data[i].BoxNo);
tr.find("td[name='name']").html(res.data[i].SkuName);
tr.find("td[name='lotNo']").html(res.data[i].LotNo);
- tr.find("td[name='num']").html(res.data[i].Qty);
+ tr.find("td[name='num']").html(res.data[i].Qty);
tr.show();
arrTrs[i] = tr
}
@@ -782,7 +785,7 @@
for (i = len - 1; i >= 2; i--) {
trs[i].remove();
}
- if($("#PalletNo").val()==''){
+ if ($("#PalletNo").val() == '') {
return;
}
var param = {
@@ -805,7 +808,7 @@
tr.find("td[name='code']").html(res.data[i].SkuNo);
tr.find("td[name='name']").html(res.data[i].SkuName);
tr.find("td[name='lotNo']").html(res.data[i].LotNo);
- tr.find("td[name='num']").html(res.data[i].Qty);
+ tr.find("td[name='num']").html(res.data[i].Qty);
tr.show();
arrTrs[i] = tr
}
--
Gitblit v1.8.0