From d1e9b4b34378bbee52b62c38f80ca678501e04cd Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期三, 30 四月 2025 17:00:29 +0800
Subject: [PATCH] 修改问题
---
HTML/views/HouseWithinSetting/HopperTransport.html | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 52 insertions(+), 7 deletions(-)
diff --git a/HTML/views/HouseWithinSetting/HopperTransport.html b/HTML/views/HouseWithinSetting/HopperTransport.html
index 1c2ad6b..9ad2288 100644
--- a/HTML/views/HouseWithinSetting/HopperTransport.html
+++ b/HTML/views/HouseWithinSetting/HopperTransport.html
@@ -202,7 +202,7 @@
<div class="layui-form-item" >
<div class="layui-input-block">
<button type="submit" class="layui-btn" lay-submit
- lay-filter="demo1">绔嬪嵆鎻愪氦</button>
+ lay-filter="demo2">绔嬪嵆鎻愪氦</button>
<button type="reset" class="layui-btn layui-btn-primary">閲嶇疆</button>
</div>
</div>
@@ -261,15 +261,60 @@
var doing = true;
- // 鎻愪氦浜嬩欢
+ // 鍙枡鎻愪氦浜嬩欢
form.on('submit(demo1)', function (data) {
var field = data.field; // 鑾峰彇琛ㄥ崟瀛楁鍊�
- // 鏄剧ず濉啓缁撴灉锛屼粎浣滄紨绀虹敤
- layer.alert(JSON.stringify(field), {
- title: '褰撳墠濉啓鐨勫瓧娈靛��'
+ var param = {
+ AreaNo: field.AreaSelect,
+ LocateNo : field.LocateSelect,
+ PlnStatus:field.PalletStatus,
+ Standard:field.Standard,
+ SkuNo:field.SkuSelect,
+ LotNo:field.LotNoSelect
+ };
+ sendData(IP + "/DownApi/jiaoLiaoHopper", param, 'post', function(res) {
+ if (res.code == 0) { //鎴愬姛
+ layer.msg(res.msg, {
+ icon: 1,
+ time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ }, function() {
+
+ });
+ } else { //涓嶆垚鍔�
+ layer.msg(res.msg, {
+ icon: 2,
+ time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ }, function() {});
+ }
});
- // 姝ゅ鍙墽琛� Ajax 绛夋搷浣�
- // 鈥�
+ return false; // 闃绘榛樿 form 璺宠浆
+ });
+ // 鍙溅鎻愪氦浜嬩欢
+ form.on('submit(demo2)', function (data) {
+ var field = data.field; // 鑾峰彇琛ㄥ崟瀛楁鍊�
+ var param = {
+ AreaNo: field.AreaSelect2,
+ LocateNo : field.LocateSelect2,
+ PlnStatus:field.PalletStatus2,
+ SkuNo:field.SkuSelect2,
+ LotNo:field.LotNoInput,
+ Weight:parseFloat(field.WeightInput)
+ };
+ sendData(IP + "/DownApi/jiaoCheHopper", param, 'post', function(res) {
+ if (res.code == 0) { //鎴愬姛
+ layer.msg(res.msg, {
+ icon: 1,
+ time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ }, function() {
+
+ });
+ } else { //涓嶆垚鍔�
+ layer.msg(res.msg, {
+ icon: 2,
+ time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ }, function() {});
+ }
+ });
return false; // 闃绘榛樿 form 璺宠浆
});
--
Gitblit v1.8.0