ims-front/src/views/stock/component/success-result.vue
my_ong 2899f7f857
All checks were successful
Release / lint (push) Successful in 28s
Release / Release (push) Successful in 1m20s
bug: 提交申请成功后的动作
2024-12-11 10:52:06 +08:00

39 lines
903 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<a-result
status="success"
title="Successfully Purchased Cloud Server ECS!"
sub-title="Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait."
>
<template #extra>
<a-button type="primary" @click="select">查询申请</a-button>
<a-button @click="again">继续提交申请</a-button>
</template>
</a-result>
</template>
<script lang="ts" setup>
import router from '@/router'
// 和外层界面的数据交互
const props = defineProps(
{
applyType: {
type: String,
default: '',
},
}, // 申请类型 applyType页面传值的使用1和21: 采购入库 和 归还入库 2: 出库外借
)
const select = () => {
if (props.applyType === '1') {
router.push({ path: '/statistic/inbound' })
} else {
router.push({ path: '/statistic/outbound' })
}
}
const again = () => {
router.go(0)
}
</script>