2025-03-20 10:25:32 +08:00

2 lines
5.1 KiB
JavaScript

import{a0 as B,a1 as E,L as C,M as x,N as w}from"./element-plus.2acb577d.js";import{_ as y}from"./index.vue_vue_type_script_setup_true_lang.61cb6e34.js";import{P as k}from"./index.f292cd50.js";import{e as A}from"./oa_financial.d5633b25.js";import{d as c,s as h,Z as L,r as N,o as d,c as R,U as e,L as l,R as u,S as i,u as a,K as I,Q as P}from"./@vue.821a47ec.js";import{d as T}from"./index.81df6f20.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.6bfd3540.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";const V={class:"detail-popup"},S=c({name:"customdetail"}),j=c({...S,emits:["close"],setup(K,{expose:b,emit:M}){const p=h(),t=L({id:0,extends:{}}),g=async r=>{for(const n in r)r[n]!=null&&r[n]!=null&&(t[n]=r[n]);D()},F=()=>{var r;(r=p.value)==null||r.open()},m=N([]),D=async()=>{let r=await await A({invoice_id:t.id});m.value=r};return b({open:F,setFormData:g}),(r,n)=>{const o=B,f=E,_=C,s=x,v=w;return d(),R("div",V,[e(k,{ref_key:"popupRef",ref:p,showFootBtn:!1,title:"\u5BA1\u6279\u8BE6\u60C5",async:!0,width:"60vw"},{default:l(()=>[e(_,null,{header:l(()=>n[0]||(n[0]=[u("\u5BA1\u6279\u5185\u5BB9")])),default:l(()=>[e(f,{column:3,border:""},{default:l(()=>[e(o,{label:"\u53D1\u7968\u91D1\u989D","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).amount),1)]),_:1}),e(o,{label:"\u62AC\u5934\u7C7B\u578B","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).type_text),1)]),_:1}),e(o,{label:"\u53D1\u7968\u4E3B\u4F53","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).invoice_subject),1)]),_:1}),e(o,{label:"\u53D1\u7968\u7C7B\u578B","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).invoice_type_text),1)]),_:1}),e(o,{label:"\u5F00\u7968\u62AC\u5934","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).invoice_title),1)]),_:1}),e(o,{label:"\u7535\u8BDD\u53F7\u7801","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).invoice_phone),1)]),_:1}),e(o,{label:"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).invoice_tax),1)]),_:1}),e(o,{label:"\u5F00\u6237\u94F6\u884C","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).invoice_bank),1)]),_:1}),e(o,{label:"\u94F6\u884C\u8D26\u53F7","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).invoice_account),1)]),_:1}),e(o,{label:"\u94F6\u884C\u8425\u4E1A\u7F51\u70B9","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).invoice_banking),1)]),_:1}),e(o,{label:"\u5730\u5740","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).invoice_address),1)]),_:1}),e(o,{label:"\u5F00\u7968\u4EBA","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).open_admin_name),1)]),_:1}),e(o,{label:"\u5907\u6CE8","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).remark),1)]),_:1}),e(o,{label:"\u9644\u4EF6","label-align":"left",align:"left"},{default:l(()=>[e(y,{annex:a(t).annex||[]},null,8,["annex"])]),_:1})]),_:1})]),_:1}),a(t).code?(d(),I(_,{key:0},{header:l(()=>n[1]||(n[1]=[u("\u5F00\u7968\u4FE1\u606F")])),default:l(()=>[e(f,{column:3,border:""},{default:l(()=>[e(o,{label:"\u53D1\u7968\u53F7\u7801","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).code),1)]),_:1}),e(o,{label:"\u5F00\u5177\u65F6\u95F4","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).open_time),1)]),_:1}),e(o,{label:"\u5FEB\u9012\u5355\u53F7","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).delivery),1)]),_:1})]),_:1})]),_:1})):P("",!0),e(_,null,{header:l(()=>n[2]||(n[2]=[u(" \u5230\u8D26\u4FE1\u606F ")])),default:l(()=>[e(f,{column:3,border:""},{default:l(()=>[e(o,{label:"\u5230\u8D26\u72B6\u6001","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).is_cash_text),1)]),_:1}),e(o,{label:"\u672A\u5230\u8D26\u91D1\u989D(\u5143)","label-align":"left",align:"left"},{default:l(()=>[u(i(+a(t).amount-+a(t).enter_amount),1)]),_:1}),e(o,{label:"\u5DF2\u5230\u8D26\u91D1\u989D(\u5143)","label-align":"left",align:"left"},{default:l(()=>[u(i(a(t).enter_amount),1)]),_:1})]),_:1}),e(v,{data:a(m)},{default:l(()=>[e(s,{label:"\u5230\u8D26\u91D1\u989D","show-overflow-tooltip":"",prop:"amount"}),e(s,{label:"\u5230\u8D26\u65E5\u671F","show-overflow-tooltip":"",prop:"enter_time"}),e(s,{label:"\u5907\u6CE8\u4FE1\u606F","show-overflow-tooltip":"",prop:"remarks"})]),_:1},8,["data"])]),_:1})]),_:1},512)])}}});const Be=T(j,[["__scopeId","data-v-ceb2a119"]]);export{Be as default};