import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{u as t}from"./public.js?v=1753954525509";import{c as a}from"./site.js?v=1753954525509";import{u as s}from"./index225.js?v=1753954525509";import{a as i,_ as o}from"./index.vue_vue_type_script_setup_true_lang13.js?v=1753954525509";import{k as d,P as n,e as r,U as l,V as p,Q as m,a2 as u,W as _,X as c}from"./vue.js?v=1753954525509";import{a6 as f,m as x,h as j}from"./common.js?v=1753954525509";import{T as v}from"./page_layout.js?v=1753954525509";import{cA as P}from"./naive.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const y={class:"p-20px"},w={class:"w-180px"},b=d({__name:"expired",props:{data:{}},setup(d,{expose:b}){const{t:h}=n(),H=d,{rows:S}=H.data,g=s(),k=r({edate:null}),C=new Date;C.setHours(0,0,0,0);const M=e=>f(e,x(C,1)),R=async e=>{const t=k.edate?j(k.edate,"yyyy-MM-dd"):"0000-00-00";return await a({id:e.id,edate:t},!1)},T=()=>{g.setRefresh(!0),t({title:h("Site.PHP.index_71"),width:440,footer:!0,component:o,data:{title:h("Site.PHP.index_70"),data:S,status:"done",columns:[{key:"name",title:h("Site.TableRow.index_1"),ellipsis:{tooltip:{width:"trigger"}}}]}})};return b({onConfirm:({hide:e})=>{t({title:h("Site.PHP.index_70"),hideClose:!0,data:{title:h("Site.PHP.index_70"),api:R,data:S,callback:T},component:i}),e()}}),(t,a)=>{const s=v,i=P,o=e;return l(),p("div",y,[m(o,null,{default:u((()=>[m(i,{label:t.$t("Site.PHP.index_25"),"show-feedback":!1},{default:u((()=>[_("div",w,[m(s,{value:c(k).edate,"onUpdate:value":a[0]||(a[0]=e=>c(k).edate=e),type:"date",actions:null,"is-date-disabled":M},null,8,["value"])])])),_:1},8,["label"])])),_:1})])}}});export{b as default};
