dengjunjie
2025-06-26 6d9829c889a826d39cbc911ef5d01825edd1bffc
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d6fa925","chunk-30d65b08"],{"0d63":function(e,t,l){"use strict";l.r(t);var a=l("c1b7");const c={class:"vol-dialog"},o={key:0,class:"dia-footer"};function n(e,t,l,n,i,s){const r=Object(a["resolveComponent"])("el-scrollbar"),d=Object(a["resolveComponent"])("el-button"),b=Object(a["resolveComponent"])("el-dialog");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",c,[Object(a["createVNode"])(b,{modelValue:e.vmodel,"onUpdate:modelValue":t[2]||(t[2]=t=>e.vmodel=t),"close-on-click-modal":!1,"close-on-press-escape":!1,width:e.width,fullscreen:e.fullscreen,draggable:e.draggable,modal:e.modal,"before-close":e.handleClose},{header:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("i",{class:Object(a["normalizeClass"])(e.icon)},null,2),Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.title)+" ",1),Object(a["createElementVNode"])("button",{class:"el-dialog__headerbtn",type:"button",style:{right:"35px",color:"var(--el-color-info)"},onClick:t[0]||(t[0]=(...t)=>e.handleFullScreen&&e.handleFullScreen(...t))},t[3]||(t[3]=[Object(a["createElementVNode"])("i",{class:"el-icon el-icon-full-screen"},null,-1)]))]),footer:Object(a["withCtx"])(()=>[e.footer?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",o,[Object(a["renderSlot"])(e.$slots,"footer",{},void 0,!0),e.footer?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:0,type:"primary",size:"mini",onClick:t[1]||(t[1]=t=>e.handleClose())},{default:Object(a["withCtx"])(()=>t[4]||(t[4]=[Object(a["createElementVNode"])("i",{class:"el-icon-close"},null,-1),Object(a["createTextVNode"])("关闭")])),_:1}))])):Object(a["createCommentVNode"])("",!0)]),default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r,{"max-height":e.contentHeight},{default:Object(a["withCtx"])(()=>[e.inited?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,style:Object(a["normalizeStyle"])([{"min-height":"50px"},{padding:e.padding+"px"}]),class:"srcoll-content"},[Object(a["renderSlot"])(e.$slots,"content",{},void 0,!0),Object(a["renderSlot"])(e.$slots,"default",{},void 0,!0)],4)):Object(a["createCommentVNode"])("",!0)]),_:3},8,["max-height"])]),_:3},8,["modelValue","width","fullscreen","draggable","modal","before-close"])])}var i=Object(a["defineComponent"])({props:{modelValue:!1,lazy:{type:Boolean,default:!1},icon:{type:String,default:"el-icon-warning-outline"},title:{type:String,default:"基本信息"},height:{type:Number,default:200},width:{type:Number,default:650},padding:{type:Number,default:16},modal:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},onModelClose:{type:Function,default:e=>!0},footer:{type:Boolean,default:!0}},setup(e,t){const l=.95*document.body.clientHeight-60,c=Object(a["ref"])(!0),o=Object(a["ref"])(!1),n=Object(a["ref"])(!1),i=Object(a["ref"])(100);o.value=e.modelValue,n.value=!!t.slots.footer;const s=Object(a["ref"])(200);s.value=e.height;const r=(l,a)=>{let c=e.onModelClose(!!a);!1!==c&&(o.value=!1,t.emit("update:modelValue",!1),l&&l())},d=e=>(s.value=l-30,l/-2+"px");i.value=d(),Object(a["watch"])(()=>e.modelValue,(e,t)=>{o.value=e}),Object(a["watch"])(()=>e.height,(e,t)=>{i.value=d()});const b=Object(a["ref"])(!1),u=()=>{b.value=!b.value,t.emit("fullscreen",b.value)};return{handleClose:r,inited:c,vmodel:o,footer:n,top:i,calcHeight:d,contentHeight:s,fullscreen:b,handleFullScreen:u}}}),s=(l("19bb"),l("a80f"),l("9c21")),r=l.n(s);const d=r()(i,[["render",n],["__scopeId","data-v-0463adc6"]]);t["default"]=d},"19bb":function(e,t,l){"use strict";l("aef5")},"1c2c":function(e,t,l){},"38fb":function(e,t,l){},"72e6":function(e,t,l){"use strict";l("38fb")},a80f:function(e,t,l){"use strict";l("1c2c")},aef5:function(e,t,l){},e73a:function(e,t,l){"use strict";l.r(t);var a=l("c1b7");const c={class:"cell-item"},o={class:"audit-content"},n={key:0,class:"fx-left"},i={class:"v-steps"},s={class:"left-item"},r={class:"left-date"},d={class:"right-item"},b={class:"step-title"},u={class:"step-text"},m={key:1,class:"step-item"},j={class:"right-item"},O={class:"step-title"},p={class:"left-item"},v={class:"left-date"},h={class:"right-item"},f={class:"step-title"},g={class:"step-text"},V={class:"step-text"},k={class:"step-text"},y={key:0},N={class:"rd"},w={class:"btn"};function C(e,t,l,C,E,x){const B=Object(a["resolveComponent"])("el-descriptions-item"),S=Object(a["resolveComponent"])("el-descriptions"),D=Object(a["resolveComponent"])("el-radio"),_=Object(a["resolveComponent"])("el-radio-group"),F=Object(a["resolveComponent"])("el-alert"),$=Object(a["resolveComponent"])("el-input"),z=Object(a["resolveComponent"])("el-button"),T=Object(a["resolveComponent"])("vol-table"),U=Object(a["resolveComponent"])("vol-box");return Object(a["openBlock"])(),Object(a["createBlock"])(U,{footer:!1,modelValue:e.model,"onUpdate:modelValue":t[3]||(t[3]=t=>e.model=t),height:e.height,width:e.width,padding:0,lazy:!0,title:"审核"},{default:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",{class:"audit-model-content",style:Object(a["normalizeStyle"])({height:e.height-100+"px"})},[Object(a["createVNode"])(S,{class:"desc-top",column:3,size:"default",border:!0},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.formData,(e,t)=>(Object(a["openBlock"])(),Object(a["createBlock"])(B,{key:t},{label:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",c,Object(a["toDisplayString"])(e.name),1)]),default:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(" "+Object(a["toDisplayString"])(e.value),1)]),_:2},1024))),128))]),_:1}),Object(a["withDirectives"])(Object(a["createVNode"])(_,{style:{"padding-left":"15px"},modelValue:e.activeName,"onUpdate:modelValue":t[0]||(t[0]=t=>e.activeName=t),class:"ml-4"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(D,{label:"audit",size:"large"},{default:Object(a["withCtx"])(()=>t[4]||(t[4]=[Object(a["createTextVNode"])("审核")])),_:1}),Object(a["createVNode"])(D,{label:"log",size:"large"},{default:Object(a["withCtx"])(()=>t[5]||(t[5]=[Object(a["createTextVNode"])("审核记录")])),_:1})]),_:1},8,["modelValue"]),[[a["vShow"],e.hasFlow]]),Object(a["withDirectives"])(Object(a["createElementVNode"])("div",o,[e.hasFlow?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",n,[Object(a["createElementVNode"])("div",i,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.workFlowSteps,(l,c)=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:c},["start"==l.stepAttrType?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,class:Object(a["normalizeClass"])(["step-item",{"step-item-ad":l.auditId||"start"==l.stepAttrType}])},[Object(a["createElementVNode"])("div",s,[t[6]||(t[6]=Object(a["createElementVNode"])("div",null,"流程开始",-1)),Object(a["createElementVNode"])("div",r,Object(a["toDisplayString"])(l.createDate),1)]),Object(a["createElementVNode"])("div",d,[t[7]||(t[7]=Object(a["createElementVNode"])("div",{class:"step-line"},null,-1)),t[8]||(t[8]=Object(a["createElementVNode"])("i",{class:"step-circle"},null,-1)),Object(a["createElementVNode"])("div",b,Object(a["toDisplayString"])(l.stepName),1),Object(a["createElementVNode"])("div",u,"发起人:"+Object(a["toDisplayString"])(l.creator),1)])],2)):"end"==l.stepAttrType?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",m,[t[11]||(t[11]=Object(a["createElementVNode"])("div",{class:"left-item"},[Object(a["createElementVNode"])("div",null,"流程结束")],-1)),Object(a["createElementVNode"])("div",j,[t[9]||(t[9]=Object(a["createElementVNode"])("div",{class:"step-line"},null,-1)),t[10]||(t[10]=Object(a["createElementVNode"])("i",{class:"step-circle"},null,-1)),Object(a["createElementVNode"])("div",O,Object(a["toDisplayString"])(l.stepName),1)])])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:2,class:Object(a["normalizeClass"])([{"step-current":l.isCurrent},"step-item"])},[Object(a["createElementVNode"])("div",p,[t[12]||(t[12]=Object(a["createElementVNode"])("div",null,"审批时间",-1)),Object(a["createElementVNode"])("div",v,Object(a["toDisplayString"])(l.auditDate||"待审批"),1)]),Object(a["createElementVNode"])("div",h,[t[13]||(t[13]=Object(a["createElementVNode"])("div",{class:"step-line"},null,-1)),t[14]||(t[14]=Object(a["createElementVNode"])("i",{class:"step-circle"},null,-1)),Object(a["createElementVNode"])("div",f,Object(a["toDisplayString"])(l.stepName),1),Object(a["createElementVNode"])("div",g,"审批人:"+Object(a["toDisplayString"])(l.auditor),1),Object(a["createElementVNode"])("div",V," 状 态: "+Object(a["toDisplayString"])(e.getAuditStatus(l.auditStatus)),1),Object(a["createElementVNode"])("div",k,"备 注: "+Object(a["toDisplayString"])(l.remark||"-"),1)])],2))]))),128))])])):Object(a["createCommentVNode"])("",!0),e.isCurrentUser||!e.hasFlow?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:1,class:"fx-right",style:Object(a["normalizeStyle"])({width:e.hasFlow?"400px":"100%"})},[e.hasFlow?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",y,[Object(a["createVNode"])(F,{title:"当前选中【"+e.rowLen+"】条记录待审核..",type:"success",closable:!1},null,8,["title"])])),Object(a["createElementVNode"])("div",N,[t[15]||(t[15]=Object(a["createElementVNode"])("span",null,"审批:",-1)),Object(a["createVNode"])(_,{style:{"margin-left":"15px"},modelValue:e.auditParam.value,"onUpdate:modelValue":t[1]||(t[1]=t=>e.auditParam.value=t)},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.auditParam.data,e=>(Object(a["openBlock"])(),Object(a["createBlock"])(D,{key:e.value,label:e.value},{default:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),Object(a["createVNode"])($,{style:{"padding-top":"10px"},modelValue:e.auditParam.reason,"onUpdate:modelValue":t[2]||(t[2]=t=>e.auditParam.reason=t),type:"textarea",autosize:{minRows:4,maxRows:10},placeholder:"请输入备注..."},null,8,["modelValue"]),Object(a["createElementVNode"])("div",w,[Object(a["createVNode"])(z,{type:"primary",onClick:e.auditClick,icon:"Check"},{default:Object(a["withCtx"])(()=>t[16]||(t[16]=[Object(a["createTextVNode"])("审批")])),_:1},8,["onClick"])])],4)):Object(a["createCommentVNode"])("",!0)],512),[[a["vShow"],"audit"==e.activeName||!e.hasFlow]]),Object(a["withDirectives"])(Object(a["createElementVNode"])("div",null,[Object(a["createVNode"])(T,{tableData:e.tableData,columns:e.columns,height:e.height-250,"pagination-hide":!0,"load-key":!1,"text-inline":!1,ck:!1},null,8,["tableData","columns","height"])],512),[[a["vShow"],"log"==e.activeName]])],4)]),_:1},8,["modelValue","height","width"])}l("5948"),l("6ee9");var E=l("0b13"),x=l("0d63"),B=l("c1fb"),S=Object(a["defineComponent"])({components:{VolTable:E["a"],VolBox:x["default"]},props:{option:{type:Object,default:{key:"",cnName:"",name:"",url:""}}},setup(e,{emit:t}){const l=Object(a["ref"])(500),c=Object(a["ref"])(820),o=Object(a["ref"])(!1),n=Object(a["reactive"])([]),i=Object(a["ref"])(!1),s=Object(a["reactive"])([]),r=Object(a["reactive"])({rows:0,model:!1,value:-1,reason:"",data:[]}),{proxy:d}=Object(a["getCurrentInstance"])();r.data=d.$global.audit.data;const b=Object(a["reactive"])([]),u=Object(a["reactive"])([{title:"节点",field:"stepName",width:100},{title:"审批人",field:"auditor",width:80},{title:"审批结果",field:"auditStatus",width:70,bind:{data:[]}},{title:"审批时间",field:"auditDate",width:145},{title:"备注",field:"remark",width:120}]),m=Object(a["ref"])(null),j=Object(a["ref"])("audit"),O=Object(a["reactive"])([]),p=e=>(O.find(t=>t.key===e+"")||{value:e}).value,v=Object(a["ref"])(0);let h=[];const f=e=>{const t=e.table,a="api/Sys_WorkFlow/getSteps?tableName="+t;let r=h.map(t=>t[e.key]);B["a"].post(a,r,!0).then(e=>{if(e.status){if(i.value=!!(e.list||[]).length,!i.value){let e=Object.keys(h[0]).find(e=>"auditstatus"===e.toLowerCase()),t=h.every(t=>d.$global.audit.status.some(l=>l===t[e]||!t[e]));return t?(v.value=h.length,o.value=!0,c.value=430,l.value=330,void(m.value=!0)):void d.$message.error("只能选择待审批或审核中的数据")}o.value=!0,l.value=.95*document.body.clientHeight,c.value=820,O.length||(O.push(...e.auditDic||[]),u.forEach(e=>{"auditStatus"==e.field&&(e.bind.data=O)})),m.value=e.list.some(e=>e.isCurrentUser),n.length=0,n.push(...e.list),b.length=0,b.push(...e.log),s.length=0,s.push(...e.form||[])}else d.$message.error(e.message)})},g=()=>{if(-1==r.value)return void d.$message.error("请选择审批项");if(!V.value)return void t("auditClick",r,h,e=>{e.status&&(o.value=!1,b.length=0)});let e=h.map(e=>e[k.key]),l=`api/${k.table}/audit?auditReason=${r.reason}&auditStatus=${r.value}`;B["a"].post(l,e,"审核中....").then(e=>{e.status?(o.value=!1,d.$parent.search(),d.$message.success(e.message)):d.$message.error(e.message)})},V=Object(a["ref"])(!1);let k={};const y=(t,l)=>{V.value=!!l,h=t,j.value="audit",r.reason="",r.value=-1,k=l?{table:t[0].WorkTable,key:"WorkTableKey"}:{table:e.option.url.replaceAll("/",""),key:e.option.key},f(k)};return{columns:u,height:l,width:c,model:o,workFlowSteps:n,getAuditInfo:f,getAuditStatus:p,activeName:j,reactive:a["reactive"],tableData:b,auditParam:r,auditClick:g,open:y,isCurrentUser:m,hasFlow:i,rowLen:v,formData:s,isFlow:V}}}),D=(l("72e6"),l("9c21")),_=l.n(D);const F=_()(S,[["render",C],["__scopeId","data-v-7d74a4d2"]]);t["default"]=F}}]);