import{aj as o,aL as n,_ as y,d as B,E as b,x as a,o as s,N as p,K as c,y as d,u as l,R as C,a as g}from"./index.743f0c80.js";import{u as k}from"./use-page-search.a895acdb.js";import{h as w}from"./index.8212cab4.js";import{I as h}from"./inv-open.a0819b58.js";import{i as A,a as D,b as E,x as P}from"./status.868e86c0.js";import N from"./invoice-modal.9c994951.js";import"./tootip.48acd346.js";import"./index.5fbf2896.js";import"./invoice.7fa18a6d.js";const x=[{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",prop:"invNo",width:155},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"inv_out",width:155},{label:"\u5BA2\u6237\u516C\u53F8\u540D\u79F0",prop:"buyer_title",width:175},{label:"\u7533\u8BF7\u989D\u5EA6",prop:"inv_value",width:110},{label:"\u72B6\u6001",prop:"status",width:125,cellRenderer:({row:t})=>o(n,null,{default:()=>{var e;return((e=h.find(u=>u.value==t.status+""))==null?void 0:e.label)||"--"}})},{label:"\u53D1\u7968\u7C7B\u578B",prop:"status",minWidth:160,cellRenderer:({row:t})=>o(n,null,{default:()=>{var e;return((e=A.find(u=>u.value==t.inv_type+""))==null?void 0:e.label)||"--"}})},{label:"\u53D1\u7968\u53F7\u7801",prop:"inv_number",width:130},{label:"\u53D1\u7968\u4EE3\u7801",prop:"inv_code",width:100},{label:"\u8D2D\u4E70\u65B9\u62AC\u5934\u72B6\u6001",prop:"seller_check",width:130,cellRenderer:({row:t})=>o(n,null,{default:()=>{var e;return((e=D.find(u=>u.value==t.seller_check+""))==null?void 0:e.label)||"--"}})},{label:"\u9500\u552E\u65B9\u62AC\u5934\u72B6\u6001",prop:"buyer_check",width:130,cellRenderer:({row:t})=>o(n,null,{default:()=>{var e;return((e=E.find(u=>u.value==t.buyer_check+""))==null?void 0:e.label)||"--"}})},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",width:140,prop:"addtime"},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],R={title:"\u53D1\u7968\u7533\u8BF7\u7BA1\u7406",columns:x,superUserNoAction:!0,companyProp:"inv_out",notPreview:!0,apis:{httpList:w,httpAdd:!0}},_={colLayout:{span:8},formItems:[{field:"invNo",type:"input",span:4,placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7"},{field:"status",type:"select",placeholder:"\u72B6\u6001",span:4,options:h},{field:"inv_type",type:"select",span:4,placeholder:"\u53D1\u7968\u7C7B\u578B",options:P},{field:"timer",type:"date_picker",span:4,otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u7533\u8BF7\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7533\u8BF7\u7ED3\u675F\u65F6\u95F4"}}]},S=B({__name:"sale",setup(t){const e=["4","6"],u="query",r=b(null),f={pageSearchHook:()=>k(void 0,void 0,_)};return(I,L)=>{const m=a("ElButton"),v=a("PageContainer"),F=a("PageAuth");return s(),p(F,{pageName:u},{default:c(()=>[d(v,{hooks:f,contentConfig:l(R),"search-config":l(_)},{content_action:c(i=>[e.includes(String(i.status))?(s(),p(m,{key:0,link:"",type:"primary",icon:l(C)("scaletooriginal"),onClick:()=>r.value.onDisplay(i.inv_number)},null,8,["icon","onClick"])):g("v-if",!0)]),_:1},8,["contentConfig","search-config"]),d(N,{ref_key:"invoiceModalRef",ref:r},null,512)]),_:1})}}});var W=y(S,[["__file","D:/work/accout-vue3-ui/src/views/invoice/query/components/sale.vue"]]);export{W as default};