完成商城下单功能

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

View File

@@ -21,8 +21,8 @@
/>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'title'">
<a @click="openPreview(`/goods/detail/${record.goodsId}`)">{{ record.title }}</a>
<template v-if="column.key === 'goodsName'">
<span>{{ record.goodsName }}</span>
</template>
<template v-if="column.key === 'image'">
<template
@@ -71,7 +71,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";
// 表格实例
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
@@ -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: '商品售价',