修复:图形验证码大写不识别

修复:按商户ID查询订单、商品、分类等
This commit is contained in:
2024-09-23 01:08:24 +08:00
parent 228cacdf2a
commit 625568eb41
30 changed files with 2069 additions and 118 deletions

View File

@@ -1,7 +1,20 @@
<template>
<div class="page">
<a-card>
<search
@search="reload"
:selection="selection"
@add="openEdit"
@remove="removeBatch"
@batchMove="openMove"
/>
</a-card>
<div class="ele-body">
<a-card :bordered="false" :body-style="{ padding: '16px' }">
<a-card
title="订单列表"
:bordered="false"
:body-style="{ padding: '16px' }"
>
<ele-pro-table
ref="tableRef"
row-key="orderId"
@@ -9,18 +22,10 @@
:datasource="datasource"
:customRow="customRow"
:scroll="{ x: 800 }"
:toolbar="false"
tool-class="ele-toolbar-form"
class="sys-org-table"
>
<template #toolbar>
<search
@search="reload"
:selection="selection"
@add="openEdit"
@remove="removeBatch"
@batchMove="openMove"
/>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
@@ -212,6 +217,7 @@
import { pageOrder, removeOrder, removeBatchOrder } from '@/api/shop/order';
import type { Order, OrderParam } from '@/api/shop/order/model';
import { formatNumber } from 'ele-admin-pro/es';
import { getMerchantId } from "@/utils/merchant";
// 表格实例
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
@@ -239,9 +245,9 @@
where.status = filters.status;
}
// 商城订单
where.type = 0;
// where.type = 0;
// where.sceneType = 'showOrderInfo';
// where.merchantId = getMerchantId();
where.merchantId = getMerchantId();
return pageOrder({
...where,
...orders,