18 lines
903 B
Vue
18 lines
903 B
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
import OverseasReadOnlyDetail from '../components/OverseasReadOnlyDetail.vue'
|
|
|
|
const route = useRoute()
|
|
const router = useRouter()
|
|
const productId = computed(() => String(route.params.productId || '—'))
|
|
const groups = [
|
|
{ title: '基础信息', fields: ['商品SKU', '中文品名', '英文品名', '产品分类'] },
|
|
{ title: '包装信息', fields: ['长(cm)', '宽(cm)', '高(cm)', '重量(kg)', '包装体积(m³)'] },
|
|
{ title: '其他信息', fields: ['创建时间', '更新时间', '备注'] },
|
|
]
|
|
function back() { void router.push({ name: 'overseas-products' }) }
|
|
</script>
|
|
|
|
<template><OverseasReadOnlyDetail title="产品详情" reference-label="商品SKU" :reference-value="productId" back-label="返回产品库" domain="产品详情" :groups="groups" @back="back" /></template>
|