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