index-626a16ca.js 2.9 KB

1
  1. import{b as c,T as u,a as d}from"./index-434d719f.js";import{f as m,ai as b,a4 as _}from"./index-ba596ae9.js";import{_ as f}from"./popupForm.vue_vue_type_script_setup_true_lang-f64a5bdb.js";import{h as s,y,B as h,p,l as S,k as t,M as g,a4 as k,q as a,t as q,as as z}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"},F=s({name:"supplierStore"}),C=s({...F,setup(I){const{t:e}=m(),l=y(),i=b(["edit","delete"]),r=new c(new _("/admin/SupplierStore/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("supplierStore.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("supplierStore.supplier__name"),prop:"supplier.name",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("supplierStore.store_name"),prop:"store_name",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("supplierStore.store_type"),prop:"store_type",align:"center",render:"tag",operator:"=",sortable:!1,replaceValue:{opt0:e("supplierStore.store_type opt0"),opt1:e("supplierStore.store_type opt1")}},{label:e("supplierStore.store_image"),prop:"store_image",align:"center",render:"image",operator:!1},{label:e("supplierStore.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("supplierStore.update_time"),prop:"update_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("supplierStore.store_contacts"),prop:"store_contacts",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("supplierStore.tel"),prop:"tel",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("supplierStore.position"),prop:"position",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("supplierStore.string"),prop:"string",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("operate"),align:"center",width:100,render:"buttons",buttons:i,operator:!1}],dblClickNotEditColumn:[void 0]},{defaultItems:{store_type:"opt0"}});return z("baTable",r),h(()=>{var o;r.table.ref=l.value,r.mount(),(o=r.getIndex())==null||o.then(()=>{r.initSort(),r.dragSort()})}),(o,w)=>{const n=q("el-alert");return p(),S("div",E,[t(r).table.remark?(p(),g(n,{key:0,class:"ba-table-alert",title:t(r).table.remark,type:"info","show-icon":""},null,8,["title"])):k("",!0),a(u,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":t(e)("quick Search Placeholder",{fields:t(e)("supplierStore.quick Search Fields")})},null,8,["quick-search-placeholder"]),a(d,{ref_key:"tableRef",ref:l},null,512),a(f)])}}});export{C as default};