| | |
| | | <Content Include="views\颿åè´§\忥å¼è°åºå\Fb_StepFoldOutBillList.html" /> |
| | | <Content Include="views\颿åè´§\å§å¤åºåº\Kf_EntrustOutBillList.html" /> |
| | | <Content Include="views\颿åè´§\æ¶æå
¥åº\Kf_ReciveBill_Check.html" /> |
| | | <Content Include="views\颿åè´§\æ¶æå
¥åº\Kf_ReciveBill_Fast_AR.html" /> |
| | | <Content Include="views\颿åè´§\æ¶æå
¥åº\Kf_ReciveBill_Fast.html" /> |
| | | <Content Include="views\颿åè´§\ç产补æ\Kf_MateReplenishOutBill_Check_New.html" /> |
| | | <Content Include="views\颿åè´§\ç产补æ\Kf_MateReplenishOutBill_CheckList_New.html" /> |
| | |
| | | <cite>æ¥ææ£éªå</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../颿åè´§/æ¶æå
¥åº/Kf_ReciveBill_Fast_AR.html" target="main_self_frame"> |
| | | <i class="layui-icon layui-icon-find-fill"></i> |
| | | <cite>å°è´§ç¡®è®¤(å®ç)</cite> |
| | | </a> |
| | | </li> |
| | | <!--<li class="layui-col-xs3"> |
| | | <a lay-href="set/user/info.html"> |
| | | <i class="layui-icon layui-icon-set"></i> |
| | |
| | | <cite>ç产æ£éªå</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../颿åè´§/æ¶æå
¥åº/Kf_ReciveBill_Fast_AR.html" target="main_self_frame"> |
| | | <i class="layui-icon layui-icon-find-fill"></i> |
| | | <cite>å°è´§ç¡®è®¤(å®ç)</cite> |
| | | </a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HMaterID', title: 'ç©æå
ç ', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: '', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 150, hide: true } |
| | |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 100 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100 } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§', width: 100 } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 100 } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 100 } |
| | |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HAuxPropName', title: 'è¾
å©å±æ§', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150, hide: true } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150, hide: true } |
| | | , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150, hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'HAuxPropID', width: 150, hide: true } |
| | |
| | | <div class="layui-tab-item layui-show"> |
| | | <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-xs8"> |
| | | <select name="HBillType" id="HBillType"> |
| | | <option value="1103">æ¶æéç¥å</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-col-xs3"> |
| | | <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="1103">æ¶æéç¥å</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | <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-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> |
| | | <!--<input id="upload" type="file" accept="image/*" @change="changePic" />--> |
| | | <input id="takepicture" type="file" accept="image/*"> |
| | | <div> |
| | | <img id="blah" src="#" alt="æ¾ç¤ºæ¨ä¸ä¼ çååå¾ç" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">æäº¤</button> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">éåº</button> |
| | | <!-- <button id="capture">æç
§</button>--> |
| | | </div> |
| | | <div id="" style="display:none;"> |
| | | <audio id="cs" hidden controls> |
| | |
| | | </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> |
| | |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | //æ¸
空çé¢ new |
| | | |
| | | function readURL(input) { |
| | | if (input.files && input.files[0]) { |
| | | var reader = new FileReader(); |
| | | reader.onload = function (e) { |
| | | $('#blah').attr('src', e.target.result); |
| | | } |
| | | reader.readAsDataURL(input.files[0]); |
| | | } |
| | | } |
| | | $("#takepicture").change(function () { |
| | | readURL(this); |
| | | }); |
| | | |
| | | |
| | | //表头åå§åèµå¼ï¼æ ¹æ®ç»å½ç¨æ·è·å é»è®¤ä»åºãé¨é¨ãéªæ¶ãä¿ç®¡ãéè¶ç¨æ·ï¼ new |
| | |
| | | var params = getUrlVars(); |
| | | var linterid = params[params[0]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | var lSourceBillType = params[params[2]]; //ä»åæ®è·å æºåç±»å |
| | | |
| | | |
| | | |
| | | |
| | | //å 载表头 |
| | | function RoadBillMain(linterid) { |
| | |
| | | var HSLEntryID = $("#HSLEntryID").val(); //æ¶æéç¥ååID |
| | | var HSLBillNo = $("#HSLBillNo").val(); //æ¶æéç¥ååå· |
| | | var HSLSeQ = $("#HSLSeQ").val(); //æ¶æéç¥åè¡å· |
| | | var HBatchNo = $("#HBatchNo").val(); //æ¹å· |
| | | |
| | | if (HBadQty == "") { |
| | | HBadQty = 0; |
| | |
| | | } |
| | | if (HWHNumber == "") { |
| | | HWHNumber = ''; |
| | | } |
| | | if (HBatchNo == "") { |
| | | HBatchNo = ''; |
| | | } |
| | | if (HKeeperID == "") { |
| | | HKeeperID = 0; |
| | | } |
| | | |
| | | //var sSourceType = $("#HBillType").val(); |
| | |
| | | , "HBadQty": HBadQty, "HCheckResult": HCheckResult, "HSupNumber": HSupNumber, "HWHNumber": HWHNumber |
| | | , "HUseResult": HUseResult, "HSeQ": HSeQ, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HSourceBillNo": HSourceBillNo |
| | | , "user": sessionStorage["HUserName"], "HWHID": HWHID, "HSPID": HSPID, "HSupID": HSupID, "HKeeperID": HKeeperID |
| | | , "HMaterID": HMaterID, "HSourceBillType": HSourceBillType, "HSLInterID": HSLInterID, "HSLEntryID": HSLEntryID, "HSLBillNo": HSLBillNo, "HSLSeQ": HSLSeQ |
| | | , "HMaterID": HMaterID, "HSourceBillType": HSourceBillType, "HSLInterID": HSLInterID, "HSLEntryID": HSLEntryID, "HSLBillNo": HSLBillNo, "HSLSeQ": HSLSeQ |
| | | }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/QCStockInCheckBill/DisBillEntryList_Webs_New_Json1', |
| | | type: "GET", |
| | | data: { HInterID: linterid, HEntryID: lentryid}, |
| | | data: { HInterID: linterid, HEntryID: lentryid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | listOption.data = result.data.list; |
| | |
| | | $("#HSLEntryID").val(result.data[0].HSLEntryID); |
| | | $("#HSLBillNo").val(result.data[0].HSLBillNo); |
| | | $("#HSLSeQ").val(result.data[0].HSLSeQ); |
| | | $("#HCheckQty").val(result.data[0].hqty); |
| | | } |
| | | else { |
| | | layer.msg(result.Message); |
| | |
| | | //æ«æ¡ç |
| | | function GetMeesageByBarCode(obj) { //è¿åå·¥ä½ä¸å¿ |
| | | var sBarCode = $('#HBarCode').val() |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //夿æ¡ç æ¯å¦ä¸ºç©º new |
| | | if (sBarCode == '') { |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | |
| | | |
| | | } |
| | | var listOption = { |
| | | elem: '#wl-table' |
| | |
| | | var HSLEntryID = $("#HSLEntryID").val(); //æ¶æéç¥ååID |
| | | var HSLBillNo = $("#HSLBillNo").val(); //æ¶æéç¥ååå· |
| | | var HSLSeQ = $("#HSLSeQ").val(); //æ¶æéç¥åè¡å· |
| | | |
| | | var HBatchNo = $("#HBatchNo").val(); //æ¹å· |
| | | if (HBadQty == "") { |
| | | HBadQty = 0; |
| | | } |
| | |
| | | if (HSPNumber == "") { |
| | | HSPNumber = ''; |
| | | } |
| | | if (HWHNumber == "") { |
| | | HWHNumber = ''; |
| | | } |
| | | |
| | | if (HWHID == "") { |
| | | HWHID = 0; |
| | | } |
| | | if (HBatchNo == "") { |
| | | HBatchNo = ''; |
| | | } |
| | | //var sSourceType = $("#HBillType").val(); |
| | | if (AllowLoadData() != false)//é空éªè¯ |
| | | { |
| | |
| | | $("#HSLEntryID").val(result.data[0].HSLEntryID); |
| | | $("#HSLBillNo").val(result.data[0].HSLBillNo); |
| | | $("#HSLSeQ").val(result.data[0].HSLSeQ); |
| | | $("#HCheckQty").val(result.data[0].hqty); |
| | | } |
| | | else { |
| | | layer.msg(result.Message); |
| | |
| | | |
| | | //æ¥åº |
| | | form.on('submit(btn-BF)', function (data) { |
| | | var BillNo = $("#HBillNo").val(); |
| | | var BillNo = $("#HProcExchBillNo").val(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_ProcessMangement/SaveBFBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | |
| | | form.on('submit(QueDin3)', function () {// |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , area: ['100%', '100%'] |
| | | , title: 'åºåºç³è¯·åå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 100 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100 } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§', width: 100 } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 100 } |
| | | , { field: 'HWHID', title: 'ck', width: 100 } |
| | |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HAuxPropName', title: 'è¾
å©å±æ§', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150, hide: true } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150, hide: true } |
| | | , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150, hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'HAuxPropID', width: 150, hide: true } |
| | |
| | | , { field: 'HSPName', title: 'ä»ä½', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HAuxPropName', title: 'è¾
å©å±æ§', width: 150 } |
| | | ]] |
| | | , height: 500 |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <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"> |
| | | <!--å¼ç¨layuiæ ·å¼æä»¶--> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <!--å¼ç¨layui jsæä»¶--> |
| | | <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> |
| | | <!--èªå®ä¹æ ·å¼--> |
| | | <style> |
| | | .maintitle { |
| | | background-color: #1492ff; |
| | | color: #fff; |
| | | padding: 5px 10px; |
| | | border: none; |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | .title { |
| | | border-left: 4px solid #1492ff; |
| | | padding-left: 6px; |
| | | margin: 20px 10px 4px; |
| | | font-size: 16px; |
| | | color: #333; |
| | | } |
| | | |
| | | .buttom_box_little { |
| | | width: 60px; |
| | | height: 36px; |
| | | color: #fff; |
| | | background-color: #1492ff; |
| | | border-radius: 4px; |
| | | border: none; |
| | | margin: 10px; |
| | | } |
| | | |
| | | .layui-input { |
| | | width: 50%; |
| | | } |
| | | |
| | | .layui-inline, img { |
| | | display: block; |
| | | vertical-align: middle |
| | | } |
| | | |
| | | .layui-input, .layui-textarea { |
| | | display: inline-block; |
| | | width: 50%; |
| | | padding-left: 10px; |
| | | } |
| | | |
| | | .laydate-time-list ol { |
| | | overflow-x: hidden !important; |
| | | overflow-y: auto !important; |
| | | } |
| | | |
| | | .layui-form-label { |
| | | padding: 9px 5px; |
| | | width: 85px; |
| | | } |
| | | |
| | | .layui-input-block { |
| | | margin-left: 85px; |
| | | min-height: 36px; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 15px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" id="formData" style="background-color:white;"> |
| | | <div class="maintitle">å°è´§ç¡®è®¤</div> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <label class="layui-form-label" style="width: 85px;"><span style="color:red;">*</span>æ¡ç </label> |
| | | <div class="layui-input-block" style="margin-left: 100px;width:46%;"> |
| | | <input type="text" name="HBarCode" id="HBarCode" placeholder="请é®å
¥åå车" autocomplete="off" class="layui-input"><!--lay-verify="required"--> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin" name="QueDin" id="QueDin" style="width: 70px; background-color: #1492ff;color:white">ç¡®å®</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-tab layui-tab-card" lay-filter="TabTest"> |
| | | <ul class="layui-tab-title"> |
| | | <!--<li class="layui-this">表头信æ¯</li> |
| | | <li>æç»ä¿¡æ¯</li>--> |
| | | <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-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">åæ®å·:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin2">ç¡®å®</button> |
| | | <input type="hidden" class="layui-input" name="HInterID" id="HInterID" style="width:100px"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">ä¾åºå:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HSupName" id="HSupName" class="layui-input" disabled="disabled"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">é¨é¨:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HDeptName" id="HDeptName" class="layui-input" disabled="disabled"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-tab-item"> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="xuhao"> |
| | | {{d.LAY_TABLE_INDEX+1}} |
| | | </script> |
| | | <script type="text/html" id="barDemo"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layer-footer" style="text-align: center;"> |
| | | <button type="button" lay-submit="" class="layui-btn buttom_box_little" lay-filter="btn_Check" id="btn_Check">å®¡æ ¸</button> |
| | | <button type="button" lay-submit="" class="layui-btn buttom_box_little" lay-filter="btn_Cancel" id="btn_Cancel">éåº</button> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , laydate = layui.laydate |
| | | , element = layui.element; |
| | | var option = []; |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | |
| | | |
| | | |
| | | //è·ååæ° |
| | | 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]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | |
| | | |
| | | //卿å è½½æºåç±»åå表 new |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (linterid == null || linterid == 0) { |
| | | //è·åæå¤§åæ®å· new |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNumPDA", |
| | | type: "GET", |
| | | data: { "HBillType": '1103' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | }); |
| | | |
| | | //è¿å
¥é¡µé¢é»è®¤å
æ 卿¡å½¢ç ä¸ |
| | | $("#HBarCode").focus(); |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | GetMeesageByBarCode(); |
| | | } |
| | | }); |
| | | //æ¡å½¢ç 确认 |
| | | form.on('submit(QueDin)', function (data) { |
| | | GetMeesageByBarCode(); |
| | | }); |
| | | //æ«ææ¡å½¢ç æ¹æ³ |
| | | function GetMeesageByBarCode() { |
| | | var HBarCode = $('#HBarCode').val(); |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | //var HInterID = $('#HInterID').val(); |
| | | //if (!HInterID) { |
| | | // layer.msg("请å
è¾å
¥æ¶æéç¥ååæ®å·ï¼") |
| | | // return; |
| | | //} |
| | | var HInterID = $('#HInterID').val(); |
| | | var HBillNo = $('#HBillNo').val(); |
| | | |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/POStockInBillList/Get_ReciveBillByBarcode_AR", |
| | | type: "GET", |
| | | data: { "HBarCode": HBarCode, "HOrgID": sessionStorage["OrganizationID"], HInterID: HInterID, HBillNo: HBillNo }, |
| | | success: function (result) { |
| | | if (result.code == "1") { |
| | | |
| | | element.tabChange('TabTest', '2'); //è·³è½¬é¡µç¾ |
| | | //var sSubStr =; |
| | | option.data = result.data; |
| | | table.render(option); |
| | | //for (var i = 0; i < sSubStr.length; i++) { |
| | | // //if (sSubStr[i].HEntryID == result.data[0]["HSourceEntryID"]) { |
| | | // // sSubStr[i].HSQty += parseInt(result.data[0]["HQty"]); |
| | | |
| | | // // break; |
| | | // //} |
| | | //} |
| | | layer.close(index); |
| | | } |
| | | 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: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | $('#HBarCode').val(""); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | form.on('submit(btn_Cancel)', function () { |
| | | parent.location.href = "../../../views/index.html" |
| | | }) |
| | | //å®¡æ ¸ |
| | | form.on('submit(btn_Check)', function (data) {//å®¡æ ¸ |
| | | var sSubStr = table.cache['mainTable']; |
| | | for (var i = 0; i < sSubStr.length; i++) { |
| | | if (parseInt(sSubStr[i].HSQty) > parseInt(sSubStr[i].HQty)) { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,æ«ç æ°éä¸è½è¶
åºè®¢åæ°é!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if (parseInt(sSubStr[i].HSQty) == 0) { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,æ«ç æ°é为0", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | var index = layer.load(); |
| | | var HInterID = $('#HInterID').val(); |
| | | var HBillNo = $('#HBillNo').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/POStockInBillList/AuditPOInStockBillPost_AR", |
| | | type: "Post", |
| | | data: { "msg": JSON.stringify(sSubStr) }, |
| | | success: function (result) { |
| | | if (result.code == "1") { |
| | | //layer.msg("å®¡æ ¸æå", { icon: 1, btn: ['确认'], time: 1000000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | //layer.close(index); |
| | | layer.confirm("å®¡æ ¸æå" + data.Message + $("#HBillNo").val(), { |
| | | icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢'], |
| | | btn2: function () { |
| | | //parent.layui.admin.events.closeThisTabs();å
³éé¡µç¾ |
| | | //window.close();//å
³é页é¢ï¼æµè§å¨ææï¼PDAæ æ |
| | | parent.location.href = "../../../views/index.html" |
| | | }//å
³é |
| | | }, function () { window.location.reload(); });//æ°å¢ |
| | | |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.close(index); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | //表头 |
| | | columns = [ |
| | | //{ templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left' } |
| | | //, { field: 'HSQty', title: 'æ°é', edit: 'text', totalRow: true } |
| | | //, { field: 'HQty', title: 'è®¢åæ°é' } |
| | | //, { field: 'HMaterID', title: 'HMaterID' } |
| | | //, { field: 'HMaterNum', title: 'ç©æä»£ç ' } |
| | | //, { field: 'HMaterName', title: 'ç©æåç§°' } |
| | | //, { field: 'HModel', title: 'è§æ ¼åå·' } |
| | | //, { field: 'HInterID', title: '主å
ç ', sort: true, width: 200 } |
| | | //, { field: 'HEntryID', title: 'åå
ç ', sort: true, width: 200 } |
| | | //, { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', edit: 'text', totalRow: true } |
| | | , { field: 'HQtyMust', title: 'è®¢åæ°é' } |
| | | , { field: 'HMaterID', title: 'HMaterID', sort: true, width: 200 } |
| | | , { field: 'HNumber', title: 'ç©æä»£ç ' } |
| | | , { field: 'HName', title: 'ç©æåç§°' } |
| | | , { field: 'HModel', title: 'è§æ ¼åå·' } |
| | | , { field: 'HSourceBillNo', title: '订ååå·', width: 150 } |
| | | , { field: 'HInterID', title: '主å
ç ', sort: true, width: 200 } |
| | | , { field: 'HEntryID', title: 'åå
ç ', sort: true, width: 200 } |
| | | , { field: 'HBillNo', title: 'æ¶æéç¥åå·', sort: true, width: 200 } |
| | | |
| | | ]; |
| | | option = { |
| | | id: 'mainTable' |
| | | , elem: '#mainTable' |
| | | , page: true |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns] |
| | | , done: function (res, curr, count) { |
| | | } |
| | | }; |
| | | //option.data = [{ "æ°é": 0, "ç©æä»£ç ": 0, "ç©æåç§°": "", "è§æ ¼åå·": "" }]; |
| | | table.render(option); |
| | | } |
| | | // è¡¨æ ¼è¡å
äºä»¶å é¤ |
| | | function set_GridDelete(obj) { |
| | | var data = obj.data; |
| | | var index = layer.load(); |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | //obj.del(); |
| | | layer.close(index); |
| | | var oldData = table.cache["mainTable"]; |
| | | oldData.splice(obj.tr.data('index'), 1); |
| | | table.reload('mainTable', { data: oldData }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | //æºååè½¦æ¹æ³ |
| | | $('#HBillNo').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | GetMeesageBySourceBillNo(); |
| | | } |
| | | }); |
| | | //æºå确认 |
| | | form.on('submit(QueDin2)', function (data) { |
| | | GetMeesageBySourceBillNo(); |
| | | }); |
| | | //æ«æºå |
| | | function GetMeesageBySourceBillNo(obj) { //è¿åå·¥ä½ä¸å¿ |
| | | var HBarCode = $('#HBillNo').val();//æ¡å½¢ç ï¼æµè½¬å¡å·ï¼ï¼æ°æ®åºä¸ä¸ºåæ®å·ï¼ |
| | | if (!HBarCode) { |
| | | layer.msg("åæ®å·ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/POStockInBillList/Get_ReciveBill", |
| | | type: "GET", |
| | | data: { "HBillno": HBarCode }, |
| | | success: function (result) { |
| | | if (result.code == "1") { |
| | | var data = result.data[0]; |
| | | $("#HSupName").val(data.HSupName); |
| | | $("#HDeptName").val(data.HDeptName); |
| | | $("#HBillNo").val(data.HBillNo); |
| | | $("#HInterID").val(data.HInterID); |
| | | option.data = result.data; |
| | | table.render(option); |
| | | layer.close(index); |
| | | } |
| | | 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: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <select name="HBillType" id="HBillType"> |
| | | <option value="3714">å·¥åºæ±æ¥å</option> |
| | | <option value="3711">çäº§æ±æ¥å</option> |
| | | <option value="3710">ç产订å</option> |
| | | <option value="3714">å·¥åºæ±æ¥å</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HInterID', title: '忮ID', width: 150, hide: true } |
| | | , { field: 'HBilltype', title: 'åæ®ç±»å', width: 150, hide: true } |
| | | , { field: 'Hbarcode', title: 'æ¡ç ç¼å·', width: 150, hide: true } |
| | |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | |
| | | //è·åæå¤§åæ®å· new |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | $("#HBillType").val("3714"); |
| | | form.render('select'); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNumPDA", |
| | | type: "GET", |
| | |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HBarcodeQtys', title: 'æ¡ç æ°é', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = table.cache['wl-table']; |
| | | //var sSourceType = $("#HBillType").val(); |
| | | var sSourceType = "3711"; |
| | | var sSourceType = "3714"; |
| | | if (AllowLoadData(sSubStr) != false)//é空éªè¯ |
| | | { |
| | | layer.load(3); |
| | |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HBarcodeQtys', title: 'æ¡ç æ°é', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | |
| | | $("#HDeptName").val(result.data.hDeptNameField); |
| | | } |
| | | $("#HSourceBillNo").val(result.data.hSourceBillNoField); |
| | | $("#HBillType").val(result.data.hSourceBillTypeField) |
| | | $("#HBillType").val(result.data.hSourceBillTypeField == null ? "3714" : result.data.hSourceBillTypeField); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | if (result.data.hSourceBillTypeField == "3711") { |
| | |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹å·', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹å·', width: 150 } |
| | | //, { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | //, { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | listOption.data = result.data.list; |
| | | table.render(listOption); |
| | | $("#HBarCode_B").val(result.data.list2[0].HBarCode); |
| | | $("#HMaterName_B").val(result.data.list2[0].HMaterName); |
| | | $("#HMaterModel_B").val(result.data.list2[0].HMaterModel); |
| | | $("#HBatchNo_B").val(result.data.list2[0].HBatchNo); |
| | | $("#HUnitName_B").val(result.data.list2[0].HUnitName); |
| | | $("#HQty_B").val(result.data.list2[0].HQty); |
| | | $("#HTMQty_B").val(result.data.list2[0].HTMQty); |
| | | $("#HWHName_B").val(result.data.list2[0].HWHName); |
| | | $("#HSPName_B").val(result.data.list2[0].HSPName); |
| | | //$("#HBarCode_B").val(result.data.list2[0].HBarCode); |
| | | //$("#HMaterName_B").val(result.data.list2[0].HMaterName); |
| | | //$("#HMaterModel_B").val(result.data.list2[0].HMaterModel); |
| | | //$("#HBatchNo_B").val(result.data.list2[0].HBatchNo); |
| | | //$("#HUnitName_B").val(result.data.list2[0].HUnitName); |
| | | //$("#HQty_B").val(result.data.list2[0].HQty); |
| | | //$("#HTMQty_B").val(result.data.list2[0].HTMQty); |
| | | //$("#HWHName_B").val(result.data.list2[0].HWHName); |
| | | //$("#HSPName_B").val(result.data.list2[0].HSPName); |
| | | |
| | | var count = 0; |
| | | var count1 = 0; |
| | |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | //, { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HPieceQty', title: 'æ¡ç æ°é', width: 150 } |
| | | ]] |
| | | , height: 500 |
| | |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |