feat(wms/menu): 添加异常钢卷导出功能并优化菜单导出功能

1. 新增单行/多行异常钢卷导出按钮,带权限控制
2. 优化菜单导出Excel,新增路由地址和完整路由地址列
This commit is contained in:
砂糖
2026-07-08 17:16:58 +08:00
parent d0a85c6d65
commit 49bb8e116f
2 changed files with 55 additions and 9 deletions

View File

@@ -135,6 +135,14 @@
<el-button type="info" plain icon="el-icon-download" size="mini" @click="handleExportAllProps">导出全部</el-button>
</el-col>
<el-col :span="1.5" v-hasPermi="['wms.export.abnormalCoil']">
<el-button icon="el-icon-download" size="mini" @click="handleAbnormalExportSingle">单行异常导出</el-button>
</el-col>
<el-col :span="1.5" v-hasPermi="['wms.export.abnormalCoil']">
<el-button icon="el-icon-download" size="mini" @click="handleAbnormalExportMulti">多行异常导出</el-button>
</el-col>
<el-col :span="1.5" v-if="showOrderBy">
<el-checkbox v-model="queryParams.orderBy" v-loading="loading" @change="getList"
label="orderBy">按实际库区排序</el-checkbox>
@@ -2336,6 +2344,24 @@ export default {
}, 'coil.xlsx')
}
},
/** 单行异常导出 — 每个钢卷一行,附带异常信息 */
handleAbnormalExportSingle() {
const { orderBy, ...query } = this.queryParams;
query.selectType = query.itemType;
this.download('wms/materialCoil/exportAbnormal', {
...query,
abnormalExportCount: 1,
}, `abnormalCoil_${new Date().getTime()}.xlsx`)
},
/** 多行异常导出 — 每个异常记录一行,附带异常信息 */
handleAbnormalExportMulti() {
const { orderBy, ...query } = this.queryParams;
query.selectType = query.itemType;
this.download('wms/materialCoil/exportAbnormal', {
...query,
abnormalExportCount: 0,
}, `abnormalCoil_${new Date().getTime()}.xlsx`)
},
async handleNewExportProps(row) {
this.loading = true
let coilIds = ''