From e182f23e393e4c7f3ff08daae540d0434cd81f6d Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期三, 03 八月 2022 15:03:33 +0800 Subject: [PATCH] 工序汇报入库的入库按钮换位置 --- WebTM/views/组装单/Sc_PCruxBindingPDA.html | 72 ++++++++++++++++++------------------ 1 files changed, 36 insertions(+), 36 deletions(-) diff --git "a/WebTM/views/\347\273\204\350\243\205\345\215\225/Sc_PCruxBindingPDA.html" "b/WebTM/views/\347\273\204\350\243\205\345\215\225/Sc_PCruxBindingPDA.html" index d965491..ef3335c 100644 --- "a/WebTM/views/\347\273\204\350\243\205\345\215\225/Sc_PCruxBindingPDA.html" +++ "b/WebTM/views/\347\273\204\350\243\205\345\215\225/Sc_PCruxBindingPDA.html" @@ -179,8 +179,8 @@ //琛ㄥご鍒濆鍖栬祴鍊硷紙鏍规嵁鐧诲綍鐢ㄦ埛鑾峰彇宸ュ簭 鐢熶骇璧勬簮銆佹搷浣滃憳銆佺敓浜х彮缁勶級 new - //宸ュ簭 - + //宸ュ簭 + $("#HProcID").val(sessionStorage["HProcID"]); $("#HProc").val(sessionStorage["HProc"]); //鐢熶骇璧勬簮 @@ -315,7 +315,7 @@ } }); }) - + //鍒犻櫎 form.on('submit(cmdDelete)', function () { var checkStatus = table.checkStatus('tm-table') @@ -328,7 +328,7 @@ type: "Get", url: GetWEBURL() + "/Sc_PckSplit/Delete_PHPCruxBillListByME", async: true, - data: { "HInterID": sInterID, "HMaterID": sMaterID, "HBarCode": sBarCode}, + data: { "HInterID": sInterID, "HMaterID": sMaterID, "HBarCode": sBarCode }, dataType: "json", success: function (data) { if (data.count == 1) { @@ -351,33 +351,33 @@ var sSubStr = JSON.stringify(table.cache['pj-table']); var sSubStr1 = JSON.stringify(table.cache['tm-table']); var sMainSub = sMainStr + ';' + sSubStr + ';' + sSubStr1 + ';' + sessionStorage["HUserName"]; - $.ajax( - { - type: "POST", - url: GetWEBURL() + "/Sc_PckSplit/Add_PHPCruxBillList", - async: true, - data: { "msg": sMainSub }, - dataType: "json", - success: function (data) { - if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜� - layer.msg("鎻愪氦鎴愬姛" + data.Message + $("#HBillNo").val(), { time: 1 * 1000, icon: 1 }, function () { - location.reload(); - }); - //layer.msg("鎻愪氦鎴愬姛" + data.Message + $("#HBillNo").val(), { icon: 1, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); - //location.reload(); - } - else { - //layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't' }); - layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); - } - layer.closeAll("loading"); - layui.form.render(); - }, - error: function (err) { - //layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't' }); - layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + $.ajax( + { + type: "POST", + url: GetWEBURL() + "/Sc_PckSplit/Add_PHPCruxBillList", + async: true, + data: { "msg": sMainSub }, + dataType: "json", + success: function (data) { + if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜� + layer.msg("鎻愪氦鎴愬姛" + data.Message + $("#HBillNo").val(), { time: 1 * 1000, icon: 1 }, function () { + location.reload(); + }); + //layer.msg("鎻愪氦鎴愬姛" + data.Message + $("#HBillNo").val(), { icon: 1, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + //location.reload(); } - }); + else { + //layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't' }); + layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + layer.closeAll("loading"); + layui.form.render(); + }, + error: function (err) { + //layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't' }); + layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }); }); //鐩戝惉鎻愪氦 @@ -410,7 +410,7 @@ url: GetWEBURL() + "/Sc_PckSplit/Get_PHPCruxSNBillList", type: "GET", async: false, - data: { "HinterID": sInterID, "HBarCode": sBarCode, "HProcID": sProcID, "HBillNo": sBillNo}, + data: { "HinterID": sInterID, "HBarCode": sBarCode, "HProcID": sProcID, "HBillNo": sBillNo }, success: function (result) { if (result.count == 1) { option.data = result.data; @@ -426,7 +426,7 @@ $("#HPCrux").focus(); } }); - //鍏抽敭浠跺洖杞︽柟娉� + //鍏抽敭浠跺洖杞︽柟娉� $('#HPCrux').on('keydown', function (event) { var sHPCrux = $('#HPCrux').val() var sInterID = $('#HInterID').val() @@ -440,7 +440,7 @@ url: GetWEBURL() + "/Sc_PckSplit/Get_PHPCruxBillList", type: "GET", async: false, - data: { "HinterID": sInterID, "HPCrux": sHPCrux, "HBillNo": sBillNo}, + data: { "HinterID": sInterID, "HPCrux": sHPCrux, "HBillNo": sBillNo }, success: function (result) { if (result.count == 1) { option1.data = result.data; @@ -507,10 +507,10 @@ option1.data = []; table1.render(option1); } - + }); - - + + </script> </body> </html> \ No newline at end of file -- Gitblit v1.9.1