2 lines
4.4 KiB
JavaScript
2 lines
4.4 KiB
JavaScript
import{y as V,A as j,B as N,C as P,D as $}from"./element-plus.258bf9e7.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{P as S}from"./index.9492d03b.js";import{a as T}from"./custom.13e75d58.js";import{d as E,s as b,a0 as p,o as _,c,V as t,M as e,T as s,U as n,a as m,W as L,a8 as M}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as U}from"./index.ec401e3b.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const W={class:"detail-popup"},q={style:{"margin-left":"5px",display:"block"}},z=["href"],G=["onClick"],H=E({name:"customdetail"}),J=E({...H,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(v,{expose:y,emit:x}){const F=b(),i=b(),d=p([]);p({provinceOptions:[],cityOptions:[],areaOptions:[]});const a=p({}),f=async l=>{if(Object.assign(a,l),l.return_desc&&l.return_desc.length>0){const r=l.return_desc.map((o,u)=>({name:`\u6587\u4EF6${u+1}`,uri:o}));Object.assign(d,r)}},C=async l=>{const r=await T({id:l.id});f(r)},g=async()=>{var l;(l=i.value)==null||l.close()},h=()=>{var l;console.log("1111111"),(l=i.value)==null||l.open()},B=()=>{x("close")};return y({open:h,setFormData:f,getDetail:C}),(l,r)=>{const o=V,u=j,k=I,w=N,A=P,O=$;return _(),c("div",W,[t(S,{ref_key:"popupRef",ref:i,title:"\u884C\u653F\u6536\u7968\u8BE6\u60C5",async:!0,width:"80%",onConfirm:g,onClose:B},{default:e(()=>[t(O,{ref_key:"formRef",ref:F,model:a,"label-width":"160px"},{default:e(()=>[t(A,{class:"mb-2"},{default:e(()=>[t(w,null,{default:e(()=>[t(u,{span:12},{default:e(()=>[t(o,{label:"\u5408\u540C\u7F16\u53F7"},{default:e(()=>[s(n(a.contract?a.contract.contract_no:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u5408\u540C\u540D\u79F0"},{default:e(()=>[s(n(a.contract?a.contract.contract_name:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u5F00\u7968\u65E5\u671F"},{default:e(()=>[s(n(a.invoicing_date),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u63D0\u4EA4\u4EBA"},{default:e(()=>[s(n(a.commitor),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u91D1\u989D\u5927\u5199"},{default:e(()=>[s(n(a.amount_daxie),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u53D1\u7968\u7C7B\u578B"},{default:e(()=>[t(k,{options:v.dictData.invoice_type,value:a.invoice_type},null,8,["options","value"])]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u53D1\u7968\u7F16\u53F7"},{default:e(()=>[s(n(a.invoice_sn),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u53D1\u7968\u91D1\u989D"},{default:e(()=>[s(n(a.invoice_amount),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u53D1\u7968\u7A0E\u7387"},{default:e(()=>[s(n(a.invoice_tax_rate),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u7A0E\u989D"},{default:e(()=>[s(n(a.tax),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u4E0D\u542B\u7A0E\u91D1\u989D"},{default:e(()=>[s(n(a.amount_excluding_tax),1)]),_:1})]),_:1}),t(u,{span:12},{default:e(()=>[t(o,{label:"\u6536\u7968\u65E5\u671F"},{default:e(()=>[s(n(a.receipt_date),1)]),_:1})]),_:1}),t(u,{span:24},{default:e(()=>[t(o,{label:"\u9644\u4EF6"},{default:e(()=>[m("div",null,[(_(!0),c(L,null,M(d,(D,R)=>(_(),c("div",q,[m("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:D.uri,target:"_blank"},n(D.name),9,z),m("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:K=>l.delFileFn(R)},"x",8,G)]))),256))])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const Vt=U(J,[["__scopeId","data-v-16594806"]]);export{Vt as default};
|