| | |
| | | <Content Include="views\PublicPage\PeopleInformation.html" /> |
| | | <Content Include="views\PublicPage\PowerInformation.html" /> |
| | | <Content Include="views\PublicPage\PurchOrder.html" /> |
| | | <Content Include="views\PublicPage\HSourceReportHtml.html" /> |
| | | <Content Include="views\PublicPage\transfer.html" /> |
| | | <Content Include="views\ReportHtml.html" /> |
| | | <Content Include="views\test\testRenderAutomationList.html" /> |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/å¼å·¥/Sc_Add_MESBeginStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/å¼å·¥/Sc_Add_MESBeginStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType+'', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | // //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/äº§éæ±æ¥/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/äº§éæ±æ¥/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: 'ç产管ç/æ¥å·¥å°å·¥åº/äº§éæ±æ¥/Sc_Add_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | // //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/å®å·¥/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/å®å·¥/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: 'ç产管ç/æ¥å·¥å°å·¥åº/å®å·¥/Sc_Add_MESEndStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | // //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/åå·¥/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/åå·¥/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: 'ç产管ç/æ¥å·¥å°å·¥åº/åå·¥/Sc_Add_MESStopStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | // //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/äº§éæ±æ¥/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/äº§éæ±æ¥/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=&workcode=' + workcode + '&HSourceID=' + HSourceID1 + '&HSourceName=' + HSourceName1 + '&HICMOInterID=' + HICMOInterID + '&HICMOEntryID=' + HICMOEntryID + '&HMaker=' + sessionStorage["HUserName"] + '&Czybm=' + sessionStorage["Czybm"] + '&HSourceInterID=' + HSourceInterID + '&HSourceBillType=' + HSourceBillType + '&HProcID=' + HProcID+'', |
| | | //content: 'ç产管ç/æ¥å·¥å°å·¥åº/äº§éæ±æ¥/Sc_ProductReportStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | var data = []; |
| | | data.push({ |
| | | "workcode": workcode, |
| | | "HSourceID": HSourceID1, |
| | | "HSourceName": HSourceName1, |
| | | "HICMOInterID": HICMOInterID, |
| | | "HICMOEntryID": HICMOEntryID, |
| | | "HMaker": sessionStorage["HUserName"], //sessionStorage["HUserName"] |
| | | "Czybm": sessionStorage["Czybm"], |
| | | //"HEmpID": "0", //sessionStorage["HEmpID"] |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceBillType": HSourceBillType, |
| | | "HProcID": HProcID |
| | | }); |
| | | //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | //success: function (dom, index) { |
| | | // //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // var data = []; |
| | | // data.push({ |
| | | // "workcode": workcode, |
| | | // "HSourceID": HSourceID1, |
| | | // "HSourceName": HSourceName1, |
| | | // "HICMOInterID": HICMOInterID, |
| | | // "HICMOEntryID": HICMOEntryID, |
| | | // "HMaker": sessionStorage["HUserName"], //sessionStorage["HUserName"] |
| | | // "Czybm": sessionStorage["Czybm"], |
| | | // //"HEmpID": "0", //sessionStorage["HEmpID"] |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceBillType": HSourceBillType, |
| | | // "HProcID": HProcID |
| | | // }); |
| | | // //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/è¿å·¥/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/è¿å·¥/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: 'ç产管ç/æ¥å·¥å°å·¥åº/è¿å·¥/Sc_Add_MESReturnStepWorkBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | //success: function (dom, index) { |
| | | // //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | // //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/é²é/Sc_Add_MaterToSourceStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: 'ç产管ç/æ¥å·¥å°å·¥åº/é²é/Sc_Add_MaterToSourceStepBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: 'ç产管ç/æ¥å·¥å°å·¥åº/é²é/Sc_Add_MaterToSourceStepBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | // //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | |
| | | content: 'ç产管ç/å¼å¸¸åé¦å/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | content: 'ç产管ç/å¼å¸¸åé¦å/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=&HBillType=' + HBillType + '&HSourceInterID=' + HSourceInterID + '&HSourceEntryID=' + HSourceEntryID + '&HSourceBillNo=' + HSourceBillNo + '&HSourceBillType=' + HSourceBillType + '', |
| | | //content: 'ç产管ç/å¼å¸¸åé¦å/Sc_Add_MESExecptFeedBackBillList.html?OperationType=2&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HBillType": HBillType, |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceEntryID": HSourceEntryID, |
| | | "HSourceBillNo": HSourceBillNo, |
| | | "HSourceBillType": HSourceBillType |
| | | }); |
| | | //success: function (dom, index) { |
| | | // var data = []; |
| | | // data.push({ |
| | | // "HBillType": HBillType, |
| | | // "HSourceInterID": HSourceInterID, |
| | | // "HSourceEntryID": HSourceEntryID, |
| | | // "HSourceBillNo": HSourceBillNo, |
| | | // "HSourceBillType": HSourceBillType |
| | | // }); |
| | | |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | // //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | // var iframe = window['layui-layer-iframe' + index]; |
| | | // //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | // iframe.edit(data); |
| | | //}, |
| | | }); |
| | | } |
| | | |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; 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, 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> |
| | | <style type="text/css"> |
| | | input.layui-input.layui-unselect { |
| | | padding-right: 0; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-colla-title layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>æ´å¤</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æç¼ç </label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="PartNumber" id="PartNumber" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æåç§°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="PartName" id="PartName" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>å
¶ä»æ¡ä»¶></span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="" id="layTable" lay-filter="layTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-add-1"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-edit"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload" style="display:none;"><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" style="display:none;"><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" style="display:none;"><i class="layui-icon layui-icon-close-fill"></i>驳å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details" style="display:none;"><i class="layui-icon layui-icon-form"></i>详æ
</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate" style="display:none;"><i class="layui-icon layui-icon-file"></i>çæéè´§å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit" style="display:none;"><i class="layui-icon layui-icon-return"></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 src="../../layuiadmin/PubCustom.js"></script> |
| | | <script> |
| | | //è·ååæ° |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = decodeURI(params[params[2]]);//æºåç±»å |
| | | console.log(HSouceBillType); |
| | | } |
| | | var cols_arr = []; //åå¨è¡¨æ ¼å¤´çæ°ç» |
| | | var table = null; |
| | | layui.config({ |
| | | base: '../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | // #region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var resultTableHead = []; //è·ååè¡¨å¤´åæ®µèªå®ä¹åæ°ç» |
| | | |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | //åå§å表åæä»¶ |
| | | //set_InitFrom(); |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºå |
| | | |
| | | } |
| | | else if (OperationType == 3) {//ææºå |
| | | set_ClearBill(sWhere, HSouceBillType); |
| | | } |
| | | else { |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //#region 头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | switch (obj.event) { |
| | | //æ°å¢ |
| | | case 'set_AddNew': set_AddNew(); |
| | | break; |
| | | //ç¼è¾ |
| | | case 'set_ShowBill': set_ShowBill(); |
| | | break; |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | | break; |
| | | |
| | | }; |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(HSouceBillType); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | set_ClearQuery(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¬é¡µé¢ææè¢«è°ç¨çæ¹æ³ |
| | | |
| | | //#region åå§å表å |
| | | function set_InitFrom() { |
| | | laydate.render({ |
| | | elem: '#HBeginDate' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HEndDate' |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | // #region åå§åçé¢ |
| | | function set_ClearBill(sWhere, HSouceBillType) { |
| | | resultTableHead = []; //æ¸
空表头åï¼é²æ¢é夿¸²æ |
| | | //åå§æ¥è¯¢ |
| | | get_Display(sWhere, HSouceBillType); |
| | | |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¥è¯¢ |
| | | function get_Display(sWhere, HSouceBillType) { |
| | | var ajaxLoad = layer.load(); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_BarCode/ReportFromBillList', |
| | | type: "GET", |
| | | data: { "page": 1, "limit": 50, "sWhere": sWhere, "HSouceBillType": HSouceBillType, "HOrgID": linterid }, |
| | | async: false, |
| | | dataType: "json",//æ°æ®ç±»åå¯ä»¥ä¸º text xml json script jsonp |
| | | success: function (data1) { |
| | | console.log(data1); |
| | | for (var key in data1.list) { |
| | | resultTableHead.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | set_InitGrid(sWhere); |
| | | }, error: function (err) { |
| | | layer.alert(err.Message, { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //#region åå§åè¡¨æ ¼æ¹æ³ |
| | | function set_InitGrid(sWhere) { |
| | | //å¡«å
è¡¨æ ¼å¤´æ°ç» |
| | | var data = resultTableHead; |
| | | cols_arr[0] = []; |
| | | cols_arr[0][0] = { checkbox: true, fixed: true, totalRowText: 'å计' }; |
| | | for (var i = 0; i < data.length; i++) { |
| | | if (data[i].name.substr(0, 1) == 'H') { |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', hide: true }; //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'Int32': |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', totalRow: true, sort: true,width:130 }; |
| | | break; |
| | | //Decimal |
| | | case 'Decimal': |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', totalRow: true, sort: true, width: 150}; |
| | | break; |
| | | default: |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200}; |
| | | } |
| | | } |
| | | } |
| | | //å¡«å
è¡¨æ ¼æ°æ® |
| | | table.render({ |
| | | elem: '#layTable', |
| | | url: GetWEBURL() + '/Sc_BarCode/ReportFromBillList', |
| | | //toolbar: '#toolbarDemo', //å¼å¯å¤´é¨å·¥å
·æ ï¼å¹¶ä¸ºå
¶ç»å®å·¦ä¾§æ¨¡æ¿ |
| | | title: '' + HSouceBillType + '', |
| | | cols: cols_arr, //å¡«å
è¡¨æ ¼å¤´æ°æ®, |
| | | id: 'layTable', //è¡¨æ ¼id |
| | | where: { sWhere: sWhere, HSouceBillType: HSouceBillType, HOrgID: linterid }, //æ©å±åæ°,å¯ä»¥ä¼ æ°æ®å°åå° |
| | | page: true, //å¼å¯å页 |
| | | totalRow: true, //å¼å¯å计 |
| | | limit: 50, //ä¸é¡µè½å¤æ¾ç¤ºçæå¤§æ°ç® |
| | | limits: [50, 500, 2000, 20000], //æ§å¶å¤å°è¡ä¸é¡µï¼é»è®¤äºæ¡ä¸é¡µï¼ |
| | | method: 'get', //æäº¤æ¹å¼ |
| | | layout: ['count', 'prev', 'page', 'next', 'limit', 'skip'], |
| | | height:600, |
| | | response: { |
| | | statusCode: 1 //éæ°è§å®æåçç¶æç 为 1ï¼table ç»ä»¶é»è®¤ä¸º 0 |
| | | }, |
| | | done: function (res) { //è¿åæ°æ®æ§è¡åè°å½æ° |
| | | layer.close(layer.index); //è¿åæ°æ®å
³éloading |
| | | } |
| | | }); |
| | | } |
| | | //endregion |
| | | |
| | | //#region å¿«éè¿æ»¤ |
| | | function get_FastQuery(HSouceBillType) { |
| | | var HBillNo = $("#HBillNo").val();//åæ®ç¼å· |
| | | var PartNumber = $("#PartNumber").val();//ç©æç¼ç |
| | | var PartName = $("#PartName").val();//ç©æåç§° |
| | | |
| | | switch (HSouceBillType) { |
| | | case 'ç产订å': |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'"; |
| | | } |
| | | if (PartNumber) { |
| | | sWhere += " and ç©æä»£ç like '%" + PartNumber + "%'"; |
| | | } |
| | | if (PartName) { |
| | | sWhere += " and ç©æåç§° like '%" + PartName + "%'"; |
| | | } |
| | | return sWhere; |
| | | break; |
| | | case 'çäº§æ±æ¥å': |
| | | return sWhere; |
| | | break; |
| | | case 'éè´è®¢å': |
| | | return sWhere; |
| | | break; |
| | | case 'æ¶æéç¥å': |
| | | return sWhere; |
| | | break; |
| | | case 'å§å¤è®¢å': |
| | | return sWhere; |
| | | break; |
| | | case 'éè´§éç¥å': |
| | | return sWhere; |
| | | break; |
| | | case 'å
¶ä»å
¥åºå': |
| | | return sWhere; |
| | | break; |
| | | case 'ç´æ¥è°æ¨å': |
| | | return sWhere; |
| | | break; |
| | | case 'éè´éæå': |
| | | return sWhere; |
| | | break; |
| | | case 'ç产éæå': |
| | | return sWhere; |
| | | break; |
| | | case 'ç»è£
æå¸å': |
| | | return sWhere; |
| | | break; |
| | | } |
| | | set_ClearBill(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | | //#endregion |
| | | |
| | | //#region éç½®è¿æ»¤æ¡ä»¶æ¹æ³ |
| | | function set_ClearQuery() { |
| | | $("#HBillNo").val("");//åæ®å· |
| | | $("#PartNumber").val("");//ç©æç¼ç |
| | | $("#PartName").val("");//ç©æåç§° |
| | | get_FastQuery(HSouceBillType); |
| | | sWhere = ""; |
| | | } |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |
| | |
| | | margin-right: 0px; |
| | | } |
| | | /*end*/ |
| | | |
| | | .layui-table-cell .layui-form-checkbox[lay-skin="primary"] { |
| | | margin-left:35%; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | |
| | | <label class="layui-form-label">ç»ç»</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HOrgID" id="HOrgID" lay-filter="HOrgID" class="layui-input" value="" style="float:left;width:150px"> |
| | | <option value="1">ä¾åºå</option> |
| | | <option value="2">客æ·</option> |
| | | <option value="3">车é´é¨é¨</option> |
| | | |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | <label class="layui-form-label">å·¥å代ç </label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HWorksNumber" id="HWorksNumber" lay-filter="HWorksNumber" class="layui-input" value="" style="float:left;width:150px"> |
| | | <option value="1">ä¾åºå</option> |
| | | <option value="2">客æ·</option> |
| | | <option value="3">车é´é¨é¨</option> |
| | | |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | <label class="layui-form-label">æºåç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HSourceBillType" id="HSourceBillType" lay-filter="HSourceBillType" class="layui-input" value="" style="float:left;width:150px"> |
| | | <option value="1">ä¾åºå</option> |
| | | <option value="2">客æ·</option> |
| | | <option value="3">车é´é¨é¨</option> |
| | | <option value="1">ç产订å</option> |
| | | <option value="2">çäº§æ±æ¥å</option> |
| | | <option value="3">éè´è®¢å</option> |
| | | <option value="4">æ¶æéç¥å</option> |
| | | <option value="5">å§å¤è®¢å</option> |
| | | <option value="6">éè´§éç¥å</option> |
| | | <option value="7">å
¶ä»å
¥åºå</option> |
| | | <option value="8">ç´æ¥è°æ¨å</option> |
| | | <option value="9">éè´éæå</option> |
| | | <option value="10">ç产éæå</option> |
| | | <option value="11">ç»è£
æå¸å</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | <label class="layui-form-label">éåå·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSourceBillNo" id="HSourceBillNo" readonly class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HKeeperID" id="HKeeperID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HKeeperList" style="width:40px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSourceBillNoList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <label class="layui-form-label">æ¡ç ç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HBarCodeType" id="HBarCodeType" lay-filter="HBarCodeType" class="layui-input" value="" style="float:left;width:150px"> |
| | | <option value="1">ä¾åºå</option> |
| | | <option value="2">客æ·</option> |
| | | <option value="3">车é´é¨é¨</option> |
| | | |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | </script> |
| | | <script type="text/html" id="xuhao"> |
| | | {{d.LAY_TABLE_INDEX+1}} |
| | | </script> |
| | | <script type="text/html" id="switchTpl"> |
| | | <!-- è¿éç checked çç¶æåªæ¯æ¼ç¤º --> |
| | | <input type="checkbox" name="checkbox" lay-skin="primary" lay-filter="HGiveAwayFlag"> |
| | | </script> |
| | | <script type="text/html" id="switchTp2"> |
| | | <!-- è¿éç checked çç¶æåªæ¯æ¼ç¤º --> |
| | | <input type="checkbox" name="checkbox" lay-skin="primary" lay-filter="HGiveAwayFlag"> |
| | | </script> |
| | | </form> |
| | | </div> |
| | |
| | | //#region è¿å
¥é¡µé¢æ¢å è½½ |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | | //å è½½ç»ç»æ°æ® |
| | | set_HOrg(); |
| | | //å 载工åä»£ç æ°æ® |
| | | set_HWorksNumber(); |
| | | //å è½½æ¡ç ç±»åæ°æ® |
| | | set_HBarCodeType(); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | set_CountGrid(); |
| | |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | //䏿æ¡äºä»¶éæ©è§¦å |
| | | form.on('select(HSupTypeID)', function (data) { |
| | | $("#HSupID").val(""); |
| | | $("#HSupName").val(""); |
| | | form.on('select(HSourceBillType)', function (data) { |
| | | $("#HSourceBillNo").val(""); |
| | | }); |
| | | |
| | | function getSupType() { |
| | | var type = $("#HSupTypeID").val(); |
| | | console.log(type) |
| | | var type = $("#HSourceBillType").val(); |
| | | switch (type) { |
| | | case '1': |
| | | return "SupplierInformation"; |
| | | return "ç产订å"; |
| | | break; |
| | | case '2': |
| | | return "CustomerInformation"; |
| | | return "çäº§æ±æ¥å"; |
| | | break; |
| | | case '3': |
| | | return "DeptInformation"; |
| | | return "éè´è®¢å"; |
| | | break; |
| | | case '4': |
| | | return "æ¶æéç¥å"; |
| | | break; |
| | | case '5': |
| | | return "å§å¤è®¢å"; |
| | | break; |
| | | case '6': |
| | | return "éè´§éç¥å"; |
| | | break; |
| | | case '7': |
| | | return "å
¶ä»å
¥åºå"; |
| | | break; |
| | | case '8': |
| | | return "ç´æ¥è°æ¨å"; |
| | | break; |
| | | case '9': |
| | | return "éè´éæå"; |
| | | break; |
| | | case '10': |
| | | return "ç产éæå"; |
| | | break; |
| | | case '11': |
| | | return "ç»è£
æå¸å"; |
| | | break; |
| | | } |
| | | } |
| | | //表头信æ¯å¾æ¥åä½å¼¹çª |
| | | form.on('submit(HSupList)', function () { |
| | | debugger; |
| | | if ($("#HSupTypeID").val() == 0 || $("#HSupTypeID").val() == null) { |
| | | return layer.msg('è¯·éæ©å¾æ¥ç±»å'); |
| | | //è¡¨å¤´ä¿¡æ¯æºåä¿¡æ¯å¼¹çª |
| | | form.on('submit(HSourceBillNoList)', function () { |
| | | if ($("#HSourceBillType").val() == 0 || $("#HSourceBillType").val() == null) { |
| | | return layer.msg('è¯·éæ©åæ®ç±»å'); |
| | | } |
| | | //è·åç»ç»ID |
| | | var SetHOrgID = $("#HOrgID").find("option:selected").val(); |
| | | //页é¢å±-èªå®ä¹ |
| | | var url = '../../PublicPage/' + getSupType() + '.html'; |
| | | var url = '../../PublicPage/HSourceReportHtml.html?OperationType=3&linterid=' + SetHOrgID + '&HSouceBillType=' + getSupType() + ''; |
| | | url = encodeURI(url); |
| | | //alert(url); |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '徿¥åä½å表', |
| | | title: '' + getSupType()+'å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | area: ['95%', '80%'], |
| | | maxmin: true, |
| | | content: [url, 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HSupName").val(checkStatus.data[0].HName); |
| | | $("#HSupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | |
| | | elem: '#HDate' |
| | | }); |
| | | } |
| | | //åå§åæç»è¡¨æ ¼ |
| | | |
| | | //è·åç»ç» |
| | | function set_HOrg() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | var Organization = ''; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#HOrgID").append(Organization); |
| | | form.render('select'); |
| | | } |
| | | $('#HOrgID').find("option[value=" + result.data[0].ID + "]").attr("selected", true); |
| | | form.render('select') //忬¡æ¸²æ |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | //è·åå·¥å代ç |
| | | function set_HWorksNumber() |
| | | { |
| | | //è·åå·¥å代ç |
| | | var Organization = ''; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Sc_BarCode/GetHWorksNumberBill", |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.list; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + i + '">' + data[i] + '</option>'; |
| | | } |
| | | $("#HWorksNumber").append(Organization); |
| | | form.render('select'); |
| | | if (result.list[0] != "" && result.list[0] != null) |
| | | { |
| | | $('#HWorksNumber').find("option[value=" + result.list[0] + "]").attr("selected", true); |
| | | form.render('select') //忬¡æ¸²æ |
| | | } |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | //è·åæ¡ç ç±»å |
| | | function set_HBarCodeType() |
| | | { |
| | | //è·åæ¡ç ç±»å代ç |
| | | var Organization = ''; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Sc_BarCode/GetHBarCodeTypeBill", |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.list; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + i+ '">' + data[i] + '</option>'; |
| | | } |
| | | $("#HBarCodeType").append(Organization); |
| | | form.render('select'); |
| | | } |
| | | $('#HBarCodeType').find("option[value=" + result.list[0]+ "]").attr("selected", true); |
| | | form.render('select') //忬¡æ¸²æ |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //åå§åç©æä¿¡æ¯è¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | |
| | | , { field: 'HUnitCode', title: '计éåä½ä»£ç ', edit: 'text', event: 'HUnitCode', width: 100 } |
| | | , { field: 'HUnitName', title: '计éåä½', edit: 'text', width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹å·', edit: 'text', width: 100 } |
| | | , { field: 'HGiveAwayFlag', title: 'æ¯å¦èµ å', edit: 'text', width: 100 } |
| | | , { field: 'HGiveAwayFlag', title: 'æ¯å¦èµ å', width: 100, templet: '#switchTpl', unresize: false } |
| | | , { field: 'HQty', title: 'æ°é', edit: 'text', width: 100 } |
| | | , { field: 'HMinQty', title: 'æå°å
è£
æ°', edit: 'text', width: 100 } |
| | | , { field: 'HBQty', title: 'ç®±æ°', edit: 'text', width: 100 } |
| | |
| | | } |
| | | }; |
| | | } |
| | | //åå§æ±æ»ä¿¡æ¯ |
| | | //åå§æ¡ç ä¿¡æ¯è¡¨æ ¼ |
| | | function set_CountGrid() { |
| | | //表头 |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', edit: 'text', width: 100 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', edit: 'text', width: 100 } |
| | | , { field: 'æ¹æ¬¡', title: 'æ¹æ¬¡', edit: 'text', width: 100 } |
| | | , { field: '宿¶æ°é', title: '宿¶æ°é', edit: 'text', width: 100 } |
| | | , { field: 'hwhid1', title: 'HWHID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'æ¶æä»åºä»£ç ', title: 'æ¶æä»åºä»£ç ', edit: 'text', event: 'HWHCode', width: 120 } |
| | | , { field: 'æ¶æä»åº', title: 'æ¶æä»åºåç§°', edit: 'text', width: 120 } |
| | | , { field: '表ä½å¤æ³¨', title: '夿³¨', edit: 'text', width: 100 } |
| | | , { field: 'éæ©', title: 'éæ©', width: 100 } |
| | | , { field: 'HBarCode', title: 'æ¡ç ç¼å·', width: 100 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HAuxPropNumber', title: 'è¾
å©å±æ§ä»£ç ', width: 100 } |
| | | , { field: 'HAuxPropName', title: 'è¾
å©å±æ§', event: 'HWHCode', width: 120 } |
| | | , { field: 'HGiveAwayFlag', title: 'æ¯å¦èµ å', width: 120, templet: '#switchTpl', unresize: false } |
| | | , { field: 'HUnitCode', title: '计éåä½ä»£ç ', width: 120 } |
| | | , { field: 'HUnitName', title: '计éåä½', width: 120 } |
| | | , { field: 'HQty', title: 'æ°é', width: 120 } |
| | | , { field: 'HDate', title: 'è¿ææ¥æ', width: 120 } |
| | | , { field: 'HCusNumber', title: '客æ·ä»£ç ', width: 120 } |
| | | , { field: 'HCusName', title: '客æ·', width: 120 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 120 } |
| | | , { field: 'HSeOrderBillNo', title: 'éå®è®¢åå·', width: 120 } |
| | | , { field: 'HRemark', title: '夿³¨', width: 120 } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 120 } |
| | | , { field: 'HShowDate', title: 'æ¥æ', width: 100 } |
| | | , { field: 'HInnerBillNo', title: 'å
é¨éè´è®¢åå·', width: 100 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | ]; |
| | | option1 = { |
| | | id: 'mainTable1' |
| | | , elem: '#mainTable1' |
| | | , height: 500 |
| | | , page: true |
| | | , page: false |
| | | , limit: 500 |
| | | , cellMinWidth: 120 |
| | | , height: 650 |
| | |
| | | |
| | | //æ æºåæ°å¢ |
| | | function set_AddFNew() { |
| | | option.data = [{ "HSourceInterID": 0, "HSourceEntryID": 0,"HSourceBillNo":"", "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "" }]; |
| | | option.data = [{ |
| | | "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HMaterModel": "" |
| | | , "HAuxPropID": 0, "HAuxPropNumber": "", "HAuxPropName": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HBatchNo": "", "HGiveAwayFlag": 0 |
| | | , "HQty": 0, "HMinQty": 0, "HBQty": 0, "HPackQty": 0, "HDate": "", "HCusID": 0, "HCusNumber": "", "HCusName": "", "HSeOrderBillNo": "", "HRemark": "" |
| | | }]; |
| | | table.render(option); |
| | | } |
| | | |
| | | function set_AddFNew1() { |
| | | option1.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "" }]; |
| | | option1.data = [{ |
| | | "HBarCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HAuxPropNumber": "", "HAuxPropName": "" |
| | | , "HGiveAwayFlag": "", "HUnitCode": "", "HUnitName": "", "HQty": 0, "HDate": "", "HCusNumber": "", "HCusName": "" |
| | | , "HSourceBillNo": "", "HSeOrderBillNo": "", "HRemark": "", "HMTONo": "", "HShowDate": "", "HInnerBillNo": "", "HMaker": "" |
| | | }]; |
| | | table.render(option1); |
| | | } |
| | | //æ¥ææ ¼å¼å |
| | |
| | | var linterid = params[params[1]];//æºåid |
| | | var HEntryID = params[params[2]];//æºååid |
| | | var HSBillType = params[params[3]];//æºåç±»å |
| | | var HBillType = params[params[3]]; |
| | | var HSourceInterID = params[params[4]]; |
| | | var HSourceEntryID = params[params[5]]; |
| | | var HSourceBillNo = params[params[6]]; |
| | | var HSourceBillType = params[params[7]]; |
| | | } |
| | | |
| | | var edit = function (data) { |
| | | HBillType = data[0].HBillType; |
| | | HMainSourceInterID = data[0].HSourceInterID; |
| | | HMainSourceEntryID = data[0].HSourceEntryID; |
| | | HMainSourceBillNo = data[0].HSourceBillNo; |
| | | HMainSourceBillType = data[0].HSourceBillType; |
| | | //var edit = function (data) { |
| | | // HBillType = data[0].HBillType; |
| | | // HMainSourceInterID = data[0].HSourceInterID; |
| | | // HMainSourceEntryID = data[0].HSourceEntryID; |
| | | // HMainSourceBillNo = data[0].HSourceBillNo; |
| | | // HMainSourceBillType = data[0].HSourceBillType; |
| | | |
| | | } |
| | | //} |
| | | |
| | | |
| | | layui.config({ |
| | |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSBillType = params[params[2]];//æºåç±»å |
| | | var HBillType = params[params[3]]; |
| | | var HSourceInterID = params[params[4]]; |
| | | var HSourceEntryID = params[params[5]]; |
| | | var HSourceBillNo = params[params[6]]; |
| | | var HSourceBillType = params[params[7]]; |
| | | } |
| | | |
| | | var edit = function (data) { |
| | | HBillType = data[0].HBillType; |
| | | HSourceInterID = data[0].HSourceInterID; |
| | | HSourceEntryID = data[0].HSourceEntryID; |
| | | HSourceBillNo = data[0].HSourceBillNo; |
| | | HSourceBillType = data[0].HSourceBillType; |
| | | //var edit = function (data) { |
| | | // HBillType = data[0].HBillType; |
| | | // HSourceInterID = data[0].HSourceInterID; |
| | | // HSourceEntryID = data[0].HSourceEntryID; |
| | | // HSourceBillNo = data[0].HSourceBillNo; |
| | | // HSourceBillType = data[0].HSourceBillType; |
| | | |
| | | } |
| | | //} |
| | | |
| | | |
| | | layui.config({ |
| | |
| | | var HSourceBillType = ""; //æºåç±»å |
| | | var HProcID = ""; //å·¥åºID |
| | | var SchWhere = ""; //æé®æ¥è¯¢åæ° |
| | | var edit = function (data) { |
| | | workcode = data[0].workcode; |
| | | HSourceID = data[0].HSourceID; |
| | | HSourceName = data[0].HSourceName; |
| | | HICMOInterID = data[0].HICMOInterID; |
| | | HICMOEntryID = data[0].HICMOEntryID; |
| | | HMaker = data[0].HMaker; |
| | | Czybm = data[0].Czybm; |
| | | HSourceInterID = data[0].HSourceInterID; |
| | | HSourceBillType = data[0].HSourceBillType; |
| | | HProcID = data[0].HProcID; |
| | | } |
| | | //var edit = function (data) { |
| | | // workcode = data[0].workcode; |
| | | // HSourceID = data[0].HSourceID; |
| | | // HSourceName = data[0].HSourceName; |
| | | // HICMOInterID = data[0].HICMOInterID; |
| | | // HICMOEntryID = data[0].HICMOEntryID; |
| | | // HMaker = data[0].HMaker; |
| | | // Czybm = data[0].Czybm; |
| | | // HSourceInterID = data[0].HSourceInterID; |
| | | // HSourceBillType = data[0].HSourceBillType; |
| | | // HProcID = data[0].HProcID; |
| | | //} |
| | | //è·å页é¢è·³è½¬åæ° //åæ®ç¼è¾ç¶æï¼ 1.æ æºåæ°å¢Â  2.ææºåæ°å¢Â  3.ç¼è¾Â 4.æµè§Â 5.åæ´ |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var HSBillType = params[params[2]];//æºåç±»å |
| | | var workcode = params[params[3]]; |
| | | var HSourceID = params[params[4]]; |
| | | var HSourceName = params[params[5]]; |
| | | var HICMOInterID = params[params[6]]; |
| | | var HICMOEntryID = params[params[7]]; |
| | | var HMaker = params[params[8]]; |
| | | var Czybm = params[params[9]]; |
| | | var HSourceInterID = params[params[10]]; |
| | | var HSourceBillType = params[params[11]]; |
| | | var HProcID = params[params[12]]; |
| | | } |
| | | |
| | | |
| | |
| | | table.render(option); |
| | | |
| | | } else { |
| | | layer.close(index); |
| | | |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | sWhere = ""; |
| | |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSBillType = params[params[2]];//æºåç±»å |
| | | var HBillType = params[params[3]]; |
| | | var HSourceInterID = params[params[4]]; |
| | | var HSourceEntryID = params[params[5]]; |
| | | var HSourceBillNo = params[params[6]]; |
| | | var HSourceBillType = params[params[7]]; |
| | | } |
| | | |
| | | var edit = function (data) { |
| | | HBillType = data[0].HBillType; |
| | | HSourceInterID = data[0].HSourceInterID; |
| | | HSourceEntryID = data[0].HSourceEntryID; |
| | | HSourceBillNo = data[0].HSourceBillNo; |
| | | HSourceBillType = data[0].HSourceBillType; |
| | | //var edit = function (data) { |
| | | // HBillType = data[0].HBillType; |
| | | // HSourceInterID = data[0].HSourceInterID; |
| | | // HSourceEntryID = data[0].HSourceEntryID; |
| | | // HSourceBillNo = data[0].HSourceBillNo; |
| | | // HSourceBillType = data[0].HSourceBillType; |
| | | |
| | | } |
| | | //} |
| | | |
| | | |
| | | layui.config({ |
| | |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSBillType = params[params[2]];//æºåç±»å |
| | | var HBillType = params[params[3]]; |
| | | var HSourceInterID = params[params[4]]; |
| | | var HSourceEntryID = params[params[5]]; |
| | | var HSourceBillNo = params[params[6]]; |
| | | var HSourceBillType = params[params[7]]; |
| | | } |
| | | |
| | | var edit = function (data) { |
| | | HBillType = data[0].HBillType; |
| | | HSourceInterID = data[0].HSourceInterID; |
| | | HSourceEntryID = data[0].HSourceEntryID; |
| | | HSourceBillNo = data[0].HSourceBillNo; |
| | | HSourceBillType = data[0].HSourceBillType; |
| | | //var edit = function (data) { |
| | | // HBillType = data[0].HBillType; |
| | | // HSourceInterID = data[0].HSourceInterID; |
| | | // HSourceEntryID = data[0].HSourceEntryID; |
| | | // HSourceBillNo = data[0].HSourceBillNo; |
| | | // HSourceBillType = data[0].HSourceBillType; |
| | | |
| | | } |
| | | //} |
| | | |
| | | |
| | | layui.config({ |
| | |
| | | <button type="button" id="Saver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" id="VerIfySaver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="VerIfySaver">å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="a_href" id="a_href">导åº</button> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSBillType = params[params[2]];//æºåç±»å |
| | | var HBillType = params[params[3]]; |
| | | var HSourceInterID = params[params[4]]; |
| | | var HSourceEntryID = params[params[5]]; |
| | | var HSourceBillNo = params[params[6]]; |
| | | var HSourceBillType = params[params[7]]; |
| | | } |
| | | |
| | | var edit = function (data) { |
| | | HBillType = data[0].HBillType; |
| | | HSourceInterID = data[0].HSourceInterID; |
| | | HSourceEntryID = data[0].HSourceEntryID; |
| | | HSourceBillNo = data[0].HSourceBillNo; |
| | | HSourceBillType = data[0].HSourceBillType; |
| | | //var edit = function (data) { |
| | | // HBillType = data[0].HBillType; |
| | | // HSourceInterID = data[0].HSourceInterID; |
| | | // HSourceEntryID = data[0].HSourceEntryID; |
| | | // HSourceBillNo = data[0].HSourceBillNo; |
| | | // HSourceBillType = data[0].HSourceBillType; |
| | | |
| | | } |
| | | //} |
| | | |
| | | |
| | | layui.config({ |
| | |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSBillType = params[params[2]];//æºåç±»å |
| | | var HBillType = params[params[3]]; |
| | | var HSourceInterID = params[params[4]]; |
| | | var HSourceEntryID = params[params[5]]; |
| | | var HSourceBillNo = params[params[6]]; |
| | | var HSourceBillType = params[params[7]]; |
| | | } |
| | | |
| | | var edit = function (data) { |
| | | HBillType = data[0].HBillType; |
| | | HSourceInterID = data[0].HSourceInterID; |
| | | HSourceEntryID = data[0].HSourceEntryID; |
| | | HSourceBillNo = data[0].HSourceBillNo; |
| | | HSourceBillType = data[0].HSourceBillType; |
| | | //var edit = function (data) { |
| | | // HBillType = data[0].HBillType; |
| | | // HSourceInterID = data[0].HSourceInterID; |
| | | // HSourceEntryID = data[0].HSourceEntryID; |
| | | // HSourceBillNo = data[0].HSourceBillNo; |
| | | // HSourceBillType = data[0].HSourceBillType; |
| | | |
| | | } |
| | | //} |
| | | |
| | | |
| | | layui.config({ |
| | |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSBillType = params[params[2]];//æºåç±»å |
| | | var HBillType = params[params[3]]; |
| | | var HSourceInterID = params[params[4]]; |
| | | var HSourceEntryID = params[params[5]]; |
| | | var HSourceBillNo = params[params[6]]; |
| | | var HSourceBillType = params[params[7]]; |
| | | } |
| | | |
| | | var edit = function (data) { |
| | | HBillType = data[0].HBillType; |
| | | HSourceInterID = data[0].HSourceInterID; |
| | | HSourceEntryID = data[0].HSourceEntryID; |
| | | HSourceBillNo = data[0].HSourceBillNo; |
| | | HSourceBillType = data[0].HSourceBillType; |
| | | //var edit = function (data) { |
| | | // HBillType = data[0].HBillType; |
| | | // HSourceInterID = data[0].HSourceInterID; |
| | | // HSourceEntryID = data[0].HSourceEntryID; |
| | | // HSourceBillNo = data[0].HSourceBillNo; |
| | | // HSourceBillType = data[0].HSourceBillType; |
| | | |
| | | } |
| | | //} |
| | | |
| | | |
| | | layui.config({ |
| | |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | $.ajax( |
| | | { |
| | | $.ajax({ |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductIn/Delete_Json", |
| | | async: true, |
| | |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sBillType, "sBillNo": sBillNo, "sMaker": sMaker, "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | playSound1(); |
| | | if (result.count == 1) { |
| | | playSound1(); |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | |
| | | } |
| | | else { |
| | | element.tabChange('tab-POStockInBill', '1'); |
| | | var pFocus = $("#HSourceBillNo"); |
| | | //var pFocus = $("#HSourceBillNo"); |
| | | var pFocus = $("#HBarCode"); |
| | | pFocus.focus(); |
| | | pFocus.select(); |
| | | } |
| | |
| | | $("#HBillType").val("æå·¥å½å
¥"); |
| | | } |
| | | $("#HNote").val(";ç©ææ¡ç "); |
| | | element.tabChange('tab-POStockInBill', '3'); |
| | | element.tabChange('tab-POStockInBill', '4'); |
| | | } |
| | | } |
| | | |