From 18d71aee615af0b806ddbdbfa5ee718c63b6934e Mon Sep 17 00:00:00 2001
From: 仲国强 <519541279@qq.com>
Date: 星期三, 08 九月 2021 15:53:38 +0800
Subject: [PATCH] 恢复工序进站单

---
 WebTM/views/模治具管理/模治具仓库管理/Sc_Add_MouldScrapInBillList.html |   30 ++++++++++++++++++------------
 1 files changed, 18 insertions(+), 12 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\344\273\223\345\272\223\347\256\241\347\220\206/Sc_Add_MouldScrapInBillList.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\344\273\223\345\272\223\347\256\241\347\220\206/Sc_Add_MouldScrapInBillList.html"
index 847c440..24cce1a 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\344\273\223\345\272\223\347\256\241\347\220\206/Sc_Add_MouldScrapInBillList.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\344\273\223\345\272\223\347\256\241\347\220\206/Sc_Add_MouldScrapInBillList.html"
@@ -2,7 +2,7 @@
 <html>
 <head>
     <meta charset="utf-8" />
-    <title>鏂板/缂栬緫妯″叿鎶ュ簾鍏ュ簱鍗�</title>
+    <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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
@@ -24,6 +24,8 @@
                         <div class="layui-card-header">
                             <div class="layui-btn-group">
 
+                                <button type="button" id="copy-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">澶嶅埗</button>
+                                <button type="button" id="addnew-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">鏂板</button>
                                 <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">淇濆瓨</button>
                                 <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">閫�鍑�</button>
                                 <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="print">棰勮</button>
@@ -215,12 +217,13 @@
             //    }, function () { window.location.href = "../../user/login.html"; });
             //}
             var tableReload = table.reload;
+            //鍒濆鍖栫綉鏍�
             var option = {
                 elem: '#mainTable'
                 , toolbar: '#toolbarDemo'
                 , height: 500
                 //,url: '/demo/table/user/' //鏁版嵁鎺ュ彛
-                , page: true //寮�鍚垎椤�
+                , page: false //寮�鍚垎椤�
                 , cols: [[ //琛ㄥご
                     { type: 'checkbox', fixed: 'left' }
                     , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe", width: 100 }
@@ -254,13 +257,16 @@
                 ]]
                 , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
             };
-            //鍒ゆ柇鏄惁鏂板
+
+            //鏍规嵁閫掑叆寰桰D 鍒ゆ柇鏄惁鏂板
             if (hID == null || hID == 0) {
+                //鏂板
                 //鍒濆鍔犺浇琛ㄦ牸{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
                 option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HBatchNo": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0,"HSPCode":"","HSPName":"", "HRemark": "" }];
                 table.render(option);
             }
             else {
+                //淇敼
                 $("#HInterID").val(hID);//淇敼鏃朵富琛↖D
                 //缂栬緫鍔犺浇鏁版嵁
                 $.ajax({
@@ -295,7 +301,7 @@
                 var AddRow = table.cache['mainTable'];
                 var NewRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HBatchNo": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HRemark": "" };
                 switch (obj.event) {
-                    case 'btn-AddLine':
+                    case 'btn-AddLine': //澧炶
                         //table.cache["mainTable"].push(AddRow[rows]);
                         table.cache["mainTable"].push(NewRow);
                         option.data = table.cache["mainTable"];
@@ -303,7 +309,7 @@
                         rows++;
                         layer.msg('澧炲姞涓�琛屾寜閽紒')
                         break;
-                    case 'btn-CopyLine':
+                    case 'btn-CopyLine'://澶嶅埗琛�
                         var copydata = JSON.stringify(data);
                         if (data.length <= 0) {
                             layer.alert("璇烽�夋嫨闇�瑕佸鍒剁殑涓�琛岋紒");
@@ -322,7 +328,7 @@
                         break;
                 }
             });
-            //琛屽唴浜嬩欢
+            //琛屽唴浜嬩欢  鍒犻櫎琛�
             table.on('tool(mainTable)', function (obj) {
                 var data = obj.data;
                 var rowIndex = $(obj.tr).attr("data-index");
@@ -344,9 +350,9 @@
 
                 $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) {
                     if (event.key == "F7") {
-                        if (obj.event === 'HMaterCode')  //妯″叿淇℃伅
+                        if (obj.event === 'HMaterCode')  //妯″叿淇℃伅  濡傛灉鍦ㄦā鍏蜂唬鐮佸垪 鎸塅7
                         {
-                            //椤甸潰灞�-鑷畾涔�
+                            //椤甸潰灞�-鑷畾涔�  //F7閫夋嫨妯″叿
                             layer.open({
                                 type: 2,
                                 skin: 'layui-layer-rim', //鍔犱笂杈规
@@ -600,7 +606,7 @@
            
             });
 
-            //鐩戝惉鍗曞厓鏍肩紪杈�
+            //鐩戝惉鍗曞厓鏍肩紪杈�  鍗曞厓鏍肩紪杈戝悗 鍙樻洿
             table.on('edit(mainTable)', function (obj) {
                 // 鍗曞厓鏍肩紪杈戜箣鍓嶇殑鍊�
                 var oldText = $(this).prev().text();
@@ -665,9 +671,9 @@
             });
 
 
-            function RoadBillMain(hID)//鍔犺浇琛ㄥご
+            function RoadBillMain(hID)//鍔犺浇琛ㄥご  淇敼鏃朵粠鏁版嵁搴� 鑾峰彇鏁版嵁鍔犺浇鍒拌〃澶�
             {
-                alert(hID);
+                //alert(hID);
                 //鏌ヨ妫�楠屾柟妗堝崟鏄惁瀛樺湪
                 $.ajax({
                     url: GetWEBURL() + "Sc_MouldScrapInHouseBill/Sc_MouldScrapInHouseBillListCheckDetai",
@@ -708,7 +714,7 @@
                 });
             }
 
-
+            //鏃ユ湡妗� 榛樿涓轰粖澶�
             var date = new Date();
             var day = date.getDate();
             var month = date.getMonth() + 1;

--
Gitblit v1.9.1