engineering/public/admin/assets/detail.2bf8f828.js
2024-02-20 17:15:05 +08:00

2 lines
4.0 KiB
JavaScript

import{y as V,A as N,B as P,C as $,D as A}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,s as C,a0 as c,o as i,c as m,V as t,M as e,T as r,U as s,W as L,a8 as M,a as b}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={style:{"margin-left":"5px",display:"block"}},z=["href"],G=["onClick"],H=y({name:"customdetail"}),J=y({...H,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(x,{expose:D,emit:h}){const v=C(),p=C(),_=c([]);c({provinceOptions:[],cityOptions:[],areaOptions:[]});const o=c({}),d=async a=>{if(a.annex&&a.annex.length>0){const u=a.annex.map((n,l)=>({name:`\u6587\u4EF6${l+1}`,uri:n}));Object.assign(_,u)}Object.assign(o,a)},E=async a=>{const u=await T({id:o.id});d(u)},F=async()=>{var a;(a=p.value)==null||a.close()},g=()=>{var a;console.log("1111111"),(a=p.value)==null||a.open()},B=()=>{h("close")};return D({open:g,setFormData:d,getDetail:E}),(a,u)=>{const n=V,l=N,k=I,w=P,O=$,R=A;return i(),m("div",W,[t(S,{ref_key:"popupRef",ref:p,title:"\u81EA\u8D2D\u6750\u6599\u8BE6\u60C5",async:!0,width:"80%",onConfirm:F,onClose:B},{default:e(()=>[t(R,{ref_key:"formRef",ref:v,model:o,"label-width":"160px"},{default:e(()=>[t(O,{class:"mb-2"},{default:e(()=>[t(w,null,{default:e(()=>[t(l,{span:8},{default:e(()=>[t(n,{label:"\u6750\u6599\u5927\u7C7B"},{default:e(()=>[r(s(o.project_name),1)]),_:1})]),_:1}),t(l,{span:8},{default:e(()=>[t(n,{label:"\u6750\u6599\u4E2D\u7C7B"},{default:e(()=>[r(s(o.custom.name),1)]),_:1})]),_:1}),t(l,{span:8},{default:e(()=>[t(n,{label:"\u6750\u6599\u5C0F\u7C7B"},{default:e(()=>[r(s(o.project_code),1)]),_:1})]),_:1}),t(l,{span:8},{default:e(()=>[t(n,{label:"\u6750\u6599\u540D\u79F0"},{default:e(()=>[r(s(o.contract.contract_name),1)]),_:1})]),_:1}),t(l,{span:8},{default:e(()=>[t(n,{label:"\u6750\u6599\u7F16\u7801"},{default:e(()=>[r(s(o.contract?o.contract.contract_code:"\u6682\u65E0\u6570\u636E"),1)]),_:1})]),_:1}),t(l,{span:8},{default:e(()=>[t(n,{label:"\u54C1\u724C"},{default:e(()=>[r(s(o.contract.amount),1)]),_:1})]),_:1}),t(l,{span:8},{default:e(()=>[t(n,{label:"\u89C4\u683C\u578B\u53F7"},{default:e(()=>[t(k,{options:x.dictData.pay_period,value:o.period},null,8,["options","value"])]),_:1})]),_:1}),t(l,{span:8},{default:e(()=>[t(n,{label:"\u53C2\u6570\u8BF4\u660E"},{default:e(()=>[r(s(o.accumulate_amount),1)]),_:1})]),_:1}),t(l,{span:8},{default:e(()=>[t(n,{label:"\u5355\u4F4D"},{default:e(()=>[r(s(o.accumulated_payments_received),1)]),_:1})]),_:1}),t(l,{span:8},{default:e(()=>[t(n,{label:"\u9644\u4EF6"},{default:e(()=>[(i(!0),m(L,null,M(_,(f,j)=>(i(),m("div",q,[b("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:f.uri,target:"_blank"},s(f.name),9,z),b("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:K=>a.delFileFn(j)},"x",8,G)]))),256))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const Vt=U(J,[["__scopeId","data-v-95335e1b"]]);export{Vt as default};