InvoiceShow-ea983e13.js 1.55 KB
var m=(f,o,r)=>new Promise((c,i)=>{var n=e=>{try{t(r.next(e))}catch(a){i(a)}},s=e=>{try{t(r.throw(e))}catch(a){i(a)}},t=e=>e.done?c(e.value):Promise.resolve(e.value).then(n,s);t((r=r.apply(f,o)).next())});import{d as h,k as _,a8 as p,_ as w,a9 as y,aa as l,f as d,ac as g,a0 as k,u,a1 as I,ad as B}from"./vue-5a35c3f5.js";import{b as C,B as x}from"./index-c1c2669a.js";import{w as S}from"./invoice-f64ec395.js";import{v as b}from"./pdfShow-13fe577e.js";import{_ as M}from"./index.js";import"./antd-6b087f69.js";import"./useWindowSizeFn-cc2fb57c.js";import"./order-eff5d778.js";import"./message-c4c6f446.js";const N=["onClick"],V=h({__name:"InvoiceShow",setup(f){_(),_();const o=_([]),[r,{closeModal:c}]=C(n=>m(this,null,function*(){o.value=[];const s=yield S({id:n.data.id});for(let t in s){const e=s[t],a=t;o.value.push({name:a,url:e})}}));function i(){return m(this,null,function*(){o.value=[],c()})}return(n,s)=>{const t=p("a-list-item-meta"),e=p("a-list-item"),a=p("a-list");return w(),y(u(x),B(n.$attrs,{onRegister:u(r),title:"生产科发票",width:"700px",bodyStyle:{height:"240px"},onOk:i}),{default:l(()=>[d(a,{"item-layout":"horizontal","data-source":o.value},{renderItem:l(({item:v})=>[d(e,null,{default:l(()=>[d(t,null,{title:l(()=>[g(' <a :href="item.url" target="_blank" rel="noopener noreferrer">{{ item.name }}</a> '),k("a",{onClick:O=>u(b)(v.url)},I(v.name),9,N)]),_:2},1024)]),_:2},1024)]),_:1},8,["data-source"])]),_:1},16,["onRegister"])}}}),F=M(V,[["__file","E:/allcode/erp/test7901/order-erp-front/src/views/project/finance/pay/InvoiceShow.vue"]]);export{F as default};