import{b as s,T as d,a as u}from"./index-434d719f.js";import{f as m,ai as _,a4 as y}from"./index-ba596ae9.js";import{_ as b}from"./popupForm.vue_vue_type_script_setup_true_lang-25f76ec5.js";import{h as p,y as q,B as v,p as n,l as f,k as o,M as h,a4 as I,q as t,t as A,as as g}from"./vue-a39e6937.js";import"./controllerUrls-941681c3.js";import"./index-7e56a0fa.js";import"./index-f0d8af94.js";import"./validate-4ecec794.js";const k={class:"default-main ba-table-box"},E=p({name:"reqInvoiceApply"}),C=p({...E,setup(z){const{t:e}=m(),l=q(),i=_(["edit","delete"]),r=new s(new y("/admin/ReqInvoiceApply/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("reqInvoiceApply.id"),prop:"id",align:"center",width:180,operator:"RANGE",sortable:"custom"},{label:e("reqInvoiceApply.req_order__sn"),prop:"reqOrder.sn",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("reqInvoiceApply.req_order__name"),prop:"reqOrder.name",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("reqInvoiceApply.req_order__req_corp"),prop:"reqOrder.req_corp",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("reqInvoiceApply.invoice_type"),prop:"invoice_type",align:"center",render:"tag",operator:"=",sortable:!1,replaceValue:{普通发票:e("reqInvoiceApply.invoice_type 普通发票"),专用发票:e("reqInvoiceApply.invoice_type 专用发票")}},{label:e("reqInvoiceApply.invoice_corp"),prop:"invoice_corp",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("reqInvoiceApply.invoice_corp_sn"),prop:"invoice_corp_sn",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("reqInvoiceApply.invoice_amount"),prop:"invoice_amount",align:"center",operator:"RANGE",sortable:!1},{label:e("reqInvoiceApply.status"),prop:"status",align:"center",render:"switch",operator:"=",sortable:!1,replaceValue:{"":e("reqInvoiceApply.status "),1:e("reqInvoiceApply.status 1")}},{label:e("reqInvoiceApply.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("reqInvoiceApply.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:{invoice_type:"普通发票",invoice_amount:0,status:"1"}});return g("baTable",r),v(()=>{var a;r.table.ref=l.value,r.mount(),(a=r.getIndex())==null||a.then(()=>{r.initSort(),r.dragSort()})}),(a,w)=>{const c=A("el-alert");return n(),f("div",k,[o(r).table.remark?(n(),h(c,{key:0,class:"ba-table-alert",title:o(r).table.remark,type:"info","show-icon":""},null,8,["title"])):I("",!0),t(d,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":o(e)("quick Search Placeholder",{fields:o(e)("reqInvoiceApply.quick Search Fields")})},null,8,["quick-search-placeholder"]),t(u,{ref_key:"tableRef",ref:l},null,512),t(b)])}}});export{C as default};