business.83f9cf08.js 3.7 KB

1
  1. import{Z as C,cr as h,_ as R,d as W,cs as w,m as c,cp as z,r as l,o as p,A as m,x as o,h as u,u as i,H as B,D as b,a as v,ce as P}from"./index.56449854.js";import{a as x,D as T}from"./demand-modify-modal.1933fc21.js";import{u as I}from"./use-page-search.59eb5443.js";import U from"./exec-modal.4753a339.js";import"./createRequset.56e9fc42.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,No_companyNo:"GS2302231125079621"})}},d="procurementCommissionNo",j=W({__name:"business",setup(a){w();const t=c(null),s=c(null),f=c(null),{hasPermissionWithCode:_}=z(d),k={pageSearchHook:()=>I(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"),N=l("page-container"),A=l("page-auth");return p(),m(A,{"page-name":d},{default:o(()=>[u(N,{"search-config":i(F),hooks:k,"page-name":d,"get-content-ref":e=>t.value=e,"content-config":i($)},{content_header:o(()=>{var e;return[u(g,{type:"",size:"mini",onClick:(e=s.value)==null?void 0:e.onDisplay},{default:o(()=>[B(" \u67E5\u770B\u6267\u884C\u7C7B\u578B\u8BF4\u660E ")]),_:1},8,["onClick"]),u(g,{type:"primary",size:"mini",onClick:D},{default:o(()=>[B(" \u6DFB\u52A0 ")]),_:1})]}),content_action:o(e=>[String(e.status)==="2"&&i(_)("19")?(p(),m(S,{key:0,href:e.down_url,target:"_blank",underline:!1},{default:o(()=>[u(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:o(()=>[u(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"]),u(T,{"is-business":!0,ref_key:"demandModifyModal",ref:f,onRefresh:n[0]||(n[0]=e=>t.value.onSearch())},null,512),u(U,{ref_key:"execModalRef",ref:s},null,512)]),_:1})}}});var Q=R(j,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/subscribe/procurementCommissionNo/components/business.vue"]]);export{Q as default};