工作组会议的发布提醒与上传文件

This commit is contained in:
fengachen
2021-09-13 16:51:02 +08:00
parent 3ad8ebc039
commit 33012457c3
4 changed files with 71 additions and 42 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ const getWorkingGroupById = (params) => getAction('/project/payWorkingGroup/quer
// 判断工作组成员是否设置来款通知 // 判断工作组成员是否设置来款通知
const getChargeNotice = (param) => getAction('/project/payWorkingGroupSubitem/getCharge', param) const getChargeNotice = (param) => getAction('/project/payWorkingGroupSubitem/getCharge', param)
// 工作组会议的发布提醒 // 工作组会议的发布提醒
const publishRemind = (param) => getAction('',param) const publishRemind = (param) => postAction('/meeting/payMeeting/publishReminder',param)
// 通过id获取收入合同信息 // 通过id获取收入合同信息
const getRevenueContractById = (param) => getAction('/contract/payIncomeContract/queryById', param) const getRevenueContractById = (param) => getAction('/contract/payIncomeContract/queryById', param)
// 收入合同审核 // 收入合同审核
+1 -1
View File
@@ -76,7 +76,7 @@ export default {
computed: { computed: {
// eslint-disable-next-line vue/return-in-computed-property // eslint-disable-next-line vue/return-in-computed-property
status() { status() {
if (this.statuObj.amountReceivable === 0) { if (this.statuObj.amountReceivable === '0.00' || this.statuObj.receivableAmount === '0.00' ) {
if(this.statusType){ if(this.statusType){
// 应收金额为0 未到账 未邮寄 未开票的状态 // 应收金额为0 未到账 未邮寄 未开票的状态
return zero return zero
@@ -59,6 +59,7 @@
<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-dict-select-tag style="width: 100%" <j-dict-select-tag style="width: 100%"
dict-code="yn"
v-model="queryParam.remind" v-model="queryParam.remind"
placeholder="请选择提醒类型"></j-dict-select-tag> placeholder="请选择提醒类型"></j-dict-select-tag>
</a-form-item> </a-form-item>
@@ -86,18 +87,18 @@
<!-- table表格区域--> <!-- table表格区域-->
<div> <div>
<a-table <a-table
ref="table" ref="table"
size="middle" size="middle"
bordered bordered
rowKey="id" rowKey="id"
:scroll="{x:true}" :scroll="{x:true}"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange" @change="handleTableChange"
class="j-table-force-nowrap"> class="j-table-force-nowrap">
<!-- 工作组名称--> <!-- 工作组名称-->
<template slot="projectName" slot-scope="text, record"> <template slot="projectName" slot-scope="text, record">
@@ -109,44 +110,52 @@
</template> </template>
<span slot="action" class="action-span-cell" slot-scope="text, record"> <span slot="action" class="action-span-cell" slot-scope="text, record">
<a @click="uploadFile">上传文件</a> <a @click="uploadFile(record)">上传文件</a>
<a @click="applyMsg">报名信息</a> <a @click="applyMsg">报名信息</a>
<a @click="handleEdit(record)">编辑</a> <a @click="handleEdit(record)">编辑</a>
<a @click="handleDelete(record.id)">删除</a> <a @click="handleDelete(record.id)">删除</a>
</span> </span>
</a-table> </a-table>
</div> </div>
<publish-remind-modal ref="publishRemindModal" @ok="loadData"></publish-remind-modal> <publish-remind-modal ref="publishRemindModal" @ok="modalFormOk"></publish-remind-modal>
<upload-meet-file-modal ref="modalForm" @ok="modalFormOk"></upload-meet-file-modal>
</a-card> </a-card>
</template> </template>
<script> <script>
import { JeroListMixin } from '@/mixins/JeroListMixin' import {JeroListMixin} from '@/mixins/JeroListMixin'
import {RangeDateMixin} from '@/mixins/RangeDateMixin' import {RangeDateMixin} from '@/mixins/RangeDateMixin'
import JYearDate from '@comp/jero/JYearDate' import JYearDate from '@comp/jero/JYearDate'
import JDate from '@comp/tools/JDate' 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 UploadMeetFileModal from '@views/incomePayments/meetManage/modules/UploadMeetFileModal'
import '@/assets/less/TableExpand.less' import '@/assets/less/TableExpand.less'
export default { export default {
name: 'ConferenceMaintenance', name: 'ConferenceMaintenance',
components: { JYearDate,JDate,JDictSelectTag,PublishRemindModal }, components: {
mixins: [JeroListMixin,RangeDateMixin], JYearDate,
JDate,
JDictSelectTag,
PublishRemindModal,
UploadMeetFileModal
},
mixins: [JeroListMixin, RangeDateMixin],
data() { data() {
return { return {
workingGroupProject: '', workingGroupProject: '',
workingGroupProjectId: '', workingGroupProjectId: '',
disableMixinCreated:true, disableMixinCreated: true,
list: [], list: [],
labelCol: { labelCol: {
xs: { span: 24 }, xs: {span: 24},
sm: { span: 5 } sm: {span: 5}
}, },
wrapperCol: { wrapperCol: {
xs: { span: 24 }, xs: {span: 24},
sm: { span: 10 } sm: {span: 10}
}, },
dateKeyObj: { dateKeyObj: {
beginKey: 'meetingStartTime', beginKey: 'meetingStartTime',
@@ -209,7 +218,7 @@ export default {
{ {
title: '已提醒', title: '已提醒',
align: 'center', align: 'center',
dataIndex: '', dataIndex: 'remind_dictText',
width: 100, width: 100,
}, },
{ {
@@ -236,7 +245,7 @@ export default {
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.filters.workingGroupId = this.workingGroupProjectId
this.loadData(1) this.loadData(1)
}, },
methods: { methods: {
@@ -251,26 +260,26 @@ export default {
/* /*
* 新增 * 新增
* */ * */
handleAdd(){ handleAdd() {
// 记录当前的工作组id // 记录当前的工作组id
let currentId = this.$route.query.workingGroupProjectId let currentId = this.$route.query.workingGroupProjectId
this.$router.push({ this.$router.push({
path: '/incomePayments/meetManage/AddOrDetailMeet', path: '/incomePayments/meetManage/AddOrDetailMeet',
query:{ query: {
workingGroupProjectId:currentId workingGroupProjectId: currentId
} }
}) })
}, },
/* /*
* 编辑 * 编辑
* */ * */
handleEdit(record){ handleEdit(record) {
// 记录当前的工作组id // 记录当前的工作组id
let currentId = this.$route.query.workingGroupProjectId let currentId = this.$route.query.workingGroupProjectId
this.$router.push({ this.$router.push({
path: '/incomePayments/meetManage/AddOrDetailMeet', path: '/incomePayments/meetManage/AddOrDetailMeet',
query:{ query: {
workingGroupProjectId:currentId, workingGroupProjectId: currentId,
id: record.id, id: record.id,
} }
}) })
@@ -279,24 +288,31 @@ export default {
* 发布提醒 * 发布提醒
* */ * */
publishRemind() { publishRemind() {
this.$refs.publishRemindModal.open() if (this.selectionRows.length === 0) {
this.$refs.publishRemindModal.title = '发布-提醒' this.$message.warn('请选择一个会议')
return
} else {
// 传入选中的会议id
this.$refs.publishRemindModal.open(this.selectedRowKeys)
this.$refs.publishRemindModal.title = '发布-提醒'
}
}, },
/* /*
* 上传文件 * 上传文件
* */ * */
uploadFile() { uploadFile(record) {
this.$refs.modalForm.edit(record)
}, },
/* /*
* 报名信息 * 报名信息
* */ * */
applyMsg() {}, applyMsg() {
},
/* /*
* 创建时间开始禁用 * 创建时间开始禁用
* */ * */
disabledStartCreateDate(startValue){ disabledStartCreateDate(startValue) {
const endValue = this.queryParam.createTime_end && moment(this.queryParam.createTime_end, 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
@@ -111,14 +111,21 @@ export default {
add: '/project/payCommonProject/add', add: '/project/payCommonProject/add',
edit: '/project/payCommonProject/edit', edit: '/project/payCommonProject/edit',
list: '/project/payWorkingGroupSubitem/list', list: '/project/payWorkingGroupSubitem/list',
} },
// 会议维护选中的会议
selectedMetingList:[],
} }
}, },
methods: { methods: {
open() { open(meetingList) {
this.visible = true this.visible = true
// 保存选中的会议
this.selectedMetingList = [...meetingList]
// 列表需要工作组id参数
this.filters.workingGroupId = this.$route.query.workingGroupProjectId this.filters.workingGroupId = this.$route.query.workingGroupProjectId
this.loadData(1) this.searchReset()
}, },
close() { close() {
this.$emit('close') this.$emit('close')
@@ -129,16 +136,22 @@ export default {
this.$message.warn('请至少选择一个成员单位') this.$message.warn('请至少选择一个成员单位')
return return
} else { } else {
this.confirmLoading =true
const param = { const param = {
arr:this.selectionRows meetingIds:this.selectedMetingList,
subitemIds:this.selectedRowKeys
} }
publishRemind(param).then(res => { publishRemind(param).then(res => {
if(res.success){ if(res.success){
this.$message.success(res.message) this.$message.success(res.message)
this.$emit('ok')
this.confirmLoading = false
this.handleCancel() this.handleCancel()
}else { }else {
this.$message.warn(res.message) this.$message.warn(res.message)
} }
}).finally(() => {
this.confirmLoading = false
}) })
} }
}, },