update 起草组成员信息对接
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<page-header-title :is-level-one="false" :level-two-title="workingGroupProject"></page-header-title>
|
||||
<page-header-title :is-level-one="false" :level-two-title="draftingGroupProject"></page-header-title>
|
||||
<a-card :bordered="false">
|
||||
<div class="part-title">
|
||||
<div class="part-title-text">起草组信息</div>
|
||||
@@ -13,18 +13,18 @@
|
||||
:key="index">
|
||||
<div class="work-group-detail-item-title">{{ item.title }}:</div>
|
||||
<div class="work-group-detail-item-content work-group-detail-item-filename"
|
||||
v-if="(item.fieldName === 'chargeNoticeAId' || item.fieldName === 'chargeNoticeBId') && workingGroupDetail[item.fieldName]">
|
||||
<preview-file :file-id="workingGroupDetail[item.fieldName]"></preview-file>
|
||||
v-if="(item.fieldName === 'chargeNoticeAId' || item.fieldName === 'chargeNoticeBId') && draftingGroupDetail[item.fieldName]">
|
||||
<preview-file :file-id="draftingGroupDetail[item.fieldName]"></preview-file>
|
||||
</div>
|
||||
<div class="work-group-detail-item-content" v-else>{{ workingGroupDetail[item.fieldName] }}</div>
|
||||
<div class="work-group-detail-item-content" v-else>{{ draftingGroupDetail[item.fieldName] }}</div>
|
||||
</div>
|
||||
<div class="work-group-detail-item">
|
||||
<div class="work-group-detail-item-title">任务及目标:</div>
|
||||
<div class="work-group-detail-item-content">{{ workingGroupDetail.missionAndObjectives }}</div>
|
||||
<div class="work-group-detail-item-content">{{ draftingGroupDetail.missionAndObjectives }}</div>
|
||||
</div>
|
||||
<div class="work-group-detail-item">
|
||||
<div class="work-group-detail-item-title">备注:</div>
|
||||
<div class="work-group-detail-item-content">{{ workingGroupDetail.remarks }}</div>
|
||||
<div class="work-group-detail-item-content">{{ draftingGroupDetail.remarks }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-spin>
|
||||
@@ -146,29 +146,19 @@
|
||||
|
||||
<project-detail-modal ref="projectDetail"></project-detail-modal>
|
||||
<drafting-group-member-unit-module ref="modalForm" @ok="modalFormOk"></drafting-group-member-unit-module>
|
||||
<drafting-group-member-set-charge-notice ref="setChargeNotic"
|
||||
@ok="modalFormOk"></drafting-group-member-set-charge-notice>
|
||||
|
||||
<email-error-msg-modal ref="emailError"></email-error-msg-modal>
|
||||
|
||||
<drafting-group-set-label ref="workGroupSetLabel" @ok="modalFormOk"></drafting-group-set-label>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import JYearDate from '@comp/jero/JYearDate'
|
||||
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
||||
import { getWorkingGroupById, dunningReminder } from '@api/incomePaymentsApi'
|
||||
import {getDraftingGroupById} from '@api/incomePaymentsApi'
|
||||
import StatusSlot from '../../components/tools/StatusSlot'
|
||||
import ProjectDetailModal from '../../components/ProjectDetailModal'
|
||||
import DraftingGroupMemberUnitModule from './modules/DraftingGroupMemberUnitModule'
|
||||
import DraftingGroupMemberSetChargeNotice from './modules/DraftingGroupMemberSetChargeNotice'
|
||||
import Vue from 'vue'
|
||||
import { ACCESS_TOKEN } from '../../store/mutation-types'
|
||||
import PreviewFile from '../../components/jero/PreviewFile'
|
||||
import DraftingGroupSetLabel from '@views/draftingGroup/modules/DraftingGroupSetLabel'
|
||||
import EmailErrorMsgModal from '../projectManagement/modules/EmailErrorMsgModal'
|
||||
|
||||
// eslint-disable-next-line no-undef,no-unused-vars
|
||||
const Base64 = require('js-base64').Base64
|
||||
@@ -176,15 +166,11 @@ const Base64 = require('js-base64').Base64
|
||||
export default {
|
||||
name: 'DraftingGroupMemberUnitMaintenance',
|
||||
components: {
|
||||
JYearDate,
|
||||
PageHeaderTitle,
|
||||
StatusSlot,
|
||||
ProjectDetailModal,
|
||||
DraftingGroupMemberUnitModule,
|
||||
DraftingGroupMemberSetChargeNotice,
|
||||
PreviewFile,
|
||||
EmailErrorMsgModal,
|
||||
DraftingGroupSetLabel
|
||||
PreviewFile
|
||||
},
|
||||
mixins: [JeroListMixin],
|
||||
computed: {
|
||||
@@ -195,16 +181,16 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
disableMixinCreated: true,
|
||||
workingGroupProject: '',
|
||||
workingGroupProjectId: '',
|
||||
draftingGroupProject: '',
|
||||
draftingGroupProjectId: '',
|
||||
spinning: false,
|
||||
detailTitleList: [
|
||||
{
|
||||
title: '起草组项目名称',
|
||||
fieldName: 'workingGroupProject'
|
||||
fieldName: 'draftingGroupProject'
|
||||
},{
|
||||
title: '关联工作组',
|
||||
fieldName: 'workingGroupProject'
|
||||
fieldName: 'workingGroupName'
|
||||
}, {
|
||||
title: '负责人A',
|
||||
fieldName: 'principalNameA'
|
||||
@@ -228,12 +214,12 @@ export default {
|
||||
sm: { span: 10 }
|
||||
},
|
||||
url: {
|
||||
list: '/project/payWorkingGroupSubitem/list',
|
||||
delete: '/project/payWorkingGroupSubitem/delete',
|
||||
deleteBatch: '/project/payWorkingGroupSubitem/deleteBatch',
|
||||
exportXlsUrl: '/project/payWorkingGroupSubitem/exportXls',
|
||||
importExcelUrl: '/project/payWorkingGroupSubitem/importExcel',
|
||||
downTemplateUrl: '/project/payWorkingGroupSubitem/downloadExcelModel'
|
||||
list: '/drafting/payDraftingGroupSubitem/list',
|
||||
delete: '/drafting/payDraftingGroupSubitem/delete',
|
||||
deleteBatch: '/drafting/payDraftingGroupSubitem/deleteBatch',
|
||||
exportXlsUrl: '/drafting/payDraftingGroupSubitem/exportXls',
|
||||
importExcelUrl: '/drafting/payDraftingGroupSubitem/importExcel',
|
||||
downTemplateUrl: '/drafting/payDraftingGroupSubitem/downloadExcelModel'
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
@@ -334,7 +320,7 @@ export default {
|
||||
scopedSlots: { customRender: 'action' }
|
||||
}
|
||||
],
|
||||
workingGroupDetail: {},
|
||||
draftingGroupDetail: {},
|
||||
chargeNoticeList: [], // 收费通知号选项
|
||||
importParam: {},
|
||||
// 给定当年作为来款年份默认查询条件
|
||||
@@ -357,18 +343,18 @@ export default {
|
||||
*/
|
||||
initWorkGroupData() {
|
||||
this.spinning = true
|
||||
this.workingGroupProject = this.$route.query.workingGroupProject || ''
|
||||
this.workingGroupProjectId = this.$route.query.workingGroupProjectId || ''
|
||||
this.draftingGroupProject = this.$route.query.draftingGroupProject || ''
|
||||
this.draftingGroupProjectId = this.$route.query.draftingGroupProjectId || ''
|
||||
this.canOperate = this.$route.query.canOperate === 'true' ? true : false
|
||||
this.filters.workingGroupId = this.workingGroupProjectId
|
||||
this.importParam.workGroupId = this.workingGroupProjectId
|
||||
this.filters.draftingGroupId = this.draftingGroupProjectId
|
||||
this.importParam.workGroupId = this.draftingGroupProjectId
|
||||
this.loadData()
|
||||
let param = {
|
||||
id: this.workingGroupProjectId
|
||||
id: this.draftingGroupProjectId
|
||||
}
|
||||
getWorkingGroupById(param).then(res => {
|
||||
getDraftingGroupById(param).then(res => {
|
||||
if (res.success) {
|
||||
this.workingGroupDetail = res.result || {}
|
||||
this.draftingGroupDetail = res.result || {}
|
||||
}
|
||||
}).finally(() => {
|
||||
this.spinning = false
|
||||
@@ -376,119 +362,17 @@ export default {
|
||||
},
|
||||
|
||||
handleAdd: function () {
|
||||
this.getChargeNoticeList()
|
||||
this.$refs.modalForm.workingGroupId = this.workingGroupProjectId
|
||||
this.$refs.modalForm.chargeNoticeList = this.chargeNoticeList
|
||||
this.$refs.modalForm.draftingGroupId = this.draftingGroupProjectId
|
||||
this.$refs.modalForm.add()
|
||||
this.$refs.modalForm.title = '添加成员'
|
||||
this.$refs.modalForm.disableSubmit = false
|
||||
},
|
||||
handleEdit: function (record) {
|
||||
this.getChargeNoticeList()
|
||||
this.$refs.modalForm.workingGroupId = this.workingGroupProjectId
|
||||
this.$refs.modalForm.chargeNoticeList = this.chargeNoticeList
|
||||
this.$refs.modalForm.draftingGroupId = this.draftingGroupProjectId
|
||||
this.$refs.modalForm.edit(record)
|
||||
this.$refs.modalForm.title = '编辑'
|
||||
this.$refs.modalForm.disableSubmit = false
|
||||
},
|
||||
/**
|
||||
* 获取收费通知列表
|
||||
*/
|
||||
getChargeNoticeList() {
|
||||
this.chargeNoticeList = []
|
||||
let chargeNoticeA, chargeNoticeB
|
||||
// 是否存在收费通知A
|
||||
if (this.workingGroupDetail.chargeNoticeNoA && this.workingGroupDetail.chargeNoticeNoA !== '') {
|
||||
chargeNoticeA = {
|
||||
type: 'chargeNoticeA',
|
||||
label: `A:${ this.workingGroupDetail.chargeNoticeNoA }`,
|
||||
value: this.workingGroupDetail.chargeNoticeNoA,
|
||||
key: this.workingGroupDetail.chargeA,
|
||||
yearCharge: this.workingGroupDetail.yearChargeA,
|
||||
chargeNoticeId: this.workingGroupDetail.chargeNoticeAId
|
||||
}
|
||||
this.chargeNoticeList.push(chargeNoticeA)
|
||||
}
|
||||
// 是否存在收费通知B
|
||||
if (this.workingGroupDetail.chargeNoticeNoB && this.workingGroupDetail.chargeNoticeNoB !== '') {
|
||||
chargeNoticeB = {
|
||||
type: 'chargeNoticeB',
|
||||
label: `B:${ this.workingGroupDetail.chargeNoticeNoB }`,
|
||||
value: this.workingGroupDetail.chargeNoticeNoB,
|
||||
key: this.workingGroupDetail.chargeB,
|
||||
yearCharge: this.workingGroupDetail.yearChargeB,
|
||||
chargeNoticeId: this.workingGroupDetail.chargeNoticeBId
|
||||
}
|
||||
this.chargeNoticeList.push(chargeNoticeB)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 设置收费通知
|
||||
*/
|
||||
setChargeNotic() {
|
||||
if (!this.workingGroupDetail.chargeNoticeNoA && !this.workingGroupDetail.chargeNoticeNoB) {
|
||||
this.$message.warn('请先补充该起草组的收费通知信息')
|
||||
return
|
||||
}
|
||||
if (this.selectedRowKeys.length === 0) {
|
||||
this.$message.warn('请先选择成员')
|
||||
return
|
||||
}
|
||||
// 2022-04-26 变更:不校验来款是否是收费通知
|
||||
// let param = {
|
||||
// ids: this.selectedRowKeys.join(','),
|
||||
// workingGroupId: this.workingGroupProjectId
|
||||
// }
|
||||
// 判断选中的成员是否存在来款方式非收费通知的
|
||||
// getChargeNotice(param).then(res => {
|
||||
// if (res.success) {
|
||||
this.getChargeNoticeList()
|
||||
this.$refs.setChargeNotic.chargeNoticeList = this.chargeNoticeList
|
||||
this.$refs.setChargeNotic.selectedRowKeys = this.selectedRowKeys
|
||||
this.$refs.setChargeNotic.handleOpen()
|
||||
// } else {
|
||||
// this.$message.warn(res.message)
|
||||
// }
|
||||
// })
|
||||
},
|
||||
/**
|
||||
* 催款提醒
|
||||
*/
|
||||
setDunningReminder() {
|
||||
if (this.selectedRowKeys.length === 0) {
|
||||
this.$message.warn('请先选择成员')
|
||||
return
|
||||
}
|
||||
let param = {
|
||||
projectIds: this.selectedRowKeys.join(',').toString()
|
||||
}
|
||||
const that = this
|
||||
this.$confirm({
|
||||
title: '确认催款',
|
||||
content: '是否向选中的成员发送催款提醒?',
|
||||
onOk: function () {
|
||||
that.loading = true
|
||||
dunningReminder(param).then((res) => {
|
||||
if (res.success) {
|
||||
that.$message.success(res.message)
|
||||
// 是否有邮件发送失败 有就给出提示信息
|
||||
if (Array.isArray(res.result) && res.result.length > 0) {
|
||||
// msgWarn(this,res.result,0)
|
||||
that.$refs.emailError.open()
|
||||
that.$refs.emailError.msgList = res.result
|
||||
console.log(that.$refs.emailError.msgList, 'that.$refs.emailError.msgList ')
|
||||
}
|
||||
that.loadData()
|
||||
that.onClearSelected()
|
||||
} else {
|
||||
that.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
that.loading = false
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 文件预览
|
||||
* @param file
|
||||
@@ -502,14 +386,6 @@ export default {
|
||||
window.open(url)
|
||||
}
|
||||
},
|
||||
// 设置标签
|
||||
setLabel() {
|
||||
if (this.selectedRowKeys.length <= 0) {
|
||||
this.$message.warning('请选择一条记录!')
|
||||
return
|
||||
}
|
||||
this.$refs.workGroupSetLabel.show(this.selectedRowKeys)
|
||||
}
|
||||
// 2021 10 11 沟通后去掉了这个功能
|
||||
// searchReset() {
|
||||
// this.lastQueryParam = {
|
||||
|
||||
Reference in New Issue
Block a user