var S=Object.defineProperty;var y=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var b=(e,a,t)=>a in e?S(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,C=(e,a)=>{for(var t in a||(a={}))Y.call(a,t)&&b(e,t,a[t]);if(y)for(var t of y(a))j.call(a,t)&&b(e,t,a[t]);return e};var I=(e,a,t)=>new Promise((g,s)=>{var i=o=>{try{d(t.next(o))}catch(r){s(r)}},n=o=>{try{d(t.throw(o))}catch(r){s(r)}},d=o=>o.done?g(o.value):Promise.resolve(o.value).then(i,n);d((t=t.apply(e,a)).next())});import{u as v,f as A,g as B}from"./index-2a45336b.js";import{a as m,b as p,o as k,c as E,w as u,e as w,u as _,k as z,G as H,d as M,i as O}from"./ant-design-vue-710243d9.js";import"./system-a01e8b88.js";import{u as V}from"./usePagination-7442a465.js";import"./tinymce-3184e0f1.js";import"./echarts-ca5d9323.js";import"./cropper-47c8e461.js";import"./lodash-es-7cb071db.js";import"./qrcode-bec2257a.js";import"./jschardet-bd496279.js";const F={key:0},$=Object.assign({name:"productExChange"},{__name:"index",setup(e){m(""),m(""),m(!1),v();const a=[{title:"案场名称",dataIndex:"companyName"},{title:"客户名称",dataIndex:"customerName"},{title:"产品名称",dataIndex:"productName"},{title:"创建时间",dataIndex:"createdAt",width:180,align:"center"}],{listData:t,loading:g,showLoading:s,hideLoading:i,paginationState:n,resetPagination:d,searchFormData:o}=V();m(),r();function r(){return I(this,null,function*(){try{s();const{pageSize:c,current:l}=n,{success:f,data:h,total:x}=yield A.companyProductOrders.getProjectList(C({pageSize:c,current:l},o.value)).catch(()=>{throw new Error});i(),B("http.code.success")===f&&(t.value=h,n.total=x)}catch(c){i()}})}function D({current:c,pageSize:l}){n.current=c,n.pageSize=l,r()}return(c,l)=>{const f=p("a-table"),h=p("a-card"),x=p("a-col"),N=p("a-row");return k(),E(N,{gutter:8,wrap:!1},{default:u(()=>[w(x,{flex:"auto"},{default:u(()=>[w(h,{type:"flex"},{default:u(()=>[w(f,{columns:a,"data-source":_(t),bordered:"true",loading:_(g),pagination:_(n),scroll:{x:1e3},onChange:D},{bodyCell:u(({column:P,record:L})=>[P.dataIndex==="createdAt"?(k(),z("span",F,H(_(M)(L.createdAt).format("YYYY-MM-DD HH:mm:ss")),1)):O("",!0)]),_:1},8,["data-source","loading","pagination"])]),_:1})]),_:1})]),_:1})}}});export{$ as default};
