工作组会议维护修改

This commit is contained in:
fengachen
2021-09-07 17:19:05 +08:00
parent 00676798ea
commit f8960e04d4
3 changed files with 94 additions and 50 deletions
@@ -464,8 +464,7 @@ export default {
this.newConvokeTime = [this.model.startTime, this.model.endTime] this.newConvokeTime = [this.model.startTime, this.model.endTime]
// 后端需要的注册签到时间 // 后端需要的注册签到时间
this.newSignInTime = [this.model.startSignInTime, this.model.endSignInTime] this.newSignInTime = [this.model.startSignInTime, this.model.endSignInTime]
// 联系人电话
this.model.directorPhone = this.$route.query.directorPhone
this.$nextTick(() => { this.$nextTick(() => {
// 加定时器是因为有可能赋值不成功 // 加定时器是因为有可能赋值不成功
setTimeout( () => { setTimeout( () => {
@@ -504,9 +503,10 @@ export default {
} }
let placeName = values.convokeLocale let placeName = values.convokeLocale
const formData = Object.assign(this.model, values, {venue: this.getPcaText(placeName)}) const formData = Object.assign(this.model, values, {venue: this.getPcaText(placeName)})
// 如果是工作会议维护跳转的需要加上会议类型为工作组会议 // 如果是工作会议维护跳转的需要加上会议类型为工作组会议和工作组id
if(!this.isWorkGroupMeetType) { if(!this.isWorkGroupMeetType) {
formData.meetingType = '1' formData.meetingType = '1'
formData.workingGroupId = this.$route.query.workingGroupProjectId
} }
// 转换召开时间 // 转换召开时间
formData.startTime = this.newConvokeTime[0] formData.startTime = this.newConvokeTime[0]
@@ -252,7 +252,6 @@ export default {
path: '/incomePayments/meetManage/AddOrDetailMeet', path: '/incomePayments/meetManage/AddOrDetailMeet',
query: { query: {
id: record.id, id: record.id,
directorPhone: record.directorPhone
} }
}) })
}, },
@@ -12,24 +12,22 @@
<a-row> <a-row>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="会议名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="会议名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入会议名称" v-model="queryParam.workingGroupProject"></a-input> <a-input placeholder="请输入会议名称" v-model="queryParam.meetingName"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="10" :lg="12" :md="12" :sm="24"> <a-col :xl="10" :lg="12" :md="12" :sm="24">
<a-form-item label="会议时间"> <a-form-item label="会议时间">
<j-date <j-date
placeholder="请选择开始日期" placeholder="请选择开始日期"
date-format="YYYY-MM-DD HH:mm:ss"
class="query-group-cust" class="query-group-cust"
v-model="queryParam.startTime" v-model="queryParam.meetingStartTime"
:disabled-date="disabledStartDate"> :disabled-date="disabledStartDate">
</j-date> </j-date>
<span class="query-group-split-cust"></span> <span class="query-group-split-cust"></span>
<j-date <j-date
placeholder="请选择结束日期" placeholder="请选择结束日期"
date-format="YYYY-MM-DD HH:mm:ss"
class="query-group-cust" class="query-group-cust"
v-model="queryParam.endTime" v-model="queryParam.meetingEndTime"
:disabled-date="disabledEndDate"> :disabled-date="disabledEndDate">
</j-date> </j-date>
</a-form-item> </a-form-item>
@@ -37,24 +35,22 @@
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="年份" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="年份" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-year-date style="width:100%" placeholder="请选择年份" <j-year-date style="width:100%" placeholder="请选择年份"
v-model="queryParam.year"></j-year-date> v-model="queryParam.particularYear"></j-year-date>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="10" :lg="12" :md="12" :sm="24"> <a-col :xl="10" :lg="12" :md="12" :sm="24">
<a-form-item label="创建时间"> <a-form-item label="创建时间">
<j-date <j-date
placeholder="请选择开始日期" placeholder="请选择开始日期"
date-format="YYYY-MM-DD HH:mm:ss"
class="query-group-cust" class="query-group-cust"
v-model="queryParam.startCreateTime" v-model="queryParam.createTime_begin"
:disabled-date="disabledStartCreateDate"> :disabled-date="disabledStartCreateDate">
</j-date> </j-date>
<span class="query-group-split-cust"></span> <span class="query-group-split-cust"></span>
<j-date <j-date
placeholder="请选择结束日期" placeholder="请选择结束日期"
date-format="YYYY-MM-DD HH:mm:ss"
class="query-group-cust" class="query-group-cust"
v-model="queryParam.endCreateTime" v-model="queryParam.createTime_end"
:disabled-date="disabledEndCreateDate"> :disabled-date="disabledEndCreateDate">
</j-date> </j-date>
</a-form-item> </a-form-item>
@@ -94,8 +90,8 @@
size="middle" size="middle"
bordered bordered
rowKey="id" rowKey="id"
:scroll="{x:true}"
:columns="columns" :columns="columns"
:scroll="{x: 1500}"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
@@ -132,6 +128,7 @@ import JDate from '@comp/tools/JDate'
import moment from 'moment' import moment from 'moment'
import JDictSelectTag from '@comp/dict/JDictSelectTag' import JDictSelectTag from '@comp/dict/JDictSelectTag'
import PublishRemindModal from '@views/projectManagement/modules/PublishRemindModal' import PublishRemindModal from '@views/projectManagement/modules/PublishRemindModal'
import '@/assets/less/TableExpand.less'
export default { export default {
name: 'ConferenceMaintenance', name: 'ConferenceMaintenance',
@@ -141,6 +138,7 @@ export default {
return { return {
workingGroupProject: '', workingGroupProject: '',
workingGroupProjectId: '', workingGroupProjectId: '',
disableMixinCreated:true,
list: [], list: [],
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
@@ -151,8 +149,8 @@ export default {
sm: { span: 10 } sm: { span: 10 }
}, },
dateKeyObj: { dateKeyObj: {
beginKey: 'startTime', beginKey: 'meetingStartTime',
endKey: 'endTime' endKey: 'meetingEndtTime'
}, },
columns: [ columns: [
{ {
@@ -164,60 +162,82 @@ export default {
customRender: function (t, r, index) { customRender: function (t, r, index) {
return parseInt(index) + 1 return parseInt(index) + 1
} }
}, { },
{
title: '会议名称', title: '会议名称',
align: 'center', align: 'center',
dataIndex: '', dataIndex: 'meetingName',
scopedSlots: { customRender: 'projectName' } scopedSlots: {customRender: 'htmlSlot'},
}, { width: 160,
},
{
title: '会议类型', title: '会议类型',
align: 'center', align: 'center',
width: 140, dataIndex: 'meetingType_dictText',
dataIndex: '' width: 100,
}, { },
{
title: '负责人', title: '负责人',
align: 'center', align: 'center',
dataIndex: '', dataIndex: 'directorName',
}, { width: 160,
},
{
title: '召开时间', title: '召开时间',
align: 'center', align: 'center',
dataIndex: '', dataIndex: 'startTime',
width: 180, width: 160,
}, { customRender: function (text, record) {
return `${record.startTime}~${record.endTime}`
}
},
{
title: '召开地点',
align: 'center',
dataIndex: 'venue',
width: 160,
customRender: function (text, record) {
return text + '/' + record.address
}
},
{
title: '年份', title: '年份',
align: 'center', align: 'center',
dataIndex: '', dataIndex: 'particularYear',
width: 120, width: 100,
}, { },
{
title: '已提醒', title: '已提醒',
align: 'center', align: 'center',
width: 80, dataIndex: '',
dataIndex: '' width: 100,
}, { },
{
title: '创建时间', title: '创建时间',
align: 'center', align: 'center',
dataIndex: '', dataIndex: 'createTime',
width: 180, },
}, { {
title: '操作', title: '操作',
dataIndex: 'action',
align: 'center', align: 'center',
fixed: 'right', fixed: 'right',
width: 180, width: 160,
scopedSlots: {customRender: 'action'} scopedSlots: {customRender: 'action'}
} },
], ],
url: { url: {
list: '', list: '/meeting/payMeeting/page',
delete: '', delete: '/meeting/payMeeting/delete',
deleteBatch: '', deleteBatch: '/meeting/payMeeting/deleteBatch',
exportXlsUrl: '' exportXlsUrl: '/meeting/payMeeting/exportXls',
} }
} }
}, },
created() { created() {
this.workingGroupProject = this.$route.query.workingGroupProject this.workingGroupProject = this.$route.query.workingGroupProject
this.workingGroupProjectId = this.$route.query.workingGroupProjectId this.workingGroupProjectId = this.$route.query.workingGroupProjectId
this.filters.workingGroupId = this.workingGroupProjectId
this.loadData(1)
}, },
methods: { methods: {
/** /**
@@ -242,6 +262,20 @@ export default {
}) })
}, },
/* /*
* 编辑
* */
handleEdit(record){
// 记录当前的工作组id
let currentId = this.$route.query.workingGroupProjectId
this.$router.push({
path: '/incomePayments/meetManage/AddOrDetailMeet',
query:{
workingGroupProjectId:currentId,
id: record.id,
}
})
},
/*
* 发布提醒 * 发布提醒
* */ * */
publishRemind() { publishRemind() {
@@ -263,7 +297,7 @@ export default {
* 创建时间开始禁用 * 创建时间开始禁用
* */ * */
disabledStartCreateDate(startValue){ disabledStartCreateDate(startValue){
const endValue = this.queryParam.endCreateTime && moment(this.queryParam.endCreateTime, this.rangeDateFormat.end) const endValue = this.queryParam.createTime_end && moment(this.queryParam.createTime_end, this.rangeDateFormat.end)
if (!startValue || !endValue) { if (!startValue || !endValue) {
return false return false
} }
@@ -273,12 +307,23 @@ export default {
* 创建时间结束禁用 * 创建时间结束禁用
* */ * */
disabledEndCreateDate(endValue) { disabledEndCreateDate(endValue) {
const startValue = this.queryParam.startCreateTime && moment(this.queryParam.startCreateTime, this.rangeDateFormat.begin) const startValue = this.queryParam.createTime_begin && moment(this.queryParam.createTime_begin, this.rangeDateFormat.begin)
if (!endValue || !startValue) { if (!endValue || !startValue) {
return false return false
} }
return startValue.valueOf() > endValue.valueOf() return startValue.valueOf() > endValue.valueOf()
}, },
/*
* 修改查询条件
* */
searchQuery() {
this.queryParam.meetingStartTime = this.queryParam.meetingStartTime ? this.queryParam.meetingStartTime + ' ' + '00:00:00' : undefined
this.queryParam.meetingEndTime = this.queryParam.meetingEndTime ? this.queryParam.meetingEndTime + ' ' + '23:59:59' : undefined
this.queryParam.createTime_begin = this.queryParam.createTime_begin ? this.queryParam.createTime_begin + ' ' + '00:00:00' : undefined
this.queryParam.createTime_end = this.queryParam.createTime_end ? this.queryParam.createTime_end + ' ' + '23:59:59' : undefined
this.lastQueryParam = {...this.queryParam}
this.loadData(1)
},
} }
} }
</script> </script>