From d043c7581faf76fe220c0d5e03a5ba55b4b177c6 Mon Sep 17 00:00:00 2001
From: wyb <1qaz@123>
Date: 星期五, 07 五月 2021 20:50:30 +0800
Subject: [PATCH] 委外派工下推委外工序计划汇报单完成

---
 WebTM/Properties/PublishProfiles/LAYUI.pubxml.user                |   17 
 WebTM/views/生产工序管理/委外工序计划汇报单/WW_Add_EntrustProcessReport.html     |  474 +++++++++++++++++++++++++++++++
 WebTM/views/生产工序管理/委外工序计划汇报单/WW_EntrustProcessReportBillList.html |   79 ++--
 WebTM/views/生产工序管理/委外工序派工单/WW_EntrustProcSendWorkBillList.html    |  285 ++++++++++--------
 WebTM/WebTM.csproj                                                |    1 
 5 files changed, 685 insertions(+), 171 deletions(-)

diff --git a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
index ccbc747..1b90972 100644
--- a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -5,7 +5,7 @@
 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup>
     <_PublishTargetUrl>D:\缃戠珯鍙戝竷\鏅轰簯MESWMS\LAYUI</_PublishTargetUrl>
-    <History>True|2021-05-06T10:08:51.9761525Z;True|2021-05-06T17:25:04.5129323+08:00;True|2021-05-06T17:18:48.0130806+08:00;True|2021-05-06T16:27:20.4296013+08:00;True|2021-05-06T16:21:58.2678114+08:00;True|2021-05-06T16:19:59.7383975+08:00;True|2021-05-06T16:17:38.0581420+08:00;True|2021-05-06T16:13:32.0399307+08:00;True|2021-05-06T16:12:43.4430581+08:00;True|2021-05-06T15:03:01.2067903+08:00;True|2021-05-06T15:00:38.4937170+08:00;True|2021-05-06T15:00:20.9792819+08:00;True|2021-05-06T14:47:13.8375625+08:00;True|2021-05-06T14:47:08.2656998+08:00;True|2021-05-06T14:31:31.6193969+08:00;True|2021-05-06T14:30:30.7221216+08:00;True|2021-05-06T14:29:07.9915201+08:00;True|2021-05-06T10:03:10.3335348+08:00;True|2021-04-28T10:26:58.1316805+08:00;True|2021-04-27T16:36:16.4269210+08:00;True|2021-04-27T16:24:41.5059209+08:00;True|2021-04-27T15:53:32.5901894+08:00;True|2021-04-27T15:22:47.3758568+08:00;True|2021-04-27T15:20:08.3268603+08:00;True|2021-04-27T15:07:44.8758565+08:00;True|2021-04-27T14:55:25.1708246+08:00;True|2021-04-27T11:29:16.9305170+08:00;True|2021-04-27T11:22:59.6375169+08:00;True|2021-04-27T11:18:40.6175151+08:00;True|2021-04-27T11:11:03.1485102+08:00;True|2021-04-27T10:59:43.1454752+08:00;True|2021-04-27T10:52:14.9373756+08:00;True|2021-04-26T16:06:17.8889031+08:00;True|2021-04-26T16:01:07.5729037+08:00;True|2021-04-26T15:43:13.1943879+08:00;True|2021-04-26T15:40:31.4783881+08:00;True|2021-04-26T13:48:32.1338637+08:00;True|2021-04-26T13:41:20.7638645+08:00;True|2021-04-26T13:36:41.2688664+08:00;True|2021-04-16T08:22:27.9458518+08:00;True|2021-04-15T16:59:13.8465752+08:00;True|2021-04-15T15:35:34.3385670+08:00;True|2021-04-15T14:45:34.4613245+08:00;True|2021-04-15T14:41:37.0870016+08:00;True|2021-04-15T14:37:07.0200028+08:00;True|2021-04-13T16:40:55.8205619+08:00;True|2021-04-13T16:17:05.5478494+08:00;</History>
+    <History>True|2021-05-07T12:22:41.7365405Z;True|2021-05-07T20:20:31.3610753+08:00;True|2021-05-07T20:20:19.7448959+08:00;True|2021-05-07T20:03:14.9285946+08:00;True|2021-05-07T09:04:49.9965754+08:00;True|2021-05-06T18:08:51.9761525+08:00;True|2021-05-06T17:25:04.5129323+08:00;True|2021-05-06T17:18:48.0130806+08:00;True|2021-05-06T16:27:20.4296013+08:00;True|2021-05-06T16:21:58.2678114+08:00;True|2021-05-06T16:19:59.7383975+08:00;True|2021-05-06T16:17:38.0581420+08:00;True|2021-05-06T16:13:32.0399307+08:00;True|2021-05-06T16:12:43.4430581+08:00;True|2021-05-06T15:03:01.2067903+08:00;True|2021-05-06T15:00:38.4937170+08:00;True|2021-05-06T15:00:20.9792819+08:00;True|2021-05-06T14:47:13.8375625+08:00;True|2021-05-06T14:47:08.2656998+08:00;True|2021-05-06T14:31:31.6193969+08:00;True|2021-05-06T14:30:30.7221216+08:00;True|2021-05-06T14:29:07.9915201+08:00;True|2021-05-06T10:03:10.3335348+08:00;True|2021-04-28T10:26:58.1316805+08:00;True|2021-04-27T16:36:16.4269210+08:00;True|2021-04-27T16:24:41.5059209+08:00;True|2021-04-27T15:53:32.5901894+08:00;True|2021-04-27T15:22:47.3758568+08:00;True|2021-04-27T15:20:08.3268603+08:00;True|2021-04-27T15:07:44.8758565+08:00;True|2021-04-27T14:55:25.1708246+08:00;True|2021-04-27T11:29:16.9305170+08:00;True|2021-04-27T11:22:59.6375169+08:00;True|2021-04-27T11:18:40.6175151+08:00;True|2021-04-27T11:11:03.1485102+08:00;True|2021-04-27T10:59:43.1454752+08:00;True|2021-04-27T10:52:14.9373756+08:00;True|2021-04-26T16:06:17.8889031+08:00;True|2021-04-26T16:01:07.5729037+08:00;True|2021-04-26T15:43:13.1943879+08:00;True|2021-04-26T15:40:31.4783881+08:00;True|2021-04-26T13:48:32.1338637+08:00;True|2021-04-26T13:41:20.7638645+08:00;True|2021-04-26T13:36:41.2688664+08:00;True|2021-04-16T08:22:27.9458518+08:00;True|2021-04-15T16:59:13.8465752+08:00;True|2021-04-15T15:35:34.3385670+08:00;True|2021-04-15T14:45:34.4613245+08:00;True|2021-04-15T14:41:37.0870016+08:00;True|2021-04-15T14:37:07.0200028+08:00;True|2021-04-13T16:40:55.8205619+08:00;True|2021-04-13T16:17:05.5478494+08:00;</History>
   </PropertyGroup>
   <ItemGroup>
     <File Include="bin/layuiadmin/layui/layui.js">
