feat: 统一操作列样式并优化按钮交互与构建配置

- 新增全局样式文件兼容旧浏览器的表格操作列居中布局
- 调整操作列宽度、对齐方式和按钮类型以优化交互体验
- 修改 vite 配置每次构建清空输出目录,避免冗余文件
- 为关键操作添加确认弹窗,防止误操作
- 简化下拉菜单按钮,提升界面简洁性
This commit is contained in:
SunYF
2026-10-12 18:16:56 +08:00
parent 59ee3f685f
commit 6c181b9242
38 changed files with 538 additions and 111 deletions
@@ -69,10 +69,10 @@
<el-table-column prop="status" label="状态" width="100">
<template #default="{row}">{{ statusText(row.status) }}</template>
</el-table-column>
<el-table-column label="操作" width="100" align="center" fixed="right">
<el-table-column label="操作" width="90" align="center" fixed="right">
<template #default="{row}">
<el-tooltip content="仓库发出后才能确认接料" :disabled="Number(row.sentQty || 0) > 0" placement="top">
<el-button size="small" type="success" :disabled="row.status === 'DONE' || Number(row.sentQty || 0) <= 0" :loading="receiving && receivingNo === row.requestNo" @click="receive(row)">确认接料</el-button>
<el-button size="small" type="primary" :disabled="row.status === 'DONE' || Number(row.sentQty || 0) <= 0" :loading="receiving && receivingNo === row.requestNo" @click="receive(row)">确认接料</el-button>
</el-tooltip>
</template>
</el-table-column>