index-18966bff.js 4.1 KB

1
  1. import{d as j,u as q,r as s,e as F,l as H,ak as L,a as r,o as m,v as p,w as t,x as R,f as a,n as f,t as k,g as I,O as U,G as X,al as Y,j as V,C as W,H as J,E as K,I as N,_ as Q,__tla as Z}from"./index-e3afde76.js";import{E as $,__tla as aa}from"./el-card-6198c22a.js";import{_ as ta,__tla as ra}from"./ContentWrap-5f2f4872.js";import{_ as la,__tla as ea}from"./DictTag-715a7ef1.js";import{D as _a,__tla as oa}from"./dict-a141296d.js";import{b as sa,a as na,__tla as ia}from"./index-cc7f6c33.js";import{c as ca,__tla as ua}from"./index-78aaf66c.js";import{b as ma}from"./formCreate-a3356cdc.js";import pa,{__tla as fa}from"./ProcessInstanceBpmnViewer-0ed8e5ec.js";import{u as ya,__tla as da}from"./useMessage-0b1b25bd.js";import"./color-6e929987.js";import{__tla as ha}from"./bpmn-embedded-1e8db702.js";import{__tla as va}from"./Dialog-c20523c4.js";import{__tla as ba}from"./XTextButton-1dbc8161.js";import{__tla as ga}from"./XTextButton.vue_vue_type_style_index_0_scoped_bd4a9e34_lang-6a4a26af.js";import{__tla as wa}from"./XButton-20fb5582.js";import{__tla as xa}from"./el-collapse-item-dab30572.js";import{__tla as Ca}from"./el-link-6cf0ca3c.js";import{__tla as ka}from"./el-drawer-51840708.js";import{__tla as Ia}from"./formatTime-cee700cd.js";let P,Pa=Promise.all([(()=>{try{return Z}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return oa}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 xa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ia}catch{}})()]).then(async()=>{let y,d;y={class:"clearfix"},d={class:"el-icon-document"},P=Q(j({name:"BpmProcessInstanceCreate",__name:"index",setup(Ea){const h=q(),E=ya(),c=s(!0),v=s([]),A=F({suspensionState:1}),b=s(null),_=s(),u=s({rule:[],option:{}}),o=s(),D=async g=>{if(_.value&&o.value){_.value.btn.loading(!0);try{await ca({processDefinitionId:o.value.id,variables:g}),E.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 sa(A)}finally{c.value=!1}})()}),(g,i)=>{const n=X,O=la,T=Y,w=V,x=W,z=J,C=ta,B=L("form-create"),G=K,M=$,S=N;return r(o)?(m(),p(C,{key:1},{default:t(()=>[a(M,{class:"box-card"},{default:t(()=>[I("div",y,[I("span",d,"\u7533\u8BF7\u4FE1\u606F\u3010"+k(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(w,{icon:"ep:delete"}),f(" \u9009\u62E9\u5176\u5B83\u6D41\u7A0B ")]),_:1})]),a(G,{span:16,offset:6,style:{"margin-top":"20px"}},{default:t(()=>[a(B,{rule:r(u).rule,api:r(_),"onUpdate:api":i[1]||(i[1]=l=>U(_)?_.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(C,{key:0},{default:t(()=>[R((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(O,{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(T,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(x,{link:"",type:"primary",onClick:Aa=>(async e=>{o.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"])),[[S,r(c)]])]),_:1}))}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/bpm/processInstance/create/index.vue"]])});export{Pa as __tla,P as default};