From cb2fc709d4e2aec6bbea3e6f4e8ccc24f3d27756 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期日, 06 十月 2024 17:27:08 +0800
Subject: [PATCH] 工艺路线工价

---
 WebTM/views/Baseset/基础资料/Gy_ProcList.html |   54 ++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 42 insertions(+), 12 deletions(-)

diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_ProcList.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_ProcList.html"
index 7bc3225..2520c4e 100644
--- "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_ProcList.html"
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_ProcList.html"
@@ -29,42 +29,72 @@
             </div>
         </div>
     </div>
-    <table class="layui-hide" id="ck-table"></table>
+    <table class="layui-hide" id="mainTable"></table>
     <script src="../../../layuiadmin/layui/layui.js"></script>
     <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
     <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
     <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
     <script>
+            function getUrlVars() {
+            var vars = [], hash;
+            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+            for (var i = 0; i < hashes.length; i++) {
+                hash = hashes[i].split('=');
+                vars.push(hash[0]);
+                vars[hash[0]] = hash[1];
+            }
+            return vars;
+        }
+        var params = getUrlVars();
+        var Type = params[params[0]];
+
         layui.use(['table', 'form', 'layer'], function () {
             var table = layui.table
             , form = layui.form
             , layer = layui.layer;
 
             form.on('submit(HQuery)', function () {
-                //var sMainStr = JSON.stringify(table.cache['ck-table']);
+                //var sMainStr = JSON.stringify(table.cache['mainTable']);
                 RoadQuery($('#Value').val());
             });
             form.on('submit(FH)', function () {
-                //var sMainStr = JSON.stringify(table.cache['ck-table']);
-                var checkStatus = table.checkStatus('ck-table')
-                 , data = checkStatus.data;
-                parent.GetHProcValue(data);
+                //var sMainStr = JSON.stringify(table.cache['mainTable']);
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+
+                 switch (Type) {
+                    case "HZR":  //杩斿洖淇濈
+                        parent.GetHZRValue(data);
+                         break;
+                     default:
+                         parent.GetHProcValue(data);
+                         break;
+                }
+               
                 var index = parent.layer.getFrameIndex(window.name);
                 parent.layer.close(index);
             });
             RoadQuery($('#Value').val());
             table.render({
-                elem: '#ck-table'
+                elem: '#mainTable'
                 // , url: '/demo/table/user/'
                , data: []
               , cellMinWidth: 80 //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
               , cols: [[
                   { type: 'radio' }
-                , { field: 'HItemID', width: 150, title: '宸ュ簭ID', hide: true }
-                , { field: '宸ュ簭浠g爜', width: 150, title: '宸ュ簭浠g爜' }
-                , { field: '宸ュ簭', width: 150, title: '宸ュ簭鍚嶇О', sort: true }
+                , { field: 'HItemID', title: '宸ュ簭ID', hide: true }
+                , { field: '宸ュ簭浠g爜', title: '宸ュ簭浠g爜' }
+                , { field: '宸ュ簭', title: '宸ュ簭鍚嶇О', sort: true }
+                , { field: '宸ヤ綔涓績ID', title: '宸ヤ綔涓績ID', hide: true }
+                , { field: '宸ヤ綔涓績浠g爜', title: '宸ヤ綔涓績浠g爜', hide: true }
+                , { field: '宸ヤ綔涓績', title: '宸ヤ綔涓績', sort: true, hide: true }
+                , { field: '閮ㄩ棬ID', title: '閮ㄩ棬ID', hide: true, hide: true }
+                , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', hide: true }
+                , { field: '閮ㄩ棬', title: '閮ㄩ棬', sort: true, hide: true }
               ]]
-              , page: true
+                , page: true
+                , limits: [50, 500, 5000, 50000],
+                limit: 50
             });
             ///鍔犺浇鏄剧ず鏁版嵁
             function RoadQuery(Where) {
@@ -81,7 +111,7 @@
                     //data: { "Value": Value },
                     success: function (result) {
                         ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
-                        table.reload('ck-table', {
+                        table.reload('mainTable', {
                             data: ajaxReturnData
                             , height: 'full-10'
                             , loading: false

--
Gitblit v1.9.1