@@ -21,11 +21,11 @@
     </File>
     <File Include="bin/WebTM.dll">
       <publishTime>04/27/2021 20:31:08</publishTime>
-      <publishTime>05/06/2021 16:12:38</publishTime>
+      <publishTime>05/07/2021 20:20:13</publishTime>
     </File>
     <File Include="bin/WebTM.pdb">
       <publishTime>04/27/2021 20:31:08</publishTime>
-      <publishTime>05/06/2021 16:12:38</publishTime>
+      <publishTime>05/07/2021 20:20:13</publishTime>
     </File>
     <File Include="layuiadmin/config.js">
       <publishTime>04/12/2021 11:31:26</publishTime>
@@ -1701,11 +1701,14 @@
     </File>
     <File Include="views/鐢熶骇宸ュ簭绠$悊/濮斿宸ュ簭娲惧伐鍗�/WW_EntrustProcSendWorkBillList.html">
       <publishTime>04/27/2021 08:56:48</publishTime>
-      <publishTime>05/06/2021 16:05:06</publishTime>
+      <publishTime>05/07/2021 10:22:26</publishTime>
+    </File>
+    <File Include="views/鐢熶骇宸ュ簭绠$悊/濮斿宸ュ簭璁″垝姹囨姤鍗�/WW_Add_EntrustProcessReport.html">
+      <publishTime>05/07/2021 20:22:37</publishTime>
     </File>
     <File Include="views/鐢熶骇宸ュ簭绠$悊/濮斿宸ュ簭璁″垝姹囨姤鍗�/WW_EntrustProcessReportBillList.html">
       <publishTime>04/27/2021 08:56:48</publishTime>
-      <publishTime>05/06/2021 09:49:21</publishTime>
+      <publishTime>05/07/2021 19:47:13</publishTime>
     </File>
     <File Include="views/鐢熶骇宸ュ簭绠$悊/濮斿宸ュ簭璁″垝杞嚭鍗�/WW_EntrustProcessSendOutBillList.html">
       <publishTime>04/27/2021 08:56:48</publishTime>
@@ -1769,7 +1772,7 @@
       <publishTime>05/06/2021 09:49:21</publishTime>
     </File>
     <File Include="views/璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill.html">
-      <publishTime>05/06/2021 09:49:21</publishTime>
+      <publishTime>05/06/2021 18:16:23</publishTime>
     </File>
     <File Include="views/璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBillList.html">
       <publishTime>04/12/2021 11:31:26</publishTime>
@@ -2106,7 +2109,7 @@
     </File>
     <File Include="Web.config">
       <publishTime>04/27/2021 20:31:08</publishTime>
-      <publishTime>05/06/2021 16:12:42</publishTime>
+      <publishTime>05/07/2021 20:20:18</publishTime>
     </File>
   </ItemGroup>
 </Project>
\ No newline at end of file
diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index 1b627b5..2043c6a 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -462,6 +462,7 @@
     <Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Gy_CheckToolsFileMainList.html" />
     <Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Gy_Mould.html" />
     <Content Include="views\鐢熶骇宸ュ簭绠$悊\濮斿宸ュ簭娲惧伐鍗昞WW_AddEntrustProcSendWork.html" />
