|
@@ -59,18 +59,18 @@
|
|
|
|
|
|
<template #footer>
|
|
<template #footer>
|
|
<div class="flow-actions">
|
|
<div class="flow-actions">
|
|
- <el-button :icon="ChatLineSquare" @click="openComment">评论</el-button>
|
|
|
|
- <el-button :icon="Check" type="success">同意</el-button>
|
|
|
|
- <el-button :icon="Close" type="danger">拒绝</el-button>
|
|
|
|
|
|
+ <el-button :icon="ChatLineSquare" @click="openComment('reviewVisible')">评论</el-button>
|
|
|
|
+ <el-button :icon="Check" type="success" @click="openComment('consentOrRefuseVisible')">同意</el-button>
|
|
|
|
+ <el-button :icon="Close" type="danger" @click="openComment('consentOrRefuseVisible')">拒绝</el-button>
|
|
<el-dropdown style="margin-left: 12px">
|
|
<el-dropdown style="margin-left: 12px">
|
|
<el-button :icon="More">更多</el-button>
|
|
<el-button :icon="More">更多</el-button>
|
|
<template #dropdown>
|
|
<template #dropdown>
|
|
<el-dropdown-menu>
|
|
<el-dropdown-menu>
|
|
- <el-dropdown-item>
|
|
|
|
|
|
+ <el-dropdown-item @click.native="openComment('deliverToReviewVisible')">
|
|
<el-icon><DArrowLeft /></el-icon>
|
|
<el-icon><DArrowLeft /></el-icon>
|
|
转交
|
|
转交
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
- <el-dropdown-item>
|
|
|
|
|
|
+ <el-dropdown-item @click.native="openComment('rollbackVisible')">
|
|
<el-icon><Switch /></el-icon>
|
|
<el-icon><Switch /></el-icon>
|
|
回退
|
|
回退
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
@@ -78,7 +78,7 @@
|
|
<el-icon><Plus /></el-icon>
|
|
<el-icon><Plus /></el-icon>
|
|
加签
|
|
加签
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
- <el-dropdown-item>
|
|
|
|
|
|
+ <el-dropdown-item @click.native="openComment('loseSignVisible')">
|
|
<el-icon><Minus /></el-icon>
|
|
<el-icon><Minus /></el-icon>
|
|
减签
|
|
减签
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
@@ -88,6 +88,24 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-drawer>
|
|
</el-drawer>
|
|
|
|
+
|
|
|
|
+ <!-- 评论弹窗-->
|
|
|
|
+ <review-dialog v-if="reviewVisible" v-model="reviewVisible"></review-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 加签弹窗 -->
|
|
|
|
+ <add-sign-dialog v-if="addSignVisible" v-model="addSignVisible"></add-sign-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 同意或拒绝弹窗 -->
|
|
|
|
+ <consent-or-refuse-dialog v-if="consentOrRefuseVisible" v-model="consentOrRefuseVisible"></consent-or-refuse-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 转交审批弹窗 -->
|
|
|
|
+ <deliver-to-review-dialog v-if="deliverToReviewVisible" v-model="deliverToReviewVisible"></deliver-to-review-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 减签弹窗 -->
|
|
|
|
+ <lose-sign-dialog v-if="loseSignVisible" v-model="loseSignVisible"></lose-sign-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 回退弹窗 -->
|
|
|
|
+ <rollback-dialog v-if="rollbackVisible" v-model="rollbackVisible"></rollback-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -100,6 +118,12 @@ import FlowTypeDot from '@/components/Flow/FlowTypeDot.vue'
|
|
import { ChatLineSquare, Check, Close, Switch, DArrowLeft, Plus, Minus, More } from '@element-plus/icons-vue'
|
|
import { ChatLineSquare, Check, Close, Switch, DArrowLeft, Plus, Minus, More } from '@element-plus/icons-vue'
|
|
import { processTaskListHisTaskApi } from '@/api/flow/processTask'
|
|
import { processTaskListHisTaskApi } from '@/api/flow/processTask'
|
|
import { formatTimestamp } from '@/utils/datetime'
|
|
import { formatTimestamp } from '@/utils/datetime'
|
|
|
|
+import ReviewDialog from '../components/reviewDialog'
|
|
|
|
+import AddSignDialog from '../components/addSignDialog'
|
|
|
|
+import ConsentOrRefuseDialog from '../components/consentOrRefuseDialog'
|
|
|
|
+import DeliverToReviewDialog from '../components/deliverToReviewDialog'
|
|
|
|
+import LoseSignDialog from '../components/loseSignDialog'
|
|
|
|
+import RollbackDialog from '../components/rollbackDialog'
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
modelValue: {
|
|
modelValue: {
|
|
@@ -111,19 +135,17 @@ const props = defineProps({
|
|
default: undefined
|
|
default: undefined
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+const emit = defineEmits(['update:modelValue', 'successFn'])
|
|
|
|
|
|
-onMounted(() => {
|
|
|
|
- processTaskListHisTaskApi(props.messageId).then(data => {
|
|
|
|
- activeData.value = data
|
|
|
|
- })
|
|
|
|
-})
|
|
|
|
-
|
|
|
|
-// 弹窗显示隐藏
|
|
|
|
-const visible = ref(false)
|
|
|
|
|
|
+// 各种操作弹窗显示隐藏
|
|
|
|
+const reviewVisible = ref(false)
|
|
|
|
+const addSignVisible = ref(false)
|
|
|
|
+const consentOrRefuseVisible = ref(false)
|
|
|
|
+const deliverToReviewVisible = ref(false)
|
|
|
|
+const loseSignVisible = ref(false)
|
|
|
|
+const rollbackVisible = ref(false)
|
|
const activeData = ref([])
|
|
const activeData = ref([])
|
|
|
|
|
|
-const emit = defineEmits(['update:modelValue', 'successFn'])
|
|
|
|
-
|
|
|
|
// 关闭按钮
|
|
// 关闭按钮
|
|
const closeDrawer = () => {
|
|
const closeDrawer = () => {
|
|
emit('successFn')
|
|
emit('successFn')
|
|
@@ -143,33 +165,35 @@ const visibleDialog = computed({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
-const formsDialog = [
|
|
|
|
- {
|
|
|
|
- prop: 'username',
|
|
|
|
- label: '评论',
|
|
|
|
- itemType: 'input',
|
|
|
|
- placeholder: '请输入评论',
|
|
|
|
- rules: [{ required: true, message: '请输入评论', trigger: 'blur' }]
|
|
|
|
|
|
+// 操作按钮
|
|
|
|
+const openComment = type => {
|
|
|
|
+ switch (type) {
|
|
|
|
+ case 'reviewVisible':
|
|
|
|
+ reviewVisible.value = !reviewVisible.value
|
|
|
|
+ break
|
|
|
|
+ case 'addSignVisible':
|
|
|
|
+ addSignVisible.value = !addSignVisible.value
|
|
|
|
+ break
|
|
|
|
+ case 'consentOrRefuseVisible':
|
|
|
|
+ consentOrRefuseVisible.value = !consentOrRefuseVisible.value
|
|
|
|
+ break
|
|
|
|
+ case 'deliverToReviewVisible':
|
|
|
|
+ deliverToReviewVisible.value = !deliverToReviewVisible.value
|
|
|
|
+ break
|
|
|
|
+ case 'loseSignVisible':
|
|
|
|
+ loseSignVisible.value = !loseSignVisible.value
|
|
|
|
+ break
|
|
|
|
+ case 'rollbackVisible':
|
|
|
|
+ rollbackVisible.value = !rollbackVisible.value
|
|
|
|
+ break
|
|
}
|
|
}
|
|
-]
|
|
|
|
|
|
+}
|
|
|
|
|
|
-const formOptions = computed(() => {
|
|
|
|
- return {
|
|
|
|
- forms: formsDialog,
|
|
|
|
- labelWidth: 120,
|
|
|
|
- span: 30,
|
|
|
|
- formConfig: {
|
|
|
|
- showCancelBtn: true,
|
|
|
|
- submitLoading: false
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+onMounted(() => {
|
|
|
|
+ processTaskListHisTaskApi(props.messageId).then(data => {
|
|
|
|
+ activeData.value = data
|
|
|
|
+ })
|
|
})
|
|
})
|
|
-
|
|
|
|
-const submitHandler = () => {}
|
|
|
|
-
|
|
|
|
-const openComment = () => {
|
|
|
|
- visible.value = !visible.value
|
|
|
|
-}
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|