lcny-vue3-antd-admin/dist/assets/week.de211fe8.js

2 lines
3.5 KiB
JavaScript

var v=Object.defineProperty,B=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?v(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,d=(o,t)=>{for(var e in t||(t={}))T.call(t,e)&&C(o,e,t[e]);if(b)for(var e of b(t))D.call(t,e)&&C(o,e,t[e]);return o},k=(o,t)=>B(o,S(t));var _=(o,t,e)=>new Promise((u,a)=>{var c=i=>{try{s(e.next(i))}catch(r){a(r)}},l=i=>{try{s(e.throw(i))}catch(r){a(r)}},s=i=>i.done?u(i.value):Promise.resolve(i.value).then(c,l);s((e=e.apply(o,t)).next())});import{J as E,a as R,aA as A,o as w,h as g,p,x as f,y as P,k as n,l as V,cs as x,eU as W,cG as Y,eV as N}from"./index.21245d29.js";import{u as U,B as j}from"./useTable.598e6d82.js";import{T as I}from"./useForm.03e51d9d.js";import{u as G}from"./index.d34d449a.js";import{P as J,c as K,s as q}from"./PriceDrawerWeek.dec99725.js";import"./index.84b29fc6.js";import"./Checkbox.fa82dd83.js";import"./index.cb97fa8e.js";import"./index.a5fd3b13.js";import"./index.88d51b37.js";import"./index.2186c0b9.js";import"./useSize.df065350.js";import"./eagerComputed.1dfbb3e2.js";import"./onMountedOrActivated.0cd1630d.js";import"./useWindowSizeFn.389f20ea.js";import"./useContentViewHeight.e4785cb8.js";import"./ArrowLeftOutlined.aa3dd46c.js";import"./transButton.07f5660f.js";import"./index.ff2d8b23.js";import"./index.51099b25.js";import"./index.2bca0958.js";import"./index.c67437d3.js";import"./dateUtil.86807b7c.js";import"./_baseMerge.34ff719d.js";import"./_isIterateeCall.3ecca9fb.js";import"./_baseEach.0ec73046.js";import"./get.f944b1eb.js";import"./index.4c544d4b.js";import"./FullscreenOutlined.a23b92ec.js";import"./index.edda2f3d.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.2e350c27.js";import"./index.f744e029.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.a27609ff.js";import"./scrollTo.ffa88bec.js";import"./index.448b1a59.js";import"./index.50d275a2.js";import"./index.4f80bdfb.js";import"./_baseIteratee.a1c01496.js";import"./index.08387011.js";import"./useRefs.36d901f9.js";import"./download.1d03fc45.js";import"./index.7288befa.js";import"./uniqBy.2fb0264d.js";import"./index.4e82faa8.js";const z={key:0,class:"flex items-center justify-center"},H=R({__name:"week",setup(o){const[t,{openDrawer:e}]=G(),[u,{reload:a}]=U({title:"\u7A3B\u867E\u4EF7\u683C - \u5217\u8868",api:r=>_(this,null,function*(){r.year&&(r.year=Y(r.year).format("YYYY"));const{data:h,meta:m}=yield N(d({},r));return{items:h,total:m==null?void 0:m.total}}),rowKey:"id",columns:K,formConfig:{labelWidth:120,schemas:q},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),c=()=>{x.success("\u64CD\u4F5C\u6210\u529F"),a()},l=()=>{e(!0,{isUpdate:!1})},s=r=>{e(!0,k(d({},r),{isUpdate:!0}))},i=r=>_(this,null,function*(){yield W(r.id),x.success("\u5220\u9664\u6210\u529F"),a()});return(r,h)=>{const m=A("a-button");return w(),g("div",null,[p(n(j),{onRegister:n(u)},{toolbar:f(()=>[p(m,{type:"primary",onClick:l},{default:f(()=>[P(" \u65B0\u589E ")]),_:1})]),bodyCell:f(({column:F,record:y})=>[F.key==="action"?(w(),g("div",z,[p(n(I),{actions:[{label:"\u7F16\u8F91",onClick:s.bind(null,y)},{label:"\u5220\u9664",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:i.bind(null,y)}}]},null,8,["actions"])])):V("",!0)]),_:1},8,["onRegister"]),p(J,{onRegister:n(t),onSuccess:c},null,8,["onRegister"])])}}});var Ie=E(H,[["__scopeId","data-v-7246c0fa"]]);export{Ie as default};