From c4e556a509b7fd8084a4aee8f4221158bac6cd3a Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期一, 25 三月 2024 13:11:56 +0800
Subject: [PATCH] 设备负荷分析表

---
 WebTM/views/生产工序管理/工序派工单/Sc_ProcessSendWorkList.html |  170 +++++++++++++++++++++++++++++++-------------------------
 1 files changed, 93 insertions(+), 77 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\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html" "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html"
index 4652f7a..a7a9e7a 100644
--- "a/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\345\267\245\345\272\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\264\276\345\267\245\345\215\225/Sc_ProcessSendWorkList.html"
@@ -1,15 +1,16 @@
 锘�<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-    <title>鐢熶骇宸ュ簭姹囨姤鍗曞垪琛�</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>鐢熶骇宸ュ簭娲惧伐鍗曞垪琛�</title>
     <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, maximum-scale=1">
     <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>
     <div class="layui-fluid">
@@ -67,11 +68,13 @@
                             <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-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-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-Add"><i class="layui-icon layui-icon-file-b"></i>鏂板</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>缂栬緫</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Pushdown"><i class="layui-icon layui-icon-form"></i>涓嬫帹</button>
 
                             </div>
@@ -90,7 +93,7 @@
             base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
         }).extend({
             index: 'lib/index', //涓诲叆鍙fā鍧�
-        }).use(['index', 'form', 'table', 'element', 'laypage','laydate'], function () {
+        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () {
             var $ = layui.$
             , admin = layui.admin
             , layer = layui.layer
@@ -99,6 +102,7 @@
             , element = layui.element
             , laypage = layui.laypage
             , laydate = layui.laydate
+            , soulTable = layui.soulTable
             //var sWhere = " 浜у搧浠g爜 = 'BX0002'";
             var sWhere = "";
 
@@ -107,70 +111,69 @@
                 , toolbar: '#toolbarDemo'
                 ,height: 'full-50' 
                 , page: true
-                ,cellMinWidth: 90
+                , cellMinWidth: 90
+                , limit: 50
+                , totalRow: true
+                , limits: [50, 500, 5000, 20000]
+                , done: function (res, curr, count) {
+                    soulTable.render(this);
+                }
                 , cols: [[
-                    //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 }
                      { type: 'checkbox' }
                      ,{ 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: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 115 }
-                    , { field: 'HUnitID', title: 'HUnitID' }
-                    , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 160 }
-                    , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 160 }
-                    , { field: 'HprocID ', title: 'HprocID', width: 215 }
-                    ////, { field: 'hunitid', title: 'hunitid' }
-                    , { field: '宸ュ簭浠g爜 ', title: '宸ュ簭浠g爜 ', width: 115 }
-                    , { field: '宸ュ簭', title: '宸ュ簭' }
-                    ////, { field: 'hempid', title: 'hempid' }
-                    , { field: 'HGroupID	', title: 'HGroupID', width: 100 }
-                    , { field: '鐝粍浠g爜', title: '鐝粍浠g爜' }
-                    , { field: '鐝粍鍚嶇О', title: '鐝粍鍚嶇О' }
-                    , { field: 'HSourceID', title: 'HSourceID' }
-                    , { field: '璧勬簮浠g爜', title: '璧勬簮浠g爜' }
-                    ////, { field: 'HCenterID', title: 'HCenterID' }
-                    , { field: '鐢熶骇璧勬簮', title: '鐢熶骇璧勬簮' }
-                    , { field: 'HWorkerID ', title: 'HWorkerID' }
-                    ////, { field: 'hbomid', title: 'hbomid' }
-                    , { field: '鑱屽憳浠g爜', title: '鑱屽憳浠g爜' }
-                    ////, { field: 'HRoutingInterID', title: 'HRoutingInterID' }
-                    , { field: '鑱屽憳	', title: '鑱屽憳' }
-                    , { field: 'hsubid', title: 'hsubid', hide: true }
-                    , { field: '鏁伴噺', title: '鏁伴噺' }
-                    , { field: '璁″垝寮�宸ユ棩鏈�', title: '璁″垝寮�宸ユ棩鏈�' }
-                    , { field: '璁″垝瀹屽伐鏃ユ湡', title: '璁″垝瀹屽伐鏃ユ湡' }
-                    , { field: '璁″垝宸ユ椂', title: '璁″垝宸ユ椂' }
-                    , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞' }
-                    , { field: 'HICMOInterID', title: 'HICMOInterID ' }
-                    , { field: '鐢熶骇浠诲姟鍗曞彿', title: '鐢熶骇浠诲姟鍗曞彿' }
-                    , { field: 'HSeOrderInterID', title: 'HSeOrderInterID' }
-                    , { field: '閿�鍞鍗曞彿', title: '閿�鍞鍗曞彿' }
-                    ////, { field: 'hsubid', title: 'hsubid' }
-                    , { 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: 'HQtyDecimal', title: 'HQtyDecimal' }
-                    , { field: 'HPriceDecimal', title: 'HPriceDecimal' }
+                    , { 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: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 115, sort: true }
+                    , { field: 'HUnitID', title: 'HUnitID', sort: true }
+                    , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 160, sort: true }
+                    , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 160, sort: true }
+                    , { field: 'HprocID ', title: 'HprocID', width: 215, sort: true }
+                    , { field: '宸ュ簭浠g爜 ', title: '宸ュ簭浠g爜 ', width: 115, sort: true }
+                    , { field: '宸ュ簭', title: '宸ュ簭', sort: true }
+                    , { field: 'HGroupID	', title: 'HGroupID', width: 100, sort: true }
+                    , { field: '鐝粍浠g爜', title: '鐝粍浠g爜', sort: true }
+                    , { field: '鐝粍鍚嶇О', title: '鐝粍鍚嶇О', sort: true }
+                    , { field: 'HSourceID', title: 'HSourceID', sort: true }
+                    , { field: '璧勬簮浠g爜', title: '璧勬簮浠g爜', sort: true }
+                    , { field: '鐢熶骇璧勬簮', title: '鐢熶骇璧勬簮', sort: true }
+                    , { field: 'HWorkerID ', title: 'HWorkerID', sort: true }
+                    , { field: '鑱屽憳浠g爜', title: '鑱屽憳浠g爜', sort: true }
+                    , { field: '鑱屽憳	', title: '鑱屽憳', sort: true }
+                    , { field: 'hsubid', title: 'hsubid', hide: true, sort: true }
+                    , { field: '鏁伴噺', title: '鏁伴噺', totalRow: true,sort: true }
+                    , { field: '璁″垝寮�宸ユ棩鏈�', title: '璁″垝寮�宸ユ棩鏈�', sort: true }
+                    , { field: '璁″垝瀹屽伐鏃ユ湡', title: '璁″垝瀹屽伐鏃ユ湡', sort: true }
+                    , { field: '璁″垝宸ユ椂', title: '璁″垝宸ユ椂', sort: true }
+                    , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', sort: true }
+                    , { field: 'HICMOInterID', title: 'HICMOInterID ', sort: true }
+                    , { field: '鐢熶骇浠诲姟鍗曞彿', title: '鐢熶骇浠诲姟鍗曞彿', sort: true }
+                    , { field: 'HSeOrderInterID', title: 'HSeOrderInterID', 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: '琛屽叧闂汉', title: '琛屽叧闂汉', sort: true }
+                    , { field: 'HBillType', title: 'HBillType', sort: true }
+                    , { field: 'HQtyDecimal', title: 'HQtyDecimal', sort: true }
+                    , { field: 'HPriceDecimal', title: 'HPriceDecimal', sort: true }
                     
                 ]]
             };
