| | |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button>--> |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | |
| | | , util = layui.util |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; var columns = []; |
| | | var option = []; |
| | | var Name = "MouldProdInHouseCellWidth"; |
| | | //#endregion |
| | | |
| | |
| | | }); |
| | | //#endregion |
| | | |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | | function set_ClearBill() { |
| | | //åå§åè¡¨æ ¼ |
| | |
| | | //å è½½ä¸å¡å |
| | | get_HEmpName(); |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | $("#HBeginDate").val("2022-03-14"); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //columns = [ |
| | | // { type: 'checkbox', fixed: 'left', totalRowText: 'å计' } |
| | | // ,{ field: 'hmainid', title: 'hmainid', sort: true, hide: true } |
| | | // , { field: 'æ¥æ', title: 'æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | // , { field: 'åæ®å·', title: 'åæ®å·', width: 150 } |
| | | // , { field: 'ä¾åºå', title: 'ä¾åºå', width: 150 } |
| | | // , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 100 } |
| | | // , { field: 'HBillType', title: 'HBillType', hide: true } |
| | | // , { field: 'HSupID', title: 'HSupID', hide: true } |
| | | // , { field: 'ä¸å¡ç¶æ', title: 'ä¸å¡ç¶æ', width: 100, hide: true } |
| | | // , { field: 'åé
ç¶æ', title: 'åé
ç¶æ', width: 100 } |
| | | // , { field: 'åå¸ç¶æ', title: 'åå¸ç¶æ', width: 100 } |
| | | // , { field: 'ä¾åºåååç¶æ', title: 'ä¾åºåååç¶æ', width: 135 }/*ç©æä»£ç ï¼ç©æåç§°ï¼è§æ ¼åå·ï¼æ¹å·ï¼æ°éï¼åä½ï¼æºååå·*/ |
| | | // , { field: 'åé¦ç¶æ', title: 'ä¾åºååé¦ç¶æ', width: 135 } |
| | | // , { field: 'ç©æç¼ç ', title: 'ç©æç¼ç ', width: 120 } |
| | | // , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 200 } |
| | | // , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 130 } |
| | | // , { field: 'æ°é', title: 'è®¢åæ°é', width: 100 } |
| | | // , { field: 'æå°æ¡ç æ°é', title: 'æå°æ¡ç æ°é', width: 120 } |
| | | // , { field: 'å
³èæ°é', title: 'å·²åè´§æ°é', width: 120 } |
| | | // , { field: 'æªå
³èæ°é', title: 'æªå·²åè´§æ°é', width: 120 } |
| | | // , { field: 'å®æç¶æ', title: 'å®æç¶æ', width: 100 } |
| | | // , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | // , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | // , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | // , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 120 } |
| | | // , { field: '计éåä½', title: '计éåä½', width: 100 } |
| | | // , { field: 'æ¹å·', title: 'æ¹å·', width: 100 } |
| | | // , { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | // , { field: 'æºååå·', title: 'æºååå·', width: 100 } |
| | | // , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 120, hide: true} |
| | | // , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100, hide: true} |
| | | // , { field: 'HPriority', title: 'HPriority', width: 100, hide: true } |
| | | // , { field: 'ä¼å
级', title: 'ä¼å
级', width: 100 } |
| | | // , { field: '交货å°ç¹', title: '交货å°ç¹', width: 100} |
| | | // , { field: 'HPSStyleID', title: 'HPSStyleID', hide: true } |
| | | // , { field: 'éè´æ¹å¼ä»£ç ', title: 'éè´æ¹å¼ä»£ç ', width: 120} |
| | | // , { field: 'éè´æ¹å¼', title: 'éè´æ¹å¼', width: 100} |
| | | // , { field: 'HSSID', title: 'HSSID', hide: true } |
| | | // , { field: 'ç»ç®æ¹å¼ä»£ç ', title: 'ç»ç®æ¹å¼ä»£ç ', width: 120} |
| | | // , { field: 'ç»ç®æ¹å¼', title: 'ç»ç®æ¹å¼', width: 100} |
| | | // , { field: 'ç»ç®æ¥æ', title: 'ç»ç®æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.ç»ç®æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | // , { field: 'HCurID', title: 'HCurID', hide: true } |
| | | // , { field: 'å¸å«ä»£ç ', title: 'å¸å«ä»£ç ', width: 100} |
| | | // , { field: 'å¸å«', title: 'å¸å«', width: 100} |
| | | // , { field: 'æ±ç', title: 'æ±ç', width: 100} |
| | | // , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | | // , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 100} |
| | | // , { field: 'é¨é¨', title: 'é¨é¨', width: 100} |
| | | // , { field: 'HManagerID', title: 'HManagerID', hide: true } |
| | | // , { field: '主管代ç ', title: '主管代ç ', width: 100} |
| | | // , { field: '主管', title: '主管', width: 100} |
| | | // , { field: 'HEmpID', title: 'HEmpID', hide: true } |
| | | // , { field: 'æè¦', title: 'æè¦', width: 100} |
| | | // , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 100} |
| | | // , { field: 'hsubid', title: 'hsubid', hide: true } |
| | | // , { field: 'HMaterID', title: 'HMaterID', hide: true } |
| | | // , { field: 'åä»·', title: 'åä»·', width: 100} |
| | | // , { field: 'éé¢', title: 'éé¢', width: 100} |
| | | // , { field: 'ç¨ç', title: 'ç¨ç', width: 100} |
| | | // , { field: 'ç¨é¢', title: 'ç¨é¢', width: 100} |
| | | // , { field: 'ä»·ç¨å计', title: 'ä»·ç¨å计', width: 100} |
| | | // , { field: 'äº¤è´§æ¥æ', title: 'äº¤è´§æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.äº¤è´§æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | // , { field: '计åè·è¸ªå·', title: '计åè·è¸ªå·', width: 100} |
| | | // , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 100} |
| | | // , { field: 'å¶å人', title: 'å¶å人', width: 100} |
| | | // , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | // , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 100} |
| | | // , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | // , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 100} |
| | | // , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | // , { field: 'å
³é人', title: 'å
³é人', width: 100} |
| | | // , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | // , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 100} |
| | | // , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | //]; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/list2', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | columns = data1.data; |
| | | columns.unshift({ type: 'checkbox', fixed: 'left', totalRowText: 'å计' }); |
| | | } else { |
| | | layer.alert(data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | var columns = [ |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计' } |
| | | ,{ field: 'hmainid', title: 'hmainid', sort: true, hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 150 } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', width: 150 } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 100 } |
| | | , { field: 'HBillType', title: 'HBillType', hide: true } |
| | | , { field: 'HSupID', title: 'HSupID', hide: true } |
| | | , { field: 'ä¸å¡ç¶æ', title: 'ä¸å¡ç¶æ', width: 100, hide: true } |
| | | , { field: 'åé
ç¶æ', title: 'åé
ç¶æ', width: 100 } |
| | | , { field: 'åå¸ç¶æ', title: 'åå¸ç¶æ', width: 100 } |
| | | , { field: 'ä¾åºåååç¶æ', title: 'ä¾åºåååç¶æ', width: 135 }/*ç©æä»£ç ï¼ç©æåç§°ï¼è§æ ¼åå·ï¼æ¹å·ï¼æ°éï¼åä½ï¼æºååå·*/ |
| | | , { field: 'åé¦ç¶æ', title: 'ä¾åºååé¦ç¶æ', width: 135 } |
| | | , { field: 'ç©æç¼ç ', title: 'ç©æç¼ç ', width: 120 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 200 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 130 } |
| | | , { field: 'æ°é', title: 'è®¢åæ°é', width: 100 } |
| | | , { field: 'æå°æ¡ç æ°é', title: 'æå°æ¡ç æ°é', width: 120 } |
| | | , { field: 'å
³èæ°é', title: 'å·²åè´§æ°é', width: 120 } |
| | | , { field: 'æªå
³èæ°é', title: 'æªå·²åè´§æ°é', width: 120 } |
| | | , { field: 'å®æç¶æ', title: 'å®æç¶æ', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 120 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100 } |
| | | , { field: 'æ¹å·', title: 'æ¹å·', width: 100 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 100 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 120, hide: true} |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100, hide: true} |
| | | , { field: 'HPriority', title: 'HPriority', width: 100, hide: true } |
| | | , { field: 'ä¼å
级', title: 'ä¼å
级', width: 100 } |
| | | , { field: '交货å°ç¹', title: '交货å°ç¹', width: 100} |
| | | , { field: 'HPSStyleID', title: 'HPSStyleID', hide: true } |
| | | , { field: 'éè´æ¹å¼ä»£ç ', title: 'éè´æ¹å¼ä»£ç ', width: 120} |
| | | , { field: 'éè´æ¹å¼', title: 'éè´æ¹å¼', width: 100} |
| | | , { field: 'HSSID', title: 'HSSID', hide: true } |
| | | , { field: 'ç»ç®æ¹å¼ä»£ç ', title: 'ç»ç®æ¹å¼ä»£ç ', width: 120} |
| | | , { field: 'ç»ç®æ¹å¼', title: 'ç»ç®æ¹å¼', width: 100} |
| | | , { field: 'ç»ç®æ¥æ', title: 'ç»ç®æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.ç»ç®æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'HCurID', title: 'HCurID', hide: true } |
| | | , { field: 'å¸å«ä»£ç ', title: 'å¸å«ä»£ç ', width: 100} |
| | | , { field: 'å¸å«', title: 'å¸å«', width: 100} |
| | | , { field: 'æ±ç', title: 'æ±ç', width: 100} |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 100} |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 100} |
| | | , { field: 'HManagerID', title: 'HManagerID', hide: true } |
| | | , { field: '主管代ç ', title: '主管代ç ', width: 100} |
| | | , { field: '主管', title: '主管', width: 100} |
| | | , { field: 'HEmpID', title: 'HEmpID', hide: true } |
| | | , { field: 'æè¦', title: 'æè¦', width: 100} |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 100} |
| | | , { field: 'hsubid', title: 'hsubid', hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', hide: true } |
| | | , { field: 'åä»·', title: 'åä»·', width: 100} |
| | | , { field: 'éé¢', title: 'éé¢', width: 100} |
| | | , { field: 'ç¨ç', title: 'ç¨ç', width: 100} |
| | | , { field: 'ç¨é¢', title: 'ç¨é¢', width: 100} |
| | | , { field: 'ä»·ç¨å计', title: 'ä»·ç¨å计', width: 100} |
| | | , { field: 'äº¤è´§æ¥æ', title: 'äº¤è´§æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.äº¤è´§æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: '计åè·è¸ªå·', title: '计åè·è¸ªå·', width: 100} |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 100} |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 100} |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 100} |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 100} |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'å
³é人', title: 'å
³é人', width: 100} |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 100} |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 120, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | |
| | | ]; |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | |
| | | // }); |
| | | //} |
| | | } |
| | | |
| | | //å è½½ç½æ ¼ |
| | | function get_Display(sWhere) { |
| | | var wait = layer.load();//é®ç½© |