工作组复制,文件分发优化

This commit is contained in:
zhaoxiao
2021-09-17 13:46:01 +08:00
parent d391eeb9ee
commit 44903b69b6
4 changed files with 40 additions and 10 deletions
+9 -6
View File
@@ -5,7 +5,7 @@ const getWorkingGroupById = (params) => getAction('/project/payWorkingGroup/quer
// 判断工作组成员是否设置来款通知
const getChargeNotice = (param) => getAction('/project/payWorkingGroupSubitem/getCharge', param)
// 工作组会议的发布提醒
const publishRemind = (param) => postAction('/meeting/payMeeting/publishReminder',param)
const publishRemind = (param) => postAction('/meeting/payMeeting/publishReminder', param)
// 通过id获取收入合同信息
const getRevenueContractById = (param) => getAction('/contract/payIncomeContract/queryById', param)
// 收入合同审核
@@ -33,9 +33,9 @@ const addPaymentPhase = (param) => postAction('/paymentRecord/payPaymentRecord/a
// 编辑来款阶段
const editAmountPhase = (param) => postAction('/paymentRecord/payPaymentRecord/editAmountReceived', param)
// 来款列表
const amountReceivedList = (param) => postAction(`/paymentRecord/payPaymentRecord/amountReceivedList?id=${param}`)
const amountReceivedList = (param) => postAction(`/paymentRecord/payPaymentRecord/amountReceivedList?id=${ param }`)
// 开票列表
const payBillList = (param) => postAction(`/paymentRecord/payPaymentRecord/payBillList?id=${param}`)
const payBillList = (param) => postAction(`/paymentRecord/payPaymentRecord/payBillList?id=${ param }`)
// 新增开票阶段
// const addPayBill = (projectId, projectType, invoiceAmounts, param) => postAction(`/paymentRecord/payPaymentRecord/addPayBill?projectIds=${projectId}&projectTypes=${projectType}&invoiceAmounts=${invoiceAmounts}`, param)
const addPayBill = (param) => postAction(`/paymentRecord/payPaymentRecord/addPayBill`, param)
@@ -61,10 +61,12 @@ const batchDistribute = (param) => postAction('/project/payWorkingGroupDistribut
const distributeMemberList = (param) => getAction('/project/payWorkingGroupDistributionRecord/list', param)
// 催款提醒
const dunningReminder = (param) => postAction('/project/payWorkingGroupSubitem/reminders', param)
// 复制工作组
const copyWorkingGroup = (param) => postAction('/project/payWorkingGroup/copy', param)
export {
getWorkingGroupById,
getChargeNotice,
getWorkingGroupById,
getChargeNotice,
publishRemind,
getRevenueContractById,
aduitRevenueContract,
@@ -92,5 +94,6 @@ export {
distribute,
batchDistribute,
distributeMemberList,
dunningReminder
dunningReminder,
copyWorkingGroup
}
@@ -93,7 +93,7 @@
<span slot="action" class="action-span-cell" slot-scope="text, record">
<a @click="goFilesMaintenance(record)">文件维护</a>
<a @click="goConferenceMaintenance(record)">会议维护</a>
<a @click="copyWorkGroup(record)">复制</a>
<a @click="copyWorkGroup(record.id)">复制</a>
<a @click="handleEdit(record)">编辑</a>
<a @click="handleDelete(record.id)">删除</a>
</span>
@@ -113,6 +113,7 @@ import SelectPrincipal from '@comp/company/SelectPrincipal'
import ProgressBar from '@comp/ProgressBar'
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
import IconWorkingGruop from '@/assets/imgs/icon/icon_working_group.png'
import { copyWorkingGroup } from '../../api/incomePaymentsApi'
export default {
name: 'WorkingGroupProjectManagement',
@@ -197,6 +198,21 @@ export default {
}
})
},
/**
* 复制
* @param id
*/
copyWorkGroup(id) {
copyWorkingGroup({id: id}).then(res => {
if (res.success) {
this.$message.success(res.message)
} else {
this.$message.warn(res.message)
}
}).finally(() => {
this.loadData()
})
},
/**
* 成员维护
* @param record
@@ -69,6 +69,13 @@ export default {
default: false
}
},
watch:{
visible(val) {
if (val) {
this.initData()
}
}
},
data() {
return {
title: '分发',
@@ -104,14 +111,12 @@ export default {
}
}
},
created() {
this.initData()
},
methods: {
/**
* 获取成员列表
*/
getMemberList() {
this.confirmLoading = true
let param = {
projectId: this.projectId,
projectType: this.projectType
@@ -122,6 +127,8 @@ export default {
} else {
console.log(res.message)
}
}).finally(() => {
this.confirmLoading = false
})
},
onCheck(checkedKeys) {
@@ -25,6 +25,10 @@
</a-row>
</a-form>
</a-spin>
<template slot="footer">
<a-button @click="handleCancel">关闭</a-button>
<a-button @click="handleOk" type="primary" v-preventclick>确定</a-button>
</template>
</j-modal>
</template>