update 工作组成员维护-调账
This commit is contained in:
@@ -154,6 +154,10 @@ const getStardsMemberProjectById = (params) => getAction('', params)
|
|||||||
const memberDrawTicket = (params) => getAction('', params)
|
const memberDrawTicket = (params) => getAction('', params)
|
||||||
// 标协会员单位信息-复制
|
// 标协会员单位信息-复制
|
||||||
const memberCopy = (params) => getAction('', params)
|
const memberCopy = (params) => getAction('', params)
|
||||||
|
|
||||||
|
// 工作组成员维护-调账
|
||||||
|
const workingGroupEditAccount = (param) => getAction('/project/payWorkingGroupSubitem/editAccount', param)
|
||||||
|
|
||||||
export {
|
export {
|
||||||
getWorkingGroupById,
|
getWorkingGroupById,
|
||||||
getChargeNotice,
|
getChargeNotice,
|
||||||
@@ -233,5 +237,7 @@ export {
|
|||||||
|
|
||||||
getStardsMemberProjectById,
|
getStardsMemberProjectById,
|
||||||
memberDrawTicket,
|
memberDrawTicket,
|
||||||
memberCopy
|
memberCopy,
|
||||||
|
|
||||||
|
workingGroupEditAccount
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -180,6 +180,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<span slot="action" class="action-span-cell" slot-scope="text, record" v-if="canOperate">
|
<span slot="action" class="action-span-cell" slot-scope="text, record" v-if="canOperate">
|
||||||
|
<!-- 待确收金额不为0,未开票、未到账、未邮寄可以操作调账 -->
|
||||||
|
<a @click="handleEditAccount(record)" :disabled="isAllowEditAccount(record)" v-has="'workingGroupMember:editAccount'">调账</a>
|
||||||
<a @click="handleEdit(record)" v-has="'workingGroupMember:edit'">编辑</a>
|
<a @click="handleEdit(record)" v-has="'workingGroupMember:edit'">编辑</a>
|
||||||
<a @click="handleDelete(record.id)" v-has="'workingGroupMember:delete'">删除</a>
|
<a @click="handleDelete(record.id)" v-has="'workingGroupMember:delete'">删除</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -202,7 +204,7 @@
|
|||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||||
import JYearDate from '@comp/jero/JYearDate'
|
import JYearDate from '@comp/jero/JYearDate'
|
||||||
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
||||||
import { getWorkingGroupById, dunningReminder } from '@api/incomePaymentsApi'
|
import {getWorkingGroupById, dunningReminder, workingGroupEditAccount} from '@api/incomePaymentsApi'
|
||||||
import StatusSlot from '../../components/tools/StatusSlot'
|
import StatusSlot from '../../components/tools/StatusSlot'
|
||||||
import ProjectDetailModal from '../../components/ProjectDetailModal'
|
import ProjectDetailModal from '../../components/ProjectDetailModal'
|
||||||
import WorkingGroupMemberUnitModule from './modules/WorkingGroupMemberUnitModule'
|
import WorkingGroupMemberUnitModule from './modules/WorkingGroupMemberUnitModule'
|
||||||
@@ -417,6 +419,36 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatMoney,
|
formatMoney,
|
||||||
|
// 是否可以调账
|
||||||
|
isAllowEditAccount (record) {
|
||||||
|
const { receivableAmount, mail, inAccount, makeInvoice } = record
|
||||||
|
// 待确收金额为0,已开票、已到账、已邮寄,满足其一不可以操作
|
||||||
|
return (receivableAmount === '0.00') || (mail !== 0) || (inAccount !== 0) || (makeInvoice !== 0)
|
||||||
|
},
|
||||||
|
// 调账
|
||||||
|
handleEditAccount (record) {
|
||||||
|
this.$confirm({
|
||||||
|
title: '确认调账',
|
||||||
|
content: '是否调账数据?',
|
||||||
|
onOk: () => {
|
||||||
|
this.loading = true
|
||||||
|
const params = {
|
||||||
|
companyId: record.id,
|
||||||
|
workGroupId: this.workingGroupProjectId
|
||||||
|
}
|
||||||
|
workingGroupEditAccount(params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.modalFormOk()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 重写查询方法--删除预估到账日期属性
|
// 重写查询方法--删除预估到账日期属性
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
this.lastQueryParam = {...this.queryParam}
|
this.lastQueryParam = {...this.queryParam}
|
||||||
|
|||||||
Reference in New Issue
Block a user