|
|
@ -9,10 +9,10 @@
|
|
|
|
<SvgIcon class="ml15" size="18" name="print" />
|
|
|
|
<SvgIcon class="ml15" size="18" name="print" />
|
|
|
|
</a-tooltip>
|
|
|
|
</a-tooltip>
|
|
|
|
<a-tooltip placement="top" title="所选业务锁定">
|
|
|
|
<a-tooltip placement="top" title="所选业务锁定">
|
|
|
|
<SvgIcon class="ml25" size="18" name="lock" />
|
|
|
|
<SvgIcon class="ml25" size="18" name="lock" @click="lockBusiness" />
|
|
|
|
</a-tooltip>
|
|
|
|
</a-tooltip>
|
|
|
|
<a-tooltip placement="top" title="所选业务解锁">
|
|
|
|
<a-tooltip placement="top" title="所选业务解锁">
|
|
|
|
<SvgIcon class="ml25" size="18" name="openLock" />
|
|
|
|
<SvgIcon class="ml25" size="18" name="openLock" @click="openBusiness" />
|
|
|
|
</a-tooltip>
|
|
|
|
</a-tooltip>
|
|
|
|
<a-dropdown>
|
|
|
|
<a-dropdown>
|
|
|
|
<template #overlay>
|
|
|
|
<template #overlay>
|
|
|
@ -71,6 +71,13 @@
|
|
|
|
return []
|
|
|
|
return []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 所选的行
|
|
|
|
|
|
|
|
selectedBusiness: {
|
|
|
|
|
|
|
|
type: Array,
|
|
|
|
|
|
|
|
default: () => {
|
|
|
|
|
|
|
|
return []
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
type: Array,
|
|
|
|
type: Array,
|
|
|
|
default: () => {
|
|
|
|
default: () => {
|
|
|
@ -81,6 +88,27 @@
|
|
|
|
type: Boolean
|
|
|
|
type: Boolean
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
// 业务锁定
|
|
|
|
|
|
|
|
const lockBusiness = () => {
|
|
|
|
|
|
|
|
if (props.selectedBusiness.length == 0) {
|
|
|
|
|
|
|
|
return createMessage.warning('请勾选需要锁定的业务!')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 只有应付,应收费用状态为审核通过,部分结算,结算完毕才可以锁定
|
|
|
|
|
|
|
|
const allowData = props.selectedBusiness.filter(item => {
|
|
|
|
|
|
|
|
return /^(0|8|9)$/.test(item.apFeeStatus) && /^(0|8|9)$/.test(item.arFeeStatus)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (allowData) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return createMessage.warning('所选业务不符合锁定规则!')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 业务解锁
|
|
|
|
|
|
|
|
const openBusiness = () => {
|
|
|
|
|
|
|
|
if (props.selectedBusiness.length == 0) {
|
|
|
|
|
|
|
|
return createMessage.warning('请勾选需要解锁的业务!')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// 批量审核
|
|
|
|
// 批量审核
|
|
|
|
const approve = (v, parent) => {
|
|
|
|
const approve = (v, parent) => {
|
|
|
|
const postData = {
|
|
|
|
const postData = {
|
|
|
|