Files
qhmes/web-dist/js/ApprovalFlowList-CJW5DYZ-.js
2026-06-16 18:19:57 +08:00

2 lines
5.8 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var b=(w,c,r)=>new Promise((s,n)=>{var d=o=>{try{a(r.next(o))}catch(m){n(m)}},f=o=>{try{a(r.throw(o))}catch(m){n(m)}},a=o=>o.done?s(o.value):Promise.resolve(o.value).then(d,f);a((r=r.apply(w,c)).next())});import B from"./BasicTable-C6eG0bgK.js";import L from"./TableAction-BiXnWkvt.js";import"./TableImg.vue_vue_type_style_index_0_lang-65ZOQtFn.js";import{s as z}from"./index-X7Y8jykP.js";import"./index-BDvqZ5j4.js";import{u as E}from"./useListPage-CK9oQ-1O.js";import{_ as I,s as N,c as V}from"./ApprovalFlowModal.vue_vue_type_script_setup_true_lang-CmlBpqVP.js";import{g as $,b as K,a as P,u as U,d as j}from"./approvalFlow.api-BVpZSp8r.js";import{_ as H}from"./FlowDesign.vue_vue_type_style_index_0_lang-B8zj-MoL.js";import{u as _}from"./useModal-DaJ3Bflg.js";import{e as O,C as W,z as h,f as l,A as u,u as e,K as X,X as q,O as C,H as G,y as S,E as A}from"./vue-vendor-DNhG1Cve.js";import"./BasicTable.vue_vue_type_style_index_0_lang-B9DxrWas.js";import"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import"./index-BzChaRPg.js";import"./useAppInject-DPZGPcR3.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js";import"./index-DO7ZhK45.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./useTimeout-D5AmIBZw.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./index-saD4h7VJ.js";import"./useBreakpoint-DXhPW7nV.js";import"./useEventListener-BRXjwk7A.js";import"./breakpointEnum-BhAg6bcX.js";import"./uniqBy--vsL0WVB.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-CuWaQdlK.js";import"./useForm-D61zovon.js";import"./injectionKey-DPVn4AgL.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./Checkbox-Dbxs4we4.js";import"./index-BuONesFs.js";import"./FormOutlined-Y84itqS0.js";import"./useTableContext-CncNVXgp.js";import"./index-DTjkSGYl.js";import"./eagerComputed-BTlOruLW.js";import"./fromPairs-Dx9PT-t0.js";import"./useMaxLevel-DE205ncc.js";import"./index-CfNJyBRj.js";import"./dropdown-jkliuVyN.js";import"./index-DfHu-LAS.js";import"./Group-DBzJABA_.js";import"./RadioButton-DRBix2Fq.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./scrollTo-D49dA-9c.js";import"./operationUnit-vCu2co3e.js";import"./index-C69VKHba.js";import"./index-DklMb9Qc.js";import"./UpOutlined-B1UMbtrP.js";import"./index-DsixALRt.js";import"./dayjs-jnKD3YGS.js";import"./index-aCD42OrZ.js";import"./quarterOfYear-BU2sPnff.js";import"./index-J2mOtM3w.js";import"./dayjs-ALi1pEeb.js";import"./clickOutside-DHfwTU6R.js";import"./onMountedOrActivated-DhSdLlqP.js";import"./throttle-De_jAmBh.js";import"./uuid-CODpppBC.js";import"./sortable.esm-DJNoJSdJ.js";import"./RedoOutlined-Cq2g4Slp.js";import"./index-CeNCCWzL.js";import"./TableAction.vue_vue_type_style_index_0_lang-BIWZ0bGo.js";import"./index-fAAIzD3j.js";import"./index-DfX9t4DO.js";import"./isNumeric-DjvBa-1E.js";import"./useTable-DbHE4FHE.js";import"./useMethods-D3efiSSd.js";import"./useApprovalSelection-D4wlWO_T.js";import"./FlowNode.vue_vue_type_script_setup_true_lang-CVoh4O-K.js";import"./flowTypes-mLI7_N4F.js";import"./NodeConfigDrawer-CzIu69eV.js";import"./JSelectUser-Dg8SJP_z.js";import"./UserSelectModal-RTq67Ki6.js";import"./useSelectBiz-C58pZLPQ.js";import"./props-BWd0f6uH.js";import"./JSelectBiz-CRkPo6gN.js";import"./MesXslIntegrationPlan.api-DkUQ3DWJ.js";import"./MesXslIntegrationActionDrawer.vue_vue_type_script_setup_true_lang-Da0cFV2g.js";import"./VisualActionEditor.vue_vue_type_script_setup_true_lang-CxeNVgeo.js";import"./index-DZJwICFr.js";const J={class:"p-2"},$o=O({name:"ApprovalFlowList",__name:"ApprovalFlowList",setup(w){const{createMessage:c}=z(),[r,{openModal:s}]=_(),[n,{openModal:d}]=_(),{tableContext:f}=E({tableProps:{title:"审批流列表",api:$,columns:V,formConfig:{schemas:N,labelWidth:90},actionColumn:{width:240,fixed:"right"},showIndexColumn:!0}}),[a,{reload:o},{rowSelection:m,selectedRowKeys:v}]=f;function y(){s(!0,{isUpdate:!1})}function k(t){s(!0,{isUpdate:!0,record:t})}function x(t,i=!1){return b(this,null,function*(){let p=[];if(t!=null&&t.bizTable)try{p=(yield P(t.bizTable))||[]}catch(g){p=[]}d(!0,{record:t,readonly:i,paletteStages:p})})}function D(t){j({id:t.id},o)}function R(){K({ids:v.value.join(",")},o)}function T(t){return b(this,null,function*(){const i=t.status==="1"?"2":"1";yield U({id:t.id,status:i}),c.success(i==="1"?"已发布":"已停用"),o()})}function F(t){return[{label:"设计",auth:"approval:flow:design",onClick:x.bind(null,t,!1)},{label:"编辑",auth:"approval:flow:edit",onClick:k.bind(null,t)},{label:t.status==="1"?"停用":"发布",auth:"approval:flow:design",popConfirm:{title:`确认${t.status==="1"?"停用":"发布"}该审批流?`,confirm:T.bind(null,t)}},{label:"删除",color:"error",auth:"approval:flow:delete",popConfirm:{title:"确认删除该审批流",confirm:D.bind(null,t)}}]}return(t,i)=>{const p=X("a-button"),g=q("auth");return h(),W("div",J,[l(e(B),{onRegister:e(a),rowSelection:e(m)},{tableTitle:u(()=>[C((h(),S(p,{type:"primary",preIcon:"ant-design:plus-outlined",onClick:y},{default:u(()=>[...i[0]||(i[0]=[A("新增审批流",-1)])]),_:1})),[[g,"approval:flow:add"]]),e(v).length>0?C((h(),S(p,{key:0,danger:"",preIcon:"ant-design:delete-outlined",onClick:R,style:{"margin-left":"8px"}},{default:u(()=>[...i[1]||(i[1]=[A("批量删除",-1)])]),_:1})),[[g,"approval:flow:delete"]]):G("",!0)]),action:u(({record:M})=>[l(e(L),{actions:F(M)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"]),l(I,{onRegister:e(r),onSuccess:e(o)},null,8,["onRegister","onSuccess"]),l(H,{onRegister:e(n),onSuccess:e(o)},null,8,["onRegister","onSuccess"])])}}});export{$o as default};