|
|
@ -74,8 +74,10 @@
|
|
|
|
<ApproveBtns
|
|
|
|
<ApproveBtns
|
|
|
|
agreeText="费用确认"
|
|
|
|
agreeText="费用确认"
|
|
|
|
rejectText="驳回"
|
|
|
|
rejectText="驳回"
|
|
|
|
:approve="approveDc"
|
|
|
|
:approve="approve"
|
|
|
|
:id="route.query.id"
|
|
|
|
:id="route.query.id"
|
|
|
|
|
|
|
|
status="BILL_RECV_AUDIT"
|
|
|
|
|
|
|
|
source="Create"
|
|
|
|
businessType="1"
|
|
|
|
businessType="1"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</ApproveBtns>
|
|
|
|
</ApproveBtns>
|
|
|
@ -95,7 +97,7 @@
|
|
|
|
import { onMounted, ref, defineExpose, computed, reactive } from 'vue'
|
|
|
|
import { onMounted, ref, defineExpose, computed, reactive } 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, GetStat } from './api'
|
|
|
|
import { GetList, GetStat, BusinessAudit } from './api'
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
// import FeeActionBar from './components/feeActionBar.vue'
|
|
|
|
// import FeeActionBar from './components/feeActionBar.vue'
|
|
|
|
// import { useModal } from '/@/components/Modal'
|
|
|
|
// import { useModal } from '/@/components/Modal'
|
|
|
@ -107,8 +109,11 @@
|
|
|
|
// 审批组件
|
|
|
|
// 审批组件
|
|
|
|
import ApproveBtns from '/@/components/ApproveBtns/index.vue'
|
|
|
|
import ApproveBtns from '/@/components/ApproveBtns/index.vue'
|
|
|
|
import { formatTableData } from '/@/hooks/web/common'
|
|
|
|
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 route = useRoute()
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
|
|
const tabStore = useMultipleTabStore()
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
// 当前页面状态
|
|
|
|
// 当前页面状态
|
|
|
|
const status = route.query.status
|
|
|
|
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(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
//初始化 有id就是从任务跳转过来,直接打开这一票的费用
|
|
|
|
//初始化 有id就是从任务跳转过来,直接打开这一票的费用
|
|
|
|