index-3673cb81.js 4.1 KB

1
  1. import{d as j,u as q,r as s,e as H,k as L,aj as N,a as r,o as m,q as p,w as t,v as R,f as a,m as f,t as x,g as P,N as U,D as K,ak as V,_ as W,B as X,G as Y,E as z,H as J,__tla as Q}from"./index-2eab2d23.js";import{E as Z,__tla as $}from"./el-card-c558f0ec.js";import{_ as aa,__tla as ta}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{_ as ra,__tla as la}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{D as ea,__tla as _a}from"./dict-1ad71b6f.js";import{b as oa,a as sa,__tla as na}from"./index-2d19ea81.js";import{c as ia,__tla as ca}from"./index-a1993285.js";import{b as ua}from"./formCreate-a3356cdc.js";import{_ as ma,__tla as pa}from"./ProcessInstanceBpmnViewer.vue_vue_type_style_index_0_lang-b9b61ab3.js";import{u as fa,__tla as ya}from"./useMessage-171aa63e.js";import"./color-6e929987.js";import{__tla as da}from"./bpmn-embedded-7a47b8f8.js";import{__tla as ha}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as va}from"./XTextButton-caeba438.js";import{__tla as ba}from"./XTextButton.vue_vue_type_style_index_0_scoped_7561ab3f_lang-e264c7bf.js";import{__tla as ga}from"./XButton-f05c5131.js";import{__tla as Ca}from"./el-collapse-item-5ecf4321.js";import{__tla as ka}from"./el-link-f0d278a2.js";import{__tla as wa}from"./el-drawer-7ad3d607.js";import{__tla as xa}from"./formatTime-41155543.js";let D,Pa=Promise.all([(()=>{try{return Q}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return xa}catch{}})()]).then(async()=>{let y,d;y={class:"clearfix"},d={class:"el-icon-document"},D=j({name:"BpmProcessInstanceCreate",__name:"index",setup(Da){const h=q(),E=fa(),c=s(!0),v=s([]),B=H({suspensionState:1}),b=s(null),_=s(),u=s({rule:[],option:{}}),o=s(),G=async g=>{if(_.value&&o.value){_.value.btn.loading(!0);try{await ia({processDefinitionId:o.value.id,variables:g}),E.success("\u53D1\u8D77\u6D41\u7A0B\u6210\u529F"),h.go(-1)}finally{_.value.btn.loading(!1)}}};return L(()=>{(async()=>{c.value=!0;try{v.value=await oa(B)}finally{c.value=!1}})()}),(g,i)=>{const n=K,M=ra,A=V,C=W,k=X,F=Y,w=aa,I=N("form-create"),O=z,S=Z,T=J;return r(o)?(m(),p(w,{key:1},{default:t(()=>[a(S,{class:"box-card"},{default:t(()=>[P("div",y,[P("span",d,"\u7533\u8BF7\u4FE1\u606F\u3010"+x(r(o).name)+"\u3011",1),a(k,{style:{float:"right"},type:"primary",onClick:i[0]||(i[0]=l=>o.value=void 0)},{default:t(()=>[a(C,{icon:"ep:delete"}),f(" \u9009\u62E9\u5176\u5B83\u6D41\u7A0B ")]),_:1})]),a(O,{span:16,offset:6,style:{"margin-top":"20px"}},{default:t(()=>[a(I,{rule:r(u).rule,api:r(_),"onUpdate:api":i[1]||(i[1]=l=>U(_)?_.value=l:null),option:r(u).option,onSubmit:G},null,8,["rule","api","option"])]),_:1})]),_:1}),a(ma,{"bpmn-xml":r(b)},null,8,["bpmn-xml"])]),_:1})):(m(),p(w,{key:0},{default:t(()=>[R((m(),p(F,{data:r(v)},{default:t(()=>[a(n,{label:"\u6D41\u7A0B\u540D\u79F0",align:"center",prop:"name"}),a(n,{label:"\u6D41\u7A0B\u5206\u7C7B",align:"center",prop:"category"},{default:t(l=>[a(M,{type:r(ea).BPM_MODEL_CATEGORY,value:l.row.category},null,8,["type","value"])]),_:1}),a(n,{label:"\u6D41\u7A0B\u7248\u672C",align:"center",prop:"version"},{default:t(l=>[a(A,null,{default:t(()=>[f("v"+x(l.row.version),1)]),_:2},1024)]),_:1}),a(n,{label:"\u6D41\u7A0B\u63CF\u8FF0",align:"center",prop:"description"}),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:t(l=>[a(k,{link:"",type:"primary",onClick:Ea=>(async e=>{o.value=e,e.formType==10?(ua(u,e.formConf,e.formFields),b.value=await sa(e.id)):e.formCustomCreatePath&&await h.push({path:e.formCustomCreatePath})})(l.row)},{default:t(()=>[a(C,{icon:"ep:plus"}),f(" \u9009\u62E9 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[T,r(c)]])]),_:1}))}}})});export{Pa as __tla,D as default};