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