| | |
| | | <div class="layui-card" style="padding: 2px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <!--<div style="padding: 10px;"> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">éåº</button> |
| | | </div>--> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill" style="width: 49%; float: left; height: 600px;background-color:white;"> |
| | | <div class="layui-tab-content"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | |
| | | , { field: 'é
ä»¶è§æ ¼', title: 'é
ä»¶è§æ ¼' } |
| | | , { field: 'é
ä»¶æ°é', title: 'é
ä»¶æ°é', totalRow: true} |
| | | , { field: 'HBatchNo', title: 'å½åæ¹æ¬¡' } |
| | | , { field: 'HProcID', title: 'HProcID', hide: true } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true } |
| | | , { field: 'HICMOBillNo', title: 'HICMOBillNo', hide: true } |
| | |
| | | var ajaxLoad = layer.load(); |
| | | var HProcExchInterID = $("#HProcExchInterID").val(); |
| | | var HProcExchEntryID = $("#HProcExchEntryID").val(); |
| | | var HProcID = $("#HProcID").val(); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_SingleStation/BadRecordsList', |
| | | url: GetWEBURL() + '/Cj_SingleStation/BadRecordsList2', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HProcExchInterID": HProcExchInterID, "HProcExchEntryID": HProcExchEntryID, "user": sessionStorage["HUserName"] }, |
| | | //data: { "HProcExchInterID": HProcExchInterID, "HProcExchEntryID": HProcExchEntryID, "user": sessionStorage["HUserName"] }, |
| | | data: { "HProcExchInterID": HProcExchInterID, "HProcID": HProcID, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option2.data = data1.data.h_p_Gy_BadRecordsList; |
| | | option2.data = data1.data.h_p_Gy_BadRecordsList2; |
| | | table.render(option2); |
| | | $("#HBadCount").val(data1.data.h_p_Gy_BadRecordsList1.length - data1.data.h_p_Gy_BadRecordsList2.length); |
| | | $("#HBadCount").val(data1.data.h_p_Gy_BadRecordsList21.length - data1.data.h_p_Gy_BadRecordsList22.length); |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | |
| | | function get_HGRecords() { |
| | | var HProcExchInterID = $("#HProcExchInterID").val(); |
| | | var HProcExchEntryID = $("#HProcExchEntryID").val(); |
| | | var sWhere = "and HProcExchInterID=" + HProcExchInterID + " and HProcExchEntryID=" + HProcExchEntryID; |
| | | var HProcID = $("#HProcID").val(); |
| | | //var sWhere = "and HProcExchInterID=" + HProcExchInterID + " and HProcExchEntryID=" + HProcExchEntryID; |
| | | var sWhere = "and HProcExchInterID=" + HProcExchInterID + " and HProcID=" + HProcID; |
| | | var ajaxLoad = layer.load(); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | $("#HPieceQty").val(data1.data[0]["HPieceQty"]); |
| | | $("#HICMOQty").val(data1.data[0]["HICMOQty"]); |
| | | |
| | | var currentProcID = $("#HProcID").val(); |
| | | var matchedRow = null; |
| | | // æ¥æ¾å¹é
çå·¥åºæ°æ® |
| | | for (var i = 0; i < data1.data.length; i++) { |
| | | if (data1.data[i]["HProcID"] == currentProcID) { |
| | | matchedRow = data1.data[i]; |
| | | break; |
| | | } |
| | | } |
| | | // 妿æ¾å°å¹é
è¡ï¼å使ç¨è¯¥è¡æ°æ®èµå¼ï¼å¦åä¸èµå¼ï¼å段ä¿çåå¼ï¼ |
| | | if (matchedRow) { |
| | | $("#HProcExchInterID").val(matchedRow["HProcExchInterID"]); |
| | | $("#HProcExchEntryID").val(matchedRow["HProcExchEntryID"]); |
| | | $("#HProcExchBillNo").val(matchedRow["HProcExchBillNo"]); |
| | | $("#HProcNo").val(matchedRow["HProcNo"]); |
| | | $("#HPieceQty").val(matchedRow["HPieceQty"]); |
| | | } |
| | | |
| | | |
| | | createBillNo(); |
| | | |
| | | option.data = data1.data; |
| | |
| | | $("#HPieceQty").val(data1.data[0]["HPieceQty"]); |
| | | $("#HICMOQty").val(data1.data[0]["HICMOQty"]); |
| | | |
| | | |
| | | var currentProcID = $("#HProcID").val(); |
| | | var matchedRow = null; |
| | | // æ¥æ¾å¹é
çå·¥åºæ°æ® |
| | | for (var i = 0; i < data1.data.length; i++) { |
| | | if (data1.data[i]["HProcID"] == currentProcID) { |
| | | matchedRow = data1.data[i]; |
| | | break; |
| | | } |
| | | } |
| | | // 妿æ¾å°å¹é
è¡ï¼å使ç¨è¯¥è¡æ°æ®èµå¼ï¼å¦åä¸èµå¼ï¼å段ä¿çåå¼ï¼ |
| | | if (matchedRow) { |
| | | $("#HProcExchInterID").val(matchedRow["HProcExchInterID"]); |
| | | $("#HProcExchEntryID").val(matchedRow["HProcExchEntryID"]); |
| | | $("#HProcExchBillNo").val(matchedRow["HProcExchBillNo"]); |
| | | $("#HProcNo").val(matchedRow["HProcNo"]); |
| | | $("#HPieceQty").val(matchedRow["HPieceQty"]); |
| | | } |
| | | |
| | | createBillNo(); |
| | | |
| | | } else { |