index.35eb49.js 1.9 KB

1
  1. import{al as m,a$ as v,_ as C,d as F,w as s,r as c,o as b,G as P,C as B,j as i,l}from"./index.js";import{h as E,a as A,M as S}from"./Modal.bc192d.js";import{u as x}from"./use-page-search.f7bc460e.js";import"./useTask.8a645393.js";const k=[{prop:"companyName",label:"\u4E1A\u52A1\u516C\u53F8"},{prop:"is_cgd",label:"\u72B6\u6001",cellRenderer:({row:e})=>m(v,{type:String(e.is_cgd)==="1"?"success":"danger"},{default:()=>String(e.is_cgd)==="1"?"\u542F\u7528":"\u7981\u7528"})},{prop:"apply_name",label:"\u521B\u5EFA\u4EBA"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4"},{prop:"\u64CD\u4F5C",label:"\u64CD\u4F5C",width:"80px",slot:"operation"}],y={title:"\u91C7\u8D2D\u5355\u4FEE\u6539\u8BBE\u7F6E",columns:k,statusListProp:"is_cgd",apis:{httpAdd:!0,httpStatus:({id:e,status:t}={})=>E({id:e,is_cgd:t}),httpList:(e={})=>{const{is_cgd:t,...a}=e;return A({is_cgd:t||"",...a})}}},D=[{value:"0",label:"\u7981\u7528"},{value:"1",label:"\u542F\u7528"}],p={formItems:[{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}},{field:"is_cgd",type:"select",options:D,placeholder:"\u72B6\u6001"}]},N=F({__name:"index",setup(e){const t="purchaseSetting",a=s(null),d=s(!1),o=s(!1);s({});const g={pageSearchHook:()=>x(void 0,void 0,p)},f={content:{create:()=>{d.value=!1,o.value=!0}}};return(w,u)=>{const _=c("PageContainer"),h=c("PageAuth");return b(),P(h,{pageName:t},{default:B(()=>{var r;return[i(_,{hooks:g,events:f,contentConfig:l(y),"search-config":l(p),"get-content-ref":n=>a.value=n},null,8,["contentConfig","search-config","get-content-ref"]),i(S,{visible:o.value,"onUpdate:visible":u[0]||(u[0]=n=>o.value=n),onRefresh:(r=a.value)==null?void 0:r.onSearch},null,8,["visible","onRefresh"])]}),_:1})}}});var O=C(N,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/serviceParam/purchaseSetting/index.vue"]]);export{O as default};