var refreshGirdData; var logbegin = ''; var logend = ''; var StartTimeBegin = ''; var StartTimeend = ''; var EndTimeBegin = ''; var EndTimeend = ''; var bootstrap = function ($, learun) { "use strict"; var page = { init: function () { //page.initGird(); page.bind(); }, bind: function () { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { // 调用后台查询 // queryJson 查询条件 }, 250); $('#InvStateCode').lrselect({ url: top.$.rootUrl + '/KLHCManager/Enums/GetInvStateList', maxHeight: 180, allowSearch: false }); $('#Status').lrselect({ url: top.$.rootUrl + '/KLHCManager/Enums/GetLocationStateList', maxHeight: 180, allowSearch: false }); //$('#WarehouseId').lrselect({ // url: top.$.rootUrl + '/KLHCManager/BaseWarehouse/GetSelectWarehouseNameList', // maxHeight: 180, // allowSearch: false //}); $("#lr_exception").on('click', function () { var isexception = $('#isexception').val(); if (isexception == '') { learun.alert.error('参数不能为空!'); return false; } learun.layerConfirm('是否启用异常轮自动入库!', function (res) { if (res) { learun.httpAsyncPost(top.$.rootUrl + '/KLHCManager/ErrorDispose/IsExceptionAutoIn', { isin: isexception }, function (data) { top.layer.close(top.layer.index); if (data.IsSucc) { learun.alert.info(data.info); } else { learun.alert.error(data.info); } }); } }); }); //修改库存状态信息 $('#Update_StockState').on('click', function () { var Code = $('#Code').val().replace(/^[' ' || ' ']*/, '').replace(/[' ' | ' ']*$/, ''); var InvStateCode = $("#InvStateCode").lrselectGet(); if (Code.length == 0) { learun.alert.error('工字轮条码不能为空!'); return false; } learun.layerConfirm('是否确定修改库存状态!', function (res) { if (res) { learun.httpAsyncPost(top.$.rootUrl + '/KLHCManager/Inventorys/UpdateStockState', { Code: Code, InvStateCode: InvStateCode }, function (data) { top.layer.close(top.layer.index); if (data.IsSucc) { learun.alert.info(data.info); } else { learun.alert.error(data.info); } }); } }); }); //修改货位状态 $('#Update_CellState').on('click', function () { var CellCode = $('#CellCode').val().replace(/^[' ' || ' ']*/, '').replace(/[' ' | ' ']*$/, ''); var Status = $("#Status").lrselectGet(); if (CellCode.length == 0) { learun.alert.error('货位编码不能为空!'); return false; } if (Status.length == 0) { learun.alert.error('状态不能为空!'); return false; } learun.layerConfirm('是否确定修改货位状态!', function (res) { if (res) { learun.httpAsyncPost(top.$.rootUrl + '/KLHCManager/BaseWareCell/UpdateCellState', { CellCode: CellCode, Status: Status }, function (data) { top.layer.close(top.layer.index); if (data.IsSucc) { learun.alert.info(data.info); } else { learun.alert.error(data.info); } }); } }); }); }, search: function (param) { $('#gridtable').jfGridSet('reload', param); } }; refreshGirdData = function () { $('#gridtable').jfGridSet('reload'); }; page.init(); }