| | |
| | | <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" /> |
| | |
| | | <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" /> |
| | |
| | | <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> |
| | |
| | | <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> |
New file |
| | |
| | | <!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">æ¡ç æ¡£æ¡</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;">ç©ææ¡£æ¡</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]];//æºå主ID |
| | | var HSourceEntryID = params[params[10]];//æºååID |
| | | var HBillType = params[params[11]];//åæ®ç±»å |
| | | var HBarCode = params[params[12]];//æ¡ç |
| | | } |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).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> |
New file |
| | |
| | | <!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">æ¡ç æ¡£æ¡</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;">ç©ææ¡£æ¡</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]];//æºå主ID |
| | | var HSourceEntryID = params[params[10]];//æºååID |
| | | var HBillType = params[params[11]];//åæ®ç±»å |
| | | var HBarCode = params[params[12]];//æ¡ç |
| | | } |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).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> |
New file |
| | |
| | | <!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">æ¡ç æ¡£æ¡</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;">ç©ææ¡£æ¡</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]];//æºå主ID |
| | | var HSourceEntryID = params[params[10]];//æºååID |
| | | var HBillType = params[params[11]];//åæ®ç±»å |
| | | var HBarCode = params[params[12]];//æ¡ç |
| | | } |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).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> |
New file |
| | |
| | | <!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">æ¡ç æ¡£æ¡</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;">ç©ææ¡£æ¡</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]];//æºå主ID |
| | | var HSourceEntryID = params[params[10]];//æºååID |
| | | var HBillType = params[params[11]];//åæ®ç±»å |
| | | var HBarCode = params[params[12]];//æ¡ç |
| | | } |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).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> |
New file |
| | |
| | | <!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' //主å
¥å£æ¨¡å |
| | | }).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: '产å代ç ' } |
| | | , { 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 触åäºä»¶ï¼å
æ¬form.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çelem:"#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); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , 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çelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HGroupName").val(checkStatus.data[0].HName); |
| | | $("#HGroupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , 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çelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEmpName").val(checkStatus.data[0].HName); |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , 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.产å代ç ); |
| | | $("#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 |
| | | |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |