import{u as v,_ as C}from"./use-page-search.43bc5391.js";import{P as h}from"./page-content.ac155fae.js";import{h as b}from"./index.bebfbdc5.js";import{ah as D,bo as y,aM as r,_ as E,q as g,B as A,o as k,n as P,t as n,v as l}from"./index.7a111e62.js";import x from"./invoice-dialog.6a760a91.js";import"./hooks.f4063c52.js";import"./index.3ac3c8f0.js";import"./responseHandle.6edfaed2.js";import"./use-response-handle.f995d678.js";const s=[{label:"\u624B\u5DE5\u6DFB\u52A0",value:"1"},{label:"orc\u8BC6\u522B",value:"2"}],p=[{label:"\u4E0A\u4F20\u53D1\u7968",value:"0"},{label:"\u5F85\u8BC6\u522B\u9A8C\u8BC1",value:"1"},{label:"\u5F85\u6821\u9A8C\u8BC6\u522B",value:"2"},{label:"\u5F85\u8D22\u52A1\u5BA1\u6838",value:"3"},{label:"\u8BA4\u8BC1\u6210\u529F\u5F85\u786E\u8BA4\u5B8C\u6210",value:"7"},{label:"\u56DE\u7968\u5B8C\u6210",value:"8"},{label:"\u8BC6\u522B\u5931\u8D25",value:"9"},{label:"\u9A8C\u8BC1\u5931\u8D25",value:"10"},{label:"\u8D22\u52A1\u9A73\u56DE",value:"11"},{label:"\u8BA4\u8BC1\u5931\u8D25",value:"12"}],R={formItems:[{field:"invoiceType",type:"input",placeholder:"\u53D1\u7968\u7C7B\u578B"},{field:"invNumber",type:"input",placeholder:"\u53D1\u7968\u53F7\u7801"},{field:"open_timer",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u5F00\u7968\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u5F00\u7968\u7ED3\u675F\u65F6\u95F4"}},{field:"invType",type:"select",placeholder:"\u8BF7\u9009\u62E9\u5F55\u5165\u65B9\u5F0F",options:s},{field:"start_timer",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u5F55\u5165\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u5F55\u5165\u7ED3\u675F\u65F6\u95F4"}},{field:"apply_name",type:"input",placeholder:"\u8BF7\u8F93\u5165\u5F55\u5165\u4EBA"},{field:"status",placeholder:"\u8BF7\u9009\u62E9\u53D1\u7968\u72B6\u6001",type:"select",options:p}]},Y=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"id",prop:"id"},{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoiceType"},{label:"\u53D1\u7968\u53F7\u7801",prop:"invoiceNumber"},{label:"\u5F55\u5165\u65B9\u5F0F",prop:"invType",formatter:({invType:e})=>{var u;return(u=s.find(t=>t.value===e))==null?void 0:u.label}},{label:"\u5F55\u5165\u4EBA",prop:"apply_name"},{label:"\u53D1\u7968\u72B6\u6001",prop:"status",cellRenderer:({row:e,props:u})=>D(y,{size:u.size},{default:()=>{var t;return(t=p.find(o=>e.status===o.value))==null?void 0:t.label}})},{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time",formatter:({open_time:e})=>r(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",formatter:({createTime:e})=>r(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:60,slot:"operation"}],T={title:"\u4F01\u4E1A\u5BA2\u6237",columns:Y,apis:{httpList:b},powers:["001","002","003","004","005","006","007","008"]};const w={class:"main role"},I={name:"inputInvoice"},M=g({...I,setup(e){const u=A(null);function t({open_timer:a,start_timer:i}){const[F,m]=a,[B,_]=i;return{result:{open_start:F,open_end:m,start:B,end:_},deleteProps:["open_timer","start_timer"]}}const{pageContentRef:o,handleResetClick:c,handleSearchClick:d}=v(t);function f(a){u.value.onDisplay(a)}return(a,i)=>(k(),P("div",w,[n(l(C),{"form-config":l(R),onSearchBtnClick:l(d),onResetBtnClick:l(c)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),n(l(h),{ref_key:"pageContentRef",ref:o,"content-config":l(T),onPreviewBtnClick:f},null,8,["content-config"]),n(x,{ref_key:"invoiceDialogRef",ref:u},null,512)]))}});var G=E(M,[["__scopeId","data-v-7e547b12"]]);export{G as default};