+    <Content Include="views\鐢熶骇宸ュ簭绠$悊\濮斿宸ュ簭璁″垝姹囨姤鍗昞WW_Add_EntrustProcessReport.html" />
     <Content Include="views\鐢熶骇宸ュ簭绠$悊\濮斿宸ュ簭璁″垝姹囨姤鍗昞WW_EntrustProcessReportBillList.html" />
     <Content Include="views\鐢熶骇宸ュ簭绠$悊\濮斿宸ュ簭娲惧伐鍗昞WW_EntrustProcSendWorkBillList.html" />
     <Content Include="views\鐢熶骇宸ュ簭绠$悊\濮斿宸ュ簭璁″垝杞嚭鍗昞WW_EntrustProcessSendOutBillList.html" />
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\346\264\276\345\267\245\345\215\225/WW_EntrustProcSendWorkBillList.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\346\264\276\345\267\245\345\215\225/WW_EntrustProcSendWorkBillList.html"
index 994b7cf..16df174 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\346\264\276\345\267\245\345\215\225/WW_EntrustProcSendWorkBillList.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\346\264\276\345\267\245\345\215\225/WW_EntrustProcSendWorkBillList.html"
@@ -143,6 +143,7 @@
                             <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-Pushdown"><i class="layui-icon layui-icon-form"></i>涓嬫帹濮斿姹囨姤鍗�</button>
                         </div>
                     </script>
                 </div>
@@ -317,147 +318,179 @@
             table.on('toolbar(mainTable)', function (obj) {
                 var checkStatus = table.checkStatus(obj.config.id);
                 switch (obj.event) {
-                    case 'btn-getCheckData':
-                        var data = checkStatus.data;
-                        layer.alert(JSON.stringify(data));
-                        break;
-                    //case 'getCheckLength':
-                    //    var data = checkStatus.data;
-                    //    layer.msg('閫変腑浜嗭細' + data.length + ' 涓�');
-                    //    break;
-                    //case 'isAll':
-                    //    layer.msg(checkStatus.isAll ? '鍏ㄩ��' : '鏈叏閫�');
-                    //    break;
-
-                    //鑷畾涔夊ご宸ュ叿鏍忓彸渚у浘鏍� - 鎻愮ず
-                    case 'btn-reload':
-                        _cur_page = $(".layui-laypage-em").next().html();
-                        RoadHBillNo(sql);
-                        break;
-                    case 'btn-confirm':
-                        var checkStatus = table.checkStatus('mainTable')
-                            , data = checkStatus.data;
-                        _cur_page = $(".layui-laypage-em").next().html();
-                        if (data[0]["鐘舵��"] == "鏈‘璁�") {
-                            layer.confirm('鏄惁纭鍗曟嵁?', { icon: 3, title: '鎻愮ず' }, function (index) {
-                                $.ajax({
-                                    type: "get",
-                                    url: GetWEBURL() + "POOrderAccept",
-                                    data: { "HInterID": data[0]["hmainid"].toString(), "HBillNo": data[0]["鍗曟嵁鍙�"].toString(), "HUser": sessionStorage["HUserName"] },
-                                    success: function (result) {
-                                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                                            layer.msg(result.Message, { icon: 1 });
-                                            RoadHBillNo(sql);
-                                        }
-                                        else {
-                                            // $("#verifycode").click();
-                                            layer.msg(result.Message, { icon: 5 });
-                                        }
-                                        layer.closeAll("loading");
-                                    }
-                                })
-
-                                layer.close(index);
-                            });
-
-                        }
-                        else {
-                            layer.msg("蹇呴』鏄湭纭鍗曟嵁鎵嶈兘杩涜纭鎿嶄綔锛�", { icon: 5 });
-                        }
-                        break;
-                    case 'btn-back':
-                        var checkStatus = table.checkStatus('mainTable')
-                            , data = checkStatus.data;
-                        _cur_page = $(".layui-laypage-em").next().html();
-                        var HBackRemark;
-                        if (data[0]["鐘舵��"] == "鏈‘璁�") {
-
-                            layer.prompt({
-                                formType: 2,
-                                //value: '',
-                                title: '璇疯緭鍏ラ┏鍥炵悊鐢�',
-                                area: ['400px', '200px'] //鑷畾涔夋枃鏈煙瀹介珮
-                            }, function (value, index, elem) {
-                                HBackRemark = value.toString();
-                                $.ajax({
-                                    type: "get",
-                                    url: GetWEBURL() + "POOrderRefuse",
-                                    data: { "HInterID": data[0]["hmainid"].toString(), "HBillNo": data[0]["鍗曟嵁鍙�"].toString(), "HUser": sessionStorage["HUserName"], "HBackRemark": HBackRemark },
-                                    success: function (result) {
-                                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                                            layer.msg("鎷掔粷鎴愬姛锛�", { icon: 1 });
-                                            RoadHBillNo(sql);
-                                        }
-                                        else {
-                                            // $("#verifycode").click();
-                                            layer.msg(result.Message, { icon: 5 });
-                                        }
-                                        layer.closeAll("loading");
-                                    }
-                                })
-                                //alert(value); //寰楀埌value
-                                layer.close(index);
-                            });
-
-                        }
-                        else {
-                            layer.msg("蹇呴』鏄湭纭鍗曟嵁鎵嶈兘杩涜椹冲洖鎿嶄綔锛�", { icon: 5 });
-                        }
-                        break;
-                    case 'btn-details':
-                        var checkStatus = table.checkStatus('mainTable')
-                            , data = checkStatus.data;
-
-                        var linterid = data[0].hmainid.toString();
-                        //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
-                        layer.open({
-                            type: 2
-                            , area: ['100%', '100%']
-                            , title: '閲囪喘璁㈠崟'
-                            , shade: 0.6 //閬僵閫忔槑搴�
-                            , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                            , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                            , content: '../../../src/views/SRM/SRM_POOrderBill.html?linterid=' + linterid
-                            , resize: false
-                            , cancel: function () {
-                                //$(".layui-btn").removeClass("layui-btn-disabled");
-                            }
-                        })
-                        break;
-                    case 'btn-generate':
+                    case 'btn-Pushdown':
                         var checkStatus = table.checkStatus('mainTable')
                             , data = checkStatus.data;
                         ajaxLabelData = data;
                         var rows = '';
                         var HEntry = '';
                         for (var i = 0; i < data.length; i++) {
-                            if (data[i]["鐘舵��"] == "宸茬‘璁�") {
-                                rows += data[i].hmainid.toString() + ',' + data[i].hsubid.toString() + ';';
-                            }
-                            else {
-                                HEntry += (i + 1) + ',';
-                            }
+                            rows += data[i].hmainid.toString() + ',';
+
                         }
-                        if (HEntry != '') {
-                            HEntry = HEntry.substring(0, HEntry.length - 1);
-                            layer.msg("绗�" + HEntry + "琛屾湭纭锛�", { icon: 5 });
-                        }
-                        else {
+
+                        if (checkStatus.data.length < 1) {
+                            layer.msg('璇烽�夋嫨涓�琛屾暟鎹笅鎺�');
+                        } else {
+                            //椤甸潰灞�
                             layer.open({
-                                type: 2
+                                type: 2 //Page灞傜被鍨�
                                 , area: ['100%', '100%']
-                                , title: '閫佽揣鍗�'
+                                , title: '鏂板濮斿姹囨姤鍗�'
                                 , shade: 0.6 //閬僵閫忔槑搴�
                                 , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
                                 , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../views/SRM/SRM_POInStockBill_Edit.html?linterid=' + data[0].hmainid.toString() + '&lentryid=' + rows.toString() + '&lSourceBillType=1102', 'yes']
+                                , content: ['../濮斿宸ュ簭璁″垝姹囨姤鍗�/WW_Add_EntrustProcessReport.html?HInterID=' + data[0].hmainid.toString() + '&lentryid=' + rows.toString().substring(0, rows.length - 1), 'yes']
                                 , resize: false
-                                //, cancel: function () {
-                                //    $(".layui-btn").removeClass("layui-btn-disabled");
-                                //}
-                            })
+                                , cancel: function () {
+                                    //$(".layui-btn").removeClass("layui-btn-disabled");
+                                }
+
+                            });
+
                         }
                         break;
