| | |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs12"> |
| | | <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly> |
| | | <!--<input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">--> |
| | | <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <!--<div class="layui-col-xs1"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px"> |
| | |
| | | , limit: 3000 |
| | | , totalRow: true |
| | | , cols: [[ |
| | | { field: 'HBarCode', title: 'æ¡ç ç¼å·', width: 220, totalRow: true } |
| | | { field: 'HBarCode', title: 'æ¡ç ç¼å·', width: 220 } |
| | | , { field: 'HQty', title: 'æ°é', width: 80, totalRow: true } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | HInterID = $('#HInterID').val() |
| | | HBillNo = $('#HBillNo').val() |
| | | $("#HMainSourceBillType").val(d.data[0].HSourceBillType == null ? "1402" : d.data[0].HSourceBillType); |
| | | //è·åæºåç±»å |
| | | if (d.data[0].HSourceBillType == "1402") { |
| | |
| | | layer.confirm(data.Message, { |
| | | icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢','å
³é'], |
| | | btn2: function () { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | if (OperationType == 2) { |
| | | parent.location.href = "../../WMSæ«ç 模å/éå®åºåº/Kf_SellOutBillList_QiaoYi_PDA.html"; |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | } |
| | | }//å
³é |
| | | } |
| | | , function () { |
| | |
| | | layer.msg('é误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | layer.close(index) |
| | | layer.closeAll("loading"); |
| | | }) |
| | | } |
| | |
| | | |
| | | form.on('submit(cmdCancel)', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | if (OperationType == 2) { |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.close(index); |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | } |
| | | }); |
| | | }) |
| | | |
| | |
| | | //æ«ææºåæ¡ç |
| | | $('#HSourceBillNo').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | layer.load(3) |
| | | GetMeesageBySourceBillNo(); |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | |
| | | //æºåæé® |
| | | form.on('submit(HSourceBillNo-BT)', function (data) { |
| | | layer.load(3) |
| | | GetMeesageBySourceBillNo(); |
| | | layer.closeAll("loading"); |
| | | }); |
| | | |
| | | //æ«ææºåæ¡ç |
| | | function GetMeesageBySourceBillNo(obj) { |
| | | var HSourceBillNo = $('#HSourceBillNo').val() |
| | | var HSourceBillType = $("#HMainSourceBillType").val() |
| | | |
| | | layer.load(3) |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/Get_SourceBarCode_SellOut_Json", |
| | |
| | | } |
| | | } |
| | | }); |
| | | layer.closeAll("loading"); |
| | | } |
| | | |
| | | //#endregion |
| | |
| | | //æ«ææ¡ç |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | layer.load(3) |
| | | GetMeesageByBarCode(); |
| | | $("#HBarCode").focus(); //è·åå
æ |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | |
| | | //æ¡ç æé® |
| | | form.on('submit(HBarCode-BT)', function (data) { |
| | | layer.load(3) |
| | | GetMeesageByBarCode(); |
| | | $("#HBarCode").focus(); //è·åå
æ |
| | | layer.closeAll("loading"); |
| | | }); |
| | | |
| | | //æ«æ¡ç |
| | |
| | | var sSourceBillNo = $("#HSourceBillNo").val() |
| | | var sSourceBillType = $("#HMainSourceBillType").val() |
| | | |
| | | layer.load(3) |
| | | if (HDeleteFlag == "*") { |
| | | if (sBarCode == "") { |
| | | layer.msg("è¯·æ«æè¦å é¤çæ¡ç ", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | |
| | | } |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | |
| | | //#endregion |
| | |
| | | } |
| | | |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'checkbox', fixed: 'left', totalRowText: 'å计' }); |
| | | col.push({ type: 'radio', fixed: 'left', totalRowText: 'å计' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | |
| | | } |
| | | } |
| | | columns = col; |
| | | |
| | | //设置èµå¼å宽 |
| | | var colWidth = getColumnsWidth(); |
| | | if (colWidth == "" || colWidth == []) { |
| | | |
| | | } |
| | | else { |
| | | $.each(columns, function (x, m) { |
| | | m["width"] = colWidth[x]; |
| | | }); |
| | | } |
| | | listOption.cols = [columns]; |
| | | listOption.data = result.data.Materlist; |
| | | listOption.totalRow = true; |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#region è·åå宽 |
| | | function getColumnsWidth() { |
| | | var result = []; |
| | | var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length; |
| | | //è·åå宽 |
| | | $.ajax({ |
| | | type: "Get", |
| | | url: GetWEBURL() + '/tb_CellWidth/GetMouldScrapInHouseCellWidthList', |
| | | async: false, |
| | | dataType: "json", |
| | | data: { "colNum": colNum, "Name": HModName }, |
| | | success: function (data1) { |
| | | if (data1.code == 1) { |
| | | result = data1.data; |
| | | } |
| | | else if (data1.code == -1) { |
| | | |
| | | } |
| | | else { |
| | | layer.alert(data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function (e) { |
| | | layer.alert(e.Message, { icon: 5 }); |
| | | } |
| | | }); |
| | | return result; |
| | | } |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |