| | |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" value="0"> |
| | | <input id="HInterID" name="HInterID" type="hidden" /> |
| | | <input type="hidden" name="HSTOCKORGID" id="HSTOCKORGID" lay-verify="HSTOCKORGID"> |
| | | </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;"> |
| | | <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"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="barDemo"> |
| | | <!--<a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script>--> |
| | | <script> |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | |
| | | elem: '#HDate' |
| | | |
| | | }); |
| | | |
| | | |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | //if (sessionStorage.login != "login") { |
| | | // layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | |
| | | , { 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": "" |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HProcID": "", "HProcNumber": "", "HProcName": "" |
| | | , "HEmpID": "", "HEmpNumber": "", "HEmpName": "", "HTimes": 0, "HQty": 0, "HPrice": 0, "HMoney": 0 |
| | | , "HMainSourceInterID": 0, "HMainSourceEntryID": 0, "HMainSourceBillNo": 0, "HSourceBillType": "", "HCloseDate": 0, "HRemark": "" |
| | | }]; |
| | |
| | | $("#HInterID").val(hID);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Pay_OtherBalBill/Pay_OtherBalBillListProjectDetai', |
| | | url: GetWEBURL() + 'Pay_OtherBalBill/Pay_OtherBalBillListProjectDetai', |
| | | type: "GET", |
| | | data: { "sqlWhere": "and hmainid=" + hID }, |
| | | success: function (result) { |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMaterID: checkStatus.data[0].HItemID, |
| | | HMaterCode: checkStatus.data[0].ç©æä»£ç , |
| | | HMaterName: checkStatus.data[0].ç©æ, |
| | | HMaterCode: checkStatus.data[0].HNumber, |
| | | HMaterName: checkStatus.data[0].HName, |
| | | |
| | | //HDesignLife: 0, //è®¾è®¡å¯¿å½ |
| | | //HLeaveLife: 0, //å©ä½å¯¿å½ |
| | | //HQty: 1, //宿¶æ°é |
| | | //HMoney: 0, //éé¢ |
| | | HDesignLife: 0, //è®¾è®¡å¯¿å½ |
| | | HLeaveLife: 0, //å©ä½å¯¿å½ |
| | | HQty: 1, //宿¶æ°é |
| | | HMoney: 0, //éé¢ |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | //alert(hID); |
| | | //æ¥è¯¢æ£éªæ¹æ¡åæ¯å¦åå¨ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Pay_OtherBalBill/Pay_OtherBalBillListCheckDetail", |
| | | url: GetWEBURL() + "/Pay_OtherBalBill/Pay_OtherBalBillListCheckDetail", |
| | | type: "GET", |
| | | data: { |
| | | "HID": hID |
| | |
| | | , "HEmpName": data.èå //主管åç§° |
| | | , "HDeptID": data.HDeptID //é¨é¨ID |
| | | , "HDeptName": data.é¨é¨ //é¨é¨åç§° |
| | | , "HPayID": data.HPayID |
| | | , "HPayTypeName": data.å·¥èµç±»å |
| | | , "HSourceBillType": "" //æºåç±»å |
| | | , "Box2": "" //éåå· |
| | | , "HExplanation": data.æè¦ //æè¦ |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨); |
| | | $("#HDeptName").val(checkStatus.data[0].HName); |
| | | $("#HDeptID").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(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) { |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //form.on('submit(Cancel)', function () { |
| | | // //sessionStorage["SourceFlag"] = false; |
| | | // parent.location.href = "../../../views/index.html" |
| | | // //window.close();//å
³éå½å页 |
| | | //}) |
| | | |
| | | function formatDate(date) { |
| | | var d = new Date(date), |
| | | month = '' + (d.getMonth() + 1), |
| | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Pay_SingleBalBill/AddBill", |
| | | //url:"http://localhost:12761/Gy_RoutingBill/AddBill", |
| | | url: GetWEBURL() + "/Pay_OtherBalBill/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("æäº¤æå"); |
| | | } |