index.e5b52a6a.js 4.3 KB

1
  1. import{aa as a,aF as i,aG as w,aW as h,_ as k,r as A,z as P,D as x,v as n,o as F,M as m,J as f,w as D,x as l,Q as N,T as R}from"./index.36f49050.js";import{c as T,d as M}from"./index.e1c51c1e.js";import{s as r,i as v,c as y}from"./_opitons.a6bd5c1c.js";import{u as Y}from"./use-page-search.16551458.js";import z from"./invoice-modal.4fe6b358.js";import"./index.73659ad3.js";import"./invoice.01edd781.js";import"./status.4f7e5409.js";const S=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u5BF9\u8D26\u56DE\u7968\u7533\u8BF7",prop:"hpNo",width:180},{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",width:180},{label:"\u72B6\u6001",prop:"status",width:160,transform:e=>{var t;return(t=r.find(u=>e===u.value))==null?void 0:t.label},cellRenderer:({row:e,props:t})=>a(i,{size:t.size},{default:()=>{var u;return(u=r.find(o=>e.status===o.value))==null?void 0:u.label}})},{label:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",prop:"invType",width:120,cellRenderer:({row:e,props:t})=>a(i,{size:t.size},{default:()=>{var u;return(u=v.find(o=>e.invType===o.value))==null?void 0:u.label}})},{label:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",width:120,cellRenderer:({row:e,props:t})=>a(i,{size:t.size},{default:()=>{var u;return(u=y.find(o=>e.checkApi===o.value))==null?void 0:u.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:85,cellRenderer:({row:e})=>a(w,{src:e.inv_img,style:{height:"20px"},previewSrcList:[e.inv_img],previewTeleported:!0})},{label:"\u53D1\u7968\u7A0E\u524D\u91D1\u989D",width:"110px",prop:"inv_subtotal_amount"},{label:"\u53D1\u7968\u7A0E\u540E\u91D1\u989D",width:"110px",prop:"total"},{label:"\u53D1\u7968\u53F7\u7801",width:110,prop:"invoiceNumber"},{label:"\u53D1\u7968\u4EE3\u7801",width:110,prop:"invoiceCode"},{label:"\u5F00\u7968\u65F6\u95F4",prop:"open_time",width:120,formatter:({open_time:e})=>e?h(e).format("YYYY-MM-DD"):""},{label:"\u53D1\u7968\u72B6\u6001",width:110,prop:"invStatus_cn"},{label:"\u53D1\u7968\u7C7B\u578B",width:110,prop:"invoiceType_cn"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:180,formatter:({addtime:e})=>h(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],O={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:S,apis:{httpDelete:T,httpList:M},deleteProp:"hpNo",delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",superUserNoAction:!0,showDelete:({status:e})=>Number(e)<=3},_={formItems:[{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:r},{field:"invType",type:"select",placeholder:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",options:v},{field:"checkApi",type:"select",placeholder:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",options:y},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"hpNo",type:"input",placeholder:"\u5BF9\u8D26\u7533\u8BF7\u7F16\u53F7"},{field:"apply_id",type:"input",placeholder:"\u7533\u8BF7\u4EBA"},{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u65B0\u5EFA\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u65B0\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"open_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"open_start",endProp:"open_end",startPlaceholder:"\u5F00\u7968\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u5F00\u7968\u7ED3\u675F\u65F6\u95F4"}}]},I=A({__name:"index",setup(e){const t="ticketReturn",u="/purchase/ticketReturnDetail",o=["3","4","5","6","9","10","12"],{push:p}=P(),s=x(null),B={pageSearchHook:()=>Y(void 0,void 0,_)},E={content:{preview:({hpNo:c})=>p(`${u}?id=${c}`),create:()=>p(u)}};return(c,H)=>{const b=n("ElButton"),g=n("PageContainer"),C=n("PageAuth");return F(),m(C,{pageName:t},{default:f(()=>[D(g,{hooks:B,events:E,contentConfig:l(O),"search-config":l(_)},{content_action:f(d=>[o.includes(String(d.status))?(F(),m(b,{key:0,link:"",type:"primary",icon:l(N)("scaletooriginal"),onClick:()=>s.value.onDisplay(d)},null,8,["icon","onClick"])):R("v-if",!0)]),_:1},8,["contentConfig","search-config"]),D(z,{ref_key:"invoiceModalRef",ref:s},null,512)]),_:1})}}});var W=k(I,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/ticketReturn/index.vue"]]);export{W as default};