feat: 抄送成功后刷新功能
This commit is contained in:
@@ -392,7 +392,7 @@ const filePreviewParam = ref({
|
||||
})
|
||||
const filePreviewShow = ref(false)
|
||||
const route = useRoute()
|
||||
const emit = defineEmits(['update:value'])
|
||||
const emit = defineEmits(['update:value','ccSend'])
|
||||
const _value = computed({
|
||||
get() {
|
||||
return props.value;
|
||||
@@ -426,7 +426,7 @@ const addUser = async () => {
|
||||
message: '抄送成功',
|
||||
type: 'success'
|
||||
})
|
||||
tableIns.value.refresh()
|
||||
emit('ccSend')
|
||||
} else {
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
|
||||
@@ -163,7 +163,7 @@ import SelectPreProcess from "@/components/SelectPreProcess.vue";
|
||||
import {applyCcSend} from "@/api/expense-manage";
|
||||
import UserPicker from "@/views/workflow/process/common/UserPicker.vue";
|
||||
|
||||
const emit = defineEmits(['update:value'])
|
||||
const emit = defineEmits(['update:value','ccSend'])
|
||||
const tagsViewStore = useTagsView()
|
||||
const cacheStore = useCacheStore()
|
||||
const props = defineProps({
|
||||
@@ -238,7 +238,7 @@ const addUser = async () => {
|
||||
message: '抄送成功',
|
||||
type: 'success'
|
||||
})
|
||||
tableIns.value.refresh()
|
||||
emit('ccSend')
|
||||
} else {
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
:formData="detailData.formData"
|
||||
:data="detailData"
|
||||
:processViewer="commonProvessViewer"
|
||||
:fileListShow="fileListShow"
|
||||
:fileListShow="fileListShow" @ccSend="ccSendRefresh"
|
||||
v-model:value="auditOpinion"/>
|
||||
<ApprovalDetail type="approval"
|
||||
<ApprovalDetail type="approval" @ccSend="ccSendRefresh"
|
||||
v-if="showActive == '20'&&!editShow"
|
||||
:formData="detailData.formData"
|
||||
:data="detailData"
|
||||
@@ -27,7 +27,7 @@
|
||||
<div v-if="showActive == '30'&&!editShow">
|
||||
<project-attachment/>
|
||||
</div>
|
||||
<ApprovalDetail type="execute"
|
||||
<ApprovalDetail type="execute" @ccSend="ccSendRefresh"
|
||||
v-if="showActive == '40'&&!editShow"
|
||||
:formData="detailData.formData"
|
||||
:data="detailData"
|
||||
@@ -36,7 +36,7 @@
|
||||
:preProcessShow="preProcessShow"
|
||||
:basicData="basicData"
|
||||
v-model:value="auditOpinion"/>
|
||||
<ApprovalDetail type="archivist"
|
||||
<ApprovalDetail type="archivist" @ccSend="ccSendRefresh"
|
||||
v-if="showActive == '50'&&!editShow"
|
||||
:formData="detailData.formData"
|
||||
:data="detailData"
|
||||
@@ -98,7 +98,9 @@ localStorage.removeItem('projectPersonUserList')
|
||||
localStorage.removeItem('optionalChargeLeadershipList')
|
||||
localStorage.removeItem('originallySelectedList')
|
||||
|
||||
|
||||
const ccSendRefresh=()=>{
|
||||
getAllInfo(route.query.step)
|
||||
}
|
||||
const getAllInfo = async (state) => {
|
||||
const loading = ElLoading.service({fullscreen: true})
|
||||
detailData.value = {
|
||||
|
||||
Reference in New Issue
Block a user