| | |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/HideButton.js"></script> |
| | | <script src="../../../layuiadmin/soulTable.slim.js"></script> |
| | | <!--<script src="../../../layuiadmin/PageTitle.js"></script>--> |
| | | <script src="../../../layuiadmin/PageTitle.js"></script> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view" id="view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print" id="print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh" id="Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit" id="CheckBill"><i class="layui-icon layui-icon-radio"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeAudit" id="AbandonCheck"><i class="layui-icon layui-icon-circle"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-PushPOInStockBills" id="btn-PushPOInStockBills"><i class="layui-icon layui-icon-delete"></i>å¤è¡ä¸æ¨(æ¶æéç¥å)</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CheckBill" id="CheckBill"><i class="layui-icon layui-icon-form"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_AbandonCheck" id="AbandonCheck"><i class="layui-icon layui-icon-form"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Close" id="Close"><i class="layui-icon layui-icon-radio"></i>å
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeClose" id="DeClose"><i class="layui-icon layui-icon-radio"></i>åå
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CloseRow" id="set_CloseRow"><i class="layui-icon layui-icon-form"></i>è¡å
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CancelCloseRow" id="set_CancelCloseRow"><i class="layui-icon layui-icon-form"></i>è¡åå
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Drop" id="Drop"><i class="layui-icon layui-icon-radio"></i>ä½åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeDrop" id="DeDrop"><i class="layui-icon layui-icon-radio"></i>åä½åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn" id="HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | |
| | | var option = []; |
| | | var Name = "MouldProdInHouseCellWidth"; |
| | | var HModName = "Cg_POOrderBillList"; |
| | | var HBillType = "1102"; |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "1102"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å |
| | | var HPageTitle = ""; |
| | | get_PageTitle(HModuleType); |
| | | |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? document.title : get_PageTitle(HModuleType); |
| | | //#endregion |
| | | |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["hmainid","HBillType", "HSupID", "HPSStyleID", "HSSID", "HCurID", "HDeptID", "HManagerID", "HEmpID", "hsubid", "HMaterID", "HUnitID", |
| | | "HFeedback", "HPriority", "HUserID"]; |
| | | "HFeedback", "HPriority", "HUserID","å¸å«ä»£ç ","éè´æ¹å¼ä»£ç ","ç»ç®æ¹å¼ä»£ç ","é¨é¨ä»£ç ","主管代ç ","ä¸å¡å代ç ","计éåä½ä»£ç "]; |
| | | //#endregion |
| | | |
| | | //#region ãè¿æ»¤æ¹æ¡ã |
| | |
| | | window.HInterID_Choose = 0; |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | //#region è¿å
¥é¡µé¢æ¢å è½½ |
| | | set_ClearBill(); |
| | |
| | | //å·æ° |
| | | case 'get_Refresh': set_Refresh(); |
| | | break; |
| | | //å®¡æ ¸æé® |
| | | case 'btn-Audit': |
| | | set_CheckBill(1); |
| | | //å¤è¡ä¸æ¨(æ¶æéç¥å) |
| | | case 'btn-PushPOInStockBills': |
| | | set_PushPOInStockBills(); |
| | | break; |
| | | //åå®¡æ ¸æé® |
| | | case 'btn-DeAudit': |
| | | set_CheckBill(2); |
| | | //å®¡æ ¸ |
| | | case 'set_CheckBill': set_CheckBill(0); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'set_AbandonCheck': set_CheckBill(1); |
| | | break; |
| | | //å
³éæé® ï¼1:å
³éã2:åå
³éï¼ |
| | | case 'btn-Close': |
| | |
| | | //åå
³éæé® |
| | | case 'btn-DeClose': |
| | | set_CloseBill(2); |
| | | break; |
| | | //è¡å
³é |
| | | case 'set_CloseRow': set_CloseRow(0); |
| | | break; |
| | | //è¡åå
³é |
| | | case 'set_CancelCloseRow': set_CloseRow(1); |
| | | break; |
| | | //ä½åºæé® ï¼1:ä½åºã2:åä½åºï¼ |
| | | case 'btn-Drop': |
| | |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | set_ClearQuery(); |
| | | }); |
| | | |
| | | //#region è·å模å页颿 é¢ |
| | | function get_PageTitle(HModuleType) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | async: false, |
| | | url: GetWEBURL() + "Web/GetModuleName", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HModuleType": HModuleType }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data[0]; |
| | | HPageTitle = data.HName; |
| | | } else { |
| | | return ""; |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //è·åç»ç» |
| | | function Organ() { |
| | |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | | function set_ClearBill() { |
| | | $("#HBeginDate").val("2022-03-14"); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //ç´æ¥æ§è¡å表çé å è½½æ°æ®å°ç½æ ¼ |
| | |
| | | } |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | $("#HBeginDate").val("2022-03-14"); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | 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: 130 } |
| | | , { field: 'æ§ç©æç¼ç ', title: 'æ§ç©æç¼ç ', width: 130 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 130 } |
| | | , { field: 'æ°é', title: 'è®¢åæ°é', width: 100 } |
| | | , { field: 'æå°æ¡ç æ°é', title: 'æå°æ¡ç æ°é', width: 120 } |
| | | /* å®çæ°å¢å段 begin */ |
| | | , { field: '坿尿¡ç æ°é', title: '坿尿¡ç æ°é', width: 120 } |
| | | /* å®çæ°å¢å段 end */ |
| | | , { field: 'å
³èæ°é', title: 'å·²åè´§æ°é', width: 120 } |
| | | , { field: 'æªå
³èæ°é', title: 'å¯åè´§æ°é', width: 120 } |
| | | /* å®çæ°å¢å段 begin */ |
| | | , { field: 'éææ°é', title: 'éææ°é', width: 120 } |
| | | , { field: '宿¶æ°é', title: '宿¶æ°é', width: 120 } |
| | | , { field: 'å
¥åºæ°é', title: 'å
¥åºæ°é', width: 120 } |
| | | , { field: 'å©ä½å
¥åºæ°é', title: 'å©ä½å
¥åºæ°é', width: 120 } |
| | | , { field: 'å©ä½æ¶ææ°é', title: 'å©ä½æ¶ææ°é', width: 120 } |
| | | /* å®çæ°å¢å段 end */ |
| | | , { 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' |
| | | , page: true |
| | | , cellMinWidth: 120 |
| | | , totalRow: true |
| | | , limit: 500 |
| | | , height: 'full-50' |
| | | , cols: [columns] |
| | | , limits: [500, 5000, 20000] |
| | | , page: true |
| | | , totalRow: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { 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: 100, sort: true } |
| | | , { field: 'HBillType', title: 'HBillType', hide: true, sort: true } |
| | | , { field: 'è¡ç¶æ', title: 'è¡ç¶æ', width: 125, sort: true } |
| | | , { 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: 130 } |
| | | , { field: 'æ§ç©æç¼ç ', title: 'æ§ç©æç¼ç ', width: 130 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 130 } |
| | | , { field: 'æ°é', title: 'è®¢åæ°é', width: 100, totalRow: true } |
| | | , { field: 'æå°æ¡ç æ°é', title: 'æå°æ¡ç æ°é', width: 120, totalRow: true } |
| | | /* å®çæ°å¢å段 begin */ |
| | | , { field: '坿尿¡ç æ°é', title: '坿尿¡ç æ°é', width: 120, totalRow: true} |
| | | /* å®çæ°å¢å段 end */ |
| | | , { field: 'å
³èæ°é', title: 'å·²åè´§æ°é', width: 120, totalRow: true} |
| | | , { field: 'æªå
³èæ°é', title: 'å¯åè´§æ°é', width: 120, totalRow: true} |
| | | /* å®çæ°å¢å段 begin */ |
| | | , { field: 'éææ°é', title: 'éææ°é', width: 120, totalRow: true} |
| | | , { field: '宿¶æ°é', title: '宿¶æ°é', width: 120, totalRow: true} |
| | | , { field: 'å
¥åºæ°é', title: 'å
¥åºæ°é', width: 120, totalRow: true} |
| | | , { field: 'å©ä½å
¥åºæ°é', title: 'å©ä½å
¥åºæ°é', width: 120, totalRow: true} |
| | | , { field: 'å©ä½æ¶ææ°é', title: 'å©ä½æ¶ææ°é', width: 120, totalRow: true} |
| | | /* å®çæ°å¢å段 end */ |
| | | , { field: 'å®æç¶æ', title: 'å®æç¶æ', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | //, { field: 'HUnitID', title: 'HUnitID', hide: true } éå¤ |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 120 , hide: true } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100 } |
| | | , { field: 'æ¹å·', title: 'æ¹å·', width: 100 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 100, totalRow: true } |
| | | , { 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, hide: true } |
| | | , { 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, hide: true } |
| | | , { field: 'å¸å«', title: 'å¸å«', width: 100} |
| | | , { field: 'æ±ç', title: 'æ±ç', width: 100} |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 100, hide: true } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 100} |
| | | , { field: 'HManagerID', title: 'HManagerID', hide: true } |
| | | , { field: '主管代ç ', title: '主管代ç ', width: 100, hide: true } |
| | | , { 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, totalRow: true } |
| | | , { 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: 200, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 100} |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 120, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ?'':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 100} |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 120, templet: "<div>{{d.ä¿®æ¹æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'å
³é人', title: 'å
³é人', width: 100} |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 120, templet: "<div>{{d.å
³éæ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'è¡å
³é人', title: 'è¡å
³é人', width: 125, sort: true } |
| | | , { field: 'è¡å
³éæ¥æ', title: 'è¡å
³éæ¥æ', width: 200, templet: "<div>{{d.è¡å
³é人 == ''?'':layui.util.toDateString(d.è¡å
³éæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 100} |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 120, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | |
| | | ]] |
| | | |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | |
| | | if (data1.count == 1) { |
| | | var data = []; |
| | | var col = []; |
| | | var totalArray = ["æ°é", "å
³èæ°é", "æªå
³èæ°é", "æå°æ¡ç æ°é", "æªæå°æ¡ç æ°é","宿¶æ°é","éé¢"]; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'checkbox', fixed: 'left' }); |
| | | col.push({ type: 'checkbox', fixed: 'left', totalRowText: 'å计'}); |
| | | for (var i = 0; i < data.length; i++) { |
| | | // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | else if ($.inArray(data[i].name, totalArray) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 }); |
| | | } else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd HH:mm:ss')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | |
| | | , data: data1.data |
| | | , height: 800 |
| | | , page: true |
| | | , totalRow: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cg_POOrderBill/DeltetCg_POOrderBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID }, |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"]}, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | } |
| | | } |
| | | |
| | | //#region åå®¡æ ¸/å®¡æ ¸æ°æ® |
| | | //#region å¤è¡ä¸æ¨ï¼æ¶æéç¥åï¼ |
| | | function set_PushPOInStockBills() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (data.length > 0) { |
| | | var dataArray = []; |
| | | var HCusName = data[0].客æ·; |
| | | var HEmpName = data[0].ä¸å¡å; |
| | | for (var i = 0; i < data.length; i++) { |
| | | var temp = { |
| | | "hmainid": data[i].hmainid |
| | | , "hsubid": data[i].hsubid |
| | | , "HBillStatus": data[i].ç¶æ |
| | | , "HSourceBillType": "1102" |
| | | } |
| | | dataArray.push(temp); |
| | | if (data[i].ç¶æ != "å·²å®¡æ ¸") { |
| | | var err = "䏿¨å¤±è´¥!åæ®ã" + data[i].åæ®å· + "ãçç¶æä¸ºâ" + data[0].ç¶æ + "â,ä¸å
è®¸ä¸æ¨ï¼"; |
| | | layer.alert(err, { icon: 5 }); |
| | | return; |
| | | } |
| | | |
| | | if (data[i].è¡ç¶æ == "å·²å
³é") { |
| | | layer.msg("䏿¨å¤±è´¥!åæ®å·ã" + data[i].åæ®å· + "ãä¸éä¸çè®°å½ä¸åå¨å·²å
³éç¶æçè®°å½!"); |
| | | return; |
| | | } |
| | | |
| | | if (data[i].å®¢æ· != HCusName) { |
| | | layer.msg("䏿¨å¤±è´¥!å·²ç»éä¸çè®°å½ä¸åå¨ä¸å客æ·!"); |
| | | return; |
| | | } |
| | | if (data[i].ä¸å¡å != HEmpName) { |
| | | layer.msg("䏿¨å¤±è´¥!å·²ç»éä¸çè®°å½ä¸åå¨ä¸åä¸å¡å!"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | var datajson = { |
| | | "data": dataArray |
| | | }; |
| | | |
| | | var url = encodeURI('../../éè´ç®¡ç/æ¶æéç¥å/Add_Edit_Cg_POInStockBillList.html?OperationType=4&linterid=0&HSouceBillType=1102&res=' + JSON.stringify(datajson)) |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'éè´è®¢å-å¤è¡ä¸æ¨æ¶æéç¥å' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: url |
| | | , btn: [], |
| | | // æé®1 çåè° |
| | | end: function (index, layero, that) { |
| | | //å·æ°é¡µé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©æ°æ®ä¸æ¨ï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region åå®¡æ ¸/å®¡æ ¸æ°æ® |
| | | function set_CheckBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cg_POOrderBill/AuditCg_POOrderBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] }, |
| | | data: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region åå
³é/å
³éæ°æ® |
| | | function set_CloseBill(num) { |
| | |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region è¡åå
³é/è¡å
³éæ°æ® |
| | | function set_CloseRow(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var hsubid = data[0].hsubid.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cg_POOrderBill/CloseRowCg_POOrderBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "HEntryID": hsubid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å
³éï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | |
| | | sWhere += " and å®æç¶æ like '%" + HFinishStatus + "%'"; |
| | | |
| | | } |
| | | |
| | | sWhere += addSWhereByOpenType(); |
| | | //æ·»å æ¥è¯¢æ¡ä»¶ï¼æ ¹æ®å½åç»å½ç¨æ·å
³èèåè¿åæ°æ® |
| | | //sWhere += " and HUserID =" + sessionStorage["Czybm"] |
| | | var index = layer.load(0); |
| | |
| | | }) |
| | | } |
| | | |
| | | //éèå设置 |
| | | //#region éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | var contentUrl = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | for (var i = 1; i < option.cols[0].length; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | var urlStr = window.document.location.pathname;//è·åæä»¶è·¯å¾ |
| | | var urlLen = urlStr.split('/'); |
| | | for (var i = 0; i < urlLen.length - 4; i++) { |
| | | contentUrl += "../"; |
| | | } |
| | | |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | |
| | | contentUrl += 'åºç¡èµæ/éèå设置/Gy_GridView_Hide.html?HModName=' + HModName + '&colName=' + colName; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: [contentUrl, "yes"] |
| | | , content: ['../../åºç¡èµæ/éèå设置/Gy_GridView_Hide.html?HModName=' + HModName + '&colName=' + colName, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //æ¾ç¤ºåæ°æ® |
| | | //#endregion |
| | | //#region æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["hmainid", "HBillType", "HSupID", "ä¸å¡ç¶æ", "HUnitID", "ä¾åºå代ç ", "ä¸å¡å代ç ", "HPriority", "HPSStyleID", "HSSID", "HCurID", "HDeptID", "HManagerID", "HEmpID", "hsubid","HMaterID"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["hmainid", "HBillType", "HSupID", "ä¸å¡ç¶æ", "HUnitID", "ä¾åºå代ç ", "ä¸å¡å代ç ", "HPriority", "HPSStyleID", "HSSID", "HCurID", "HDeptID", "HManagerID", "HEmpID", "hsubid", "HMaterID"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 2; i++) { |
| | | if(dataCol[i]){ |
| | | var dataCols = dataCol[i].split('|'); |
| | | } |
| | | for (var i = 0; i < option.cols[0].length - 1; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | |
| | | option.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //设置å宽 |
| | | //if (data1.data[0].HColumnWidth != 0) { |
| | | // option.cols[0][i + 1]["width"] = data1.data[0].HColumnWidth + "px;"; |
| | | //} else { |
| | | // option.cols[0][i + 1]["width"] = ""; |
| | | //} |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | |
| | | } |
| | | } |
| | | table.render(option); |
| | | var HBillType = "1102"; |
| | | //å·æ°æé®æ¾ç¤º |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | } else { |
| | | table.render(option); |
| | | var HBillType = "1102"; |
| | | //å·æ°æé®æ¾ç¤º |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | } |
| | | |
| | | //å·æ°æé®æ¾ç¤º |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "1102"; |
| | | Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#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 ColFilter() { |
| | |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | //#endregion |
| | | //#region 夿æ¯ç´æ¥æå¼é¡µé¢è¿æ¯å
¶å®é¡µé¢éè¿éæ©æé®æå¼ï¼å¹¶æ¾ç¤ºç¸åºæ°æ® |
| | | function addSWhereByOpenType() { |
| | | //è·ååæ° |
| | | var params = getUrlVars(); |
| | | var openType = params[params[0]]; //ä»åæ°ä¸è·å æå¼æ¹å¼ 1ç´æ¥æå¼ 2å
¶å®é¡µé¢éè¿éæ©æé®æå¼ |
| | | var HOrgID = params[params[1]]; |
| | | |
| | | var addSWhere = ""; |
| | | |
| | | if (openType == 2) { |
| | | addSWhere = " and ç¶æ = 'å·²å®¡æ ¸' and è¡ç¶æ = '' and HOrgID = " + HOrgID; |
| | | } |
| | | return addSWhere; |
| | | } |
| | | //#endregion |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | |