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

2 lines
3.9 KiB
JavaScript

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