费用审核

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

@ -9,10 +9,10 @@
<SvgIcon class="ml15" size="18" name="print" />
</a-tooltip>
<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 placement="top" title="所选业务解锁">
<SvgIcon class="ml25" size="18" name="openLock" />
<SvgIcon class="ml25" size="18" name="openLock" @click="openBusiness" />
</a-tooltip>
<a-dropdown>
<template #overlay>
@ -71,6 +71,13 @@
return []
}
},
//
selectedBusiness: {
type: Array,
default: () => {
return []
}
},
data: {
type: Array,
default: () => {
@ -81,6 +88,27 @@
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 postData = {

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

Loading…
Cancel
Save