From 869600605f4faa29123ff411861cd8f5cb18299c Mon Sep 17 00:00:00 2001 From: 王 垚 <1402714037@qq.com> Date: 星期日, 09 十月 2022 15:59:22 +0800 Subject: [PATCH] 优化 --- WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POInStockBackBillList.html | 100 +++++++++++++++++++++++++------------------------- 1 files changed, 50 insertions(+), 50 deletions(-) diff --git a/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POInStockBackBillList.html b/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POInStockBackBillList.html index 817eae9..55aa7c2 100644 --- a/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POInStockBackBillList.html +++ b/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POInStockBackBillList.html @@ -181,12 +181,12 @@ index: 'lib/index' //涓诲叆鍙fā鍧� }).use(['index', 'form', 'laydate', 'code', 'table', 'element', 'layer'], function () { var $ = layui.$ - , admin = layui.admin - , layer = layui.layer - , laydate = layui.laydate - , table = layui.table - , form = layui.form - , element = layui.element; + , admin = layui.admin + , layer = layui.layer + , laydate = layui.laydate + , table = layui.table + , form = layui.form + , element = layui.element; //甯歌鐢ㄦ硶 laydate.render({ elem: '#HDate1' @@ -207,30 +207,30 @@ , toolbar: '#toolbarDemo' //寮�鍚ご閮ㄥ伐鍏锋爮锛屽苟涓哄叾缁戝畾宸︿晶妯℃澘 , defaultToolbar: ['filter', 'exports', 'print'] // , where: { msg: "", NowPage: 1, OnePage: 10 } - , cellMinWidth: 100 - , cols: [[ - { checkbox: true, fixed: true } - , { field: '鐘舵��', title: '鐘舵��', width: 100, sort: true, fixed: true } - , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 200, sort: true, fixed: true } - , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 150 } - , { field: '璁″垝璺熻釜鍗曞彿', title: '璁″垝璺熻釜鍗曞彿', width: 100 } - , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 200 } - , { field: '鐗╂枡', title: '鐗╂枡鍚嶇О', width: 200 } - , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 200 } - , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 80, sort: true } - , { field: '鏁伴噺', title: '鏁伴噺', width: 130 } - , { field: '鍚堟牸鏁伴噺', title: '鍚堟牸鏁伴噺', width: 130 } - , { field: '涓嶅悎鏍兼暟閲�', title: '涓嶅悎鏍兼暟閲�', width: 130 } - , { field: '鏃ユ湡', title: '鏃ユ湡', width: 150 } - ]] - , page: true //鏄惁鏄剧ず鍒嗛〉 - , limits: [10, 20, 50, 100] - , limit: 50 //姣忛〉榛樿鏄剧ず鐨勬暟閲� + , cellMinWidth: 100 + , cols: [[ + { checkbox: true, fixed: true } + , { field: '鐘舵��', title: '鐘舵��', width: 100, sort: true, fixed: true } + , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 200, sort: true, fixed: true } + , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 150 } + , { field: '璁″垝璺熻釜鍗曞彿', title: '璁″垝璺熻釜鍗曞彿', width: 100 } + , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 200 } + , { field: '鐗╂枡', title: '鐗╂枡鍚嶇О', width: 200 } + , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 200 } + , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 80, sort: true } + , { field: '鏁伴噺', title: '鏁伴噺', width: 130 } + , { field: '鍚堟牸鏁伴噺', title: '鍚堟牸鏁伴噺', width: 130 } + , { field: '涓嶅悎鏍兼暟閲�', title: '涓嶅悎鏍兼暟閲�', width: 130 } + , { field: '鏃ユ湡', title: '鏃ユ湡', width: 150 } + ]] + , page: true //鏄惁鏄剧ず鍒嗛〉 + , limits: [10, 20, 50, 100, 500, 1000, 5000, 10000] + , limit: 50 //姣忛〉榛樿鏄剧ず鐨勬暟閲� //, height: 500 - , done: function (res, curr, count) { - _cur_page = curr; - layer.closeAll("loading"); - } + , done: function (res, curr, count) { + _cur_page = curr; + layer.closeAll("loading"); + } }); //澶村伐鍏锋爮浜嬩欢 @@ -241,7 +241,7 @@ var data = checkStatus.data; layer.alert(JSON.stringify(data)); break; - //鑷畾涔夊ご宸ュ叿鏍忓彸渚у浘鏍� - 鎻愮ず + //鑷畾涔夊ご宸ュ叿鏍忓彸渚у浘鏍� - 鎻愮ず case 'btn-reload': _cur_page = $(".layui-laypage-em").next().html(); RoadHBillNo(sql); @@ -249,7 +249,7 @@ case 'btn-details': var checkStatus = table.checkStatus('mainTable') - , data = checkStatus.data; + , data = checkStatus.data; var linterid = data[0].hmainid.toString(); //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉 @@ -269,27 +269,27 @@ break; case 'btn-print': var checkStatus = table.checkStatus('mainTable') - , data = checkStatus.data; + , data = checkStatus.data; window.open("../../views/SRM/HBarPlanPrint.html?linterid=" + data[0].hmainid + "&Type=HPOInStockBill"); break; case 'btn-generate': var checkStatus = table.checkStatus('mainTable') - , data = checkStatus.data; + , data = checkStatus.data; layer.open({ type: 2 - , area: ['100%', '100%'] - , title: '閫�璐у崟' - , shade: 0.6 //閬僵閫忔槑搴� - , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲 - , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� - , content: ['../../views/SRM/SRM_BarCodeBill.html?linterid=' + data[0].hmainid + '&lentryid=' + data[0].hmainid, 'yes'] - , resize: false - , cancel: function () { - $(".layui-btn").removeClass("layui-btn-disabled"); - } + , area: ['100%', '100%'] + , title: '閫�璐у崟' + , shade: 0.6 //閬僵閫忔槑搴� + , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲 + , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚� + , content: ['../../views/SRM/SRM_BarCodeBill.html?linterid=' + data[0].hmainid + '&lentryid=' + data[0].hmainid, 'yes'] + , resize: false + , cancel: function () { + $(".layui-btn").removeClass("layui-btn-disabled"); + } }) break; - case 'btn-exit': + case 'btn-exit': parent.layui.admin.events.closeThisTabs(); break; }; @@ -300,7 +300,7 @@ where = sqlWhere; $.ajax({ type: "get", - url: GetWEBURL()+"GetPOInStockBackBillList", + url: GetWEBURL() + "GetPOInStockBackBillList", async: true, data: { "HSupNo": sessionStorage["HUserName"], "sqlWhere": sqlWhere }, success: function (result) { @@ -359,11 +359,11 @@ page: { curr: 1 //閲嶆柊浠庣 1 椤靛紑濮� } - , where: { - key: { - id: demoReload.val() - } - } + , where: { + key: { + id: demoReload.val() + } + } }); }, f_Query: function () { //鏌ヨ -- Gitblit v1.9.1