| | |
| | | </style> |
| | | <script> |
| | | // 这里是需要在页面渲染之前执行的代码 |
| | | document.addEventListener("DOMContentLoaded", function() { |
| | | document.addEventListener("DOMContentLoaded", function () { |
| | | //获取table默认显示数 |
| | | pageCntFirst(); |
| | | //判断是否开启table列表列宽调整功能。 |
| | | GetIsSetColW(); |
| | | }); |
| | | </script> |
| | | </script> |
| | | </head> |
| | | |
| | | <body id="body"> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 60px;">所属仓库</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="WareHouseNo" id="WareHouseNo" lay-filter="getWareHouseNo" lay-search> |
| | | <select name="WareHouseNo" id="WareHouseNo" lay-filter="getWareHouseNo" lay-search> |
| | | <option value=""></option> |
| | | </select> |
| | | </div> |
| | |
| | | <label class="layui-form-label">撤销原因</label> |
| | | <div class="layui-input-inline"> |
| | | <textarea id="Reason" name="Reason" placeholder="请输入内容" class="layui-textarea"></textarea> |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="layui-card-body"> |
| | | <div style="position: relative;"> |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | | <ul class="layui-tab-title" id="tab"> |
| | | <li class="layui-this">托盘信息</li> |
| | | <li >箱码信息</li> |
| | | <li class="layui-this">托盘信息</li> |
| | | <li>箱码信息</li> |
| | | </ul> |
| | | |
| | | <div id="center"></div> |
| | |
| | | </button> |
| | | </div> |
| | | <!-- #endregion --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <div class="position-relative"><!-- class="position-relative" --><!-- 自定义表头加上 --> |
| | | <table id="BoxInfo" lay-filter="BoxInfo"></table> |
| | | <!-- #region 自定义表头 --> |
| | | <div class="headerSetIcon"> |
| | | <button class="layui-btn layui-btn-primary layui-btn-sm" data-type="customCols2"> |
| | | <button class="layui-btn layui-btn-primary layui-btn-sm" |
| | | data-type="customCols2"> |
| | | <i class="layui-icon"></i> |
| | | </button> |
| | | </div> |
| | | <!-- #endregion --> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <button style="margin-right: 5px;position: absolute; top: 5px; right: 10px;" class="layui-btn layuiadmin-btn-list layui-btn-sm addClass" data-type="add"> |
| | | <button style="margin-right: 5px;position: absolute; top: 5px; right: 10px;" |
| | | class="layui-btn layuiadmin-btn-list layui-btn-sm addClass" data-type="add"> |
| | | <i class="layui-icon"></i>添加 |
| | | </button> |
| | | </div> |
| | | |
| | | |
| | | <script type="text/html" id="PalletBindDemoList"> |
| | | {{# function GetPalletBindBtn(d){ |
| | | var html = ''; |
| | |
| | | {{ GetBoxInfoBtn(d) }} |
| | | </script> |
| | | |
| | | <!-- #region 自定义表头 --> |
| | | <script type="text/html" id="templetStatus"> |
| | | <!-- #region 自定义表头 --> |
| | | <script type="text/html" id="templetStatus"> |
| | | {{# function GetBtn3(d){ |
| | | switch (d.Status) { |
| | | case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">等待入库</button>'; |
| | |
| | | base: '../../layuiadmin/' //静态资源所在路径 |
| | | }).extend({ |
| | | index: 'lib/index' //主入口模块 |
| | | }).use(['index', 'table', 'laypage','element', 'layer', 'laydate'], function () { |
| | | }).use(['index', 'table', 'laypage', 'element', 'layer', 'laydate'], function () { |
| | | var table = layui.table, |
| | | form = layui.form, |
| | | element = layui.element; |
| | | laypage = layui.laypage, |
| | | laypage = layui.laypage, |
| | | layer = layui.layer; |
| | | laydate = layui.laydate; |
| | | var h1 = GetTableTabHeight(); |
| | |
| | | , format: 'yyyy-MM-dd' //可任意组合 |
| | | }); |
| | | //tab切换判断值 |
| | | var yemianid =0; |
| | | var yemianid = 0; |
| | | //接受全局变量 |
| | | let quanSkuNo = 0; |
| | | // 获取table高度 |
| | |
| | | |
| | | // 查询事件 |
| | | form.on('select(getWareHouseNo)', function (data) { |
| | | if($("#WareHouseNo").val() == "W01") |
| | | { |
| | | if ($("#WareHouseNo").val() == "W01") { |
| | | //获取巷道下拉框信息 |
| | | synData(IP + "/Sys/GetRoadwayList", {}, 'get', function (res) { |
| | | if (res.code == 0) { //成功 |
| | |
| | | } |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | else { |
| | | $("#RoadwayNo").html(''); |
| | | $("#RoadwayNo").append('<option value=""></option>'); |
| | | form.render('select'); |
| | | } |
| | | |
| | | |
| | | }); |
| | | |
| | | // 渲染总表 |
| | | //#region 自定义表头 |
| | | var TotalColsArr = [[ |
| | | {field:'',title: '序号',type: 'numbers',width: 60,align: 'center',fixed: 'left', "disabled": true}, |
| | | {field: 'ASNNo',title: '入库单号',align: 'center',width: 180, "disabled": true}, |
| | | {field: 'ASNDetailNo',title: '入库明细号',align: 'center'}, |
| | | {field: 'PalletNo',title: '托盘号',align: 'center',width: 100}, |
| | | {field: 'PalletNo2',title: '托盘号LV2',align: 'center'}, |
| | | {field: 'PalletNo3',title: '托盘号LV3',align: 'center'}, |
| | | {field: 'LocatNo',title: '储位地址',align: 'center',width: 90}, |
| | | {field: 'RoadwayNo',title: '所属巷道',align: 'center',width: 90,templet: '#RoadwayButton'}, |
| | | {field: 'WareHouseNo',title: '所属仓库',align: 'center',width: 90,templet: '#WareHouseButton'}, |
| | | {field: 'SkuNo',title: '物料编码',align: 'center',width: 110}, |
| | | {field: 'SkuName',title: '物料名称',align: 'center'}, |
| | | {field: 'Qty',title: '数量',align: 'center',width: 90}, |
| | | {field: 'FullQty',title: '整托数量',align: 'center',width: 90}, |
| | | {field: 'Status',title: '执行状态',align: 'center',width: 90,templet: '#templetStatus'}, |
| | | {field: 'BitPalletMark',title: '零托标记',align: 'center',width: 90,templet: '#templetBitPalletMark'}, |
| | | {field: 'CompleteTime',title: '完成时间',align: 'center',width: 165,templet: '#templetCompleteTime'}, |
| | | {field: 'CreateTime',title: '创建时间',align: 'center',width: 165,templet: '#templetCreateTime'}, |
| | | {field:'caozuo',title: '操作',fixed: 'right',width: 180,align: 'center',toolbar: '#PalletBindDemoList', "disabled": true} |
| | | ]]; |
| | | var TotalColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码 |
| | | { field: '', title: '序号', type: 'numbers', width: 60, align: 'center', fixed: 'left', "disabled": true }, |
| | | { field: 'ASNNo', title: '入库单号', align: 'center', width: 180, "disabled": true }, |
| | | { field: 'ASNDetailNo', title: '入库明细号', align: 'center' }, |
| | | { field: 'PalletNo', title: '托盘号', align: 'center', width: 100 }, |
| | | { field: 'PalletNo2', title: '托盘号LV2', align: 'center' }, |
| | | { field: 'PalletNo3', title: '托盘号LV3', align: 'center' }, |
| | | { field: 'LocatNo', title: '储位地址', align: 'center', width: 90 }, |
| | | { field: 'RoadwayNo', title: '所属巷道', align: 'center', width: 90, templet: '#RoadwayButton' }, |
| | | { field: 'WareHouseNo', title: '所属仓库', align: 'center', width: 90, templet: '#WareHouseButton' }, |
| | | { field: 'SkuNo', title: '物料编码', align: 'center', width: 110 }, |
| | | { field: 'SkuName', title: '物料名称', align: 'center' }, |
| | | { field: 'Qty', title: '数量', align: 'center', width: 90 }, |
| | | { field: 'FullQty', title: '整托数量', align: 'center', width: 90 }, |
| | | { field: 'Status', title: '执行状态', align: 'center', width: 90, templet: '#templetStatus' }, |
| | | { field: 'BitPalletMark', title: '零托标记', align: 'center', width: 90, templet: '#templetBitPalletMark' }, |
| | | { field: 'CompleteTime', title: '完成时间', align: 'center', width: 165, templet: '#templetCompleteTime' }, |
| | | { field: 'CreateTime', title: '创建时间', align: 'center', width: 165, templet: '#templetCreateTime' }, |
| | | { field: 'caozuo', title: '操作', fixed: 'right', width: 180, align: 'center', toolbar: '#PalletBindDemoList', "disabled": true } |
| | | ]]; |
| | | var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码 |
| | | //#endregion |
| | | function bindPalletBind() { |
| | | //#region 原始非自定义列 |
| | |
| | | |
| | | //#region 自定义表头 |
| | | var colsJson |
| | | var param1={ |
| | | Href:'BllAsn/GetPalletBindList' |
| | | var param1 = { |
| | | Href: 'BllAsn/GetPalletBindList' |
| | | }; |
| | | sendData(IP + "/Sys/GetTableColsByUserId", param1, 'post', function(res) { |
| | | if (res.code == 0){ |
| | | if(res.data=='' || res.data==undefined || res.data==null){ |
| | | colsJson=TotalColsArr |
| | | }else{ |
| | | colsJson= eval(res.data); |
| | | sendData(IP + "/Sys/GetTableColsByUserId", param1, 'post', function (res) { |
| | | if (res.code == 0) { |
| | | if (res.data == '' || res.data == undefined || res.data == null) { |
| | | colsJson = TotalColsArr |
| | | } else { |
| | | colsJson = eval(res.data); |
| | | } |
| | | }else{ |
| | | colsJson=TotalColsArr |
| | | } else { |
| | | colsJson = TotalColsArr |
| | | } |
| | | var param = { |
| | | ASNNo: $("#ASNNo").val(), |
| | |
| | | setRight() |
| | | //bindBoxInfo(res.data[0].BindNo); |
| | | //自定义列宽 |
| | | SetTableColW('PalletBind','BllAsn/GetPalletBindList',TotalColsSysArr); |
| | | SetTableColW('PalletBind', 'BllAsn/GetPalletBindList', TotalColsSysArr); |
| | | }, |
| | | cols: colsJson |
| | | }); |
| | |
| | | // 渲染明细表 |
| | | //#region 自定义表头 |
| | | var DetailColsArr = [[ |
| | | {field: '',title: '序号',type: 'numbers',width: 60,align: 'center',fixed: 'left', "disabled": true}, |
| | | {field: 'PalletNo',title: '托盘号',align: 'center',width: 95}, |
| | | {field: 'PalletNo2',title: '托盘编号LV2',align: 'center',width: 120}, |
| | | {field: 'PalletNo3',title: '托盘编号LV3',align: 'center',width: 120}, |
| | | {field: 'BoxNo',title: '箱号',align: 'center',width: 220}, |
| | | {field: 'BoxNo2',title: '盒号',align: 'center',width: 220}, |
| | | {field: 'BoxNo3',title: '支号',align: 'center',width: 220}, |
| | | {field: 'SkuNo',title: '物料编码',align: 'center',width: 150}, |
| | | {field: 'SkuName',title: '物料名称',align: 'center',align: 'center',width: 226}, |
| | | {field: 'LotNo',title: '批次号',align: 'center',width: 150,}, |
| | | {field: 'Qty',title: '数量',align: 'center',width: 105,}, |
| | | {field: 'FullQty',title: '整箱数量',align: 'center',width: 105,}, |
| | | {field: 'ProductionTime',title: '生产日期',align: 'center',width: 160,templet: '#templetProductionTime'}, |
| | | {field: 'ExpirationTime',title: '过期日期',align: 'center',width: 180,templet: '#templetExpirationTime'}, |
| | | {field: 'LotText',title: '批次描述',align: 'center',width: 150,}, |
| | | {field: 'SupplierLot',title: '供货批次',align: 'center',width: 150,}, |
| | | {field: 'InspectMark',title: '抽检标记',align: 'center',width:95,templet: '#templetInspectMark'}, |
| | | {field: 'BitBoxMark',title: '零箱标记',align: 'center',width:95,templet: '#templetBitBoxMark'}, |
| | | {field: 'InspectStatus',title: '质量状态',align: 'center',width:95,templet: '#templetInspectStatus'}, |
| | | {field: 'caozuo',title: '操作',fixed: 'right',width: 155,align: 'center',toolbar: '#BoxInfoDemoList', "disabled": true} |
| | | ]]; |
| | | var DetailColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//将表头数据进行url编码 |
| | | { field: '', title: '序号', type: 'numbers', width: 60, align: 'center', fixed: 'left', "disabled": true }, |
| | | { field: 'PalletNo', title: '托盘号', align: 'center', width: 95 }, |
| | | { field: 'PalletNo2', title: '托盘编号LV2', align: 'center', width: 120 }, |
| | | { field: 'PalletNo3', title: '托盘编号LV3', align: 'center', width: 120 }, |
| | | { field: 'BoxNo', title: '箱号', align: 'center', width: 220 }, |
| | | { field: 'BoxNo2', title: '盒号', align: 'center', width: 220 }, |
| | | { field: 'BoxNo3', title: '支号', align: 'center', width: 220 }, |
| | | { field: 'SkuNo', title: '物料编码', align: 'center', width: 150 }, |
| | | { field: 'SkuName', title: '物料名称', align: 'center', align: 'center', width: 226 }, |
| | | { field: 'LotNo', title: '批次号', align: 'center', width: 150, }, |
| | | { field: 'Qty', title: '数量', align: 'center', width: 105, }, |
| | | { field: 'FullQty', title: '整箱数量', align: 'center', width: 105, }, |
| | | { field: 'ProductionTime', title: '生产日期', align: 'center', width: 160, templet: '#templetProductionTime' }, |
| | | { field: 'ExpirationTime', title: '过期日期', align: 'center', width: 180, templet: '#templetExpirationTime' }, |
| | | { field: 'LotText', title: '批次描述', align: 'center', width: 150, }, |
| | | { field: 'SupplierLot', title: '供货批次', align: 'center', width: 150, }, |
| | | { field: 'InspectMark', title: '抽检标记', align: 'center', width: 95, templet: '#templetInspectMark' }, |
| | | { field: 'BitBoxMark', title: '零箱标记', align: 'center', width: 95, templet: '#templetBitBoxMark' }, |
| | | { field: 'InspectStatus', title: '质量状态', align: 'center', width: 95, templet: '#templetInspectStatus' }, |
| | | { field: 'caozuo', title: '操作', fixed: 'right', width: 155, align: 'center', toolbar: '#BoxInfoDemoList', "disabled": true } |
| | | ]]; |
| | | var DetailColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//将表头数据进行url编码 |
| | | //#endregion |
| | | function bindBoxInfo(BindNo) { |
| | | //#region 原始非自定义列 |
| | |
| | | |
| | | //#region 自定义表头 |
| | | var colsJson2 |
| | | var param1={ |
| | | Href:'BllAsn/GetBoxInfoList' |
| | | var param1 = { |
| | | Href: 'BllAsn/GetBoxInfoList' |
| | | }; |
| | | sendData(IP + "/Sys/GetTableColsByUserId", param1, 'post', function(res) { |
| | | if (res.code == 0){ |
| | | if(res.data=='' || res.data==undefined || res.data==null){ |
| | | colsJson2=DetailColsArr |
| | | }else{ |
| | | colsJson2= eval(res.data); |
| | | sendData(IP + "/Sys/GetTableColsByUserId", param1, 'post', function (res) { |
| | | if (res.code == 0) { |
| | | if (res.data == '' || res.data == undefined || res.data == null) { |
| | | colsJson2 = DetailColsArr |
| | | } else { |
| | | colsJson2 = eval(res.data); |
| | | } |
| | | } else { |
| | | colsJson2 = DetailColsArr |
| | | } |
| | | }else{ |
| | | colsJson2=DetailColsArr |
| | | } |
| | | var param = { |
| | | BindNo: parseInt(BindNo) |
| | | }; |
| | | table.render({ |
| | | id: 'BoxInfo', |
| | | elem: '#BoxInfo', |
| | | height: h1, |
| | | url: IP + "/BllAsn/GetBoxInfoList", |
| | | method: 'post', |
| | | contentType: 'application/json', |
| | | headers: { ToKen: $.cookie('token') }, |
| | | where: param, |
| | | // toolbar: '#BoxInfoDemo', |
| | | // defaultToolbar: ['filter'], //'print', 'exports' |
| | | page: true, |
| | | limit: pageCnt, // 默认多少页 |
| | | limits: pageLimits, // 默认数组[10,20,30,40,50] |
| | | cellMinWidth: 60, // 全局定义常规单元格的最小宽度,layui 2.2.1 新增 |
| | | even: true, |
| | | done: function () { |
| | | setRight() |
| | | //自定义列宽 |
| | | SetTableColW('BoxInfo','BllAsn/GetBoxInfoList',DetailColsSysArr); |
| | | }, |
| | | cols: colsJson2 |
| | | var param = { |
| | | BindNo: parseInt(BindNo) |
| | | }; |
| | | table.render({ |
| | | id: 'BoxInfo', |
| | | elem: '#BoxInfo', |
| | | height: h1, |
| | | url: IP + "/BllAsn/GetBoxInfoList", |
| | | method: 'post', |
| | | contentType: 'application/json', |
| | | headers: { ToKen: $.cookie('token') }, |
| | | where: param, |
| | | // toolbar: '#BoxInfoDemo', |
| | | // defaultToolbar: ['filter'], //'print', 'exports' |
| | | page: true, |
| | | limit: pageCnt, // 默认多少页 |
| | | limits: pageLimits, // 默认数组[10,20,30,40,50] |
| | | cellMinWidth: 60, // 全局定义常规单元格的最小宽度,layui 2.2.1 新增 |
| | | even: true, |
| | | done: function () { |
| | | setRight() |
| | | //自定义列宽 |
| | | SetTableColW('BoxInfo', 'BllAsn/GetBoxInfoList', DetailColsSysArr); |
| | | }, |
| | | cols: colsJson2 |
| | | }); |
| | | }); |
| | | //#endregion |
| | |
| | | |
| | | // 页面监控,点击查询加载入库总单 |
| | | form.on('submit(LAY-app-contlist-search)', function (data) { |
| | | |
| | | if(yemianid == 0){ |
| | | |
| | | if (yemianid == 0) { |
| | | bindPalletBind(); |
| | | }else if(yemianid == 1){ |
| | | } else if (yemianid == 1) { |
| | | bindBoxInfo(quanSkuNo); |
| | | } |
| | | }); |
| | |
| | | // bindBoxInfo(parseInt(obj.data.Id)); |
| | | // }); |
| | | //触发行双击事件 |
| | | table.on('rowDouble(PalletBind)', function(obj) { |
| | | table.on('rowDouble(PalletBind)', function (obj) { |
| | | $(".layui-tab-title>li").attr("class", ""); |
| | | $('.layui-tab-title>li').eq(1).attr('class', 'layui-this'); |
| | | $('.layui-tab-content .layui-tab-item').attr('class', 'layui-tab-item') |
| | | $('.layui-tab-content .layui-tab-item').eq(1).attr('class', 'layui-tab-item layui-show') |
| | | |
| | | |
| | | quanSkuNo = parseInt(obj.data.Id); |
| | | bindBoxInfo(parseInt(obj.data.Id)); |
| | | yemianid=1; |
| | | yemianid = 1; |
| | | }); |
| | | |
| | | // 添加托盘绑定信息 |
| | | var doing = true; |
| | | //添加 |
| | | //添加 |
| | | var active = { |
| | | add: function () { |
| | | layer.open({ |
| | |
| | | }); |
| | | }, |
| | | //#region 自定义表头 |
| | | customCols: function(){ |
| | | customCols: function () { |
| | | layer.open({ |
| | | type: 2, |
| | | title: '自定义列', |
| | | content: '../SystemSettings/HeaderSetting.html?Href=BllAsn/GetPalletBindList&ColsSysArr='+TotalColsSysArr, |
| | | content: '../SystemSettings/HeaderSetting.html?Href=BllAsn/GetPalletBindList&ColsSysArr=' + TotalColsSysArr, |
| | | maxmin: false, |
| | | resize: false, |
| | | area: ['970px', '650px'] |
| | | }); |
| | | }, |
| | | customCols2: function(){ |
| | | customCols2: function () { |
| | | layer.open({ |
| | | type: 2, |
| | | title: '自定义列', |
| | | content: '../SystemSettings/HeaderSetting.html?Href=BllAsn/GetBoxInfoList&ColsSysArr='+DetailColsSysArr, |
| | | content: '../SystemSettings/HeaderSetting.html?Href=BllAsn/GetBoxInfoList&ColsSysArr=' + DetailColsSysArr, |
| | | maxmin: false, |
| | | resize: false, |
| | | area: ['970px', '650px'] |
| | |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | | bindPalletBind(); |
| | | bindBoxInfo("0"); |
| | | bindBoxInfo(quanSkuNo); |
| | | }); |
| | | } else { //不成功 |
| | | layer.msg(res.msg, { |
| | |
| | | |
| | | }); |
| | | break; |
| | | case "chexiao" : |
| | | case "chexiao": |
| | | layer.open({ |
| | | type: 1, |
| | | title: '撤销申请', |
| | | content: $('#divReason'), |
| | | maxmin: true, |
| | | area: ['300px','265px'], |
| | | area: ['300px', '265px'], |
| | | btn: ['确定', '取消'], |
| | | yes: function(index, layero) { |
| | | yes: function (index, layero) { |
| | | var pa = $('#Reason').val(); |
| | | if (doing== true) { |
| | | doing= false; |
| | | |
| | | if (doing == true) { |
| | | doing = false; |
| | | |
| | | var param = { |
| | | Id: data.Id, |
| | | Id: data.Id, |
| | | Reason: pa, |
| | | }; |
| | | console.log(param); |
| | | sendData(IP + "/BllAsn/CancelPalletBind", param, 'get', function(res) { |
| | | sendData(IP + "/BllAsn/CancelPalletBind", param, 'get', function (res) { |
| | | console.log(res); |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 3000 //1秒关闭(如果不配置,默认是3秒) |
| | | }, function() { |
| | | }, function () { |
| | | bindPalletBind(); |
| | | bindBoxInfo("0"); |
| | | doing= true; |
| | | bindBoxInfo("0"); |
| | | doing = true; |
| | | }); |
| | | } else { //不成功 |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 3000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function() { |
| | | }, function () { |
| | | bindPalletBind(); |
| | | bindBoxInfo("0"); |
| | | doing= true; |
| | | bindBoxInfo("0"); |
| | | doing = true; |
| | | }); |
| | | } |
| | | layer.close(index); |
| | | }); |
| | | }else{ |
| | | } else { |
| | | layer.msg("请勿重复点击", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); |
| | | } |
| | | |
| | | |
| | | } |
| | | }); |
| | | |
| | | }); |
| | | |
| | | break; |
| | | default: break; |
| | | } |
| | |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () {}); |
| | | }, function () { }); |
| | | } |
| | | }); |
| | | }); |
| | |
| | | maxmin: true, |
| | | area: ['80%', '85%'], |
| | | btn: ['关闭'], |
| | | yes: function(index, layero) { |
| | | yes: function (index, layero) { |
| | | var iframeWindow = window['layui-layer-iframe' + index], |
| | | submitID = 'layuiadmin-app-form-edit', |
| | | submit = layero.find('iframe').contents().find('#' + submitID); |
| | | if(doing) |
| | | { |
| | | submitID = 'layuiadmin-app-form-edit', |
| | | submit = layero.find('iframe').contents().find('#' + submitID); |
| | | if (doing) { |
| | | doing = false; |
| | | |
| | | |
| | | layer.close(index); //关闭弹层 |
| | | // refreshTable(); |
| | | doing = true; |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | }); |
| | |
| | | } |
| | | |
| | | //监听Tab切换,以改变地址hash值 |
| | | element.on('tab(docDemoTabBrief)', function(data){ |
| | | element.on('tab(docDemoTabBrief)', function (data) { |
| | | yemianid = data.index |
| | | if(yemianid == 0){ |
| | | bindPalletBind( ); |
| | | }else if(yemianid == 1){ |
| | | if (yemianid == 0) { |
| | | bindPalletBind(); |
| | | } else if (yemianid == 1) { |
| | | bindBoxInfo(quanSkuNo); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | }); |
| | | </script> |