index.eaa670.js 4.9 KB

1
  1. import{cB as x,bb as P,am as l,bP as m,aR as a,cV as R,bO as b,cJ as S,cK as V,_ as N,d as L,x as s,p as O,r as i,o as v,G as h,D as F,m as p,a as T,h as I,l as U,M,bd as $}from"./index.js";const j=[{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"}],G=[{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,...P("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})=>l(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})=>l(a,null,{default:()=>e.exam_remark&&e.exam_remark.length>0?"\u662F":"\u5426"})},{label:"\u72B6\u6001",prop:"status",width:125,cellRenderer:({row:e})=>l(a,null,{default:()=>{var u;return((u=R.find(t=>t.value==e.status+""))==null?void 0:u.label)||"--"}})},{label:"\u5F00\u7968\u65B9\u5F0F",prop:"open_type",width:135,cellRenderer:({row:e})=>l(a,null,{default:()=>{var u;return((u=j.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 l(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})=>l(a,null,{default:()=>{var u;return((u=b.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})=>l(a,null,{default:()=>{var u;return((u=S.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})=>l(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"}],H={title:"\u53D1\u7968\u7533\u8BF7\u7BA1\u7406",columns:G,superUserNoAction:!0,companyProp:"inv_out",apis:{httpList:e=>x({...e,status:"4"}),httpAdd:!0}},B={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:b,span:4},{field:"apply_name",type:"input",placeholder:"\u7533\u8BF7\u4EBA",span:4}]},J={class:"absolute bottom-[48px] right-[32px]"},K=L({__name:"index",emits:["choose"],setup(e,{expose:u,emit:t}){const r=s(!1),c="/InvoiceSales/invoiceApplyDetail",y=s(null),{push:d}=O(),E=s([]),f=s([]),A={pageSearchHook:()=>$(void 0,void 0,B)},C={content:{preview:({invNo:_})=>d(`${c}?id=${_}`),create:()=>d(c)}};function D(){r.value=!1,t("choose",p(f.value[0]))}return u({onDisplay:()=>r.value=!0}),(_,o)=>{const g=i("PageContainer"),k=i("ElButton"),w=i("el-dialog");return v(),h(w,{class:"relative",top:"10px","close-on-click-modal":!1,"close-on-press-escape":!1,modelValue:r.value,"onUpdate:modelValue":o[2]||(o[2]=n=>r.value=n),title:"\u53D1\u7968\u5217\u8868",center:""},{default:F(()=>[r.value?(v(),h(g,{key:0,notice:!1,hooks:A,events:C,contentConfig:p(H),"search-config":p(B),"get-content-ref":n=>y.value=n,onContentSelectChange:[o[0]||(o[0]=n=>E.value=n),o[1]||(o[1]=n=>f.value=n)],"is-page-start":!0},null,8,["contentConfig","search-config","get-content-ref"])):T("v-if",!0),I("div",J,[U(k,{type:"primary",onClick:D},{default:F(()=>[M(" \u4FDD\u5B58 ")]),_:1})])]),_:1},8,["modelValue"])}}});var z=N(K,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/returnTicket/components/capital-modal/index.vue"]]);export{z as default};