diff --git a/src/views/projectManagement/modules/PublishRemindModal.vue b/src/views/projectManagement/modules/PublishRemindModal.vue
index 0468214..ba05b05 100644
--- a/src/views/projectManagement/modules/PublishRemindModal.vue
+++ b/src/views/projectManagement/modules/PublishRemindModal.vue
@@ -11,11 +11,19 @@
-
+
+
+
+
+
+
+
+
+
查询
@@ -54,7 +62,7 @@
- 确定发布
+ 确定发布
取消
@@ -77,6 +85,7 @@ export default {
confirmLoading: false,
form: this.$form.createForm(this),
disableMixinCreated: true,
+ // 工作组发布提醒 表头
columns: [
{
title: '序号',
@@ -110,6 +119,40 @@ export default {
// scopedSlots: {customRender: 'text'}
},
],
+ // 分标委发布提醒 表头
+ commitColumns: [
+ {
+ title: '序号',
+ dataIndex: '',
+ key: 'rowIndex',
+ width: 60,
+ align: 'center',
+ customRender: function (t, r, index) {
+ return parseInt(index) + 1
+ }
+ },
+ {
+ title: '成员单位',
+ align: 'center',
+ width: 200,
+ dataIndex: 'companyName',
+ scopedSlots: {customRender: 'text'}
+ },
+ {
+ title: '企业联系人',
+ align: 'center',
+ width: 200,
+ dataIndex: 'contactsName',
+ scopedSlots: {customRender: 'text'}
+ },
+ {
+ title: '是否提醒',
+ align: 'center',
+ width: 200,
+ dataIndex: 'remind',
+ // scopedSlots: {customRender: 'text'}
+ },
+ ],
model: {},
labelCol: {
xs: {span: 24},
@@ -125,26 +168,40 @@ export default {
list: '/project/payWorkingGroupSubitem/list',
},
// 会议维护选中的会议
- selectedMetingList:[],
- newColumns:[]
+ selectedMetingList: [],
+ newColumns: [],
+ // 提醒类型 1 是工作组 2 是分标委
+ remindType:'',
}
},
methods: {
open(meetingList) {
- this.newColumns = [...this.columns]
this.visible = true
// 保存选中的会议
this.selectedMetingList = [...meetingList]
// 列表需要工作组id参数
this.filters.workingGroupId = this.$route.query.workingGroupProjectId
+ // 分表委会议需要分标标委的id
+ if (this.$route.query.meetingType === '5') {
+ // 分标委
+ this.newColumns = [...this.commitColumns]
+ this.filters.id = this.$route.query.id
+ this.remindType = 2
+ // 分表委成员
+ this.url.list = '/payCaseCommitteeSubitem/payCaseCommitteeSubitem/list'
+ } else {
+ // 工作组
+ this.remindType = 1
+ this.newColumns = [...this.columns]
+ }
// 发布提醒需要会议id 只有选择一个会议的时候 才会有这个参数
- if(meetingList.length === 1) {
- this.filters.meetingId = meetingList[0]
+ if (meetingList.length === 1) {
+ this.filters.meetingId = meetingList[0]
}
// 选择多个会议的时候不需要提醒字段 这样写是因为无法精准定位每一个人对应的每一个会议 这个人是否被提醒
- if(meetingList.length > 1){
+ if (meetingList.length > 1) {
// 去掉列表的提醒字段
- this.newColumns = this.newColumns.filter( item => item.dataIndex !== 'remind')
+ this.newColumns = this.newColumns.filter(item => item.dataIndex !== 'remind')
}
this.searchReset()
},
@@ -157,18 +214,19 @@ export default {
this.$message.warn('请至少选择一个成员单位')
return
} else {
- this.confirmLoading =true
+ this.confirmLoading = true
const param = {
- meetingIds:this.selectedMetingList,
- subitemIds:this.selectedRowKeys
+ meetingIds: this.selectedMetingList,
+ subitemIds: this.selectedRowKeys,
+ projectType:this.remindType
}
publishRemind(param).then(res => {
- if(res.success){
+ if (res.success) {
this.$message.success(res.message)
this.$emit('ok')
this.confirmLoading = false
this.handleCancel()
- }else {
+ } else {
this.$message.warn(res.message)
}
}).finally(() => {