mt-ck-wms-ui/src/views/report-manage/components/substrateBtn.vue
2022-03-16 16:14:50 +08:00

37 lines
709 B
Vue

<!--
* @Descripttion:
* @version:
* @Author: fzq
* @Date: 2022-03-05 14:35:07
* @LastEditors: fzq
* @LastEditTime: 2022-03-16 16:13:58
-->
<template>
<span>
<el-button type="text" size="small" @click="emitClick">{{ $t('module.report.inventory.viewSubstrates') }}</el-button>
</span>
</template>
<script>
export default {
props: {
injectData: {
type: Object,
default: () => ({})
}
},
methods: {
emitClick() {
this.$router.push({
name: 'viewSubstrate',
query: {
id: this.injectData.id,
code: this.injectData.code,
locationStorageSubID: this.injectData.locationStorageSubID
}
})
}
}
}
</script>