engineering/public/admin/assets/detail.a379316e.js
2024-03-04 15:04:21 +08:00

2 lines
4.2 KiB
JavaScript

import{y as A,A as N,B as O,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 C,a0 as f,s as b,o as r,c as p,V as t,M as e,T as s,U as u,W as L,a8 as M,a as y}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={key:0},z={style:{"margin-left":"5px",display:"block"}},G=["href"],H=["onClick"],J={key:1},K=C({name:"customdetail"}),Q=C({...K,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(D,{expose:h,emit:E}){const i=f([]),g=b(),_=b(),l=f({}),m=async a=>{if(Object.assign(l,a),a.annex&&a.annex.length>0){const c=a.annex.map((n,o)=>({name:`\u6587\u4EF6${o+1}`,uri:n}));Object.assign(i,c)}},x=async a=>{const c=await T({id:a.id});m(c)},F=async()=>{var a;(a=_.value)==null||a.close()},k=()=>{var a;console.log("1111111"),(a=_.value)==null||a.open()},v=()=>{E("close")};return h({open:k,setFormData:m,getDetail:x}),(a,c)=>{const n=A,o=N,B=I,w=O,R=P,V=$;return r(),p("div",W,[t(S,{ref_key:"popupRef",ref:_,title:"\u6C47\u7968\u5151\u73B0\u8BE6\u60C5",async:!0,width:"80%",onConfirm:F,onClose:v},{default:e(()=>[t(V,{ref_key:"formRef",ref:g,model:l,"label-width":"160px"},{default:e(()=>[t(R,{class:"mb-2"},{default:e(()=>[t(w,null,{default:e(()=>[t(o,{span:12},{default:e(()=>[t(n,{label:"\u7EC4\u7EC7\u540D\u79F0"},{default:e(()=>[s(u(l.org.name),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(n,{label:"\u90E8\u95E8\u540D\u79F0"},{default:e(()=>[s(u(l.org.name),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(n,{label:"\u7968\u636E\u7F16\u53F7"},{default:e(()=>[s(u(l.acceptance.bill_sn),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(n,{label:"\u6C47\u7968\u7C7B\u578B"},{default:e(()=>[t(B,{options:D.dictData.bill_type,value:l.acceptance.bill_type},null,8,["options","value"])]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(n,{label:"\u6C47\u7968\u627F\u5151\u94F6\u884C"},{default:e(()=>[s(u(l.acceptance.draft_acceptance_bank),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(n,{label:"\u6536\u7968\u8D26\u6237\u7F16\u7801"},{default:e(()=>[s(u(l.bankAccount.account),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(n,{label:"\u6536\u7968\u8D26\u6237"},{default:e(()=>[s(u(l.bankAccount.account_name),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(n,{label:"\u5151\u73B0\u65E5\u671F"},{default:e(()=>[s(u(l.maturity_date),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(n,{label:"\u5151\u73B0\u91D1\u989D"},{default:e(()=>[s(u(l.amount),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(n,{label:"\u5151\u73B0\u91D1\u989D\u5927\u5199"},{default:e(()=>[s(u(l.amount_daxie),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(n,{label:"\u5907\u6CE8"},{default:e(()=>[s(u(l.remark),1)]),_:1})]),_:1}),t(o,{span:24},{default:e(()=>[i.length>0?(r(),p("div",q,[(r(!0),p(L,null,M(i,(d,j)=>(r(),p("div",z,[y("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:d.uri,target:"_blank"},u(d.name),9,G),y("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:X=>a.delFileFn(j)},"x",8,H)]))),256))])):(r(),p("div",J,"\u6682\u65E0\u6587\u4EF6"))]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const Ot=U(Q,[["__scopeId","data-v-43c015a3"]]);export{Ot as default};