diff --git a/src/views/projectManagement/ConferenceMaintenance.vue b/src/views/projectManagement/ConferenceMaintenance.vue index 83f4313..cd88f6d 100644 --- a/src/views/projectManagement/ConferenceMaintenance.vue +++ b/src/views/projectManagement/ConferenceMaintenance.vue @@ -44,9 +44,7 @@ + v-model="queryParam.remind"> {{ item.username }} diff --git a/src/views/projectManagement/MemberUnitMaintenance.vue b/src/views/projectManagement/WorkingGroupMemberUnitMaintenance.vue similarity index 50% rename from src/views/projectManagement/MemberUnitMaintenance.vue rename to src/views/projectManagement/WorkingGroupMemberUnitMaintenance.vue index 5e13b92..5a91832 100644 --- a/src/views/projectManagement/MemberUnitMaintenance.vue +++ b/src/views/projectManagement/WorkingGroupMemberUnitMaintenance.vue @@ -2,42 +2,49 @@
-
工作组信息
- -
-
-
{{ item.title }}:
-
- {{ workingGroupDetail[item.fieldName] }} -
-
{{ workingGroupDetail[item.fieldName] }}
-
-
-
任务及目标:
-
{{ workingGroupDetail.missionAndObjectives }}
-
-
-
备注:
-
{{ workingGroupDetail.remarks }}
-
+
+
工作组信息
+ + +
+
+
{{ item.title }}:
+
+ {{ workingGroupDetail[item.fieldName] }} +
+
{{ workingGroupDetail[item.fieldName] }}
+
+
+
任务及目标:
+
{{ workingGroupDetail.missionAndObjectives }}
+
+
+
备注:
+
{{ workingGroupDetail.remarks }}
+
+
+
-
成员信息
+
+
成员信息
+
- + - + @@ -58,10 +65,10 @@ @change="handleImportExcel"> 导入 - 导出 - 下载模板 + 导出 + 下载模板 批量删除 - 设置收费通知 + 设置收费通知
@@ -81,23 +88,35 @@ @change="handleTableChange" class="j-table-force-nowrap"> - - - - + + + + + + + - 会议维护 - 编辑 - 删除 - + 编辑 + 删除 +
+ + + +
@@ -106,10 +125,21 @@ import { JeroListMixin } from '@/mixins/JeroListMixin' import JYearDate from '@comp/jero/JYearDate' import PageHeaderTitle from '@comp/layouts/PageHeaderTitle' import { getWorkingGroupById } from '@api/incomePaymentsApi' +import StatusSlot from '../../components/tools/StatusSlot' +import ProjectDetailModal from '../../components/ProjectDetailModal' +import WorkingGroupMemberUnitModule from './modules/WorkingGroupMemberUnitModule' +import WorkingGroupMemberSetChargeNotice from './modules/WorkingGroupMemberSetChargeNotice' export default { - name: 'MemberUnitMaintenance', - components: { JYearDate, PageHeaderTitle }, + name: 'WorkingGroupMemberUnitMaintenance', + components: { + JYearDate, + PageHeaderTitle, + StatusSlot, + ProjectDetailModal, + WorkingGroupMemberUnitModule, + WorkingGroupMemberSetChargeNotice + }, mixins: [JeroListMixin], computed: { importExcelUrl: function () { @@ -166,12 +196,12 @@ export default { sm: { span: 10 } }, url: { - list: '', - delete: '', - deleteBatch: '', - exportXlsUrl: '', - importExcelUrl: '', - downTemplateUrl: '' + list: '/project/payWorkingGroupSubitem/list', + delete: '/project/payWorkingGroupSubitem/delete', + deleteBatch: '/project/payWorkingGroupSubitem/deleteBatch', + exportXlsUrl: '/project/payWorkingGroupSubitem/exportXls', + importExcelUrl: '/project/payWorkingGroupSubitem/importExcel', + downTemplateUrl: '/project/payWorkingGroupSubitem/downloadExcelModel' }, columns: [ { @@ -186,49 +216,53 @@ export default { }, { title: '成员单位', align: 'center', - dataIndex: 'workingGroupProject', + dataIndex: 'chargeCompanyTemporaryName', scopedSlots: { customRender: 'projectName' } }, { title: '企业联系人', align: 'center', width: 180, - dataIndex: 'principalNameA' + dataIndex: 'contactsTemporaryNameOne' }, { title: '应收金额', align: 'center', - dataIndex: '', + dataIndex: 'receivableAmount', width: 180 }, { title: '实收金额', align: 'center', - dataIndex: '', + dataIndex: 'paidAmount', width: 180 - }, { + }, , { title: '打包', align: 'center', - width: 100, - dataIndex: 'packaging' + width: 80, + dataIndex: 'pack', + scopedSlots: { customRender: 'status-pack' } }, { title: '需要发票', align: 'center', - width: 100, - dataIndex: 'invoice', - scopedSlots: { customRender: 'icon' } + width: 80, + dataIndex: 'needInvoice', + scopedSlots: { customRender: 'status-pack' } }, { title: '到账', align: 'center', - width: 100, - dataIndex: 'inAccount' + width: 80, + dataIndex: 'inAccount', + scopedSlots: { customRender: 'status' } }, { title: '开票', align: 'center', - width: 100, - dataIndex: 'makeInvoice' + width: 80, + dataIndex: 'makeInvoice', + scopedSlots: { customRender: 'status' } }, { title: '邮寄', align: 'center', - width: 100, - dataIndex: 'mail' + width: 80, + dataIndex: 'mail', + scopedSlots: { customRender: 'status' } }, { title: '操作', dataIndex: 'action', @@ -238,7 +272,8 @@ export default { scopedSlots: { customRender: 'action' } } ], - workingGroupDetail: {} + workingGroupDetail: {}, + chargeNoticeList: [] // 收费通知号选项 } }, created() { @@ -252,12 +287,74 @@ export default { initWorkGruopData() { this.workingGroupProject = this.$route.query.workingGroupProject this.workingGroupProjectId = this.$route.query.workingGroupProjectId + this.filters.workingGroupId = this.workingGroupProjectId + this.loadData() let param = { id: this.workingGroupProjectId } getWorkingGroupById(param).then(res => { this.workingGroupDetail = res.result }) + }, + handleAdd: function () { + this.getChargeNoticeList() + this.$refs.modalForm.workingGroupId = this.workingGroupProjectId + this.$refs.modalForm.chargeNoticeList = this.chargeNoticeList + this.$refs.modalForm.add() + this.$refs.modalForm.title = '添加成员' + this.$refs.modalForm.disableSubmit = false + }, + handleEdit: function (record) { + this.getChargeNoticeList() + this.$refs.modalForm.chargeNoticeList = this.chargeNoticeList + this.$refs.modalForm.edit(record) + this.$refs.modalForm.title = '编辑' + this.$refs.modalForm.disableSubmit = false + }, + getChargeNoticeList() { + this.chargeNoticeList = [] + let chargeNoticeA, chargeNoticeB + if (this.workingGroupDetail.chargeNoticeNoA && this.workingGroupDetail.chargeNoticeNoA !== '') { + chargeNoticeA = { + type: 'chargeNoticeA', + label: `A:${ this.workingGroupDetail.chargeNoticeNoA }`, + value: this.workingGroupDetail.chargeNoticeNoA, + yearCharge: this.workingGroupDetail.yearChargeA, + chargeNoticeId: this.workingGroupDetail.chargeNoticeAId + } + } + if (this.workingGroupDetail.chargeNoticeNoB && this.workingGroupDetail.chargeNoticeNoB !== '') { + chargeNoticeB = { + type: 'chargeNoticeB', + label: `B:${ this.workingGroupDetail.chargeNoticeNoB }`, + value: this.workingGroupDetail.chargeNoticeNoB, + yearCharge: this.workingGroupDetail.yearChargeB, + chargeNoticeId: this.workingGroupDetail.chargeNoticeBId + } + } + if (chargeNoticeA && chargeNoticeA.hasOwnProperty('value')) { + this.chargeNoticeList.push(chargeNoticeA) + } + if (chargeNoticeB && chargeNoticeB.hasOwnProperty('value')) { + 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 + } + this.getChargeNoticeList() + this.$refs.setChargeNotic.chargeNoticeList = this.chargeNoticeList + this.$refs.setChargeNotic.selectedRowKeys = this.selectedRowKeys + this.$refs.setChargeNotic.handleOpen() } } } diff --git a/src/views/projectManagement/WorkingGroupProjectManagement.vue b/src/views/projectManagement/WorkingGroupProjectManagement.vue index b0242e1..800727a 100644 --- a/src/views/projectManagement/WorkingGroupProjectManagement.vue +++ b/src/views/projectManagement/WorkingGroupProjectManagement.vue @@ -74,7 +74,7 @@ @@ -161,17 +161,6 @@ export default { width: 180, scopedSlots: { customRender: 'action' } } - ], - dataSource: [ - { - id: 1, - workingGroupProject: '2021标准工作组', - post: { - payInFull: 10, - partialPayment: 8, - nonPayment: 12 - } - } ] } }, @@ -191,7 +180,7 @@ export default { }, goMemberUnitMaintenance(record) { this.$router.push({ - path: '/projectManagement/MemberUnitMaintenance', + path: '/projectManagement/WorkingGroupMemberUnitMaintenance', query: { workingGroupProject: record.workingGroupProject, workingGroupProjectId: record.id @@ -205,14 +194,6 @@ export default { \ No newline at end of file diff --git a/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue b/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue new file mode 100644 index 0000000..1c316ca --- /dev/null +++ b/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue @@ -0,0 +1,426 @@ + + + + + \ No newline at end of file diff --git a/src/views/projectManagement/modules/WorkingGroupProjectModule.vue b/src/views/projectManagement/modules/WorkingGroupProjectModule.vue index 09416a1..d294467 100644 --- a/src/views/projectManagement/modules/WorkingGroupProjectModule.vue +++ b/src/views/projectManagement/modules/WorkingGroupProjectModule.vue @@ -14,7 +14,7 @@ - + - @@ -123,8 +127,12 @@ - @@ -259,7 +267,7 @@ export default { }, handleCancel() { this.close() - }, + } } }