🐛 放开本账号运单复制,并避免总单选地址时提前校验

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-29 22:44:01 +08:00
co-authored by Cursor
parent 185a0f9aec
commit 083d954765
3 changed files with 8 additions and 18 deletions
@@ -5116,11 +5116,16 @@ export default {
);
},
canCopy(row) {
if (!row) return false;
// 归属本账号可见范围的运单允许复制。跨组织但项目归属本账号的记录会被标成只读,
// 只读仅拦截编辑/删除,不拦截复制。具备查看、新增、编辑或复制权限即可使用。
return (
this.hasAction('copy') &&
this.hasPermission(`${this.config.permission}_copy`) &&
!this.readonlyScope &&
!row.readonly
(this.hasPermission(`${this.config.permission}_copy`) ||
this.hasPermission(`${this.config.permission}_add`) ||
this.hasPermission(`${this.config.permission}_edit`) ||
this.hasPermission(`${this.config.permission}_view`))
);
},
canEnable(row) {