1 |
- import{d as Y,u as F,r as s,x as L,b as Q,au as R,a as r,o as m,A as p,B as t,k as X,f as a,E as f,G as w,C as P,a2 as j,X as H,av as J,_ as N,K as U,Y as V,I as Z,Z as q,__tla as z}from"./index-e8bff8cb.js";import{E as W,__tla as $}from"./el-card-f9558d99.js";import{_ as aa,__tla as ta}from"./ContentWrap.vue_vue_type_script_setup_true_lang-33dea697.js";import{_ as ra,__tla as la}from"./DictTag.vue_vue_type_script_lang-23f1740b.js";import{D as ea,__tla as _a}from"./dict-4a54e490.js";import{b as oa,a as sa,__tla as na}from"./index-26cf5f69.js";import{c as ia,__tla as ca}from"./index-594b68d1.js";import{b as ua}from"./formCreate-a3356cdc.js";import{_ as ma,__tla as pa}from"./ProcessInstanceBpmnViewer.vue_vue_type_style_index_0_lang-5dd9a30a.js";import{u as fa,__tla as ya}from"./useMessage-de42a595.js";import"./color-6e929987.js";import{__tla as da}from"./bpmn-embedded-9476292e.js";import{__tla as ha}from"./Dialog-4d17ac25.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as va}from"./XTextButton-9dc8dc8d.js";import{__tla as ba}from"./XTextButton.vue_vue_type_style_index_0_scoped_7561ab3f_lang-04ea9e1b.js";import{__tla as ga}from"./XButton-1d951fe4.js";import{__tla as Ca}from"./el-collapse-item-4651ee33.js";import{__tla as xa}from"./el-link-3d25a102.js";import{__tla as ka}from"./el-drawer-08d71faf.js";import{__tla as wa}from"./formatTime-4fdd5566.js";let E,Pa=Promise.all([(()=>{try{return z}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=Y({name:"BpmProcessInstanceCreate",__name:"index",setup(Ea){const h=F(),I=fa(),c=s(!0),v=s([]),A=L({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}),I.success("\u53D1\u8D77\u6D41\u7A0B\u6210\u529F"),h.go(-1)}finally{_.value.btn.loading(!1)}}};return Q(()=>{(async()=>{c.value=!0;try{v.value=await oa(A)}finally{c.value=!1}})()}),(g,i)=>{const n=H,D=ra,T=J,C=N,x=U,G=V,k=aa,K=R("form-create"),M=Z,O=W,S=q;return r(o)?(m(),p(k,{key:1},{default:t(()=>[a(O,{class:"box-card"},{default:t(()=>[P("div",y,[P("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(M,{span:16,offset:6,style:{"margin-top":"20px"}},{default:t(()=>[a(K,{rule:r(u).rule,api:r(_),"onUpdate:api":i[1]||(i[1]=l=>j(_)?_.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(()=>[X((m(),p(G,{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(D,{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(T,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:Ia=>(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"])),[[S,r(c)]])]),_:1}))}}})});export{Pa as __tla,E as default};
|