| | |
| | | <div class="layui-inline"> |
| | | <input type="date" class="layui-input" id="HEndDate" style="width:110px;" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | |
| | | <div class="layui-inline" style="margin-top:2px;"> |
| | | <label class="layui-form-label" style="width: 60px;">设å¤ç¼ç </label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HEqNumber" lay-verify="HEqNumber" id="HEqNumber"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="margin-top:2px;"> |
| | | <label class="layui-form-label" style="width: 60px;">设å¤åç§°</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HEqName" lay-verify="HEqName" id="HEqName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="margin-top:2px;"> |
| | | <label class="layui-form-label" style="width: 60px;">å æ® å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" style="width:125px;"> |
| | | </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> |
| | |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var HModName = "Sb_EqpMaintenanceBillList_PDA"; |
| | | |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["hmainid", "HEquipID", "HEmpID", "HDeptID", "HManagerID", "hsubid", "HRepairCheckID1", "HManagerID1", "HBillType", "æºå主å
ç ", "æºååå
ç "]; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢æ¢å è½½ |
| | |
| | | url: GetWEBURL() + "/Web/GetEquipmentBillsList", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": sWhere, "Type": "WX" }, |
| | | data: { "sWhere": sWhere, "Type": "WX", "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | |
| | | if (data1.count == 1) { |
| | |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'checkbox', fixed: 'left' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, "") > -1) { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | |
| | | , height: 'full-70' |
| | | , totalRow: false //å¼å¯å计 |
| | | , cols: [col] |
| | | , data: data1.data |
| | | , data: data1.data == null ? [] : data1.data |
| | | }; |
| | | table.render(option); |
| | | |
| | |
| | | function get_FastQuery() { |
| | | var HBeginDate = $("#HBeginDate").val();//ä¸è¾¾æ¥æ å¼å§æ¥æ |
| | | var HEndDate = $("#HEndDate").val();//ç»ææ¥æ |
| | | |
| | | var HEqNumber = $("#HEqNumber").val(); //设å¤ä»£ç |
| | | var HEqName = $("#HEqName").val(); //设å¤åç§° |
| | | var HBillNo = $("#HBillNo").val(); //åæ®å· |
| | | |
| | | if (HBeginDate != "" && HEndDate != "") { |
| | | sWhere += " and æ¥æ between '" + HBeginDate + "' and '" + HEndDate + "' "; |
| | | } |
| | | |
| | | if (HEqNumber != "") { |
| | | sWhere += " and 设å¤ä»£ç like '%" + HEqNumber + "%'" |
| | | } |
| | | if (HEqName != "") { |
| | | sWhere += " and 设å¤åç§° like '%" + HEqName + "%'" |
| | | } |
| | | if (HBillNo != "") { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'" |
| | | } |
| | | get_Display(sWhere); |
| | | //è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | sWhere = ""; |
| | |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMaterNumber").val(""); |
| | | $("#HBillNo").val(""); |
| | | $("#HProductName").val(""); |
| | | $("#HProductModel").val(""); |
| | | $("#ColContent").val(""); |
| | | $("#ColName").val("0"); |
| | | $("#Comparator").val("0"); |
| | | ColFilter(); |
| | | $("#HEqNumber").val(""); //设å¤ä»£ç |
| | | $("#HEqName").val(""); //设å¤åç§° |
| | | sWhere = ""; |
| | | } |
| | | |