2025-03-20 10:25:32 +08:00

2 lines
14 KiB
JavaScript

import{a0 as re,a1 as de,L as ce,a2 as me,a3 as pe,S as fe,T as _e,Q as ye,B as ke,w as je,C as be}from"./element-plus.2acb577d.js";import{_ as Be}from"./index.vue_vue_type_style_index_0_lang.9e5f7fb0.js";import{d as Q,s as Ee,r as E,Z as N,o as i,c as j,U as u,L as t,K as c,R as d,T as x,a9 as g,u as f,S as y,Q as _,a as A,M as we,V as ve,n as xe}from"./@vue.821a47ec.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.61cb6e34.js";import{P as ge}from"./index.f292cd50.js";import{c as Ae}from"./oa_Initiate.22ec88f6.js";import{a as Fe,f as q,d as ze}from"./index.81df6f20.js";import{e as G}from"./@element-plus.dabbc398.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.6bfd3540.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";const Ce={qjlx:"\u8BF7\u5047\u7C7B\u578B",kssj:"\u5F00\u59CB\u65F6\u95F4",jssj:"\u7ED3\u675F\u65F6\u95F4",qjts:"\u8BF7\u5047\u5929\u6570",qjsy:"\u8BF7\u5047\u4E8B\u7531"},De={kssj:"\u5F00\u59CB\u65F6\u95F4",jssj:"\u7ED3\u675F\u65F6\u95F4",qjts:"\u51FA\u5DEE\u5929\u6570",ccsy:"\u51FA\u5DEE\u4E8B\u7531"},he={wcdd:"\u5916\u51FA\u5730\u70B9",kssj:"\u5F00\u59CB\u65F6\u95F4",jssj:"\u7ED3\u675F\u65F6\u95F4",qjts:"\u5916\u51FA\u5929\u6570",wcsy:"\u5916\u51FA\u4E8B\u7531"},Ne={kssj:"\u5F00\u59CB\u65F6\u95F4",jssj:"\u7ED3\u675F\u65F6\u95F4",qjts:"\u52A0\u73ED\u5929\u6570",jbsy:"\u52A0\u73ED\u4E8B\u7531"},qe={item:"\u4F1A\u8BAE\u5BA4\u9009\u62E9",kssj:"\u5F00\u59CB\u65F6\u95F4",jssj:"\u7ED3\u675F\u65F6\u95F4",bz:"\u5907\u6CE8"},Ve={wjmc:"\u6587\u4EF6\u540D\u79F0",jjcd:"\u7D27\u6025\u7A0B\u5EA6",lwdw:"\u6765\u6587\u5355\u4F4D",lwrq:"\u6765\u6587\u65E5\u671F",wjzy:"\u6587\u4EF6\u6458\u8981",bz:"\u5907\u6CE8"},Se={gzsbmc:"\u6545\u969C\u8BBE\u5907\u540D\u79F0",jjcd:"\u7D27\u6025\u7A0B\u5EA6",yjwxfy:"\u9884\u8BA1\u7EF4\u4FEE\u8D39\u7528",bxrq:"\u62A5\u4FEE\u65E5\u671F",gzms:"\u6545\u969C\u63CF\u8FF0"},Te={jyr:"\u501F\u7528\u4EBA",jyrsj:"\u501F\u7528\u4EBA\u624B\u673A",jybm:"\u501F\u7528\u90E8\u95E8",jylx:"\u501F\u7528\u7C7B\u578B",sjdayt:"\u6240\u501F\u6863\u6848\u7528\u9014",kssj:"\u501F\u7528\u65E5\u671F",jssj:"\u62DF\u5F52\u8FD8\u65E5\u671F",jydamx:"\u501F\u7528\u6863\u6848\u660E\u7EC6",bz:"\u5907\u6CE8"},Ue={kssj:"\u7528\u5370\u65E5\u671F",jjcd:"\u5370\u7AE0\u7C7B\u578B",ycmdd:"\u6587\u4EF6\u540D\u79F0",wjlx:"\u6587\u4EF6\u7C7B\u578B",jbsy:"\u7528\u5370\u4E8B\u7531"},$e={kssj:"\u5F00\u59CB\u65F6\u95F4",jssj:"\u7ED3\u675F\u65F6\u95F4",qjts:"\u7528\u8F66\u5929\u6570",mdd:"\u7528\u8F66\u76EE\u7684\u5730",clxz:"\u8F66\u8F86\u9009\u62E9",ccsy:"\u7528\u8F66\u4E8B\u7531"},Ie={clxz:"\u8F66\u8F86\u9009\u62E9",kssj:"\u5F52\u8FD8\u65F6\u95F4",qjts:"\u7528\u8F66\u516C\u91CC\u6570",qjts1:"\u7528\u8F66\u540E\u516C\u91CC\u6570",bz:"\u5907\u6CE8"},Re={wjmc:"\u501F\u6B3E\u91D1\u989D",jjlx:"\u501F\u6B3E\u7C7B\u578B",lwrq:"\u7533\u8BF7\u65E5\u671F",jyr:"\u501F\u6B3E\u4EBA",yhzh:"\u94F6\u884C\u8D26\u53F7",khh:"\u5F00\u6237\u884C",bz:"\u501F\u6B3E\u4E8B\u7531",bz1:"\u5907\u6CE8"},Le={wjmc:"\u4ED8\u6B3E\u91D1\u989D",jjlx:"\u4ED8\u6B3E\u65B9\u5F0F",lwrq:"\u4ED8\u6B3E\u65E5\u671F",jyr:"\u6536\u6B3E\u4EBA\u5168\u79F0",yhzh:"\u94F6\u884C\u8D26\u53F7",yhzh:"\u5F00\u6237\u884C",bz:"\u4ED8\u6B3E\u4E8B\u7531",bz1:"\u5907\u6CE8"},Pe={jlje:"\u5956\u52B1\u91D1\u989D",kssj:"\u5956\u52B1\u65E5\u671F",jlsy:"\u5956\u52B1\u4E8B\u7531",bz:"\u5907\u6CE8"},Ge={wpmc:"\u7269\u54C1\u540D\u79F0",kssj:"\u671F\u671B\u4EA4\u4E92\u65E5\u671F",chsl:"\u91C7\u8D2D\u6570\u91CF",chje:"\u91C7\u8D2D\u91D1\u989D",jlsy:"\u91C7\u8D2D\u4E8B\u7531",bz:"\u5907\u6CE8"},Qe={jlje:"\u6D3B\u52A8\u540D\u79F0",jlje:"\u6D3B\u52A8\u9884\u7B97",hdsm:"\u6D3B\u52A8\u8BF4\u660E",kssj:"\u5F00\u59CB\u65F6\u95F4",jssj:"\u7ED3\u675F\u65F6\u95F4",bz:"\u5907\u6CE8"},Ke={jyr:"\u5458\u5DE5\u59D3\u540D",lwrq:"\u5165\u804C\u65F6\u95F4",wjmc:"\u624B\u673A\u53F7\u7801",sex:"\u6027\u522B",rzbm:"\u5165\u804C\u90E8\u95E8",drzw:"\u62C5\u4EFB\u804C\u52A1",bz1:"\u5907\u6CE8"},Me={jyr:"\u5458\u5DE5\u59D3\u540D",lwrq:"\u8F6C\u6B63\u65E5\u671F",rzbm:"\u6240\u5728\u90E8\u95E8",drzw:"\u62C5\u4EFB\u804C\u52A1",bz1:"\u8BD5\u7528\u671F\u8BC4\u4EF7"},Oe={jyr:"\u5458\u5DE5\u59D3\u540D",lwrq:"\u5165\u804C\u65F6\u95F4",rzbm:"\u6240\u5728\u90E8\u95E8",drzw:"\u62C5\u4EFB\u804C\u52A1",lwrq1:"\u7533\u8BF7\u79BB\u804C\u65E5\u671F",lwrq2:"\u9884\u8BA1\u79BB\u804C\u65E5\u671F",bz1:"\u79BB\u804C\u539F\u56E0"},Ze={jyr:"\u5458\u5DE5\u59D3\u540D",lwrq:"\u5165\u804C\u65F6\u95F4",rzbm:"\u5F53\u524D\u6240\u5728\u90E8\u95E8",drzw:"\u62C5\u4EFB\u804C\u52A1",rzbm1:"\u8F6C\u5C97\u540E\u6240\u5728\u90E8\u95E8",drzw1:"\u8F6C\u521A\u540E\u804C\u52A1",lwrq1:"\u7533\u8BF7\u8F6C\u5C97\u65E5\u671F",lwrq2:"\u9884\u8BA1\u8F6C\u521A\u65E5\u671F",bz1:"\u8F6C\u5C97\u539F\u56E0"},He={rzbm:"\u62DB\u8058\u90E8\u95E8",lwrq1:"\u671F\u671B\u5230\u5C97\u65E5\u671F",drzw:"\u62DB\u8058\u5C97\u4F4D",bz1:"\u62DB\u8058\u4EBA\u6570",gwzz:"\u5C97\u4F4D\u804C\u8D23",rzyq:"\u4EFB\u804C\u8981\u6C42"},Je={jyr:"\u5BA1\u6279\u5185\u5BB9",jjlx:"\u7D27\u6025\u7A0B\u5EA6",bz1:"\u8BE6\u7EC6\u63CF\u8FF0"},We={class:"detail-popup"},Xe={class:"flex",style:{position:"relative"}},Ye={class:"w-280[px]",style:{position:"absolute",left:"250px"}},el={key:2},ll=Q({name:"customdetail"}),tl=Q({...ll,props:{typeName:{type:String}},emits:["close","reEdit"],setup(K,{expose:M,emit:O}){let a=K;const F=O,V=Ee(),z=E(!1),S=E(null),p=Fe().userInfo,w=E(!1),T=E(!1);let n=E({});const Z=()=>{a.typeName=="\u8BF7\u5047"?n.value=Ce:a.typeName=="\u51FA\u5DEE"?n.value=De:a.typeName=="\u5916\u51FA"?n.value=he:a.typeName=="\u52A0\u73ED"?n.value=Ne:a.typeName=="\u4F1A\u8BAE\u5BA4\u9884\u5B9A"?n.value=qe:a.typeName=="\u516C\u6587\u6D41\u8F6C"?n.value=Ve:a.typeName=="\u7269\u54C1\u7EF4\u4FEE"?n.value=Se:a.typeName=="\u8D44\u8D28\u501F\u7528"?n.value=Te:a.typeName=="\u7528\u7AE0"?n.value=Ue:a.typeName=="\u7528\u8F66"?n.value=$e:a.typeName=="\u7528\u8F66\u5F52\u8FD8"?n.value=Ie:a.typeName=="\u501F\u6B3E"?n.value=Re:a.typeName=="\u4ED8\u6B3E"?n.value=Le:a.typeName=="\u5956\u52B1"?n.value=Pe:a.typeName=="\u91C7\u8D2D"?n.value=Ge:a.typeName=="\u6D3B\u52A8\u7ECF\u8D39"?n.value=Qe:a.typeName=="\u5165\u804C"?n.value=Ke:a.typeName=="\u8F6C\u6B63"?n.value=Me:a.typeName=="\u79BB\u804C"?n.value=Oe:a.typeName=="\u8F6C\u5C97"?n.value=Ze:a.typeName=="\u62DB\u8058\u9700\u6C42"?n.value=He:a.typeName=="\u901A\u7528\u5BA1\u6279"?n.value=Je:(n.value=l.extends,T.value=!0),console.log(n.value)},l=N({id:0,extends:{}}),H=async r=>{for(const e in r)r[e]!=null&&r[e]!=null&&(l[e]=r[e]);Z()},o=N({id:l.id,check:"",content:"",check_node:1,check_admin_ids:"",check_admin_names:""}),J=()=>{if(!o.content)return q.msgError("\u8BF7\u586B\u5199\u64A4\u56DE\u539F\u56E0");o.check=3,v()},W=async()=>{z.value=!0,await xe(),S.value.open()},X=r=>{o.check_admin_names=r.name,o.check_admin_ids=r.id,z.value=!1},Y=()=>{var r;(r=V.value)==null||r.open()},ee=(r,e)=>{if(r==0)return e.user_id_info[0].name;if(r==1)return"\u90E8\u95E8\u8D1F\u8D23\u4EBA";if(r==2)return"\u6216\u7B7E";if(r==3)return"\u4F1A\u7B7E";if(r==4)return e.user_id_info[0].name},U=()=>l.steps.findIndex(e=>e.sort==l.check_step_sort),le=()=>{F("close")},te=()=>{F("close")},v=async()=>{if(o.check==2&&!o.content)return q.msgError("\u8BF7\u586B\u5199\u5BA1\u6279\u610F\u89C1");if(l.check_admin_ids&&l.record[l.record.length-1].check_user_id==o.check_admin_ids)return q.msgError("\u4E0B\u4E00\u7EA7\u5BA1\u6279\u4EBA\u4E0D\u80FD\u662F\u53D1\u8D77\u5BA1\u6279\u4EBA");l.flow_info.check_type!=2&&delete o.check_node,o.id=l.id,await Ae({...o}),le()},ue=N([4,3,2]),C=()=>ue.includes(l.check_status)?!1:l.admin_id==p.id?!0:(l==null?void 0:l.check_admin_ids.length)>1?l.steps[U()].check_list.map(r=>r.check_user_id).includes(p.id)?!1:l==null?void 0:l.check_admin_ids.split(",").map(Number).includes(p.id):(l==null?void 0:l.check_admin_ids)==p.id,se=()=>{F("reEdit",{extends:l.extends,typeName:a.typeName,cate:l.flow_info.flow_cate})};return M({open:Y,setFormData:H}),(r,e)=>{const m=re,b=de,D=ce,$=me,ne=pe,I=fe,ae=_e,h=ke,k=je,oe=Be,R=be,ie=ye;return i(),j("div",We,[u(ge,{ref_key:"popupRef",ref:V,showFootBtn:!1,title:"\u5BA1\u6279\u8BE6\u60C5",async:!0,width:"60vw",onClose:te},{default:t(()=>[T.value?(i(),c(D,{key:0},{header:t(()=>e[10]||(e[10]=[d("\u5BA1\u6279\u5185\u5BB9")])),default:t(()=>{var s;return[u(b,{column:3,border:""},{default:t(()=>[(i(!0),j(x,null,g(f(n),(B,L)=>(i(),c(m,{label:B.label,"label-align":"left",align:"left"},{default:t(()=>[d(y(B.text||B.value),1)]),_:2},1032,["label"]))),256))]),_:1}),(s=l.extends)!=null&&s.annex?(i(),c(b,{key:0,column:1,border:""},{default:t(()=>[u(m,{label:"\u9644\u4EF6","label-align":"left",align:"left"},{default:t(()=>[u(P,{annex:l.extends.annex},null,8,["annex"])]),_:1})]),_:1})):_("",!0)]}),_:1})):(i(),c(D,{key:1},{header:t(()=>e[11]||(e[11]=[d("\u5BA1\u6279\u5185\u5BB9")])),default:t(()=>{var s;return[u(b,{column:3,border:""},{default:t(()=>[(i(!0),j(x,null,g(f(n),(B,L)=>(i(),c(m,{label:B,"label-align":"left",align:"left"},{default:t(()=>[d(y(l.extends[L]),1)]),_:2},1032,["label"]))),256))]),_:1}),(s=l.extends)!=null&&s.annex?(i(),c(b,{key:0,column:1,border:""},{default:t(()=>[u(m,{label:"\u9644\u4EF6","label-align":"left",align:"left"},{default:t(()=>[u(P,{annex:l.extends.annex},null,8,["annex"])]),_:1})]),_:1})):_("",!0)]}),_:1})),u(D,null,{header:t(()=>e[12]||(e[12]=[d("\u5BA1\u6279\u6D41\u7A0B")])),default:t(()=>[u(b,{column:3,border:""},{default:t(()=>[u(m,{label:"\u5BA1\u6279\u72B6\u6001","label-align":"left",align:"left"},{default:t(()=>[d(y(l.check_status_text),1)]),_:1}),u(m,{label:"\u5F53\u524D\u5BA1\u6838\u4EBA","label-align":"left",align:"left"},{default:t(()=>[d(y(l.check_admin_users||"\u5BA1\u6279\u7ED3\u675F"),1)]),_:1}),u(m,{label:"\u6284\u9001\u4EBA","label-align":"left",align:"left"},{default:t(()=>[d(y(l.copy_users),1)]),_:1})]),_:1}),u(b,{column:1,border:""},{default:t(()=>[u(m,{label:"\u5BA1\u6279\u6D41\u7A0B","label-align":"left",align:"left"},{default:t(()=>[u(ne,{class:"mb-4",style:{"max-width":"50vw"},space:200,active:U()+2,simple:""},{default:t(()=>[u($,{icon:f(G),title:l.record[l.record.length-1].check_user_name+"\u521B\u5EFA"},null,8,["icon","title"]),(i(!0),j(x,null,g(l.steps,s=>(i(),c($,{icon:f(G),title:ee(s.flow_type,s)},null,8,["icon","title"]))),256))]),_:1},8,["active"])]),_:1}),u(m,{label:"\u5BA1\u6279\u8BB0\u5F55","label-align":"left",align:"left"},{default:t(()=>[(i(!0),j(x,null,g(l.record,s=>(i(),j("p",null,[A("span",null,y(s.check_user_name+s.status_text),1),d("\u4E86\u7533\u8BF7 "+y(s.check_time)+" ",1),A("span",null," \u64CD\u4F5C\u610F\u89C1\uFF1A "+y(s.content),1)]))),256))]),_:1}),l.flow_info.check_type==2&&l.check_status!=3&&l.check_status!=2&&l.admin_id!=f(p).id&&C()?(i(),c(m,{key:0,label:"\u5BA1\u6279\u8282\u70B9","label-align":"left",align:"left"},{default:t(()=>[A("div",Xe,[u(ae,{modelValue:o.check_node,"onUpdate:modelValue":e[0]||(e[0]=s=>o.check_node=s)},{default:t(()=>[u(I,{label:1},{default:t(()=>e[13]||(e[13]=[d("\u5BA1\u6279\u7ED3\u675F")])),_:1}),u(I,{label:2},{default:t(()=>e[14]||(e[14]=[d("\u4E0B\u4E00\u5BA1\u6279\u4EBA")])),_:1})]),_:1},8,["modelValue"]),A("div",Ye,[we(u(h,{modelValue:o.check_admin_names,"onUpdate:modelValue":e[1]||(e[1]=s=>o.check_admin_names=s),placeholder:"\u70B9\u51FB\u9009\u62E9\u4E0B\u4E00\u5BA1\u6279\u4EBA",clearable:"",readonly:"",onClick:W},null,8,["modelValue"]),[[ve,o.check_node==2]])])])]),_:1})):_("",!0),C()&&l.admin_id!=f(p).id?(i(),c(m,{key:1,label:"\u5BA1\u6279\u610F\u89C1","label-align":"left",align:"left"},{default:t(()=>[u(h,{type:"textarea",modelValue:o.content,"onUpdate:modelValue":e[2]||(e[2]=s=>o.content=s)},null,8,["modelValue"])]),_:1})):_("",!0),C()?(i(),c(m,{key:2,label:"\u64CD\u4F5C","label-align":"left",align:"left"},{default:t(()=>[l.admin_id!=f(p).id?(i(),c(k,{key:0,type:"primary",onClick:e[3]||(e[3]=s=>(o.check=1,v()))},{default:t(()=>e[15]||(e[15]=[d(" \u901A\u8FC7 ")])),_:1})):_("",!0),l.admin_id!=f(p).id&&l.flow_info.check_type!=3?(i(),c(k,{key:1,onClick:e[4]||(e[4]=s=>(o.check=2,v()))},{default:t(()=>e[16]||(e[16]=[d(" \u62D2\u7EDD ")])),_:1})):_("",!0),l.admin_id!=f(p).id&&l.flow_info.check_type==3?(i(),c(k,{key:2,onClick:e[5]||(e[5]=s=>(o.check=2,v()))},{default:t(()=>e[17]||(e[17]=[d(" \u56DE\u9000 ")])),_:1})):_("",!0),l.admin_id==f(p).id?(i(),c(k,{key:3,type:"info",onClick:e[6]||(e[6]=s=>w.value=!0)},{default:t(()=>e[18]||(e[18]=[d(" \u64A4\u56DE ")])),_:1})):_("",!0)]),_:1})):_("",!0),l.check_status==3&&l.record[l.record.length-1].check_user_id==f(p).id?(i(),c(m,{key:3,label:"\u64CD\u4F5C","label-align":"left",align:"left"},{default:t(()=>[u(k,{type:"info",onClick:se},{default:t(()=>e[19]||(e[19]=[d(" \u91CD\u65B0\u7F16\u8F91 ")])),_:1})]),_:1})):_("",!0)]),_:1})]),_:1}),z.value?(i(),j("div",el,[u(oe,{ref_key:"personnel",ref:S,onConfirm:X,type:"1"},null,512)])):_("",!0),u(ie,{modelValue:w.value,"onUpdate:modelValue":e[9]||(e[9]=s=>w.value=s),title:"\u64A4\u56DE\u5BA1\u6279",width:"550px"},{default:t(()=>[u(R,{label:"\u64A4\u56DE\u539F\u56E0"},{default:t(()=>[u(h,{modelValue:o.content,"onUpdate:modelValue":e[7]||(e[7]=s=>o.content=s),type:"textarea"},null,8,["modelValue"])]),_:1}),u(R,{label:""},{default:t(()=>[u(k,{type:"primary",onClick:J},{default:t(()=>e[20]||(e[20]=[d("\u64A4\u56DE")])),_:1}),u(k,{onClick:e[8]||(e[8]=s=>w.value=!1)},{default:t(()=>e[21]||(e[21]=[d("\u53D6\u6D88")])),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},512)])}}});const $l=ze(tl,[["__scopeId","data-v-41ec227e"]]);export{$l as default};