9 Commits

Author SHA1 Message Date
yin
4008a28796 feat(order): 新增待处理 B2B 订单批量取消,完善收货/盘点筛选与错误提示
- 新增 order.cancelB2b 接口与 CancelB2bForm 弹窗(convertToB2b 的反向操作),
  待处理订单工具栏接入:展示已选标签、去重后可提交数量与上限,支持逐个移除,
  提交后展示成功/跳过原因/未找到订单明细,并提示不支持取消的情形
- 待处理、归档等列表接口文档补充「默认排除 B2B 订单」,如需查询 B2B
  改用 order.pendingOrder2b.list / order.deliveryOrder2b.list
- 收货列表新增「隐藏无可用量」(filterDepleted)与「按入库单筛选」
  (entry_order_id 弹窗选择),移除已废弃的 getAvailableInboundQuantity 接口
- 收货库存明细面板改用 entry / inventory 接口,展示入库单号、库区、库位、
  数量、批次、生产/过期日期与库存类型;详情表单按来货方式动态隐藏物流单号
- 盘点明细新增「删除明细」(仅未开始作业的明细行可删),导出明细支持选择
  「按库位明细」或「明细汇总」模式(商品类任务生效)
- 新增 truncateLongMessage 截断工具,响应拦截与移库失败提示对超长 message
  只保留前 3 段并提示总数,完整信息仍输出到控制台
2026-11-16 18:05:41 +08:00
liufumingren
9aa6e4ca0d fix(login): surface business failures and localize the login panel art
- request interceptor: treat flag=failure / success=false as a business error
  even when code is 0 (the gateway returns code 0 for login failures), so the
  backend message is shown instead of being swallowed
- tag already-notified errors so callers do not toast twice
- user store: throw a readable error when the login response has no token
  (previously crashed on null.token and the login page silently ignored it)
- login page: show an error message for errors the interceptor did not report
- replace the remote gw.alipayobjects.com decoration with a local svg

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-27 00:20:48 +08:00
yin
835eede083 1 2026-09-25 17:59:55 +08:00
liufumingren
b20be60f45 feat(系统设置): 前端独立部署改接 frontConfig.* 8 接口,页面改左菜单布局
API:src/api/frontconfig/frontConfig.ts 新增 getInfo/saveInfo/getDomain/setDomain/checkDomain/getCert/saveCert 及类型、FRONT_DOMAIN_STATUS 常量;移除被取代的 setting.warehouse.getFrontConfig/saveFrontConfig/saveFrontCert 封装与类型。

页面:FrontConfigForm.vue 改为左菜单(域名设置 / HTTPS 证书 / 品牌配置)+ 右内容布局;域名段支持保存域名、TXT 主机名与记录值复制、校验 DNS、刷新状态;证书段 saveCert 不再提交 domain,按 getCert 的 can_set_cert/can_set_cert_reason 置灰上传并展示同步状态;品牌段展示 updated_at。

请求层:request.ts 新增请求级 silentError(静默失败不弹全局提示,token 失效逻辑不受影响);frontConfig.getByDomain 静默失败(未登记/未验证域名 404「域名未配置」属预期);frontBrand 失败改为仅开发环境 debug 日志,并新增并发去重。

文档:前端独立部署操作与部署说明、接口落实任务清单同步新口径(8 接口矩阵与 2026-09-24 流程更正章节)。
2026-09-25 03:13:22 +08:00
yin
4323e78fa7 5月2日 2026-05-04 00:34:56 +08:00
yin
af865de6fc 4月7日 2026-04-07 18:27:40 +08:00
yin
b183c7fcb0 3月27日更新 2026-03-27 17:57:54 +08:00
yin
864ca910eb 19号更新 2026-03-20 09:03:44 +08:00
yin
0ecacb9a21 初始化项目文件 2026-03-16 14:21:04 +08:00