import{P}from"./index.9492d03b.js";import{_ as O,a as R}from"./index.a91b9a2c.js";import{a2 as V,R as $,S as I,C as N}from"./element-plus.258bf9e7.js";import{_ as S,$ as T}from"./flowSet.6e7dc427.js";import{d as E,a0 as c,r as m,o as t,c as l,V as r,M as s,W as d,a8 as f,L as p,u as M,U as v,T as U}from"./@vue.ab566ce7.js";import{_ as W}from"./index.ec401e3b.js";import"./@element-plus.b89f1627.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./vue-router.87ebc608.js";import"./@vueuse.8fcae4c2.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"./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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const q={class:"detail-popup"},z={key:0},G={key:1},H=E({name:"customdetail"}),J=E({...H,emits:["success","close"],setup(K,{expose:b,emit:F}){const y=c([{lable:"\u9879\u76EE\u540D\u79F0",value:["project_name"]},{lable:"\u9879\u76EE\u7F16\u7801",value:["project_code"]},{lable:"\u51FA\u5DEE\u8D77\u59CB\u5730",value:["origin_address"]},{lable:"\u51FA\u5DEE\u76EE\u7684\u5730",value:["target_address"]},{lable:"\u4EA4\u901A\u5DE5\u5177",value:["traffic_text"]},{lable:"\u51FA\u5DEE\u65F6\u95F4",value:["start_date"]},{lable:"\u7ED3\u675F\u65F6\u95F4",value:["end_date"]},{lable:"\u51FA\u5DEE\u4E8B\u7531",value:["reason"]},{lable:"\u5386\u53F2\u5929\u6570",value:["days"]},{lable:"\u5907\u6CE8",value:["remark"]},{lable:"\u9644\u4EF6",value:["annex"]}]),n=m(null),e=c({}),k=async o=>{Object.assign(e,o),h()},g=()=>{var o;(o=n.value)==null||o.open()},u=()=>{F("close")},i=m([]),h=async()=>{if(e!=null&&e.approve_id)return;let o=await S();i.value=o};return b({open:g,setFormData:k}),(o,Q)=>{const w=V,x=$,A=I,C=N,D=O,B=R,j=P;return t(),l("div",q,[r(j,{ref_key:"popupRef",ref:n,async:!0,width:"80%",onClose:u},{default:s(()=>[r(C,null,{default:s(()=>[r(A,{column:3,title:"\u8D39\u7528\u62A5\u9500\u8BE6\u60C5",border:""},{default:s(()=>[(t(!0),l(d,null,f(y,(a,L)=>(t(),p(x,{label:a.lable,"label-align":"left",align:"left","label-class-name":"my-label",key:L},{default:s(()=>[a.lable!="\u9644\u4EF6"?(t(),l("span",z,v(a.value.length>1?e[a.value[0]][a.value[1]]:e[a.value[0]]),1)):(t(),l("span",G,[(t(!0),l(d,null,f(e.annex,_=>(t(),p(w,{class:"m-2",href:_.uri,target:"_blank"},{default:s(()=>[U(v(_.name),1)]),_:2},1032,["href"]))),256))]))]),_:2},1032,["label"]))),128))]),_:1})]),_:1}),!(e!=null&&e.approve_id)||e.approve_check_status==4?(t(),p(D,{key:0,flows:i.value,submitApi:M(T),id:e==null?void 0:e.id,onOff:u},null,8,["flows","submitApi","id"])):(t(),p(B,{key:1,approve_id:e==null?void 0:e.approve_id,onOff:u},null,8,["approve_id"]))]),_:1},512)])}}});const Ve=W(J,[["__scopeId","data-v-07766ac7"]]);export{Ve as default};