index2-26f8527f.js 5.6 KB

1
  1. import{d as Z,P as j,r as c,x as B,b as E,a4 as G,o as s,c as T,f as a,A as t,a as l,a5 as M,F as N,R as L,C as _,D as i,k as f,a9 as $,V as aa,S as ea,U as la,I as ta,Q as ra,J as oa,W as sa,X as na,Y as pa,Z as ua,_ as ca,__tla as _a}from"./index-286756b9.js";import{_ as ia,__tla as ma}from"./index-ed6c67a8.js";import{_ as da,__tla as fa}from"./DictTag-f72b04ca.js";import{_ as ya,__tla as ha}from"./ContentWrap-83998678.js";import{a as ga,D as z,__tla as wa}from"./dict-82dca549.js";import{d as xa,__tla as ba}from"./formatTime-83e416ef.js";import{d as ka}from"./download-20922b56.js";import{U as va,g as Ca,d as Va,e as Ua,__tla as Da}from"./UReportDataForm-1ae6c2bb.js";import{u as Sa,__tla as Ta}from"./useMessage-084b1e70.js";import{__tla as Ma}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as Na}from"./el-card-d3d5a654.js";import{__tla as za}from"./Dialog-4c2de357.js";import{__tla as Oa}from"./Editor-514f76f8.js";let O,Ra=Promise.all([(()=>{try{return _a}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Oa}catch{}})()]).then(async()=>{O=ca(Z({name:"UReportData",__name:"index2",setup(Ya){const w=Sa(),{t:R}=j(),x=c(!0),k=c([]),v=c(0),r=B({pageNo:1,pageSize:10,name:null,status:null,remark:null,createTime:[]}),C=c(),b=c(!1),m=async()=>{x.value=!0;try{const n=await Ca(r);k.value=n.list,v.value=n.total}finally{x.value=!1}},y=()=>{r.pageNo=1,m()},Y=()=>{C.value.resetFields(),y()},V=c(),U=(n,o)=>{V.value.open(n,o)},P=async()=>{try{await w.exportConfirm(),b.value=!0;const n=await Ua(r);ka.excel(n,"Ureport2\u62A5\u8868.xls")}catch{}finally{b.value=!1}};return E(()=>{m()}),(n,o)=>{const D=$,d=aa,A=ea,F=la,H=ta,h=ra,u=oa,I=sa,S=ya,p=na,K=da,q=pa,J=ia,g=G("hasPermi"),Q=ua;return s(),T(N,null,[a(S,null,{default:t(()=>[a(I,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:t(()=>[a(d,{label:"\u6587\u4EF6\u540D\u79F0",prop:"name"},{default:t(()=>[a(D,{modelValue:l(r).name,"onUpdate:modelValue":o[0]||(o[0]=e=>l(r).name=e),placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",clearable:"",onKeyup:M(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[a(F,{modelValue:l(r).status,"onUpdate:modelValue":o[1]||(o[1]=e=>l(r).status=e),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:t(()=>[(s(!0),T(N,null,L(l(ga)(l(z).COMMON_STATUS),e=>(s(),_(A,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u5907\u6CE8",prop:"remark"},{default:t(()=>[a(D,{modelValue:l(r).remark,"onUpdate:modelValue":o[2]||(o[2]=e=>l(r).remark=e),placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",clearable:"",onKeyup:M(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(H,{modelValue:l(r).createTime,"onUpdate:modelValue":o[3]||(o[3]=e=>l(r).createTime=e),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(d,null,{default:t(()=>[a(u,{onClick:y},{default:t(()=>[a(h,{icon:"ep:search",class:"mr-5px"}),i(" \u641C\u7D22")]),_:1}),a(u,{onClick:Y},{default:t(()=>[a(h,{icon:"ep:refresh",class:"mr-5px"}),i(" \u91CD\u7F6E")]),_:1}),f((s(),_(u,{type:"primary",plain:"",onClick:o[4]||(o[4]=e=>U("create"))},{default:t(()=>[a(h,{icon:"ep:plus",class:"mr-5px"}),i(" \u65B0\u589E ")]),_:1})),[[g,["report:ureport-data:create"]]]),f((s(),_(u,{type:"success",plain:"",onClick:P,loading:l(b)},{default:t(()=>[a(h,{icon:"ep:download",class:"mr-5px"}),i(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[g,["report:ureport-data:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(S,null,{default:t(()=>[f((s(),_(q,{data:l(k),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[a(p,{label:"ID",align:"center",prop:"id"}),a(p,{label:"\u6587\u4EF6\u540D\u79F0",align:"center",prop:"name"}),a(p,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(K,{type:l(z).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(p,{label:"\u6587\u4EF6\u5185\u5BB9",align:"center",prop:"content"}),a(p,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),a(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(xa),width:"180px"},null,8,["formatter"]),a(p,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[f((s(),_(u,{link:"",type:"primary",onClick:W=>U("update",e.row.id)},{default:t(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["report:ureport-data:update"]]]),f((s(),_(u,{link:"",type:"danger",onClick:W=>(async X=>{try{await w.delConfirm(),await Va(X),w.success(R("common.delSuccess")),await m()}catch{}})(e.row.id)},{default:t(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["report:ureport-data:delete"]]])]),_:1})]),_:1},8,["data"])),[[Q,l(x)]]),a(J,{total:l(v),page:l(r).pageNo,"onUpdate:page":o[5]||(o[5]=e=>l(r).pageNo=e),limit:l(r).pageSize,"onUpdate:limit":o[6]||(o[6]=e=>l(r).pageSize=e),onPagination:m},null,8,["total","page","limit"])]),_:1}),a(va,{ref_key:"formRef",ref:V,onSuccess:m},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/report/ureport/index2.vue"]])});export{Ra as __tla,O as default};