import{Z as B,cr as F,_ as R,d as w,m as c,cp as z,r as s,o as m,A as f,x as u,h as a,u as l,H as x,D as b,a as v,ce as P}from"./index.56449854.js";import{s as T}from"./search.config.da4fb89b.js";import{a as k,D as L}from"./demand-modify-modal.cb03b09c.js";import{u as V}from"./use-page-search.59eb5443.js";import"./lodash.0da4bba2.js";import{u as $}from"./useBusinessQuery.85cdd2fe.js";import H from"./exec-modal.46a06453.js";import"./createRequset.56e9fc42.js";import"./isBeyondTime.ab735625.js";const I=[{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"}],O=[{value:1,label:"\u7ACB\u5373\u6267\u884C",type:""},{value:2,label:"\u5EF6\u8FDF\u6267\u884C",type:"warning"}],U=[{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:i}){const n=O.find(({value:o})=>String(o)===String(i.exec_type));return B(F,{type:n.type||""},{default:()=>n.label||"--"})}},{prop:"status",label:"\u72B6\u6001",cellRenderer({row:i}){const n=I.find(({value:o})=>String(o)===String(i.status));return B(F,{type:n.type||""},{default:()=>n.label||"--"})}},{prop:"companyName",label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",minWidth:"155px"},{prop:"apply_name",label:"\u7533\u8BF7\u4EBA",minWidth:"80px"},{label:"\u64CD\u4F5C",fixed:"right",width:90,slot:"operation"}],j={columns:U,showTitle:!1,superUserNoAction:!1,apis:{httpList:k.list}},d="txxLiveSettle",q=w({__name:"business",setup(i){const{searchConfig:n}=$({sourceConfig:T,queryField:"companyNo"}),o=c(null),_=c(null),g=c(null),{hasPermissionWithCode:y}=z(d),E={pageSearchHook:()=>V(void 0,void 0,n)};async function S(r){const e=await k.delete_exec({id:r});e.code===1?o.value.onSearch():P.warning(e.message)}function D(){var e;const{companyNo:r}=o.value.getBasicParams();(e=g.value)==null||e.onDisplay(r)}return(r,e)=>{const C=s("el-button"),h=s("ElButton"),A=s("el-link"),M=s("el-popconfirm"),N=s("page-container"),W=s("page-auth");return m(),f(W,{"page-name":d,all:!1},{default:u(()=>[a(N,{"search-config":l(n),hooks:E,"page-name":d,"get-content-ref":t=>o.value=t,"content-config":l(j),lockKey:"companyNo"},{content_header:u(()=>[a(C,{type:"",size:"mini",onClick:e[0]||(e[0]=t=>{var p;return(p=_.value)==null?void 0:p.onDisplay({})})},{default:u(()=>[x("\u67E5\u770B\u6267\u884C\u7C7B\u578B\u8BF4\u660E")]),_:1}),a(C,{type:"primary",size:"mini",onClick:D},{default:u(()=>[x("\u6DFB\u52A0")]),_:1})]),content_action:u(t=>[String(t.status)==="2"&&l(y)("19")?(m(),f(A,{key:0,href:t.down_url,target:"_blank",underline:!1},{default:u(()=>[a(h,{link:"",size:"small",type:"primary",icon:l(b)("download-line")},null,8,["icon"])]),_:2},1032,["href"])):v("v-if",!0),l(y)("17")&&(String(t.status)==="3"||String(t.status)==="1")?(m(),f(M,{key:1,title:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u6761\u8BB0\u5F55?",onConfirm:p=>S(t.id)},{reference:u(()=>[a(h,{link:"",size:"small",type:"primary",icon:l(b)("delete")},null,8,["icon"])]),_:2},1032,["onConfirm"])):v("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"]),a(L,{"is-business":!0,ref_key:"demandModifyModal",ref:g,onRefresh:e[1]||(e[1]=t=>o.value.onSearch())},null,512),a(H,{ref_key:"execModalRef",ref:_},null,512)]),_:1})}}});var ne=R(q,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/subscribe/txxLiveSettle/components/business.vue"]]);export{ne as default};