feat: 线上预订菜品支持从每日菜品导入

This commit is contained in:
weiwei committed 2025-08-12 16:57:55 +08:00
1 parent ddfc8fe48b
commit fcf7609a66
8 files changed
+284 -51

No files matched your search

@@ -25,18 +25,20 @@
:row-key="(row:any) => row.id"
:reserve-selection="true"
@selection-change=""
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle"
>
<el-table-column type="selection" width="50" reserve-selection fixed="left" align="center" />
<el-table-column type="index" label="#" width="50" fixed="left" align="center" />
<el-table-column prop="productName" label="商品名称" min-width="150px" align="center" show-overflow-tooltip />
<el-table-column prop="picUrl" label="封面图" align="center" show-overflow-tooltip>
<el-table-column type="selection" width="50" reserve-selection fixed="left" />
<el-table-column type="index" label="#" width="50" fixed="left" />
<el-table-column prop="productName" label="商品名称" min-width="150px" show-overflow-tooltip />
<el-table-column prop="picUrl" label="封面图" show-overflow-tooltip>
<template #default="scope">
<preview-image @click.stop :src="scope.row.picUrl" />
</template>
</el-table-column>
<el-table-column prop="stock" label="库存" min-width="80px" align="center" show-overflow-tooltip />
<el-table-column prop="productCode" label="货号" min-width="100px" align="center" show-overflow-tooltip />
<el-table-column label="包装单位" min-width="300px" align="center">
<el-table-column prop="stock" label="库存" min-width="80px" show-overflow-tooltip />
<el-table-column prop="productCode" label="货号" min-width="100px" show-overflow-tooltip />
<el-table-column label="包装单位" min-width="300px">
<template #default="scope">
<div v-if="scope.row.erpUnitVos && scope.row.erpUnitVos.length > 0">
<div class="flex flex-wrap gap-2">
@@ -49,12 +51,12 @@
<div v-else class="text-gray-400">无包装单位</div>
</template>
</el-table-column>
<el-table-column prop="productNature" label="商品性质" show-overflow-tooltip align="center" width="150">
<el-table-column prop="productNature" label="商品性质" show-overflow-tooltip width="150">
<template #default="scope">
<dict-tag :options="supermarket_nature" :value="scope.row.productNature" />
</template>
</el-table-column>
<el-table-column prop="status" label="状态" min-width="100px" align="center" show-overflow-tooltip>
<el-table-column prop="status" label="状态" min-width="100px" show-overflow-tooltip>
<template #default="scope">
<dict-tag :options="status" :value="scope.row.status" />
</template>
@@ -174,6 +176,15 @@ onMounted(async () => {
// }
})
const tableStyle = {
cellStyle: { textAlign: "center" },
headerCellStyle: {
textAlign: "center",
background: "var(--el-table-row-hover-bg-color)",
color: "var(--el-text-color-primary)",
},
}
defineExpose({
openDialog,
})