1 |
- import{aj as o,aF 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.1417328f.js";import{u as k}from"./use-page-search.7e7b4728.js";import{c as A}from"./index.cc00443d.js";import{a as f}from"./inv-open.516190c3.js";import{i as D,e as E,f as w,d as P}from"./status.727086c1.js";import N from"./invoice-modal.9f672d88.js";import"./tootip.8c37fa8a.js";import"./index.68c806ba.js";import"./invoice.d2c04353.js";const R=[{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=f.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=D.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=E.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=w.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"}],x={title:"\u53D1\u7968\u7533\u8BF7\u7BA1\u7406",columns:R,superUserNoAction:!0,companyProp:"inv_out",notPreview:!0,apis:{httpList:A,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: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=B({__name:"sale",setup(t){const e=["4","6"],u="query",r=b(null),m={pageSearchHook:()=>k(void 0,void 0,_)};return(I,T)=>{const h=a("ElButton"),v=a("PageContainer"),F=a("PageAuth");return s(),p(F,{pageName:u},{default:c(()=>[d(v,{hooks:m,contentConfig:l(x),"search-config":l(_)},{content_action:c(i=>[e.includes(String(i.status))?(s(),p(h,{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","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/invoice/query/components/sale.vue"]]);export{W as default};
|