You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
3.4 KiB
2 lines
3.4 KiB
var h=(d,l,t)=>new Promise((e,i)=>{var u=r=>{try{n(t.next(r))}catch(m){i(m)}},s=r=>{try{n(t.throw(r))}catch(m){i(m)}},n=r=>r.done?e(r.value):Promise.resolve(r.value).then(u,s);n((t=t.apply(d,l)).next())});import{D}from"./DataType-33901a1c.js";import{PageBaseGenerList as I,GenerListPageShowModel as B}from"./PageBaseGenerList-b0d946a7.js";import{GPNReturnObj as a,GPNReturnType as o}from"./PageBaseGroupNew-ee20c033.js";import{WebConfig as p}from"./WebConfig-c30998ac.js";import{$ as F}from"./index-f4658ae7.js";import"./ParamUtils-cdc24dd6.js";import"./SystemConfig-b93c25b3.js";import"./bignumber-cf158d26.js";import"./ParamsUtils-3cbc5822.js";import"./Group-ab70f402.js";import"./Page-34b19d96.js";import"./EnumLab-d43291c1.js";class C extends I{constructor(){super("GL_BillRecent"),this.PageTitle="\u8FD1\u671F\u5355\u636E"}Init(){return h(this,null,function*(){this.DTFieldOfSearch="RDT",this.DTFieldOfLabel="\u53D1\u8D77\u65E5\u671F",this.LinkField="Title",this.GroupFields="FrmName",this.LabFields="BillState",this.Icon="",this.BtnOfToolbar="\u6279\u5904\u7406",this.PageSize=15,this.HisGLShowModel=B.Table,this.Columns=[{Key:"WorkID",Name:"\u5DE5\u4F5CID",IsShow:!1,IsShowMobile:!1,DataType:2},{Key:"Title",Name:"\u6807\u9898",IsShow:!0,IsShowMobile:!0,DataType:1,width:350},{Key:"FrmName",Name:"\u5355\u636E\u540D\u79F0",IsShow:!0,IsShowMobile:!0,DataType:1,width:150},{Key:"RDT",Name:"\u53D1\u8D77\u65E5\u671F",IsShow:!0,IsShowMobile:!0,DataType:D.AppDateTime,width:150},{Key:"PRI",Name:"\u4F18\u5148",IsShow:!0,IsShowMobile:!1,DataType:1,width:50,RefFunc:"PRI"},{Key:"IsRead",Name:"\u662F\u5426\u8BFB\u53D6",IsShow:!1,IsShowMobile:!1,DataType:2,RefFunc:"IsRead"},{Key:"BillState",Name:"\u6807\u7B7E",IsShow:!0,IsShowMobile:!0,DataType:2,width:150}];const l=new F("BP.CCBill.WF_CCBill");l.AddUrlData();const t=yield l.DoMethodReturnJson("DB_Recent");t.forEach(e=>{e.BillState==1&&(e.BillState="@\u8349\u7A3F=orange"),e.BillState==2&&(e.BillState="@\u7F16\u8F91\u4E2D=green"),e.BillState==3&&(e.BillState="@\u5BA1\u6838\u4E2D=green"),e.BillState==4&&(e.BillState="@\u5220\u9664=red"),e.BillState==100&&(e.BillState="@\u5F52\u6863=green"),e.PRI==0&&(e.PRI='<img src="resource/WF/Img/PRI/0.png" style="display:inline"/>'),e.PRI==1&&(e.PRI='<img src="resource/WF/Img/PRI/1.png" style="display:inline"/>'),e.PRI==2&&(e.PRI='<img src="resource/WF/Img/PRI/2.png" style="display:inline"/>'),e.RDT=e.RDT.substring(0,e.RDT.length-3)}),this.Data=t})}LinkFieldClick(l){const t=l.WorkID;let e="/@/CCFast/CCBill/MyBill.vue?FrmID="+l.No+"&WorkID="+t+"&RoutFrom=MyBill";const i=Object.keys(l);for(const s of i)e+=`&${s}=${l[s]}`;const u=p.FlowOpenModel||0;if(u===0)return new a(o.OpenUrlByDrawer90,e);if(u===1)return new a(o.OpenUrlByModal,e);if(u===2)return new a(o.OpenUrlByDrawer75,e);if(u===3)return new a(o.OpenUrlByNewWindow,e)}BtnClick(l,t){const e=window.location.hash;let i="";if(l=="\u6279\u5904\u7406")return t?(e.includes("WF")==!0?i="/#/WF/Comm/GenerList?EnName=GL_Batch&NodeID="+t.NodeID:e.includes("Middle")==!0?i="/#/Middle/GenerList?EnName=GL_Batch&NodeID="+t.NodeID:i="/#/WF/Comm/GenerList?EnName=GL_Batch&NodeID="+t.NodeID,new a(o.GoToUrl,i)):(e.includes("WF")==!0?i="/#/WF/Comm/GenerList?EnName=GL_Batch":e.includes("Middle")==!0?i="/#/Middle/GenerList?EnName=GL_Batch":i="/#/WF/Comm/GenerList?EnName=GL_Batch",new a(o.GoToUrl,i));alert("\u672A\u5B9E\u73B0\u7684\u6309\u94AE\u529F\u80FD:"+l)}}export{C as GL_BillRecent};
|