| | |
| | | function GetWEBURL() { |
| | | //var WEBURL = "http://192.168.16.80:8011/"; //åå
¬å®¤æå¡å¨ |
| | | //var WEBURL = "http://localhost:8081/SWEAPI/"; //chæ¬å° |
| | | //var WEBURL = "http://localhost:8085/API/"; //zgqæ¬å° |
| | | var WEBURL = "http://localhost:8085/API/"; //zgqæ¬å° |
| | | //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/"; //æºäºæå¡å¨ |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">主管</label> |
| | | <label class="layui-form-label">èå</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HEmpName" id="HEmpName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" class="layui-input" value="" style="float:left;width:150px;"> |
| | |
| | | <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="HPayType" id="HPayType" style="padding-left: 32px;"> |
| | | <input type="text" name="HPayTypeName" id="HPayTypeName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HPayID" id="HPayID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="PayType" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </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="HPayType" id="HPayType" style="padding-left: 32px;"> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">æè¦</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | , { 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: 'HMaterCheck', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', edit: 'text', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', edit: 'text', width: 190 } |
| | | //, { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'HProcID', title: 'HProcID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HProcNumber', title: 'å·¥åºä»£ç ', edit: 'text', event: "HProcCheck", width: 100 } |
| | | , { field: 'HProcName', title: 'å·¥åºåç§°', edit: 'text', width: 100 } |
| | |
| | | }; |
| | | //夿æ¯å¦æ°å¢ |
| | | if (OperationType == 1) { |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HCheckDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HChecker").val(sessionStorage["HUserName"]); |
| | | $("#HCloseDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HCloseMan").val(sessionStorage["HUserName"]); |
| | | $("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDeleteDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HProcID": "", "HProcNumber": "", "HProcName": "" |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/MouldInformation.html', 'yes'], |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_MaterialList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | HMaterID: checkStatus.data[0].HItemID, |
| | | HMaterCode: checkStatus.data[0].HNumber, |
| | | HMaterName: checkStatus.data[0].HName, |
| | | HMaterSpec: checkStatus.data[0].HModel, |
| | | |
| | | HDesignLife: 0, //è®¾è®¡å¯¿å½ |
| | | HLeaveLife: 0, //å©ä½å¯¿å½ |
| | |
| | | , "HGroupID": data.HGroupID //çç»ID |
| | | , "HGroupName": data.çç» //çç»åç§° |
| | | , "HEmpID": data.HEmpID //主管ID |
| | | , "HEmpName": data.主管 //主管åç§° |
| | | , "HEmpName": data.èå //主管åç§° |
| | | , "HDeptID": data.HDeptID //é¨é¨ID |
| | | , "HDeptName": data.é¨é¨ //é¨é¨åç§° |
| | | , "HPayID": data.HPayID |
| | | , "HPayTypeName": data.å·¥èµç±»å |
| | | , "HSourceBillType": "" //æºåç±»å |
| | | , "Box2": "" //éåå· |
| | | , "HExplanation": data.æè¦ //æè¦ |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/DeptInformation.html', 'yes'], |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_DepartmentList.html?Type=HDeptID', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | } |
| | | }); |
| | | }); |
| | | //表头信æ¯å·¥èµç±»åå¼¹çª |
| | | form.on('submit(PayType)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'å·¥èµç±»åå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../../views/å·¥èµç®¡ç/Gy_WorkPayTypeBillList.html?Type=HPayTypeID', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HPayTypeName").val(checkStatus.data[0].å·¥èµç±»å); |
| | | $("#HPayID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) { |
| | | if (OperationType == 1) { |
| | |
| | | return [year, month, day].join('-'); |
| | | } |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | //var tableData = data.field; |
| | | data.field.HSTOCKORGID = sessionStorage["OrganizationID"];//ç»ç» |
| | | var sMainStr = JSON.stringify(data.field); |
| | |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Pay_SingleBalBill/AddBill", |
| | | //url:"http://localhost:12761/Gy_RoutingBill/AddBill", |
| | | async: true, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | //layer.confirm(data.Message, { |
| | | // icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢'], |
| | | // btn2: function () { |
| | | // //parent.layui.admin.events.closeThisTabs();å
³éé¡µç¾ |
| | | // //window.close();//å
³é页é¢ï¼æµè§å¨ææï¼PDAæ æ |
| | | // parent.location.href = "../../../views/index.html" |
| | | // }//å
³é |
| | | //}, function () { window.location.reload(); });//æ°å¢ |
| | | |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | } |
| | |
| | | , { field: 'HEmpID', title: 'HEmpID', width: 200, hide: true } |
| | | , { field: 'èå代ç ', title: 'èå代ç ', width: 180 } |
| | | , { field: 'èå', title: 'èå', width: 125 } |
| | | , { field: 'HPayID', title: 'HPayID', width: 200, hide: true } |
| | | , { field: 'å·¥èµä»£ç ', title: 'å·¥èµä»£ç ', width: 180 } |
| | | , { field: 'å·¥èµç±»å', title: 'å·¥èµç±»å', width: 125 } |
| | | , { field: 'æè¦', title: 'æè¦', width: 125 } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 125 } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115 } |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/MouldInformation.html', 'yes'], |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_MaterialList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMaterID: checkStatus.data[0].HItemID, |
| | | HMaterCode: checkStatus.data[0].HNumber, |
| | | HMaterName: checkStatus.data[0].HName, |
| | | HMaterSpec: checkStatus.data[0].HModel, |
| | | HMaterCode: checkStatus.data[0].ç©æä»£ç , |
| | | HMaterName: checkStatus.data[0].ç©æ, |
| | | |
| | | HDesignLife: 0, //è®¾è®¡å¯¿å½ |
| | | HLeaveLife: 0, //å©ä½å¯¿å½ |
| | | HQty: 1, //宿¶æ°é |
| | | HMoney: 0, //éé¢ |
| | | //HDesignLife: 0, //è®¾è®¡å¯¿å½ |
| | | //HLeaveLife: 0, //å©ä½å¯¿å½ |
| | | //HQty: 1, //宿¶æ°é |
| | | //HMoney: 0, //éé¢ |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/DeptInformation.html', 'yes'], |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_DepartmentList.html?Type=HDeptID', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HDeptName").val(checkStatus.data[0].HName); |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨); |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) { |
| | | if (OperationType == 1) { |
| | |
| | | return [year, month, day].join('-'); |
| | | } |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | //var tableData = data.field; |
| | | data.field.HSTOCKORGID = sessionStorage["OrganizationID"];//ç»ç» |
| | | var sMainStr = JSON.stringify(data.field); |