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

2 lines
4.0 KiB
JavaScript

import{y as O,A as R,B as A,C as V,D as N}from"./element-plus.258bf9e7.js";import{P}from"./index.9492d03b.js";import{a as I}from"./custom.13e75d58.js";import{d as y,s as b,a0 as i,o as _,c as m,V as e,M as t,T as n,U as u,a as c,W as S,a8 as T}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as $}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 L={class:"detail-popup"},M={style:{"margin-left":"5px",display:"block"}},U=["href"],W=["onClick"],q=y({name:"customdetail"}),z=y({...q,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(G,{expose:C,emit:F}){const x=b(),p=b(),d=i([]);i({provinceOptions:[],cityOptions:[],areaOptions:[]});const s=i({}),f=async a=>{if(Object.assign(s,a),a.annex&&a.annex.length>0){const r=a.annex.map((o,l)=>({name:`\u6587\u4EF6${l+1}`,uri:o}));Object.assign(d,r)}},D=async a=>{const r=await I({id:a.id});f(r)},g=async()=>{var a;(a=p.value)==null||a.close()},h=()=>{var a;console.log("1111111"),(a=p.value)==null||a.open()},v=()=>{F("close")};return C({open:h,setFormData:f,getDetail:D}),(a,r)=>{const o=O,l=R,B=A,k=V,j=N;return _(),m("div",L,[e(P,{ref_key:"popupRef",ref:p,title:"\u9879\u76EE\u7ECF\u7406\u59D4\u4EFB\u8BE6\u60C5",async:!0,width:"80%",onConfirm:g,onClose:v},{default:t(()=>[e(j,{ref_key:"formRef",ref:x,model:s,"label-width":"160px"},{default:t(()=>[e(k,{class:"mb-2"},{default:t(()=>[e(B,null,{default:t(()=>[e(l,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[n(u(s.project_name),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u7F16\u7801"},{default:t(()=>[n(u(s.project_code),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u5BA2\u6237\u540D\u79F0"},{default:t(()=>[n(u(s.custom_name),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u7C7B\u578B"},{default:t(()=>[n(u(s.project_type_name),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u91D1\u989D"},{default:t(()=>[n(u(s.amount),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u7ECF\u7406"},{default:t(()=>[n(u(s.project_manager_name),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u7ACB\u9879\u65E5\u671F"},{default:t(()=>[n(u(s.project_approval_date),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u5F00\u59CB\u65E5\u671F"},{default:t(()=>[n(u(s.start_date),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u4EA4\u4ED8\u65E5\u671F"},{default:t(()=>[n(u(s.delivery_date),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(o,{label:"\u5907\u6CE8"},{default:t(()=>[n(u(s.remark),1)]),_:1})]),_:1}),e(l,{span:24},{default:t(()=>[e(o,{label:"\u9644\u4EF6",prop:"field127"},{default:t(()=>[c("div",null,[(_(!0),m(S,null,T(d,(E,w)=>(_(),m("div",M,[c("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:E.uri,target:"_blank"},u(E.name),9,U),c("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:H=>a.delFileFn(w)},"x",8,W)]))),256))])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const we=$(z,[["__scopeId","data-v-cb659d99"]]);export{we as default};