1 |
- import{d as Y,u as F,r as o,x as G,b as H,av as J,a as r,o as m,C as p,A as t,k as Q,f as a,D as f,E as k,B as D,a2 as R,X as U,aw as X,Q as j,J as N,Y as Z,H as q,Z as K,_ as V,__tla as W}from"./index-54aa57d8.js";import{E as $,__tla as aa}from"./el-card-e7d6628c.js";import{_ as ta,__tla as ra}from"./ContentWrap-260746ab.js";import{_ as ea,__tla as la}from"./DictTag-638f5ebc.js";import{D as _a,__tla as sa}from"./dict-573b3b04.js";import{b as oa,a as na,__tla as ia}from"./index-cea53799.js";import{c as ca,__tla as ua}from"./index-8027959d.js";import{b as ma}from"./formCreate-a3356cdc.js";import pa,{__tla as fa}from"./ProcessInstanceBpmnViewer-038225d9.js";import{u as ya,__tla as da}from"./useMessage-f56cafbb.js";import"./color-6e929987.js";import{__tla as ha}from"./bpmn-embedded-19140ddd.js";import{__tla as va}from"./Dialog-7bb778a5.js";import{__tla as ba}from"./XTextButton-5d27d06a.js";import{__tla as ga}from"./XTextButton.vue_vue_type_style_index_0_scoped_bd4a9e34_lang-3d2a8051.js";import{__tla as Ca}from"./XButton-07359bd1.js";import{__tla as xa}from"./el-collapse-item-81cf2ac1.js";import{__tla as wa}from"./el-link-7afc02a1.js";import{__tla as ka}from"./el-drawer-9e35fab6.js";import{__tla as Da}from"./formatTime-e6197688.js";let E,Ea=Promise.all([(()=>{try{return W}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return la}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 Ca}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Da}catch{}})()]).then(async()=>{let y,d;y={class:"clearfix"},d={class:"el-icon-document"},E=V(Y({name:"BpmProcessInstanceCreate",__name:"index",setup(Pa){const h=F(),P=ya(),c=o(!0),v=o([]),O=G({suspensionState:1}),b=o(null),_=o(),u=o({rule:[],option:{}}),s=o(),A=async g=>{if(_.value&&s.value){_.value.btn.loading(!0);try{await ca({processDefinitionId:s.value.id,variables:g}),P.success("\u53D1\u8D77\u6D41\u7A0B\u6210\u529F"),h.go(-1)}finally{_.value.btn.loading(!1)}}};return H(()=>{(async()=>{c.value=!0;try{v.value=await oa(O)}finally{c.value=!1}})()}),(g,i)=>{const n=U,B=ea,I=X,C=j,x=N,T=Z,w=ta,z=J("form-create"),L=q,M=$,S=K;return r(s)?(m(),p(w,{key:1},{default:t(()=>[a(M,{class:"box-card"},{default:t(()=>[D("div",y,[D("span",d,"\u7533\u8BF7\u4FE1\u606F\u3010"+k(r(s).name)+"\u3011",1),a(x,{style:{float:"right"},type:"primary",onClick:i[0]||(i[0]=e=>s.value=void 0)},{default:t(()=>[a(C,{icon:"ep:delete"}),f(" \u9009\u62E9\u5176\u5B83\u6D41\u7A0B ")]),_:1})]),a(L,{span:16,offset:6,style:{"margin-top":"20px"}},{default:t(()=>[a(z,{rule:r(u).rule,api:r(_),"onUpdate:api":i[1]||(i[1]=e=>R(_)?_.value=e:null),option:r(u).option,onSubmit:A},null,8,["rule","api","option"])]),_:1})]),_:1}),a(pa,{"bpmn-xml":r(b)},null,8,["bpmn-xml"])]),_:1})):(m(),p(w,{key:0},{default:t(()=>[Q((m(),p(T,{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(e=>[a(B,{type:r(_a).BPM_MODEL_CATEGORY,value:e.row.category},null,8,["type","value"])]),_:1}),a(n,{label:"\u6D41\u7A0B\u7248\u672C",align:"center",prop:"version"},{default:t(e=>[a(I,null,{default:t(()=>[f("v"+k(e.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(e=>[a(x,{link:"",type:"primary",onClick:Oa=>(async l=>{s.value=l,l.formType==10?(ma(u,l.formConf,l.formFields),b.value=await na(l.id)):l.formCustomCreatePath&&await h.push({path:l.formCustomCreatePath})})(e.row)},{default:t(()=>[a(C,{icon:"ep:plus"}),f(" \u9009\u62E9 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[S,r(c)]])]),_:1}))}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/bpm/processInstance/create/index.vue"]])});export{Ea as __tla,E as default};
|