@wti-frontend/wti-auditlog
v0.0.5
Published
审核信息相关组件
Downloads
3
Keywords
Readme
审核信息相关组件
下载
npm i @wti-frontend/wti-auditlog
引入
import WtiAuditLog from '@wti-frontend/wti-auditlog';
注册(需注册在@wti-frontend/classification-upload-file 组件之后,组件内部有对该组件的引用)
Vue.use(WtiAuditLog, {
baseURL,
tokenField: sessionStorage.getItem('wti-manager-token'),
});
组件简介:
AuditInfo审核信息 - 抽屉页面使用
![AuditInfo审核信息 - 抽屉页面使用](readme-img/AuditInfo审核信息 - 抽屉页面使用.png)
<!-- 审核信息 -->
<AuditInfo :original-key="mainOriginalKey" v-if="mainOriginalKey">
HistoricalOpinionArr 审核信息
![image-20240104171247932](readme-img/HistoricalOpinionArr 审核信息.png)
<!-- 审批信息 -->
<HistoricalOpinionArr :main-original-key="mainOriginalKey" v-if="mainOriginalKey">
CountersignFunction 发起加签、转办
基础使用
template
<button @click="openCountersignDialog('endorse')">加签</button>
<button @click="openCountersignDialog('transfer')">转办</button>
<!-- 加签/转办功能 -->
<CountersignFunction
:params="endorseParams"
@success="endorseOrTransferSucesss"
ref="countersignFunction"/>
script
// 加签、转办提交组件
export default {
data () {
return {
mainOriginalKey: '',
endorseParams: {
taskNodeId: '', // 审批:tskRecheck 会签:tskCountersign
businessId: '', // 关联业务唯一id
originalKey: '', // 本节点id
parentOriginalKey: '', // 父节点id
mainOriginalKey: '', // 主流节点id
}
};
},
created () {
this.taskNodeId = this.$getFromSearchURL('taskNodeId'); // 是否为被会签节点
this.parentOriginalKey = this.$getFromSearchURL('parentOriginalKey');
this.originalKey = this.$getFromSearchURL('originalKey');
this.businessId = this.$getFromSearchURL('businessId');
// 加签转办的参数
this.endorseParams = {
taskNodeId: this.taskNodeId, // 审批:tskRecheck 会签:tskCountersign
businessId: this.businessId, // 关联业务唯一id
originalKey: this.originalKey, // 本节点id
parentOriginalKey: this.parentOriginalKey, // 父节点id
mainOriginalKey: this.mainOriginalKey, // 主流节点id
};
},
methods: {
// 打开加签发起弹窗
openCountersignDialog (functionType) {
this.$refs.countersignFunction.openDialog(functionType);
},
// 加签转办成功
endorseOrTransferSucesss (params) {
if(params.functionType === 'transfer') {
// 关闭当前页面
this.$message.success('转办成功,窗口 3s 后关闭');
setTimeout(() => {
closePage(147);
if (this.isWorkspace === '1') {
refreshPage(0);
}
}, 2000);
}
if(params.functionType === 'endorse') {
refreshPage(147);
}
},
}
};
CountersignDetail 任务日志 (加签、转办、查看投票、授权、代理)
![CountersignDetail 任务日志](readme-img/CountersignDetail 任务日志.png)
<!-- 待处理或者正在处理的待办任务需要有撤回功能 -->
<CountersignDetail v-if="originalKey && mainOriginalKey"
:is-show-retreat-btn="taskStatus == '0' || taskStatus === '1'"
:original-key="originalKey"
:main-original-key="mainOriginalKey"
:is-required="true"
@getCurrentApprovalInfo="getCurrentApprovalInfo"/>
SponsorEndorseDetail加签接收人加签信息模块
<SponsorEndorseDetail v-if="originalKey && (taskNodeId === 'tskCountersign' || isSignin === '1')"
:original-key ="originalKey"/>
Transfer转办信息模块
<!--转办详情 转办次数大于0时 该待办有转办详情 -->
<Transfer v-if="originalKey && businessId && transferTimes > 0"
:original-key="originalKey"
:business-id="businessId"/>
OpenWorkflowBtn 查看审批流程图按钮
<OpenWorkflowBtn :original-key="originalKey"/>
BusinessStatus 状态戳
<BusinessStatus :status="10" :size="10"/>
CloseBtn页面关闭按钮
<closeBtn :page-id="139"/>