import{Z as C,cp as h,_ as R,d as W,d1 as w,m as c,cU as z,r as l,o as p,A as m,x as u,h as o,u as i,H as B,D as b,a as v,cc as P}from"./index.e80c366d.js";import{a as x,D as T}from"./demand-modify-modal.8d934327.js";import{u as U}from"./use-page-search.e3e95470.js";import I from"./exec-modal.27ca3d1b.js";import"./createRequset.60472412.js";const F={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",trigger:"change",options:[{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:"\u5F85\u6267\u884C",type:"info"},{value:2,label:"\u6267\u884C\u5B8C\u6210",type:"success"},{value:3,label:"\u6267\u884C\u5931\u8D25",type:"danger"}],H=[{value:1,label:"\u7ACB\u5373\u6267\u884C",type:""},{value:2,label:"\u5EF6\u8FDF\u6267\u884C",type:"warning"}],O=[{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:a}){const t=H.find(({value:s})=>String(s)===String(a.exec_type));return C(h,{type:t.type||""},{default:()=>t.label||"--"})}},{prop:"status",label:"\u72B6\u6001",cellRenderer({row:a}){const t=V.find(({value:s})=>String(s)===String(a.status));return C(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"}],$={columns:O,showTitle:!1,superUserNoAction:!1,apis:{httpList:(a={})=>x.list({...a,companyNo:"GS2302231125079621"})}},d="procurementCommission",j=W({__name:"business",setup(a){w();const t=c(null),s=c(null),f=c(null),{hasPermissionWithCode:_}=z(d),k={pageSearchHook:()=>U(void 0,void 0,F)};async function E(r){const n=await x.delete_exec({id:r});n.code===1?t.value.onSearch():P.warning(n.message)}function D(){var n;const{companyNo:r}=t.value.getBasicParams();(n=f.value)==null||n.onDisplay(r)}return(r,n)=>{const g=l("el-button"),y=l("ElButton"),S=l("el-link"),M=l("el-popconfirm"),A=l("page-container"),N=l("page-auth");return p(),m(N,{"page-name":d},{default:u(()=>[o(A,{"search-config":i(F),hooks:k,"page-name":d,"get-content-ref":e=>t.value=e,"content-config":i($)},{content_header:u(()=>{var e;return[o(g,{type:"",size:"mini",onClick:(e=s.value)==null?void 0:e.onDisplay},{default:u(()=>[B(" \u67E5\u770B\u6267\u884C\u7C7B\u578B\u8BF4\u660E ")]),_:1},8,["onClick"]),o(g,{type:"primary",size:"mini",onClick:D},{default:u(()=>[B(" \u6DFB\u52A0 ")]),_:1})]}),content_action:u(e=>[String(e.status)==="2"&&i(_)("19")?(p(),m(S,{key:0,href:e.down_url,target:"_blank",underline:!1},{default:u(()=>[o(y,{link:"",size:"small",type:"primary",icon:i(b)("download-line")},null,8,["icon"])]),_:2},1032,["href"])):v("v-if",!0),i(_)("17")&&(String(e.status)==="3"||String(e.status)==="1")?(p(),m(M,{key:1,title:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u6761\u8BB0\u5F55?",onConfirm:G=>E(e.id)},{reference:u(()=>[o(y,{link:"",size:"small",type:"primary",icon:i(b)("delete")},null,8,["icon"])]),_:2},1032,["onConfirm"])):v("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"]),o(T,{"is-business":!0,ref_key:"demandModifyModal",ref:f,onRefresh:n[0]||(n[0]=e=>t.value.onSearch())},null,512),o(I,{ref_key:"execModalRef",ref:s},null,512)]),_:1})}}});var Q=R(j,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/subscribe/procurementCommission/components/business.vue"]]);export{Q as default};
