From 8938589be5948c6467cc6709d69f4c192fa2d07a Mon Sep 17 00:00:00 2001
From: YL <YL@LAPTOP-SE03PLUR>
Date: 星期五, 13 八月 2021 17:36:40 +0800
Subject: [PATCH] 报工平台 完工单审核功能,web完工单列表、编辑、审核

---
 WebTM/views/模治具管理/模治具管理/Sc_Add_MouldMaintainBillList.html |  101 ++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 80 insertions(+), 21 deletions(-)

diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainBillList.html"
index 931e4fb..ac91645 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainBillList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainBillList.html"
@@ -116,19 +116,31 @@
                                 </div>
                             </div>
                         </div>
-
-                        <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-AddLine"><i class="layui-icon layui-icon-form"></i>澧炲姞涓�琛�</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>澶嶅埗涓�琛�</button>
-
+                        <div class="layui-tab layui-tab-card">
+                            <ul class="layui-tab-title">
+                                <li class="layui-this">淇濆吇椤逛俊鎭�</li>
+                                <li>閰嶄欢淇℃伅</li>
+                            </ul>
+                            <div class="layui-tab-content">
+                                <div class="layui-tab-item layui-show">
+                                    <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
+                                </div>
+                                <div class="layui-tab-item layui-show">
+                                    <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table>
+                                </div>
                             </div>
-                        </script>
-                        <script type="text/html" id="xuhao">
-                            {{d.LAY_TABLE_INDEX+1}}
-                        </script>
+                          </div>
+                         <script type="text/html" id="toolbarDemo">
+                             <div class="layui-btn-container">
+                        
+                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>澧炲姞涓�琛�</button>
+                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>澶嶅埗涓�琛�</button>
+                        
+                             </div>
+                         </script>
+                         <script type="text/html" id="xuhao">
+                             {{d.LAY_TABLE_INDEX+1}}
+                         </script>
                     </form>
                 </div>
             </div>
@@ -169,8 +181,11 @@
                 , laydate = layui.laydate
                 , element = layui.element;
             var option;
+            var option2;
+            var option1;
             var sBillType = "3807";
             var TabRow = { "HMaterID": 0, "HUnitID": "0 ", "HQty": "0   ", "HQtyMust": "0", "HManagerID": "0", "HRemark": "  " };
+            var TabRow1 = { "HMaterID": 0, "HUnitID": "0 ", "HQty": "0   ", "HQtyMust": "0", "HManagerID": "0", "HRemark": "  " };
             //#endregion
 
             //#region 杩涘叆椤甸潰鍗冲姞杞�
@@ -535,17 +550,27 @@
             //鍒濆鍖栬〃鏍�
             function set_InitGrid()
             {
+                Table1();  //淇濆吇椤瑰垪琛�
+                Table2();  //閰嶄欢椤瑰垪琛�
+              
+            }
+
+            //鍒濆鍖栦繚鍏婚」鍒楄〃
+            function Table1()
+            {
                 //琛ㄥご
-                columns = [ 
+                columns = [
                     { type: 'checkbox', fixed: 'left' }
                     , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
-                    , { field: 'HMaterID', title: '閰嶄欢浠g爜', edit: 'text', event: "" }
-                    , { field: 'HUnitID', title: '鍗曚綅浠g爜', edit: 'text', event: "" }
-                    , { field: 'HQty', title: '瀹為檯鐢ㄩ噺', edit: 'text' }
-                    , { field: 'HQtyMust', title: '鏍囧噯鐢ㄩ噺', edit: 'text' }
-                    , { field: 'HManagerID', title: '璐熻矗浜轰唬鐮�', edit: 'text' }
+                    , { field: 'HMaintainItemID', title: '淇濆吇椤圭洰ID', edit: 'text', event: "" }
+                    , { field: 'HMaintainNumber', title: '淇濆吇椤圭洰浠g爜', edit: 'text', event: "" }
+                    , { field: 'HMaintainItem', title: '淇濆吇椤圭洰', edit: 'text', event: "" }
+                    , { field: 'HMaintainPart', title: '淇濆吇閮ㄤ綅', edit: 'text', event: "" }
+                    , { field: 'HClaim', title: '鍏蜂綋瑕佹眰', edit: 'text', event: "" }
+                    , { field: 'HManagerID', title: '璐熻矗浜篒D', edit: 'text' }
+                    , { field: 'HManagerNumber', title: '璐熻矗浜轰唬鐮�', edit: 'text' }
+                    , { field: 'HManagerName', title: '璐熻矗浜�', edit: 'text' }
                     , { field: 'HRemark', title: '澶囨敞', edit: 'text' }
-                    , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo', width: 150 }
                 ];
                 option = {
                     id: 'mainTable'
@@ -561,13 +586,45 @@
                 };
             }
 
+            //鍒濆鍖栭厤浠堕」鍒楄〃
+            function Table2() {
+                //琛ㄥご
+                columns = [
+                    { type: 'checkbox', fixed: 'left' }
+                    , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
+                    , { field: 'HMaintainItemID', title: '淇濆吇椤圭洰ID', edit: 'text', event: "" }
+                    , { field: 'HMaintainNumber', title: '淇濆吇椤圭洰浠g爜', edit: 'text', event: "" }
+                    , { field: 'HMaintainItem', title: '淇濆吇椤圭洰', edit: 'text', event: "" }
+                    , { field: 'HMaintainPart', title: '淇濆吇閮ㄤ綅', edit: 'text', event: "" }
+                    , { field: 'HClaim', title: '鍏蜂綋瑕佹眰', edit: 'text', event: "" }
+                    , { field: 'HManagerID', title: '璐熻矗浜篒D', edit: 'text' }
+                    , { field: 'HManagerNumber', title: '璐熻矗浜轰唬鐮�', edit: 'text' }
+                    , { field: 'HManagerName', title: '璐熻矗浜�', edit: 'text' }
+                    , { field: 'HRemark', title: '澶囨敞', edit: 'text' }
+                ];
+                option2 = {
+                    id: 'mainTable1'
+                    , elem: '#mainTable1'
+                    , toolbar: '#toolbarDemo'
+                    , page: false
+                    , cellMinWidth: 120
+                    , height: 500
+                    , cols: [columns]
+                    , done: function (res, curr, count) {
+
+                    }
+                };
+            }
+
             //鏃犳簮鍗曟柊澧�
             function set_AddFNew()
             {
                 //鑾峰彇鏈�澶у崟鎹彿
-                get_MAXNum();
+                //get_MAXNum();
                 option.data = [TabRow];
+                option2.data = [TabRow1];
                 table.render(option);
+                table.render(option2);
             }
 
             //缂栬緫
@@ -577,6 +634,8 @@
                 set_EditGrid(linterid);  //缂栬緫鑾峰彇琛ㄤ綋
                 option.data = [TabRow];
                 table.render(option);
+                option2.data = [TabRow1];
+                table.render(option2);
             }
 
             //鑾峰彇鏈�澶у崟鎹彿鍙婇粯璁ゅ�艰祴鍊�
@@ -654,7 +713,7 @@
                 $.ajax({
                     url: GetWEBURL() + 'Sc_MouldMaintainBill/Sc_MouldMaintainBillListProjectDetai',
                     type: "GET",
-                    data: { "sqlWhere": "and HInterID=" + linterid },
+                    data: { "HInterID": linterid },
                     success: function (result) {
                         if (result.count == 1) {
                             option.data = result.data;

--
Gitblit v1.9.1