修复:订单详情、及发货功能

This commit is contained in:
2025-08-05 21:09:42 +08:00
parent 669f10c15a
commit 032db01193
3 changed files with 379 additions and 107 deletions

View File

@@ -67,6 +67,18 @@
/>
<a-button @click="reset">重置</a-button>
<a-button @click="handleExport">导出</a-button>
<a-button
danger
type="primary"
class="ele-btn-icon"
:disabled="selection?.length === 0"
@click="removeBatch"
>
<template #icon>
<DeleteOutlined/>
</template>
<span>批量删除</span>
</a-button>
</a-space>
</template>
@@ -74,6 +86,7 @@
import { ref, watch } from 'vue';
import { utils, writeFile } from 'xlsx';
import { message } from 'ant-design-vue';
import {DeleteOutlined} from '@ant-design/icons-vue';
import useSearch from "@/utils/use-search";
import {ShopOrder, ShopOrderParam} from "@/api/shop/shopOrder/model";
import {listShopOrder} from "@/api/shop/shopOrder";
@@ -81,8 +94,8 @@
const props = withDefaults(
defineProps<{
// 选中的角色
selection?: [];
// 选中的订单
selection?: ShopOrder[];
}>(),
{}
);
@@ -113,6 +126,11 @@
emit('search', where);
};
// 批量删除
const removeBatch = () => {
emit('remove');
};
/* 搜索 */
const search = () => {
const [d1, d2] = dateRange.value ?? [];