| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <style> |
| | | <!--<style> |
| | | .main-btn { /*头é¨ä¸»æé®*/ |
| | | padding: 0 2px; /*è°æ´æé®å·¦å³ç©ºé大å°*/ |
| | | height: 30px; |
| | |
| | | .layui-form-label { |
| | | width: 25%; |
| | | } |
| | | </style> |
| | | </style>--> |
| | | |
| | | </head> |
| | | <body> |
| | |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åæ®å·*</label> |
| | | <label class="layui-form-label" style="width: 85px;">åæ®å·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" lay-verify="HInterID"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">项ç®åç§°<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label" style="width: 85px;">项ç®åç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" lay-verify="HProName" name="HProName" id="HProName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">客æ·*</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">客æ·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HCusName" name="HCusName" id="HCusName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HCusID" id="HCusID" lay-verify="HCusID" value="0"> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ</label> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width:180px;"> |
| | | <input type="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 80px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¼å§æ¥æ*</label> |
| | | <label class="layui-form-label" style="width: 85px;">å¼å§æ¥æ<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <input type="date" class="layui-input" lay-verify="HBeginDate" name="HBeginDate" id="HBeginDate" style="padding-left: 80px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ææ¥æ*</label> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ææ¥æ<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <input type="date" class="layui-input" lay-verify="HEndDate" name="HEndDate" id="HEndDate" style="padding-left: 80px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">项ç®ç»ç*</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">项ç®ç»ç<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HPMEmpName" name="HPMEmpName" id="HPMEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HPMEmpID" id="HPMEmpID" lay-verify="HPMEmpID" value="0"> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">宿½æ
å½*</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">宿½æ
å½<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HWorkEmpName" name="HWorkEmpName" id="HWorkEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HWorkEmpID" id="HWorkEmpID" lay-verify="HWorkEmpID" value="0"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å¼åæ
å½*</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å¼åæ
å½<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDepEmpName" name="HDepEmpName" id="HDepEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HDepEmpID" id="HDepEmpID" lay-verify="HDepEmpID" value="0"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">对åºäº§å*</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">对åºäº§å<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMaterNumber" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" lay-verify="HMaterID" value="0"> |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">项ç®é¾æç±»å</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <div class="layui-input-block" style="margin-left: 120px; width:180px;"> |
| | | <select name="HProType" id="HProType" lay-filter="HProType" style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç»ç®æ¹</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç»ç®æ¹<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HPayCusName" name="HPayCusName" id="HPayCusName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HPayCusID" id="HPayCusID" lay-verify="HPayCusID" value="0"> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <input type="text" class="layui-input" lay-verify="HRemark" name="HRemark" id="HRemark"> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ç»*</label> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ç»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></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="btn_up"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_under"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn_up"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_under"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button>--> |
| | | </div> |
| | | </script> |
| | | </div> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine1"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine1"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn1"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_up1"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_under1"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn_up1"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_under1"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button>--> |
| | | </div> |
| | | </script> |
| | | </div> |
| | |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { window.location.href = "../../user/login.html"; }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åå§åè¡¨æ ¼ |
| | | //DisPlay_HideColumn(); |
| | | //#endregion |
| | | |
| | | //#region åå§åç»ç» |
| | |
| | | } else if (params[1] == null) { |
| | | Pub_Close(2); |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region å®¡æ ¸ |
| | | form.on('submit(set_CheckBill)', function (data) { |
| | | set_CheckBill(data); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region åå®¡æ ¸ |
| | | form.on('submit(set_AbandonCheck)', function (data) { |
| | | set_AbandonCheck(data); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region å
³é |
| | | form.on('submit(set_CloseBill)', function (data) { |
| | | set_CloseBill(data); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region åå
³é |
| | | form.on('submit(set_CancelCloseBill)', function (data) { |
| | | set_CancelCloseBill(data); |
| | | }); |
| | | //#endregion |
| | | //#endregion |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: true |
| | | , limit: 500 |
| | | , limits: [50, 500, 5000, 50000] |
| | | //, page: true |
| | | //, limit: 500 |
| | | //, limits: [50, 500, 5000, 50000] |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'RowID', title: 'è¡å·', hide: true } //è¡æ è¯ï¼ç¨äºä¸ä¸è¡ãä¸ä¸è¡è¯å«æå¨è¡ |
| | | , { field: 'HProjectStageID', title: '项ç®é¶æ®µID', hide: true } |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;'} |
| | | , { field: 'RowID', title: 'è¡å·', hide: true, style: 'background-color: #f9f9f9;' } //è¡æ è¯ï¼ç¨äºä¸ä¸è¡ãä¸ä¸è¡è¯å«æå¨è¡ |
| | | , { field: 'HProjectStageID', title: '项ç®é¶æ®µID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HProjectStageName', title: '项ç®é¶æ®µ', edit: 'text', event: "HProjectStageName" } //f7 |
| | | , { field: 'HStageNote', title: '项ç®è¯¦ç»å
容' } |
| | | , { field: 'HPMGoodsID', title: 'ç¸å
³äº¤ä»ç©ID', hide: true } |
| | | , { field: 'HStageNote', title: '项ç®è¯¦ç»å
容', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HPMGoodsID', title: 'ç¸å
³äº¤ä»ç©ID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HPMGoodsName', title: 'ç¸å
³äº¤ä»ç©', edit: 'text', event: "HPMGoodsName" } //f7 |
| | | , { field: 'HIsKey', title: 'éç¨ç¢', templet: "#HIsKey" } |
| | | , { field: 'HRate', title: 'ä¸ç»©å æ¯', edit: 'text' } |
| | | , { field: 'HEmpID', title: 'é¶æ®µè´è´£äººID', hide: true } |
| | | , { field: 'HRate', title: 'ä¸ç»©å æ¯', edit: 'text', totalRow: true } |
| | | , { field: 'HEmpID', title: 'é¶æ®µè´è´£äººID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HEmpName', title: 'é¶æ®µè´è´£äºº', edit: 'text', event: "HEmpName" } //f7 |
| | | , { field: 'HCheckEmpID', title: 'é¶æ®µå®¡æ ¸äººID', hide: true } |
| | | , { field: 'HCheckEmpID', title: 'é¶æ®µå®¡æ ¸äººID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HCheckEmpName', title: 'é¶æ®µå®¡æ ¸äºº', edit: 'text', event: "HCheckEmpName" } //f7 |
| | | , { field: 'HFinishDate', title: 'é¢è®¡å®ææ¥æ', event: "HFinishDate" } |
| | | , { field: 'HWorkDays', title: 'é¢è®¡äººå¤©', edit: 'text' } |
| | | , { field: 'HWorkDays', title: 'é¢è®¡äººå¤©', edit: 'text', totalRow: true } |
| | | , { field: 'HRemarkSub', title: '夿³¨', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | |
| | | , height: 400 |
| | | , cols: [[ |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'RowID', title: 'è¡å·', hide: true } //è¡æ è¯ï¼ç¨äºä¸ä¸è¡ãä¸ä¸è¡è¯å«æå¨è¡ |
| | | , { field: 'HEmployeeID', title: 'é¡¹ç®æåID', hide: true } |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'RowID', title: 'è¡å·', hide: true, style: 'background-color: #f9f9f9;' } //è¡æ è¯ï¼ç¨äºä¸ä¸è¡ãä¸ä¸è¡è¯å«æå¨è¡ |
| | | , { field: 'HEmployeeID', title: 'é¡¹ç®æåID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HEmployeeName', title: 'é¡¹ç®æå', edit: 'text', event: "HEmployeeName" } //f7 |
| | | , { field: 'HIsPM', title: 'æ¯å¦é¡¹ç®ç»ç', templet: "#HIsPM" } |
| | | , { field: 'HRate', title: '项ç®å æ¯', edit: 'text' } |
| | | , { field: 'HPlanAvgMoney', title: 'é¢è®¡åé
ä¸ç»©', edit: 'text' } |
| | | , { field: 'HPlanCountMoney', title: 'é¢è®¡ææ', edit: 'text' } |
| | | , { field: 'HPlanAvgMoney', title: 'é¢è®¡åé
ä¸ç»©', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HPlanCountMoney', title: 'é¢è®¡ææ', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HRemarkSub', title: '夿³¨', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo1' } |
| | | ]] |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å®¡æ ¸ |
| | | function set_CheckBill() { |
| | | layer.confirm("确认è¦å®¡æ ¸å?", function (index) { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_RoutingBill/AuditGy_RoutingBill', |
| | | type: "GET", |
| | | data: { "HInterID": $("#HInterID").val(), "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åå®¡æ ¸ |
| | | function set_AbandonCheck() { |
| | | layer.confirm("确认è¦åå®¡æ ¸å?", function (index) { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_RoutingBill/AuditGy_RoutingBill', |
| | | type: "GET", |
| | | data: { "HInterID": $("#HInterID").val(), "IsAudit": 1, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å
³é |
| | | function set_CloseBill() { |
| | | layer.confirm("确认è¦å
³éå?", function (index) { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_RoutingBill/CloseGy_RoutingBill', |
| | | type: "GET", |
| | | data: { "HInterID": $("#HInterID").val(), "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åå
³é |
| | | function set_CancelCloseBill() { |
| | | layer.confirm("确认è¦åå
³éå?", function (index) { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_RoutingBill/CloseGy_RoutingBill', |
| | | type: "GET", |
| | | data: { "HInterID": $("#HInterID").val(), "IsAudit": 1, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region é空éªè¯ |
| | | function AllowLoadData(data) { |
| | | //#region è¡¨å¤´æ°æ®æ£éª |
| | |
| | | layer.msg("åæ®å·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HProNumber").val() == "") { |
| | | layer.msg("项ç®ä»£ç ä¸è½ä¸ºç©º!"); |
| | | if ($("#HDate").val() == "") { |
| | | layer.msg("æ¥æä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HProName").val() == "") { |
| | | layer.msg("项ç®åç§°ä¸è½ä¸ºç©º!"); |
| | | if ($("#HBeginDate").val() == "") { |
| | | layer.msg("å¼å§æ¥æä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HCusName").val() == "") { |
| | | layer.msg("å®¢æ·æ²¡æéæ©!"); |
| | | if ($("#HEndDate").val() == "") { |
| | | layer.msg("ç»ææ¥æä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HPMEmpName").val() == "") { |
| | | layer.msg("项ç®ç»ç没æéæ©!"); |
| | | if ($("#HProID").val() == "0") { |
| | | layer.msg("项ç®ä»£ç æªéæ©!"); |
| | | return false; |
| | | } |
| | | if ($("#HWorkEmpName").val() == "") { |
| | | layer.msg("宿½æ
彿²¡æéæ©"); |
| | | if ($("#HCusID").val() == "0") { |
| | | layer.msg("å®¢æ·æªéæ©!"); |
| | | return false; |
| | | } |
| | | if ($("#HDepEmpName").val() == "") { |
| | | layer.msg("å¼åæ
彿²¡æéæ©"); |
| | | if ($("#HPMEmpID").val() == "0") { |
| | | layer.msg("项ç®ç»çæªéæ©!"); |
| | | return false; |
| | | } |
| | | if ($("#HMaterName").val() == "") { |
| | | layer.msg("对åºäº§å没æéæ©"); |
| | | if ($("#HWorkEmpID").val() == "0") { |
| | | layer.msg("宿½æ
彿ªéæ©"); |
| | | return false; |
| | | } |
| | | if ($("#HPayCusName").val() == "") { |
| | | layer.msg("ç»ç®æ¹æ²¡æéæ©"); |
| | | if ($("#HDepEmpID").val() == "0") { |
| | | layer.msg("å¼åæ
彿ªéæ©"); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | if ($("#HMaterID").val() == "0") { |
| | | layer.msg("对åºäº§åæªéæ©"); |
| | | return false; |
| | | } |
| | | if ($("#HPayCusID").val() == "0") { |
| | | layer.msg("ç»ç®æ¹æªéæ©"); |
| | | return false; |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 项ç®é¶æ®µè¡¨æ°æ®æ£éª |
| | | var num = []; |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (option.data[i] != "") { |
| | | //项ç®é¶æ®µé夿£éª |
| | | if ($.inArray(option.data[i]["HProjectStageID"], num) == -1) { |
| | | num.push(option.data[i]["HProjectStageID"]); |
| | | } else { |
| | | layer.msg("第" + (i + 1) + "è¡,项ç®é¶æ®µ:" + option.data[i]["HProjectStageName"] + "éå¤!"); |
| | | return false; |
| | | } |
| | | |
| | | //项ç®é¶æ®µé空æ£éª |
| | | if (option.data[i]["HProjectStageName"] == "") { |
| | | if (option.data[i]["HProjectStageID"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:项ç®é¶æ®µä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | |
| | | return; |
| | | } |
| | | } |
| | | ////éç¨ç¢å
容æ£éª |
| | | //if (option.data[i]["HIsKey"] != "1" && option.data[i]["HIsKey"] != "0") { |
| | | // layer.msg("éç¨ç¢è¯·è¾å
¥0æ1ï¼"); |
| | | //} |
| | | |
| | | //é¢è®¡äººå¤©æ ¼å¼æ£éª |
| | | var HWorkDays = option.data[i]["HWorkDays"] + ""; |
| | |
| | | } |
| | | |
| | | //é¶æ®µè´è´£äººé空æ£éª |
| | | if (option.data[i]["HEmpName"] == "") { |
| | | if (option.data[i]["HEmpID"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:é¶æ®µè´è´£äººä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | //é¶æ®µå®¡æ ¸äººé空æ£éª |
| | | if (option.data[i]["HCheckEmpName"] == "") { |
| | | if (option.data[i]["HCheckEmpID"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:é¶æ®µå®¡æ ¸äººä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | |
| | | //#endregion |
| | | |
| | | //#region é¡¹ç®æåè¡¨æ°æ®æ£éª |
| | | var num1 = []; |
| | | for (var i = 0; i < option1.data.length; i++) { |
| | | if (option1.data[i] != "") { |
| | | //é¡¹ç®æåé夿£éª |
| | | if ($.inArray(option1.data[i]["HEmployeeID"], num1) == -1) { |
| | | num1.push(option1.data[i]["HEmployeeID"]); |
| | | } else { |
| | | layer.msg("第" + (i + 1) + "è¡,é¡¹ç®æå:" + option1.data[i]["HEmployeeName"] + "éå¤!"); |
| | | return false; |
| | | } |
| | | |
| | | //é¡¹ç®æåé空æ£éª |
| | | if (option1.data[i]["HEmployeeName"] == "") { |
| | | if (option1.data[i]["HEmployeeID"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:é¡¹ç®æåä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | |
| | | return; |
| | | } |
| | | } |
| | | ////æ¯å¦é¡¹ç®ç»çæ£éª |
| | | //if (option1.data[i]["HIsPM"] != "1" && option1.data[i]["HIsPM"] != "0") { |
| | | // layer.msg("第" + (i + 1) + "è¡ï¼æ¯å¦é¡¹ç®ç»ç请è¾å
¥0æ1ï¼"); |
| | | //} |
| | | |
| | | //é¢è®¡åé
ä¸ç»©æ ¼å¼æ£éª |
| | | var HPlanAvgMoney = option1.data[i]["HPlanAvgMoney"] + ""; |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å表1å
³é®åé夿 ¡éª |
| | | var num = []; |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if ($.inArray(option.data[i]["HProjectStageID"], num) == -1) { |
| | | num.push(option.data[i]["HProjectStageID"]); |
| | | } else { |
| | | layer.msg("第" + (i + 1) + "è¡,项ç®é¶æ®µ:" + option.data[i]["HProjectStageName"] + "éå¤!"); |
| | | return false; |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å表2å
³é®åé夿 ¡éª |
| | | var num1 = []; |
| | | for (var i = 0; i < option1.data.length; i++) { |
| | | if ($.inArray(option1.data[i]["HEmployeeID"], num1) == -1) { |
| | | num1.push(option1.data[i]["HEmployeeID"]); |
| | | } else { |
| | | layer.msg("第" + (i + 1) + "è¡,é¡¹ç®æå:" + option1.data[i]["HEmployeeName"] + "éå¤!"); |
| | | return false; |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å表1ä¸ç»©å æ¯åè®¡æ ¡éª |
| | | var total = 0; |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | total += option.data[i]["HRate"] * 1; |
| | | } |
| | | if (total > 100) { |
| | | layer.msg("项ç®é¶æ®µè¡¨ï¼ä¸ç»©å æ¯å计è¶
åº100ï¼è¯·æ£æ¥ï¼!"); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å表2项ç®å æ¯åè®¡æ ¡éª |
| | | var total1 = 0; |
| | | for (var i = 0; i < option1.data.length; i++) { |
| | | total1 += option1.data[i]["HRate"] * 1; |
| | | } |
| | | if (total1 > 100) { |
| | | layer.msg("é¡¹ç®æå表ï¼é¡¹ç®å æ¯å计è¶
åº100ï¼è¯·æ£æ¥ï¼!"); |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | option.cols[0][i + 1]["style"] += "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | option.cols[0][i + 1]["style"] += "font-size:100%"; |
| | | } |
| | | //设置å宽 |
| | | //if (data1.data[0].HColumnWidth != 0) { |
| | |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option1.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | option1.cols[0][i + 1]["style"] += "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option1.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | option1.cols[0][i + 1]["style"] += "font-size:100%"; |
| | | } |
| | | //设置å宽 |
| | | //if (data1.data[0].HColumnWidth != 0) { |