|
@@ -1,298 +1,305 @@
|
|
|
<template>
|
|
|
- <div class="applyTab">
|
|
|
- <a-card class="cardTask" v-for="item in applyList" :key="item.id">
|
|
|
- <p class="pTitle">
|
|
|
- <span>
|
|
|
- <img src="@assets/look.gif" />
|
|
|
- </span>
|
|
|
- <i>
|
|
|
- {{ item.processName }}
|
|
|
- </i>
|
|
|
- </p>
|
|
|
-
|
|
|
- <p>当前审批环节:{{ item.currTaskName }}</p>
|
|
|
- <p>创建时间:{{ item.createTime }}</p>
|
|
|
-
|
|
|
- <!-- 申请状态 -->
|
|
|
- <p>
|
|
|
- 状态:
|
|
|
- <span v-if="item.status == 0" class="statusComm" style="background:rgb(9, 40, 52,.1);">
|
|
|
- 草稿
|
|
|
- </span>
|
|
|
-
|
|
|
- <span v-if="item.status == 1" class="statusComm" style="background:rgb(252, 96, 10,.2);">
|
|
|
- 处理中
|
|
|
- </span>
|
|
|
-
|
|
|
- <span v-if="item.status == 2" class="statusComm" style="background:rgb(9, 40, 52,.2);">
|
|
|
- 已结束
|
|
|
- </span>
|
|
|
-
|
|
|
- <span v-if="item.status == 3" class="statusComm" style="background:rgb(9, 40, 52,.1);">
|
|
|
- 已撤回
|
|
|
- </span>
|
|
|
- </p>
|
|
|
-
|
|
|
- <!-- 申请结果 -->
|
|
|
- <p style="float:left;">
|
|
|
- 结果:
|
|
|
-
|
|
|
- <span class="resultComm" v-if="item.result == 0" style="background:rgba(52, 123, 152,.7);">
|
|
|
- 未提交
|
|
|
- </span>
|
|
|
-
|
|
|
- <span class="resultComm" v-else-if="item.result == 1" style="background:rgb(252, 96, 10,.8);">
|
|
|
- 处理中
|
|
|
- </span>
|
|
|
-
|
|
|
- <span class="resultComm" v-else-if="item.result == 2" style="background:rgb(9, 40, 52,.8);">
|
|
|
- 通过
|
|
|
- </span>
|
|
|
-
|
|
|
- <span class="resultComm" v-else-if="item.result == 3" style="background:rgba(9, 40, 52,.7);">
|
|
|
- 驳回
|
|
|
- </span>
|
|
|
- </p>
|
|
|
-
|
|
|
- <p style="float:right;">发起人:{{ item.createBy }}</p>
|
|
|
-
|
|
|
- <a-divider style="background:rgba(128, 128, 128,.1);"></a-divider>
|
|
|
-
|
|
|
- <!-- 操作 -->
|
|
|
- <div class="operation">
|
|
|
+ <div>
|
|
|
+ <!-- 无待办显示 -->
|
|
|
+ <div class="applyList_null" v-if="applyList.length == 0">
|
|
|
+ <a-empty />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="applyTab">
|
|
|
+ <a-card class="cardTask" v-for="item in applyList" :key="item.id">
|
|
|
+ <p class="pTitle">
|
|
|
+ <span>
|
|
|
+ <img src="@assets/look.gif" />
|
|
|
+ </span>
|
|
|
+ <i>
|
|
|
+ {{ item.processName }}
|
|
|
+ </i>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <p>当前审批环节:{{ item.currTaskName }}</p>
|
|
|
+ <p>创建时间:{{ item.createTime }}</p>
|
|
|
+
|
|
|
+ <!-- 申请状态 -->
|
|
|
<p>
|
|
|
- <span class="operationImg">
|
|
|
- <img src="@assets/down.png" />
|
|
|
+ 状态:
|
|
|
+ <span v-if="item.status == 0" class="statusComm" style="background:rgb(9, 40, 52,.1);">
|
|
|
+ 草稿
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span v-if="item.status == 1" class="statusComm" style="background:rgb(252, 96, 10,.2);">
|
|
|
+ 处理中
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span v-if="item.status == 2" class="statusComm" style="background:rgb(9, 40, 52,.2);">
|
|
|
+ 已结束
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span v-if="item.status == 3" class="statusComm" style="background:rgb(9, 40, 52,.1);">
|
|
|
+ 已撤回
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <!-- 申请结果 -->
|
|
|
+ <p style="float:left;">
|
|
|
+ 结果:
|
|
|
+
|
|
|
+ <span class="resultComm" v-if="item.result == 0" style="background:rgba(52, 123, 152,.7);">
|
|
|
+ 未提交
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span class="resultComm" v-else-if="item.result == 1" style="background:rgb(252, 96, 10,.8);">
|
|
|
+ 处理中
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span class="resultComm" v-else-if="item.result == 2" style="background:rgb(9, 40, 52,.8);">
|
|
|
+ 通过
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span class="resultComm" v-else-if="item.result == 3" style="background:rgba(9, 40, 52,.7);">
|
|
|
+ 驳回
|
|
|
</span>
|
|
|
- 操作
|
|
|
</p>
|
|
|
|
|
|
- <!-- -->
|
|
|
- <div class="btns">
|
|
|
- <!-- 结果 0 -->
|
|
|
- <span v-if="item.status == 0">
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="apply(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.9);
|
|
|
+ <p style="float:right;">发起人:{{ item.createBy }}</p>
|
|
|
+
|
|
|
+ <a-divider style="background:rgba(128, 128, 128,.1);"></a-divider>
|
|
|
+
|
|
|
+ <!-- 操作 -->
|
|
|
+ <div class="operation">
|
|
|
+ <p>
|
|
|
+ <span class="operationImg">
|
|
|
+ <img src="@assets/down.png" />
|
|
|
+ </span>
|
|
|
+ 操作
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <!-- -->
|
|
|
+ <div class="btns">
|
|
|
+ <!-- 结果 0 -->
|
|
|
+ <span v-if="item.status == 0">
|
|
|
+ <a-button
|
|
|
+ class="itemBtn"
|
|
|
+ ghost
|
|
|
+ @click="apply(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.9);
|
|
|
color:red;"
|
|
|
- >
|
|
|
- 提交申请
|
|
|
- </a-button>
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="edit(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
|
|
|
+ >
|
|
|
+ 提交申请
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ class="itemBtn"
|
|
|
+ ghost
|
|
|
+ @click="edit(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
|
|
|
color:orange;"
|
|
|
- >
|
|
|
- 编辑
|
|
|
- </a-button>
|
|
|
-
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="remove(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
|
|
|
+ >
|
|
|
+ 编辑
|
|
|
+ </a-button>
|
|
|
+
|
|
|
+ <a-button
|
|
|
+ class="itemBtn"
|
|
|
+ ghost
|
|
|
+ @click="remove(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
|
|
|
color:#4e73b9;"
|
|
|
- >
|
|
|
- 删除
|
|
|
- </a-button>
|
|
|
- </span>
|
|
|
-
|
|
|
- <!-- 处理中 渲染的按钮 -->
|
|
|
- <span v-if="item.status == 1" class="ingBtns">
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="cancel(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.9);
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </a-button>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <!-- 处理中 渲染的按钮 -->
|
|
|
+ <span v-if="item.status == 1" class="ingBtns">
|
|
|
+ <a-button
|
|
|
+ class="itemBtn"
|
|
|
+ ghost
|
|
|
+ @click="cancel(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.9);
|
|
|
color:red;"
|
|
|
- >
|
|
|
- 撤回
|
|
|
- </a-button>
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="history(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
|
|
|
+ >
|
|
|
+ 撤回
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ class="itemBtn"
|
|
|
+ ghost
|
|
|
+ @click="history(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
|
|
|
color:orange;"
|
|
|
- >
|
|
|
- 查看进度
|
|
|
- </a-button>
|
|
|
-
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="detail(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
|
|
|
+ >
|
|
|
+ 查看进度
|
|
|
+ </a-button>
|
|
|
+
|
|
|
+ <a-button
|
|
|
+ class="itemBtn"
|
|
|
+ ghost
|
|
|
+ @click="detail(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
|
|
|
color:#4e73b9;"
|
|
|
- >
|
|
|
- 表单数据
|
|
|
- </a-button>
|
|
|
- </span>
|
|
|
-
|
|
|
- <!-- 驳回 状态 渲染的按钮 -->
|
|
|
- <span v-if="item.status == 2 || item.status == 3" class="overBtns">
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="apply(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
|
|
|
+ >
|
|
|
+ 表单数据
|
|
|
+ </a-button>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <!-- 驳回 状态 渲染的按钮 -->
|
|
|
+ <span v-if="item.status == 2 || item.status == 3" class="overBtns">
|
|
|
+ <a-button
|
|
|
+ class="itemBtn"
|
|
|
+ ghost
|
|
|
+ @click="apply(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
|
|
|
color:rgb(80, 95, 102);"
|
|
|
- >
|
|
|
- 重新申请
|
|
|
- </a-button>
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="edit(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
|
|
|
+ >
|
|
|
+ 重新申请
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ class="itemBtn"
|
|
|
+ ghost
|
|
|
+ @click="edit(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
|
|
|
color:#4e73b9;"
|
|
|
- >
|
|
|
- 编辑
|
|
|
- </a-button>
|
|
|
-
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="history(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
|
|
|
+ >
|
|
|
+ 编辑
|
|
|
+ </a-button>
|
|
|
+
|
|
|
+ <a-button
|
|
|
+ class="itemBtn"
|
|
|
+ ghost
|
|
|
+ @click="history(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
|
|
|
color:gray;"
|
|
|
- >
|
|
|
- 审批历史
|
|
|
- </a-button>
|
|
|
-
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="remove(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
|
|
|
+ >
|
|
|
+ 审批历史
|
|
|
+ </a-button>
|
|
|
+
|
|
|
+ <a-button
|
|
|
+ class="itemBtn"
|
|
|
+ ghost
|
|
|
+ @click="remove(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
|
|
|
color:red;"
|
|
|
+ >
|
|
|
+ 删除
|
|
|
+ </a-button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </a-card>
|
|
|
+
|
|
|
+ <!--流程申请选择-->
|
|
|
+ <a-drawer
|
|
|
+ title="选择流程"
|
|
|
+ width="33%"
|
|
|
+ placement="right"
|
|
|
+ :closable="false"
|
|
|
+ @close="processModalVisible = false"
|
|
|
+ :visible="processModalVisible"
|
|
|
+ >
|
|
|
+ <a-input-search style="margin-bottom: 10px;width: 200px" placeholder="输入流程名称" @search="onSearchProcess" />
|
|
|
+ <a-empty description="无流程可供选择" v-if="activeKeyAll.length == 0" />
|
|
|
+ <div v-else>
|
|
|
+ <a-collapse v-model="activeKey">
|
|
|
+ <a-collapse-panel
|
|
|
+ v-for="(value, index) in activeKeyAll"
|
|
|
+ :header="filterDictText(dictOptions, value) || '未分类'"
|
|
|
+ :key="value"
|
|
|
>
|
|
|
- 删除
|
|
|
- </a-button>
|
|
|
- </span>
|
|
|
+ <a-list :grid="{ gutter: 10, column: 1 }" :dataSource="processDataMap[value]">
|
|
|
+ <a-list-item slot="renderItem" slot-scope="item">
|
|
|
+ <a-card>
|
|
|
+ <div slot="title">
|
|
|
+ <a-row>
|
|
|
+ <a-col span="12" :title="item.name">{{ item.name }} </a-col>
|
|
|
+ <a-col span="12" style="text-align: right;">
|
|
|
+ <a href="javascript:void (0)" @click="chooseProcess(item)">发起申请</a>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </div>
|
|
|
+ <b>版本:</b>v.{{ item.version }}
|
|
|
+ <br />
|
|
|
+ <b>说明:</b>{{ item.description }}
|
|
|
+ </a-card>
|
|
|
+ </a-list-item>
|
|
|
+ </a-list>
|
|
|
+ </a-collapse-panel>
|
|
|
+ </a-collapse>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </a-card>
|
|
|
-
|
|
|
- <!--流程申请选择-->
|
|
|
- <a-drawer
|
|
|
- title="选择流程"
|
|
|
- width="33%"
|
|
|
- placement="right"
|
|
|
- :closable="false"
|
|
|
- @close="processModalVisible = false"
|
|
|
- :visible="processModalVisible"
|
|
|
- >
|
|
|
- <a-input-search style="margin-bottom: 10px;width: 200px" placeholder="输入流程名称" @search="onSearchProcess" />
|
|
|
- <a-empty description="无流程可供选择" v-if="activeKeyAll.length == 0" />
|
|
|
- <div v-else>
|
|
|
- <a-collapse v-model="activeKey">
|
|
|
- <a-collapse-panel
|
|
|
- v-for="(value, index) in activeKeyAll"
|
|
|
- :header="filterDictText(dictOptions, value) || '未分类'"
|
|
|
- :key="value"
|
|
|
- >
|
|
|
- <a-list :grid="{ gutter: 10, column: 1 }" :dataSource="processDataMap[value]">
|
|
|
- <a-list-item slot="renderItem" slot-scope="item">
|
|
|
- <a-card>
|
|
|
- <div slot="title">
|
|
|
- <a-row>
|
|
|
- <a-col span="12" :title="item.name">{{ item.name }} </a-col>
|
|
|
- <a-col span="12" style="text-align: right;">
|
|
|
- <a href="javascript:void (0)" @click="chooseProcess(item)">发起申请</a>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </div>
|
|
|
- <b>版本:</b>v.{{ item.version }}
|
|
|
- <br />
|
|
|
- <b>说明:</b>{{ item.description }}
|
|
|
- </a-card>
|
|
|
- </a-list-item>
|
|
|
- </a-list>
|
|
|
- </a-collapse-panel>
|
|
|
- </a-collapse>
|
|
|
- </div>
|
|
|
- </a-drawer>
|
|
|
-
|
|
|
- <!--流程表单-->
|
|
|
- <a-modal :title="lcModa.title" v-model="lcModa.visible" :footer="null" :maskClosable="false" width="100%">
|
|
|
- <component
|
|
|
- :disabled="lcModa.disabled"
|
|
|
- v-if="lcModa.visible"
|
|
|
- :is="lcModa.formComponent"
|
|
|
- :processData="lcModa.processData"
|
|
|
- :isNew="lcModa.isNew"
|
|
|
- @afterSubmit="afterSub"
|
|
|
- @close=";(lcModa.visible = false), (lcModa.disabled = false)"
|
|
|
- ></component>
|
|
|
- </a-modal>
|
|
|
-
|
|
|
- <!--提交申请表单-->
|
|
|
- <a-modal title="提交申请" v-model="modalVisible" :mask-closable="false" :width="500" :footer="null">
|
|
|
- <div v-if="modalVisible">
|
|
|
- <a-form-item label="选择审批人" v-show="showAssign">
|
|
|
- <a-select
|
|
|
- style="width: 100%"
|
|
|
- v-model="form.assignees"
|
|
|
- placeholder="请选择"
|
|
|
- mode="multiple"
|
|
|
- :allowClear="true"
|
|
|
- >
|
|
|
- <a-select-option v-for="(item, i) in assigneeList" :key="i" :value="item.username">
|
|
|
- {{ item.realname }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- <a-form-item label="下一审批人" v-show="isGateway">
|
|
|
- <a-alert type="info" showIcon message="分支网关处不支持自定义选择下一审批人,将自动下发给所有可审批人。"
|
|
|
- >,将发送给下一节点所有人</a-alert
|
|
|
- >
|
|
|
- </a-form-item>
|
|
|
- <a-form-item label="优先级" prop="priority">
|
|
|
- <a-select v-model="form.priority" placeholder="请选择" :allowClear="true" style="width: 100%">
|
|
|
- <a-select-option :value="0">普通</a-select-option>
|
|
|
- <a-select-option :value="1">重要</a-select-option>
|
|
|
- <a-select-option :value="2">紧急</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- <a-form-item label="消息通知">
|
|
|
- <a-checkbox v-model="form.sendMessage">站内消息通知</a-checkbox>
|
|
|
- <!-- <a-checkbox v-model="form.sendSms" disabled>短信通知</a-checkbox>
|
|
|
+ </a-drawer>
|
|
|
+
|
|
|
+ <!--流程表单-->
|
|
|
+ <a-modal :title="lcModa.title" v-model="lcModa.visible" :footer="null" :maskClosable="false" width="100%">
|
|
|
+ <component
|
|
|
+ :disabled="lcModa.disabled"
|
|
|
+ v-if="lcModa.visible"
|
|
|
+ :is="lcModa.formComponent"
|
|
|
+ :processData="lcModa.processData"
|
|
|
+ :isNew="lcModa.isNew"
|
|
|
+ @afterSubmit="afterSub"
|
|
|
+ @close=";(lcModa.visible = false), (lcModa.disabled = false)"
|
|
|
+ ></component>
|
|
|
+ </a-modal>
|
|
|
+
|
|
|
+ <!--提交申请表单-->
|
|
|
+ <a-modal title="提交申请" v-model="modalVisible" :mask-closable="false" :width="500" :footer="null">
|
|
|
+ <div v-if="modalVisible">
|
|
|
+ <a-form-item label="选择审批人" v-show="showAssign">
|
|
|
+ <a-select
|
|
|
+ style="width: 100%"
|
|
|
+ v-model="form.assignees"
|
|
|
+ placeholder="请选择"
|
|
|
+ mode="multiple"
|
|
|
+ :allowClear="true"
|
|
|
+ >
|
|
|
+ <a-select-option v-for="(item, i) in assigneeList" :key="i" :value="item.username">
|
|
|
+ {{ item.realname }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item label="下一审批人" v-show="isGateway">
|
|
|
+ <a-alert type="info" showIcon message="分支网关处不支持自定义选择下一审批人,将自动下发给所有可审批人。"
|
|
|
+ >,将发送给下一节点所有人</a-alert
|
|
|
+ >
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item label="优先级" prop="priority">
|
|
|
+ <a-select v-model="form.priority" placeholder="请选择" :allowClear="true" style="width: 100%">
|
|
|
+ <a-select-option :value="0">普通</a-select-option>
|
|
|
+ <a-select-option :value="1">重要</a-select-option>
|
|
|
+ <a-select-option :value="2">紧急</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item label="消息通知">
|
|
|
+ <a-checkbox v-model="form.sendMessage">站内消息通知</a-checkbox>
|
|
|
+ <!-- <a-checkbox v-model="form.sendSms" disabled>短信通知</a-checkbox>
|
|
|
<a-checkbox v-model="form.sendEmail" disabled>邮件通知</a-checkbox> -->
|
|
|
- </a-form-item>
|
|
|
+ </a-form-item>
|
|
|
+
|
|
|
+ <!-- 提交 -->
|
|
|
+ <div slot="footer">
|
|
|
+ <a-button type="text" @click="modalVisible = false">取消</a-button>
|
|
|
+ <div style="display:inline-block;width: 20px;"></div>
|
|
|
+ <a-button type="primary" :disabled="submitLoading" @click="applySubmit">提交</a-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </a-modal>
|
|
|
|
|
|
- <!-- 提交 -->
|
|
|
+ <!-- 审批历史 -->
|
|
|
+ <a-modal title="审批历史" v-model="modalLsVisible" :mask-closable="false" :width="'100%'" :footer="null">
|
|
|
+ <div v-if="modalLsVisible">
|
|
|
+ <historyModal :procInstId="procInstId"></historyModal>
|
|
|
+ </div>
|
|
|
+ </a-modal>
|
|
|
+
|
|
|
+ <!-- 确认撤回 -->
|
|
|
+ <a-modal title="确认撤回" v-model="modalCancelVisible" :mask-closable="false" :width="500">
|
|
|
+ <a-form ref="delForm" v-model="cancelForm" :label-width="70" v-if="modalCancelVisible">
|
|
|
+ <a-form-item label="撤回原因" prop="reason">
|
|
|
+ <a-input type="textarea" v-model="cancelForm.reason" :rows="4" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-form>
|
|
|
<div slot="footer">
|
|
|
- <a-button type="text" @click="modalVisible = false">取消</a-button>
|
|
|
- <div style="display:inline-block;width: 20px;"></div>
|
|
|
- <a-button type="primary" :disabled="submitLoading" @click="applySubmit">提交</a-button>
|
|
|
+ <a-button type="text" @click="modalCancelVisible = false">取消</a-button>
|
|
|
+ <a-button type="primary" :disabled="submitLoading" @click="handelSubmitCancel">提交</a-button>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </a-modal>
|
|
|
-
|
|
|
- <!-- 审批历史 -->
|
|
|
- <a-modal title="审批历史" v-model="modalLsVisible" :mask-closable="false" :width="'100%'" :footer="null">
|
|
|
- <div v-if="modalLsVisible">
|
|
|
- <historyModal :procInstId="procInstId"></historyModal>
|
|
|
- </div>
|
|
|
- </a-modal>
|
|
|
-
|
|
|
- <!-- 确认撤回 -->
|
|
|
- <a-modal title="确认撤回" v-model="modalCancelVisible" :mask-closable="false" :width="500">
|
|
|
- <a-form ref="delForm" v-model="cancelForm" :label-width="70" v-if="modalCancelVisible">
|
|
|
- <a-form-item label="撤回原因" prop="reason">
|
|
|
- <a-input type="textarea" v-model="cancelForm.reason" :rows="4" />
|
|
|
- </a-form-item>
|
|
|
- </a-form>
|
|
|
- <div slot="footer">
|
|
|
- <a-button type="text" @click="modalCancelVisible = false">取消</a-button>
|
|
|
- <a-button type="primary" :disabled="submitLoading" @click="handelSubmitCancel">提交</a-button>
|
|
|
- </div>
|
|
|
- </a-modal>
|
|
|
+ </a-modal>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|