From b742f00aac8e1e1bb628232383c35e67f4a41e4e Mon Sep 17 00:00:00 2001
From: cwjbxqmz <1134865194@qq.com>
Date: 星期五, 26 一月 2024 15:21:28 +0800
Subject: [PATCH] 1
---
WebTM/views/生产工序管理/委外工序计划汇报单/WW_EntrustProcessReportBillList.html | 129 ++++++++++++++++++++++--------------------
1 files changed, 67 insertions(+), 62 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\350\256\241\345\210\222\346\261\207\346\212\245\345\215\225/WW_EntrustProcessReportBillList.html" "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\350\256\241\345\210\222\346\261\207\346\212\245\345\215\225/WW_EntrustProcessReportBillList.html"
index b293842..9f955d6 100644
--- "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\350\256\241\345\210\222\346\261\207\346\212\245\345\215\225/WW_EntrustProcessReportBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\247\224\345\244\226\345\267\245\345\272\217\350\256\241\345\210\222\346\261\207\346\212\245\345\215\225/WW_EntrustProcessReportBillList.html"
@@ -6,9 +6,10 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
- <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+ <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
<script src="../../../layuiadmin/layui/layui.js"></script>
+ <script src="../../../layuiadmin/soulTable.slim.js"></script>
</head>
<body>
@@ -136,13 +137,13 @@
<table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
<script type="text/html" id="toolbarDemo">
<div class="layui-btn-container">
- <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>-->
- <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>鍒锋柊</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>鍒锋柊</button>
<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>纭</button>
<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>椹冲洖</button>
<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>璇︽儏</button>
<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>鐢熸垚閫佽揣鍗�</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button>-->
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button>
</div>
</script>
</div>
@@ -205,14 +206,16 @@
base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
}).extend({
index: 'lib/index' //涓诲叆鍙fā鍧�
- }).use(['index', 'form', 'laydate', 'code', 'table', 'element', 'layer'], function () {
+ }).use(['index', 'form', 'laydate', 'code', 'table', 'element', 'layer','soulTable'], function () {
var $ = layui.$
, admin = layui.admin
, layer = layui.layer
, laydate = layui.laydate
, table = layui.table
, form = layui.form
+ , soulTable = layui.soulTable
, element = layui.element;
+
//甯歌鐢ㄦ硶
laydate.render({
elem: '#HDate1'
@@ -233,61 +236,63 @@
, toolbar: '#toolbarDemo' //寮�鍚ご閮ㄥ伐鍏锋爮锛屽苟涓哄叾缁戝畾宸︿晶妯℃澘
, defaultToolbar: ['filter', 'exports', 'print']
// , where: { msg: "", NowPage: 1, OnePage: 10 }
- , cellMinWidth: 100
- , cols: [[
- { type: 'checkbox', fixed: 'left' }
- , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
- , { field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
- , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
- , { field: 'HDeptID ', title: 'HDeptID', width: 105 }
- , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜' }
- , { field: '閮ㄩ棬', title: '閮ㄩ棬' }
- , { field: 'HMaterID', title: 'HMaterID' }
- , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜' }
- , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 115 }
- , { field: 'HSupID', title: 'HSupID' }
- , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 115 }
- , { field: '渚涘簲鍟嗗悕绉�', title: '渚涘簲鍟嗗悕绉�', width: 115 }
- , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 115 }
- , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞' }
- , { field: 'hsubid', title: 'hsubid', hide: true, width: 160 }
- , { field: '宸ュ簭', title: '宸ュ簭', width: 160 }
- , { field: '鍗曚环 ', title: '鍗曚环', width: 215 }
- , { field: '鏁伴噺 ', title: '鏁伴噺 ', width: 115 }
- , { field: '涓嶈壇鏁伴噺', title: '涓嶈壇鏁伴噺' }
- , { field: '鎶ュ簾鏁� ', title: '鎶ュ簾鏁�', width: 100 }
- , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞' }
- , { field: '鍒跺崟浜�', title: '鍒跺崟浜�' }
- , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡' }
- , { field: '瀹℃牳浜�', title: '瀹℃牳浜�' }
- , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡' }
- , { field: '淇敼浜� ', title: '淇敼浜�' }
- , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡' }
- , { field: '鍏抽棴浜� ', title: '鍏抽棴浜�' }
- , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡' }
- , { field: '浣滃簾浜�', title: '浣滃簾浜�' }
- , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡' }
- , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�' }
- , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�' }
- , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿' }
- , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷 ' }
- , { field: '琛屽叧闂汉', title: '琛屽叧闂汉' }
- , { field: 'HBillType', title: 'HBillType' }
- , { field: 'HBillSubType', title: 'HBillSubType' }
- , { field: 'HICMOInterID', title: 'HICMOInterID' }
- , { field: '浠诲姟鍗曞彿', title: '浠诲姟鍗曞彿' }
-
- ]]
+ , cellMinWidth: 100
+
+ , cols: [[
+ { type: 'checkbox', fixed: 'left' }
+ , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
+ , { field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
+ , { field: 'HDeptID ', title: 'HDeptID', width: 105, sort: true }
+ , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', sort: true }
+ , { field: '閮ㄩ棬', title: '閮ㄩ棬', sort: true }
+ , { field: 'HMaterID', title: 'HMaterID', sort: true }
+ , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', sort: true }
+ , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 115, sort: true }
+ , { field: 'HSupID', title: 'HSupID', sort: true }
+ , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 115, sort: true }
+ , { field: '渚涘簲鍟嗗悕绉�', title: '渚涘簲鍟嗗悕绉�', width: 115, sort: true }
+ , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 115, sort: true }
+ , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞', sort: true }
+ , { field: 'hsubid', title: 'hsubid', hide: true, width: 160, sort: true }
+ , { field: '宸ュ簭', title: '宸ュ簭', width: 160, sort: true }
+ , { field: '鍗曚环 ', title: '鍗曚环', width: 215, sort: true }
+ , { field: '鏁伴噺 ', title: '鏁伴噺 ', width: 115, sort: true }
+ , { field: '涓嶈壇鏁伴噺', title: '涓嶈壇鏁伴噺', sort: true }
+ , { field: '鎶ュ簾鏁� ', title: '鎶ュ簾鏁�', width: 100, sort: true }
+ , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', sort: true }
+ , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', sort: true }
+ , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', sort: true }
+ , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', sort: true }
+ , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', sort: true }
+ , { field: '淇敼浜� ', title: '淇敼浜�', sort: true }
+ , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', sort: true }
+ , { field: '鍏抽棴浜� ', title: '鍏抽棴浜�', sort: true }
+ , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', sort: true }
+ , { field: '浣滃簾浜�', title: '浣滃簾浜�', sort: true }
+ , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', sort: true }
+ , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�', sort: true }
+ , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�', sort: true }
+ , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', sort: true }
+ , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷 ', sort: true }
+ , { field: '琛屽叧闂汉', title: '琛屽叧闂汉', sort: true }
+ , { field: 'HBillType', title: 'HBillType', sort: true }
+ , { field: 'HBillSubType', title: 'HBillSubType', sort: true }
+ , { field: 'HICMOInterID', title: 'HICMOInterID', sort: true }
+ , { field: '浠诲姟鍗曞彿', title: '浠诲姟鍗曞彿', sort: true }
+
+ ]]
//, skin: 'row' //琛ㄦ牸椋庢牸
// , even: true
- , page: true //鏄惁鏄剧ず鍒嗛〉
- , limits: [10, 20, 50, 100]
- , limit: 50 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
+ , page: true //鏄惁鏄剧ず鍒嗛〉
+ , limits: [50, 500, 5000, 20000]
+ , 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");
+ }
});
//澶村伐鍏锋爮浜嬩欢
@@ -453,7 +458,7 @@
type: "get",
url: GetWEBURL()+"/Sc_ProcessMangement/MES_WW_EntrustProcessReportBill_Json",
async: true,
- data: { "sqlWhere": sqlWhere },//"HSupNo": sessionStorage["HUserName"],
+ data: { "sqlWhere": sqlWhere, "user": sessionStorage["HUserName"]},//"HSupNo": sessionStorage["HUserName"],
success: function (result) {
if (result.count == 1) {
ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
@@ -465,19 +470,19 @@
}
, loading: false
, done: function (index, res) {
-
+ soulTable.render(this);
}
});
- layer.close(index0);
+ //layer.close(index0);
} else {
- layer.close(index0);
+ //layer.close(index0);
layer.alert(result.code + result.Message, { icon: 5 });
}
},
error: function (result) {
console.log(result);
- layer.close(index0);
+ //layer.close(index0);
layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
}
});
--
Gitblit v1.9.1