WMS_MAIN/database/migrations/20261005170000-rename-return-waybill-permission-title.js
liufumingren 6ac3441109 feat: 收件任务体系(return_received_task)与退回权限调整
- 新增收件任务表 wms_return_received_task(自增 id 从 10000 起、批次号服务端自动生成 RT+日期+序号)
- 系统预设 id=1 历史收件;收件登记 wms_return_received 增加 return_received_task_id(缓存校验,未命中穿透建缓存)
- 任务接口:create/list/batchDelete/delete(有登记不可删、跨仓保护、has_register 筛选、register_count 统计)
- 移除 returnwaybill/returnReceived/returnUnpack 页面权限及角色组引用;权限标题「运单退回登记」改「未退登记」
2026-10-06 03:24:36 +08:00

29 lines
981 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';
/**
* 权限名称修正:「运单退回登记」→「未退登记」。
*
* 仅改 API 权限显示名称(meta_title),path/name(方法路由)保持不变:
* 551 — API:未退登记
* 552 — API:未退登记修改
* 553 — API:未退登记列表
* 554 — API:未退登记详情
* 555 — API:未退登记删除
*/
module.exports = {
async up(queryInterface) {
await queryInterface.sequelize.query(
'UPDATE `wms_permission` SET meta_title = REPLACE(meta_title, :oldName, :newName) WHERE id IN (551, 552, 553, 554, 555)',
{ replacements: { oldName: '运单退回登记', newName: '未退登记' } }
);
},
async down(queryInterface) {
await queryInterface.sequelize.query(
'UPDATE `wms_permission` SET meta_title = REPLACE(meta_title, :newName, :oldName) WHERE id IN (551, 552, 553, 554, 555)',
{ replacements: { oldName: '运单退回登记', newName: '未退登记' } }
);
},
};