2 lines
6.9 KiB
JavaScript
2 lines
6.9 KiB
JavaScript
import{R as O,S as I,D as V}from"./element-plus.517d4382.js";import{_ as N,a as P}from"./index.011c79f0.js";import{P as S}from"./index.b17dae19.js";import{a as $}from"./custom.99349afc.js";import{a as q,b as L}from"./flowSet.6da79e1c.js";import{d as y,s as p,a0 as d,r as T,o,c as m,V as e,M as a,T as u,U as n,W as M,a8 as U,L as g,u as W,a as z}from"./@vue.ab566ce7.js";import{_ as G}from"./index.8b1962e9.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"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./vue-router.87ebc608.js";import"./lodash.1d82ee7c.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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const H={class:"detail-popup"},J={key:0},K={style:{"margin-left":"5px",display:"block"}},Q=["href"],X={key:1},Y=y({name:"customdetail"}),Z=y({...Y,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(ll,{expose:F,emit:B}){const E=p(),r=p(),x=d([]),l=d({}),_=async i=>{if(i.annex&&i.annex.length>0){const c=i.annex.map((t,s)=>({name:`\u6587\u4EF6${s+1}`,uri:t}));Object.assign(x,c)}Object.assign(l,i),h()},v=async i=>{const c=await $({id:l.id});_(c)},C=async()=>{var i;(i=r.value)==null||i.close()},D=()=>{var i;console.log("1111111"),(i=r.value)==null||i.open()},f=()=>{B("close")},b=T([]),h=async()=>{if(l!=null&&l.approve_id)return;let i=await q();b.value=i};return F({open:D,setFormData:_,getDetail:v}),(i,c)=>{const t=O,s=I,A=N,k=P,w=V;return o(),m("div",H,[e(S,{ref_key:"popupRef",ref:r,title:"\u5F00\u7968\u7533\u8BF7\u8BE6\u60C5",async:!0,width:"80%",onConfirm:C,onClose:f},{default:a(()=>[e(w,{ref_key:"formRef",ref:E,model:l,"label-width":"160px"},{default:a(()=>[e(s,{column:3,title:"\u57FA\u672C\u4FE1\u606F",border:""},{default:a(()=>[e(t,{label:"\u5408\u540C\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.contract_name),1)]),_:1}),e(t,{label:"\u5408\u540C\u7F16\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.contract_code),1)]),_:1}),e(t,{label:"\u9879\u76EE\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.project_name),1)]),_:1}),e(t,{label:"\u9879\u76EE\u7F16\u7801","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.project_code),1)]),_:1}),e(t,{label:"\u5BA2\u6237\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.custom_name),1)]),_:1}),e(t,{label:"\u5408\u540C\u91D1\u989D","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.contract_amount),1)]),_:1}),e(t,{label:"\u671F\u6B21","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.period_text),1)]),_:1}),e(t,{label:"\u7A0E\u7387(%)","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.tax_rate_text),1)]),_:1}),e(t,{label:"\u53D1\u7968\u7C7B\u578B","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.invoice_type_text),1)]),_:1}),e(t,{label:"\u5F00\u7968\u91D1\u989D(\u542B\u7A0E)","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.amount_including_tax),1)]),_:1}),e(t,{label:"\u5F00\u7968\u5185\u5BB9","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.content),1)]),_:1}),e(t,{label:"\u53D1\u7968\u7F16\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.invoice_no),1)]),_:1}),e(t,{label:"\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[l.annex&&l.annex.length>0?(o(),m("div",J,[(o(!0),m(M,null,U(l.annex,(R,j)=>(o(),m("div",K,[z("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:R.uri,target:"_blank"},"\u6587\u4EF6"+n(j+1)+" \u67E5\u770B",9,Q)]))),256))])):(o(),m("div",X," \u6682\u65E0\u6587\u4EF6 "))]),_:1})]),_:1}),e(s,{column:3,title:"\u5BA2\u6237\u5F00\u7968\u4FE1\u606F",border:"",style:{margin:"20px 0"}},{default:a(()=>[e(t,{label:"\u5F00\u7968\u516C\u53F8\u540D\u79F0","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.invoicing_company_name),1)]),_:1}),e(t,{label:"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.taxpayer_identification_number),1)]),_:1}),e(t,{label:"\u5F00\u6237\u94F6\u884C","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.deposit_bank),1)]),_:1}),e(t,{label:"\u8D26\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.bank_accnout),1)]),_:1}),e(t,{label:"\u5F00\u6237\u5730\u5740\u53CA\u7535\u8BDD","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.address_phone),1)]),_:1})]),_:1}),e(s,{column:3,title:"\u53D1\u7968\u90AE\u5BC4\u4FE1\u606F",border:"",style:{margin:"20px 0"}},{default:a(()=>[e(t,{label:"\u6536\u7968\u5730\u5740","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.receiving_address),1)]),_:1}),e(t,{label:"\u8054\u7CFB\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.contacts),1)]),_:1}),e(t,{label:"\u8054\u7CFB\u7535\u8BDD","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.phone),1)]),_:1}),e(t,{label:"\u90AE\u5BC4\u65F6\u95F4","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.mailing_type),1)]),_:1}),e(t,{label:"\u90AE\u5BC4\u65B9\u5F0F","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.mailing_type),1)]),_:1}),e(t,{label:"\u90AE\u5BC4\u5355\u53F7","label-align":"left",align:"left","label-class-name":"my-label"},{default:a(()=>[u(n(l.mailing_no),1)]),_:1})]),_:1}),!(l!=null&&l.approve_id)||l.approve_check_status==4?(o(),g(A,{key:0,flows:b.value,submitApi:W(L),id:l==null?void 0:l.id,onOff:f},null,8,["flows","submitApi","id"])):(o(),g(k,{key:1,approve_id:l==null?void 0:l.approve_id,onOff:f},null,8,["approve_id"]))]),_:1},8,["model"])]),_:1},512)])}}});const Ll=G(Z,[["__scopeId","data-v-7b9e04be"]]);export{Ll as default};
|