index-ba00d143.js 2.1 KB

1
  1. import{b as c,T as d,a as m}from"./index-434d719f.js";import{f as u,ai as b,a4 as f}from"./index-ba596ae9.js";import{_}from"./popupForm.vue_vue_type_script_setup_true_lang-5cc2cd55.js";import{h as i,y as h,B as y,p as s,l as k,k as r,M as G,a4 as g,q as o,t as q,as as w}from"./vue-a39e6937.js";import"./controllerUrls-941681c3.js";import"./index-7e56a0fa.js";import"./index-f0d8af94.js";import"./validate-4ecec794.js";const E={class:"default-main ba-table-box"},N=i({name:"supplierGrossprofit"}),I=i({...N,setup(S){const{t:e}=u(),l=h(),p=b(["edit","delete"]),t=new c(new f("/admin/SupplierGrossprofit/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("supplierGrossprofit.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("supplierGrossprofit.supplier__name"),prop:"supplier.name",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("supplierGrossprofit.ratio"),prop:"ratio",align:"center",operator:"RANGE",sortable:!1},{label:e("supplierGrossprofit.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("supplierGrossprofit.update_time"),prop:"update_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("operate"),align:"center",width:100,render:"buttons",buttons:p,operator:!1}],dblClickNotEditColumn:[void 0]},{defaultItems:{ratio:0}});return w("baTable",t),y(()=>{var a;t.table.ref=l.value,t.mount(),(a=t.getIndex())==null||a.then(()=>{t.initSort(),t.dragSort()})}),(a,T)=>{const n=q("el-alert");return s(),k("div",E,[r(t).table.remark?(s(),G(n,{key:0,class:"ba-table-alert",title:r(t).table.remark,type:"info","show-icon":""},null,8,["title"])):g("",!0),o(d,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":r(e)("quick Search Placeholder",{fields:r(e)("supplierGrossprofit.quick Search Fields")})},null,8,["quick-search-placeholder"]),o(m,{ref_key:"tableRef",ref:l},null,512),o(_)])}}});export{I as default};