| | |
| | | <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 layui-col-xs12" lay-filter="tab-SellOutBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!--ç©ææ¸
å--> |
| | | <div class="layui-tab-item"> |
| | | <!--<div class="layui-form-item" style="padding:0px;margin:0px"> |
| | |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-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> |
| | | <!--æ¥å¿--> |
| | | <div class="layui-tab-item"> |
| | | <table class="layui-hide" id="fj-table-qd" lay-filter="fj-table-qd"></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-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="layui-form-item" style="margin-bottom: 20px;"> |
| | |
| | | }) |
| | | |
| | | //ç¼è¾ |
| | | //form.on('submit(cmdModify)', function () {//ç¼è¾ |
| | | // var checkStatus = table.checkStatus('wl-table') |
| | | // , data = checkStatus.data; |
| | | // if (checkStatus.data.length === 1) { |
| | | // var HInterID = data[0].HInterID.toString(); |
| | | // var HMaterID = data[0].HMaterID.toString(); |
| | | // var HAuxPropID = data[0].HAuxPropID.toString(); |
| | | // var HMTONo = data[0].HMTONo.toString(); |
| | | // var HWhID = data[0].HWhID.toString(); |
| | | // var HSPID = data[0].HSPID.toString(); |
| | | // var HSCWHID = data[0].HSCWHID.toString(); |
| | | // var HSCSPID = data[0].HSCSPID.toString(); |
| | | // var HBatchNo = data[0].HBatchNo.toString(); |
| | | // var HSourceInterID = data[0].HSourceInterID.toString(); |
| | | // var HSourceEntryID = data[0].HSourceEntryID.toString(); |
| | | // var HBillType = '1205'; |
| | | // var HBarCode = data[0].HBarCode.toString(); |
| | | // 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('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | // } |
| | | //}) |
| | | |
| | | form.on('submit(cmdModify)', function () {//ç¼è¾ |
| | | //var sSubStr = table.cache['wl-table']; |
| | | var checkStatus = table.checkStatus('wl-table') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].HInterID.toString(); |
| | | var HMaterID = data[0].HMaterID.toString(); |
| | | var HAuxPropID = data[0].HAuxPropID.toString(); |
| | | var HMTONo = data[0].HMTONo.toString(); |
| | | var HWhID = data[0].HWhID.toString(); |
| | | var HSPID = data[0].HSPID.toString(); |
| | | var HSCWHID = data[0].HSCWHID.toString(); |
| | | var HSCSPID = data[0].HSCSPID.toString(); |
| | | var HBatchNo = data[0].HBatchNo.toString(); |
| | | var HSourceInterID = data[0].HSourceInterID.toString(); |
| | | var HSourceEntryID = data[0].HSourceEntryID.toString(); |
| | | var HBillType = '1205'; |
| | | var HBarCode = data[0].HBarCode.toString(); |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | |
| | | , 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'] |
| | | , content: ['../../../views/å
Œ
±é¡µé¢/Kf_BarCodeEditDlg.html?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '&HBillType =' + data[0].HBillType, 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | //location.reload(); |
| | | var sInterID = $("#HInterID").val() |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HSNO', title: 'åºå·', width: 60 } |
| | | , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 80 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 90 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 90 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 90 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 90 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 90 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 90 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 90 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | }) |
| | | // } |
| | | }); |
| | | |
| | | //å é¤ |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | table.reload('wl-table', { |
| | | where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HSNO', title: 'åºå·', width: 60 } |
| | | , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 80 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 90 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 90 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 90 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 90 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 90 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 90 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 90 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | |
| | | var count = 0; |
| | | var count1 = 0; |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | count += result.data.HQty; |
| | | count1 += result.data.HPieceQty; |
| | | } |
| | | $("#HSumQtys").val(count); |
| | | $("#HBarCodeQtys").val(count1); |
| | | playSound1(); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | |
| | | //$("#HDeptName").val(result.data[0].HDeptName); |
| | | HSourceFlag = true; |
| | | element.tabChange('tab-SellOutBill', '3'); |
| | | table.reload('wl-table', { |
| | | where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | //table.reload('wl-table', { |
| | | // where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | //}); |
| | | |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HSNO', title: 'åºå·', width: 60 } |
| | | , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 80 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 90 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 90 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 90 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 90 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 90 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 90 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 90 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | $("#HSourceBillNo").attr("disabled", "true"); |
| | | } |