import{aj as d,aF as m,ah as f,_,d as h,F,y as a,o as v,O as g,L as y,z as n,u as i}from"./index.573d0ceb.js";import{u as C}from"./use-page-search.acb71b18.js";import{h as D}from"./index.09a388ca.js";import{i as B,d as b}from"./status.ba3625fb.js";import A from"./invoice-modal.a543682a.js";import"./index.279546f3.js";import"./invoice.06319bbc.js";const P=[{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",prop:"invNo",minWidth:160},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"inv_out",minWidth:160},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"inv_company",minWidth:160},{prop:"buyer_title",label:"\u5BA2\u6237\u53D1\u7968\u62AC\u5934",minWidth:160},{label:"\u7A0E\u540E\u91D1\u989D",prop:"inv_value",width:110},{label:"\u53D1\u7968\u7C7B\u578B",width:150,cellRenderer({row:e}){const o=B.find(t=>t.value===String(e.inv_type));return d(m,null,{default:()=>o.label})}},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u7533\u8BF7\u65F6\u95F4",width:170,prop:"addtime",formatter:({addtime:e})=>e?f(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],w={title:"\u53D1\u7968\u516C\u6D77\u6C60",inv:!0,columns:P,apis:{httpList:D}},r={formItems:[{field:"invNo",type:"input",placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7"},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u7533\u8BF7\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7533\u8BF7\u7ED3\u675F\u65F6\u95F4"}},{field:"inv_type",type:"select",placeholder:"\u53D1\u7968\u7C7B\u578B",options:b}]},E=h({__name:"sale",setup(e){const o="query",t=F(null),l={pageSearchHook:()=>C(void 0,void 0,r)},s={content:{preview:({inv_number:u})=>t.value.onDisplay(u)}};return(u,k)=>{const p=a("PageContainer"),c=a("PageAuth");return v(),g(c,{pageName:o},{default:y(()=>[n(p,{hooks:l,events:s,contentConfig:i(w),"search-config":i(r)},null,8,["contentConfig","search-config"]),n(A,{ref_key:"invoiceModalRef",ref:t},null,512)]),_:1})}}});var H=_(E,[["__file","/Users/apple/Desktop/company-projects/accout-vue3-ui/src/views/invoice/query/components/sale.vue"]]);export{H as default};