all.040b082b.js 3.6 KB

1
  1. import{Z as F,cr as b,_ as N,d as z,cs as I,m as c,cp as T,w as $,r as s,o as f,A as _,x as o,h as a,u as i,H as B,D as x,a as E,ce as P}from"./index.56449854.js";import{s as k}from"./search.config.6aa58b3d.js";import{a as D,D as U}from"./demand-modify-modal.740feb73.js";import{u as V}from"./use-page-search.59eb5443.js";import H from"./exec-modal.023b6487.js";import"./createRequset.56e9fc42.js";const O=[{value:1,label:"\u5F85\u6267\u884C",type:"info"},{value:2,label:"\u6267\u884C\u5B8C\u6210",type:"success"},{value:3,label:"\u6267\u884C\u5931\u8D25",type:"danger"}],j=[{value:1,label:"\u7ACB\u5373\u6267\u884C",type:""},{value:2,label:"\u5EF6\u8FDF\u6267\u884C",type:"warning"}],L=[{prop:"exec_name",label:"\u4E1A\u52A1\u8868\u540D\u79F0",minWidth:"115px"},{prop:"start",label:"\u6570\u636E\u5F00\u59CB\u65F6\u95F4",minWidth:"155px"},{prop:"end",label:"\u6570\u636E\u7ED3\u675F\u65F6\u95F4",minWidth:"155px"},{prop:"updatetime",label:"\u72B6\u6001\u66F4\u65B0\u65F6\u95F4",minWidth:"155px"},{prop:"createtime",label:"\u521B\u5EFA\u65F6\u95F4",minWidth:"115px"},{prop:"exce_type",label:"\u6267\u884C\u7C7B\u578B",cellRenderer({row:r}){const n=j.find(({value:u})=>String(u)===String(r.exec_type));return F(b,{type:n.type||""},{default:()=>n.label||"--"})}},{prop:"status",label:"\u72B6\u6001",cellRenderer({row:r}){const n=O.find(({value:u})=>String(u)===String(r.status));return F(b,{type:n.type||""},{default:()=>n.label||"--"})}},{prop:"departName",label:"\u90E8\u95E8\u540D\u79F0",minWidth:"155px"},{prop:"apply_name",label:"\u7533\u8BF7\u4EBA",minWidth:"80px"},{label:"\u64CD\u4F5C",fixed:"right",width:90,slot:"operation"}],Z={columns:L,showTitle:!1,superUserNoAction:!1,apis:{httpList:D.list}},g="accountsReceivableDetails",q=z({__name:"all",setup(r){const n=I(),u=c(null),y=c(k),v=c(null),m=c(null),{hasPermissionWithCode:C}=T(g);async function S(d){const e=await D.delete_exec({id:d});e.code===1?m.value.onSearch():P.warning(e.message)}$(()=>n.level,d=>{const{formItems:e}=y.value;e.findIndex(({field:p})=>p==="depart_id"),n.info},{immediate:!0});const A={pageSearchHook:()=>V(void 0,void 0,k)};return(d,e)=>{const p=s("el-button"),h=s("ElButton"),M=s("el-link"),R=s("el-popconfirm"),W=s("page-container"),w=s("page-auth");return f(),_(w,{"page-name":g},{default:o(()=>[a(W,{hooks:A,"page-name":g,"search-config":y.value,"get-content-ref":t=>m.value=t,"content-config":i(Z)},{content_header:o(()=>[a(p,{type:"",size:"mini",onClick:e[0]||(e[0]=t=>{var l;return(l=v.value)==null?void 0:l.onDisplay({})})},{default:o(()=>[B(" \u67E5\u770B\u6267\u884C\u7C7B\u578B\u8BF4\u660E ")]),_:1}),a(p,{size:"mini",type:"primary",onClick:e[1]||(e[1]=t=>{var l;return(l=u.value)==null?void 0:l.onDisplay({})})},{default:o(()=>[B(" \u6DFB\u52A0 ")]),_:1})]),content_action:o(t=>[String(t.status)==="2"&&i(C)("10")?(f(),_(M,{key:0,href:t.down_url,target:"_blank",underline:!1},{default:o(()=>[a(h,{link:"",size:"small",type:"primary",icon:i(x)("download-line")},null,8,["icon"])]),_:2},1032,["href"])):E("v-if",!0),i(C)("8")&&(String(t.status)==="3"||String(t.status)==="1")?(f(),_(R,{key:1,title:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u6761\u8BB0\u5F55?",onConfirm:l=>S(t.id)},{reference:o(()=>[a(h,{link:"",size:"small",type:"primary",icon:i(x)("delete")},null,8,["icon"])]),_:2},1032,["onConfirm"])):E("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"]),a(U,{ref_key:"demandModifyModal",ref:u,onRefresh:e[2]||(e[2]=t=>m.value.onSearch())},null,512),a(H,{ref_key:"execModalRef",ref:v},null,512)]),_:1})}}});var ee=N(q,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/subscribe/accountsReceivableDetails/components/all.vue"]]);export{ee as default};