1 |
- import{d as U,u as j,r as o,e as z,l as A,ak as F,a as r,o as m,v as p,w as t,x as L,f as a,n as f,t as k,g as I,O as X,G as Y,al as V,j as W,C as $,H as q,E as J,I as K,_ as N,__tla as Q}from"./index-11e4820e.js";import{E as Z,__tla as aa}from"./el-card-919c14be.js";import{_ as ta,__tla as ra}from"./ContentWrap-694014d4.js";import{_ as la,__tla as ea}from"./DictTag-e41ec8de.js";import{D as _a,__tla as sa}from"./dict-4072dcec.js";import{b as oa,a as na,__tla as ia}from"./index-411801a6.js";import{c as ca,__tla as ua}from"./index-3dc0ff2a.js";import{b as ma}from"./formCreate-a3356cdc.js";import pa,{__tla as fa}from"./ProcessInstanceBpmnViewer-08550ac7.js";import{u as ya,__tla as da}from"./useMessage-06ddf735.js";import{__tla as ha}from"./ContentWrap.vue_vue_type_script_setup_true_lang-11f85821.js";import"./color-6e929987.js";import{__tla as va}from"./bpmn-embedded-3cfcd802.js";import{__tla as ba}from"./Dialog-bbfaf85c.js";import{__tla as ga}from"./XTextButton-965140f7.js";import{__tla as wa}from"./XTextButton.vue_vue_type_style_index_0_scoped_bd4a9e34_lang-2ec4d565.js";import{__tla as Ca}from"./XButton-678772a3.js";import{__tla as xa}from"./el-collapse-item-1259fd66.js";import{__tla as ka}from"./el-link-6cd4f1ac.js";import{__tla as Ia}from"./el-drawer-3e8f0892.js";import{__tla as Pa}from"./formatTime-f6a2c881.js";let P,Ea=Promise.all([(()=>{try{return Q}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Pa}catch{}})()]).then(async()=>{let y,d;y={class:"clearfix"},d={class:"el-icon-document"},P=N(U({name:"BpmProcessInstanceCreate",__name:"index",setup(Ha){const h=j(),E=ya(),c=o(!0),v=o([]),H=z({suspensionState:1}),b=o(null),_=o(),u=o({rule:[],option:{}}),s=o(),D=async g=>{if(_.value&&s.value){_.value.btn.loading(!0);try{await ca({processDefinitionId:s.value.id,variables:g}),E.success("\u53D1\u8D77\u6D41\u7A0B\u6210\u529F"),h.go(-1)}finally{_.value.btn.loading(!1)}}};return A(()=>{(async()=>{c.value=!0;try{v.value=await oa(H)}finally{c.value=!1}})()}),(g,i)=>{const n=Y,G=la,O=V,w=W,C=$,S=q,x=ta,T=F("form-create"),B=J,M=Z,R=K;return r(s)?(m(),p(x,{key:1},{default:t(()=>[a(M,{class:"box-card"},{default:t(()=>[I("div",y,[I("span",d,"\u7533\u8BF7\u4FE1\u606F\u3010"+k(r(s).name)+"\u3011",1),a(C,{style:{float:"right"},type:"primary",onClick:i[0]||(i[0]=l=>s.value=void 0)},{default:t(()=>[a(w,{icon:"ep:delete"}),f(" \u9009\u62E9\u5176\u5B83\u6D41\u7A0B ")]),_:1})]),a(B,{span:16,offset:6,style:{"margin-top":"20px"}},{default:t(()=>[a(T,{rule:r(u).rule,api:r(_),"onUpdate:api":i[1]||(i[1]=l=>X(_)?_.value=l:null),option:r(u).option,onSubmit:D},null,8,["rule","api","option"])]),_:1})]),_:1}),a(pa,{"bpmn-xml":r(b)},null,8,["bpmn-xml"])]),_:1})):(m(),p(x,{key:0},{default:t(()=>[L((m(),p(S,{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(G,{type:r(_a).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(O,null,{default:t(()=>[f("v"+k(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(C,{link:"",type:"primary",onClick:Da=>(async e=>{s.value=e,e.formType==10?(ma(u,e.formConf,e.formFields),b.value=await na(e.id)):e.formCustomCreatePath&&await h.push({path:e.formCustomCreatePath})})(l.row)},{default:t(()=>[a(w,{icon:"ep:plus"}),f(" \u9009\u62E9 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[R,r(c)]])]),_:1}))}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/processInstance/create/index.vue"]])});export{Ea as __tla,P as default};
|