index-3e1424d4.js 4.1 KB

1
  1. import{d as F,u as G,r as s,x as H,b as J,au as K,a as r,o as m,C as p,A as t,k as R,f as a,D as f,E as w,B as D,a1 as W,W as X,av as j,_ as q,J as Q,X as U,H as z,Y as N,__tla as V}from"./index-a9d538d5.js";import{E as Z,__tla as $}from"./el-card-0ea446a3.js";import{_ as aa,__tla as ta}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6b7b4656.js";import{_ as ra,__tla as la}from"./DictTag.vue_vue_type_script_lang-9e4dd0a0.js";import{D as ea,__tla as _a}from"./dict-0e53af99.js";import{b as oa,a as sa,__tla as na}from"./index-c2eede7b.js";import{c as ia,__tla as ca}from"./index-face1575.js";import{b as ua}from"./formCreate-a3356cdc.js";import{_ as ma,__tla as pa}from"./ProcessInstanceBpmnViewer.vue_vue_type_style_index_0_lang-b55193e6.js";import{u as fa,__tla as ya}from"./useMessage-d5cbbfad.js";import"./color-6e929987.js";import{__tla as da}from"./bpmn-embedded-2280b472.js";import{__tla as ha}from"./Dialog-f354f369.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as va}from"./XTextButton-d3eb23fc.js";import{__tla as ba}from"./XTextButton.vue_vue_type_style_index_0_scoped_7561ab3f_lang-d7de5eb9.js";import{__tla as ga}from"./XButton-d8b49223.js";import{__tla as Ca}from"./el-collapse-item-ffef01b4.js";import{__tla as xa}from"./el-link-2471f3b0.js";import{__tla as ka}from"./el-drawer-28b72be0.js";import{__tla as wa}from"./formatTime-8985a9d0.js";let E,Da=Promise.all([(()=>{try{return V}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 xa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return wa}catch{}})()]).then(async()=>{let y,d;y={class:"clearfix"},d={class:"el-icon-document"},E=F({name:"BpmProcessInstanceCreate",__name:"index",setup(Ea){const h=G(),P=fa(),c=s(!0),v=s([]),A=H({suspensionState:1}),b=s(null),_=s(),u=s({rule:[],option:{}}),o=s(),B=async g=>{if(_.value&&o.value){_.value.btn.loading(!0);try{await ia({processDefinitionId:o.value.id,variables:g}),P.success("\u53D1\u8D77\u6D41\u7A0B\u6210\u529F"),h.go(-1)}finally{_.value.btn.loading(!1)}}};return J(()=>{(async()=>{c.value=!0;try{v.value=await oa(A)}finally{c.value=!1}})()}),(g,i)=>{const n=X,M=ra,I=j,C=q,x=Q,L=U,k=aa,O=K("form-create"),S=z,T=Z,Y=N;return r(o)?(m(),p(k,{key:1},{default:t(()=>[a(T,{class:"box-card"},{default:t(()=>[D("div",y,[D("span",d,"\u7533\u8BF7\u4FE1\u606F\u3010"+w(r(o).name)+"\u3011",1),a(x,{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(S,{span:16,offset:6,style:{"margin-top":"20px"}},{default:t(()=>[a(O,{rule:r(u).rule,api:r(_),"onUpdate:api":i[1]||(i[1]=l=>W(_)?_.value=l:null),option:r(u).option,onSubmit:B},null,8,["rule","api","option"])]),_:1})]),_:1}),a(ma,{"bpmn-xml":r(b)},null,8,["bpmn-xml"])]),_:1})):(m(),p(k,{key:0},{default:t(()=>[R((m(),p(L,{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(I,null,{default:t(()=>[f("v"+w(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(x,{link:"",type:"primary",onClick:Pa=>(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"])),[[Y,r(c)]])]),_:1}))}}})});export{Da as __tla,E as default};