Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2 Zeilen
5.2KB

  1. import{d as q,G as M,D as W,A as z,r,b as G,a0 as b,o as K,c as n,e as m,f as _,h as l,i as s,g as y,j as f,k as v,t as T,U as Q,x as X}from"./index.0b616ce3.js";import{a as Y,e as Z,f as ee,g as te}from"./flowConfiguration.61a8e820.js";import{d as ae,p as oe}from"./flowPathConfiguration.03bad87f.js";const le={class:"flex justify-between items-center"},se=y("span",null,"\u6D41\u7A0B\u5217\u8868",-1),ne=["onClick"],re=["onClick"],ce=["onClick"],de=["onClick"],ie=q({name:"flowPathConfiguration"}),ke=Object.assign(ie,{setup(pe){const{proxy:c}=X(),g=M(W.userStore).userInfo||{},V=z(),w=r(),S=G([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u6D41\u7A0B\u540D\u79F0",key:"processDefName",prop:"processDefName",minWidth:"200"},{label:"\u6D41\u7A0B\u7C7B\u578B",key:"type",width:"140",render:e=>b("span",e.type==="DEFAULT"?"\u9ED8\u8BA4\u6D41\u7A0B":e.type==="SEAL"?"\u76D6\u7AE0\u6D41\u7A0B":e.type==="JOINT_REVIEW"?"\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u6D41\u7A0B":"\u5176\u4ED6\u6D41\u7A0B")},{label:"\u72B6\u6001",key:"isStop",width:"80",render:e=>[b("span",{class:["dot mr-4",`${e.isStop?"bg-danger":"bg-success"}`]}),b("span",{class:e.isStop?"text-danger":"text-success"},e.isStop?"\u7981\u7528":"\u542F\u7528")]},{label:"\u521B\u5EFA\u65F6\u95F4",key:"created",prop:"created",width:"240"},{label:"\u64CD\u4F5C",slot:"action",fixed:"right",width:"270"}]),k=r([]),h=r(0),d=async(e=w.value.pageParams)=>{const t=await Y({...e,orgCode:g.value.empPosUnitCode});h.value=t.data.total,k.value=t.data.records},N=e=>{V.push({name:"unitConfigEdit",query:{processDefId:e.processDefId}})},R=e=>{c.$messageBox.confirm("\u662F\u5426\u5220\u9664\u8BE5\u6D41\u7A0B?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await ae({processDefId:e.processDefId}),c.$message.success("\u5220\u9664\u6210\u529F\uFF01"),d()})},B=e=>{const t=e.isStop?"\u542F\u7528":"\u7981\u7528";c.$messageBox.confirm(`\u662F\u5426${t}\u8BE5\u6D41\u7A0B?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{t==="\u542F\u7528"?await Z({processDefId:e.processDefId}):await ee({processDefId:e.processDefId}),c.$message.success(`${t}\u6210\u529F\uFF01`),d()})},p=r(!1),C=r(),D=async e=>{if(p.value=!0,C.value=e?"\u7F16\u8F91\u4FE1\u606F":"\u65B0\u589E\u6D41\u7A0B",e&&e.processDefId){const t=await oe({processDefId:e.processDefId});o.value={...t.data,isEnable:!t.data.isStop}}else o.value={isEnable:!0,type:"OTHER"}},E=r(),ue=r({DEFAULT:"\u9ED8\u8BA4\u6D41\u7A0B",SEAL:"\u76D6\u7AE0\u6D41\u7A0B",OTHER:"\u5176\u4ED6\u6D41\u7A0B",JOINT_REVIEW:"\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u6D41\u7A0B"}),F={processDefName:[{required:!0,message:"\u8BF7\u586B\u5199\u6D41\u7A0B\u540D\u79F0",trigger:"blur"}],type:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D41\u7A0B\u7C7B\u578B",trigger:"change"}]},o=r({type:"OTHER"}),$=async e=>{!e||await e.validate(async t=>{if(t){const i={...o.value,process:o.value.process?JSON.parse(o.value.process):void 0,orgCode:g.value.empPosUnitCode,isStop:!o.value.isEnable};await te(i),c.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),d(),p.value=!1,o.value={type:"OTHER"}}})},x=()=>{p.value=!1};return K(()=>{d()}),(e,t)=>{const i=n("el-button"),O=n("table-list"),U=n("el-card"),L=n("el-input"),I=n("el-form-item"),H=n("el-col"),me=n("el-radio"),_e=n("el-radio-group"),j=n("el-row"),A=n("el-switch"),P=n("el-form"),J=n("el-dialog");return m(),_("div",null,[l(U,{shadow:"never"},{header:s(()=>[y("div",le,[se,l(i,{type:"primary",icon:"Plus",size:"small",onClick:t[0]||(t[0]=()=>D())},{default:s(()=>[f("\u589E\u52A0\u6D41\u7A0B")]),_:1})])]),default:s(()=>[l(O,{ref_key:"tableListRef",ref:w,column:S,data:k.value,total:h.value,onGetTableData:d},{action:s(({scope:a})=>[a.row.type==="OTHER"?(m(),_("a",{key:0,onClick:u=>D(a.row)},"\u7F16\u8F91\u4FE1\u606F",8,ne)):v("",!0),y("a",{onClick:u=>N(a.row)},"\u7F16\u8F91\u6D41\u7A0B",8,re),a.row.type==="OTHER"?(m(),_("a",{key:1,onClick:u=>B(a.row)},T(a.row.isStop?"\u542F\u7528":"\u7981\u7528"),9,ce)):v("",!0),a.row.type==="OTHER"?(m(),_("a",{key:2,class:"text-danger",onClick:u=>R(a.row)},"\u5220\u9664",8,de)):v("",!0)]),_:1},8,["column","data","total"])]),_:1}),l(J,{"model-value":p.value,title:C.value,width:"600px",onClose:x},{footer:s(()=>[l(i,{type:"primary",onClick:t[4]||(t[4]=a=>$(E.value))},{default:s(()=>[f(" \u63D0\u4EA4 ")]),_:1}),l(i,{onClick:x},{default:s(()=>[f(" \u5173\u95ED ")]),_:1})]),default:s(()=>[l(P,{ref_key:"addFormRef",ref:E,model:o.value,rules:F,"label-width":"90px","label-suffix":":"},{default:s(()=>[l(j,null,{default:s(()=>[l(H,{span:24},{default:s(()=>[l(I,{label:"\u6D41\u7A0B\u540D\u79F0",prop:"processDefName"},{default:s(()=>[l(L,{modelValue:o.value.processDefName,"onUpdate:modelValue":t[1]||(t[1]=a=>o.value.processDefName=a),placeholder:"\u8BF7\u586B\u5199 "},null,8,["modelValue"])]),_:1})]),_:1}),v("",!0)]),_:1}),l(I,{label:"\u72B6\u6001",prop:"isEnable"},{default:s(()=>[l(A,{modelValue:o.value.isEnable,"onUpdate:modelValue":t[3]||(t[3]=a=>o.value.isEnable=a),style:{"--el-switch-on-color":"#4ecb74","--el-switch-off-color":"#ff3b30"}},null,8,["modelValue"]),f("\xA0 "),y("span",{style:Q({color:o.value.isEnable?"#4ECB74":"#FF3B30"})},T(o.value.isEnable?"\u5DF2\u542F\u7528":"\u5DF2\u7981\u7528"),5)]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value","title"])])}}});export{ke as default};