| 1 |
- var p=(l,a,t)=>new Promise((i,n)=>{var m=e=>{try{o(t.next(e))}catch(s){n(s)}},c=e=>{try{o(t.throw(e))}catch(s){n(s)}},o=e=>e.done?i(e.value):Promise.resolve(e.value).then(m,c);o((t=t.apply(l,a)).next())});import{u as _,_ as f}from"./useTable-e37b46e3.js";import"./FormItem.vue_vue_type_script_lang-aa52e9e4.js";import{m as h}from"./index-8a812ca8.js";import{_ as g}from"./componentMap-8020b34e.js";import{u as x}from"./useForm-64bbd444.js";import{Q as F}from"./antd-f204cf77.js";import{d as b,f as v,Y as w,a6 as y,a7 as d,_ as C,l as u,u as r}from"./vue-b33f04cb.js";import{_ as R}from"./index.js";import"./useForm-b1e549d3.js";import"./index-c733fbf6.js";import"./useWindowSizeFn-e2b93e2a.js";import"./componentMap-5ed4f2d1.js";import"./uuid-31b8b5a4.js";import"./onMountedOrActivated-3a1cee4e.js";import"./sortable.esm-4ae27e0b.js";import"./useFormItem-1a9613e7.js";import"./useSortable-764357db.js";import"./download-7fff4f5c.js";import"./index-2f799b33.js";import"./copyTextToClipboard-2136d900.js";import"./index-2f695166.js";import"./index-fe06ec6c.js";import"./TextEditor-6383dadf.js";const I=[{title:"维修时间",dataIndex:"maintenanceTime",align:"left",width:160},{title:"内容",dataIndex:"repairContent",align:"left"},{title:"状态",dataIndex:"malfunctionStage",align:"left",width:160}],B=[{field:"searchDate",component:"RangePicker",componentProps:{getPopupContainer:()=>document.body}}],P={style:{display:"flex"}},S=b({__name:"index",setup(l){const a=v([]),[t,{getFieldsValue:i}]=x({schemas:B,autoSubmitOnEnter:!0,size:"large",rowProps:{gutter:16}}),[n,{reload:m}]=_({api:h,rowKey:"id",columns:I,striped:!1,showIndexColumn:!1,useSearchForm:!1,bordered:!1,beforeFetch:c});function c(){return a.value?a.value:[]}function o(){return p(this,null,function*(){a.value=i().searchDate,yield m()})}return(e,s)=>(w(),y(r(F),{title:"维修记录",class:"handover-card"},{extra:d(()=>[C("div",P,[u(r(g),{onRegister:r(t),onFieldValueChange:o,style:{width:"260px","margin-top":"3px"},class:"mr-2"},null,8,["onRegister"])])]),default:d(()=>[u(r(f),{onRegister:r(n)},null,8,["onRegister"])]),_:1}))}});const ee=R(S,[["__scopeId","data-v-85ab8874"]]);export{ee as default};
|