| | |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-form-item" style="padding:15px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin">ç¡®å®</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-Kf_OtherOutBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <!-- <li lay-id="1">æºåä¿¡æ¯</li>--> |
| | | <li lay-id="1">æºåä¿¡æ¯</li> |
| | | <li lay-id="2">åæ®ä¿¡æ¯</li> |
| | | <li lay-id="3">ç©ææ¸
å</li> |
| | | <li lay-id="4">æ¥å¿</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <!--æºåä¿¡æ¯--> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | |
| | | <div class="layui-col-xs8"> |
| | | <select name=" HBillType" id="HBillType"> |
| | | <option value="-1">æå·¥å½å
¥</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æ«æç±»å</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <select name=" HScanStyle" id="HScanStyle" disabled:"disabled"> |
| | | <option value="æ´ææ«ç ">æ´ææ«ç </option> |
| | | <option value="å个æç ">å个æç </option> |
| | | <option value="ååæç ">ååæç </option> |
| | | <option value="æ´æå é¤">æ´æå é¤</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--åæ®ä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--ç©ææ¸
å--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table> |
| | | </div> |
| | | <!--æ¥å¿--> |
| | | <div class="layui-tab-item"> |
| | | <table class="layui-hide" id="mx-table" lay-filter="mx-table"></table> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æ¡ç æ°é</label> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <table class="layui-hide" id="fj-table-qd" lay-filter="fj-table-qd"></table> |
| | | <div class="layui-col-xs8 layui-input-inline mobile"> |
| | | <input type="text" name="HBarcodeQtys" id="HBarcodeQtys" lay-verify="HBarcodeQtys" autocomplete="off" class="layui-input"> |
| | | </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-xs8 layui-input-inline mobile"> |
| | | <input type="text" name="HSumQtys" id="HSumQtys" lay-verify="HSumQtys" value="0" autocomplete="off" class="layui-input"> |
| | | </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-xs8 layui-input-inline mobile"> |
| | | <input type="text" name="HNote" id="HNote" lay-verify="HNote" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px"> |
| | |
| | | |
| | | //æ«æ¡ç |
| | | function GetMeesageByBarCode(obj) { //è¿åå·¥ä½ä¸å¿ |
| | | var sSubStr = table.cache['wl-table']; |
| | | var sBarCode = $('#HBarCode').val() |
| | | var sOldBarCode = $('#HBarCode').val() |
| | | var HDeleteFlag = sOldBarCode.substring(0, 1); |
| | | var sBarCode = sOldBarCode.slice(1); |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillType = '1206' |
| | | var sBillNo = $("#HBillNo").val() |
| | | var sMaker = sessionStorage["HUserName"]; |
| | | var sHWHID = $("#HWHID").val();//ä»åºID |
| | | var sHSPID = $("#HStockPlaceID").val();//ä»ä½ID |
| | | var sQty = $("#HQty").val() |
| | | var sHBillType = $("#HBillType").val() |
| | | var sHWHID = $("#HWHID").val() |
| | | var sHSPID = $("#HStockPlaceID").val() |
| | | var sSourceBillNo = $("#HSourceBillNo").val() |
| | | var sMouldManagerCtl = "N"; //æ¯å¦å¯ç¨å¨å
·ç®¡ç |
| | | var sFIFOCtl = "N"; //æ¯å¦å¯ç¨å
è¿å
åºç®¡ç |
| | | var HScanStyle = $("#HScanStyle").val(); |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | |
| | | if (HDeleteFlag == "*") { |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductIn/Delete_Json", |
| | | async: true, |
| | | data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": sBillType, "HBarCode": sBarCode }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | playSound1(); |
| | | table.reload('wl-table', { |
| | | where: { HBillID: sInterID, HBillType: '1206', sWhere: '' } |
| | | }); |
| | | } |
| | | else { |
| | | playSound(); |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | playSound(); |
| | | layer.msg('é误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | |
| | | } |
| | | }); |
| | | } |
| | | else if (HScanStyle == "æ´æå é¤") { |
| | | var HBarCode = $('#HBarCode').val(); |
| | | var HInterID = $('#HInterID').val(); |
| | | if (HBarCode == "") { |
| | | layer.msg("æ´æå 餿¡ç ä¸è½ä¸ºç©º", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/OtherOutBillList/OtherOutBillSDeleCode", |
| | | async: true, |
| | | data: { "HBarCode": HBarCode, "HInterID": HInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | layer.msg(data.Message, { icon: 1, btn: ['确认'], time: 100000, title: "温馨æç¤º" }); |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1206', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | , { field: 'HAuxQty', title: 'è¾
婿°é', width: 80 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 80 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 100 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100 } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§', width: 100 } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 100 } |
| | | , { field: 'HWHID', title: 'ck', width: 100 } |
| | | ]] |
| | | //, height: 500 |
| | | }) |
| | | } |
| | | 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: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | |
| | | var sBarCode = $('#HBarCode').val() |
| | | if (sBarCode == '') { |
| | | playSound(); |
| | | layer.msg("æ¡ç 为空ï¼ä¸è½æ«æï¼", { icon: 5, btn: ['ç¡®å®'], time: 100000, offset: 't' }); |
| | | return false; |
| | | } |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | var sBillType = '1206' |
| | | |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/OtherOutBill/get_CheckTypeByBarCode_Out_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sBillType, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"]}, |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sBillType, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"], "HScanStyle": HScanStyle }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | var listOption = { |
| | | elem: '#wl-table' |