From 412850d23645d2459aab832dff0c3deeaeb1110b Mon Sep 17 00:00:00 2001 From: 仲国强 <519541279@qq.com> Date: 星期一, 27 九月 2021 09:30:40 +0800 Subject: [PATCH] 1 --- WebTM/views/工资管理/工资结算单(其他)/Kf_BarCodeEditDlg.html | 268 ++++++++ WebTM/views/工资管理/工资结算单(集体)/Kf_BarCodeEditDlg.html | 268 ++++++++ WebTM/views/车间管理/委外工序发出单/Cj_StationEntrustInBill_Mul.html | 718 +++++++++++++++++++++++ WebTM/views/index.html | 1 WebTM/views/工资管理/考勤汇报单/Kf_BarCodeEditDlg.html | 268 ++++++++ WebTM/WebTM.csproj | 9 WebTM/views/工资管理/工资结算单(个人)/Kf_BarCodeEditDlg.html | 268 ++++++++ 7 files changed, 1,796 insertions(+), 4 deletions(-) diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj index a52602e..723b596 100644 --- a/WebTM/WebTM.csproj +++ b/WebTM/WebTM.csproj @@ -552,6 +552,10 @@ <Content Include="views\鍩虹璧勬枡\杈呭姪鍩虹璧勬枡\Sb_Add_MaintenanceMode.html" /> <Content Include="views\鍩虹璧勬枡\閲囪喘鍩虹璧勬枡\Gy_Supplier.html" /> <Content Include="views\鍩虹璧勬枡\閿�鍞熀纭�璧勬枡\Gy_Customer.html" /> + <Content Include="views\宸ヨ祫绠$悊\宸ヨ祫缁撶畻鍗�%28涓汉%29\Kf_BarCodeEditDlg.html" /> + <Content Include="views\宸ヨ祫绠$悊\宸ヨ祫缁撶畻鍗�%28鍏朵粬%29\Kf_BarCodeEditDlg.html" /> + <Content Include="views\宸ヨ祫绠$悊\宸ヨ祫缁撶畻鍗�%28闆嗕綋%29\Kf_BarCodeEditDlg.html" /> + <Content Include="views\宸ヨ祫绠$悊\鑰冨嫟姹囨姤鍗昞Kf_BarCodeEditDlg.html" /> <Content Include="views\妯℃不鍏风鐞哱妯″叿澶勭悊鍑哄簱鍗昞Sc_MouldScrapOutBill_PDA.html" /> <Content Include="views\妯℃不鍏风鐞哱妯″叿瀵垮懡璋冩暣鍗昞Sc_MouldLifeChangeBill_PDA.html" /> <Content Include="views\妯℃不鍏风鐞哱妯″叿鐢熶骇閫�搴撳崟\Sc_MouldProdBackBill_PDA.html" /> @@ -677,6 +681,7 @@ <Content Include="views\璐ㄩ噺绠$悊\棣栦欢妫�楠屽崟\QC_FirstPieceCheckBillList.html" /> <Content Include="views\璐ㄩ噺绠$悊\棣栦欢妫�楠屽崟\QC_Add_Edit_FirstPieceCheckBill.html" /> <Content Include="views\杞﹂棿绠$悊\濮斿宸ュ簭鍙戝嚭鍗昞Cj_StationEntrustInBill_PDA.html" /> + <Content Include="views\杞﹂棿绠$悊\濮斿宸ュ簭鍙戝嚭鍗昞Cj_StationEntrustInBill_Mul.html" /> <Content Include="views\杞﹂棿绠$悊\濮斿宸ュ簭鎺ユ敹鍗昞Cj_StationEntrustOutBill_PDA.html" /> <Content Include="views\杞﹂棿绠$悊\宸ュ簭鍑虹珯姹囨姤鍗昞Cj_StationOutBill.html" /> <Content Include="views\杞﹂棿绠$悊\宸ュ簭鍑虹珯姹囨姤鍗昞Sc_StationOutBill_Mul.html" /> @@ -813,10 +818,6 @@ <ItemGroup> <Folder Include="views\浠撳瓨绠$悊\璋冩嫧鍗曟牳瀵筡" /> <Folder Include="views\浠撳瓨绠$悊\璋冩嫧鍗曠ń鏍竆" /> - <Folder Include="views\宸ヨ祫绠$悊\宸ヨ祫缁撶畻鍗�%28涓汉%29\" /> - <Folder Include="views\宸ヨ祫绠$悊\宸ヨ祫缁撶畻鍗�%28鍏朵粬%29\" /> - <Folder Include="views\宸ヨ祫绠$悊\宸ヨ祫缁撶畻鍗�%28闆嗕綋%29\" /> - <Folder Include="views\宸ヨ祫绠$悊\鑰冨嫟姹囨姤鍗昞" /> </ItemGroup> <PropertyGroup> <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> diff --git a/WebTM/views/index.html b/WebTM/views/index.html index 6f7d0bf..4023103 100644 --- a/WebTM/views/index.html +++ b/WebTM/views/index.html @@ -361,6 +361,7 @@ <dd><a lay-href="杞﹂棿绠$悊/宸ュ簭鍑虹珯姹囨姤鍗�/Sc_StationOutBill_Mul.html">宸ュ簭鍑虹珯姹囨姤鍗曟壒閲�</a></dd> <dd><a lay-href="杞﹂棿绠$悊/宸ュ簭鍑虹珯姹囨姤鍗�/Cj_StationOutBillList.html">宸ュ簭鍑虹珯姹囨姤鍗曠淮鎶�</a></dd> <dd><a lay-href="杞﹂棿绠$悊/濮斿宸ュ簭鍙戝嚭鍗�/Cj_StationEntrustInBill.html">宸ュ簭濮斿鍙戝嚭鍗�</a></dd> + <dd><a lay-href="杞﹂棿绠$悊/濮斿宸ュ簭鍙戝嚭鍗�/Cj_StationEntrustInBill_Mul.html">宸ュ簭濮斿鍙戝嚭鍗曟壒閲�</a></dd> <dd><a lay-href="杞﹂棿绠$悊/濮斿宸ュ簭鍙戝嚭鍗�/Cj_StationEntrustInBillList.html">宸ュ簭濮斿鍙戝嚭鍗曠淮鎶�</a></dd> <dd><a lay-href="杞﹂棿绠$悊/濮斿宸ュ簭鎺ユ敹鍗�/Cj_StationEntrustOutBill.html">宸ュ簭濮斿鎺ユ敹鍗�</a></dd> <dd><a lay-href="杞﹂棿绠$悊/濮斿宸ュ簭鎺ユ敹鍗�/Cj_StationEntrustOutBillList.html">宸ュ簭濮斿鎺ユ敹鍗曠淮鎶�</a></dd> diff --git "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\344\270\252\344\272\272\051/Kf_BarCodeEditDlg.html" "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\344\270\252\344\272\272\051/Kf_BarCodeEditDlg.html" new file mode 100644 index 0000000..4bdb342 --- /dev/null +++ "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\344\270\252\344\272\272\051/Kf_BarCodeEditDlg.html" @@ -0,0 +1,268 @@ +锘�<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <title>鏄庣粏缂栬緫</title> + <meta name="renderer" content="webkit"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> + <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all"> + <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all"> +</head> +<body> + <div class="layui-fluid"> + <div class="layui-card" style="padding: 1%"> + <div class="layui-card-body" style="padding: 15px;"> + <form class="layui-form" action="" lay-filter="component-form-group"> + <div class="layui-form-item"> + <label class="layui-form-label">鏁伴噺</label> + <div class="layui-input-inline"> + <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" style="width:100%" class="layui-input"> + </div> + </div> + <div class="layui-tab"> + <ul class="layui-tab-title" lay-filter="tab-all"> + <li lay-id="1">鏉$爜鏄庣粏</li> + <li lay-id="2">鏉$爜妗f</li> + </ul> + <div class="layui-tab-content"> + <div class="layui-tab-item layui-show"> + <table class="layui-hide" id="mx-table" lay-filter="mx-table"></table> + <div class="layui-card-header"></div> + <div class="layui-form-item"> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdChange">璋冩暣</button> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDel">鍒犻櫎</button> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">閫�鍑�</button> + </div> + </div> + <div class="layui-tab-item"> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">鏉″舰鐮�</label> + <div class="layui-input-inline"> + <input type="text" name="HBarcode" id="HBarcode" lay-verify="HBarcode" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">鐗╂枡妗f</label> + <div class="layui-input-inline"> + <input type="text" name="HM" id="HM" lay-verify="HM" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">寰�鏉ュ崟浣�</label> + <div class="layui-input-inline"> + <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input"> + <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" autocomplete="off" class="layui-input"> + </div> + + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">閮ㄩ棬</label> + <div class="layui-input-inline"> + <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input"> + <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">浠撳簱</label> + <div class="layui-input-inline mobile"> + <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input"> + <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">浠撲綅</label> + <div class="layui-input-inline mobile"> + <input type="text" name="HSCWHNAME" id="HSCWHNAME" lay-verify="HSCWHNAME" autocomplete="off" class="layui-input"> + <input type="hidden" name="HSCWID" id="HSCWID" lay-verify="HSCWID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item" style="margin-bottom: 20px;"> + <button type="button" lay-submit="" class="layui-btn" lay-filter="button1">杩斿洖</button> + </div> + </div> + </div> + </div> + </form> + </div> + </div> + </div> + <script src="../../../layuiadmin/layui/layui.js"></script> + <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script> + <script src="../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> + <script> + function getUrlVars() { + var vars = [], hash; + var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); + for (var i = 0; i < hashes.length; i++) { + hash = hashes[i].split('='); + vars.push(hash[0]); + vars[hash[0]] = hash[1]; + } + return vars; + } + //鑾峰彇椤甸潰璺宠浆鍙傛暟 + var params = get_UrlVars(); + if (typeof (params[params[0]]) == "undefined") { + var OperationType = 1;//鎿嶄綔绫诲瀷 + } else { + var HInterID = params[params[0]];//鍗曟嵁ID + var HMaterID = params[params[1]];//鐗╂枡ID + var HAuxPropID = params[params[2]];//杈呭姪灞炴�� + var HMTONo = params[params[3]];//璁″垝璺熻釜鍙� + var HWhID = params[params[4]];//浠撳簱ID + var HSPID = params[params[5]];//浠撲綅ID + var HSCWHID = params[params[6]];//璋冨嚭浠撳簱ID + var HSCSPID = params[params[7]];//璋冨嚭浠撲綅ID + var HBatchNo = params[params[8]];//鎵规 + var HSourceInterID = params[params[9]];//婧愬崟涓籌D + var HSourceEntryID = params[params[10]];//婧愬崟瀛怚D + var HBillType = params[params[11]];//鍗曟嵁绫诲瀷 + var HBarCode = params[params[12]];//鏉$爜 + } + + layui.config({ + base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰� + }).extend({ + index: 'lib/index' //涓诲叆鍙fā鍧� + }).use(['index', 'form', 'table'], function () { + var $ = layui.$ + , admin = layui.admin + , layer = layui.layer + , table = layui.table + , form = layui.form; + + + table.render({ + elem: '#mx-table' + //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' + ,url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub" + , where: { + "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID + , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType + }, + cols: [[ + { type: 'radio' } + , { field: 'HSonNo', title: '搴忓彿', width: 100 } + , { field: 'HBarCode', title: '鏉″舰鐮�', width: 200 } + , { field: 'HQty', title: '鏁伴噺', width: 100 } + , { field: 'HBatchNo', title: '鎵规', width: 150 } + , { field: 'HMTONo', title: '璁″垝璺熻釜鍗曞彿', width: 150 } + ]] + // , data: [linterid] + }); + + + //#region 鍒犻櫎 + function set_DeleteBill() { + var checkStatus = table.checkStatus('mx-table') + , data = checkStatus.data; + if (checkStatus.data.length === 1) { + var HBarCode = data[0].HBarCode.toString(); + //閫昏緫鍒犻櫎鏂规硶 + layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) { + $.ajax({ + type: "GET", + url: GetWEBURL() + "Kf_BarCodeEditDlg/DeltetBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + data: { "HInterID": HInterID, "HBarCode": HBarCode, "HBillType": HBillType }, + success: function (result) { + if (result.count == 1) { + layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { + // 寰楀埌frame绱㈠紩 + var index = layer.getFrameIndex(window.name); + //鍏抽棴褰撳墠frame + layer.close(index); + //淇敼鎴愬姛鍚庡埛鏂扮晫闈� + window.location.reload(); + }); + + } else { + layer.alert(result.code + result.Message, { icon: 5 }); + } + }, error: function () { + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + }) + } + else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒'); + } + } + + + //缂栬緫 + form.on('submit(cmdChange)', function () {//缂栬緫 + var checkStatus = table.checkStatus('mx-table') + , data = checkStatus.data; + var sQty = data[0].HQty.toString(); + var iQty = $('#HQty').val() + $.ajax( + { + type: "Get", + //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/Delete_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + url: GetWEBURL() + "/Kf_BarCodeEditDlg/GetCheckQtyByBarCodeBill", + async: true, + data: { + "HInterID": HInterID, "HBillType": HBillType, "sBatchNo": HBatchNo, "sBarCode": HBarCode, "sSCWhID": HSCWHID + , "sSCSPID": HSCSPID, "sAuxPropID": HAuxPropID, "sMTONo": HMTONo, "iQty": iQty + , "HMaterID": HMaterID, "sWhID": HWhID, "sSPID": HSPID, "HSourceInterID": HSourceInterID + , "HSourceEntryID": HSourceEntryID, "EndQty": EndQty, "sQty": sQty + }, + dataType: "json", + success: function (data) { + if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜� + table.render({ + elem: '#mx-table' + //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' + , url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub" + , where: { + "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID + , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType + }, + cols: [[ + { type: 'radio' } + , { field: 'HSonNo', title: '搴忓彿', width: 100 } + , { field: 'HBarCode', title: '鏉″舰鐮�', width: 200 } + , { field: 'HQty', title: '鏁伴噺', width: 100 } + , { field: 'HBatchNo', title: '鎵规', width: 150 } + , { field: 'HMTONo', title: '璁″垝璺熻釜鍗曞彿', width: 150 } + ]] + // , data: [linterid] + }); + alert("缂栬緫鎴愬姛锛�"); + } + else { + layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }, + error: function (err) { + layer.msg('閿欒' + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }); + } + + layer.open({ + type: 2 + , area: ['100%', '100%'] + , title: '鏄庣粏鍒楄〃' + , shade: 0.6 //閬僵閫忔槑搴� + , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 + , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� + , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType= ' + HBillType + '&HBarCode= ' + HBarCode + '' + , 'yes'] + , resize: false + , cancel: function () { + //$(".layui-btn").removeClass("layui-btn-disabled"); + } + }) + } else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒'); + } + }) + + + }); + </script> +</body> +</html> diff --git "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\345\205\266\344\273\226\051/Kf_BarCodeEditDlg.html" "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\345\205\266\344\273\226\051/Kf_BarCodeEditDlg.html" new file mode 100644 index 0000000..4bdb342 --- /dev/null +++ "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\345\205\266\344\273\226\051/Kf_BarCodeEditDlg.html" @@ -0,0 +1,268 @@ +锘�<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <title>鏄庣粏缂栬緫</title> + <meta name="renderer" content="webkit"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> + <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all"> + <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all"> +</head> +<body> + <div class="layui-fluid"> + <div class="layui-card" style="padding: 1%"> + <div class="layui-card-body" style="padding: 15px;"> + <form class="layui-form" action="" lay-filter="component-form-group"> + <div class="layui-form-item"> + <label class="layui-form-label">鏁伴噺</label> + <div class="layui-input-inline"> + <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" style="width:100%" class="layui-input"> + </div> + </div> + <div class="layui-tab"> + <ul class="layui-tab-title" lay-filter="tab-all"> + <li lay-id="1">鏉$爜鏄庣粏</li> + <li lay-id="2">鏉$爜妗f</li> + </ul> + <div class="layui-tab-content"> + <div class="layui-tab-item layui-show"> + <table class="layui-hide" id="mx-table" lay-filter="mx-table"></table> + <div class="layui-card-header"></div> + <div class="layui-form-item"> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdChange">璋冩暣</button> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDel">鍒犻櫎</button> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">閫�鍑�</button> + </div> + </div> + <div class="layui-tab-item"> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">鏉″舰鐮�</label> + <div class="layui-input-inline"> + <input type="text" name="HBarcode" id="HBarcode" lay-verify="HBarcode" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">鐗╂枡妗f</label> + <div class="layui-input-inline"> + <input type="text" name="HM" id="HM" lay-verify="HM" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">寰�鏉ュ崟浣�</label> + <div class="layui-input-inline"> + <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input"> + <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" autocomplete="off" class="layui-input"> + </div> + + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">閮ㄩ棬</label> + <div class="layui-input-inline"> + <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input"> + <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">浠撳簱</label> + <div class="layui-input-inline mobile"> + <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input"> + <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">浠撲綅</label> + <div class="layui-input-inline mobile"> + <input type="text" name="HSCWHNAME" id="HSCWHNAME" lay-verify="HSCWHNAME" autocomplete="off" class="layui-input"> + <input type="hidden" name="HSCWID" id="HSCWID" lay-verify="HSCWID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item" style="margin-bottom: 20px;"> + <button type="button" lay-submit="" class="layui-btn" lay-filter="button1">杩斿洖</button> + </div> + </div> + </div> + </div> + </form> + </div> + </div> + </div> + <script src="../../../layuiadmin/layui/layui.js"></script> + <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script> + <script src="../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> + <script> + function getUrlVars() { + var vars = [], hash; + var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); + for (var i = 0; i < hashes.length; i++) { + hash = hashes[i].split('='); + vars.push(hash[0]); + vars[hash[0]] = hash[1]; + } + return vars; + } + //鑾峰彇椤甸潰璺宠浆鍙傛暟 + var params = get_UrlVars(); + if (typeof (params[params[0]]) == "undefined") { + var OperationType = 1;//鎿嶄綔绫诲瀷 + } else { + var HInterID = params[params[0]];//鍗曟嵁ID + var HMaterID = params[params[1]];//鐗╂枡ID + var HAuxPropID = params[params[2]];//杈呭姪灞炴�� + var HMTONo = params[params[3]];//璁″垝璺熻釜鍙� + var HWhID = params[params[4]];//浠撳簱ID + var HSPID = params[params[5]];//浠撲綅ID + var HSCWHID = params[params[6]];//璋冨嚭浠撳簱ID + var HSCSPID = params[params[7]];//璋冨嚭浠撲綅ID + var HBatchNo = params[params[8]];//鎵规 + var HSourceInterID = params[params[9]];//婧愬崟涓籌D + var HSourceEntryID = params[params[10]];//婧愬崟瀛怚D + var HBillType = params[params[11]];//鍗曟嵁绫诲瀷 + var HBarCode = params[params[12]];//鏉$爜 + } + + layui.config({ + base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰� + }).extend({ + index: 'lib/index' //涓诲叆鍙fā鍧� + }).use(['index', 'form', 'table'], function () { + var $ = layui.$ + , admin = layui.admin + , layer = layui.layer + , table = layui.table + , form = layui.form; + + + table.render({ + elem: '#mx-table' + //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' + ,url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub" + , where: { + "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID + , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType + }, + cols: [[ + { type: 'radio' } + , { field: 'HSonNo', title: '搴忓彿', width: 100 } + , { field: 'HBarCode', title: '鏉″舰鐮�', width: 200 } + , { field: 'HQty', title: '鏁伴噺', width: 100 } + , { field: 'HBatchNo', title: '鎵规', width: 150 } + , { field: 'HMTONo', title: '璁″垝璺熻釜鍗曞彿', width: 150 } + ]] + // , data: [linterid] + }); + + + //#region 鍒犻櫎 + function set_DeleteBill() { + var checkStatus = table.checkStatus('mx-table') + , data = checkStatus.data; + if (checkStatus.data.length === 1) { + var HBarCode = data[0].HBarCode.toString(); + //閫昏緫鍒犻櫎鏂规硶 + layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) { + $.ajax({ + type: "GET", + url: GetWEBURL() + "Kf_BarCodeEditDlg/DeltetBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + data: { "HInterID": HInterID, "HBarCode": HBarCode, "HBillType": HBillType }, + success: function (result) { + if (result.count == 1) { + layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { + // 寰楀埌frame绱㈠紩 + var index = layer.getFrameIndex(window.name); + //鍏抽棴褰撳墠frame + layer.close(index); + //淇敼鎴愬姛鍚庡埛鏂扮晫闈� + window.location.reload(); + }); + + } else { + layer.alert(result.code + result.Message, { icon: 5 }); + } + }, error: function () { + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + }) + } + else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒'); + } + } + + + //缂栬緫 + form.on('submit(cmdChange)', function () {//缂栬緫 + var checkStatus = table.checkStatus('mx-table') + , data = checkStatus.data; + var sQty = data[0].HQty.toString(); + var iQty = $('#HQty').val() + $.ajax( + { + type: "Get", + //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/Delete_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + url: GetWEBURL() + "/Kf_BarCodeEditDlg/GetCheckQtyByBarCodeBill", + async: true, + data: { + "HInterID": HInterID, "HBillType": HBillType, "sBatchNo": HBatchNo, "sBarCode": HBarCode, "sSCWhID": HSCWHID + , "sSCSPID": HSCSPID, "sAuxPropID": HAuxPropID, "sMTONo": HMTONo, "iQty": iQty + , "HMaterID": HMaterID, "sWhID": HWhID, "sSPID": HSPID, "HSourceInterID": HSourceInterID + , "HSourceEntryID": HSourceEntryID, "EndQty": EndQty, "sQty": sQty + }, + dataType: "json", + success: function (data) { + if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜� + table.render({ + elem: '#mx-table' + //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' + , url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub" + , where: { + "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID + , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType + }, + cols: [[ + { type: 'radio' } + , { field: 'HSonNo', title: '搴忓彿', width: 100 } + , { field: 'HBarCode', title: '鏉″舰鐮�', width: 200 } + , { field: 'HQty', title: '鏁伴噺', width: 100 } + , { field: 'HBatchNo', title: '鎵规', width: 150 } + , { field: 'HMTONo', title: '璁″垝璺熻釜鍗曞彿', width: 150 } + ]] + // , data: [linterid] + }); + alert("缂栬緫鎴愬姛锛�"); + } + else { + layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }, + error: function (err) { + layer.msg('閿欒' + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }); + } + + layer.open({ + type: 2 + , area: ['100%', '100%'] + , title: '鏄庣粏鍒楄〃' + , shade: 0.6 //閬僵閫忔槑搴� + , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 + , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� + , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType= ' + HBillType + '&HBarCode= ' + HBarCode + '' + , 'yes'] + , resize: false + , cancel: function () { + //$(".layui-btn").removeClass("layui-btn-disabled"); + } + }) + } else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒'); + } + }) + + + }); + </script> +</body> +</html> diff --git "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\351\233\206\344\275\223\051/Kf_BarCodeEditDlg.html" "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\351\233\206\344\275\223\051/Kf_BarCodeEditDlg.html" new file mode 100644 index 0000000..4bdb342 --- /dev/null +++ "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\345\267\245\350\265\204\347\273\223\347\256\227\345\215\225\050\351\233\206\344\275\223\051/Kf_BarCodeEditDlg.html" @@ -0,0 +1,268 @@ +锘�<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <title>鏄庣粏缂栬緫</title> + <meta name="renderer" content="webkit"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> + <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all"> + <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all"> +</head> +<body> + <div class="layui-fluid"> + <div class="layui-card" style="padding: 1%"> + <div class="layui-card-body" style="padding: 15px;"> + <form class="layui-form" action="" lay-filter="component-form-group"> + <div class="layui-form-item"> + <label class="layui-form-label">鏁伴噺</label> + <div class="layui-input-inline"> + <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" style="width:100%" class="layui-input"> + </div> + </div> + <div class="layui-tab"> + <ul class="layui-tab-title" lay-filter="tab-all"> + <li lay-id="1">鏉$爜鏄庣粏</li> + <li lay-id="2">鏉$爜妗f</li> + </ul> + <div class="layui-tab-content"> + <div class="layui-tab-item layui-show"> + <table class="layui-hide" id="mx-table" lay-filter="mx-table"></table> + <div class="layui-card-header"></div> + <div class="layui-form-item"> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdChange">璋冩暣</button> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDel">鍒犻櫎</button> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">閫�鍑�</button> + </div> + </div> + <div class="layui-tab-item"> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">鏉″舰鐮�</label> + <div class="layui-input-inline"> + <input type="text" name="HBarcode" id="HBarcode" lay-verify="HBarcode" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">鐗╂枡妗f</label> + <div class="layui-input-inline"> + <input type="text" name="HM" id="HM" lay-verify="HM" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">寰�鏉ュ崟浣�</label> + <div class="layui-input-inline"> + <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input"> + <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" autocomplete="off" class="layui-input"> + </div> + + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">閮ㄩ棬</label> + <div class="layui-input-inline"> + <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input"> + <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">浠撳簱</label> + <div class="layui-input-inline mobile"> + <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input"> + <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">浠撲綅</label> + <div class="layui-input-inline mobile"> + <input type="text" name="HSCWHNAME" id="HSCWHNAME" lay-verify="HSCWHNAME" autocomplete="off" class="layui-input"> + <input type="hidden" name="HSCWID" id="HSCWID" lay-verify="HSCWID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item" style="margin-bottom: 20px;"> + <button type="button" lay-submit="" class="layui-btn" lay-filter="button1">杩斿洖</button> + </div> + </div> + </div> + </div> + </form> + </div> + </div> + </div> + <script src="../../../layuiadmin/layui/layui.js"></script> + <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script> + <script src="../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> + <script> + function getUrlVars() { + var vars = [], hash; + var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); + for (var i = 0; i < hashes.length; i++) { + hash = hashes[i].split('='); + vars.push(hash[0]); + vars[hash[0]] = hash[1]; + } + return vars; + } + //鑾峰彇椤甸潰璺宠浆鍙傛暟 + var params = get_UrlVars(); + if (typeof (params[params[0]]) == "undefined") { + var OperationType = 1;//鎿嶄綔绫诲瀷 + } else { + var HInterID = params[params[0]];//鍗曟嵁ID + var HMaterID = params[params[1]];//鐗╂枡ID + var HAuxPropID = params[params[2]];//杈呭姪灞炴�� + var HMTONo = params[params[3]];//璁″垝璺熻釜鍙� + var HWhID = params[params[4]];//浠撳簱ID + var HSPID = params[params[5]];//浠撲綅ID + var HSCWHID = params[params[6]];//璋冨嚭浠撳簱ID + var HSCSPID = params[params[7]];//璋冨嚭浠撲綅ID + var HBatchNo = params[params[8]];//鎵规 + var HSourceInterID = params[params[9]];//婧愬崟涓籌D + var HSourceEntryID = params[params[10]];//婧愬崟瀛怚D + var HBillType = params[params[11]];//鍗曟嵁绫诲瀷 + var HBarCode = params[params[12]];//鏉$爜 + } + + layui.config({ + base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰� + }).extend({ + index: 'lib/index' //涓诲叆鍙fā鍧� + }).use(['index', 'form', 'table'], function () { + var $ = layui.$ + , admin = layui.admin + , layer = layui.layer + , table = layui.table + , form = layui.form; + + + table.render({ + elem: '#mx-table' + //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' + ,url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub" + , where: { + "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID + , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType + }, + cols: [[ + { type: 'radio' } + , { field: 'HSonNo', title: '搴忓彿', width: 100 } + , { field: 'HBarCode', title: '鏉″舰鐮�', width: 200 } + , { field: 'HQty', title: '鏁伴噺', width: 100 } + , { field: 'HBatchNo', title: '鎵规', width: 150 } + , { field: 'HMTONo', title: '璁″垝璺熻釜鍗曞彿', width: 150 } + ]] + // , data: [linterid] + }); + + + //#region 鍒犻櫎 + function set_DeleteBill() { + var checkStatus = table.checkStatus('mx-table') + , data = checkStatus.data; + if (checkStatus.data.length === 1) { + var HBarCode = data[0].HBarCode.toString(); + //閫昏緫鍒犻櫎鏂规硶 + layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) { + $.ajax({ + type: "GET", + url: GetWEBURL() + "Kf_BarCodeEditDlg/DeltetBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + data: { "HInterID": HInterID, "HBarCode": HBarCode, "HBillType": HBillType }, + success: function (result) { + if (result.count == 1) { + layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { + // 寰楀埌frame绱㈠紩 + var index = layer.getFrameIndex(window.name); + //鍏抽棴褰撳墠frame + layer.close(index); + //淇敼鎴愬姛鍚庡埛鏂扮晫闈� + window.location.reload(); + }); + + } else { + layer.alert(result.code + result.Message, { icon: 5 }); + } + }, error: function () { + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + }) + } + else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒'); + } + } + + + //缂栬緫 + form.on('submit(cmdChange)', function () {//缂栬緫 + var checkStatus = table.checkStatus('mx-table') + , data = checkStatus.data; + var sQty = data[0].HQty.toString(); + var iQty = $('#HQty').val() + $.ajax( + { + type: "Get", + //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/Delete_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + url: GetWEBURL() + "/Kf_BarCodeEditDlg/GetCheckQtyByBarCodeBill", + async: true, + data: { + "HInterID": HInterID, "HBillType": HBillType, "sBatchNo": HBatchNo, "sBarCode": HBarCode, "sSCWhID": HSCWHID + , "sSCSPID": HSCSPID, "sAuxPropID": HAuxPropID, "sMTONo": HMTONo, "iQty": iQty + , "HMaterID": HMaterID, "sWhID": HWhID, "sSPID": HSPID, "HSourceInterID": HSourceInterID + , "HSourceEntryID": HSourceEntryID, "EndQty": EndQty, "sQty": sQty + }, + dataType: "json", + success: function (data) { + if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜� + table.render({ + elem: '#mx-table' + //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' + , url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub" + , where: { + "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID + , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType + }, + cols: [[ + { type: 'radio' } + , { field: 'HSonNo', title: '搴忓彿', width: 100 } + , { field: 'HBarCode', title: '鏉″舰鐮�', width: 200 } + , { field: 'HQty', title: '鏁伴噺', width: 100 } + , { field: 'HBatchNo', title: '鎵规', width: 150 } + , { field: 'HMTONo', title: '璁″垝璺熻釜鍗曞彿', width: 150 } + ]] + // , data: [linterid] + }); + alert("缂栬緫鎴愬姛锛�"); + } + else { + layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }, + error: function (err) { + layer.msg('閿欒' + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }); + } + + layer.open({ + type: 2 + , area: ['100%', '100%'] + , title: '鏄庣粏鍒楄〃' + , shade: 0.6 //閬僵閫忔槑搴� + , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 + , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� + , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType= ' + HBillType + '&HBarCode= ' + HBarCode + '' + , 'yes'] + , resize: false + , cancel: function () { + //$(".layui-btn").removeClass("layui-btn-disabled"); + } + }) + } else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒'); + } + }) + + + }); + </script> +</body> +</html> diff --git "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Kf_BarCodeEditDlg.html" "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Kf_BarCodeEditDlg.html" new file mode 100644 index 0000000..4bdb342 --- /dev/null +++ "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Kf_BarCodeEditDlg.html" @@ -0,0 +1,268 @@ +锘�<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <title>鏄庣粏缂栬緫</title> + <meta name="renderer" content="webkit"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> + <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all"> + <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all"> +</head> +<body> + <div class="layui-fluid"> + <div class="layui-card" style="padding: 1%"> + <div class="layui-card-body" style="padding: 15px;"> + <form class="layui-form" action="" lay-filter="component-form-group"> + <div class="layui-form-item"> + <label class="layui-form-label">鏁伴噺</label> + <div class="layui-input-inline"> + <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" style="width:100%" class="layui-input"> + </div> + </div> + <div class="layui-tab"> + <ul class="layui-tab-title" lay-filter="tab-all"> + <li lay-id="1">鏉$爜鏄庣粏</li> + <li lay-id="2">鏉$爜妗f</li> + </ul> + <div class="layui-tab-content"> + <div class="layui-tab-item layui-show"> + <table class="layui-hide" id="mx-table" lay-filter="mx-table"></table> + <div class="layui-card-header"></div> + <div class="layui-form-item"> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdChange">璋冩暣</button> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDel">鍒犻櫎</button> + <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">閫�鍑�</button> + </div> + </div> + <div class="layui-tab-item"> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">鏉″舰鐮�</label> + <div class="layui-input-inline"> + <input type="text" name="HBarcode" id="HBarcode" lay-verify="HBarcode" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">鐗╂枡妗f</label> + <div class="layui-input-inline"> + <input type="text" name="HM" id="HM" lay-verify="HM" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">寰�鏉ュ崟浣�</label> + <div class="layui-input-inline"> + <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input"> + <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" autocomplete="off" class="layui-input"> + </div> + + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">閮ㄩ棬</label> + <div class="layui-input-inline"> + <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input"> + <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">浠撳簱</label> + <div class="layui-input-inline mobile"> + <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input"> + <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">浠撲綅</label> + <div class="layui-input-inline mobile"> + <input type="text" name="HSCWHNAME" id="HSCWHNAME" lay-verify="HSCWHNAME" autocomplete="off" class="layui-input"> + <input type="hidden" name="HSCWID" id="HSCWID" lay-verify="HSCWID" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item" style="margin-bottom: 20px;"> + <button type="button" lay-submit="" class="layui-btn" lay-filter="button1">杩斿洖</button> + </div> + </div> + </div> + </div> + </form> + </div> + </div> + </div> + <script src="../../../layuiadmin/layui/layui.js"></script> + <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script> + <script src="../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> + <script> + function getUrlVars() { + var vars = [], hash; + var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); + for (var i = 0; i < hashes.length; i++) { + hash = hashes[i].split('='); + vars.push(hash[0]); + vars[hash[0]] = hash[1]; + } + return vars; + } + //鑾峰彇椤甸潰璺宠浆鍙傛暟 + var params = get_UrlVars(); + if (typeof (params[params[0]]) == "undefined") { + var OperationType = 1;//鎿嶄綔绫诲瀷 + } else { + var HInterID = params[params[0]];//鍗曟嵁ID + var HMaterID = params[params[1]];//鐗╂枡ID + var HAuxPropID = params[params[2]];//杈呭姪灞炴�� + var HMTONo = params[params[3]];//璁″垝璺熻釜鍙� + var HWhID = params[params[4]];//浠撳簱ID + var HSPID = params[params[5]];//浠撲綅ID + var HSCWHID = params[params[6]];//璋冨嚭浠撳簱ID + var HSCSPID = params[params[7]];//璋冨嚭浠撲綅ID + var HBatchNo = params[params[8]];//鎵规 + var HSourceInterID = params[params[9]];//婧愬崟涓籌D + var HSourceEntryID = params[params[10]];//婧愬崟瀛怚D + var HBillType = params[params[11]];//鍗曟嵁绫诲瀷 + var HBarCode = params[params[12]];//鏉$爜 + } + + layui.config({ + base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰� + }).extend({ + index: 'lib/index' //涓诲叆鍙fā鍧� + }).use(['index', 'form', 'table'], function () { + var $ = layui.$ + , admin = layui.admin + , layer = layui.layer + , table = layui.table + , form = layui.form; + + + table.render({ + elem: '#mx-table' + //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' + ,url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub" + , where: { + "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID + , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType + }, + cols: [[ + { type: 'radio' } + , { field: 'HSonNo', title: '搴忓彿', width: 100 } + , { field: 'HBarCode', title: '鏉″舰鐮�', width: 200 } + , { field: 'HQty', title: '鏁伴噺', width: 100 } + , { field: 'HBatchNo', title: '鎵规', width: 150 } + , { field: 'HMTONo', title: '璁″垝璺熻釜鍗曞彿', width: 150 } + ]] + // , data: [linterid] + }); + + + //#region 鍒犻櫎 + function set_DeleteBill() { + var checkStatus = table.checkStatus('mx-table') + , data = checkStatus.data; + if (checkStatus.data.length === 1) { + var HBarCode = data[0].HBarCode.toString(); + //閫昏緫鍒犻櫎鏂规硶 + layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) { + $.ajax({ + type: "GET", + url: GetWEBURL() + "Kf_BarCodeEditDlg/DeltetBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + data: { "HInterID": HInterID, "HBarCode": HBarCode, "HBillType": HBillType }, + success: function (result) { + if (result.count == 1) { + layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { + // 寰楀埌frame绱㈠紩 + var index = layer.getFrameIndex(window.name); + //鍏抽棴褰撳墠frame + layer.close(index); + //淇敼鎴愬姛鍚庡埛鏂扮晫闈� + window.location.reload(); + }); + + } else { + layer.alert(result.code + result.Message, { icon: 5 }); + } + }, error: function () { + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + }) + } + else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒'); + } + } + + + //缂栬緫 + form.on('submit(cmdChange)', function () {//缂栬緫 + var checkStatus = table.checkStatus('mx-table') + , data = checkStatus.data; + var sQty = data[0].HQty.toString(); + var iQty = $('#HQty').val() + $.ajax( + { + type: "Get", + //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/Delete_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + url: GetWEBURL() + "/Kf_BarCodeEditDlg/GetCheckQtyByBarCodeBill", + async: true, + data: { + "HInterID": HInterID, "HBillType": HBillType, "sBatchNo": HBatchNo, "sBarCode": HBarCode, "sSCWhID": HSCWHID + , "sSCSPID": HSCSPID, "sAuxPropID": HAuxPropID, "sMTONo": HMTONo, "iQty": iQty + , "HMaterID": HMaterID, "sWhID": HWhID, "sSPID": HSPID, "HSourceInterID": HSourceInterID + , "HSourceEntryID": HSourceEntryID, "EndQty": EndQty, "sQty": sQty + }, + dataType: "json", + success: function (data) { + if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜� + table.render({ + elem: '#mx-table' + //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub' + , url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub" + , where: { + "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID + , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType + }, + cols: [[ + { type: 'radio' } + , { field: 'HSonNo', title: '搴忓彿', width: 100 } + , { field: 'HBarCode', title: '鏉″舰鐮�', width: 200 } + , { field: 'HQty', title: '鏁伴噺', width: 100 } + , { field: 'HBatchNo', title: '鎵规', width: 150 } + , { field: 'HMTONo', title: '璁″垝璺熻釜鍗曞彿', width: 150 } + ]] + // , data: [linterid] + }); + alert("缂栬緫鎴愬姛锛�"); + } + else { + layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }, + error: function (err) { + layer.msg('閿欒' + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }); + } + + layer.open({ + type: 2 + , area: ['100%', '100%'] + , title: '鏄庣粏鍒楄〃' + , shade: 0.6 //閬僵閫忔槑搴� + , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 + , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� + , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType= ' + HBillType + '&HBarCode= ' + HBarCode + '' + , 'yes'] + , resize: false + , cancel: function () { + //$(".layui-btn").removeClass("layui-btn-disabled"); + } + }) + } else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒'); + } + }) + + + }); + </script> +</body> +</html> diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\345\217\221\345\207\272\345\215\225/Cj_StationEntrustInBill_Mul.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\345\217\221\345\207\272\345\215\225/Cj_StationEntrustInBill_Mul.html" new file mode 100644 index 0000000..7dbf93f --- /dev/null +++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\345\217\221\345\207\272\345\215\225/Cj_StationEntrustInBill_Mul.html" @@ -0,0 +1,718 @@ +锘�<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8" /> + <title>宸ュ簭濮斿鍙戝嚭鍗曟壒閲�</title> + <meta name="renderer" content="webkit"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> + <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> + <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> + <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> + <script src="../../../layuiadmin/layui/layui.js"></script> + <script src="../../../layuiadmin/Scripts/json2.js"></script> + <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> + <script src="../../../layuiadmin/Scripts/webConfig.js"></script> + <script src="../../../layuiadmin/PubCustom.js"></script> + <style> + .layui-form-item .layui-inline { + margin-right: 0; + } + </style> +</head> +<body> + <div class="layui-fluid" style="padding: 0;"> + <div class="layui-card" style="padding: 15px;"> + <div class="layui-card-body" style="padding: 1px;"> + <form class="layui-form" lay-filter="component-form-group" action=""> + <div class="layui-card-header"> + <div class="layui-btn-group"> + <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Cancel">閫�鍑�</button> + <button type="button" id="set_SaveBarCode" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_SaveBarCode" style="display:none;">鎵爜淇濆瓨</button> + </div> + </div> + <div class="layui-form-item" style="padding-top: 10px;"> + <div class="layui-row"> + <div class="layui-col-xs4 layui-inline"> + <h2>宸ュ簭濮斿鍙戝嚭鍗�(鎵归噺)</h2> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label"><span style="color:red;">*</span>娴佹按鍙�</label> + <div class="layui-input-inline"> + <input type="text" name="HProcNo" id="HProcNo" placeholder="璇疯緭鍏ユ祦姘村彿" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-inline"> + <h2 style="float: left;">宸茶繘绔�</h2> + <input type="text" name="HqtyBill" id="HqtyBill" value="0" style="width: 30px; border: none; text-align: center; font-size: 24px; "> + <h2 style="float: right;">寮犲崟鎹�</h2> + </div> + </div> + <div class="layui-row"> + <div class="layui-col-xs4 layui-inline"> + <h2></h2> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">鏉″舰鐮�</label> + <div class="layui-input-inline"> + <input type="text" name="HBarCode" id="HBarCode" placeholder="璇疯緭鍏ュ悗鍥炶溅" autocomplete="off" class="layui-input"> + </div> + </div> + </div> + </div> + <div class="layui-tab" lay-filter=""> + <ul class="layui-tab-title" lay-filter="tab-all"> + <li lay-id="1" style="padding:1px;" class="layui-this">鍩烘湰淇℃伅</li> + <li lay-id="2" style="padding:1px;">鍒跺崟淇℃伅</li> + </ul> + <div class="layui-tab-content"> + <!--鍩烘湰淇℃伅--> + <div class="layui-tab-item layui-show"> + <div class="layui-form-item" style="padding-top: 10px;"> + <div class="layui-row"> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label"><span style="color:red;">*</span>涓诲崟鎹彿</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HMainBillNo" id="HMainBillNo" style="background-color:#efefef4d;" readonly> + <input type="hidden" name="HMainInterID" id="HMainInterID" value="0"> + </div> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label"><span style="color:red;">*</span>鍗曟嵁鏃ユ湡</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HDate" id="HDate" style="background-color:#efefef4d;" readonly> + </div> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label"><span style="color:red;">*</span>鎺ユ敹鏁伴噺</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HQty" id="HQty"> + </div> + </div> + </div> + <div class="layui-row"> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label"><span style="color:red;">*</span>鐢熶骇璧勬簮</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HSourceName" id="HSourceName" onmouseover="this.title=this.value" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> + <input type="hidden" name="HSourceID" id="HSourceID" value="0"> + <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="get_checkSource" id="get_checkSource" style="width: 40px;"> + <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> + </button> + </div> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label"><span style="color:red;">*</span>鐢熶骇鐝粍</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HGroupName" id="HGroupName" onmouseover="this.title=this.value" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> + <input type="hidden" name="HGroupID" id="HGroupID" value="0"> + <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="get_checkGroup" id="get_checkGroup" style="width: 40px;"> + <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> + </button> + </div> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label"><span style="color:red;">*</span>鎺ユ敹浜�</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HEmpName" id="HEmpName" onmouseover="this.title=this.value" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> + <input type="hidden" name="HEmpID" id="HEmpID" value="0"> + <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="get_checkEmp" id="get_checkEmp" style="width: 40px;"> + <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> + </button> + </div> + </div> + </div> + <div class="layui-row"> + <div class="layui-col-xs8 layui-inline"> + <label class="layui-form-label">澶囨敞</label> + <div class="layui-input-block"> + <input class="layui-input" name="HRemark" id="HRemark" autocomplete="off" style=" width: 75%;"> + </div> + </div> + </div> + </div> + </div> + <!--鍒跺崟淇℃伅--> + <div class="layui-tab-item"> + <div class="layui-form-item"> + <div class="layui-row"> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">鍒跺崟浜�</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly> + </div> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">瀹℃牳浜�</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly> + </div> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">鍏抽棴浜�</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly> + </div> + </div> + </div> + <div class="layui-row"> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">鍒跺崟鏃ユ湡</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly> + </div> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">瀹℃牳鏃ユ湡</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly> + </div> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">鍏抽棴鏃ユ湡</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly> + </div> + </div> + </div> + <div class="layui-row"> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">淇敼浜�</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly> + </div> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">浣滃簾浜�</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> + </div> + </div> + </div> + <div class="layui-row"> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">淇敼鏃ユ湡</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly> + </div> + </div> + <div class="layui-col-xs4 layui-inline"> + <label class="layui-form-label">浣滃簾鏃ユ湡</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly> + </div> + </div> + </div> + </div> + </div> + </div> + </div> + <div class="layui-tab" lay-filter=""> + <ul class="layui-tab-title" lay-filter="tab-all"> + <li lay-id="1" style="padding:1px;" class="layui-this">鏄庣粏淇℃伅</li> + </ul> + <div class="layui-tab-content"> + <!--鏄庣粏淇℃伅--> + <div class="layui-tab-item layui-show"> + <div class="layui-form-item"> + <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table> + </div> + </div> + </div> + </div> + <input type="hidden" name="HBillNo" id="HBillNo" value=""> + <input type="hidden" name="HInterID" id="HInterID" value="0"> + <input type="hidden" name="lngBillSubKey" id="lngBillSubKey" value="0"> + <input type="hidden" name="HICMOInterID" id="HICMOInterID" value="0"> + <input type="hidden" name="lngICMOEntryID" id="lngICMOEntryID" value="0"> + <input type="hidden" name="HICMOBillNo" id="HICMOBillNo" value=""> + <input type="hidden" name="HMaterID" id="HMaterID" value="0"> + <input type="hidden" name="HMaterName" id="HMaterName" value=""> + <input type="hidden" name="HMaterNumber" id="HMaterNumber" value=""> + <input type="hidden" name="HMaterModel" id="HMaterModel" value=""> + <input type="hidden" name="HPieceQty" id="HPieceQty" value="0"> + <input type="hidden" name="HPlanQty" id="HPlanQty" value="0"> + <input type="hidden" name="HProcExchBillNo" id="HProcExchBillNo" value=""> + <input type="hidden" name="HICMOQty" id="HICMOQty" value="0"> + <input type="hidden" name="lngBillKey" id="lngBillKey" value="0"> + <input type="hidden" name="HOrderProcNO" id="HOrderProcNO" value=""> + <input type="hidden" name="HProcName" id="HProcName" value=""> + <input type="hidden" name="HProcID" id="HProcID" value="0"> + <input type="hidden" name="HCenterName" id="HCenterName" value=""> + <input type="hidden" name="HCenterID" id="HCenterID" value="0"> + <input type="hidden" name="eventType" id="eventType" value="Add"> + </form> + </div> + </div> + </div> + + <script type="text/html" id="barDemo1"> + <!--<a class="layui-btn layui-btn-xs" lay-event="edit">缂栬緫</a>--> + <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">鍒犻櫎</a> + </script> + <script> + + layui.config({ + base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰� + }).extend({ + index: 'lib/index' //涓诲叆鍙fā鍧� + }).use(['index', 'form', 'laydate', 'table', 'element'], function () { + + //#region 鍏敤鍙橀噺 + + var $ = layui.$ + , admin = layui.admin + , layer = layui.layer + , table = layui.table + , form = layui.form + , laydate = layui.laydate + , element = layui.element + , util = layui.util; + var HMainEntryRow = 1;//鍗曟嵁鍙峰悗缂� + var HqtyBill = 0;//杩涚珯鍗曟嵁鏁伴噺 + + //鍒濆琛ㄦ牸鏁版嵁 + var option1 = { + elem: '#mainTable1' + , toolbar: '#toolbarDemo1' + , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲� + , height: 'full-300' + , cellMinWidth: 110 + , totalRow: true + , cols: [[ //琛ㄥご + { type: 'checkbox', totalRowText: '鍚堣琛�' } + , { type: 'numbers', title: '搴忓彿', totalRow: true } + , { field: 'HBillNo', title: '鍗曟嵁鍙�' } + , { field: 'HInterID', title: '鍗曟嵁ID', hide: true } + , { field: 'HQty', title: '鏁伴噺' } + , { field: 'HProcExchBillNo', title: '娴佽浆鍗�' } + , { field: 'HICMOBillNo', title: '鐢熶骇璁㈠崟' } + , { field: 'HMaterNumber', title: '浜у搧浠g爜' } + , { field: 'HMaterName', title: '浜у搧鍚嶇О' } + , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿' } + , { field: 'HSourceName', title: '鐢熶骇璧勬簮' } + , { field: 'HGroupName', title: '鐢熶骇鐝粍' } + , { field: 'HEmpName', title: '鎺ユ敹浜�' } + , { field: 'HMaker', title: '鍒跺崟浜�' } + , { + field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', templet: function (d) { + if (d.HMakeDate == null) { + return ""; + } + return util.toDateString(d.HMakeDate, "yyyy-MM-dd HH:mm:ss"); + } + } + , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo1' } + ]] + , text: { + none: '鏃犳暟鎹紒' + } + }; + //鍒濆鍔犺浇琛ㄦ牸 + option1.data = []; + table.render(option1); + + //#endregion + + + //#region 杩涘叆椤甸潰鍗冲姞杞� + + //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤� + get_LoginIs(); + + //鑾峰彇椤甸潰璺宠浆鍙傛暟 + var params = get_UrlVars(); + if (typeof (params[params[0]]) == "undefined") { + var OperationType = 1;//鎿嶄綔绫诲瀷 + } else { + var OperationType = params[params[0]];//鎿嶄綔绫诲瀷 + var linterid = params[params[1]];//婧愬崟id + var HSouceBillType = params[params[2]];//婧愬崟绫诲瀷 + } + //鍒ゆ柇鎿嶄綔绫诲瀷 + if (OperationType == 1) {//鏃犳簮鍗曟柊澧� + var ajaxLoad = layer.load(); + $.ajax({ + url: GetWEBURL() + "/Web/GetMAXNum", + type: "GET", + data: { "HBillType": '3792' }, + success: function (d) { + //console.log(d.data); + $("#HMainInterID").val(d.data[0].HInterID); + $("#HMainBillNo").val(d.data[0].HBillNo); + $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); + $("#HMakeDate").val(Pub_Format(new Date(), "yyyy-MM-dd hh:mm:ss")); + $("#HMaker").val(sessionStorage["HUserName"]); + layer.close(ajaxLoad); + } + }); + } + else if (OperationType == 2) {//鏈夋簮鍗曟柊澧� + + } + else if (OperationType == 3) {//缂栬緫 + + } + else if (OperationType == 4) {//娴忚 + + } + else { + layer.alert("鏈煡鎿嶄綔绫诲瀷锛�", { icon: 5 }); + } + + //#endregion + + + //#region 瑙﹀彂浜嬩欢锛氬寘鎷琭orm.on(){}鏍煎紡鐨勬墍鏈夌偣鍑讳簨浠躲�侀�夋嫨浜嬩欢绛� + + //#region 閫夋嫨鐢熶骇璧勬簮鎸夐挳 + form.on('submit(get_checkSource)', function () { + get_checkSource(); + }); + //#endregion + + //#region 閫夋嫨鐝粍鎸夐挳 + form.on('submit(get_checkGroup)', function () { + get_checkGroup(); + }); + //#endregion + + //#region 閫夋嫨鎺ユ敹浜烘寜閽� + form.on('submit(get_checkEmp)', function () { + get_checkEmp(); + }); + //#endregion + + //#region 鎵潯褰㈢爜(娴佽浆鍗�) + $('#HBarCode').on('keydown', function (event) { + if (event.keyCode == 13) { + if ($("#HProcNo").val() == "") { + layer.msg("璇疯緭鍏ユ祦姘村彿锛�", { icon: 7 }); + $("#HBarCode").val(""); + return; + } + if ($("#HQty").val() == "") { + layer.msg("璇峰厛濉啓鎺ユ敹鏁伴噺锛�", { icon: 7 }); + $("#HBarCode").val(""); + return; + } + if ($("#HSourceID").val() == 0) { + layer.msg("璇烽�夋嫨鐢熶骇璧勬簮锛�", { icon: 7 }); + $("#HBarCode").val(""); + return; + } + if ($("#HGroupID").val() == 0) { + layer.msg("璇烽�夋嫨鐝粍锛�", { icon: 7 }); + $("#HBarCode").val(""); + return; + } + if ($("#HEmpID").val() == 0) { + layer.msg("璇烽�夋嫨鎺ユ敹浜猴紒", { icon: 7 }); + $("#HBarCode").val(""); + return; + } + txtHBarCode_KeyDown($("#HBarCode").val()); + } + }); + //#endregion + + //#region 鎻愪氦鎸夐挳(淇濆瓨) + form.on('submit(set_SaveBarCode)', function (data) {//鎻愪氦 + var oMain = data.field; + var index = layer.load(); + $.ajax({ + type: "POST", + url: GetWEBURL() + "/Cj_StationInBill/AddBill", + async: true, + data: { "oMain": oMain }, + dataType: "json", + success: function (result) { + if (result.count == 1) { + layer.close(index); + layer.msg("鎵爜杩涚珯鎴愬姛锛�", { icon: 6 }); + $("#HBarCode").val(""); + HMainEntryRow++; + HqtyBill++; + $("#HqtyBill").val(HqtyBill); + //鍔犺浇鏄庣粏淇℃伅 + get_BarCodeDetail(); + } + else { + layer.close(index); + layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }, + error: function (err) { + layer.close(index); + layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }); + }); + //#endregion + + //#region 閫�鍑烘寜閽� + form.on('submit(Cancel)', function () { + layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) { + if (OperationType == 1) { + Pub_Close(2); + } else if (OperationType == 2) { + Pub_Close(1); + } + }); + }) + //#endregion + + //#region 琛屽唴浜嬩欢 + table.on('tool(mainTable1)', function (obj) { + var rowData = obj.data; + //鍒犻櫎鍗曟嵁 + if (obj.event === 'del') { + layer.confirm('纭畾鍒犻櫎' + rowData.HBillNo + '鍚楋紵', function (index) { + var ajaxLoad = layer.load(); + //閫昏緫鍒犻櫎鏂规硶 + $.ajax({ + url: GetWEBURL() + '/Cj_StationInBill/del_StationInBill', + type: "GET", + data: { "HInterID": rowData.HInterID, "HDeleteMan": sessionStorage["HUserName"] }, + success: function (result) { + if (result.count == 1) { + get_BarCodeDetail(); + HqtyBill--; + $("#HqtyBill").val(HqtyBill); + layer.close(ajaxLoad); + layer.alert(result.Message, { icon: 6 }); + } else { + layer.close(ajaxLoad); + layer.alert(result.Message, { icon: 5 }); + } + }, error: function () { + layer.close(ajaxLoad); + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + layer.close(index); + }); + } + }); + //#endregion + + //#region 娴佹按鍙峰洖杞︽柟娉� + $('#HProcNo').on('keydown', function (event) { + if (event.keyCode == 13) { + $("#HProcNo").attr("readonly", "readonly"); + $("#HProcNo").css("background-color", "#efefef4d"); + $("#HBarCode").focus(); + } + }); + //#endregion + + //#endregion + + + //#region 鏈〉闈㈡墍鏈夎璋冪敤鐨勬柟娉� + + //#region 鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤� + function get_LoginIs() { + if (sessionStorage.login != "login") { + layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", { + icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍'] + }, function () { window.location.href = "../../user/login.html"; }); + } + } + //#endregion + + //#region 閫夋嫨鐢熶骇璧勬簮鏂规硶 + function get_checkSource() { + layer.open({ + type: 2//寮圭獥绫诲瀷 + , skin: 'layui-layer-rim' //鍔犱笂杈规 + , area: ['90%', '90%']//澶у皬 + , title: '鐢熶骇璧勬簮鍒楄〃'//鏍囬 + , shift: 2//寮瑰嚭鍔ㄧ敾 + , content: ['../../PublicPage/SourceInformation.html', 'yes'] + , btn: ['纭畾', '鍙栨秷'] + , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟 + var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰 + var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test" + if (checkStatus.data.length === 0) { + return layer.msg('璇烽�夋嫨鏁版嵁'); + } + $("#HSourceName").val(checkStatus.data[0].HName); + $("#HSourceID").val(checkStatus.data[0].HItemID); + layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨� + } + , btn2: function (index, layero) { } + }); + } + //#endregion + + //#region 閫夋嫨鐝粍鏂规硶 + function get_checkGroup() { + layer.open({ + type: 2//寮圭獥绫诲瀷 + , skin: 'layui-layer-rim' //鍔犱笂杈规 + , area: ['90%', '90%']//澶у皬 + , title: '鐝粍鍒楄〃'//鏍囬 + , shift: 2//寮瑰嚭鍔ㄧ敾 + , content: ['../../PublicPage/GroupInformation.html', 'yes'] + , btn: ['纭畾', '鍙栨秷'] + , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟 + var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰 + var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test" + if (checkStatus.data.length === 0) { + return layer.msg('璇烽�夋嫨鏁版嵁'); + } + $("#HGroupName").val(checkStatus.data[0].HName); + $("#HGroupID").val(checkStatus.data[0].HItemID); + layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨� + } + , btn2: function (index, layero) { } + }) + } + //#endregion + + //#region 閫夋嫨妫�楠屽憳鏂规硶 + function get_checkEmp() { + layer.open({ + type: 2//寮圭獥绫诲瀷 + , skin: 'layui-layer-rim' //鍔犱笂杈规 + , area: ['90%', '90%']//澶у皬 + , title: '妫�楠屽憳鍒楄〃'//鏍囬 + , shift: 2//寮瑰嚭鍔ㄧ敾 + , content: ['../../PublicPage/UserInformation.html', 'yes'] + , btn: ['纭畾', '鍙栨秷'] + , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟 + var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰 + var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test" + if (checkStatus.data.length === 0) { + return layer.msg('璇烽�夋嫨鏁版嵁'); + } + $("#HEmpName").val(checkStatus.data[0].HName); + $("#HEmpID").val(checkStatus.data[0].HItemID); + layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨� + } + , btn2: function (index, layero) { } + }) + } + //#endregion + + //#region 鎵爜淇濆瓨鍚庤皟鐢ㄧ殑鏄剧ず鏄庣粏淇℃伅鏂规硶 + function get_BarCodeDetail() { + var ajaxLoad = layer.load(); + $.ajax({ + url: GetWEBURL() + '/Cj_StationInBill/get_BarCodeDetail', + type: "GET", + data: { "HMainInterID": $("#HMainInterID").val() }, + success: function (data1) { + if (data1.count == 1) { + option1.data = data1.data; + table.render(option1); + layer.close(ajaxLoad); + } else { + option1.data = []; + table.render(option1); + layer.close(ajaxLoad); + } + }, error: function () { + layer.close(ajaxLoad); + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + } + //#endregion + + //#region 鑾峰彇娴佽浆鍗′俊鎭� + function txtHBarCode_KeyDown(HBarCode) { + var index = layer.load(); + $.ajax({ + url: GetWEBURL() + "/Cj_StationEntrustInBill/txtHBarCode_KeyDown", + type: "GET", + data: { "HBarCode": HBarCode }, + success: function (result) { + if (result.count == 1) { + var data = result.data[0]; + $("#HICMOInterID").val(data.hicmointerid); + $("#lngICMOEntryID").val(data.lngICMOEntryID); + $("#HICMOBillNo").val(data.浠诲姟鍗曞彿); + $("#HMaterID").val(data.HMaterID); + $("#HMaterName").val(data.浜у搧); + $("#HMaterNumber").val(data.浜у搧浠g爜); + $("#HMaterModel").val(data.瑙勬牸鍨嬪彿); + $("#HPieceQty").val(data.娴佽浆鍗℃暟閲�); + $("#HPlanQty").val(data.娴佽浆鍗℃暟閲�); + $("#HProcExchBillNo").val(data.鍗曟嵁鍙�); + $("#HICMOQty").val(data.浠诲姟鍗曟暟閲�); + $("#lngBillKey").val(data.hmainid); + $("#HOrderProcNO").val(data.璁㈠崟璺熻釜鍙�); + layer.close(index); + $("#HProcNo").attr("readonly", "readonly"); + $("#HProcNo").css("background-color", "#efefef4d"); + txtHProcNo_KeyDown(HBarCode, $("#HProcNo").val()); + } + else { + layer.close(index); + layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }, + error: function (err) { + layer.close(index); + layer.msg("鎺ュ彛璇锋眰澶辫触锛�" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }); + } + //#endregion + + //#region 鑾峰彇娴佹按鍙蜂俊鎭� + function txtHProcNo_KeyDown(sBillNo, sProcNo) { + var index = layer.load(); + $.ajax({ + url: GetWEBURL() + "/Cj_StationInBill/txtHProcNo_KeyDown", + type: "GET", + data: { "sBillNo": sBillNo, "sProcNo": sProcNo }, + success: function (result) { + if (result.count == 1) { + var data = result.data[0]; + $("#lngBillSubKey").val(data.hsubid); + $("#HProcName").val(data.宸ュ簭); + $("#HProcID").val(data.HProcID); + $("#HCenterName").val(data.宸ヤ綔涓績); + $("#HCenterID").val(data.HCenterID); + layer.close(index); + //鑾峰彇鍗曟嵁ID + var ajaxLoad = layer.load(); + $.ajax({ + url: GetWEBURL() + "/Web/GetMAXNum", + type: "GET", + data: { "HBillType": '3792' }, + success: function (d) { + //console.log(d.data); + $("#HInterID").val(d.data[0].HInterID); + $("#HBillNo").val($("#HMainBillNo").val() + "-" + HMainEntryRow); + layer.close(ajaxLoad); + //淇濆瓨 + $("#set_SaveBarCode").click(); + } + }); + } + else { + layer.close(index); + layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }, + error: function (err) { + layer.close(index); + layer.msg("鎺ュ彛璇锋眰澶辫触锛�" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" }); + } + }); + } + //#endregion + + //#endregion + + + //浠ヤ笂涓簂ayui妯″潡 + }); + + </script> +</body> +</html> \ No newline at end of file -- Gitblit v1.9.1