From a27bb6a3dde2265ab8c96535ad8895a3459b8f1a Mon Sep 17 00:00:00 2001 From: 王 垚 <1402714037@qq.com> Date: 星期一, 22 十一月 2021 13:41:41 +0800 Subject: [PATCH] 生产退料单 List --- /dev/null | 260 --------------- WebTM/views/领料发货/领料出库/Kf_MateOutBillLEdit.html | 2 WebTM/views/领料发货/领料出库/Kf_MateOutBillList.html | 19 WebTM/views/index.html | 2 WebTM/views/领料发货/领料出库/Kf_MateOutBackBillList.html | 703 +++++++++++++++++++++++++++++++++++++++++ WebTM/WebTM.csproj | 3 6 files changed, 715 insertions(+), 274 deletions(-) diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj index e2b01a5..f2f6b39 100644 --- a/WebTM/WebTM.csproj +++ b/WebTM/WebTM.csproj @@ -822,6 +822,7 @@ <Content Include="views\閿�鍞鐞哱閿�鍞鍗昞Add_Edit_Xs_SeOrderBillList.html" /> <Content Include="views\棰嗘枡鍙戣揣\鏀舵枡鍏ュ簱\Kf_ReciveBill_Fast.html" /> <Content Include="views\棰嗘枡鍙戣揣\棰嗘枡鍑哄簱\Kf_MateOutBillLEdit.html" /> + <Content Include="views\棰嗘枡鍙戣揣\棰嗘枡鍑哄簱\Kf_MateOutBackBillList.html" /> <Content Include="views\楠屾敹鍏ュ簱\浜у搧鍏ュ簱\Kf_ProductInBillList.html" /> <Content Include="views\楠屾敹鍏ュ簱\鍏朵粬鍏ュ簱\Kf_OtherInBillList.html" /> <Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Kf_ProductInBillList.html" /> @@ -894,8 +895,6 @@ <Content Include="views\棰嗘枡鍙戣揣\閿�鍞嚭搴揬Kf_SellOutBill_FastList.html" /> <Content Include="views\棰嗘枡鍙戣揣\閿�鍞嚭搴揬Kf_SellOutBackBill_Fast.html" /> <Content Include="views\棰嗘枡鍙戣揣\閿�鍞嚭搴揬Kf_SellOutBill_Fast.html" /> - <Content Include="views\棰嗘枡鍙戣揣\棰嗘枡鍑哄簱\Kf_MateOutBackBill_Fast.html" /> - <Content Include="views\棰嗘枡鍙戣揣\棰嗘枡鍑哄簱\Kf_MateOutBackBill_FastList.html" /> <Content Include="views\棰嗘枡鍙戣揣\棰嗘枡鍑哄簱\Kf_MateOutBill_Fast.html" /> <Content Include="views\棰嗘枡鍙戣揣\棰嗘枡鍑哄簱\Kf_MateOutBill_FastList.html" /> <Content Include="views\楠屾敹鍏ュ簱\浜у搧鍏ュ簱\Kf_ProductInBackBillList.html" /> diff --git a/WebTM/views/index.html b/WebTM/views/index.html index 201712e..2b38121 100644 --- a/WebTM/views/index.html +++ b/WebTM/views/index.html @@ -208,7 +208,7 @@ <a>棰嗘枡鍙戣揣</a> <dl class="layui-nav-child"> <dd><a lay-href="棰嗘枡鍙戣揣/棰嗘枡鍑哄簱/Kf_MateOutBillList.html">鐢熶骇棰嗘枡鍗曠淮鎶�</a></dd> - <dd><a lay-href="">鐢熶骇閫�鏂欏崟缁存姢n</a></dd> + <dd><a lay-href="棰嗘枡鍙戣揣/棰嗘枡鍑哄簱/Kf_MateOutBackBillList.html">鐢熶骇閫�鏂欏崟缁存姢</a></dd> <dd><a lay-href="">鐢熶骇琛ユ枡鍗曠淮鎶</a></dd> <dd><a lay-href="棰嗘枡鍙戣揣/閿�鍞嚭搴�/Kf_SellOutBillList.html">閿�鍞嚭搴撳崟缁存姢</a></dd> <dd><a lay-href="">閿�鍞��搴撳崟缁存姢</a></dd> diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBillList.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBillList.html" new file mode 100644 index 0000000..afb09a1 --- /dev/null +++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBillList.html" @@ -0,0 +1,703 @@ +锘�<!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, maximum-scale=1"> + <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> + <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> + <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> + <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> + <style type="text/css"> + input.layui-input.layui-unselect { + padding-right: 0; + } + </style> +</head> +<body> + <div class="layui-fluid"> + <div class="layui-col-md12"> + <div class="layui-card" style="padding: 1px"> + <div class="layui-card-body" style="padding: 1px;"> + <form class="layui-form" action="" lay-filter="component-form-group"> + <div class="layui-collapse"> + <div class="layui-colla-item"> + <div class="layui-colla-title layui-inline"> + <div class="layui-inline"> + <span>鏇村</span> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">鍗曟嵁鍙�</label> + <div class="layui-input-block"> + <input type="text" class="layui-input" id="HBillNo" style="width:190px;"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">寮�濮嬫棩鏈�</label> + <div class="layui-input-block"> + <input type="date" class="layui-input" id="HBeginDate" style="width:190px;"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">缁撴潫鏃ユ湡</label> + <div class="layui-input-block"> + <input type="date" class="layui-input" id="HEndDate" style="width:190px;"> + </div> + </div> + + <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> + <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> + </button> + <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button> + <div class="layui-colla-content"> + <div class="layui-inline"> + <label class="layui-form-label">閮ㄩ棬鍚嶇О</label> + <div class="layui-input-block"> + <input type="text" class="layui-input" id="HDepartName" style="width:190px;"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">鐗╂枡浠g爜</label> + <div class="layui-input-block"> + <input type="text" class="layui-input" id="HMaterNumber" style="width:190px;"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">鐗╂枡鍚嶇О</label> + <div class="layui-input-block"> + <input type="text" class="layui-input" id="HMaterName" style="width:190px;"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">瑙勬牸鍨嬪彿</label> + <div class="layui-input-block"> + <input type="text" class="layui-input" id="HMaterModel" style="width:190px;"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">婧愬崟鍗曞彿</label> + <div class="layui-input-block"> + <input type="text" class="layui-input" id="HSourceBillNo" style="width:190px;"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">璋冨叆浠撳簱</label> + <div class="layui-input-block"> + <input type="text" class="layui-input" id="HStockIn" style="width:190px;"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">璋冨嚭浠撳簱</label> + <div class="layui-input-block"> + <input type="text" class="layui-input" id="HStocOut" style="width:190px;"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">鍒跺崟浜�</label> + <div class="layui-input-block"> + <input type="text" class="layui-input" id="HMakerMan" style="width:190px;"> + </div> + </div> + </div> + </div> + </div> + <table class="" id="mainTable" lay-filter="mainTable"></table> + <script type="text/html" id="toolbarDemo"> + <div class="layui-btn-container"> + <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>--> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>鏂板</button> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>缂栬緫</button> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>鍒犻櫎</button> + <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>棰勮</button> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>鎵撳嵃</button> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>瀹℃牳</button> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>鍙嶅鏍�</button>--> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>鍒锋柊</button> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button> + + </div> + </script> + </form> + </div> + </div> + </div> + </div> + <script> + layui.config({ + base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰� + }).extend({ + index: 'lib/index', //涓诲叆鍙fā鍧� + }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { + var $ = layui.$ + , admin = layui.admin + , layer = layui.layer + , table = layui.table + , form = layui.form + , element = layui.element + , laypage = layui.laypage + , laydate = layui.laydate + , util = layui.util + //鏌ヨ鏉′欢 + var sWhere = ""; + var option = []; + var Name = "MouldProdInHouseCellWidth"; + + //#region 杩涘叆椤甸潰鏃㈠姞杞� + //鍒濆鍖栬〃鏍� + set_InitGrid(); + //鍔犺浇鏁版嵁鍒扮綉鏍� + get_Display(sWhere); + //#endregion + //#region 鐐瑰嚮浜嬩欢鍖呮嫭on form浜嬩欢绛� + //澶村伐鍏锋爮浜嬩欢 + table.on('toolbar(mainTable)', function (obj) { + switch (obj.event) { + //鏂板鎸夐挳 + case 'btn-Add': set_AddNew(); + break; + //缂栬緫鎸夐挳 + case 'btn-Edit': set_ShowBill(); + break; + //鍒犻櫎鎸夐挳 + case 'btn-Delete': set_DeleteBill(); + break; + //娴忚 + case 'btn-view': get_ViewReport(); + break; + //鎵撳嵃 + case 'btn-print': get_PrintReport(); + break; + //鍒锋柊 + case 'get_Refresh': set_Refresh(); + break; + + //閫�鍑� + case 'get_Exit': Pub_Close(2); + break; + //鍒嗛厤 + case 'btn-fp': set_Distribut(); + break; + //鍙戝竷 + case 'btn-fb': set_Release(); + break; + //浼樺厛绾� + case 'btn-yxj': set_Yxj(); + break; + case 'btn-back': set_Back(); + break; + }; + }); + //閲嶇疆鎸夐挳 + form.on('submit(btnReSearch)', function (data) { + set_ClearQuery(); + }); + //鏌ヨ鎸夐挳 + form.on('submit(btnSearch)', function (data) { + get_FastQuery(table, option); + }); + //鍒濆鍖栬〃鏍� + function set_InitGrid() { + $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); + $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); + var columns = [ + { type: 'checkbox', fixed: 'left', totalRowText: '鍚堣' } + , { field: 'hmainid', title: '鍗曟嵁ID', hide: true } + , { field: '鏃ユ湡', title: '鏃ユ湡', width: 160, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>" } + , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 160 } + , { field: '绾㈣摑鍗曟爣璁�', title: '绾㈣摑鍗曟爣璁�', width: 160 } + , { field: '浠撳簱', title: '浠撳簱', width: 160 } + , { field: 'hsecmanagerid', title: 'hsecmanagerid', width: 200, hide: true } + , { field: '棰嗘枡鍛�', title: '棰嗘枡鍛�', width: 200 } + , { field: 'hkeeperid', title: 'hkeeperid', width: 200, hide: true } + , { field: '淇濈鍛�', title: '淇濈鍛�', width: 160 } + , { field: 'hmanagerid', title: 'hmanagerid', width: 200, hide: true } + , { field: '涓荤', title: '涓荤', width: 200 } + , { field: 'HDeptID', title: 'HDeptID', width: 160, hide: true } + , { field: '閮ㄩ棬', title: '閮ㄩ棬', width: 160 } + , { field: 'hsubid', title: 'hsubid', width: 200, hide: true } + , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 200 } + , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 200 } + , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 200 } + , { field: 'hunitid', title: 'hunitid', width: 200, hide: true } + , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 200 } + , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 200 } + , { field: '搴旀敹鏁伴噺', title: '搴旀敹鏁伴噺', width: 115 } + , { field: '瀹炴敹鏁伴噺', title: '瀹炴敹鏁伴噺', width: 115 } + , { field: '鍗曚环', title: '鍗曚环', width: 200 } + , { field: '閲戦', title: '閲戦', width: 200 } + , { field: 'hwhid', title: 'hwhid', width: 115, hide: true } + , { field: '棰嗘枡浠撳簱浠g爜', title: '棰嗘枡浠撳簱浠g爜', width: 200 } + , { field: '棰嗘枡浠撳簱', title: '棰嗘枡浠撳簱', width: 200 } + , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', width: 200 } + , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 200 } + , { field: '閲囪喘璁㈠崟鍙�', title: '閲囪喘璁㈠崟鍙�', width: 115 } + , { field: '閿�鍞鍗曞彿', title: '閿�鍞鍗曞彿', width: 200 } + , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 200 } + , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 120, templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>" } + , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 100 } + , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 120, templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>" } + , { field: '淇敼浜�', title: '淇敼浜�', width: 100 } + , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 120, templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd')}}</div>" } + , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 100 } + , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 120, templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd')}}</div>" } + , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 100 } + , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 120, templet: "<div>{{d.浣滃簾鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd')}}</div>" } + + ]; + option = { + elem: '#mainTable' + , toolbar: '#toolbarDemo' + , page: true + , cellMinWidth: 120 + , totalRow: true + , limit: 10 + , height: 'full-50' + , cols: [columns] + , limits: [50, 500, 1000, 5000] + , done: function (res, curr, count) { + + } + }; + } + //鍔犺浇缃戞牸 + function get_Display(sWhere) { + var wait = layer.load();//閬僵 + var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈� + var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡 + if (HBeginDate) { + sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'"; + } + if (HEndDate) { + sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'"; + } + $.ajax({ + url: GetWEBURL() + '/Kf_MateOutBackBill/GetMateOutBillList', + type: "GET", + data: { "sWhere": sWhere }, + success: function (data1) { + if (data1.count == 1) { + DataList = data1.data; + option.data = data1.data; + table.render(option); + layer.close(wait); + } else { + layer.close(wait); + layer.alert(data1.Message, { icon: 5 }); + } + }, error: function () { + layer.close(wait); + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + } + //鏂板 + function set_AddNew() { + layer.open({ + type: 2, + skin: 'layui-layer-rim', //鍔犱笂杈规 + title: '鏂板鐢熶骇閫�鏂欏崟', + closeBtn: 1, + shift: 2, + area: ['100%', '100%'], + maxmin: true, + content: '../棰嗘枡鍑哄簱/Kf_MateOutBackBillLEdit.html?OperationType=1&linterid=&HSouceBillType=0&closeType=1', + end: function () { + //鍒锋柊椤甸潰, + get_FastQuery(table, option); + }, + success: function (layero, index) { + + } + }); + } + //缂栬緫鍗曟嵁 + function set_ShowBill() { + var checkStatus = table.checkStatus('mainTable') + , data = checkStatus.data; + if (checkStatus.data.length === 1) { + var linterid = data[0].hmainid.toString(); + //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉 + layer.open({ + type: 2 + , area: ['100%', '100%'] + , title: '缂栬緫鐢熶骇閫�鏂欏崟' + , closeBtn: 1 + , shade: 0.6 //閬僵閫忔槑搴� + , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 + , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� + , content: '../棰嗘枡鍑哄簱/Kf_MateOutBackBillLEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&closeType=1' + , resize: false, + end: function () { + get_FastQuery(table, option); + } + , cancel: function () { + //$(".layui-btn").removeClass("layui-btn-disabled"); + } + }) + } else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒'); + } + } + //鍒犻櫎 + function set_DeleteBill() { + var checkStatus = table.checkStatus('mainTable') + , data = checkStatus.data; + if (checkStatus.data.length === 1) { + var InterID = data[0].hmainid.toString(); + //閫昏緫鍒犻櫎鏂规硶 + layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) { + var wait = layer.load(); + $.ajax({ + type: "GET", + url: GetWEBURL() + "/Kf_MateOutBackBill/set_DeleteBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + data: { "HInterID": InterID, "user": sessionStorage["HUserName"] }, + 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 }); + } + layer.close(wait); + }, error: function () { + layer.close(wait); + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + }) + } + else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒'); + } + } + //棰勮 + function get_ViewReport() { + var checkStatus = table.checkStatus('mainTable') + , data = checkStatus.data; + if (checkStatus.data.length === 1) { + layer.open({ + type: 2 + , area: ['50%', '50%'] + , title: '鎵撳嵃妯$増閫夋嫨' + , shade: 0.6 //閬僵閫忔槑搴� + , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲 + , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� + , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HMouldProdInBill', 'yes'] + , resize: false + }) + } + else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹墦鍗帮紒'); + } + } + //鎵撳嵃 + function get_PrintReport() { + var checkStatus = table.checkStatus('mainTable') + , data = checkStatus.data; + if (checkStatus.data.length === 1) { + layer.open({ + type: 2 + , area: ['50%', '50%'] + , title: '鎵撳嵃妯$増閫夋嫨' + , shade: 0.6 //閬僵閫忔槑搴� + , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲 + , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� + , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HMouldProdInBill', 'yes'] + , resize: false + }) + } + else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹墦鍗帮紒'); + } + } + //瀹℃牳 + function set_CheckBill() { + var checkStatus = table.checkStatus('mainTable') + , data = checkStatus.data; + if (checkStatus.data.length === 1) { + var InterID = data[0].hmainid.toString(); + //閫昏緫瀹℃牳鏂规硶 + var wait = layer.load(); + $.ajax({ + type: "GET", + url: GetWEBURL() + "/Sc_MouldProdInBill/set_CheckBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + data: { "HInterID": InterID, "CurUserName": sessionStorage["HUserName"] }, + 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); + //淇敼涓哄姛鍚庡埛鏂扮晫闈� + get_FastQuery(table, option); + }); + } else { + layer.alert(result.Message, { icon: 5 }); + } + layer.close(wait); + }, error: function () { + layer.close(wait); + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + } + else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹鏍革紒'); + } + } + //鍙嶅鏍� + function set_AbandonCheck() { + var checkStatus = table.checkStatus('mainTable') + , data = checkStatus.data; + if (checkStatus.data.length === 1) { + var InterID = data[0].hmainid.toString(); + //閫昏緫瀹℃牳鏂规硶 + var wait = layer.load(); + $.ajax({ + type: "GET", + url: GetWEBURL() + "/Sc_MouldProdInBill/set_AbandonCheck", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + data: { "HInterID": InterID, "CurUserName": sessionStorage["HUserName"] }, + 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); + //淇敼涓哄姛鍚庡埛鏂扮晫闈� + get_FastQuery(table, option); + }); + + } else { + layer.alert(result.code + result.Message, { icon: 5 }); + } + layer.close(wait); + }, error: function () { + layer.close(wait); + layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 }); + } + }); + } + else { + layer.msg('璇烽�夋嫨涓�琛屾暟鎹弽瀹℃牳锛�'); + } + + } + //鑾峰彇鍒楀 + function getColumnsWidth() { + var result = []; + var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length; + //鑾峰彇鍒楀 + $.ajax({ + url: GetWEBURL() + '/Cg_POOrderBill/list', + async: false, + type: "Get", + dataType: "json", + data: { "colNum": colNum, "Name": Name }, + success: function (data1) { + if (data1.code == 1) { + result = data1.data; + } + else if (data1.code == -1) { + + } + else { + layer.alert(data1.Message, { icon: 5 }); + } + }, error: function (e) { + layer.alert(e.Message, { icon: 5 }); + } + }); + + return result; + } + //淇濆瓨鍒楀 + function set_SaveGridColWidth() { + var arr = []; + // 鍒楁暟 + var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length; + for (var i = 0; i <= colNum; i++) { + var colName = $(".layui-table-header").find("tr").eq(0).find("th").eq(i).text(); + var colWidth = $(".layui-table-header").find("tr").eq(0).find("th").eq(i).width(); + if (colName != "" && colName != null) { + arr.push(colWidth == -1 ? 200 : colWidth); + } + } + arr.unshift(40); //棣栦綅杩藉姞 + $.ajax({ + url: GetWEBURL() + '/tb_CellWidth/GetMouldScrapInHouseCellWidth', + async: false, + type: "POST", + dataType: "json", + data: { "myMap": JSON.stringify(arr), "Name": Name }, + success: function (data1) { + if (data1.count == 1) { + layer.alert(data1.Message, { icon: 1 }); + } else { + layer.alert(data1.Message, { icon: 5 }); + } + }, error: function (e) { + layer.alert(e.Message, { icon: 5 }); + } + }); + //璁剧疆璧嬪�煎垪瀹� + var colWidth = getColumnsWidth(); + if (colWidth == "" || colWidth == []) { + + } + else { + $.each(columns, function (x, m) { + m["width"] = colWidth[x]; + }); + } + get_FastQuery(table, option); + } + //榛樿鍒楀 + function set_DefaultGridColWidth() { + var arr = []; + // 鍒楁暟 + var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length; + for (var i = 0; i <= colNum; i++) { + var colName = $(".layui-table-header").find("tr").eq(0).find("th").eq(i).text(); + if (colName != "" && colName != null) { + arr.push(200); //榛樿瀹藉害200 + } + } + arr.unshift(40); //棣栦綅杩藉姞 + $.ajax({ + url: GetWEBURL() + '/tb_CellWidth/GetMouldScrapInHouseCellWidth', + async: false, + type: "POST", + dataType: "json", + data: { "myMap": JSON.stringify(arr), "Name": Name }, + success: function (data1) { + if (data1.count == 1) { + layer.alert(data1.Message, { icon: 1 }); + + } else { + layer.alert(data1.Message, { icon: 5 }); + } + }, error: function (e) { + layer.alert(e.Message, { icon: 5 }); + } + }); + //璁剧疆璧嬪�煎垪瀹� + var colWidth = getColumnsWidth(); + if (colWidth == "" || colWidth == []) { + + } + else { + $.each(columns, function (x, m) { + m["width"] = colWidth[x]; + }); + } + get_FastQuery(table, option); + } + //蹇�熻繃婊� + function get_FastQuery(table, option) { + var HStatus = $("select[name='HStatus']").val();//鐘舵�� + var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈� + var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡 + var HBillNo = $("#HBillNo").val(); //鍗曟嵁鍙� + var HDepartName = $("#HDepartName").val(); + var HMaterNumber = $("#HMaterNumber").val(); + var HMaterName = $("#HMaterName").val(); + var HMaterModel = $("#HMaterModel").val(); + var HSourceBillNo = $("#HSourceBillNo").val(); + var HStockIn = $("#HStockIn").val(); + var HStocOut = $("#HStocOut").val(); + var HMakerMan = $("#HMakerMan").val(); + //if (HStatus) { + // switch (HStatus) { + // case '-1': //鍏ㄩ儴 + // sWhere += ""; + // break; + // case '1': //鏈垎閰� + // sWhere += " and 涓氬姟鐘舵��='鏈垎閰�'"; + // break; + // case '2': //宸插鏍� + // sWhere += " and 涓氬姟鐘舵��='宸插垎閰�'"; + // break; + // case '3': //宸插叧闂� + // sWhere += " and 涓氬姟鐘舵��='宸插彂甯�'"; + // default: + + // } + //} + if (HBeginDate) { + sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'"; + } + if (HEndDate) { + sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'"; + } + if (HBillNo) { + sWhere += " and 鍗曟嵁鍙� like '%" + HBillNo + "%'"; + } + if (HDepartName) { + sWhere += " and 閮ㄩ棬 like '%" + HDepartName + "%'"; + } + if (HMaterNumber) { + sWhere += " and 鐗╂枡浠g爜 like '%" + HMaterNumber + "%'"; + } + if (HMaterName) { + sWhere += " and 鐗╂枡鍚嶇О like '%" + HMaterName + "%'"; + } + if (HMaterModel) { + sWhere += " and 瑙勬牸鍨嬪彿 like '%" + HMaterModel + "%'"; + } + if (HSourceBillNo) { + sWhere += " and 婧愬崟鍗曞彿 like '%" + HSourceBillNo + "%'"; + } + if (HStockIn) { + //sWhere += " and 閮ㄩ棬 like '%" + HStockIn + "%'"; + } + if (HStocOut) { + //sWhere += " and 閮ㄩ棬 like '%" + HStocOut + "%'"; + } + if (HMakerMan) { + sWhere += " and 鍒跺崟浜� like '%" + HMakerMan + "%'"; + } + var index = layer.load(0); + get_Display(sWhere); + //璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨 + sWhere = ""; + } + //閲嶇疆杩囨护鏉′欢 + function set_ClearQuery() { + $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); + $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); + $("#HBillNo").val(""); + $("#HDepartName").val(""); + $("#HMaterNumber").val(""); + $("#HMaterName").val(""); + $("#HMaterModel").val(""); + $("#HSourceBillNo").val(""); + $("#HStockIn").val(""); + $("#HStocOut").val(""); + $("#HMakerMan").val(""); + sWhere = ""; + get_Display(sWhere); + } + //鍒锋柊 + function set_Refresh() { + $("#btnSearch").click(); + } + }); + </script> +</body> +</html> diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBill_Fast.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBill_Fast.html" deleted file mode 100644 index f70edb6..0000000 --- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBill_Fast.html" +++ /dev/null @@ -1,915 +0,0 @@ -锘�<!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, maximum-scale=1"> - <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> - <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> -</head> -<!--<style> - @media screen and (max-width: 450px) { - .layui-form-item .mobile { - display: inline-block; - float: none; - left: -3px; - width: 55%; - margin: 0 0 10px 10px; - } - .layui-form-item .layui-btn { - position: relative; - top: -6px; - } - .layui-form-item .layui-input.mobile { - display: inline; - float: none; - left: -3px; - width: 55%; - margin: 0 0 10px 10px; - } - } -</style>--> -<body> - <div class="layui-fluid"> - <div class="layui-card" style="padding: 1px"> - <div class="layui-card-body" style="padding: 1px;"> - <form class="layui-form" action="" lay-filter="component-form-group"> - <div class="layui-tab" lay-filter="tab-MateOutBackBill"> - <ul class="layui-tab-title" lay-filter="tab-all"> - <li lay-id="1">婧愬崟淇℃伅</li> - <li lay-id="2">鍗曟嵁淇℃伅</li> - <li lay-id="3">鐗╂枡娓呭崟</li> - <li lay-id="4">鏄庣粏娓呭崟</li> - <li lay-id="5">鏃ュ織</li> - </ul> - <div class="layui-tab-content"> - <div class="layui-tab-item layui-show"> - <div class="layui-form-item"> - <div class="layui-row"> - <div class="layui-col-xs4"> - <label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁绫诲瀷</label> - </div> - <div class="layui-col-xs8"> - <select name=" HBillType" id="HBillType"> - <option value="3720">鐢熶骇浠诲姟鍗�-閫�鏂�</option> - <!--<option value="1204">鐢熶骇棰嗘枡鍗�-钃濆瓧</option> - <option value="-1">鎵嬪伐褰曞叆</option>--> - </select> - </div> - </div> - </div> - <div class="layui-form-item"> - <div class="layui-row"> - <div class="layui-col-xs4"> - <label class="layui-form-label" style="width:60px;padding-left:0px;">婧愬崟鍙�</label> - </div> - <div class="layui-col-xs8"> - <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" autocomplete="off" class="layui-input"> - </div> - </div> - </div> - </div> - <div class="layui-tab-item"> - <div class="layui-form-item" style="padding:0px;margin:0px"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:30px;padding-left:0px;">浠撳簱</label> - </div> - <div class="layui-col-xs6"> - <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" value="0" autocomplete="off" class="layui-input"> - </div> - <div class="layui-col-xs3"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="HWHID-BT">...</button> - </div> - </div> - </div> - <div class="layui-form-item" style="padding:0px;margin:0px"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:30px;padding-left:0px;">浠撲綅</label> - </div> - <div class="layui-col-xs6"> - <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" autocomplete="off" class="layui-input"> - <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input"> - </div> - <div class="layui-col-xs3"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT">...</button> - </div> - </div> - </div> - <div class="layui-form-item" style="padding:0px;margin:0px"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:45px;padding-left:0px;">棰嗘枡浜�</label> - </div> - <div class="layui-col-xs6"> - <input type="text" name="HKeeper" id="HKeeper" lay-verify="HKeeper" autocomplete="off" class="layui-input"> - <input type="hidden" name="HKeeperID" id="HKeeperID" lay-verify="HKeeperID" value="0" autocomplete="off" class="layui-input"> - </div> - <div class="layui-col-xs3"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="HKeeperID-BT">...</button> - </div> - </div> - </div> - <div class="layui-form-item" style="padding:0px;margin:0px"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:45px;padding-left:0px;">鍙戞枡浜�</label> - </div> - <div class="layui-col-xs6"> - <input type="text" name="HSecManager" id="HSecManager" lay-verify="HSecManager" autocomplete="off" class="layui-input"> - <input type="hidden" name="HSecManagerID" id="HSecManagerID" lay-verify="HSecManagerID" value="0" autocomplete="off" class="layui-input"> - </div> - <div class="layui-col-xs3"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="HSecManagerID-BT">...</button> - </div> - </div> - </div> - <div class="layui-form-item" style="padding:0px;margin:0px"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:30px;padding-left:0px;display:none">鍒跺崟浜�</label> - </div> - <div class="layui-col-xs6"> - <input type="text" name="HBillerID" id="HBillerID" lay-verify="HBillerID" autocomplete="off" class="layui-input"> - <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input"> - <input type="hidden" name="HMakerID" id="HMakerID" lay-verify="HMakerID" value="0" autocomplete="off" class="layui-input" style="display : none"> - </div> - </div> - </div> - <div class="layui-form-item" style="padding:0px;margin:0px"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:30px;padding-left:0px;">閮ㄩ棬</label> - </div> - <div class="layui-col-xs6"> - <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" value="0" autocomplete="off" class="layui-input"> - </div> - <div class="layui-col-xs3"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptID-BT">...</button> - </div> - </div> - </div> - <div class="layui-form-item" style="padding:0px;margin:0px"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:45px;padding-left:0px;">鍗曟嵁鍙�</label> - </div> - <div class="layui-col-xs6"> - <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" disabled="disabled" autocomplete="off" class="layui-input mobile"> - </div> - <div class="layui-col-xs3"> - <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" disabled="disabled" autocomplete="off" class="layui-input mobile"> - </div> - </div> - </div> - </div> - <div class="layui-tab-item"> - <div class="layui-form-item" style="padding:0px;margin:0px"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:40px;padding-left:0px;">鏉$爜</label> - </div> - <div class="layui-col-xs7"> - <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input"> - </div> - </div> - </div> - <div class="layui-form-item" style="padding:0px;margin:0px"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label> - </div> - <div class="layui-col-xs7"> - <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> - </div> - </div> - </div> - <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table> - </div> - <div class="layui-tab-item"> - <table class="layui-hide" id="mx-table" lay-filter="mx-table"></table> - </div> - <div class="layui-tab-item"> - <table class="layui-hide" id="fj-table-qd" lay-filter="fj-table-qd"></table> - </div> - </div> - <div class="layui-form-item" style="margin-bottom: 20px;"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">鎻愪氦</button> - </div> - <div class="layui-col-xs3"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">缂栬緫</button> - </div> - <div class="layui-col-xs3"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">鍒犻櫎</button> - </div> - <div class="layui-col-xs3"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">閫�鍑�</button> - </div> - </div> - </div> - </div> - </form> - </div> - </div> - </div> - <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> - layui.config({ - base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰� - }).extend({ - index: 'lib/index' //涓诲叆鍙fā鍧� - }).use(['index', 'form', 'laydate', 'table', 'element'], function () { - var $ = layui.$ - , admin = layui.admin - , layer = layui.layer - , table = layui.table - , form = layui.form - , element = layui.element; - - - //琛ㄥご鍒濆鍖栬祴鍊硷紙鏍规嵁鐧诲綍鐢ㄦ埛鑾峰彇 榛樿浠撳簱銆侀儴闂ㄣ�侀獙鏀躲�佷繚绠°�侀噾铦剁敤鎴凤級 new - $("#HWHID").val(sessionStorage["HWHID"]); - $("#HWHNAME").val(sessionStorage["HWHName"]); - $("#HStockPlaceID").val(sessionStorage["HSPID"]); - $("#HStockPlaceName").val(sessionStorage["HSPName"]); - //$("#HSupID").val(sessionStorage["HSupID"]); - //$("#HSupName").val(sessionStorage["HSupName"]); - $("#HDeptID").val(sessionStorage["HDeptID"]); - $("#HDeptName").val(sessionStorage["HDept"]); - $("#HSecManagerID").val(sessionStorage["HSecManagerID"]); - $("#HSecManager").val(sessionStorage["HSecManager"]); - $("#HKeeperID").val(sessionStorage["HKeeperID"]); - $("#HKeeper").val(sessionStorage["HKeeper"]); - $("#HMaker").val(sessionStorage["HUserName"]); - $("#HMaker").hide(); - $("#HMakerID").hide(); - $("#HBillerID").val(sessionStorage["HBillerID"]); - $("#HBillerID").hide(); - - //榛樿甯﹀叆鐨勪粨搴擄紝濡傛灉鍚敤浠撲綅鍒欎粨浣嶆湁鏁堬紝濡傛灉娌℃湁鍚敤鍒欎粨浣嶇伆搴� new - - - //鑾峰彇鍙傛暟 - 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 = getUrlVars(); - var linterid = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鍗曟嵁鍐呯爜 - var lSourceBillType = params[params[2]]; //浠庡崟鎹幏鍙� 婧愬崟绫诲瀷 - - function RoadBillMain(linterid)//鍔犺浇琛ㄥご - { - $.ajax({ - url: GetWEBURL() + "/Web/GetPonderationBill", - type: "GET", - data: { "HInterID": linterid }, - success: function (d) { - // console.log(d.data); - $("#HInterID").val(d.data[0].HInterID); - $("#HBillNo").val(d.data[0].HBillNo); - $("#HBillType").val(d.data[0].HSourceBillType); - $("#HSourceBillNo").val(d.data[0].HSourceBillNo); - //$("#HWHID").val(d.data[0].HWhID); - //$("#HKeeperID").val(d.data[0].HKeeperID); - //$("#HSecManagerID").val(d.data[0].HSecManagerID); - //$("#HDeptID").val(d.data[0].HDeptID); - //$("#HBarCode").val(d.data[0].HBarCode); - //$("#HQty").val(d.data[0].HQty); - } - }) - } - - - function RoadBillSub(linterid)//鍔犺浇琛ㄤ綋 - { - table.render({ - elem: '#wl-table' - , url: GetWEBURL() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json' - , toolbar: '#toolbarDemo' - , where: { HBillID: linterid, HBillType: '1244', sWhere: '' } - , cols: [[ - { type: 'radio' } - , { field: 'HQty', title: '鏁伴噺', width: 150 } - , { field: 'HQtyMust', title: '搴斿彂鏁伴噺', width: 150 } - , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 } - , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 } - , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 } - , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 } - , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 } - , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 } - , { field: 'HBatchNo', title: '鎵规', width: 150 } - ]] - // , data: [linterid] - // , page: true - , height: 500 - , done: function () { - layer.closeAll("loading"); - } - }); - } - - - - //鍔ㄦ�佸姞杞芥簮鍗曠被鍨嬪垪琛� new - - //鍒ゆ柇鏄惁鏂板 - if (linterid == null || linterid == 0) {//鑾峰彇鏈�澶у崟鎹彿 new - $("#HInterID").val(""); - $("#HBillNo").val(""); - $.ajax({ - url: GetWEBURL() + "/Web/GetMAXNum", - type: "GET", - data: { "HBillType": '1244' }, - success: function (d) { - //console.log(d.data); - $("#HInterID").val(d.data[0].HInterID); - $("#HBillNo").val(d.data[0].HBillNo); - } - }); - } - else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new - RoadBillMain(linterid); - RoadBillSub(linterid); - } - - form.on('submit(HWHID-BT)', function () {//閫夋嫨浠撳簱 - layer.open({ - type: 2 - , area: ['100%', '100%'] - , title: '浠撳簱鍒楄〃' - , shade: 0.6 //閬僵閫忔槑搴� - , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 - , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� - , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_WarehouseList.html?Type=HWHID', 'yes'] - , resize: false - , cancel: function () { - //$(".layui-btn").removeClass("layui-btn-disabled"); - } - }) - }); - form.on('submit(HSpID-BT)', function () {//閫夋嫨浠撲綅 - layer.open({ - type: 2 - , area: ['100%', '100%'] - , title: '浠撲綅鍒楄〃' - , shade: 0.6 //閬僵閫忔槑搴� - , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 - , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� - , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"], 'yes'] - , resize: false - , cancel: function () { - //$(".layui-btn").removeClass("layui-btn-disabled"); - } - }) - }); - form.on('submit(HSupID-BT)', function () {//閫夋嫨渚涘簲鍟� - layer.open({ - type: 2 - , area: ['100%', '100%'] - , title: '渚涘簲鍟嗗垪琛�' - , shade: 0.6 //閬僵閫忔槑搴� - , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 - , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� - , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_SupplierList.html', 'yes'] - , resize: false - , cancel: function () { - //$(".layui-btn").removeClass("layui-btn-disabled"); - } - }) - }); - - - //form.on('submit(HKeeperID-BT)', function () {//閫夋嫨淇濈 - // layer.open({ - // type: 2 - // , area: ['100%', '100%'] - // , title: '棰嗘枡浜哄垪琛�' - // , shade: 0.6 //閬僵閫忔槑搴� - // , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 - // , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� - // , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes'] - // , resize: false - // , cancel: function () { - // //$(".layui-btn").removeClass("layui-btn-disabled"); - // } - // }) - //}); - //form.on('submit(HSecManagerID-BT)', function (data) {//閫夋嫨楠屾敹 - // var sMainStr = JSON.stringify(data.field); - // layer.open({ - // type: 2 - // , area: ['100%', '100%'] - // , title: '鍙戞枡浜哄垪琛�' - // , shade: 0.6 //閬僵閫忔槑搴� - // , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 - // , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� - // , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HSecManager', 'yes'] - // , resize: false - // , cancel: function () { - // //$(".layui-btn").removeClass("layui-btn-disabled"); - // } - // }) - //}); - - form.on('submit(HKeeperID-BT)', function () {//閫夋嫨淇濈 - 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('璇烽�夋嫨鏁版嵁'); - } - $("#HKeeper").val(checkStatus.data[0].HName); - $("#HKeeperID").val(checkStatus.data[0].HItemID); - layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨� - } - , btn2: function (index, layero) { } - }) - }); - form.on('submit(HSecManagerID-BT)', function (data) {//閫夋嫨鍙戣揣 - 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('璇烽�夋嫨鏁版嵁'); - } - $("#HSecManager").val(checkStatus.data[0].HName); - $("#HSecManagerID").val(checkStatus.data[0].HItemID); - layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨� - } - , btn2: function (index, layero) { } - }) - }); - - - - form.on('submit(HDeptID-BT)', function () {//閫夋嫨閮ㄩ棬 - layer.open({ - type: 2 - , area: ['100%', '100%'] - , title: '閮ㄩ棬鍒楄〃' - , shade: 0.6 //閬僵閫忔槑搴� - , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 - , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� - , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_DepartmentList.html', 'yes'] - , resize: false - , cancel: function () { - //$(".layui-btn").removeClass("layui-btn-disabled"); - } - }) - }); - form.on('submit(cmdModify)', function () {//缂栬緫 - var sSubStr = table.cache['wl-table']; - //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉 - layer.open({ - type: 2 - , area: ['100%', '100%'] - , title: '鏄庣粏鍒楄〃' - , shade: 0.6 //閬僵閫忔槑搴� - , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲 - , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� - , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes'] - , resize: false - , cancel: function () { - //$(".layui-btn").removeClass("layui-btn-disabled"); - } - }) - // } - }); - - - - form.on('submit(cmdDelete)', function () {//鍒犻櫎 - var checkStatus = table.checkStatus('wl-table') - , data = checkStatus.data; - // console.log(data); - var sInterID = $('#HInterID').val() - var sMaterID = data[0].HMaterID - var sBillType = '1244' - var sAuxPropID = data[0].HAuxPropID - //var sMTONo = data[0].HMTONo - var sMTONo = '' - var sSourceInterID = data[0].HSourceInterID - var sSourceEntryID = data[0].HSourceEntryID - $.ajax( - { - type: "Get", - url: GetWEBURL() + "/MateOutBill/Delete_Json", - async: true, - data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, }, - dataType: "json", - success: function (data) { - if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 - //layer.msg(data.Message, { icon: 1 }); - table.render({ - elem: '#wl-table' - , url: GetWEBURL() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json' - , toolbar: '#toolbarDemo' - , where: { HBillID: sInterID, HBillType: '1244', sWhere: '' } - , cols: [[ - { type: 'radio' } - , { field: 'HQty', title: '鏁伴噺', width: 150 } - , { field: 'HQtyMust', title: '搴斿彂鏁伴噺', width: 150 } - , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 } - , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 } - , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 } - , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 } - , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 } - , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 } - , { field: 'HBatchNo', title: '鎵规', width: 150 } - ]] - , height: 500 - }) - } - else { - layer.msg(data.Message, { icon: 2 }); - } - }, - error: function (err) { - layer.msg('閿欒' + err, { - icon: 5, - time: 20000 - }, function () { - //do something - }); - } - }); - }); - - - form.on('submit(Cancel)', function () { - sessionStorage["SourceFlag"] = false; - parent.location.href = "../../../views/index.html" - //window.close();//鍏抽棴褰撳墠椤� - }) - - - form.on('submit(Saver)', function (data) {//鎻愪氦 - //debugger; - var sMainStr = JSON.stringify(data.field); - var sSubStr = table.cache['wl-table']; - var sSourceType = $("#HBillType").val(); - if (AllowLoadData(sSubStr) != false)//闈炵┖楠岃瘉 - { - layer.load(3); - $.ajax( - { - type: "POST", - url: GetWEBURL() + "/MateOut/set_SaveMateOutBackBill_Json", - async: true, - data: { "oMain": sMainStr }, - dataType: "json", - success: function (data) { - if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 - layer.msg(data.Message + $("#HBillNo").val(), { icon: 1 }); - } - else { - layer.msg(data.Message, { icon: 5 }); - } - layer.closeAll("loading"); - }, - error: function (err) { - layer.msg("閿欒:" + err, { icon: 5 }); - } - }); - return false; - } - }); - //鐩戝惉鎻愪氦 - form.verify({ - numberOrEmpty: function (value, item) { - // if (value != '') { - if (!/^\d+$/.test(value)) { - return '涓嶈兘涓虹┖鎴栨暟瀛楁垨鑰�0'; - } - //} - } - }); - $('#HBarCode').on('keydown', function (event) { - var sBarCode = $('#HBarCode').val() - var sInterID = $("#HInterID").val() - var sBillNo = $("#HBillNo").val() - var sQty = $("#HQty").val() - var sHBillType = $("#HBillType").val() //婧愬崟绫诲瀷 - var sHWHID = $("#HWHID").val() - var sHSPID = $("#HStockPlaceID").val() - var sBillType = '1244' - var sSourceBillNo = $("#HSourceBillNo").val() - var sExpressNumber = '' - if (sQty == "") { - sQty = 0; - } - - if (event.keyCode == 13) { - if (sBarCode == '') { - layer.msg("鏉$爜涓虹┖锛屼笉鑳芥壂鎻忥紒", { icon: 5, btn: ['纭畾'], time: 100000, offset: 't' }); - return false; - } - if (sBarCode != "") { - $('#HBarCode').val(""); - } - if (sQty == "") { - sQty = 0; - } - $.ajax({ - url: GetWEBURL() + "/MateOutBackBill/get_CheckTypeByBarCode_All_Json", - type: "GET", - data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sBillType, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": true, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"], "sExpressNumber": sExpressNumber }, - success: function (result) { - if (result.count == 1) { - if (result.data.HBarType == '浠撳簱鏉$爜') { - $("#HWHNAME").val(result.data.HWhName); - $("#HWHID").val(result.data.HWhID); - $("#HStockPlaceName").val(""); - $("#HNote").val(";涓�閿壂鐮佷粨搴撴潯鐮�"); - element.tabChange('tab-MateOutBackBill', '2'); //璺宠浆椤电 - } - else if (result.data.HBarType == '浠撲綅鏉$爜') { - $("#HStockPlaceName").val(result.data.HSPName); - $("#HStockPlaceID").val(result.data.HSPID); - $("#HWHNAME").val(result.data.HWhName); - $("#HWHID").val(result.data.HWhID); - $("#HNote").val(";涓�閿壂鐮佷粨浣嶆潯鐮�"); - element.tabChange('tab-MateOutBackBill', '2');//璺宠浆椤电 - } - else if (result.data.HBarType == '閮ㄩ棬鏉$爜') { - $("#HDeptName").val(result.data.HDeptName); - $("#HDeptID").val(result.data.HDeptID); - $("#HNote").val(";涓�閿壂鐮侀儴闂ㄦ潯鐮�"); - element.tabChange('tab-MateOutBackBill', '2');//璺宠浆椤电 - } - else if (result.data.HBarType == '婧愬崟鏉$爜') { - $("#HSupName").val(result.data.HSupName); - $("#HSupID").val(result.data.HSupID); - $("#HDeptName").val(result.data.HDeptName); - $("#HDeptID").val(result.data.HDeptID); - $("#HSourceBillNo").val(result.data.HSourceBillNo); - sessionStorage["SourceFlag"] = true; - //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙� - if (result.data.HSourceBillType == "3720") { - $("#HBillType").val("3720"); - } - else if (result.data.HSourceBillType == "1204") { - $("#HBillType").val("1204"); - } - else { - $("#HBillType").val("鎵嬪伐褰曞叆"); - } - $("#HNote").val(";涓�閿壂鐮佹簮鍗曟潯鐮�"); - element.tabChange('tab-MateOutBackBill', '3'); - } - else { - if (sessionStorage["SourceFlag"] == "true") { - element.tabChange('tab-MateOutBackBill', '3'); - } - else { - $("#HSupName").val(result.data.HSupName); - $("#HSupID").val(result.data.HSupID); - $("#HDeptName").val(result.data.HDeptName); - $("#HDeptID").val(result.data.HDeptID); - $("#HSourceBillNo").val(result.data.HSourceBillNo); - sessionStorage["SourceFlag"] = true; - //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙� - if (result.data.HSourceBillType == "3720") { - $("#HBillType").val("3720"); - } - else if (result.data.HSourceBillType == "1204") { - $("#HBillType").val("1204"); - } - else { - $("#HBillType").val("鎵嬪伐褰曞叆"); - } - $("#HNote").val(";鐗╂枡鏉$爜"); - element.tabChange('tab-MateOutBackBill', '3'); - } - } - layer.load(3) - table.render({ - elem: '#wl-table' - , url: GetWEBURL() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json' - , toolbar: '#toolbarDemo' - , where: { HBillID: sInterID, HBillType: '1244', sWhere: '' } - , cols: [[ - { type: 'radio' } - , { field: 'HQty', title: '鏁伴噺', width: 150 } - , { field: 'HQtyMust', title: '搴斿彂鏁伴噺', width: 150 } - , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 } - , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 } - , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 } - , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 } - , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 } - , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 } - , { field: 'HBatchNo', title: '鎵规', width: 150 } - ]] - // , data: [linterid] - // , page: true - , height: 500 - , done: function () { - layer.closeAll("loading"); - } - }); - } - else { - // $("#verifycode").click(); - //layer.msg(result.Message, { icon: 5 }); - layer.msg(result.Message, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' }); - } - layer.closeAll("loading"); - } - }); - } - }); - $('#HSourceBillNo').on('keydown', function (event) { - var HSourceBillNo = $('#HSourceBillNo').val() - var sInterID = $("#HInterID").val() - var sBillNo = $("#HBillNo").val() - var HSourceBillType = $("#HBillType").val() - if (event.keyCode == 13) { - $.ajax({ - url: GetWEBURL() + "/MateOutBackBill/set_SavePonderationBillMain_Temp_Source_Fast_Json", - type: "GET", - data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo }, - success: function (result) { - sessionStorage["SourceFlag"] = true; - element.tabChange('tab-MateOutBackBill', '3'); - if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 - layer.load(3) - table.render({ - elem: '#wl-table' - , url: GetWEBURL() + '/MateOutBackBill/DisBillEntryListBack_Webs_Json' - , toolbar: '#toolbarDemo' - , where: { HBillID: sInterID, HBillType: '1244', sWhere: '' } - , cols: [[ - { type: 'radio' } - , { field: 'HQty', title: '鏁伴噺', width: 150 } - , { field: 'HQtyMust', title: '搴斿彂鏁伴噺', width: 150 } - , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 } - , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 } - , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 } - , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 } - , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 } - , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 } - , { field: 'HBatchNo', title: '鎵规', width: 150 } - ]] - // , data: [linterid] - // , page: true - , height: 500 - , done: function () { - layer.closeAll("loading"); - } - }); - } - else { - // $("#verifycode").click(); - //layer.msg(result.Message, { icon: 5 }); - layer.msg(result.Message, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' }); - } - layer.closeAll("loading"); - } - }); - // layer.msg($('#HSourceBillNo').val(), { icon: 1 }); - } - }); - - table.render({ - elem: '#mx-table' - // , url: 'http://61.130.49.162:9090/WMSAPI///GetHBarCodeShowBillSub' - //, toolbar: '#toolbarDemo' - // , where: { sMsg: linterid, sMsg2: lentryid } - , cols: [[ - , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true } - ]] - , page: true - , height: 500 - , done: function () { - } - }); - }); - function GetHWHValue(obj) //杩斿洖浠撳簱 - { - $("#HWHNAME").val(obj[0].HName); - //sessionStorage["HWHID"] = obj[0].HItemID; - $("#HWHID").val(obj[0].HItemID); - } - function GetHSpValue(obj) { //杩斿洖璋冨叆浠撲綅 - $("#HStockPlaceName").val(obj[0].HName); - $("#HStockPlaceID").val(obj[0].HItemID); - } - function GetHSupValue(obj) { //杩斿洖渚涘簲鍟� - $("#HSupName").val(obj[0].HName); - $("#HSupID").val(obj[0].HItemID); - } - function GetHKeeperValue(obj) { //杩斿洖淇濈 - $("#HKeeper").val(obj[0].HName); - $("#HKeeperID").val(obj[0].HItemID); - } - function GetHSecManagerValue(obj) { //杩斿洖楠屾敹 - $("#HSecManager").val(obj[0].HName); - $("#HSecManagerID").val(obj[0].HItemID); - } - function GetHDeptNameValue(obj) { //杩斿洖閮ㄩ棬 - $("#HDeptName").val(obj[0].HName); - $("#HDeptID").val(obj[0].HItemID); - } - function AllowLoadData(sSubStr) { //闈炵┖楠岃瘉 - //if ($("#HSourceBillNo").val() == '') { - // layer.msg("璇峰厛鎵簮鍗�!", { icon: 5 }); - // return false; - //} - //if($("#HDeptName").val()=='') - //{ - // layer.msg("閮ㄩ棬娌℃湁閫夋嫨!", { icon: 5 }); - // return false; - //} - //if ($("#HSecManager").val() == '') { - // layer.msg("鍙戞枡浜烘病鏈夐�夋嫨!", { icon: 5 }); - // return false; - //} - //if ($("#HKeeper").val() == '') { - // layer.msg("棰嗘枡浜烘病鏈夐�夋嫨!", { icon: 5 }); - // return false; - //} - //if ($("#HSupName").val() == '') { - // layer.msg("渚涘簲鍟嗘病鏈夐�夋嫨!", { icon: 5 }); - // return false; - //} - //if ($("#HWHNAME").val() == '') { - // layer.msg("浠撳簱娌℃湁閫夋嫨!", { icon: 5 }); - // return false; - //} - if ($("#HBillNo").val() == '') { - layer.msg("閿欒鐨勫崟鎹彿!", { icon: 5 }); - return false; - } - if ($("#HInterID").val() == '') { - layer.msg("閿欒鐨勫唴鐮�!", { icon: 5 }); - return false; - } - if(sSubStr=='') - { - layer.msg("娌℃湁鐗╂枡鏄庣粏璁板綍!", { icon: 5 }); - return false; - } - var s = 0; - if (sSubStr != '') { - for (var i = 0; i <= sSubStr.length - 1; i++) { //鍒ゆ柇鎵爜鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺 - if (parseFloat(sSubStr[i].HQtyMust) > 0) { - if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) - { - layer.msg("鏁伴噺涓嶈兘澶т簬搴斿彂鏁伴噺锛�", { icon: 5 }); - return false; - } - } - } - for (var i = 0; i <= sSubStr.length - 1; i++) { //鍒ゆ柇鎵爜鏁伴噺涓嶈兘涓�0 - if (parseFloat(sSubStr[i].HQty) > 0) { - s = 1; - } - } - if (s == 0) - { - layer.msg("鐢熶骇棰嗘枡绾㈠瓧璁板綍鏈壂鐮侊紒", { icon: 5 }); - return false; - } - } - else - { - return true; - } - } - </script> - -</body> -</html> diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBill_FastList.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBill_FastList.html" deleted file mode 100644 index 3dc9b69..0000000 --- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBill_FastList.html" +++ /dev/null @@ -1,260 +0,0 @@ -锘�<!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, maximum-scale=1"> - <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: 1px"> - <div class="layui-card-body" style="padding: 1px;"> - <form class="layui-form" action="" lay-filter="component-form-group"> - <!--<div class="layui-form-item"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:60px;padding-left:0px;">鏉$爜</label> - </div> - <div class="layui-col-xs7"> - <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input"> - </div> - </div> - </div> - <div class="layui-form-item"> - <div class="layui-row"> - <div class="layui-col-xs3"> - <label class="layui-form-label" style="width:60px;padding-left:0px;">鏁伴噺</label> - </div> - <div class="layui-col-xs7"> - <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> - </div> - </div> - </div>--> - <div class="layui-tab" lay-filter="tab-POStockInBillList"> - <ul class="layui-tab-title" lay-filter="tab-all"> - <li lay-id="1">鍗曟嵁鍒楄〃</li> - <li lay-id="2">婧愬崟鐢熷崟</li> - </ul> - <div class="layui-tab-content"> - <div class="layui-tab-item layui-show"> - <div class="layui-row"> - <div class="layui-col-xs12"> - <table class="layui-hide" id="dj-table" lay-filter="dj-table"></table> - </div> - </div> - </div> - <div class="layui-tab-item"> - <div class="layui-row"> - <div class="layui-col-xs12"> - <table class="layui-hide" id="yd-table" lay-filter="yd-table"></table> - </div> - </div> - </div> - </div> - <div class="layui-form-item" style="margin-bottom: 20px;"> - <div class="layui-row"> - <div class="layui-col-xs2"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">缂栬緫</button> - </div> - <div class="layui-col-xs2"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">鍒犻櫎</button> - </div> - <div class="layui-col-xs2"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">鍒锋柊</button> - </div> - <div class="layui-col-xs2"> - <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">閫�鍑�</button> - </div> - <div class="layui-col-xs2"> - <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="cmdAdd">鏂板</button>--> - </div> - </div> - </div> - </div> - </form> - </div> - </div> - </div> - <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> - layui.config({ - base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰� - }).extend({ - index: 'lib/index' //涓诲叆鍙fā鍧� - }).use(['index', 'form', 'laydate', 'table', 'element'], function () { - var $ = layui.$ - , admin = layui.admin - , layer = layui.layer - , table = layui.table - , form = layui.form - , element = layui.element; - //娓呯┖鐣岄潰 new - - //鍔ㄦ�佸姞杞芥簮鍗曠被鍨嬪垪琛� new - - //鍔犺浇婧愬崟绫诲瀷 - - //璇诲彇鍗曟嵁鍒楄〃 - // - - form.on('submit(Cancel)', function () { - parent.location.href = "../../../views/index.html" - //window.close();//鍏抽棴褰撳墠椤� - }) - - form.on('submit(cmdModify)', function () { - var checkStatus = table.checkStatus('dj-table') - , data = checkStatus.data; - //ajaxLabelData = data; - //layer.alert(rows); - layer.open({ - type: 2 - , area: ['100%', '100%'] - , title: '棰嗘枡鍗曠孩瀛�' - , shade: 0.6 //閬僵閫忔槑搴� - , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲 - , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� - , content: ['../../棰嗘枡鍙戣揣/棰嗘枡鍑哄簱/Kf_MateOutBackBill_Fast.html?linterid=' + data[0].HInterID, 'yes'] - , resize: false - , cancel: function () { - $(".layui-btn").removeClass("layui-btn-disabled"); - } - }) - }); - - form.on('submit(cmdRefresh)', function () {//shuaxin - var sBillType = '1244' - table.render({ - elem: '#dj-table' - , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' - ,toolbar: '#toolbarDemo' - , where: { HBillType: sBillType,sWhere:''} - , cols: [[ - { type: 'radio' } - , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 } - , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 } - , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 } - , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 } - , { field: 'HQty', title: '鏁伴噺', width: 100 } - , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 } - , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 } - , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 } - ]] - , height: 500 - , done: function () { - layer.closeAll("loading"); - } - }); - }); - - - - form.on('submit(cmdDelete)', function () {//鍒犻櫎 - var checkStatus = table.checkStatus('dj-table') - , data = checkStatus.data; - // console.log(data); - // var sInterID = $('#HInterID').val() - var sInterID = data[0].HInterID - //var sMaterID = data[0].HMaterID - //var sBillType = $('#HBillType').val() - //var sAuxPropID = data[0].HAuxPropID - ////var sMTONo = data[0].HMTONo - //var sMTONo = 0 - //var sSourceInterID = data[0].HSourceInterID - //var sSourceEntryID = data[0].HSourceEntryID - $.ajax( - { - type: "Get", - url: GetWEBURL() + "/Web/Delete_Json", - async: true, - data: { "sHInterID": sInterID }, - dataType: "json", - success: function (data) { - if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 - //layer.msg(data.Message, { icon: 1 }); - table.render({ - elem: '#dj-table' - , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' - , cellMinWidth: 80 - , toolbar: '#toolbarDemo' - , where: { HBillType: '1244', sWhere: '' } - , cols: [[ - { type: 'radio' } - , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 } - , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 } - , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 } - , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 } - , { field: 'HQty', title: '鏁伴噺', width: 100 } - , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 } - , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 } - , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 } - ]] - , height: 500 - }) - } - else { - layer.msg(data.Message, { icon: 2 }); - } - }, - error: function (err) { - layer.msg('閿欒' + err, { - icon: 5, - time: 20000 - }, function () { - //do something - }); - } - }); - }); - - - - var sBillType = '1244' - table.render({ - elem: '#dj-table' - , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' - ,toolbar: '#toolbarDemo' - , where: { HBillType: sBillType,sWhere:''} - , cols: [[ - { type: 'radio' } - , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 } - , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 } - , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 } - , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 } - , { field: 'HQty', title: '鏁伴噺', width: 100 } - , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 } - , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 } - , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 } - ]] - , height: 500 - , done: function () { - layer.closeAll("loading"); - } - }) - //鍒锋柊鏄庣粏椤电 - table.render({ - elem: '#mx-table' - // , url: 'http://localhost:8083/POStockInBill/GetHBarCodeShowBillSub' - //, toolbar: '#toolbarDemo' - // , where: { sMsg: linterid, sMsg2: lentryid } - , cols: [[ - , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true } - ]] - , page: true - , height: 500 - , done: function () { - } - }); - }); - //娓呯┖琛ㄥご - </script> - -</body> -</html> diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html" index 0f6ecd8..3208b44 100644 --- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html" +++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html" @@ -33,14 +33,12 @@ <form id="form0" class="layui-form" lay-filter="component-form-group" action=""> <div class="layui-card-header"> <div class="layui-btn-group"> - <button type="button" id="copy-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Copy">澶嶅埗</button> <button type="button" id="addnew-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Add">鏂板</button> <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">淇濆瓨</button> <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">閫�鍑�</button> <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="planview">棰勮</button> <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="print">鎵撳嵃</button> - </div> </div> diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillList.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillList.html" index f032aeb..3aeae19 100644 --- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillList.html" +++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillList.html" @@ -114,6 +114,7 @@ <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>--> <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>鏂板</button> <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>缂栬緫</button> + <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>鍒犻櫎</button> <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>棰勮</button> <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>鎵撳嵃</button> <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>瀹℃牳</button> @@ -355,7 +356,7 @@ var wait = layer.load(); $.ajax({ type: "GET", - url: GetWEBURL() + "/Sc_MouldProdInBill/set_DeleteBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� + url: GetWEBURL() + "/Kf_MateOutBill/set_DeleteBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚� data: { "HInterID": InterID, "user": sessionStorage["HUserName"] }, success: function (result) { if (result.count == 1) { @@ -613,14 +614,14 @@ var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈� var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡 var HBillNo = $("#HBillNo").val(); //鍗曟嵁鍙� - var HDepartName = $("#HDepartName").val(); - var HMaterNumber = $("#HMaterNumber").val(); - var HMaterName = $("#HMaterName").val(); - var HMaterModel = $("#HMaterModel").val(); - var HSourceBillNo = $("#HSourceBillNo").val(); - var HStockIn = $("#HStockIn").val(); - var HStocOut = $("#HStocOut").val(); - var HMakerMan = $("#HMakerMan").val(); + var HDepartName = $("#HDepartName").val(); + var HMaterNumber = $("#HMaterNumber").val(); + var HMaterName = $("#HMaterName").val(); + var HMaterModel = $("#HMaterModel").val(); + var HSourceBillNo = $("#HSourceBillNo").val(); + var HStockIn = $("#HStockIn").val(); + var HStocOut = $("#HStocOut").val(); + var HMakerMan = $("#HMakerMan").val(); //if (HStatus) { // switch (HStatus) { // case '-1': //鍏ㄩ儴 -- Gitblit v1.9.1