|
|
|
@ -74,8 +74,10 @@
|
|
|
|
|
<ApproveBtns
|
|
|
|
|
agreeText="费用确认"
|
|
|
|
|
rejectText="驳回"
|
|
|
|
|
:approve="approveDc"
|
|
|
|
|
:approve="approve"
|
|
|
|
|
:id="route.query.id"
|
|
|
|
|
status="BILL_RECV_AUDIT"
|
|
|
|
|
source="Create"
|
|
|
|
|
businessType="1"
|
|
|
|
|
>
|
|
|
|
|
</ApproveBtns>
|
|
|
|
@ -95,7 +97,7 @@
|
|
|
|
|
import { onMounted, ref, defineExpose, computed, reactive } from 'vue'
|
|
|
|
|
import { BasicTable, useTable } from '/@/components/Table'
|
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
|
import { GetList, GetStat } from './api'
|
|
|
|
|
import { GetList, GetStat, BusinessAudit } from './api'
|
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
|
// import FeeActionBar from './components/feeActionBar.vue'
|
|
|
|
|
// import { useModal } from '/@/components/Modal'
|
|
|
|
@ -107,8 +109,11 @@
|
|
|
|
|
// 审批组件
|
|
|
|
|
import ApproveBtns from '/@/components/ApproveBtns/index.vue'
|
|
|
|
|
import { formatTableData } from '/@/hooks/web/common'
|
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
import { useMultipleTabStore } from '/@/store/modules/multipleTab'
|
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
const tabStore = useMultipleTabStore()
|
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
|
// 当前页面状态
|
|
|
|
|
const status = route.query.status
|
|
|
|
@ -216,8 +221,24 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// 审核接口
|
|
|
|
|
const approveDc = () => {
|
|
|
|
|
|
|
|
|
|
const approve = (remark) => {
|
|
|
|
|
const postData = {
|
|
|
|
|
result: remark ? 2 : 1,
|
|
|
|
|
ids: [route.query.id],
|
|
|
|
|
businessType: '1',
|
|
|
|
|
taskTypeName: route.query.status
|
|
|
|
|
}
|
|
|
|
|
if (remark) postData['remark'] = remark
|
|
|
|
|
loading.value = true
|
|
|
|
|
BusinessAudit(postData).then(res => {
|
|
|
|
|
loading.value = false
|
|
|
|
|
createMessage.success(res.message)
|
|
|
|
|
// 关闭当前页面
|
|
|
|
|
const { fullPath } = route //获取当前路径
|
|
|
|
|
tabStore.closeTabByKey(fullPath, router)
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
//初始化 有id就是从任务跳转过来,直接打开这一票的费用
|
|
|
|
|