Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
| | |
| | | //var WEBURL = "http://localhost:8080/API/"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/lubao"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨é²æ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ç« ç´«ææ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ç« ç´«ææ¬å°é
ç½® |
| | | //var WEBURL = "http://10.1.4.155/API/"; //æ±ä¸°å®¢æ·NEW |
| | | //var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ |
| | | //var WEBURL = "http://183.129.128.86:9090/API/"; //å¯è´å¥ç¹å®¢æ·æå¡å¨å¤ç½ |
| | |
| | | <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> |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | |
| | | |
| | | |
| | | var params = getUrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | var closeType = 2; //å
³éç±»å |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var closeType = params[params[3]]; //å
³éç±»å |
| | | } |
| | | var hID = params[params[0]];//ç¼è¾æ¥ç |
| | | |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | |
| | | , form = layui.form |
| | | , laydate = layui.laydate |
| | | , element = layui.element; |
| | | |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | var closeType = 2; //å
³éç±»å |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var closeType = params[params[3]]; //å
³éç±»å |
| | | } |
| | | var hID = params[params[1]];//ç¼è¾æ¥ç |
| | | |
| | | |
| | | |
| | | //常è§ç¨æ³ |
| | | laydate.render({ |
| | |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | }; |
| | | //夿æ¯å¦æ°å¢ |
| | | if (hID == null || hID == 0) { |
| | | if (OperationType == 1) { |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HRemark": "" }]; |
| | | table.render(option); |
| | |
| | | |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) { |
| | | if (closeType == 0) { |
| | | //å
³éé¡µç¾ |
| | | parent.layui.admin.events.closeThisTabs(); |
| | | if (OperationType == 1) { |
| | | Pub_Close(closeType);//ç´æ¥æ°å¢closeTypeå¼ä¸º2ï¼åè¡¨è°æ°å¢closeTypeå¼ä»åè¡¨ä¼ é |
| | | } |
| | | if (closeType == 1) { |
| | | //å
³éå¼¹çª |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.close(index); |
| | | } else if (closeType == 2) { |
| | | //å
³éé¡µç¾ |
| | | parent.layui.admin.events.closeThisTabs(); |
| | | else if (OperationType == 3) { |
| | | Pub_Close(closeType); |
| | | } |
| | | else { |
| | | Pub_Close(2); |
| | | } |
| | | }); |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | //form.on('submit(Cancel)', function () { |
| | | // //sessionStorage["SourceFlag"] = false; |
| | | // parent.location.href = "../../../views/index.html" |
| | |
| | | <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>//è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | |
| | | |
| | | |
| | | var params = getUrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | var closeType = 2; //å
³éç±»å |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var closeType = params[params[3]]; //å
³éç±»å |
| | | } |
| | | var hID = params[params[0]];//ç¼è¾æ¥ç |
| | | |
| | | |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | |
| | | , form = layui.form |
| | | , laydate = layui.laydate |
| | | , element = layui.element; |
| | | |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | var closeType = 2; //å
³éç±»å |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var closeType = params[params[3]]; //å
³éç±»å |
| | | } |
| | | var hID = params[params[1]];//ç¼è¾æ¥ç |
| | | |
| | | //常è§ç¨æ³ |
| | | laydate.render({ |
| | |
| | | , page: true //å¼å¯å页 |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" ,width: 100} |
| | | , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true} |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HMaterCode', title: '模å
·ä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | | , { field: 'HMaterName', title: '模å
·åç§°', edit: 'text', width: 100} |
| | | , { field: 'HMaterName', title: '模å
·åç§°', edit: 'text', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', edit: 'text', width: 100 } |
| | | , { field: 'HDesignLife', title: '设计寿å½', edit: 'text', width: 100} |
| | | , { field: 'HLeaveLife', title: 'å©ä½å¯¿å½', edit: 'text', width: 100} |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', edit: 'text', width: 100 } |
| | | , { field: 'HDesignLife', title: '设计寿å½', edit: 'text', width: 100 } |
| | | , { field: 'HLeaveLife', title: 'å©ä½å¯¿å½', edit: 'text', width: 100 } |
| | | , { field: 'HUseLife', title: '累积使ç¨å¯¿å½', edit: 'text', width: 100 } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', edit: 'text', width: 100 } |
| | | , { field: 'HQty', title: 'å®åæ°é', edit: 'text', width: 100} |
| | | , { field: 'HPrice', title: 'åä»·', edit: 'text', width: 100} |
| | | , { field: 'HMoney', title: 'éé¢', edit: 'text', width: 100} |
| | | , { field: 'HWHID', title: 'HWHID', edit: 'text', width: 100, hide: true} |
| | | , { field: 'HQty', title: 'å®åæ°é', edit: 'text', width: 100 } |
| | | , { field: 'HPrice', title: 'åä»·', edit: 'text', width: 100 } |
| | | , { field: 'HMoney', title: 'éé¢', edit: 'text', width: 100 } |
| | | , { field: 'HWHID', title: 'HWHID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HWHCode', title: 'åæä»åºä»£ç ', edit: 'text', event: 'HWHCode', width: 100 } |
| | | , { field: 'HWHName', title: 'åæä»åº', edit: 'text', width: 100 } |
| | | , { field: 'HSPID', title: 'HSPID', edit: 'text', width: 100, hide: true} |
| | | , { field: 'HSPID', title: 'HSPID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSPCode', title: 'ä»ä½ä»£ç ', edit: 'text', event: 'HSPCode', width: 100 } |
| | | , { field: 'HSPName', title: 'ä»ä½', edit: 'text', width: 100 } |
| | | , { field: 'HRemark', title: '表ä½å¤æ³¨', edit: 'text', width: 100 } |
| | |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | }; |
| | | //夿æ¯å¦æ°å¢ |
| | | if (hID == null || hID == 0) { |
| | | if (OperationType == 1) { |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0,"HSPCode":"", "HSPName": "", "HRemark": "" }]; |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HBatchNo": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HRemark": "" }]; |
| | | table.render(option); |
| | | } |
| | | else { |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event === 'HMaterCode') //模å
·ä¿¡æ¯ |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | if (obj.event === 'HWHCode') //ä»åºä»£ç |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | |
| | | return false; |
| | | |
| | | } |
| | | }) |
| | | }) |
| | | }); |
| | | |
| | | //çå¬åå
æ ¼ç¼è¾ |
| | |
| | | , "HKeeperName": data.åæäºº //ä¿ç®¡ååç§° |
| | | , "HDeptID": data.HDeptID //é¨é¨ID |
| | | , "HDeptName": data.é¨é¨ //é¨é¨åç§° |
| | | , "HSourceBillType":"" //æºåç±»å |
| | | , "HSourceBillType": "" //æºåç±»å |
| | | , "XDH": "" //éåå· |
| | | , "HExplanation": data.æè¦ //æè¦ |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ //夿³¨ |
| | |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) { |
| | | if (closeType == 0) { |
| | | //å
³éé¡µç¾ |
| | | parent.layui.admin.events.closeThisTabs(); |
| | | if (OperationType == 1) { |
| | | Pub_Close(closeType);//ç´æ¥æ°å¢closeTypeå¼ä¸º2ï¼åè¡¨è°æ°å¢closeTypeå¼ä»åè¡¨ä¼ é |
| | | } |
| | | if (closeType == 1) { |
| | | //å
³éå¼¹çª |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.close(index); |
| | | } else if (closeType == 2) { |
| | | //å
³éé¡µç¾ |
| | | parent.layui.admin.events.closeThisTabs(); |
| | | else if (OperationType == 3) { |
| | | Pub_Close(closeType); |
| | | } |
| | | else { |
| | | Pub_Close(2); |
| | | } |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 1000, 5000, 10000] |
| | | , limit: 50 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: '忮ID', hide: true } |
| | |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 1000, 5000, 10000] |
| | | , limit: 50 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: '忮ID', hide: true } |
| | |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 1000, 5000, 10000] |
| | | , limit: 50 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: '忮ID', hide: true } |
| | |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | ,limits: [50,500,1000,5000,10000] |
| | | ,limit: 50 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: '忮ID', hide: true } |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '../模治å
·ä»åºç®¡ç/Sc_Add_MouldProdBackBillList.html', |
| | | content: '../模治å
·ä»åºç®¡ç/Sc_Add_MouldProdBackBillList.html?OperationType=1&linterid=0&HSouceBillType=0&closeType=1', |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../模治å
·ä»åºç®¡ç/Sc_Add_MouldProdBackBillList.html?hID=' + hID |
| | | , content: '../模治å
·ä»åºç®¡ç/Sc_Add_MouldProdBackBillList.html?OperationType=3&linterid='+hID+'&HSouceBillType=0&closeType=1' |
| | | , resize: false, |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 1000, 5000, 10000] |
| | | , limit: 50 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: '忮ID', hide: true } |
| | |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 1000, 5000, 10000] |
| | | , limit: 50 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: '忮ID', hide: true } |
| | |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '../模治å
·ä»åºç®¡ç/Sc_Add_MouldProdOutBillList.html', |
| | | content: '../模治å
·ä»åºç®¡ç/Sc_Add_MouldProdOutBillList.html?OperationType=1&linterid=0&HSouceBillType=0&closeType=1', |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../模治å
·ä»åºç®¡ç/Sc_Add_MouldProdOutBillList.html?hID=' + hID |
| | | , content: '../模治å
·ä»åºç®¡ç/Sc_Add_MouldProdOutBillList.html?OperationType=3&linterid='+hID+'&HSouceBillType=0&closeType=1' |
| | | , resize: false, |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 1000, 5000, 10000] |
| | | , limit: 50 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: '忮ID', hide: true } |