123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- 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 + '/FJManager/Enums/GetInvStateList',
- maxHeight: 180,
- allowSearch: false
- });
- $('#Status').lrselect({
- url: top.$.rootUrl + '/FJManager/Enums/GetLocationStateList',
- maxHeight: 180,
- allowSearch: false
- });
- $('#WarehouseId').lrselect({
- url: top.$.rootUrl + '/FJManager/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 + '/FJManager/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 + '/FJManager/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();
- var WarehouseId = $("#WarehouseId").lrselectGet();
- if (CellCode.length == 0) {
- learun.alert.error('货位编码不能为空!');
- return false;
- }
- if (Status.length == 0) {
- learun.alert.error('状态不能为空!');
- return false;
- }
- if (WarehouseId.length == 0) {
- learun.alert.error('仓库不能为空!');
- return false;
- }
- var url = weburl + "api/Hj/UpdateCellState";
- learun.layerConfirm('是否确定修改货位状态!', function (res) {
- if (res) {
- learun.httpAsyncPost(top.$.rootUrl + '/FJManager/BaseWareCell/UpdateCellState', { CellCode: CellCode, Status: Status, WarehouseId: WarehouseId }, 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();
- }
|