费用审核

szh-new
lijingjia 3 months ago
parent 5986219e91
commit 81ae47f8c5

@ -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 = {

@ -16,6 +16,7 @@
<template #toolbar> <template #toolbar>
<MainActionBar <MainActionBar
:ids="busId" :ids="busId"
:selectedBusiness="selectedBusiness"
:data="data" :data="data"
@apporveHandle="mainApprove" @apporveHandle="mainApprove"
></MainActionBar> ></MainActionBar>
@ -163,7 +164,7 @@
</a-spin> </a-spin>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted, ref, defineExpose } from 'vue' import { onMounted, ref, defineExpose, computed } from 'vue'
import { BasicTable, useTable } from '/@/components/Table' import { BasicTable, useTable } from '/@/components/Table'
import { formatParams } from '/@/hooks/web/common' import { formatParams } from '/@/hooks/web/common'
import { GetList, GetFees } from './api' import { GetList, GetFees } from './api'
@ -224,6 +225,10 @@
immediate: false, immediate: false,
resizeHeightOffset: (innerHeight - 60) / 2 resizeHeightOffset: (innerHeight - 60) / 2
}) })
//
const selectedBusiness = computed(() => {
return getSelectRows()
})
// //
const tableData = ref([]) const tableData = ref([])
const selectHandle = (v) => { const selectHandle = (v) => {

Loading…
Cancel
Save