1 |
- import{d as T,u as j,r as s,f as q,z as F,h as G,a as r,o as m,j as p,w as t,D as K,i as a,m as f,t as x,k as P,R as U,K as Y,al as V,_ as W,q as X,L as H,E as J,M as N,__tla as Q}from"./index-1e808f2e.js";import{E as Z,__tla as $}from"./el-card-03b3588b.js";import{_ as aa,__tla as ta}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{_ as ra,__tla as la}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{D as ea,__tla as _a}from"./dict-a31cb4ba.js";import{b as oa,a as sa,__tla as na}from"./index-3c6e5ffc.js";import{c as ia,__tla as ca}from"./index-76ea2ca5.js";import{b as ua}from"./formCreate-a3356cdc.js";import{_ as ma,__tla as pa}from"./ProcessInstanceBpmnViewer.vue_vue_type_style_index_0_lang-139a505e.js";import{u as fa,__tla as ya}from"./useMessage-5f9e8917.js";import"./color-6e929987.js";import{__tla as da}from"./bpmn-embedded-fd00c79d.js";import{__tla as ha}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as va}from"./XTextButton-c7a74f67.js";import{__tla as ba}from"./XTextButton.vue_vue_type_style_index_0_scoped_7561ab3f_lang-a71ee685.js";import{__tla as ga}from"./XButton-5f4b0954.js";import{__tla as Ca}from"./el-collapse-item-e45787ff.js";import{__tla as wa}from"./el-link-1faa17b5.js";import{__tla as ka}from"./el-drawer-6c08a2c2.js";import{__tla as xa}from"./formatTime-a348c3be.js";let E,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 wa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return xa}catch{}})()]).then(async()=>{let y,d;y={class:"clearfix"},d={class:"el-icon-document"},E=T({name:"BpmProcessInstanceCreate",__name:"index",setup(Ea){const h=j(),B=fa(),c=s(!0),v=s([]),D=q({suspensionState:1}),b=s(null),_=s(),u=s({rule:[],option:{}}),o=s(),M=async g=>{if(_.value&&o.value){_.value.btn.loading(!0);try{await ia({processDefinitionId:o.value.id,variables:g}),B.success("\u53D1\u8D77\u6D41\u7A0B\u6210\u529F"),h.go(-1)}finally{_.value.btn.loading(!1)}}};return F(()=>{(async()=>{c.value=!0;try{v.value=await oa(D)}finally{c.value=!1}})()}),(g,i)=>{const n=Y,R=ra,S=V,C=W,w=X,z=H,k=aa,A=G("form-create"),I=J,L=Z,O=N;return r(o)?(m(),p(k,{key:1},{default:t(()=>[a(L,{class:"box-card"},{default:t(()=>[P("div",y,[P("span",d,"\u7533\u8BF7\u4FE1\u606F\u3010"+x(r(o).name)+"\u3011",1),a(w,{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(I,{span:16,offset:6,style:{"margin-top":"20px"}},{default:t(()=>[a(A,{rule:r(u).rule,api:r(_),"onUpdate:api":i[1]||(i[1]=l=>U(_)?_.value=l:null),option:r(u).option,onSubmit:M},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(()=>[K((m(),p(z,{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(R,{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(S,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(w,{link:"",type:"primary",onClick:Ba=>(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"])),[[O,r(c)]])]),_:1}))}}})});export{Pa as __tla,E as default};
|