| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æå°ç¶æ</label> |
| | | <div class="layui-input-block" style="width:100px"> |
| | | <select name="city" lay-verify="required" id="SHPrintQty"> |
| | | <option value="å
¨é¨">å
¨é¨</option> |
| | | <option value="æªæå°">æªæå°</option> |
| | | <option value="å·²æå°">å·²æå°</option> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç产车é´</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HDeptName" id="HDeptName" lay-verify="required" lay-search class="layui-input"> |
| | | <!--å¨ææ¸²æè½¦é´--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <input type="checkbox" id="wybj" name="wybj" title="åªæ¾ç¤ºå§å¤" lay-filter="wybj" lay-skin="primary"> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <label class="layui-form-label">è§æ ¼åå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate"> |
| | | <input type="text" class="layui-input" name="HModel" id="HModel"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate1"> |
| | | </div> |
| | | </div> |
| | | |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | |
| | | <input type="text" class="layui-input" name="HWorkBillNo" id="HWorkBillNo"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top: 10px; margin-bottom: 10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <label class="layui-form-label">æå°ç¶æ</label> |
| | | <div class="layui-input-block" style="width:100px"> |
| | | <select name="city" lay-verify="required" id="SHPrintQty"> |
| | | <option value="å
¨é¨">å
¨é¨</option> |
| | | <option value="æªæå°">æªæå°</option> |
| | | <option value="å·²æå°">å·²æå°</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <input type="checkbox" id="wybj" name="wybj" title="åªæ¾ç¤ºå§å¤" lay-filter="wybj" lay-skin="primary"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo"> |
| | | <input type="date" class="layui-input" id="HDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate1"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Issue"><i class="layui-icon layui-icon-file-b"></i>ä¸è¾¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CancelIssue"><i class="layui-icon layui-icon-file-b"></i>åä¸è¾¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_SendWork"><i class="layui-icon layui-icon-file-b"></i>å·¥åºæ´¾å·¥</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_WWSendWork"><i class="layui-icon layui-icon-file-b"></i>å·¥åºå§å¤æ´¾å·¥</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_PlanDate"><i class="layui-icon layui-icon-file-b"></i>ææ´¾æ¥æ</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_BatchReport"><i class="layui-icon layui-icon-file-b"></i>æ¹éæ±æ¥</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-file-b"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_StationOut"><i class="layui-icon layui-icon-form"></i>å·¥åºåºç«æ±æ¥å</button>--> |
| | |
| | | var option2 = ""; |
| | | var HBillNo = ""; |
| | | var wybj = false; |
| | | var HDeptID = 0; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | break; |
| | | //å·¥åºæ´¾å·¥ |
| | | case 'set_SendWork': set_SendWork(); |
| | | break; |
| | | //å·¥åºå§å¤æ´¾å·¥ |
| | | case 'set_WWSendWork': set_WWSendWork(); |
| | | break; |
| | | //ææ´¾æ¥æ |
| | | case 'set_PlanDate': set_PlanDate(); |
| | |
| | | //æç»å设置 |
| | | case 'get_HideColumn2': get_HideColumn2(); |
| | | break; |
| | | //æ¹éæ±æ¥ |
| | | case 'set_BatchReport': set_BatchReport(); |
| | | break; |
| | | |
| | | }; |
| | | }); |
| | |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(); |
| | | //车é´å表 |
| | | getDept(); |
| | | } |
| | | |
| | | //è·å车é´å表 |
| | | function getDept() { |
| | | var HDeptName = '<option value="0" style="color:red;" selected>å
¨é¨è½¦é´</option>'; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Sc_ICMOBill/GetHDeptList", |
| | | data: { "HOrgID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | HDeptName += '<option style="color:blue;" value="' + data[i].HItemID + '">' + data[i].HName + '</option>'; |
| | | } |
| | | $("#HDeptName").append(HDeptName); |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //#region éç½®è¿æ»¤æ¡ä»¶æ¹æ³ |
| | | function set_ClearQuery() { |
| | |
| | | $("#HOrderProcNO").val("");//订åè·è¸ªå· |
| | | $("#SHname").val("");//ç©æ|åä»¶åç§°|åä»¶è§æ ¼ |
| | | $("#HBillNo").val("");//åæ®å· |
| | | $("#HModel").val("");//è§æ ¼åå· |
| | | $("#HDeptName").val("0");//è½¦é´ |
| | | form.render('select'); |
| | | //$("#btnSearch").click(); |
| | | sWhere = ""; |
| | | get_FastQuery() ; |
| | | sWhere = ""; |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ç¹å»è¡éä¸é«äº® |
| | | table.on('row(mainTable)', function (obj) { |
| | | //éä¸è¡æ¹åé¢è² |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | }) |
| | | //#endregion |
| | | //#region å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | var SHPrintQty = $("#SHPrintQty").val();//æå°ç¶æ |
| | |
| | | var HWorkBillNo = $("#HWorkBillNo").val(); |
| | | var SHname = $("#SHname").val();//ç©æ|åä»¶åç§°|åä»¶è§æ ¼ |
| | | var HBillNo = $("#HBillNo").val();//åæ®å· |
| | | var HModel = $("#HModel").val();//è§æ ¼åå· |
| | | var HDeptName = $("#HDeptName").val();//è½¦é´ |
| | | if (SHPrintQty) {//夿æå°ç¶æ |
| | | if (SHPrintQty == "å
¨é¨") { |
| | | sWhere = " and æå°æ¬¡æ° >= 0 "; |
| | |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'" |
| | | } |
| | | if (HDeptName && HDeptName != "0") { |
| | | sWhere += " and HWorkShopID = '" + HDeptName + "'"; |
| | | } |
| | | if (HModel) { |
| | | sWhere += " and åä»¶è§æ ¼ like '%" + HModel + "%'"; |
| | | } |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | |
| | | , page: true |
| | | , height: 'full-50' |
| | | , cellMinWidth: 90 |
| | | , totalRow: true |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | |
| | | , { field: 'hmainid', title: 'hmainid', width: 90, hide: true } |
| | | , { field: 'HEntryID', title: 'HEntryID', width: 90, hide: true } |
| | | , { field: 'ä¸è¾¾ç¶æ', title: 'ä¸è¾¾ç¶æ' } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true } |
| | | , { field: 'ç产车é´', title: 'ç产车é´' } |
| | | , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true } |
| | | , { field: 'åä»¶åç§°', title: '产ååç§°' } |
| | | , { field: 'åä»¶è§æ ¼', title: 'è§æ ¼åå·' } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true } |
| | | , { field: 'åä½', title: 'åä½' } |
| | | , { field: 'æµæ°´å·', title: 'æµæ°´å·' } |
| | | , { field: 'HProcID', title: 'HProcID', hide: true } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ' } |
| | | , { field: 'å·¥åºåç§°', title: 'å·¥åºåç§°' } |
| | | , { field: 'æµè½¬å¡æ°é', title: 'æµè½¬å¡æ°é', totalRow: true, width: 100 } |
| | | , { field: 'æªåºç«æ°é', title: 'æªåºç«æ°é', totalRow: true, width: 100 } |
| | | , { |
| | | field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ', width: 120, sort: true, templet: "<div>{{d.计åå¼å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå¼å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" |
| | | } |
| | | , { |
| | | field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ', width: 120, sort: true, templet: "<div>{{d.计åå®å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå®å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" |
| | | } |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: '产å代ç ', title: '产å代ç ' } |
| | | , { field: 'åä½ä»£ç ', title: 'åä½ä»£ç ' } |
| | | |
| | | |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°' } |
| | | , { |
| | | field: 'æ¥æ', title: 'æ¥æ', width: 120, sort: true, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" |
| | |
| | | , { field: 'hicmointerid', title: 'hicmointerid', width: 80, hide: true } |
| | | , { field: 'ä»»å¡åå·', title: 'ä»»å¡åå·', width: 140 } |
| | | , { field: 'HWorkShopID', title: 'HWorkShopID', width: 80, hide: true } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true } |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´' } |
| | | , { field: 'æµæ°´å·', title: 'æµæ°´å·' } |
| | | , { field: 'HProcID', title: 'HProcID', hide: true } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ' } |
| | | , { field: 'å·¥åºåç§°', title: 'å·¥åºåç§°' } |
| | | , { |
| | | field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ', width: 120, sort: true, templet: "<div>{{d.计åå¼å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå¼å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" |
| | | } |
| | | , { |
| | | field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ', width: 120, sort: true, templet: "<div>{{d.计åå®å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå®å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" |
| | | } |
| | | , { field: 'æµè½¬å¡æ°é', title: 'æµè½¬å¡æ°é', width: 100 } |
| | | , { field: 'å§å¤æ è®°', title: 'å§å¤æ è®°' } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 80, hide: true } |
| | | , { field: 'å件代ç ', title: 'å件代ç ' } |
| | | , { field: 'åä»¶åç§°', title: 'åä»¶åç§°' } |
| | | , { field: 'åä»¶è§æ ¼', title: 'åä»¶è§æ ¼' } |
| | | , { field: '产ååç§°', title: 'åä»¶åç§°' } |
| | | , { field: 'è§æ ¼åå·', title: 'åä»¶è§æ ¼' } |
| | | , { field: 'æ¹å·', title: 'æ¹å·' } |
| | | , { field: 'åææ¹æ¬¡å·', title: 'åææ¹æ¬¡å·' } |
| | | , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true } |
| | | , { field: '产å代ç ', title: '产å代ç ' } |
| | | , { field: '产ååç§°', title: '产ååç§°' } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·' } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true } |
| | | , { field: 'åä½ä»£ç ', title: 'åä½ä»£ç ' } |
| | | , { field: 'åä½', title: 'åä½' } |
| | | , { field: 'è®¾å¤æ¨¡å
·ä»£ç ', title: 'è®¾å¤æ¨¡å
·ä»£ç ' } |
| | | , { field: 'è®¾å¤æ¨¡å
·', title: 'è®¾å¤æ¨¡å
·' } |
| | | , { field: 'ç产æ°é', title: 'ç产æ°é' } |
| | | , { field: 'æµè½¬å¡æ°é', title: 'æµè½¬å¡æ°é' } |
| | | , { field: 'ç产æ°é', title: 'ç产æ°é', totalRow: true} |
| | | |
| | | , { field: 'æè¦', title: 'æè¦' } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·' } |
| | |
| | | } |
| | | //#region æ¥è¯¢ |
| | | function get_Display(sWhere) { |
| | | sWhere += " and HPRDORGID=" + sessionStorage["OrganizationID"] + " "; |
| | | sWhere += " and HPRDORGID=" + sessionStorage["OrganizationID"] + " and å·¥åºåç§° != '转工åº'"; |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/LEMS/MES_Sc_ProcessExchangeIssueBillList_Json', |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ç¹å»è¡éä¸é«äº® |
| | | table.on('row(mainTablemainTable)', function (obj) { |
| | | //éä¸è¡æ¹åé¢è² |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | }) |
| | | //#endregion |
| | | |
| | | //æ¹éæ±æ¥ |
| | | function set_BatchReport() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var array = []; |
| | | var interid = []; |
| | | var ieid = []; |
| | | for (let i = 0; i < data.length; i++) { |
| | | array.push(checkStatus.data[i]["HEntryID"]); //è·åæµè½¬å¡å表ID |
| | | interid.push(checkStatus.data[i]["hmainid"]); |
| | | ieid.push(checkStatus.data[i]["hmainid"].toString() + checkStatus.data[i]["HEntryID"].toString()); |
| | | } |
| | | var HEntryID = array.join(",");//ç¨éå·å岿°ç» |
| | | var HInterID = interid.join(","); |
| | | var HIeID = ieid.join(","); |
| | | var HReportNum = checkStatus.data.length;//éæ©æ¹éæ±æ¥æ°é |
| | | if (checkStatus.data.length >= 1) { |
| | | if (checkStatus.data[0]["æµæ°´å·"] != "9999") { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "æ¹éæ±æ¥" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["100%", "100%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Gy_ProcessBatchReport.html?OperationType=1&linterid=' + HInterID.toString() + '&HEntryID=' + HEntryID.toString() + '&HIeID=' + HIeID + '&HReportNum=' + HReportNum, "yes"] |
| | | //, btn: ["ç¡®å®", "åæ¶"] |
| | | //, btn1: function (index, laero) { |
| | | // //å·æ°è¡¨æ ¼æ°æ® |
| | | // DisPlay_HideColumn(); |
| | | // //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | // layer.close(index);//å
³éå¼¹çª |
| | | //} |
| | | }) |
| | | } else { |
| | | layer.msg('æ±æ¥å·¥åºä¸è½æ¯è½¬å·¥åºï¼'); |
| | | } |
| | | } else { |
| | | layer.msg('è¯·éæ©æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | //#region ç¼è¾ |
| | | function set_ShowBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | |
| | | var interid = []; |
| | | var ieid = []; |
| | | for (let i = 0; i < data.length; i++) { |
| | | array.push(checkStatus.data[i]["HEntryID"]); //è·åæµè½¬å¡å表ID |
| | | array.push(checkStatus.data[i]["HEntryID"]); //è·åæµè½¬å¡å表ID |
| | | interid.push(checkStatus.data[i]["hmainid"]); |
| | | ieid.push(checkStatus.data[i]["hmainid"].toString() + checkStatus.data[i]["HEntryID"].toString()); |
| | | ieid.push(checkStatus.data[i]["hmainid"].toString() + checkStatus.data[i]["HEntryID"].toString()); |
| | | //夿忮巿¯å¦ç¸å |
| | | //if (checkStatus.data[0]["åæ®å·"] != checkStatus.data[i]["åæ®å·"]) { |
| | | // layer.msg("å¾éäºä¸åæµè½¬å¡å·ï¼è¯·ç¡®è®¤"); |
| | | // return; |
| | | //} |
| | | } |
| | | //} |
| | | } |
| | | var HEntryID = array.join(",");//ç¨éå·å岿°ç» |
| | | var HInterID = interid.join(","); |
| | | var HIeID = ieid.join(","); |
| | |
| | | layer.msg('è¯·éæ©æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | |
| | | //å·¥åºå§å¤æ´¾å·¥ |
| | | function set_WWSendWork() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var array = []; |
| | | var interid = []; |
| | | var ieid = []; |
| | | for (let i = 0; i < data.length; i++) { |
| | | array.push(checkStatus.data[i]["HEntryID"]); //è·åæµè½¬å¡å表ID |
| | | interid.push(checkStatus.data[i]["hmainid"]); |
| | | ieid.push(checkStatus.data[i]["hmainid"].toString() + checkStatus.data[i]["HEntryID"].toString()); |
| | | //夿忮巿¯å¦ç¸å |
| | | //if (checkStatus.data[0]["åæ®å·"] != checkStatus.data[i]["åæ®å·"]) { |
| | | // layer.msg("å¾éäºä¸åæµè½¬å¡å·ï¼è¯·ç¡®è®¤"); |
| | | // return; |
| | | //} |
| | | } |
| | | var HEntryID = array.join(",");//ç¨éå·å岿°ç» |
| | | var HInterID = interid.join(","); |
| | | var HIeID = ieid.join(","); |
| | | if (checkStatus.data.length >= 1) { |
| | | if (checkStatus.data[0]["æµæ°´å·"] != "9999") { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "å·¥åºå§å¤æ´¾å·¥åç¼è¾" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["100%", "100%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../车é´ç®¡ç/å·¥åºæµè½¬å¡/WW_EntrustWorkOrderBillEdit.html?OperationType=1&linterid=' + HInterID.toString() + '&HEntryID=' + HEntryID.toString() + '&HIeID=' + HIeID, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('派工工åºä¸è½æ¯è½¬å·¥åºï¼'); |
| | | } |
| | | } else { |
| | | layer.msg('è¯·éæ©æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | //#region ææ´¾æ¥æ |
| | | function set_PlanDate() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | |
| | | function get_print() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | if (checkStatus.data.length >= 1) { |
| | | var rows = []; |
| | | var arr = []; |
| | | var ieid = []; |
| | | for (var i = 0; i < data.length; i++) { |
| | | rows.push(data[i].hmainid.toString()); |
| | | arr.push(data[i].HEntryID.toString()); |
| | | ieid.push(data[i].hmainid.toString() + data[i].HEntryID.toString()) |
| | | } |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HProcessExchange', 'yes'] |
| | | , content: ['../../BaseSet/SRM_OpenTmpList_GXPG.html?linterid=' + rows.toString() + '&MyMsg=' + rows.toString() + '&Type=HProcSendWork' + '&ieid=' + ieid.toString(), 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |