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.
|
|
|
<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();
|
|
|
|
|
|
|
|
// DEBUG:打开财务审批详情页
|
|
|
|
function openAudit() {
|
|
|
|
uni.$ui.openDetail({
|
|
|
|
url: 'https://www.tall.wiki/finance/index',
|
|
|
|
name: '财务审批',
|
|
|
|
token,
|
|
|
|
projectId,
|
|
|
|
id: task.id,
|
|
|
|
pn: projectName,
|
|
|
|
tn: task.name,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// DEBUG:打开财务统计详情页
|
|
|
|
function openStatistical() {
|
|
|
|
uni.$ui.openDetail({ url: 'https://www.taobao.com', name: '财务统计' });
|
|
|
|
}
|
|
|
|
</script>
|