bug: 提交申请成功后的动作
This commit is contained in:
parent
bb97d4ecb0
commit
2899f7f857
@ -18,7 +18,7 @@
|
|||||||
<apply-confirm ref="applyConfirmRef" :table-data="conformData"></apply-confirm>
|
<apply-confirm ref="applyConfirmRef" :table-data="conformData"></apply-confirm>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="current === 3" class="step-4">
|
<div v-show="current === 3" class="step-4">
|
||||||
<successResult></successResult>
|
<successResult :apply-type="applyType"></successResult>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 按钮 -->
|
<!-- 按钮 -->
|
||||||
|
@ -14,11 +14,25 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import router from '@/router'
|
import router from '@/router'
|
||||||
|
|
||||||
|
// 和外层界面的数据交互
|
||||||
|
const props = defineProps(
|
||||||
|
{
|
||||||
|
applyType: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
}, // 申请类型 applyType页面传值的使用1和2,1: 采购入库 和 归还入库 2: 出库外借
|
||||||
|
)
|
||||||
|
|
||||||
const select = () => {
|
const select = () => {
|
||||||
router.push({ path: '/statistic/inbound' }) // 未生效
|
if (props.applyType === '1') {
|
||||||
|
router.push({ path: '/statistic/inbound' })
|
||||||
|
} else {
|
||||||
|
router.push({ path: '/statistic/outbound' })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const again = () => {
|
const again = () => {
|
||||||
router.push({ path: '/stock/inbound' })
|
router.go(0)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user