【bug】更换分标委会议发布的接口

This commit is contained in:
fengachen
2021-10-28 20:27:26 +08:00
parent 7175b0945c
commit 828c17142e
3 changed files with 38 additions and 16 deletions
+3
View File
@@ -6,6 +6,8 @@ const getWorkingGroupById = (params) => getAction('/project/payWorkingGroup/quer
const getChargeNotice = (param) => getAction('/project/payWorkingGroupSubitem/getCharge', param)
// 工作组会议的发布提醒
const publishRemind = (param) => postAction('/meeting/workGroupMeeting/publishReminder', param)
// 分标委会议的发布提醒
const commitePublishRemind = (param) => postAction('/meeting/committeeMeeting/publishReminder',param)
// 通过id获取收入合同信息
const getRevenueContractById = (param) => getAction('/contract/payIncomeContract/queryById', param)
// 收入合同审核
@@ -83,6 +85,7 @@ export {
getWorkingGroupById,
getChargeNotice,
publishRemind,
commitePublishRemind,
getRevenueContractById,
aduitRevenueContract,
associatedProject,
@@ -394,7 +394,7 @@ export default {
return
} else {
// 传入选中的会议id
this.$refs.publishRemindModal.open(this.selectedRowKeys)
this.$refs.publishRemindModal.open(this.selectedRowKeys,true)
this.$refs.publishRemindModal.title = '发布'
}
@@ -66,7 +66,7 @@
<script>
import {JeroListMixin} from '@/mixins/JeroListMixin'
import {publishRemind} from '@api/incomePaymentsApi'
import {publishRemind,commitePublishRemind} from '@api/incomePaymentsApi'
export default {
@@ -220,20 +220,39 @@ export default {
subitemIds: this.selectedRowKeys,
projectType:this.remindType
}
publishRemind(param).then(res => {
if (res.success) {
this.$message.success(res.message)
this.$emit('ok')
this.confirmLoading = false
this.handleCancel()
} else {
this.$message.warn(res.message)
}
}).finally(() => {
setTimeout(() => {
this.confirmLoading = false
}, 1000)
})
// 分标委用分标委的接口
if(this.$route.query.meetingType === '5' ){
commitePublishRemind(param).then(res => {
if (res.success) {
this.$message.success(res.message)
this.$emit('ok')
this.confirmLoading = false
this.handleCancel()
} else {
this.$message.warn(res.message)
}
}).finally(() => {
setTimeout(() => {
this.confirmLoading = false
}, 1000)
})
}else {
publishRemind(param).then(res => {
if (res.success) {
this.$message.success(res.message)
this.$emit('ok')
this.confirmLoading = false
this.handleCancel()
} else {
this.$message.warn(res.message)
}
}).finally(() => {
setTimeout(() => {
this.confirmLoading = false
}, 1000)
})
}
}
},
handleCancel() {