index.37897fb5.js 3.1 KB

1
  1. import{al as o,aO as n,_ as y,d as F,w as b,r as a,o as s,G as p,C as c,l as d,u as l,J as C,a as g}from"./index.0bc83371.js";import{u as k}from"./use-page-search.58c51153.js";import{c as w}from"./index.b39a4bf1.js";import{a as f}from"./inv-open.83dc6b1a.js";import{i as A,d as D,e as E,c as P}from"./status.d6b2a53d.js";import x from"./invoice-modal.44d2cede.js";import"./tootip.d8389d77.js";import"./index.b2229991.js";import"./invoice.f874e7b3.js";const N=[{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801",prop:"invNo",width:150},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u7801",prop:"inv_out",width:150},{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=f.find(u=>u.value==t.status+""))==null?void 0:e.label)||"--"}})},{label:"\u53D1\u7968\u7C7B\u578B",prop:"status",width: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:135,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:135,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:50,slot:"operation"}],R={title:"\u53D1\u7968\u7533\u8BF7\u7BA1\u7406",columns:N,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\u7801"},{field:"status",type:"select",placeholder:"\u72B6\u6001",span:4,options:f},{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=F({__name:"index",setup(t){const e=["4","6"],u="invoiceQuery",r=b(null),h={pageSearchHook:()=>k(void 0,void 0,_)};return(I,T)=>{const m=a("ElButton"),v=a("PageContainer"),B=a("PageAuth");return s(),p(B,{pageName:u},{default:c(()=>[d(v,{hooks:h,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(x,{ref_key:"invoiceModalRef",ref:r},null,512)]),_:1})}}});var J=y(S,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/invoiceQuery/index.vue"]]);export{J as default};