2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
import{y as V,A as N,B as O,C as P,D as $}from"./element-plus.b3353ca6.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{P as S}from"./index.771e5a41.js";import{a as T}from"./custom.735a8774.js";import{d as y,a0 as E,s as F,o as c,c as _,V as t,M as e,T as n,U as l,W as L,a8 as M,a as C}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as U}from"./index.892155dd.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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const W={class:"detail-popup"},q=n(),z={key:0},G={style:{"margin-left":"5px",display:"block"}},H=["href"],J=["onClick"],K={key:1},Q=y({name:"customdetail"}),X=y({...Q,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(d,{expose:D,emit:h}){const r=E([]),g=F(),i=F(),a=E({}),m=async s=>{if(Object.assign(a,s),s.annex&&s.annex.length>0){const p=s.annex.map((u,o)=>({name:`\u6587\u4EF6${o+1}`,uri:u}));Object.assign(r,p)}},v=async s=>{const p=await T({id:s.id});m(p)},x=async()=>{var s;(s=i.value)==null||s.close()},k=()=>{var s;console.log("1111111"),(s=i.value)==null||s.open()},B=()=>{h("close")};return D({open:k,setFormData:m,getDetail:v}),(s,p)=>{const u=V,o=N,f=I,j=O,w=P,R=$;return c(),_("div",W,[t(S,{ref_key:"popupRef",ref:i,title:"\u6C47\u7968\u8F6C\u51FA\u8BE6\u60C5",async:!0,width:"80%",onConfirm:x,onClose:B},{default:e(()=>[t(R,{ref_key:"formRef",ref:g,model:a,"label-width":"160px"},{default:e(()=>[t(w,{class:"mb-2"},{default:e(()=>[t(j,null,{default:e(()=>[t(o,{span:12},{default:e(()=>[t(u,{label:"\u7EC4\u7EC7\u540D\u79F0"},{default:e(()=>[n(l(a.org.name),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u90E8\u95E8\u540D\u79F0"},{default:e(()=>[n(l(a.org.name),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u4F9B\u5E94\u5546\u540D\u79F0"},{default:e(()=>[n(l(a.supplier_name),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u5408\u540C\u7F16\u53F7"},{default:e(()=>[n(l(a.contract?a.contract.contract_no:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u9879\u76EE\u540D\u79F0"},{default:e(()=>[n(l(a.project?a.project.name:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u9879\u76EE\u7F16\u53F7"},{default:e(()=>[n(l(a.project?a.project.project_code:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u5408\u540C\u540D\u79F0"},{default:e(()=>[n(l(a.contract?a.contract.contract_name:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u5408\u540C\u7C7B\u578B"},{default:e(()=>[t(f,{options:d.dictData.contract_type,value:a.contract.contract_type},null,8,["options","value"])]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u7968\u636E\u7F16\u53F7"},{default:e(()=>[n(l(a.acceptance.bill_sn),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u6C47\u7968\u7C7B\u578B"},{default:e(()=>[t(f,{options:d.dictData.bill_type,value:a.acceptance.bill_type},null,8,["options","value"])]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u6C47\u7968\u627F\u5151\u94F6\u884C"},{default:e(()=>[n(l(a.acceptance.draft_acceptance_bank),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u6536\u7968\u8D26\u6237\u7F16\u7801"},{default:e(()=>[n(l(a.bankAccount.account),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u6536\u7968\u8D26\u6237"},{default:e(()=>[n(l(a.bankAccount.account_name),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u6C47\u7968\u5230\u671F\u65E5\u671F"},{default:e(()=>[n(l(a.acceptance.bill_due_date),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u4ED8\u6B3E\u65E5\u671F"},{default:e(()=>[n(l(a.payment_date),1)]),_:1})]),_:1}),q,t(o,{span:12},{default:e(()=>[t(u,{label:"\u91D1\u989D"},{default:e(()=>[n(l(a.amount),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u91D1\u989D\u5927\u5199"},{default:e(()=>[n(l(a.amount_daxie),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u5907\u6CE8"},{default:e(()=>[n(l(a.remark),1)]),_:1})]),_:1}),t(o,{span:12},{default:e(()=>[t(u,{label:"\u5907\u6CE8"},{default:e(()=>[n(l(a.remark),1)]),_:1})]),_:1}),t(o,{span:24},{default:e(()=>[t(u,{label:"\u9644\u4EF6"},{default:e(()=>[r.length>0?(c(),_("div",z,[(c(!0),_(L,null,M(r,(b,A)=>(c(),_("div",G,[C("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:b.uri,target:"_blank"},l(b.name),9,H),C("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:Y=>s.delFileFn(A)},"x",8,J)]))),256))])):(c(),_("div",K,"\u6682\u65E0\u6587\u4EF6"))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const Pt=U(X,[["__scopeId","data-v-ced888e9"]]);export{Pt as default};
|