index-b8eb878a.js 2.9 KB

1
  1. import{b as u,T as c,a as d}from"./index-434d719f.js";import{f as m,ai as b,a4 as f}from"./index-ba596ae9.js";import{_ as h}from"./popupForm.vue_vue_type_script_setup_true_lang-d7b79326.js";import{h as s,y,B as _,p,l as g,k as t,M as k,a4 as v,q as l,t as q,as as E}from"./vue-a39e6937.js";import"./controllerUrls-941681c3.js";import"./index-7e56a0fa.js";import"./index-f0d8af94.js";import"./validate-4ecec794.js";const w={class:"default-main ba-table-box"},z=s({name:"supplier"}),V=s({...z,setup(F){const{t:e}=m(),o=y(),i=b(["edit","delete"]),a=new u(new f("/admin/Supplier/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("supplier.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("supplier.name"),prop:"name",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("supplier.type"),prop:"type",align:"center",render:"tag",operator:"=",sortable:!1,replaceValue:{会务公司:e("supplier.type 会务公司"),供应商:e("supplier.type 供应商")}},{label:e("supplier.level"),prop:"level",align:"center",render:"tag",operator:"=",sortable:!1,replaceValue:{一级:e("supplier.level 一级"),二级:e("supplier.level 二级"),三级:e("supplier.level 三级")}},{label:e("supplier.contacts"),prop:"contacts",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("supplier.tel"),prop:"tel",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("supplier.status"),prop:"status",align:"center",render:"switch",operator:"=",sortable:!1,replaceValue:{0:e("supplier.status 0"),1:e("supplier.status 1")}},{label:e("supplier.admin__username"),prop:"admin.username",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("supplier.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("supplier.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:i,operator:!1}],dblClickNotEditColumn:[void 0,"status"]},{defaultItems:{type:"会务公司",level:"一级",status:"1"}});return E("baTable",a),_(()=>{var r;a.table.ref=o.value,a.mount(),(r=a.getIndex())==null||r.then(()=>{a.initSort(),a.dragSort()})}),(r,I)=>{const n=q("el-alert");return p(),g("div",w,[t(a).table.remark?(p(),k(n,{key:0,class:"ba-table-alert",title:t(a).table.remark,type:"info","show-icon":""},null,8,["title"])):v("",!0),l(c,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":t(e)("quick Search Placeholder",{fields:t(e)("supplier.quick Search Fields")})},null,8,["quick-search-placeholder"]),l(d,{ref_key:"tableRef",ref:o},null,512),l(h)])}}});export{V as default};