@@ -217,13 +220,26 @@
   		
                         }
                         break;
-                    case 'add':
-                        var date = new Date();
-                        var day = date.getDate();
-                        var month = date.getMonth() + 1;
-                        var year = date.getFullYear();
-                        var shijian = year + "/" + month + "/" + day;
-                        layer.msg(shijian);
+                    //娣诲姞
+                    case 'btn-Add':
+                        //椤甸潰灞�-鑷畾涔�
+                        layer.open({
+                            type: 2,
+                            skin: 'layui-layer-rim', //鍔犱笂杈规
+                            title: '宸ュ簭璁″垝鍗�',
+                            closeBtn: 1,
+                            shift: 2,
+                            area: ['100%', '100%'],
+                            maxmin: true,
+                            content: '../../鐢熶骇宸ュ簭绠$悊/宸ュ簭姹囨姤鍗�/Sc_Add_ProcessReportList.html?HInterID=-1&OperationType=1&linterid=0&HSouceBillType=0&linteridSub=-1',
+                            end: function () {
+                                //鍒锋柊椤甸潰,
+                                location.reload();
+                            },
+                            success: function (layero, index) {
+
+                            }
+                        });
                         break;
                     case '':
                         layer.msg('');
@@ -238,7 +254,7 @@
                 //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
                 url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessSendWorkMain_Json',
                 type: "GET",
-                data: { "sWhere": sWhere },
+                data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                 success: function (data1) {
                     if (data1.count == 1) {
                         option.data = data1.data;
@@ -285,7 +301,7 @@
                 $.ajax({
                     url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessSendWorkMain_Json',
                     type: "GET",
-                    data: { "sWhere": sWhere },
+                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]},
                     success: function (data1) {
                         if (data1.count == 1) {
                             option.data = data1.data;

--
Gitblit v1.9.1