index.19892b.js 2.0 KB

1
  1. import{aT as _,ac as C,al as F,a$ as E,_ as P,d as A,w as o,r as p,o as B,G as b,C as y,j as x,l as i}from"./index.js";import{u as S}from"./use-page-search.51c33f9d.js";const{VITE_PROXY_DOMAIN_REAL:V,VITE_PROXY_USER_REAL:D}=C(),g=D+"/admin/",k=e=>_.request("post",`${g}companyCgd/list`,{data:e}),R=e=>_.request("post",`${g}companyCgd/update`,{data:e}),w=[{prop:"companyName",label:"\u4E1A\u52A1\u516C\u53F8"},{prop:"is_cgd",label:"\u72B6\u6001",cellRenderer:({row:e})=>F(E,{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"}],L={title:"\u91C7\u8D2D\u5355\u4FEE\u6539\u8BBE\u7F6E",columns:w,statusProp:"is_cgd",statusListProp:"is_cgd",apis:{httpStatus:R,httpList:(e={})=>{const{is_cgd:u,...n}=e;return k({is_cgd:u||"",...n})}}},N=[{value:"0",label:"\u7981\u7528"},{value:"1",label:"\u542F\u7528"}],d={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:N,placeholder:"\u72B6\u6001"}]},O=A({__name:"index",setup(e){const u="purchaseSetting",n=o(null),r=o(!1),c=o(!1),l=o({}),f={pageSearchHook:()=>S(void 0,void 0,d)},m={content:{create:()=>{r.value=!1,c.value=!0},preview:a=>{const{id:s,order_use:t}=a;l.value={id:s,order_use:t},r.value=!0,c.value=!0},update:a=>{const{id:s,order_use:t}=a;l.value={id:s,order_use:t},r.value=!1,c.value=!0}}};return(a,s)=>{const t=p("PageContainer"),h=p("PageAuth");return B(),b(h,{pageName:u},{default:y(()=>[x(t,{hooks:f,events:m,contentConfig:i(L),"search-config":i(d),"get-content-ref":v=>n.value=v},null,8,["contentConfig","search-config","get-content-ref"])]),_:1})}}});var $=P(O,[["__file","C:/Users/63107/Desktop/projects/purchase-vue3/src/views/serviceParam/purchaseSetting/index.vue"]]);export{$ as default};