完成商城下单功能

This commit is contained in:
gxwebsoft
2024-05-27 01:24:02 +08:00
parent dea6ae1c23
commit 4bae8599e1
26 changed files with 803 additions and 129 deletions
+6 -5
View File
@@ -21,9 +21,9 @@
/>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'title'">
<template v-if="column.key === 'goodsName'">
<a @click="openPreview(`/goods/detail/${record.goodsId}`)">{{
record.title
record.goodsName
}}</a>
</template>
<template v-if="column.key === 'image'">
@@ -69,7 +69,7 @@
import GoodsEdit from './components/goodsEdit.vue';
import { pageGoods, removeGoods, removeBatchGoods } from '@/api/shop/goods';
import type { Goods, GoodsParam } from '@/api/shop/goods/model';
import { openPreview, openUrl } from '@/utils/common';
import { getMerchantId, openPreview, openUrl } from "@/utils/common";
import { useRouter } from 'vue-router';
const { currentRoute } = useRouter();
@@ -98,6 +98,7 @@
if (filters) {
where.status = filters.status;
}
where.merchantId = getMerchantId();
return pageGoods({
...where,
...orders,
@@ -122,8 +123,8 @@
},
{
title: '课程名称',
dataIndex: 'title',
key: 'title'
dataIndex: 'goodsName',
key: 'goodsName'
},
{
title: '课程售价',