Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
| | |
| | | , { field: 'HItemID', title: 'å·¥åºID', hide: true } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ' } |
| | | , { field: 'å·¥åº', title: 'å·¥åºåç§°', sort: true } |
| | | , { field: 'å·¥ä½ä¸å¿ID', title: 'å·¥ä½ä¸å¿ID', hide: true } |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', hide: true } |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿', sort: true, hide: true } |
| | | , { field: 'é¨é¨ID', title: 'é¨é¨ID', hide: true, hide: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', hide: true } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', sort: true, hide: true } |
| | | ]] |
| | | , page: true |
| | | }); |
| | |
| | | å·¥åºåºç«æ±æ¥åæ¹é |
| | | </a> |
| | | </dd>--> |
| | | <dd> |
| | | <!--<dd> |
| | | <a lay-href="车é´ç®¡ç/å§å¤å·¥åºååºå/Cj_StationEntrustInBill_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºå§å¤ååºå |
| | |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | 产线å
³é®ä»¶ç»å® |
| | | </a> |
| | | </dd> |
| | | </dd>--> |
| | | <!--<dd> |
| | | <a lay-href="" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | |
| | | //å¯ç æ¡å车æ§è¡ç»å½ |
| | | $('#LAY-user-login-password').on('keydown', function (e) { |
| | | if (e.keyCode == 13) { |
| | | //playSound(); |
| | | loging(); |
| | | } |
| | | }); |
| | | }); |
| | | //ç¨æ·åæ¡å车å
æ ç§»å°å¯ç æ¡ |
| | | $('#LAY-user-login-username').on('keydown', function (e) { |
| | | if (e.keyCode == 13) { |
| | |
| | | $("body").append('<audio id="cs" hidden controls> <source src = "../video/jingbao.wav" type = "audio/ogg"> </audio >'); |
| | | var audio = document.getElementById("cs"); |
| | | audio.play(); |
| | | } |
| | | } |
| | | |
| | | }); |
| | | </script> |
| | |
| | | //å è½½æ¡ç ç±»åæ°æ® |
| | | set_HBarCodeType(); |
| | | |
| | | var rowdata = [{ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HBQty": 0, "HMinQty": 0, "HPackQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | | "HAuxQty": 0, "HheatNO": "", "HProduceDate": Format(new Date(), "yyyy-MM-dd"), "HExpiryDate": Format(new Date(), "yyyy-MM-dd"), "HExpirationDateFlag": 0 |
| | | }]; |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | set_CountGrid(); |
| | |
| | | else { |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | | //#endregion |
| | | |
| | | var rowdata = [{ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HBQty": 0, "HMinQty": 0,"HPackQty":0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | | "HAuxQty": 0, "HheatNO": "", "HProduceDate": Format(new Date(), "yyyy-MM-dd"), "HExpiryDate": Format(new Date(), "yyyy-MM-dd"), "HExpirationDateFlag": 0 |
| | | }]; |
| | | //#endregion |
| | | |
| | | //#region ç¹å»äºä»¶ï¼å
æ¬onåformäºä»¶ |
| | | //头工å
·æ |
| | |
| | | HMaterID = result.list[0].HMaterID; |
| | | HBatchNo = result.list[0].HBatchNo; |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | BatchNoArray = result.list; //è·åæ¹å·ï¼ç¨æ¥ç»æ¹æ¬¡æé®åè½ä¸çæ¹å·èµå¼ |
| | | |
| | | for (let i = 0; i < result.list.length; i++) { |
| | | result.list[i].HMinQty = '';//ç¹å»åå
æ ¼çæ¶åé»è®¤å¼0ä¸ä¼æ¸
é¤ï¼å®¢æ·çäºä¼è§å¾å¾æªï¼æä»¥å
ç¨ç©ºå符串å代; |
| | | result.list[i].HQty = result.list[i].HQty.toString().match(/^\d+(?:\.\d{0,2})?/)[0] //ä¿çå°æ°ç¹å两ä½å°æ° |
| | | } |
| | | |
| | | |
| | | BatchNoArray = result.list; //è·åæ¹å·ï¼ç¨æ¥ç»æ¹æ¬¡æé®åè½ä¸çæ¹å·èµå¼ |
| | | //for (let i = 0; i < result.list.length; i++) { |
| | | // result.list[i].HMinQty = '';//ç¹å»åå
æ ¼çæ¶åé»è®¤å¼0ä¸ä¼æ¸
é¤ï¼å®¢æ·çäºä¼è§å¾å¾æªï¼æä»¥å
ç¨ç©ºå符串å代; |
| | | //} |
| | | table.reload('mainTable', { |
| | | data: result.list // è°ç¨table.reload éæ°æ¸²ææ¾ç¤ºå 载追å äºæ°æ®çè¡¨æ ¼ |
| | | }); |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | var arr = [{ HBillNo: '', HMaterNumber: checkStatus.data[0].ç©æä»£ç , HMaterName: checkStatus.data[0].ç©æåç§°, HMaterModel: '', HAuxPropNumber: '', HAuxPropName: '', HUnitNumber: checkStatus.data[0].计éåä½ä»£ç , HUnitName: checkStatus.data[0].计éåä½, HBatchNo: '', HGiveAwayFlag: '0', HQty: checkStatus.data[0].æ°é, HMinQty: '0', HPackQty: '0', HBQty: '0', HDate: '', HCusNumber: '', HCusName: '', HSeOrderBillNo: '', HRemark: '' }] |
| | | var arr = [{ HBillNo: '', HMaterNumber: checkStatus.data[0].ç©æä»£ç , HMaterName: checkStatus.data[0].ç©æåç§°, HMaterModel: '', HAuxPropNumber: '', HAuxPropName: '', HUnitNumber: checkStatus.data[0].计éåä½ä»£ç , HUnitName: checkStatus.data[0].计éåä½, HBatchNo: '', HGiveAwayFlag: '0', HQty: checkStatus.data[0].æ°é.toString("#0.00"), HMinQty: checkStatus.data[0].æå°å
è£
æ°, HPackQty: '0', HBQty: '0', HDate: '', HCusNumber: '', HCusName: '', HSeOrderBillNo: '', HRemark: '' }] |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | table.reload('mainTable', { |
| | | data: arr // è°ç¨table.reload éæ°æ¸²ææ¾ç¤ºå 载追å äºæ°æ®çè¡¨æ ¼ |
| | |
| | | function set_InitGrid() { |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 75 } |
| | | , { field: 'HMainID', title: 'æºå主å
ç ', width: 100, hide: true } |
| | | , { field: 'HSubID', title: 'æºååå
ç ', width: 100, hide: true } |
| | | , { field: 'HBillNo', title: 'æºååå·', width: 200 } |
| | |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterNumber', width: 200 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 200 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 200 } |
| | | , { field: 'HBatchNo', title: 'æ¹å·', edit: 'text', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', edit: 'text', width: 100 } |
| | | , { field: 'HMinQty', title: 'æå°å
è£
æ°', edit: 'text', width: 100 } |
| | | , { field: 'HBQty', title: 'ç®±æ°', width: 100 } |
| | | , { field: 'HPackQty', title: 'å¤ç®±æ°', edit: 'text', width: 100 } |
| | | , { field: 'HCoilNO', title: 'é¢å·æå
å·', edit: 'text', width: 100 } |
| | | , { field: 'HFurnaceNO', title: 'çå·', edit: 'text', width: 100 } |
| | | , { field: 'HFactory', title: 'åå', edit: 'text', width: 100 } |
| | | , { field: 'HCusID', title: '客æ·ID', width: 100, hide: true } |
| | | , { field: 'HCusNumber', title: '客æ·ä»£ç ', edit: 'text', event: 'HCusNumber', width: 120 } |
| | | , { field: 'HCusName', title: '客æ·åç§°', width: 120 } |
| | | , { field: 'HSeOrderBillNo', title: 'éå®è®¢åå·', width: 200 } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text', width: 100 } |
| | | , { field: 'HProduceDate', title: 'çäº§æ¥æ', event: 'HProduceDate', width: 100 } |
| | | , { field: 'HExpiryDate', title: 'ä¿è´¨æè³', event: 'HExpiryDate', width: 100 } |
| | | , { field: 'HheatNO', title: 'çå¤ç', edit: 'text', width: 100 } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§ID', width: 100, hide: true } |
| | | , { field: 'HAuxPropNumber', title: 'è¾
å©å±æ§ä»£ç ', edit: 'text', event: 'HAuxPropNumber', width: 100 } |
| | | , { field: 'HAuxPropName', title: 'è¾
å©å±æ§åç§°', width: 100 } |
| | | , { field: 'HUnitID', title: '计éåä½ID', width: 100, hide: true } |
| | | , { field: 'HUnitNumber', title: '计éåä½ä»£ç ', edit: 'text', event: 'HUnitNumber', width: 100 } |
| | | , { field: 'HUnitName', title: '计éåä½',width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹å·', edit: 'text', width: 100 } |
| | | |
| | | , { field: 'HCoilNO', title: 'é¢å·æå
å·', edit: 'text', width: 100 } |
| | | , { field: 'HFurnaceNO', title: 'çå·', edit: 'text', width: 100 } |
| | | , { field: 'HFactory', title: 'åå', edit: 'text', width: 100 } |
| | | , { field: 'HAuxQty', title: 'è¾
å使°é', edit: 'text', width: 100 } |
| | | , { field: 'HheatNO', title: 'çå¤ç', edit: 'text', width: 100 } |
| | | , { field: 'HProduceDate', title: 'çäº§æ¥æ', event: 'HProduceDate', width: 100 } |
| | | , { field: 'HExpiryDate', title: 'ä¿è´¨æè³', event: 'HExpiryDate', width: 100 } |
| | | , { field: 'HExpirationDateFlag', title: 'æ¯å¦å¯ç¨ä¿è´¨æ', width: 100, templet: '#switchTp3', unresize: false } |
| | | |
| | | , { 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: 'ç®±æ°', width: 100 } |
| | | , { field: 'HPackQty', title: 'å¤ç®±æ°', edit: 'text', width: 100 } |
| | | , { field: 'HDate', title: 'è¿ææ¥æ', width: 100 } |
| | | , { field: 'HCusID', title: '客æ·ID', width: 100, hide: true } |
| | | , { field: 'HCusNumber', title: '客æ·ä»£ç ', edit: 'text', event: 'HCusNumber', width: 120 } |
| | | , { field: 'HCusName', title: '客æ·åç§°', width: 120 } |
| | | , { field: 'HSeOrderBillNo', title: 'éå®è®¢åå·', width: 200 } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text', width: 100 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]; |
| | | option = { |
| | |
| | | , elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , cellMinWidth: 75 |
| | | , height: 'full-325' |
| | | , cols: [columns] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | |
| | | //OledbXMLReportDataéåäºAccessçæ¬å°æ°æ®åºï¼ä¸ºäºæ¼ç¤ºæ¹ä¾¿ï¼è¿éä»Grid++ReportçAccessä¾åæ°æ®åºä¸è·åæ¥è¡¨æ°æ® |
| | | |
| | | //OledbXMLReportData.GenOneRecordset(this, "select * from Customers order by CustomerID"); |
| | | SqlXMLReportData.GenEntireData(this, "select distinct b.æµæ°´å·,a.ä»»å¡åå·,a.æµè½¬å¡æ°é,a.产å代ç ,a.çæ¬,a.æåç¼å·,a.产ååç§°,a.æ¥æ,a.计åå®å·¥æ¥æ,a.åæ®å·,a.æè´¨,b.å·¥åºåç§°,b.模å
·ç¼å·,b.å·¥èºåæ°,a.å
è£
æ è¯,a.å
è£
æ è¯ç¼ç ,a.éå®è®¢åå·,a.åä»¶è§æ ¼,a.æµè½¬å¡æ°é ç产æ°é,a.åæ®å· + '&' + ltrim(b.HEntryID) æ¡ç ç¼å· from h_v_Sc_ProcessExchangeBillQuery a left join h_v_Sc_ProcessExchangeBillQuerySub b on a.hmainid=b.hmainid where b.hmainid="+Request.Params["linterid"] ,"select 1"); |
| | | SqlXMLReportData.GenEntireData(this, "select distinct b.æµæ°´å·,a.ä»»å¡åå·,a.æµè½¬å¡æ°é,a.产å代ç ,a.çæ¬,a.æåç¼å·,a.产ååç§°,a.æ¥æ,a.计åå®å·¥æ¥æ,a.åæ®å·,a.ç产订åå·,a.æè´¨,b.å·¥åºåç§°,b.模å
·ç¼å·,b.å·¥èºåæ°,a.å
è£
æ è¯,a.å
è£
æ è¯ç¼ç ,a.éå®è®¢åå·,a.åä»¶è§æ ¼,a.æµè½¬å¡æ°é ç产æ°é,a.åæ®å· + '&' + ltrim(b.HEntryID) æ¡ç ç¼å· from h_v_Sc_ProcessExchangeBillQuery a left join h_v_Sc_ProcessExchangeBillQuerySub b on a.hmainid=b.hmainid where b.hmainid="+Request.Params["linterid"] ,"select 1"); |
| | | } |
| | | </script> |
| | | </head> |
| | |
| | | <table class="" 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-lg" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>䏿¨</button> |
| | | <button type="button" class="layui-btn" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>䏿¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill_pl"><i class="layui-icon layui-icon-form"></i>æ¹é䏿¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | |
| | | <table class="" 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-reload"><i class="layui-icon layui-icon-refresh"></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="btnModify"><i class="layui-icon layui-icon-form"></i>ä¿®æ¹</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btndelete"><i class="layui-icon layui-icon-delete"></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-generate"><i class="layui-icon layui-icon-file"></i>çæéè´§å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></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-exit"><i class="layui-icon layui-icon-return"></i>éåº</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | <table class="" 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-file-b"></i>æ°å¢</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | <div style="padding: 10px;"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="btndelete" style="padding:0 5px">å é¤</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="btnModify" style="padding:0 5px">ä¿®æ¹</button> |
| | | <!--<button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="btnModify" style="padding:0 5px">ä¿®æ¹</button>--> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="btnJY" style="padding:0 5px">ç¦ç¨</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="btnFJY" style="padding:0 5px">åç¦ç¨</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <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-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-exit"><i class="layui-icon layui-icon-return"></i>éåº</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | <table class="" 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-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button>--> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-sm" lay-filter="btndelete" style="padding:0 5px">å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <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-Edit"><i class="layui-icon layui-icon-form"></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-Edit"><i class="layui-icon layui-icon-form"></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-exit"><i class="layui-icon layui-icon-return"></i>éåº</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç©æè¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.html', 'yes'] |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList_LSQP.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | if (HOrgID) { |
| | | sWhere += " and HOrgID = '" + HOrgID + "'"; |
| | | } |
| | | sWhere += " and å·¥åºä»£ç != '9999'" |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">æµè½¬å¡æ°é</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" value="0" name="HPlanQty" style="width:190px;" id="HPlanQty"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label"><span style="color:red;">*</span>åæ®æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HDate" id="HDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">ç产ç»ç»</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPRDOrg" id="HPRDOrg" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HPRDOrgID" id="HPRDOrgID"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">æµè½¬å¡æ°é</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" value="0" name="HPlanQty" style="width:190px;" id="HPlanQty"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">æªåºç«æ°é</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" value="0" name="NoOutboundHqty" style="width:190px;" id="NoOutboundHqty"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">ç产ç»ç»</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPRDOrg" id="HPRDOrg" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HPRDOrgID" id="HPRDOrgID"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æä½å代ç </label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HEmpNumber" id="HEmpNumber"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æä½ååç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HEmpName" id="HEmpName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç¶æ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HStatus" lay-filter="HStatus" style="width:190px;"> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HBeginDate" style="width:190px;"> |
| | | <div class="layui-row" style="margin-top:5px"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HBeginDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HEndDate" style="width:190px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HEndDate" 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> |
| | | <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-row"> |
| | | <div class="layui-inline"> |
| | |
| | | var option = []; |
| | | |
| | | var HModName = "JIT_LiftMaterPlaBillnList"; |
| | | var titleData = ["HMaterID", "HUnitID", "HSourceID","hmainid","HProcExchInterID","HProcID","HunitID","HEmpID","HGroupID","HProcExchEntryID","HSubID","HICMOInterID"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["HMaterID", "HUnitID", "HSourceID","hmainid","HProcExchInterID","HProcID","HunitID","HEmpID","HGroupID","HProcExchEntryID","HSubID","HICMOInterID","éæ©","æ¥è¯¢æ¥æ","ææ¬å¯¹è±¡","ææ¬å¯¹è±¡åç§°","HBillStatus","HBillType","HPRDORGID"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | |
| | |
| | | $("#Comparator").val("0"); |
| | | $("#HNumber").val(""); |
| | | $("#HName").val(""); |
| | | $("#HEmpNumber").val(""); |
| | | $("#HEmpName").val(""); |
| | | form.render('select'); |
| | | sWhere = ""; |
| | | } |
| | |
| | | var ColContent = $("#ColContent").val(); |
| | | var HNumber = $("#HNumber").val(); //产å代ç å³ç©æç¼ç |
| | | var HName = $("#HName").val(); //å½åå·¥åº |
| | | var HEmpNumber = $("#HEmpNumber").val(); //æä½å代ç |
| | | var HEmpName = $("#HEmpName").val(); //æä½ååç§° |
| | | |
| | | if (ColName != 0 && Comparator != 0) { |
| | | var com = ""; |
| | |
| | | if (HName) { |
| | | sWhere += " and å½åå·¥åº like '%" + HName + "%'"; |
| | | } |
| | | if (HEmpNumber) { |
| | | sWhere += " and æä½å代ç like '%" + HEmpNumber + "%'"; |
| | | } |
| | | if (HEmpName) { |
| | | sWhere += " and æä½å like '%" + HEmpName + "%'"; |
| | | } |
| | | |
| | | if (HStatus) { |
| | | switch (HStatus) { |
| | |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable'); |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | } |
| | | obj.update({ |
| | | HProcName: checkStatus.data[0].å·¥åº |
| | | , HProcID: checkStatus.data[0].HItemID |
| | | , HProcNumber: checkStatus.data[0].å·¥åºä»£ç |
| | | , HCenterID: checkStatus.data[0].å·¥ä½ä¸å¿ID |
| | | , HCenterNumber: checkStatus.data[0].å·¥ä½ä¸å¿ä»£ç |
| | | , HCenterName: checkStatus.data[0].å·¥ä½ä¸å¿ |
| | | , HDeptID: checkStatus.data[0].é¨é¨ID |
| | | , HDeptNumber: checkStatus.data[0].é¨é¨ä»£ç |
| | | , HDeptName: checkStatus.data[0].é¨é¨ |
| | | }); |
| | | |
| | | layer.close(layer.index); |
| | |
| | | type: "get", |
| | | url: GetWEBURL() + "LEMS/MES_Gy_RoutingBillList_Json", |
| | | async: true, |
| | | data: { "sWhere": " and åæ®å·='" + HBillNo + "'", "user": sessionStorage["HUserName"] }, |
| | | data: { "sWhere": " and åæ®å·='" + HBillNo + "'" + " and å·¥åºä»£ç !='" + 9999 + "'", "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | var Tablerow = []; |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æå°ç¶æ</label> |
| | | <div class="layui-input-block" style="width:100px"> |
| | | <select name="city" lay-verify="required" id="SHPrintQty"> |
| | | <option value="å
¨é¨">å
¨é¨</option> |
| | | <option value="æªæå°">æªæå°</option> |
| | | <option value="å·²æå°">å·²æå°</option> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç产车é´</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HDeptName" id="HDeptName" lay-verify="required" lay-search class="layui-input"> |
| | | <!--å¨ææ¸²æè½¦é´--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <input type="checkbox" id="wybj" name="wybj" title="åªæ¾ç¤ºå§å¤" lay-filter="wybj" lay-skin="primary"> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <label class="layui-form-label">è§æ ¼åå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate"> |
| | | <input type="text" class="layui-input" name="HModel" id="HModel"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate1"> |
| | | </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> |
| | |
| | | <input type="text" class="layui-input" name="HWorkBillNo" id="HWorkBillNo"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top: 10px; margin-bottom: 10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <label class="layui-form-label">æå°ç¶æ</label> |
| | | <div class="layui-input-block" style="width:100px"> |
| | | <select name="city" lay-verify="required" id="SHPrintQty"> |
| | | <option value="å
¨é¨">å
¨é¨</option> |
| | | <option value="æªæå°">æªæå°</option> |
| | | <option value="å·²æå°">å·²æå°</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <input type="checkbox" id="wybj" name="wybj" title="åªæ¾ç¤ºå§å¤" lay-filter="wybj" lay-skin="primary"> |
| | | <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"> |
| | | <input type="date" class="layui-input" id="HDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate1"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | var option2 = ""; |
| | | var HBillNo = ""; |
| | | var wybj = false; |
| | | var HDeptID = 0; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | // |
| | | var HModName = "Sc_ProcessExchangeIssueBillList"; |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //#region 头工å
·æ äºä»¶ |
| | |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(); |
| | | //车é´å表 |
| | | getDept(); |
| | | } |
| | | |
| | | //è·å车é´å表 |
| | | function getDept() { |
| | | var HDeptName = '<option value="0" style="color:red;" selected>å
¨é¨è½¦é´</option>'; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Sc_ICMOBill/GetHDeptList", |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | HDeptName += '<option style="color:blue;" value="' + data[i].HItemID + '">' + data[i].HName + '</option>'; |
| | | } |
| | | $("#HDeptName").append(HDeptName); |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //#region éç½®è¿æ»¤æ¡ä»¶æ¹æ³ |
| | | function set_ClearQuery() { |
| | |
| | | $("#HOrderProcNO").val("");//订åè·è¸ªå· |
| | | $("#SHname").val("");//ç©æ|åä»¶åç§°|åä»¶è§æ ¼ |
| | | $("#HBillNo").val("");//åæ®å· |
| | | $("#HModel").val("");//è§æ ¼åå· |
| | | $("#HDeptName").val("0");//è½¦é´ |
| | | form.render('select'); |
| | | //$("#btnSearch").click(); |
| | | sWhere = ""; |
| | | get_FastQuery() ; |
| | | sWhere = ""; |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | var HWorkBillNo = $("#HWorkBillNo").val(); |
| | | var SHname = $("#SHname").val();//ç©æ|åä»¶åç§°|åä»¶è§æ ¼ |
| | | var HBillNo = $("#HBillNo").val();//åæ®å· |
| | | var HModel = $("#HModel").val();//è§æ ¼åå· |
| | | var HDeptName = $("#HDeptName").val();//è½¦é´ |
| | | if (SHPrintQty) {//夿æå°ç¶æ |
| | | if (SHPrintQty == "å
¨é¨") { |
| | | sWhere = " and æå°æ¬¡æ° >= 0 "; |
| | |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'" |
| | | } |
| | | if (HDeptName && HDeptName != "0") { |
| | | sWhere += " and HWorkShopID = '" + HDeptName + "'"; |
| | | } |
| | | if (HModel) { |
| | | sWhere += " and åä»¶è§æ ¼ like '%" + HModel + "%'"; |
| | | } |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | |
| | | , { field: 'hmainid', title: 'hmainid', width: 90, hide: true } |
| | | , { field: 'HEntryID', title: 'HEntryID', width: 90, hide: true } |
| | | , { field: 'ä¸è¾¾ç¶æ', title: 'ä¸è¾¾ç¶æ' } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true } |
| | | , { field: 'ç产车é´', title: 'ç产车é´' } |
| | | , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true } |
| | | , { field: 'åä»¶åç§°', title: '产ååç§°' } |
| | | , { field: 'åä»¶è§æ ¼', title: 'è§æ ¼åå·' } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true } |
| | | , { field: 'åä½', title: 'åä½' } |
| | | , { field: 'æµæ°´å·', title: 'æµæ°´å·' } |
| | | , { field: 'HProcID', title: 'HProcID', hide: true } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ' } |
| | | , { field: 'å·¥åºåç§°', title: 'å·¥åºåç§°' } |
| | | , { field: 'æµè½¬å¡æ°é', title: 'æµè½¬å¡æ°é', width: 100 } |
| | | , { |
| | | field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ', width: 120, sort: true, templet: "<div>{{d.计åå¼å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå¼å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" |
| | | } |
| | | , { |
| | | field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ', width: 120, sort: true, templet: "<div>{{d.计åå®å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå®å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" |
| | | } |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: '产å代ç ', title: '产å代ç ' } |
| | | , { field: 'åä½ä»£ç ', title: 'åä½ä»£ç ' } |
| | | |
| | | |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°' } |
| | | , { |
| | | field: 'æ¥æ', title: 'æ¥æ', width: 120, sort: true, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" |
| | |
| | | , { field: 'hicmointerid', title: 'hicmointerid', width: 80, hide: true } |
| | | , { field: 'ä»»å¡åå·', title: 'ä»»å¡åå·', width: 140 } |
| | | , { field: 'HWorkShopID', title: 'HWorkShopID', width: 80, hide: true } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true } |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´' } |
| | | , { field: 'æµæ°´å·', title: 'æµæ°´å·' } |
| | | , { field: 'HProcID', title: 'HProcID', hide: true } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ' } |
| | | , { field: 'å·¥åºåç§°', title: 'å·¥åºåç§°' } |
| | | , { |
| | | field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ', width: 120, sort: true, templet: "<div>{{d.计åå¼å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå¼å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" |
| | | } |
| | | , { |
| | | field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ', width: 120, sort: true, templet: "<div>{{d.计åå®å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå®å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" |
| | | } |
| | | , { field: 'æµè½¬å¡æ°é', title: 'æµè½¬å¡æ°é', width: 100 } |
| | | , { field: 'å§å¤æ è®°', title: 'å§å¤æ è®°' } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 80, hide: true } |
| | | , { field: 'å件代ç ', title: 'å件代ç ' } |
| | | , { field: 'åä»¶åç§°', title: 'åä»¶åç§°' } |
| | | , { field: 'åä»¶è§æ ¼', title: 'åä»¶è§æ ¼' } |
| | | , { field: '产ååç§°', title: 'åä»¶åç§°' } |
| | | , { field: 'è§æ ¼åå·', title: 'åä»¶è§æ ¼' } |
| | | , { field: 'æ¹å·', title: 'æ¹å·' } |
| | | , { field: 'åææ¹æ¬¡å·', title: 'åææ¹æ¬¡å·' } |
| | | , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true } |
| | | , { field: '产å代ç ', title: '产å代ç ' } |
| | | , { field: '产ååç§°', title: '产ååç§°' } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·' } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true } |
| | | , { field: 'åä½ä»£ç ', title: 'åä½ä»£ç ' } |
| | | , { field: 'åä½', title: 'åä½' } |
| | | , { field: 'è®¾å¤æ¨¡å
·ä»£ç ', title: 'è®¾å¤æ¨¡å
·ä»£ç ' } |
| | | , { field: 'è®¾å¤æ¨¡å
·', title: 'è®¾å¤æ¨¡å
·' } |
| | | , { field: 'ç产æ°é', title: 'ç产æ°é' } |
| | | , { field: 'æµè½¬å¡æ°é', title: 'æµè½¬å¡æ°é' } |
| | | |
| | | , { field: 'æè¦', title: 'æè¦' } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·' } |
| | |
| | | } |
| | | //#region æ¥è¯¢ |
| | | function get_Display(sWhere) { |
| | | sWhere += " and HPRDORGID=" + sessionStorage["OrganizationID"] + " "; |
| | | sWhere += " and HPRDORGID=" + sessionStorage["OrganizationID"] + " and å·¥åºåç§° != '转工åº'"; |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/LEMS/MES_Sc_ProcessExchangeIssueBillList_Json', |
| | |
| | | //$("#HStockPlaceID").val(result.data[0].HItemID); |
| | | $("#HWHID").val(result.data[0].HItemID); |
| | | $("#HWHNAME").val(result.data[0].HName); |
| | | element.tabChange('tab-POStockInBill', '2'); |
| | | element.tabChange('tab-SellOutBill', '3'); |
| | | //æ«æºåæååï¼å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | |
| | | //$("#HDeptID").val(result.data[0].HDeptID); |
| | | //$("#HDeptName").val(result.data[0].HDeptName); |
| | | HSourceFlag = true; |
| | | element.tabChange('tab-SellOutBill', '3'); |
| | | element.tabChange('tab-SellOutBill', '2'); |
| | | //æ«æºåæååï¼å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").focus(); |
| | | $("#HWHNAME").focus(); |
| | | //table.reload('wl-table', { |
| | | // where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | //}); |
| | |
| | | $("#HBillerID").hide(); |
| | | var HSourceFlag = sessionStorage["SourceFlag"];//æºåå·²æ è®° |
| | | |
| | | //å
æ é»è®¤æ¾ç¤ºå¨ååå·ä½ç½® |
| | | //å
æ é»è®¤æ¾ç¤ºå¨æºåå·ä½ç½® |
| | | $("#HSourceBillNo").focus(); |
| | | |
| | | //çå¬å½åå¤äºåªä¸ä¸ªé¡µç¾ |
| | |
| | | //$("#HStockPlaceID").val(result.data[0].HItemID); |
| | | $("#HWHID").val(result.data[0].HItemID); |
| | | $("#HWHNAME").val(result.data[0].HName); |
| | | element.tabChange('tab-POStockInBill', '2'); |
| | | element.tabChange('tab-MateOutBill', '3'); |
| | | //æ«æºåæååï¼å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | |
| | | if (result.data.hMulSourceFlagField == 0) { |
| | | $("#HSourceBillNo").attr("readonly", "readonly"); |
| | | } |
| | | element.tabChange('tab-MateOutBill', '3'); |
| | | //æ«æºåæååï¼å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").focus(); |
| | | element.tabChange('tab-MateOutBill', '2'); |
| | | //æ«æºåæååï¼å
æ æ¾ç¤ºå°ä»åºä¸ |
| | | $("#HWHNAME").focus(); |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | playSound1();//ææ¾å£°é³ |
| | | layer.load(3) |
| | |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input" readonly> |
| | | <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input"> |
| | | <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | |
| | | var HSourceFlag = sessionStorage["SourceFlag"]; |
| | | //é»è®¤å¸¦å
¥çä»åºï¼å¦æå¯ç¨ä»ä½åä»ä½ææï¼å¦ææ²¡æå¯ç¨åä»ä½ç°åº¦ new |
| | | |
| | | $("#HBarCode").focus(); |
| | | $("#HWHNAME").focus(); |
| | | |
| | | // ç¼è¾è·åè¡¨å¤´æ¶æ¶é´æ ¼å¼ç«æ£æ¹å¼ |
| | | function formatDate(date) { |
| | |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //$("#HStockPlaceName").val(result.data[0].HName); |
| | | //$("#HStockPlaceID").val(result.data[0].HItemID); |
| | | $("#HBarCode").focus(); |
| | | $("#HWHID").val(result.data[0].HItemID); |
| | | $("#HWHNAME").val(result.data[0].HName); |
| | | element.tabChange('tab-POStockInBill', '2'); |
| | |
| | | else { |
| | | //é»è®¤è¿å
¥åæ®ä¿¡æ¯é¡µç¾ |
| | | element.tabChange('tab-POStockInBill', '2'); |
| | | //é»è®¤å
æ æ¾ç¤ºå¨æ¡ç éé¢ |
| | | var pFocus = $("#HBarCode"); |
| | | //é»è®¤å
æ æ¾ç¤ºå¨ä»åºéé¢ |
| | | var pFocus = $("#HWHNAME"); |
| | | pFocus.focus(); |
| | | pFocus.select(); |
| | | } |
| | |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //$("#HStockPlaceName").val(result.data[0].HName); |
| | | //$("#HStockPlaceID").val(result.data[0].HItemID); |
| | | $("#HBarCode").focus(); |
| | | $("#HWHID").val(result.data[0].HItemID); |
| | | $("#HWHNAME").val(result.data[0].HName); |
| | | element.tabChange('tab-POStockInBill', '2'); |