1 |
- import{Z as b,cm as F,_ as W,d as w,m as c,cT as T,r as s,o as m,A as d,x as u,h as a,u as l,H as B,D as v,a as x,cc as z}from"./index.a6923b8e.js";import{s as P}from"./search.config.0ff2065a.js";import{a as E,D as V}from"./demand-modify-modal.89ea7a87.js";import{u as $}from"./use-page-search.4b169098.js";import"./lodash.d4f119ac.js";import{u as H}from"./useBusinessQuery.d374ae3c.js";import I from"./exec-modal.305c2709.js";import"./createRequset.548d50db.js";import"./isBeyondTime.a205b508.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"}],U=[{value:1,label:"\u7ACB\u5373\u6267\u884C",type:""},{value:2,label:"\u5EF6\u8FDF\u6267\u884C",type:"warning"}],j=[{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=U.find(({value:t})=>String(t)===String(i.exec_type));return b(F,{type:n.type||""},{default:()=>n.label||"--"})}},{prop:"status",label:"\u72B6\u6001",cellRenderer({row:i}){const n=O.find(({value:t})=>String(t)===String(i.status));return b(F,{type:n.type||""},{default:()=>n.label||"--"})}},{prop:"departName",label:"\u90E8\u95E8\u540D\u79F0",minWidth:"155px"},{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"}],q={columns:j,showTitle:!1,superUserNoAction:!1,apis:{httpList:E.list}},f="salesReturnSubscribe",K=w({__name:"business",setup(i){const{searchConfig:n}=H({sourceConfig:P,queryField:"companyNo"}),t=c(null),_=c(null),y=c(null),{hasPermissionWithCode:g}=T(f),k={pageSearchHook:()=>$(void 0,void 0,n)};async function D(r){const e=await E.delete_exec({id:r});e.code===1?t.value.onSearch():z.warning(e.message)}function S(){var e;const{companyNo:r}=t.value.getBasicParams();(e=y.value)==null||e.onDisplay(r)}return(r,e)=>{const h=s("el-button"),C=s("ElButton"),A=s("el-link"),M=s("el-popconfirm"),N=s("page-container"),R=s("page-auth");return m(),d(R,{"page-name":f},{default:u(()=>[a(N,{"search-config":l(n),hooks:k,"page-name":f,"get-content-ref":o=>t.value=o,"content-config":l(q),lockKey:"companyNo"},{content_header:u(()=>[a(h,{type:"",size:"mini",onClick:e[0]||(e[0]=o=>{var p;return(p=_.value)==null?void 0:p.onDisplay({})})},{default:u(()=>[B("\u67E5\u770B\u6267\u884C\u7C7B\u578B\u8BF4\u660E")]),_:1}),a(h,{type:"primary",size:"mini",onClick:S},{default:u(()=>[B("\u6DFB\u52A0")]),_:1})]),content_action:u(o=>[String(o.status)==="2"&&l(g)("19")?(m(),d(A,{key:0,href:o.down_url,target:"_blank",underline:!1},{default:u(()=>[a(C,{link:"",size:"small",type:"primary",icon:l(v)("download-line")},null,8,["icon"])]),_:2},1032,["href"])):x("v-if",!0),l(g)("17")&&String(o.status)==="3"?(m(),d(M,{key:1,title:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u6761\u8BB0\u5F55?",onConfirm:p=>D(o.id)},{reference:u(()=>[a(C,{link:"",size:"small",type:"primary",icon:l(v)("delete")},null,8,["icon"])]),_:2},1032,["onConfirm"])):x("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"]),a(V,{"is-business":!0,ref_key:"demandModifyModal",ref:y,onRefresh:e[1]||(e[1]=o=>t.value.onSearch())},null,512),a(I,{ref_key:"execModalRef",ref:_},null,512)]),_:1})}}});var te=W(K,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/subscribe/salesReturnSubscribe/components/business.vue"]]);export{te as default};
|