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

2 lines
4.0 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 x=(b,u,i)=>new Promise((a,p)=>{var I=s=>{try{m(i.next(s))}catch(e){p(e)}},g=s=>{try{m(i.throw(s))}catch(e){p(e)}},m=s=>s.done?a(s.value):Promise.resolve(s.value).then(I,g);m((i=i.apply(b,u)).next())});import{B as D}from"./index-BDvqZ5j4.js";import{s as M,aH as N,au as A}from"./index-X7Y8jykP.js";import{b as z}from"./MesXslApprovalTrace.api-BK43yoMy.js";import{a as T}from"./useModal-DaJ3Bflg.js";import{D as B,a as C}from"./index-DWDasoBX.js";import{e as S,y,A as r,B as k,u as h,z as w,f as l,r as v,H as F,E as c,G as d}from"./vue-vendor-DNhG1Cve.js";import{_ as E}from"./index-DTjkSGYl.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useTimeout-D5AmIBZw.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./index-BzChaRPg.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./useAppInject-DPZGPcR3.js";import"./index-CuWaQdlK.js";import"./index-DO7ZhK45.js";import"./eagerComputed-BTlOruLW.js";import"./fromPairs-Dx9PT-t0.js";import"./useMaxLevel-DE205ncc.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./Checkbox-Dbxs4we4.js";import"./index-BuONesFs.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";const P=S({name:"DingApprovalForecastModal",__name:"DingApprovalForecastModal",setup(b){const{createMessage:u}=M(),i=v(!1),a=v({}),p=v([]),I=[{title:"序号",dataIndex:"stepNo",width:70,align:"center"},{title:"activityId",dataIndex:"activityId",width:120,ellipsis:!0},{title:"MES节点",dataIndex:"mesNodeName",width:120,ellipsis:!0},{title:"钉钉节点",dataIndex:"activityName",width:120,ellipsis:!0},{title:"节点状态",dataIndex:"nodeStatusText",width:90,align:"center"},{title:"审批方式",dataIndex:"approvalMethodText",width:100,align:"center"},{title:"审批人",dataIndex:"actionerNames",customRender:({record:e})=>s(e)}],[g,{setModalProps:m}]=T(e=>x(null,null,function*(){a.value={},p.value=[];const n=(e==null?void 0:e.record)||{},t=n.bizTable||(e==null?void 0:e.bizTable),f=n.bizDataId,_=n.externalInstanceId;if(!_&&(!t||!f)){u.warning("缺少单据ID或钉钉审批流ID无法获取审批节点");return}try{i.value=!0,m({confirmLoading:!1});const o=yield z({bizTable:t,bizDataId:f,processInstanceId:_});a.value=o||{},p.value=(o==null?void 0:o.nodes)||[]}catch(o){u.error((o==null?void 0:o.message)||"获取审批节点失败")}finally{i.value=!1}}));function s(e){const n=e==null?void 0:e.actionerNames;if(Array.isArray(n)&&n.length)return n.join("");const t=e==null?void 0:e.actionerUserIds;return Array.isArray(t)&&t.length?t.join(""):"-"}return(e,n)=>{const t=C,f=B,_=E,o=N;return w(),y(h(D),k(e.$attrs,{onRegister:h(g),title:"审批实例节点",width:"960px",showOkBtn:!1,cancelText:"关闭",destroyOnClose:""}),{default:r(()=>[l(o,{spinning:i.value},{default:r(()=>[a.value.processInstanceId?(w(),y(f,{key:0,column:2,size:"small",bordered:"",class:"ding-forecast-head"},{default:r(()=>[l(t,{label:"MES审批流"},{default:r(()=>[c(d(a.value.mesFlowName||"-"),1)]),_:1}),l(t,{label:"节点来源"},{default:r(()=>[c(d(a.value.nodeSource||"-"),1)]),_:1}),l(t,{label:"钉钉模板",span:2},{default:r(()=>[c(d(a.value.templateName||"-"),1)]),_:1}),l(t,{label:"processCode",span:2},{default:r(()=>[c(d(a.value.processCode),1)]),_:1}),l(t,{label:"审批实例ID",span:2},{default:r(()=>[c(d(a.value.processInstanceId||"-"),1)]),_:1})]),_:1})):F("",!0),l(_,{columns:I,"data-source":p.value,pagination:!1,size:"small",bordered:"","row-key":"stepNo",locale:{emptyText:"暂无审批节点"}},null,8,["data-source"])]),_:1},8,["spinning"])]),_:1},16,["onRegister"])}}}),Me=A(P,[["__scopeId","data-v-1fedfae2"]]);export{Me as default};