From 083d9547656d4ddf92500b847bccba5908eea323 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Thu, 29 Oct 2026 22:44:01 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=94=BE=E5=BC=80=E6=9C=AC=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E8=BF=90=E5=8D=95=E5=A4=8D=E5=88=B6=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E6=80=BB=E5=8D=95=E9=80=89=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E6=97=B6=E6=8F=90=E5=89=8D=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .../business/components/master-order-editor.vue | 15 --------------- .../business/components/waybill-manage-page.vue | 9 +++++++-- src/views/business/waybill-manage.vue | 2 +- 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/src/views/business/components/master-order-editor.vue b/src/views/business/components/master-order-editor.vue index 0417c0e..bcd21cc 100644 --- a/src/views/business/components/master-order-editor.vue +++ b/src/views/business/components/master-order-editor.vue @@ -1229,25 +1229,11 @@ export default { // 展示模式由已选数据决定:有站点编码则显示站点名,否则省市区;暂不按运输方式强制站点限制。 return Boolean(siteCode && siteCode !== '/'); }, - hasAddressValue(target) { - const field = this.addressModel(target); - if (!field) return false; - return Boolean( - String(field.model[field.address] || '').trim() || String(field.model[field.name] || '').trim() - ); - }, - tipEmptyAddressDetail(target) { - // 替代原「请先选择运输方式」placeholder:空地址点击时 toast,已有值不再提示。 - if (!this.hasAddressValue(target)) { - this.$message.warning('请输入详细地址'); - } - }, resolveAddressRegionCode(row = {}) { return row.regionCode || row.districtCode || row.areaCode || row.adcode || ''; }, openCommonAddress(target) { if (this.isBasicRouteReadonly) return; - this.tipEmptyAddressDetail(target); this.addressTarget = target; // 暂不按运输方式限制站点:统一走常用地址选择。 this.addressQuery = {}; @@ -1356,7 +1342,6 @@ export default { }, handleAddressDetailClick(target) { if (this.isBasicRouteReadonly) return; - this.tipEmptyAddressDetail(target); this.openAddressMap(target); }, openAddressMap(target) { diff --git a/src/views/business/components/waybill-manage-page.vue b/src/views/business/components/waybill-manage-page.vue index e1dd0f9..268d6cc 100644 --- a/src/views/business/components/waybill-manage-page.vue +++ b/src/views/business/components/waybill-manage-page.vue @@ -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) { diff --git a/src/views/business/waybill-manage.vue b/src/views/business/waybill-manage.vue index bc03525..ffc278b 100644 --- a/src/views/business/waybill-manage.vue +++ b/src/views/business/waybill-manage.vue @@ -6,7 +6,7 @@ :config="config" :crud-option="option" :detail-id="detailId" - :menu-width="250" + :menu-width="320" standalone-form-page />