+                    //case 'btn-getCheckData':
+                    //    var data = checkStatus.data;
+                    //    layer.alert(JSON.stringify(data));
+                    //    break;
+                    ////case 'getCheckLength':
+                    ////    var data = checkStatus.data;
+                    ////    layer.msg('閫変腑浜嗭細' + data.length + ' 涓�');
+                    ////    break;
+                    ////case 'isAll':
+                    ////    layer.msg(checkStatus.isAll ? '鍏ㄩ��' : '鏈叏閫�');
+                    ////    break;
+
+                    //鑷畾涔夊ご宸ュ叿鏍忓彸渚у浘鏍� - 鎻愮ず
+                    //case 'btn-reload':
+                    //    _cur_page = $(".layui-laypage-em").next().html();
+                    //    RoadHBillNo(sql);
+                    //    break;
+                    //case 'btn-confirm':
+                    //    var checkStatus = table.checkStatus('mainTable')
+                    //        , data = checkStatus.data;
+                    //    _cur_page = $(".layui-laypage-em").next().html();
+                    //    if (data[0]["鐘舵��"] == "鏈‘璁�") {
+                    //        layer.confirm('鏄惁纭鍗曟嵁?', { icon: 3, title: '鎻愮ず' }, function (index) {
+                    //            $.ajax({
+                    //                type: "get",
+                    //                url: GetWEBURL() + "POOrderAccept",
+                    //                data: { "HInterID": data[0]["hmainid"].toString(), "HBillNo": data[0]["鍗曟嵁鍙�"].toString(), "HUser": sessionStorage["HUserName"] },
+                    //                success: function (result) {
+                    //                    if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                    //                        layer.msg(result.Message, { icon: 1 });
+                    //                        RoadHBillNo(sql);
+                    //                    }
+                    //                    else {
+                    //                        // $("#verifycode").click();
+                    //                        layer.msg(result.Message, { icon: 5 });
+                    //                    }
+                    //                    layer.closeAll("loading");
+                    //                }
+                    //            })
+
+                    //            layer.close(index);
+                    //        });
+
+                    //    }
+                    //    else {
+                    //        layer.msg("蹇呴』鏄湭纭鍗曟嵁鎵嶈兘杩涜纭鎿嶄綔锛�", { icon: 5 });
+                    //    }
+                    //    break;
+                    //case 'btn-back':
+                    //    var checkStatus = table.checkStatus('mainTable')
+                    //        , data = checkStatus.data;
+                    //    _cur_page = $(".layui-laypage-em").next().html();
+                    //    var HBackRemark;
+                    //    if (data[0]["鐘舵��"] == "鏈‘璁�") {
+
+                    //        layer.prompt({
+                    //            formType: 2,
+                    //            //value: '',
+                    //            title: '璇疯緭鍏ラ┏鍥炵悊鐢�',
+                    //            area: ['400px', '200px'] //鑷畾涔夋枃鏈煙瀹介珮
+                    //        }, function (value, index, elem) {
+                    //            HBackRemark = value.toString();
+                    //            $.ajax({
+                    //                type: "get",
+                    //                url: GetWEBURL() + "POOrderRefuse",
+                    //                data: { "HInterID": data[0]["hmainid"].toString(), "HBillNo": data[0]["鍗曟嵁鍙�"].toString(), "HUser": sessionStorage["HUserName"], "HBackRemark": HBackRemark },
+                    //                success: function (result) {
+                    //                    if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                    //                        layer.msg("鎷掔粷鎴愬姛锛�", { icon: 1 });
+                    //                        RoadHBillNo(sql);
+                    //                    }
+                    //                    else {
+                    //                        // $("#verifycode").click();
+                    //                        layer.msg(result.Message, { icon: 5 });
+                    //                    }
+                    //                    layer.closeAll("loading");
+                    //                }
+                    //            })
+                    //            //alert(value); //寰楀埌value
+                    //            layer.close(index);
+                    //        });
+
+                    //    }
+                    //    else {
+                    //        layer.msg("蹇呴』鏄湭纭鍗曟嵁鎵嶈兘杩涜椹冲洖鎿嶄綔锛�", { icon: 5 });
+                    //    }
+                    //    break;
+                    //case 'btn-details':
+                    //    var checkStatus = table.checkStatus('mainTable')
+                    //        , data = checkStatus.data;
+
+                    //    var linterid = data[0].hmainid.toString();
+                    //    //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+                    //    layer.open({
+                    //        type: 2
+                    //        , area: ['100%', '100%']
+                    //        , title: '閲囪喘璁㈠崟'
+                    //        , shade: 0.6 //閬僵閫忔槑搴�
+                    //        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    //        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    //        , content: '../../../src/views/SRM/SRM_POOrderBill.html?linterid=' + linterid
+                    //        , resize: false
+                    //        , cancel: function () {
+                    //            //$(".layui-btn").removeClass("layui-btn-disabled");
+                    //        }
+                    //    })
+                    //    break;
+                    //case 'btn-generate':
+                    //    var checkStatus = table.checkStatus('mainTable')
+                    //        , data = checkStatus.data;
+                    //    ajaxLabelData = data;
+                    //    var rows = '';
+                    //    var HEntry = '';
+                    //    for (var i = 0; i < data.length; i++) {
+                    //        if (data[i]["鐘舵��"] == "宸茬‘璁�") {
+                    //            rows += data[i].hmainid.toString() + ',' + data[i].hsubid.toString() + ';';
+                    //        }
+                    //        else {
+                    //            HEntry += (i + 1) + ',';
+                    //        }
+                    //    }
+                    //    if (HEntry != '') {
+                    //        HEntry = HEntry.substring(0, HEntry.length - 1);
+                    //        layer.msg("绗�" + HEntry + "琛屾湭纭锛�", { icon: 5 });
+                    //    }
+                    //    else {
+                    //        layer.open({
+                    //            type: 2
+                    //            , area: ['100%', '100%']
+                    //            , title: '閫佽揣鍗�'
+                    //            , shade: 0.6 //閬僵閫忔槑搴�
+                    //            , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    //            , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    //            , content: ['../../views/SRM/SRM_POInStockBill_Edit.html?linterid=' + data[0].hmainid.toString() + '&lentryid=' + rows.toString() + '&lSourceBillType=1102', 'yes']
+                    //            , resize: false
+                    //            //, cancel: function () {
+                    //            //    $(".layui-btn").removeClass("layui-btn-disabled");
+                    //            //}
+                    //        })
+                    //    }
+                    //    break;
                     case 'btn-exit':
                         //var index = parent.layer.getFrameIndex(window.name);
                         //element.tabDelete('layadmin-layout-tabs', this);
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_Add_EntrustProcessReport.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_Add_EntrustProcessReport.html"
new file mode 100644
index 0000000..3cfdbba
--- /dev/null
+++ "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_Add_EntrustProcessReport.html"
@@ -0,0 +1,474 @@
+锘�<!DOCTYPE html>
+<html>
+<head>
+    <meta 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.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/style/admin.css" media="all">
+</head>
+<body>
+
+    <div id="layout1" class="layui-fluid">
+        <div class="layui-row layui-col-space15">
+            <div class="layui-col-md12">
+                <div class="layui-card">
+                    <form id="form0" class="layui-form" action="">
+                        <div class="layui-card-header">
+                            <div class="layui-btn-group">
+
+                                <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>
+
+                            </div>
+
+                        </div>
+                        <div class="layui-card-body">
+                            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
+                                <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">
+
+                                        <div class="layui-form-item">
+                                            <div class="layui-row">
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">鍗� 鎹� 鍙凤細</label>
+                                                    <div class="layui-input-inline">
+                                                        <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" readonly="readonly" autocomplete="off">
+                                                        <input type="hidden" name="HInterID" id="HInterID" autocomplete="off" class="layui-input">
+                                                    </div>
+                                                </div>
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">鍗曟嵁鏃ユ湡锛�</label>
+                                                    <div class="layui-input-inline">
+                                                        <input class="layui-input" name="HDate" id="HDate" readonly="readonly" autocomplete="off" disabled>
+                                                    </div>
+                                                </div>
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">浠诲姟鍗曞彿锛�</label>
+                                                    <div class="layui-input-inline">
+                                                        <input class="layui-input" name="HManagerName" id="HManagerName" autocomplete="off" disabled>
+                                                        <input id="HManagerID" name="HManagerID" type="hidden" />
+                                                    </div>
+                                                </div>
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">渚涘簲鍟嗕唬鐮侊細</label>
+                                                    <div class="layui-input-inline">
+                                                        <input type="text" name="HSupNumber" id="HSupNumber" lay-verify="HSupNumber" readonly="readonly" autocomplete="off" class="layui-input">
+                                                    </div>
+                                                </div>
+                                            </div>
+                                            <!--<button class="layui-btn" data-type="reload">閫夋嫨</button>-->
+                                        </div>
+                                        <div class="layui-form-item">
+                                            <div class="layui-row">
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">渚涘簲鍟嗭細</label>
+                                                    <div class="layui-input-inline">
+                                                        <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input">
+
+                                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupID-BT">
+                                                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+                                                        </button>
+                                                        <input id="HSupID" name="HSupID" type="hidden" />
+
+                                                    </div>
+                                                </div>
+
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label"> 瑙勬牸鍨嬪彿锛�</label>
+                                                    <div class="layui-input-inline">
+                                                        <input class="layui-input" name="HDHDate" lay-verify="HDHDate" id="HDHDate">
+                                                    </div>
+                                                </div>
+
+                                               
+
+                                            </div>
+                                        </div>
+
+
+                                        <div class="layui-form-item">
+                                            <div class="layui-row">
+
+                                                <div class="layui-col-xs6">
+                                                    <label class="layui-form-label"> 澶�    娉細</label>
+                                                    <div class="layui-input-block">
+                                                        <input class="layui-input" name="HRemark" id="HRemark" autocomplete="off">
+                                                    </div>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="layui-tab-item">
+                                        <div class="layui-form-item">
+                                            <div class="layui-row">
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">鍒� 鍗� 浜猴細</label>
+                                                    <div class="layui-input-inline">
+                                                        <input class="layui-input" name="HMaker" id="HMaker" readonly="readonly" autocomplete="off">
+                                                    </div>
+                                                </div>
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">瀹� 鏍� 浜猴細</label>
+                                                    <div class="layui-input-inline">
+                                                        <input class="layui-input" name="HChecker" id="HChecker" readonly="readonly" autocomplete="off">
+                                                    </div>
+                                                </div>
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">鍙� 鏇� 浜猴細</label>
+                                                    <div class="layui-input-inline">
+                                                        <input class="layui-input" name="HUpDater" id="HUpDater" readonly="readonly" autocomplete="off">
+                                                    </div>
+                                                </div>
+                                            </div>
+                                        </div>
+                                        <div class="layui-form-item">
+                                            <div class="layui-row">
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">鍒跺崟鏃ユ湡锛�</label>
+                                                    <div class="layui-input-inline">
+                                                        <input class="layui-input" name="HMakeDate" id="HMakeDate" readonly="readonly" autocomplete="off">
+                                                    </div>
+                                                </div>
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">瀹℃牳鏃ユ湡锛�</label>
+                                                    <div class="layui-input-inline">
+                                                        <input class="layui-input" name="HCheckDate" id="HCheckDate" readonly="readonly" autocomplete="off">
+                                                    </div>
+                                                </div>
+                                                <div class="layui-col-xs3">
+                                                    <label class="layui-form-label">鍙樻洿鏃ユ湡锛�</label>
+                                                    <div class="layui-input-inline">
+                                                        <input class="layui-input" name="HUpDateDate" id="HUpDateDate" readonly="readonly" autocomplete="off">
+                                                    </div>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+
+                                </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-add"><i class="layui-icon layui-icon-addition"></i>鎷嗗垎</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-del"><i class="layui-icon layui-icon-subtraction"></i>鍒犺</button>-->
+                            </div>
+                        </script>
+                        <blockquote class="layui-elem-quote">宸ュ簭璁″垝鍗�</blockquote>
+                    </form>
+                </div>
+            </div>
+        </div>
+    </div>
+    <script src="../../../layuiadmin/layui/layui.js"></script>
+    <script src="../../../layuiadmin/Scripts/json2.js"></script>
+    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
+    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
+    <script>
+        var sql = " and HBillType='3740' ";
+            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 HInterID = params[params[0]];
+        var lentryid = params[params[1]];
+        var PlanBeginDate = params[params[2]];
+        var PlanEndDate = params[params[3]];
+        alert(HInterID + '绗簩涓細' + lentryid);
+        sql += " and hmainid in(" + lentryid + ")"
+        var date = new Date();
+        var day = date.getDate();
+        var month = date.getMonth() + 1;
+        var year = date.getFullYear();
+        var shijian = year + "-" + month + "-" + day;
+        //鑾峰彇鍗曟嵁鍙�
+        $.ajax({
+            url: GetWEBURL() + "/Web/GetMAXNum",
+            type: "GET",
+            data: { "HBillType": '3742' },
+            success: function (d) {
+                //console.log(d.data);
+                $("#HInterID").val(d.data[0].HInterID);
+                $("#HBillNo").val(d.data[0].HBillNo);
+                 $("#HDate").val(shijian);
+                $('#HPlanBeginDate').val(shijian);
+                //HPlanEndDate
+                $('#HPlanEndDate').val(shijian);
+            }, error: function () {
+                layer.alert("鑾峰彇鍗曟嵁鍙峰け璐�!", { icon: 5 });
+            }
+        });
+
+        layui.config({
+            base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+        }).extend({
+            index: 'lib/index', //涓诲叆鍙fā鍧�
+        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
+            var $ = layui.$
+                , admin = layui.admin
+                , layer = layui.layer
+                , table = layui.table
+                , form = layui.form
+                , element = layui.element
+                , laypage = layui.laypage
+                , laydate = layui.laydate
+
+
+            //鎵ц涓�涓猯aydate瀹炰緥
+  laydate.render({
+    elem: '#HPlanBeginDate,#HPlanEndDate' //鎸囧畾鍏冪礌
+  });
+
+
+            //鍔犺浇璁″垝鍗曚笅鎺ㄧ殑鏁版嵁
+            RoadHBillSub(sql);
+            table.render({
+                elem: '#mainTable'
+                //, url: GetWEBURL()+'GetNewPOInStockShowBillSub'
+                , toolbar: '#toolbarDemo'
+                //, where: { sMsg: linterid, sMsg2: lentryid, sMsg3: lSourceBillType }
+                // , where: { sMsg: '28', sMsg2: '28,5;' }
+                , cols: [[
+                     { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true }
+                    , { field: '鏃ユ湡', title: '鏃ユ湡', sort: true, width: 120 }
+                    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true, width: 170 }
+                    , { field: '鏁伴噺', title: '鏁伴噺', edit: 'text', event: "inputHPlanQty", }
+                    , { 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: 'HSupID', title: 'HSupID', width: 160 }
+                    , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 160 }
+                    , { field: '渚涘簲鍟嗗悕绉�', title: '渚涘簲鍟嗗悕绉�', width: 160 }
+                    , { field: 'HprocID ', title: 'HprocID', width: 215 }
+                    , { field: '宸ュ簭浠g爜 ', title: '宸ュ簭浠g爜 ', width: 115 }
+                    , { field: '宸ュ簭', title: '宸ュ簭' }
+                    , { field: 'HGroupID	', title: 'HGroupID', width: 100 }
+                    , { field: '鐝粍浠g爜', title: '鐝粍浠g爜' }
+                    , { field: '鐝粍鍚嶇О', title: '鐝粍鍚嶇О' }
+                    , { field: 'HSourceID', title: 'HSourceID' }
+                    , { field: '璧勬簮浠g爜', title: '璧勬簮浠g爜' }
+                    , { field: '鐢熶骇璧勬簮', title: '鐢熶骇璧勬簮' }
+                    , { field: 'HWorkerID ', title: 'HWorkerID' }
+                    , { field: '鑱屽憳浠g爜', title: '鑱屽憳浠g爜' }
+                    , { field: '鑱屽憳	', title: '鑱屽憳' }
+                    , { field: 'hsubid', title: 'hsubid', hide: true }
+                    , { field: '璁″垝寮�宸ユ棩鏈�', title: '璁″垝寮�宸ユ棩鏈�' }
+                    , { field: '璁″垝瀹屽伐鏃ユ湡', title: '璁″垝瀹屽伐鏃ユ湡' }
+                    , { field: '璁″垝宸ユ椂', title: '璁″垝宸ユ椂' }
+                    , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞' }
+                    , { field: 'HICMOInterID', title: 'HICMOInterID ' }
+                    , { field: '鐢熶骇浠诲姟鍗曞彿', title: '鐢熶骇浠诲姟鍗曞彿' }
+                    , { field: 'HSeOrderInterID', title: 'HSeOrderInterID' }
+                    , { 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: '琛屽叧闂汉', title: '琛屽叧闂汉' }
+                    , { field: 'HBillType', title: 'HBillType' }
+                    , { field: 'HQtyDecimal', title: 'HQtyDecimal' }
+                    , { field: 'HPriceDecimal', title: 'HPriceDecimal' }
+
+                ]]
+                // , data: [linterid]
+                // , page: true
+                , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
+                //, height: 500
+                , done: function () {
+                    layer.closeAll("loading");
+                }
+            });
+            table.on('tool(mainTable)', function (obj) {
+                var data = obj.data;
+                if (obj.event === 'inputHPlanQty') {
+                    $(obj.tr).find(".layui-table-edit").keyup(function () {
+                        var $input = $(this), val = $input.val();
+                        if (!val) val = "1";
+                        $input.val(val.replace(/[^\d]/g, ''));
+                    });
+                }
+
+            });
+            ///鍔犺浇鏄剧ず鏁版嵁
+            function RoadHBillSub(sqlWhere) {
+                $.ajax({
+                    url: GetWEBURL() + '/Sc_ProcessMangement/MES_WW_EntrustProcSendWorkBill_Json',
+                    type: "GET",
+                    data: { "sqlWhere": sqlWhere },
+                    success: function (result) {
+                        console.log(result);
+                        //$("#HBillNo").val(result.data[0].HInterID);
+
+                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
+                        table.reload('mainTable', {
+                            data: ajaxReturnData
+                            , height: 'full-10'
+                            , loading: false
+                            , done: function (index, res) {
+                                layer.closeAll("loading");
+                            }
+                        });
+
+                    },
+                    error: function (result) {
+                        console.log(result);
+                    }
+                });
+            };
+              form.on('submit(Saver)', function (data) {//淇濆瓨
+                  //debugger;
+
+                var sMainStr = JSON.stringify(data.field);
+                var sSubStr = JSON.stringify(table.cache['mainTable']);
+                var sMainSub = sMainStr + ';' + sSubStr;
+                $.ajax(
+                {
+                    type: "POST",
+                        url: GetWEBURL() +"SaveWW_EntrustProcessReportBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                    async: true,
+                    data: {"msg": sMainSub  },
+                    dataType: "json",
+                    success: function (data) {
+                        if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            layer.msg(data.Message, { icon: 1 });
+                            $('#add-btn').addClass("layui-btn-disabled").attr("disabled",true);
+                        }
+                        else {
+
+                            f_alert(data.Message);
+                               console.log("bobo"+sMainStr);
+                        }
+                        layer.closeAll("loading");
+                    },
+                        error: function (err) {
+
+                            f_alert("閿欒:" + err);
+                            console.log("bobo"+sMainStr);
+                    }
+                });
+              });
+                function f_alert(sMsg) {
+                layer.alert(sMsg, { icon: 5 });
+
+            }
+
+
+            form.on('submit(Exit)', function (data) {//淇濆瓨
+                var index = parent.layer.getFrameIndex(window.name); //鍏堝緱鍒板綋鍓峣frame灞傜殑绱㈠紩
+                parent.layer.close(index); //鍐嶆墽琛屽叧闂�
+            });
+
+            //閫夋嫨渚涘簲鍟�
+            form.on('submit(HSupID-BT)', function () {//閫夋嫨渚涘簲鍟�
+                layer.open({
+                    type: 2
+                    , area: ['666px', '666px']
+                    , title: '渚涘簲鍟嗗垪琛�'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_SupplierList.html', 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            });
+
+            //閫夋嫨浜у搧
+            form.on('submit(HMateriaID-BT)', function () {//閫夋嫨浜у搧
+                layer.open({
+                    type: 2
+                    , area: ['666px', '666px']
+                    , title: '浜у搧鍒楄〃'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_MaterialList.html', 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            });
+            //HUnitID-BT
+            //閫夋嫨鍗曚綅
+            form.on('submit(HUnitID-BT)', function () {//閫夋嫨鍗曚綅
+                layer.open({
+                    type: 2
+                    , area: ['666px', '666px']
+                    , title: '鍗曚綅鍒楄〃'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_UnitList.html', 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            });
+
+
+        });
+        function GetHDeptNameValue(obj) {   //杩斿洖閮ㄩ棬
+            $("#HDeptName").val(obj[0].HName);
+            $("#HDeptID").val(obj[0].HItemID);
+            $("#HDeptNumber").val(obj[0].HNumber);
+
+        }
+
+        function GetHMaterNameValue(obj) {   //杩斿洖浜у搧
+            $("#HMateriaName").val(obj[0].HName);
+            $("#HMateriaNumber").val(obj[0].HNumber);
+
+        }
+
+        function GetHUnitNameValue(obj) {   //杩斿洖鍗曚綅
+            $("#HDHName").val(obj[0].HName);
+            $("#HDHNumber").val(obj[0].HNumber);
+
+        }
+        function GetHSupValue(obj) {  //杩斿洖渚涘簲鍟�
+            $("#HSupName").val(obj[0].HName);
+            $("#HSupID").val(obj[0].HItemID);
+            $("#HSupNumber").val(obj[0].HNumber);
+        }
+
+    </script>
+
+</body>
+</html>
\ No newline at end of file
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 60277c2..b293842 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"
@@ -235,44 +235,47 @@
                 // , 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: '瑙勬牸鍨嬪彿', 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: '浠诲姟鍗曞彿' }
+                  { 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: '浠诲姟鍗曞彿' }
               
               ]]
                 //, skin: 'row' //琛ㄦ牸椋庢牸

--
Gitblit v1.9.1