h5
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

<template>
<div class="flex justify-around">
<button class="text-xs bg-blue-500 text-white leading-6" style="width: 250rpx" @click="openAudit">财务审批</button>
<button class="text-xs bg-blue-500 text-white leading-6" style="width: 250rpx" @click="openStatistical">财务统计</button>
</div>
</template>
<script setup>
import { inject } from 'vue';
import useGenerateWebviewParam from '@/hooks/project/useGenerateWebviewParam';
const task = inject('task');
const { projectId, projectName, token } = useGenerateWebviewParam();
// 打开财务审批详情页
function openAudit() {
uni.$ui.openDetail({
url: `http://121.36.3.207/finance/financial-approval?name=财务审批&token=${token}&projectId=${projectId}&id=${task.detailId}&pn=${projectName}&tn=${task.name}`,
name: '财务审批',
});
}
// 打开财务统计详情页
function openStatistical() {
uni.$ui.openDetail({
url: `http://121.36.3.207/finance/financial-approval?name=财务统计&token=${token}&projectId=${projectId}&id=${task.detailId}&pn=${projectName}&tn=${task.name}`,
name: '财务统计',
});
}
</script>