部门设置树形结构、登录校验pc或者移动端跳转不同主页-合并
| | |
| | | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <_PublishTargetUrl>D:\ç½ç«åå¸\æºäºMESWMS\LAYUI</_PublishTargetUrl> |
| | | <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> |
| | | <History>True|2021-05-08T11:06:57.2743132Z;True|2021-05-08T19:05:29.1103688+08:00;True|2021-05-08T19:04:19.9539329+08:00;True|2021-05-08T18:01:38.7928100+08:00;True|2021-05-08T17:52:29.7429021+08:00;True|2021-05-08T17:48:25.9203761+08:00;True|2021-05-08T17:47:15.0602917+08:00;True|2021-05-08T17:43:27.4889222+08:00;True|2021-05-08T17:39:59.4612336+08:00;True|2021-05-08T17:39:33.4978946+08:00;True|2021-05-08T17:39:29.0267002+08:00;True|2021-05-08T17:37:47.5853967+08:00;True|2021-05-08T15:29:49.3055657+08:00;True|2021-05-08T15:27:07.7824934+08:00;True|2021-05-08T14:52:00.4322071+08:00;True|2021-05-08T14:30:25.4769844+08:00;True|2021-05-08T14:20:25.2085810+08:00;True|2021-05-08T13:22:50.6523779+08:00;True|2021-05-08T13:22:45.2166230+08:00;True|2021-05-08T10:18:30.8161572+08:00;True|2021-05-07T20:22:41.7365405+08:00;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"> |
| | |
| | | </File> |
| | | <File Include="bin/WebTM.dll"> |
| | | <publishTime>04/27/2021 20:31:08</publishTime> |
| | | <publishTime>05/08/2021 13:44:43</publishTime> |
| | | <publishTime>05/06/2021 16:12:38</publishTime> |
| | | </File> |
| | | <File Include="bin/WebTM.pdb"> |
| | | <publishTime>04/27/2021 20:31:08</publishTime> |
| | | <publishTime>05/08/2021 13:44:43</publishTime> |
| | | <publishTime>05/06/2021 16:12:38</publishTime> |
| | | </File> |
| | | <File Include="layuiadmin/config.js"> |
| | | <publishTime>04/12/2021 11:31:26</publishTime> |
| | |
| | | <File Include="layuiadmin/Scripts/webConfig.js"> |
| | | <publishTime>04/27/2021 13:44:39</publishTime> |
| | | <publishTime>04/30/2021 08:50:34</publishTime> |
| | | <publishTime>05/08/2021 15:06:14</publishTime> |
| | | <publishTime>05/08/2021 10:00:38</publishTime> |
| | | </File> |
| | | <File Include="layuiadmin/style/admin.css"> |
| | | <publishTime>04/12/2021 11:31:26</publishTime> |
| | |
| | | <File Include="views/index.html"> |
| | | <publishTime>04/27/2021 13:45:58</publishTime> |
| | | <publishTime>04/30/2021 08:42:02</publishTime> |
| | | <publishTime>05/08/2021 12:48:21</publishTime> |
| | | </File> |
| | | <File Include="views/index_Mobile.html"> |
| | | <publishTime>05/08/2021 13:47:16</publishTime> |
| | | <publishTime>05/08/2021 19:06:47</publishTime> |
| | | </File> |
| | | <File Include="views/senior/echarts/bar.html"> |
| | | <publishTime>04/12/2021 11:31:26</publishTime> |
| | |
| | | </File> |
| | | <File Include="views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/test.html"> |
| | | <publishTime>04/30/2021 08:52:07</publishTime> |
| | | <publishTime>05/09/2021 23:57:44</publishTime> |
| | | <publishTime>05/07/2021 20:50:32</publishTime> |
| | | </File> |
| | | <File Include="views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Xt_ORGANIZATIONSList.html"> |
| | | <publishTime>04/30/2021 08:42:02</publishTime> |
| | |
| | | </File> |
| | | <File Include="views/ç产工åºç®¡ç/å§å¤å·¥åºæ´¾å·¥å/WW_EntrustProcSendWorkBillList.html"> |
| | | <publishTime>04/27/2021 08:56:48</publishTime> |
| | | <publishTime>05/08/2021 13:16:51</publishTime> |
| | | <publishTime>05/06/2021 16:05:06</publishTime> |
| | | </File> |
| | | <File Include="views/ç产工åºç®¡ç/å§å¤å·¥åºè®¡åæ±æ¥å/WW_Add_EntrustProcessReport.html"> |
| | | <publishTime>05/08/2021 13:16:51</publishTime> |
| | | <publishTime>05/08/2021 10:03:58</publishTime> |
| | | </File> |
| | | <File Include="views/ç产工åºç®¡ç/å§å¤å·¥åºè®¡åæ±æ¥å/WW_EntrustProcessReportBillList.html"> |
| | | <publishTime>04/27/2021 08:56:48</publishTime> |
| | | <publishTime>05/08/2021 13:16:51</publishTime> |
| | | <publishTime>05/06/2021 09:49:21</publishTime> |
| | | </File> |
| | | <File Include="views/ç产工åºç®¡ç/å§å¤å·¥åºè®¡å转åºå/WW_EntrustProcessSendOutBillList.html"> |
| | | <publishTime>04/27/2021 08:56:48</publishTime> |
| | | <publishTime>04/27/2021 08:56:48</publishTime> |
| | | <publishTime>04/29/2021 16:21:52</publishTime> |
| | | <publishTime>05/08/2021 16:58:48</publishTime> |
| | | </File> |
| | | <File Include="views/ç产工åºç®¡ç/å§å¤å·¥åºè®¡å转åºå/WW_EntrustProcessSendOutBill_PDA.html"> |
| | | <publishTime>05/08/2021 18:22:52</publishTime> |
| | | </File> |
| | | <File Include="views/ç产工åºç®¡ç/å·¥åºæ±æ¥å/HBarPlanPrint.html"> |
| | | <publishTime>04/27/2021 14:14:02</publishTime> |
| | |
| | | <publishTime>03/29/2021 10:48:24</publishTime> |
| | | </File> |
| | | <File Include="views/计å管ç/å·¥èºè·¯çº¿/Gy_RoutingBill.html"> |
| | | <publishTime>05/06/2021 08:20:43</publishTime> |
| | | <publishTime>05/06/2021 09:49:21</publishTime> |
| | | </File> |
| | | <File Include="views/计å管ç/å·¥èºè·¯çº¿/Gy_RoutingBillList.html"> |
| | | <publishTime>04/12/2021 11:31:26</publishTime> |
| | |
| | | </File> |
| | | <File Include="views/ç产工åºç®¡ç/å·¥åºæ´¾å·¥å/Sc_ProcessSendWorkList.html"> |
| | | <publishTime>04/12/2021 11:31:26</publishTime> |
| | | <publishTime>04/21/2021 14:26:35</publishTime> |
| | | <publishTime>05/08/2021 17:03:54</publishTime> |
| | | </File> |
| | | <File Include="views/ç产工åºç®¡ç/å·¥åºè®¡åå/Sc_ProcessPlanList.html"> |
| | | <publishTime>04/12/2021 11:31:26</publishTime> |
| | |
| | | </File> |
| | | <File Include="Web.config"> |
| | | <publishTime>04/27/2021 20:31:08</publishTime> |
| | | <publishTime>05/08/2021 11:10:13</publishTime> |
| | | <publishTime>05/06/2021 16:12:42</publishTime> |
| | | </File> |
| | | </ItemGroup> |
| | | </Project> |
| | |
| | | <Content Include="views\ç产工åºç®¡ç\å§å¤å·¥åºè®¡åæ±æ¥å\WW_Add_EntrustProcessReport.html" /> |
| | | <Content Include="views\ç产工åºç®¡ç\å§å¤å·¥åºè®¡åæ±æ¥å\WW_EntrustProcessReportBillList.html" /> |
| | | <Content Include="views\ç产工åºç®¡ç\å§å¤å·¥åºæ´¾å·¥å\WW_EntrustProcSendWorkBillList.html" /> |
| | | <Content Include="views\ç产工åºç®¡ç\å§å¤å·¥åºè®¡åæ±æ¥å\WW_EntrustProcessReport_PDA.html" /> |
| | | <Content Include="views\ç产工åºç®¡ç\å§å¤å·¥åºè®¡å转åºå\WW_Add_EntrustProcessSendOutBill.html" /> |
| | | <Content Include="views\ç产工åºç®¡ç\å§å¤å·¥åºè®¡å转åºå\WW_EntrustProcessSendOutBillList.html" /> |
| | | <Content Include="views\ç产工åºç®¡ç\å§å¤å·¥åºè®¡å转åºå\WW_EntrustProcessSendOutBill_PDA.html" /> |
| | | <Content Include="views\ç产工åºç®¡ç\å·¥åºæ±æ¥å\HBarPlanPrint.html" /> |
| | | <Content Include="views\ç产工åºç®¡ç\å·¥åºæ±æ¥å\xmlLBM_ProcessReport.aspx" /> |
| | | <Content Include="views\ç³»ç»ç®¡ç\ä¼è®¡æé´\Xt_AccountPeriodList.html" /> |
| | |
| | | <a>å·¥åºæ±æ¥å</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产工åºç®¡ç/å·¥åºæ±æ¥å/Sc_ProcessReportList.html">å·¥åºæ±æ¥åå表</a></dd> |
| | | <dd><a lay-href="ç产工åºç®¡ç/å·¥åºæ±æ¥å/Sc_ProcessReport_PDA.html">PDAå·¥åºæ±æ¥åå表</a></dd> |
| | | <dd><a lay-href="ç产工åºç®¡ç/å·¥åºæ±æ¥å/Sc_ProcessReport_PDA.html">PDAå·¥åºæ±æ¥å</a></dd> |
| | | </dl> |
| | | </dd> |
| | | <dd class="layui-nav-itemed"> |
| | |
| | | <dd class="layui-nav-itemed"> |
| | | <a>å§å¤å·¥åºè®¡åæ±æ¥å</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产工åºç®¡ç/å§å¤å·¥åºè®¡åæ±æ¥å/WW_EntrustProcessReportBillList.html">å§å¤å·¥åºè®¡åæ±æ¥åå表</a></dd> |
| | | <dd><a lay-href="ç产工åºç®¡ç/å§å¤å·¥åºè®¡åæ±æ¥å/WW_EntrustProcessReportBillList.html">å§å¤å·¥åºæ±æ¥åå表</a></dd> |
| | | <dd><a lay-href="ç产工åºç®¡ç/å§å¤å·¥åºè®¡åæ±æ¥å/WW_EntrustProcessReport_PDA.html">PDAå§å¤å·¥åºæ±æ¥å</a></dd> |
| | | </dl> |
| | | </dd> |
| | | <dd class="layui-nav-itemed"> |
| | | <a>å§å¤å·¥åºè®¡å转åºå</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产工åºç®¡ç/å§å¤å·¥åºè®¡å转åºå/WW_EntrustProcessSendOutBillList.html">å§å¤å·¥åºè®¡å转åºåå表</a></dd> |
| | | <dd><a lay-href="ç产工åºç®¡ç/å§å¤å·¥åºè®¡å转åºå/WW_EntrustProcessSendOutBillList.html">å§å¤å·¥åºè½¬åºåå表</a></dd> |
| | | <dd><a lay-href="ç产工åºç®¡ç/å§å¤å·¥åºè®¡å转åºå/WW_EntrustProcessSendOutBill_PDA.html">PDAå§å¤å·¥åºè½¬åºå</a></dd> |
| | | </dl> |
| | | </dd> |
| | | |
| | |
| | | <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-Pushdown"><i class="layui-icon layui-icon-form"></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-Pushdown"><i class="layui-icon layui-icon-form"></i>䏿¨å§å¤æ±æ¥å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-PushdownZC"><i class="layui-icon layui-icon-form"></i>䏿¨å§å¤è½¬åºå</button> |
| | | </div> |
| | | </script> |
| | | </div> |
| | |
| | | // , where: { msg: "", NowPage: 1, OnePage: 10 } |
| | | , cellMinWidth: 100 |
| | | , cols: [[ |
| | | //{ checkbox: true, fixed: true } |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', sort: true, width: 120 } |
| | |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 160 } |
| | | , { field: 'ä¾åºååç§°', title: 'ä¾åºååç§°', width: 160 } |
| | | , { field: 'HprocID ', title: 'HprocID', width: 215 } |
| | | ////, { field: 'hunitid', title: 'hunitid' } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 115 } |
| | | , { field: 'å·¥åº', title: 'å·¥åº' } |
| | | ////, { field: 'hempid', title: 'hempid' } |
| | | , { field: 'HGroupID ', title: 'HGroupID', width: 100 } |
| | | , { field: 'çç»ä»£ç ', title: 'çç»ä»£ç ' } |
| | | , { field: 'çç»åç§°', title: 'çç»åç§°' } |
| | | , { field: 'HSourceID', title: 'HSourceID' } |
| | | , { field: 'èµæºä»£ç ', title: 'èµæºä»£ç ' } |
| | | ////, { field: 'HCenterID', title: 'HCenterID' } |
| | | , { field: 'çäº§èµæº', title: 'çäº§èµæº' } |
| | | , { field: 'HWorkerID ', title: 'HWorkerID' } |
| | | ////, { field: 'hbomid', title: 'hbomid' } |
| | | , { field: 'èå代ç ', title: 'èå代ç ' } |
| | | ////, { field: 'HRoutingInterID', title: 'HRoutingInterID' } |
| | | , { field: 'èå ', title: 'èå' } |
| | | , { field: 'hsubid', title: 'hsubid', hide: true } |
| | | , { field: 'æ°é', title: 'æ°é' } |
| | |
| | | , { field: 'ç产任å¡åå·', title: 'ç产任å¡åå·' } |
| | | , { field: 'HSeOrderInterID', title: 'HSeOrderInterID' } |
| | | , { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·' } |
| | | ////, { field: 'hsubid', title: 'hsubid' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } |
| | | , { field: 'å¶å人', title: 'å¶å人' } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ' } |
| | |
| | | |
| | | } |
| | | 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"); |
| | | // } |
| | | // }) |
| | | case 'btn-PushdownZC': |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | ajaxLabelData = data; |
| | | var rows = ''; |
| | | var HEntry = ''; |
| | | for (var i = 0; i < data.length; i++) { |
| | | rows += data[i].hmainid.toString() + ','; |
| | | |
| | | // 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]["ç¶æ"] == "æªç¡®è®¤") { |
| | | if (checkStatus.data.length < 1) { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ä¸æ¨'); |
| | | } else { |
| | | //页é¢å± |
| | | layer.open({ |
| | | type: 2 //Pageå±ç±»å |
| | | , area: ['100%', '100%'] |
| | | , title: 'æ°å¢å§å¤è½¬åºå' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../å§å¤å·¥åºè®¡å转åºå/WW_Add_EntrustProcessSendOutBill.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"); |
| | | } |
| | | |
| | | // 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; |
| | | } |
| | | break; |
| | | |
| | | case 'btn-exit': |
| | | //var index = parent.layer.getFrameIndex(window.name); |
| | | //element.tabDelete('layadmin-layout-tabs', this); |
| | |
| | | <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> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml" style="background-color:white;"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>PDAå§å¤å·¥åºæ±æ¥å</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/Scripts/json2.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <style> |
| | | .layui-form-label { |
| | | font-size: 14px; |
| | | width: 85px; |
| | | text-align: inherit; |
| | | } |
| | | /*å
¨å±è®¾ç½®è¾å
¥æ¡é«åº¦*/ |
| | | .layui-input { |
| | | height: 30px; |
| | | } |
| | | /*设置表头è¾å
¥æ¡*/ |
| | | .t1_input { |
| | | padding: 1%; |
| | | } |
| | | /*æ¬ç«ä¿¡æ¯td*/ |
| | | .bz_td { |
| | | display: -webkit-box; /*设置æé®ä¸æ¢è¡*/ |
| | | padding: 1%; /*设置è¾å
¥æ¡è¾¹è·*/ |
| | | } |
| | | /*设置æ¬ç«ä¿¡æ¯æé®é«åº¦*/ |
| | | .bz_btu { |
| | | height: 30px; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding:0"> |
| | | <div class="layui-card"> |
| | | <!--<div class="layui-card-header"></div>--> |
| | | <div class="layui-card-body" style="padding: 0;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div style="background-color:#0085E8;"> |
| | | <span style="color: white;"><i class="layui-icon layui-icon-form"></i>PDAå§å¤å·¥åºæ±æ¥å</span> |
| | | </div> |
| | | <div class="layui-form-item" style="margin: 1% 0;text-align: right;"> |
| | | <!--<button type="button" lay-submit="" lay-filter="HAddBT" class="layui-btn layui-btn-radius">æ°å¢</button>--> |
| | | <!--<button type="button" lay-submit="" lay-filter="" class="layui-btn layui-btn-radius">æ¸
空</button>--> |
| | | <button type="button" id="add-btn" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">ä¿å</button> |
| | | <button type="button" lay-submit="" lay-filter="Close" class="layui-btn layui-btn-radius layui-btn-danger">éåº</button> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <table style="width:80%;"> |
| | | <tbody> |
| | | <tr> |
| | | <th>æ¡å½¢ç </th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="è¯·æ«ææ¡å½¢ç " style="border-radius: 50px;"> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th>å§å¤æ´¾å·¥åæ®å·</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HWW_BillNo" class="layui-input" id="HWW_BillNo" placeholder="å§å¤æ´¾å·¥åæ®å·" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å§å¤æ±æ¥åå·</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HBillNo" class="layui-input" id="HBillNo" placeholder="请è¾å
¥å§å¤æ±æ¥åå·" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" class="layui-input" id="HInterID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å·¥åºå·</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HProcNo" class="layui-input" id="HProcNo" placeholder="请è¾å
¥å·¥åºå·" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th>å·¥åºä»£ç </th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HProcNumber" class="layui-input" id="HProcNumber" placeholder="请è¾å
¥å·¥åºä»£ç " style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å·¥åºåç§°</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HProcName" class="layui-input" id="HProcName" placeholder="请è¾å
¥å·¥åºåç§°" style="background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HProc-BT">...</button> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>è§æ ¼åå·</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="请è¾å
¥è§æ ¼åå·" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å建人</th> |
| | | <td class="t1_input"> |
| | | <input type="text" class="layui-input" id="HEmp" name="HEmp" placeholder="请è¾å
¥å建人" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" autocomplete="off" class="layui-input"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å®ä½æ°é</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HQty" class="layui-input" id="HQty" placeholder="请è¾å
¥å®ä½æ°é"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ä¾åºå</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HSupName" class="layui-input" id="HSupName" placeholder="éæ©ä¾åºå" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HSupID" id="HSupID" value="0" autocomplete="off" class="layui-input"> |
| | | <input type="hidden" name="HSupNumber" class="layui-input" id="HSupNumber"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HSupID-BT">...</button> |
| | | </td> |
| | | </tr> |
| | | <!--<tr> |
| | | <th>ç产订å</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HICMOBillNo" class="layui-input" id="HICMOBillNo" placeholder="请è¾å
¥ç产订å" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr>--> |
| | | |
| | | <tr> |
| | | <th>æ¥æ</th> |
| | | <td class="t1_input"> |
| | | <input type="date" name="HReportTime" class="layui-input" id="HReportTime" placeholder="è¯·éæ©æ¥æ"> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th>产å代ç </th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HMaterNumber" class="layui-input" id="HMaterNumber" placeholder="请è¾å
¥äº§å代ç " style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" class="layui-input" id="HMaterID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>产ååç§°</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaterName" class="layui-input" id="HMaterName" placeholder="è¯·éæ©äº§ååç§°" style="background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HMateria-BT">...</button> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th>é¨é¨</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HDepName" class="layui-input" id="HDepName" placeholder="è¯·éæ©é¨é¨" style="background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HDepart-BT">...</button> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr style="display:none;"> |
| | | <th></th> |
| | | <td class="bz_td"> |
| | | <!--éèåæ®µ--> |
| | | <input type="hidden" name="HICMOInterID" class="layui-input" id="HICMOInterID"><!--ä»»å¡åå·IDåhicmointerid--> |
| | | <input type="hidden" name="HDeptID" class="layui-input" id="HDeptID"><!--é¨é¨id--> |
| | | <input type="hidden" name="HDeptNumber" class="layui-input" id="HDeptNumber"> |
| | | |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.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 BillStatusjson = params[params[0]]; |
| | | var InterID = params[params[1]]; |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , element = layui.element |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , laydate = layui.laydate |
| | | , form = layui.form; |
| | | |
| | | //è·åå½åæ¶é´å¤ç |
| | | $("#HReportTime").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HEmp").val(sessionStorage["HUserName"]);//å建人 |
| | | $("#HEmpID").val(sessionStorage["HEmpID"]); |
| | | $("#HProcName").val(sessionStorage["HProcName"]);//å·¥åº |
| | | $("#HProcNumber").val(sessionStorage["HProcNumber"]);//å·¥åºä»£ç |
| | | $("#HProcID").val(sessionStorage["HProcID"]);//å·¥åºID |
| | | $("#HSource").val(sessionStorage["HSource"]);//çäº§èµæº |
| | | $("#HSourceID").val(sessionStorage["HSourceID"]); |
| | | $("#HGroup").val(sessionStorage["HGroup"]);//ç产çç» |
| | | $("#HGroupID").val(sessionStorage["HGroupID"]); |
| | | $("#HGroupNumber").val(sessionStorage["HGroupNumber"]);//çç»ä»£ç |
| | | $("#HCenter").val(sessionStorage["HWorkCenter"]);//å·¥ä½ä¸å¿ |
| | | $("#HCenterID").val(sessionStorage["HWorkCenterID"]); |
| | | $("#HProcNo").val(sessionStorage["HProcNo"]);//å·¥åºå· |
| | | |
| | | |
| | | |
| | | //页é¢åå§åèµå¼ |
| | | //è·ååæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3742' }, |
| | | success: function (d) { |
| | | $("#HBillNo").val(d.data[0].HBillNo);//å§å¤æ±æ¥åå· |
| | | $("#HInterID").val(d.data[0].HInterID);// |
| | | }, error: function () { |
| | | layer.alert("è·ååæ®å·å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | $("#HBarCode").focus(); |
| | | $("#HBarCode").css("box-shadow", "0 0 0 1px #00ff00"); |
| | | |
| | | |
| | | //æ«æ¡å½¢ç æ¹æ³ |
| | | $('#HBarCode').on('keydown', function (event) { //æ«æ¡å½¢ç |
| | | var HBarCode = $('#HBarCode').val();//æ¡å½¢ç ï¼æµè½¬å¡å·ï¼ï¼æ°æ®åºä¸ä¸ºåæ®å·ï¼ |
| | | if (event.keyCode == 13) { |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | if (HBarCode == "") { |
| | | layer.alert("æ¡å½¢ç 为空ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | //æ¥è¯¢å§å¤æ´¾å·¥åæ®æ¯å¦åå¨ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_ProcessMangement/WWgetHbarCodeDetail", |
| | | type: "GET", |
| | | data: { |
| | | "sBillBarCode": HBarCode |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data.h_v_WW_EntrustProcSendWorkBillList[0]; |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HWW_BillNo": $("#HBarCode").val() |
| | | , "HEmp": $("#HEmp").val() |
| | | , "HProcID": data.HprocID |
| | | , "HDeptID": data.HDeptID |
| | | , "HQty": data.æ°é |
| | | , "HMaterID": data.HMaterID |
| | | , "HMaterNumber": data.ç©æä»£ç |
| | | , "HMaterModel": data.è§æ ¼åå· |
| | | , "HDeptNumber": data.é¨é¨ä»£ç |
| | | , "HProcNumber": data.å·¥åºä»£ç |
| | | , "HProcName": data.å·¥åº |
| | | //, "HOrderProcNO":data.订åè·è¸ªå· |
| | | }); |
| | | //$("#HBarCode").attr("readonly", "readonly");//æ¡å½¢ç åªè¯» |
| | | //$("#HBarCode").css("background-color", "#efefef4d"); |
| | | $("#HBarCode").css("box-shadow", "none"); |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ«æ¡å½¢ç æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //å§å¤æ±æ¥åå·åè½¦æ¹æ³ |
| | | $('#HProcNo').on('keydown', function (event) { //æ«æ¡å½¢ç |
| | | var HProcNo = $('#HProcNo').val(); |
| | | var HBarCode = $('#HBarCode').val(); |
| | | if (event.keyCode == 13) { |
| | | if (HProcNo == "" || HBarCode == "") { |
| | | layer.alert("å·¥åºå·æå§å¤æ±æ¥åå·ä¸ºç©ºï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_ProcessMangement/WWgetProcDetail", |
| | | type: "GET", |
| | | data: { |
| | | "sBillNo": HBarCode |
| | | , "sProcNo": HProcNo |
| | | }, |
| | | success: function (result) { |
| | | var data = result.data.h_v_WW_EntrustProcSendWorkBillList[0]; |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HProcID": data.HprocID |
| | | , "HEmp": $("#HEmp").val() |
| | | , "HDeptID": data.HDeptID |
| | | , "HQty": data.æ°é |
| | | , "HMaterID": data.HMaterID |
| | | , "HMaterNumber": data.ç©æä»£ç |
| | | , "HDeptNumber": data.é¨é¨ä»£ç |
| | | , "HProcNumber": data.å·¥åºä»£ç |
| | | , "HProcName": data.å·¥åº |
| | | }); |
| | | $("#HProcNo").css("box-shadow", "none"); |
| | | checkPopup(); |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("å·¥åºå·æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //éæ©ä¾åºå |
| | | 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(HMateria-BT)', function () {//产å |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç©æ' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | //éæ©å·¥åº |
| | | form.on('submit(HProc-BT)', function () {//éæ©å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | //Gy_DepartmentList |
| | | //éæ©é¨é¨ |
| | | form.on('submit(HDepart-BT)', function () {//éæ©é¨é¨ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'é¨é¨å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //ä¿åæé® |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | //debugger; |
| | | var sMainStr = JSON.stringify(data.field); |
| | | console.log(sMainStr); |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "SaveWWReport", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: {"msg":sMainStr}, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | console.log(data); |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | //$("#sHWHID").val(""); |
| | | //layer.alert(result.msg + "åå·ä¸ºï¼" + $("#HBillNo").val(), { icon: 1 }, function () { |
| | | // window.location.reload();//å·æ°é¡µé¢ |
| | | //}); |
| | | //layer.confirm(result.msg + "åå·ä¸ºï¼" + $("#HBillNo").val(), { |
| | | // btn: ['åºç«', 'æ°å¢'], skin: 'layui-layer-lan', title: "温馨æç¤º", icon: 1 |
| | | //}, function () { |
| | | // parent.location.href = "../../../views/车é´ç®¡ç/å·¥åºæ±æ¥/MES_StationOutBill_PDA.html"; |
| | | //}, function () { |
| | | // window.location.reload(); |
| | | //}); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else |
| | | { |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | layui.form.render(); |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥:" + err, { icon: 5 }); |
| | | } |
| | | }); |
| | | }); |
| | | function f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | } |
| | | |
| | | //éåºæé® |
| | | form.on('submit(Close)', function (data) {//éåº |
| | | layer.confirm('æ¨ç¡®å®è¦å
³éæ¬é¡µåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.location.href = "../../../views/index.html"; |
| | | }); |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(HAddBT)', function (data) {//éåº |
| | | layer.confirm('æ¨ç¡®å®è¦æ°å¢åï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | window.location.reload(); |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | //åçjsåå§å |
| | | $(function () { |
| | | |
| | | }); |
| | | |
| | | //æ ¡éªæ¯å¦éæ©å¼¹çªäºä»¶ |
| | | function checkPopup() { |
| | | //if (!$("#HSource").val()) {//çäº§èµæº |
| | | // $("#HSource").css("box-shadow", "0 0 1px 2px #00ff00"); |
| | | //} |
| | | //else |
| | | if (!$("#HGroup").val()) { |
| | | $("#HGroup").css("box-shadow", "0 0 1px 2px #00ff00"); |
| | | } |
| | | else if (!$("#HCenter").val()) { |
| | | $("#HCenter").css("box-shadow", "0 0 1px 2px #00ff00"); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | //è¿å产å |
| | | function GetHMaterNameValue(obj) { //è¿å产å |
| | | $("#HMaterName").val(obj[0].HName); |
| | | $("#HMaterID").val(obj[0].HItemID); |
| | | $("#HMaterNumber").val(obj[0].HNumber); |
| | | } |
| | | //è¿åå·¥åº |
| | | function GetHProcValue(obj) { //è¿åå·¥åº |
| | | $("#HProcName").val(obj[0].å·¥åº); |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | $("#HProcNumber").val(obj[0].å·¥åºä»£ç ); |
| | | } |
| | | function GetHSupValue(obj) { //è¿åä¾åºå |
| | | $("#HSupName").val(obj[0].HName); |
| | | $("#HSupID").val(obj[0].HItemID); |
| | | $("#HSupNumber").val(obj[0].HNumber); |
| | | } |
| | | |
| | | function GetHDeptNameValue(obj) { //è¿åé¨é¨ |
| | | $("#HDepName").val(obj[0].HName); |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | $("#HDeptNumber").val(obj[0].HNumber); |
| | | } |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | <!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 layui-form-pane" 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> |
| | | <!--<button type="button" id="Closeing" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Closeing">å
³é</button> |
| | | <button type="button" id="BackClose" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="BackClose">åå
³é</button> |
| | | <button type="button" id="Auditing" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Auditing">å®¡æ ¸</button> |
| | | <button type="button" id="BackAudit" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="BackAudit">åå®¡æ ¸</button> |
| | | <button type="button" id="Printing" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Printing">æå°</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 type="text" name="HSupNumber" id="HSupNumber" lay-verify="HSupNumber" readonly="readonly" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | |
| | | <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> |
| | | <!--<button class="layui-btn" data-type="reload">éæ©</button>--> |
| | | </div> |
| | | |
| | | |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | |
| | | <div class="layui-col-xs8"> |
| | | <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"> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" 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="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 class="layui-col-xs3"> |
| | | <label class="layui-form-label">å
³é人ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCloseMan" id="HCloseMan" 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 class="layui-col-xs3"> |
| | | <label class="layui-form-label">å
³éæ¥æï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCloseDate" id="HCloseDate" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <blockquote class="layui-elem-quote">å§å¤å·¥åºæ´¾å·¥å</blockquote> |
| | | <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> |
| | | |
| | | |
| | | </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" + 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; |
| | | var CurUserName; |
| | | if (typeof (lentryid) == "undefined") { |
| | | $('#HDeptID-BT').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#HRemark').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_ProcessMangement/MES_DetailSc_ProcessReportList_Json", |
| | | type: "GET", |
| | | data: { "HInterID": parseInt( HInterID) }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | $("#HInterID").val(data1.data[0].HInterID);// |
| | | $("#HBillNo").val(data1.data[0].HBillNo);// |
| | | $("#HDate").val(data1.data[0].HDate); |
| | | $("#HDeptName").val(data1.data[0].HName); |
| | | $("#HDeptNumber").val(data1.data[0].HNumber); |
| | | $("#HICMOBillNo").val(data1.data[0].HICMOBillNo); |
| | | $("#HRemark").val(data1.data[0].HRemark); |
| | | $("#HPlanQty").val(data1.data[0].HPlanQty); |
| | | $("#HMaker").val(data1.data[0].HMaker); |
| | | $("#HMakeDate").val(data1.data[0].HMakeDate); |
| | | $("#HChecker").val(data1.data[0].HChecker); |
| | | $("#HCheckDate").val(data1.data[0].HCheckDate); |
| | | $("#HUpDater").val(data1.data[0].HUpDater); |
| | | $("#HUpDateDate").val(data1.data[0].HUpDateDate); |
| | | $("#HCloseMan").val(data1.data[0].HCloseMan); |
| | | $("#HCloseDate").val(data1.data[0].HCloseDate); |
| | | } else { |
| | | layer.msg(data1.Message); |
| | | } |
| | | |
| | | }, error: function () { |
| | | layer.alert("è·åæ°æ®å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | //è·ååæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3741' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HBillNo").val(d.data[0].HBillNo);// |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HDate").val(shijian); |
| | | $('#HPlanBeginDate').val(shijian); |
| | | //HPlanEndDate |
| | | $('#HPlanEndDate').val(shijian); |
| | | }, error: function () { |
| | | layer.alert("è·ååæ®å·å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).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 |
| | | |
| | | $("#HMaker").val(sessionStorage["HUserName"]);//å¶å人 |
| | | $("#HEmpID").val(sessionStorage["HEmpID"]); |
| | | CurUserName = sessionStorage["HUserName"]; |
| | | |
| | | |
| | | //æ§è¡ä¸ä¸ªlaydateå®ä¾ |
| | | laydate.render({ |
| | | elem: '#HPlanBeginDate,#HPlanEndDate' //æå®å
ç´ |
| | | }); |
| | | |
| | | |
| | | //å 载计åå䏿¨çæ°æ® |
| | | if (typeof (lentryid) == "undefined") { |
| | | |
| | | RoadHBillSub2(); |
| | | } else { |
| | | |
| | | RoadHBillSub(sql); |
| | | } |
| | | table.render({ |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , limit: 1000 |
| | | , totalRow: true |
| | | , 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: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ' } |
| | | , { field: 'é¨é¨', title: 'é¨é¨' } |
| | | , { field: 'HMaterID', title: 'HMaterID' } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ' } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 115 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 115 } |
| | | , { field: 'HUnitID', title: 'HUnitID' } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', 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: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 115 } |
| | | , { field: 'å·¥åº', title: 'å·¥åº' } |
| | | , { field: 'HGroupID ', title: 'HGroupID', width: 100 } |
| | | , { field: 'çç»ä»£ç ', title: 'çç»ä»£ç ' } |
| | | , { field: 'çç»åç§°', title: 'çç»åç§°' } |
| | | , { field: 'HSourceID', title: 'HSourceID' } |
| | | , { field: 'èµæºä»£ç ', title: 'èµæºä»£ç ' } |
| | | , { field: 'çäº§èµæº', title: 'çäº§èµæº' } |
| | | , { field: 'HWorkerID ', title: 'HWorkerID' } |
| | | , { field: 'èå代ç ', title: 'èå代ç ' } |
| | | , { 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' } |
| | | ]] |
| | | , 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); |
| | | } |
| | | }); |
| | | }; |
| | | //å è½½æ¾ç¤ºæ°æ® |
| | | function RoadHBillSub2() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_h_v_Sc_ProcessSendWorkList_Json', |
| | | type: "GET", |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | }, |
| | | success: function (result) { |
| | | console.log(result); |
| | | //$("#HBillNo").val(result.data[0].HInterID); |
| | | ajaxReturnData = JSON.parse(JSON.stringify(result)).data; |
| | | table.reload('mainTable', { |
| | | data: ajaxReturnData |
| | | , loading: false |
| | | , done: function (index, res) { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | error: function (result) { |
| | | console.log(result); |
| | | } |
| | | }); |
| | | }; |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr; |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() +"SaveWW_EntrustProcessSendOutBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | 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("å§å¤æ´¾å·¥å䏿¨ä¿å"+sMainStr); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | console.log("å§å¤æ´¾å·¥å䏿¨ä¿å"+sMainStr); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | form.on('submit(Exit)', function (data) {//éåº |
| | | var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | parent.layer.close(index); //åæ§è¡å
³é |
| | | }); |
| | | //å
³é |
| | | form.on('submit(Closeing)', function (data) {// |
| | | //debugger; |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"CloseProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsClose": 0 |
| | | ,"CurUserName":CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | }); |
| | | //åå
³é |
| | | form.on("submit(BackClose)", function (data) { |
| | | layer.alert("ææ¯åå
³éæé®ï¼"); |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"CloseProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsClose": 1 |
| | | ,"CurUserName":CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //å®¡æ ¸Auditing |
| | | form.on("submit(Auditing)", function (data) { |
| | | layer.alert("ææ¯å®¡æ ¸æé®ï¼"); |
| | | |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsAudit": 0 |
| | | ,"CurUserName":CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //åå®¡æ ¸BackAudit |
| | | form.on("submit(BackAudit)", function (data) { |
| | | layer.alert("ææ¯åå®¡æ ¸æé®ï¼"); |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL()+"AuditProcessReportList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HInterID": parseInt(HInterID) |
| | | , "IsAudit": 1 |
| | | ,"CurUserName":CurUserName |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#').addClass("layui-btn-disabled").attr("disabled",true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | |
| | | }); |
| | | |
| | | //æå°Printing |
| | | form.on("submit(Printing)", function (data) { |
| | | layer.alert("ææ¯æå°æé®ï¼åæ®ä¸»IDæ¯ï¼" + HInterID); |
| | | window.open("../å·¥åºæ±æ¥å/HBarPlanPrint.html?linterid=" + HInterID + "&Type=HProcessReport"+"&OpenTmp=a"); |
| | | |
| | | }); |
| | | |
| | | function f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | } |
| | | //éæ©é¨é¨ |
| | | form.on('submit(HDeptID-BT)', function () {//éæ©é¨é¨ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['666px', '666px'] |
| | | , title: 'é¨é¨å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©ä¾åºå |
| | | 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> |
| | |
| | | <div class="layui-card layadmin-header"> |
| | | <div class="layui-breadcrumb" lay-filter="breadcrumb"> |
| | | <a lay-href="">主页</a> |
| | | <a><cite>éè´è®¢å</cite></a> |
| | | <!--<a><cite>éè´è®¢å</cite></a> |
| | | <a><cite>éè´è®¢åè¡¨æ ¼</cite></a> |
| | | <a><cite>éè´è®¢åè¡¨æ ¼çéè½½</cite></a> |
| | | <a><cite>éè´è®¢åè¡¨æ ¼çéè½½</cite></a>--> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | , { field: 'HEmpID', title: 'HEmpID', width: 115 } |
| | | , { field: 'èå代ç ', title: 'èå代ç ' } |
| | | , { field: 'èå', title: 'èå', width: 160 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 160 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 160 } |
| | | , { field: 'ä¾åºååç§°', title: 'ä¾åºååç§°', width: 160 } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 160 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'hsubid', title: 'hsubid', hide: true, width: 160 } |
| | | , { field: 'æ°é ', title: 'æ°é', width: 215 } |
| | | , { field: 'è¡¨å¤´å¤æ³¨ ', title: 'è¡¨å¤´å¤æ³¨ ', width: 115 } |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml" style="background-color:white;"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>PDAå§å¤å·¥åºè½¬åºå</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/Scripts/json2.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <style> |
| | | .layui-form-label { |
| | | font-size: 14px; |
| | | width: 85px; |
| | | text-align: inherit; |
| | | } |
| | | /*å
¨å±è®¾ç½®è¾å
¥æ¡é«åº¦*/ |
| | | .layui-input { |
| | | height: 30px; |
| | | } |
| | | /*设置表头è¾å
¥æ¡*/ |
| | | .t1_input { |
| | | padding: 1%; |
| | | } |
| | | /*æ¬ç«ä¿¡æ¯td*/ |
| | | .bz_td { |
| | | display: -webkit-box; /*设置æé®ä¸æ¢è¡*/ |
| | | padding: 1%; /*设置è¾å
¥æ¡è¾¹è·*/ |
| | | } |
| | | /*设置æ¬ç«ä¿¡æ¯æé®é«åº¦*/ |
| | | .bz_btu { |
| | | height: 30px; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding:0"> |
| | | <div class="layui-card"> |
| | | <!--<div class="layui-card-header"></div>--> |
| | | <div class="layui-card-body" style="padding: 0;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div style="background-color:#0085E8;"> |
| | | <span style="color: white;"><i class="layui-icon layui-icon-form"></i>PDAå§å¤å·¥åºè½¬åºå</span> |
| | | </div> |
| | | <div class="layui-form-item" style="margin: 1% 0;text-align: right;"> |
| | | <!--<button type="button" lay-submit="" lay-filter="HAddBT" class="layui-btn layui-btn-radius">æ°å¢</button>--> |
| | | <!--<button type="button" lay-submit="" lay-filter="" class="layui-btn layui-btn-radius">æ¸
空</button>--> |
| | | <button type="button" id="add-btn" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">ä¿å</button> |
| | | <button type="button" lay-submit="" lay-filter="Close" class="layui-btn layui-btn-radius layui-btn-danger">éåº</button> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <table style="width:80%;"> |
| | | <tbody> |
| | | <tr> |
| | | <th>æ¡å½¢ç </th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="è¯·æ«ææ¡å½¢ç " style="border-radius: 50px;"> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th>å§å¤æ´¾å·¥åæ®å·</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HWW_BillNo" class="layui-input" id="HWW_BillNo" placeholder="å§å¤æ´¾å·¥åæ®å·" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å§å¤æ±æ¥åå·</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HBillNo" class="layui-input" id="HBillNo" placeholder="请è¾å
¥å§å¤æ±æ¥åå·" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" class="layui-input" id="HInterID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å·¥åºå·</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HProcNo" class="layui-input" id="HProcNo" placeholder="请è¾å
¥å·¥åºå·" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th>å·¥åºä»£ç </th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HProcNumber" class="layui-input" id="HProcNumber" placeholder="请è¾å
¥å·¥åºä»£ç " style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å·¥åºåç§°</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HProcName" class="layui-input" id="HProcName" placeholder="请è¾å
¥å·¥åºåç§°" style="background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HProc-BT">...</button> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>è§æ ¼åå·</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="请è¾å
¥è§æ ¼åå·" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å建人</th> |
| | | <td class="t1_input"> |
| | | <input type="text" class="layui-input" id="HEmp" name="HEmp" placeholder="请è¾å
¥å建人" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" autocomplete="off" class="layui-input"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å®ä½æ°é</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HQty" class="layui-input" id="HQty" placeholder="请è¾å
¥å®ä½æ°é"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ä¾åºå</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HSupName" class="layui-input" id="HSupName" placeholder="éæ©ä¾åºå" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HSupID" id="HSupID" value="0" autocomplete="off" class="layui-input"> |
| | | <input type="hidden" name="HSupNumber" class="layui-input" id="HSupNumber"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HSupID-BT">...</button> |
| | | </td> |
| | | </tr> |
| | | <!--<tr> |
| | | <th>ç产订å</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HICMOBillNo" class="layui-input" id="HICMOBillNo" placeholder="请è¾å
¥ç产订å" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr>--> |
| | | |
| | | <tr> |
| | | <th>æ¥æ</th> |
| | | <td class="t1_input"> |
| | | <input type="date" name="HReportTime" class="layui-input" id="HReportTime" placeholder="è¯·éæ©æ¥æ"> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th>产å代ç </th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HMaterNumber" class="layui-input" id="HMaterNumber" placeholder="请è¾å
¥äº§å代ç " style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" class="layui-input" id="HMaterID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>产ååç§°</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaterName" class="layui-input" id="HMaterName" placeholder="è¯·éæ©äº§ååç§°" style="background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HMateria-BT">...</button> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th>é¨é¨</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HDepName" class="layui-input" id="HDepName" placeholder="è¯·éæ©é¨é¨" style="background-color:#efefef4d;" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HDepart-BT">...</button> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr style="display:none;"> |
| | | <th></th> |
| | | <td class="bz_td"> |
| | | <!--éèåæ®µ--> |
| | | <input type="hidden" name="HICMOInterID" class="layui-input" id="HICMOInterID"><!--ä»»å¡åå·IDåhicmointerid--> |
| | | <input type="hidden" name="HDeptID" class="layui-input" id="HDeptID"><!--é¨é¨id--> |
| | | <input type="hidden" name="HDeptNumber" class="layui-input" id="HDeptNumber"> |
| | | |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.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 BillStatusjson = params[params[0]]; |
| | | var InterID = params[params[1]]; |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , element = layui.element |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , laydate = layui.laydate |
| | | , form = layui.form; |
| | | |
| | | //è·åå½åæ¶é´å¤ç |
| | | $("#HReportTime").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HEmp").val(sessionStorage["HUserName"]);//å建人 |
| | | $("#HEmpID").val(sessionStorage["HEmpID"]); |
| | | $("#HProcName").val(sessionStorage["HProcName"]);//å·¥åº |
| | | $("#HProcNumber").val(sessionStorage["HProcNumber"]);//å·¥åºä»£ç |
| | | $("#HProcID").val(sessionStorage["HProcID"]);//å·¥åºID |
| | | $("#HSource").val(sessionStorage["HSource"]);//çäº§èµæº |
| | | $("#HSourceID").val(sessionStorage["HSourceID"]); |
| | | $("#HGroup").val(sessionStorage["HGroup"]);//ç产çç» |
| | | $("#HGroupID").val(sessionStorage["HGroupID"]); |
| | | $("#HGroupNumber").val(sessionStorage["HGroupNumber"]);//çç»ä»£ç |
| | | $("#HCenter").val(sessionStorage["HWorkCenter"]);//å·¥ä½ä¸å¿ |
| | | $("#HCenterID").val(sessionStorage["HWorkCenterID"]); |
| | | $("#HProcNo").val(sessionStorage["HProcNo"]);//å·¥åºå· |
| | | |
| | | |
| | | |
| | | //页é¢åå§åèµå¼ |
| | | //è·ååæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3742' }, |
| | | success: function (d) { |
| | | $("#HBillNo").val(d.data[0].HBillNo);//å§å¤æ±æ¥åå· |
| | | $("#HInterID").val(d.data[0].HInterID);// |
| | | }, error: function () { |
| | | layer.alert("è·ååæ®å·å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | $("#HBarCode").focus(); |
| | | $("#HBarCode").css("box-shadow", "0 0 0 1px #00ff00"); |
| | | |
| | | |
| | | //æ«æ¡å½¢ç æ¹æ³ |
| | | $('#HBarCode').on('keydown', function (event) { //æ«æ¡å½¢ç |
| | | var HBarCode = $('#HBarCode').val();//æ¡å½¢ç ï¼æµè½¬å¡å·ï¼ï¼æ°æ®åºä¸ä¸ºåæ®å·ï¼ |
| | | if (event.keyCode == 13) { |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | if (HBarCode == "") { |
| | | layer.alert("æ¡å½¢ç 为空ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | //æ¥è¯¢å§å¤æ´¾å·¥åæ®æ¯å¦åå¨ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_ProcessMangement/WWgetHbarCodeDetail", |
| | | type: "GET", |
| | | data: { |
| | | "sBillBarCode": HBarCode |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data.h_v_WW_EntrustProcSendWorkBillList[0]; |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HWW_BillNo": $("#HBarCode").val() |
| | | , "HEmp": $("#HEmp").val() |
| | | , "HProcID": data.HprocID |
| | | , "HDeptID": data.HDeptID |
| | | , "HQty": data.æ°é |
| | | , "HMaterID": data.HMaterID |
| | | , "HMaterNumber": data.ç©æä»£ç |
| | | , "HMaterModel": data.è§æ ¼åå· |
| | | , "HDeptNumber": data.é¨é¨ä»£ç |
| | | , "HProcNumber": data.å·¥åºä»£ç |
| | | , "HProcName": data.å·¥åº |
| | | //, "HOrderProcNO":data.订åè·è¸ªå· |
| | | }); |
| | | //$("#HBarCode").attr("readonly", "readonly");//æ¡å½¢ç åªè¯» |
| | | //$("#HBarCode").css("background-color", "#efefef4d"); |
| | | $("#HBarCode").css("box-shadow", "none"); |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ«æ¡å½¢ç æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //å§å¤æ±æ¥åå·åè½¦æ¹æ³ |
| | | $('#HProcNo').on('keydown', function (event) { //æ«æ¡å½¢ç |
| | | var HProcNo = $('#HProcNo').val(); |
| | | var HBarCode = $('#HBarCode').val(); |
| | | if (event.keyCode == 13) { |
| | | if (HProcNo == "" || HBarCode == "") { |
| | | layer.alert("å·¥åºå·æå§å¤æ±æ¥åå·ä¸ºç©ºï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_ProcessMangement/WWgetProcDetail", |
| | | type: "GET", |
| | | data: { |
| | | "sBillNo": HBarCode |
| | | , "sProcNo": HProcNo |
| | | }, |
| | | success: function (result) { |
| | | var data = result.data.h_v_WW_EntrustProcSendWorkBillList[0]; |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HProcID": data.HprocID |
| | | , "HEmp": $("#HEmp").val() |
| | | , "HDeptID": data.HDeptID |
| | | , "HQty": data.æ°é |
| | | , "HMaterID": data.HMaterID |
| | | , "HMaterNumber": data.ç©æä»£ç |
| | | , "HDeptNumber": data.é¨é¨ä»£ç |
| | | , "HProcNumber": data.å·¥åºä»£ç |
| | | , "HProcName": data.å·¥åº |
| | | }); |
| | | $("#HProcNo").css("box-shadow", "none"); |
| | | checkPopup(); |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("å·¥åºå·æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //éæ©ä¾åºå |
| | | 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(HMateria-BT)', function () {//产å |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç©æ' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | //éæ©å·¥åº |
| | | form.on('submit(HProc-BT)', function () {//éæ©å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | //Gy_DepartmentList |
| | | //éæ©é¨é¨ |
| | | form.on('submit(HDepart-BT)', function () {//éæ©é¨é¨ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'é¨é¨å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //ä¿åæé® |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | //debugger; |
| | | var sMainStr = JSON.stringify(data.field); |
| | | console.log(sMainStr); |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "SaveWWSendOutBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | console.log(data); |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | //$("#sHWHID").val(""); |
| | | //layer.alert(result.msg + "åå·ä¸ºï¼" + $("#HBillNo").val(), { icon: 1 }, function () { |
| | | // window.location.reload();//å·æ°é¡µé¢ |
| | | //}); |
| | | //layer.confirm(result.msg + "åå·ä¸ºï¼" + $("#HBillNo").val(), { |
| | | // btn: ['åºç«', 'æ°å¢'], skin: 'layui-layer-lan', title: "温馨æç¤º", icon: 1 |
| | | //}, function () { |
| | | // parent.location.href = "../../../views/车é´ç®¡ç/å·¥åºæ±æ¥/MES_StationOutBill_PDA.html"; |
| | | //}, function () { |
| | | // window.location.reload(); |
| | | //}); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | f_alert(data.Message); |
| | | } |
| | | layer.closeAll("loading"); |
| | | layui.form.render(); |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥:" + err, { icon: 5 }); |
| | | } |
| | | }); |
| | | }); |
| | | function f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | } |
| | | |
| | | //éåºæé® |
| | | form.on('submit(Close)', function (data) {//éåº |
| | | layer.confirm('æ¨ç¡®å®è¦å
³éæ¬é¡µåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.location.href = "../../../views/index.html"; |
| | | }); |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(HAddBT)', function (data) {//éåº |
| | | layer.confirm('æ¨ç¡®å®è¦æ°å¢åï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | window.location.reload(); |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | //åçjsåå§å |
| | | $(function () { |
| | | |
| | | }); |
| | | |
| | | //æ ¡éªæ¯å¦éæ©å¼¹çªäºä»¶ |
| | | function checkPopup() { |
| | | //if (!$("#HSource").val()) {//çäº§èµæº |
| | | // $("#HSource").css("box-shadow", "0 0 1px 2px #00ff00"); |
| | | //} |
| | | //else |
| | | if (!$("#HGroup").val()) { |
| | | $("#HGroup").css("box-shadow", "0 0 1px 2px #00ff00"); |
| | | } |
| | | else if (!$("#HCenter").val()) { |
| | | $("#HCenter").css("box-shadow", "0 0 1px 2px #00ff00"); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | //è¿å产å |
| | | function GetHMaterNameValue(obj) { //è¿å产å |
| | | $("#HMaterName").val(obj[0].HName); |
| | | $("#HMaterID").val(obj[0].HItemID); |
| | | $("#HMaterNumber").val(obj[0].HNumber); |
| | | } |
| | | //è¿åå·¥åº |
| | | function GetHProcValue(obj) { //è¿åå·¥åº |
| | | $("#HProcName").val(obj[0].å·¥åº); |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | $("#HProcNumber").val(obj[0].å·¥åºä»£ç ); |
| | | } |
| | | function GetHSupValue(obj) { //è¿åä¾åºå |
| | | $("#HSupName").val(obj[0].HName); |
| | | $("#HSupID").val(obj[0].HItemID); |
| | | $("#HSupNumber").val(obj[0].HNumber); |
| | | } |
| | | |
| | | function GetHDeptNameValue(obj) { //è¿åé¨é¨ |
| | | $("#HDepName").val(obj[0].HName); |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | $("#HDeptNumber").val(obj[0].HNumber); |
| | | } |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | , page: true |
| | | ,cellMinWidth: 90 |
| | | , 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: '计éåä½ä»£ç ', width: 160 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 160 } |
| | | , { field: 'HprocID ', title: 'HprocID', width: 215 } |
| | | ////, { field: 'hunitid', title: 'hunitid' } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 115 } |
| | | , { field: 'å·¥åº', title: 'å·¥åº' } |
| | | ////, { field: 'hempid', title: 'hempid' } |
| | | , { field: 'HGroupID ', title: 'HGroupID', width: 100 } |
| | | , { field: 'çç»ä»£ç ', title: 'çç»ä»£ç ' } |
| | | , { field: 'çç»åç§°', title: 'çç»åç§°' } |
| | | , { field: 'HSourceID', title: 'HSourceID' } |
| | | , { field: 'èµæºä»£ç ', title: 'èµæºä»£ç ' } |
| | | ////, { field: 'HCenterID', title: 'HCenterID' } |
| | | , { field: 'çäº§èµæº', title: 'çäº§èµæº' } |
| | | , { field: 'HWorkerID ', title: 'HWorkerID' } |
| | | ////, { field: 'hbomid', title: 'hbomid' } |
| | | , { field: 'èå代ç ', title: 'èå代ç ' } |
| | | ////, { field: 'HRoutingInterID', title: 'HRoutingInterID' } |
| | | , { field: 'èå ', title: 'èå' } |
| | | , { field: 'hsubid', title: 'hsubid', hide: true } |
| | | , { field: 'æ°é', title: 'æ°é' } |
| | |
| | | , { field: 'ç产任å¡åå·', title: 'ç产任å¡åå·' } |
| | | , { field: 'HSeOrderInterID', title: 'HSeOrderInterID' } |
| | | , { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·' } |
| | | ////, { field: 'hsubid', title: 'hsubid' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } |
| | | , { field: 'å¶å人', title: 'å¶å人' } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ' } |