import{Z as B,cp as h,_ as W,d as w,m as c,cU as N,r as l,o as m,A as d,x as o,h as u,u as i,H as F,D as v,a as b,cc as z}from"./index.aedafc85.js";import{s as x}from"./search.config.0b9ec04c.js";import{a as k,D as T}from"./demand-modify-modal.12f56d04.js";import{u as $}from"./use-page-search.76f1460d.js";import P from"./exec-modal.90dfdc5b.js";import"./isBeyondTime.caea2fbe.js";import"./createRequset.72613757.js";const U=[{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"}],V=[{value:1,label:"\u7ACB\u5373\u6267\u884C",type:""},{value:2,label:"\u5EF6\u8FDF\u6267\u884C",type:"warning"}],H=[{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 t=V.find(({value:a})=>String(a)===String(r.exec_type));return B(h,{type:t.type||""},{default:()=>t.label||"--"})}},{prop:"status",label:"\u72B6\u6001",cellRenderer({row:r}){const t=U.find(({value:a})=>String(a)===String(r.status));return B(h,{type:t.type||""},{default:()=>t.label||"--"})}},{prop:"apply_name",label:"\u7533\u8BF7\u4EBA",minWidth:"80px"},{label:"\u64CD\u4F5C",fixed:"right",width:90,slot:"operation"}],I={columns:H,showTitle:!1,superUserNoAction:!1,apis:{httpList:k.list}},f="supplierBusinessAnalysis",O=w({__name:"all",setup(r){const t=c(null),a=c(null),p=c(null),{hasPermissionWithCode:_}=N(f);async function E(g){const n=await k.delete_exec({id:g});n.code===1?p.value.onSearch():z.warning(n.message)}const D={pageSearchHook:()=>$(void 0,void 0,x)};return(g,n)=>{const y=l("el-button"),C=l("ElButton"),A=l("el-link"),S=l("el-popconfirm"),M=l("page-container"),R=l("page-auth");return m(),d(R,{"page-name":f},{default:o(()=>[u(M,{hooks:D,"page-name":f,"search-config":i(x),"get-content-ref":e=>p.value=e,"content-config":i(I)},{content_header:o(()=>[u(y,{type:"",size:"mini",onClick:n[0]||(n[0]=e=>{var s;return(s=a.value)==null?void 0:s.onDisplay({})})},{default:o(()=>[F(" \u67E5\u770B\u6267\u884C\u7C7B\u578B\u8BF4\u660E ")]),_:1}),u(y,{size:"mini",type:"primary",onClick:n[1]||(n[1]=e=>{var s;return(s=t.value)==null?void 0:s.onDisplay({})})},{default:o(()=>[F(" \u6DFB\u52A0 ")]),_:1})]),content_action:o(e=>[String(e.status)==="2"&&i(_)("10")?(m(),d(A,{key:0,href:e.down_url,target:"_blank",underline:!1},{default:o(()=>[u(C,{link:"",size:"small",type:"primary",icon:i(v)("download-line")},null,8,["icon"])]),_:2},1032,["href"])):b("v-if",!0),i(_)("8")&&(String(e.status)==="3"||String(e.status)==="1")?(m(),d(S,{key:1,title:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u6761\u8BB0\u5F55?",onConfirm:s=>E(e.id)},{reference:o(()=>[u(C,{link:"",size:"small",type:"primary",icon:i(v)("delete")},null,8,["icon"])]),_:2},1032,["onConfirm"])):b("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"]),u(T,{ref_key:"demandModifyModal",ref:t,onRefresh:n[2]||(n[2]=e=>p.value.onSearch())},null,512),u(P,{ref_key:"execModalRef",ref:a},null,512)]),_:1})}}});var Q=W(O,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/subscribe/supplierBusinessAnalysis/components/all.vue"]]);export{Q as default};
