diff --git a/src/api/mall/trade/delivery/expressTemplate/index.ts b/src/api/mall/trade/delivery/expressTemplate/index.ts
index 9414c847..53f2cdeb 100644
--- a/src/api/mall/trade/delivery/expressTemplate/index.ts
+++ b/src/api/mall/trade/delivery/expressTemplate/index.ts
@@ -33,6 +33,11 @@ export const getDeliveryExpressTemplate = async (id: number) => {
return await request.get({ url: '/trade/delivery/express-template/get?id=' + id })
}
+// 查询快递运费模板详情
+export const getSimpleTemplateList = async () => {
+ return await request.get({ url: '/trade/delivery/express-template/list-all-simple' })
+}
+
// 新增快递运费模板
export const createDeliveryExpressTemplate = async (data: DeliveryExpressTemplateVO) => {
return await request.post({ url: '/trade/delivery/express-template/create', data })
diff --git a/src/views/mall/product/spu/addForm.vue b/src/views/mall/product/spu/addForm.vue
index 737b5e17..19eee826 100644
--- a/src/views/mall/product/spu/addForm.vue
+++ b/src/views/mall/product/spu/addForm.vue
@@ -28,7 +28,9 @@
- 保存
+
+ 保存
+
返回
@@ -94,7 +96,9 @@ const formData = ref({
/** 获得详情 */
const getDetail = async () => {
- console.log(name)
+ if ('productSpuDetail' === name) {
+ isDetail.value = true
+ }
const id = params.spuId as number
if (id) {
formLoading.value = true
diff --git a/src/views/mall/product/spu/components/BasicInfoForm.vue b/src/views/mall/product/spu/components/BasicInfoForm.vue
index 2cc5a7c2..f49d5b17 100644
--- a/src/views/mall/product/spu/components/BasicInfoForm.vue
+++ b/src/views/mall/product/spu/components/BasicInfoForm.vue
@@ -67,7 +67,12 @@
-
+
运费模板
@@ -127,6 +132,9 @@
{{ brandList.find((item) => item.id === row.brandId)?.name }}
+
+ {{ deliveryTemplateList.find((item) => item.id === row.deliveryTemplateId)?.name }}
+
{{ row.specType ? '多规格' : '单规格' }}
@@ -157,19 +165,19 @@
diff --git a/src/views/mall/product/spu/index.vue b/src/views/mall/product/spu/index.vue
index f3e0476b..47a9c8d5 100644
--- a/src/views/mall/product/spu/index.vue
+++ b/src/views/mall/product/spu/index.vue
@@ -408,7 +408,7 @@ const openForm = (id?: number) => {
* 查看商品详情
*/
const openDetail = (id?: number) => {
- push('/product/productSpuDetail' + id)
+ push('/product/productSpuDetail/' + id)
}
/** 导出按钮操作 */