| | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //å¿«éè¿æ»¤ |
| | | //get_FastQuery(1); |
| | | get_FastQuery(1); |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | var MM = myDate.getMonth() + 1; |
| | | var dd = myDate.getDate(); |
| | | var SumMonth = 31; //卿䏤æä¹å·® new Date(yyyy, MM, 0).getDate() |
| | | |
| | | var MonthCount = new Date(yyyy, MM-1, 0).getDate(); |
| | | |
| | | columns.push({ type: 'checkbox', fixed: 'left' }); |
| | | columns.push({ field: 'åæ®å·', title: 'éè´ç»ç»' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'ç©æåç§°' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'ç©æè§æ ¼' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'ä¾åºå' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'å计' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'éè´è®¢åå·' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'éæ±åå·' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'æè¦' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: '夿³¨' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'éè´å' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'ç©æç¼ç ' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: '计éåä½' }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'æææææ°é' }); |
| | | for (var i = 0; i <= (SumMonth - dd); i++) { |
| | | columns.push({ field: 'ç»ç»', title: 'éè´ç»ç»' }); |
| | | columns.push({ field: 'ç©æåç§°', title: 'ç©æåç§°' }); |
| | | columns.push({ field: 'è§æ ¼åå·', title: 'ç©æè§æ ¼' }); |
| | | columns.push({ field: 'ä¾åºå', title: 'ä¾åºå' }); |
| | | columns.push({ field: 'FSUMQTY', title: 'å计' }); |
| | | columns.push({ field: 'HPOOrderBillNo', title: 'éè´è®¢åå·' }); |
| | | columns.push({ field: 'HSeOrderBillNo', title: 'éæ±åå·' }); |
| | | columns.push({ field: 'HPOOrderBillRemark', title: 'æè¦' }); |
| | | columns.push({ field: 'HPOOrderBillNote', title: '夿³¨' }); |
| | | columns.push({ field: 'éè´å', title: 'éè´å' }); |
| | | columns.push({ field: 'ç©æä»£ç ', title: 'ç©æç¼ç ' }); |
| | | columns.push({ field: '计éåä½åç§°', title: '计éåä½' }); |
| | | columns.push({ field: 'TQSUM', title: 'æææææ°é' }); |
| | | for (var i = 1; i <= (MonthCount - dd); i++) { |
| | | columns.push({ field: Format(yyyy + '/' + (MM - 1) + '/' + (dd + i), 'yyyy-MM-dd'), title: Format(yyyy + '/' + (MM - 1) + '/' + (dd + i), 'MM.dd'), edit: 'text', width: 70 })//0 |
| | | } |
| | | for (var i = 1; i < dd; i++) { |
| | | for (var i = 1; i <= (SumMonth - MonthCount + dd); i++) { |
| | | columns.push({ field: Format(yyyy + '/' + MM + '/' + i, 'yyyy-MM-dd'), title: Format(yyyy + '/' + MM + '/' + i, 'MM.dd'), edit: 'text', width: 70 })//0 |
| | | } |
| | | columns.push({ field: 'hmainid', title: 'ææè®¡åå计' }); |
| | | columns.push({ field: '', title: 'ææè®¡åå计' }); |
| | | |
| | | option = { |
| | | elem: '#mainTable' |
| | |
| | | , loading: false |
| | | , cols: [columns] |
| | | }; |
| | | table.render(option); |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | <title>æ¥è®¡åå·¥åå表</title> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">æ¥è¯¢</button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch">éç½®</button> |
| | | <div class="layui-colla-content"> |
| | | <!--å
¶ä»æ¡ä»¶--> |
| | | <div class="layui-colla-content" style="padding: 0px; margin-left: 6%;"> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <!--å
¶ä»æ¡ä»¶--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HBTimes" name="HBTimes" id="HBTimes" style="padding-left: 78px;"> |
| | | </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="date" class="layui-input" lay-verify="HETimes" name="HETimes" id="HETimes" style="padding-left: 78px;"> |
| | | </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="HMaterName" id="HMaterName"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <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="HMaterNumber" id="HMaterNumber"> |
| | | </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="HSeOrderBillNo" id="HSeOrderBillNo"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | |
| | | |
| | | //#region åå§åçé¢ |
| | | function set_ClearBill() { |
| | | //åå§åæ¥æ |
| | | $("#HBTimes").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//æ¥æ |
| | | $("#HETimes").val(Format(new Date(), "yyyy-MM-dd"));//è³ |
| | | //ç产ç»ç»å è½½ |
| | | Organ(); |
| | | //åå§åè¡¨æ ¼ |
| | |
| | | var HBillNo = $("#HBillNo").val(); |
| | | var Organization = $("#Organization").val();//éè´ç»ç» |
| | | var HWorkShopIDName = $("#HWorkShopIDName").val();//çäº§è½¦é´ |
| | | var HBTimes = $("#HBTimes").val();//æ¥æ |
| | | var HETimes = $("#HETimes").val();//è³ |
| | | var HMaterName = $("#HMaterName").val();//ç©æåç§° |
| | | var HMaterNumber = $("#HMaterNumber").val();//ç©æç¼ç |
| | | var HSeOrderBillNo = $("#HSeOrderBillNo").val();//éå®è®¢åå· |
| | | |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'"; |
| | |
| | | } |
| | | if (HWorkShopIDName) { |
| | | sWhere += " and çäº§è½¦é´ = '" + HWorkShopIDName + "'"; |
| | | } |
| | | if (HBTimes != "" && HETimes!="") { |
| | | sWhere += " and æ¥æ between '" + HBTimes + "' and '" + HETimes+"' "; |
| | | } |
| | | if (HMaterName) { |
| | | sWhere += " and ç©æåç§° like'%" + HMaterName + "%'"; |
| | | } |
| | | if (HMaterNumber) { |
| | | sWhere += " and ç©æä»£ç like'%" + HMaterNumber + "%'"; |
| | | } |
| | | if (HSeOrderBillNo) { |
| | | sWhere += " and éå®è®¢åå· like'%" + HSeOrderBillNo + "%'"; |
| | | } |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | |
| | | $("#Organization").val("");//éè´ç»ç» |
| | | $("#HWorkShopIDName").val("");//çäº§è½¦é´ |
| | | $("#HWorkShopID").val("");//çäº§è½¦é´ |
| | | $("#HBTimes").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//æ¥æ |
| | | $("#HETimes").val(Format(new Date(), "yyyy-MM-dd"));//è³ |
| | | $("#HMaterName").val("");//ç©æåç§° |
| | | $("#HMaterNumber").val("");//ç©æç¼ç |
| | | $("#HSeOrderBillNo").val("");//éå®è®¢åå· |
| | | sWhere = ""; |
| | | } |
| | | //#endregion |
| | |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "" |
| | | , "HProcID": 0, "å·¥ä½ä¸å¿ä»£ç ": "", "HCenterID": 0, "å·¥ä½ä¸å¿": "", "HSupID": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "HWorkQty": 0, "HPassRate": 0, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | | , "HWorkQty": 1, "HPassRate": 0, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | | , "HMoveTime": 0, "HNextProcFlag": false, "HFlowProc": false, "HSubStdEmpQty": 0, "HSubCanUseSourceQty": 0 |
| | | , "HFixPrice": 0, "HProcPrice": 0, "HBadPrice": 0, "HWasterPrice": 0, "HStdFlag": false |
| | | , "HBeginDayQty": 0, "HBeginFixQty": 0, "HFixWorkDays": 0, "HTrunWorkDays": 0, "HReadyTimes": 0 |
| | |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "" |
| | | , "HProcID": 0, "å·¥ä½ä¸å¿ä»£ç ": "", "HCenterID": 0, "å·¥ä½ä¸å¿": "", "HSupID": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "HWorkQty": 0, "HPassRate": 0, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | | , "HWorkQty": 1, "HPassRate": 0, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | | , "HMoveTime": 0, "HNextProcFlag": false, "HFlowProc": false, "HSubStdEmpQty": 0, "HSubCanUseSourceQty": 0 |
| | | , "HFixPrice": 0, "HProcPrice": 0, "HBadPrice": 0, "HWasterPrice": 0, "HStdFlag": false |
| | | , "HBeginDayQty": 0, "HBeginFixQty": 0, "HFixWorkDays": 0, "HTrunWorkDays": 0, "HReadyTimes": 0 |
| | |
| | | layer.msg("产åä»£ç æ²¡æéæ©"); |
| | | return false; |
| | | } |
| | | if ($("#HUnitName").val() == "") { |
| | | layer.msg("计éå使²¡æéæ©"); |
| | | return false; |
| | | } |
| | | if ($("#HMainProcIDName").val() == "") { |
| | | layer.msg("å·¥åºæ²¡æéæ©"); |
| | | return false; |
| | | } |
| | | //if ($("#HUnitName").val() == "") { |
| | | // layer.msg("计éå使²¡æéæ©"); |
| | | // return false; |
| | | //} |
| | | //if ($("#HMainProcIDName").val() == "") { |
| | | // layer.msg("å·¥åºæ²¡æéæ©"); |
| | | // return false; |
| | | //} |
| | | if ($("#HMainCenterIDName").val() == "") { |
| | | layer.msg("å·¥ä½ä¸å¿æ²¡æéæ©"); |
| | | return false; |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">项ç®ç¼å·</label> |
| | | <label class="layui-form-label">éåå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HProjectNum" id="HProjectNum" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="textBox2" id="textBox2" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchICMOBill" id="btnSearchICMOBill" 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-xs3 layui-inline"> |
| | | <label class="layui-form-label">çæ¬</label> |
| | | <label class="layui-form-label">å·¥èºè·¯çº¿</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HVerNum" id="HVerNum" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="RoutingBill" id="RoutingBill" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnRoutingBill" id="btnRoutingBill" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">åææ¹æ¬¡</label> |
| | | <label class="layui-form-label">æ¥è®¡åå·¥åéåå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMateOutBatchNo" id="HMateOutBatchNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="WorkBillSortNo" id="WorkBillSortNo" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchWorkBillSort" id="btnSearchWorkBillSort" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">éåå·</label> |
| | | <label class="layui-form-label">项ç®ç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="textBox2" id="textBox2" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchICMOBill" id="btnSearchICMOBill" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | <input type="text" class="layui-input" name="HProjectNum" id="HProjectNum" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">å§å¤å å·¥åä½</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ¥è®¡åå·¥åéåå·</label> |
| | | <label class="layui-form-label">åææ¹æ¬¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="WorkBillSortNo" id="WorkBillSortNo" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchWorkBillSort" id="btnSearchWorkBillSort" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | <input type="text" class="layui-input" name="HMateOutBatchNo" id="HMateOutBatchNo" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æµè½¬å¡ç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HWorkTypeName" id="HWorkTypeName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HWorkTypeID" id="HWorkTypeID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHWorkType" id="btnSearchHWorkType" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">æµè½¬å¡ç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HWorkTypeName" id="HWorkTypeName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HWorkTypeID" id="HWorkTypeID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHWorkType" id="btnSearchHWorkType" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">å·¥èºè·¯çº¿</label> |
| | | <label class="layui-form-label">çæ¬</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="RoutingBill" id="RoutingBill" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnRoutingBill" id="btnRoutingBill" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | <input type="text" class="layui-input" name="HVerNum" id="HVerNum" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç产任å¡åå表'//æ é¢ |
| | | , title: 'æ¥è®¡åå·¥åå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../../views/ç产管ç/ç产æ¥è®¡åå·¥å/JIT_DayPlanBillList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |