import{u as v,_ as C}from"./use-page-search.f38b29a1.js";import{P as b}from"./page-content.6b548a2d.js";import{h}from"./index.81aab67e.js";import{ah as D,bf as y,aN as r,_ as E,q as A,B as g,o as k,n as P,t as n,v as t}from"./index.10c3f8e5.js";import x from"./invoice-dialog.0e73a545.js";import"./hooks.5f77ce90.js";import"./index.1c15f518.js";import"./responseHandle.3a46a31b.js";import"./use-response-handle.23bba72b.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:"\u5F85\u8BA4\u8BC1",value:"4"},{label:"\u8BA4\u8BC1\u6210\u529F\u5F85\u786E\u8BA4",value:"5"},{label:"\u56DE\u7968\u5B8C\u6210",value:"6"},{label:"\u8BC6\u522B\u5931\u8D25",value:"7"},{label:"\u9A8C\u8BC1\u5931\u8D25",value:"8"},{label:"\u8D22\u52A1\u9A73\u56DE",value:"9"},{label:"\u8BA4\u8BC1\u5931\u8D25",value:"10"},{label:"\u6821\u9A8C\u8D85\u8FC7\u6B21\u6570\u7B2C\u4E8C\u5929\u6821\u9A8C",value:"11"},{label:"\u56DE\u7968\u7533\u8BF7\u5E9F\u5F03\u5DF2\u7ED3\u675F",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_cn"},{label:"\u53D1\u7968\u72B6\u6001",prop:"invStatus_cn"},{label:"\u53D1\u7968\u53F7\u7801",prop:"invoiceNumber"},{label:"\u5F55\u5165\u65B9\u5F0F",prop:"invType",formatter:({invType:e})=>{var u;return(u=s.find(l=>l.value===e))==null?void 0:u.label}},{label:"\u5F55\u5165\u4EBA",prop:"apply_name"},{label:"\u72B6\u6001",prop:"status",width:160,cellRenderer:({row:e,props:u})=>D(y,{size:u.size},{default:()=>{var l;return(l=p.find(o=>e.status===o.value))==null?void 0:l.label}})},{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time",formatter:({open_time:e})=>e?r(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",formatter:({addtime:e})=>r(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:60,slot:"operation"}],w={title:"\u4F01\u4E1A\u5BA2\u6237",columns:Y,apis:{httpList:h},powers:["001","002","003","004","005","006","007","008"]};const T={class:"main role"},I={name:"inputInvoice"},S=A({...I,setup(e){const u=g(null);function l({open_timer:a,start_timer:i}){const[B,f]=a,[_,m]=i;return{result:{open_start:B,open_end:f,start:_,end:m},deleteProps:["open_timer","start_timer"]}}const{pageContentRef:o,handleResetClick:c,handleSearchClick:d}=v(l);function F(a){u.value.onDisplay(a)}return(a,i)=>(k(),P("div",T,[n(t(C),{"form-config":t(R),onSearchBtnClick:t(d),onResetBtnClick:t(c)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),n(t(b),{ref_key:"pageContentRef",ref:o,"content-config":t(w),onPreviewBtnClick:F},null,8,["content-config"]),n(x,{ref_key:"invoiceDialogRef",ref:u},null,512)]))}});var G=E(S,[["__scopeId","data-v-7e547b12"]]);export{G as default};
