import{d$ as P,cA as R,af as n,dc as m,ce as a,ej as S,db as y,e7 as N,e8 as V,_ as L,d as O,n as i,k as T,r as s,o as _,A as v,y as F,i as p,a as I,e as U,h as $,H as j,cC as H}from"./index.js";const M=[{value:"1",label:"\u91D1\u7A0E\u5F00\u7968\u91D1\u7A0E\u9A8C\u7968"},{value:"2",label:"\u91D1\u7A0E\u5F00\u7968\u7EBF\u4E0B\u9A8C\u7968"},{value:"3",label:"\u7EBF\u4E0B\u5F00\u7968\u7EBF\u4E0B\u9A8C\u7968"}],q=[{type:"selection",width:40,align:"center",fixed:"left"},{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801",prop:"invNo",width:150},{label:"\u4E1A\u52A1\u4F01\u4E1A\u516C\u53F8",prop:"inv_out",width:180,...R("inv_out","inv_company","\u4E1A\u52A1\u4F01\u4E1A\u516C\u53F8\u7F16\u7801:")},{label:"\u5BA2\u6237\u516C\u53F8\u540D\u79F0",prop:"buyer_title",width:175},{label:"\u7533\u8BF7\u989D\u5EA6",prop:"inv_value",width:110},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u5E73\u53F0\u7C7B\u578B",prop:"platform_type",width:110,cellRenderer:({row:e})=>n(a,null,{default:()=>{var u;return((u=m.find(t=>t.value==e.platform_type+""))==null?void 0:u.label)||"--"}})},{label:"\u662F\u5426\u6709\u5907\u6CE8",width:80,cellRenderer:({row:e})=>n(a,null,{default:()=>e.exam_remark&&e.exam_remark.length>0?"\u662F":"\u5426"})},{label:"\u72B6\u6001",prop:"status",width:125,cellRenderer:({row:e})=>n(a,null,{default:()=>{var u;return((u=S.find(t=>t.value==e.status+""))==null?void 0:u.label)||"--"}})},{label:"\u5F00\u7968\u65B9\u5F0F",prop:"open_type",width:135,cellRenderer:({row:e})=>n(a,null,{default:()=>{var u;return((u=M.find(t=>t.value==e.open_type+""))==null?void 0:u.label)||"\u672A\u9009\u62E9"}})},{field:"is_ticket",label:"\u662F\u5426\u652F\u6301\u91D1\u7A0E",width:90,cellRenderer({row:e}){return n(a,null,{default:()=>String(e.is_ticket)==="2"?"\u4E0D\u652F\u6301":String(e.is_ticket)==="1"?"\u652F\u6301":"--"})}},{label:"\u53D1\u7968\u7C7B\u578B",prop:"status",width:150,cellRenderer:({row:e})=>n(a,null,{default:()=>{var u;return((u=y.find(t=>t.value==e.inv_type+""))==null?void 0:u.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:e})=>n(a,null,{default:()=>{var u;return((u=N.find(t=>t.value==e.seller_check+""))==null?void 0:u.label)||"--"}})},{label:"\u9500\u552E\u65B9\u62AC\u5934\u72B6\u6001",prop:"buyer_check",width:130,cellRenderer:({row:e})=>n(a,null,{default:()=>{var u;return((u=V.find(t=>t.value==e.buyer_check+""))==null?void 0:u.label)||"--"}})},{label:"\u521B\u5EFA\u65F6\u95F4",width:140,prop:"addtime"}],z={title:"\u53D1\u7968\u7533\u8BF7\u7BA1\u7406",columns:q,superUserNoAction:!0,companyProp:"inv_out",apis:{httpList:e=>P({...e,status:"4"}),httpAdd:!0}},h={colLayout:{span:8},formItems:[{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:"platform_type",type:"select",placeholder:"\u5E73\u53F0\u7C7B\u578B",options:m},{field:"buyer_name",type:"input",placeholder:"\u5BA2\u6237\u540D\u79F0"},{field:"invNo",type:"input",placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801"},{field:"inv_number",type:"input",placeholder:"\u53D1\u7968\u53F7\u7801"},{field:"c",type:"range",otherOptions:{startProp:"inv_lower",endProp:"inv_uper",startPlaceholder:"\u7533\u8BF7\u989D\u5EA6\u4E0A\u9650",endPlaceholder:"\u7533\u8BF7\u989D\u5EA6\u4E0B\u9650"}},{field:"inv_type",type:"select",placeholder:"\u53D1\u7968\u7C7B\u578B",options:y,span:4},{field:"apply_name",type:"input",placeholder:"\u7533\u8BF7\u4EBA",span:4}]},G={class:"absolute bottom-[48px] right-[32px]"},B="/InvoiceSales/invoiceApplyDetail",J=O({__name:"index",emits:["choose"],setup(e,{expose:u,emit:t}){const b=t,r=i(!1),E=i(null),{push:c}=T(),A=i([]),d=i([]),C={pageSearchHook:()=>H(void 0,void 0,h)},D={content:{preview:({invNo:f})=>c(`${B}?id=${f}`),create:()=>c(B)}};function g(){r.value=!1,b("choose",p(d.value[0]))}return u({onDisplay:()=>r.value=!0}),(f,l)=>{const k=s("PageContainer"),w=s("ElButton"),x=s("el-dialog");return _(),v(x,{class:"relative",top:"10px","close-on-click-modal":!1,"close-on-press-escape":!1,modelValue:r.value,"onUpdate:modelValue":l[2]||(l[2]=o=>r.value=o),title:"\u53D1\u7968\u5217\u8868",center:""},{default:F(()=>[r.value?(_(),v(k,{key:0,notice:!1,hooks:C,events:D,contentConfig:p(z),"search-config":p(h),"get-content-ref":o=>E.value=o,onContentSelectChange:[l[0]||(l[0]=o=>A.value=o),l[1]||(l[1]=o=>d.value=o)],"is-page-start":!0},null,8,["contentConfig","search-config","get-content-ref"])):I("v-if",!0),U("div",G,[$(w,{type:"primary",onClick:g},{default:F(()=>l[3]||(l[3]=[j(" \u4FDD\u5B58 ")])),_:1})])]),_:1},8,["modelValue"])}}});var Q=L(J,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/returnTicket/components/capital-modal/index.vue"]]);export{Q as default};
