244 Commits

Author SHA1 Message Date
liufumingren
d76d3c6746 feat(stock-check): 新建盘点支持静态盘点并在审核时提示锁定
- 新建盘点新增 isStatic 参数(0 关闭 / 1 开启),仅商品盘点显示并传递,库位盘点不传
- 盘点任务回包新增 is_static,列表与详情展示静态盘点标记
- 审核通过确认框对静态盘点任务额外提示:锁定移库、分配储位(拣货不受影响),盘点完成后自动解锁
- 操作列按钮配置支持 confirmMessageWhen 动态确认文案与 HTML 渲染

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-28 07:37:11 +08:00
yin
41a3563bce 1 2026-10-27 19:10:53 +08:00
yin
bb92c720fd refactor: update dialog components for consistent styling and button sizes
- Adjusted button sizes in CameraPreviewDialog and OperationCellRenderer for uniformity.
- Enhanced the layout and structure of ServerFormDialog and sign dialog to improve user experience.
- Implemented a new task panel design for better alignment and readability in various dialogs.
- Added computed properties for dynamic subtitles and footers in the sign dialog.
- Replaced ElMessageBox.prompt with a custom rename remark dialog for better styling consistency.
2026-10-26 17:59:21 +08:00
liufumingren
ad15972f20 feat: enhance user profile management and security features
- Added new API functions for account information retrieval and username/password updates.
- Updated AccountSecurity component to reflect password status and provide password management options.
- Removed BasicInfoForm and OperationLogs components, streamlining the profile interface.
- Enhanced UserInfoCard to allow username editing directly within the card.
- Improved overall user experience with loading states and error handling during API calls.
- Updated profile configuration to remove unused mock data and components.
2026-10-26 09:34:07 +08:00
yin
0d57e2d04a 1 2026-10-21 18:00:05 +08:00
yin
697e50c51e 1 2026-10-17 18:08:29 +08:00
yin
b92f40734a 1 2026-10-16 18:00:04 +08:00
liufumingren
cf674d9fd0 feat(setting.warehouse): 自动出库规则改为数组结构并新增顶层开关
- 新增 auto_outbound_enabled 顶层开关,auto_outbound_rules 改为规则数组(多条为「或」,规则内条件为「与」)
- 移除 auto_outbound_rules 旧的 normalize 逻辑:不再按旧对象结构补齐子项,否则数组会被改写为对象并被 schema 回退成 [],导致用户配置保存时被静默清空
- 表单字段定义同步为 array 类型,更新各项 label/描述与默认值
2026-10-16 05:18:47 +08:00
yin
ac66dce6cf 1 2026-10-13 17:59:29 +08:00
yin
1925741ada 1 2026-10-12 18:01:25 +08:00
liufumingren
66a40bbec4 refactor(库存盘点): 明细面板统一走 stock.check.result(detail 已不再返回明细列表) 2026-10-10 04:33:39 +08:00
liufumingren
460c8984b9 feat(库存盘点): 已完成任务新增导出盘点明细(stock.check.exportDetail 异步导出) 2026-10-10 04:24:50 +08:00
yin
743f714246 1 2026-10-09 17:59:55 +08:00
yin
0cea3df5d5 1 2026-10-08 18:01:10 +08:00
yin
897d95f046 1 2026-10-07 18:16:55 +08:00
liufumingren
0b00014427 feat(退回记录): 新增退回记录多标签页(退回收件任务/退回收件登记/退回拆包单/未退登记/收件/退回拆包作业)
新增:

- data/returnrecord tab 合并页 + router/map 映射(支持 ?tab= 刷新回到该页签)

- api/returnreceivedtask(list/create/delete-ids)

退回收件任务:

- 列表/筛选(关键词移至工具栏、是否有登记)/分页;新建(仅标题,批次号服务端生成);多选批量删除;登记数列(el-tag)

收件 tab:

- 左=锁定任务+扫码登记表单(无左侧label),右=该任务登记列表(语义化列+'-')

- 备注可复用下拉(localStorage)且常驻;扫码枪焦点无关自动登记(防双提交)

- 仅从任务列表「登记收件」进入,切走即移除页签

其它:

- 退回拆包单内嵌「拆包作业」入口;作业页键盘监听随激活态收放;进行中任务离开拦截

- 退回收件登记移除内置扫码表单/扫描人员工号;点 tab 清筛选;运单退回登记更名未退登记

- ScanBox/弹窗/单位换算等若干交互修复
2026-10-05 20:13:35 +08:00
yin
43cafbba83 1 2026-10-03 18:00:19 +08:00
yin
ef732ca2c6 1 2026-10-02 18:09:50 +08:00
yin
9913eba441 1 2026-10-02 18:04:11 +08:00
yin
72127ac45e 1 2026-10-02 18:03:43 +08:00
liufumingren
eb305306eb feat(库存盘点): 明细平铺/批量删除、库位级联选择器与 addDetail 新契约
- 明细面板:库位行内商品平铺成行、新增「明细类型」列、批量删除明细(stock.check.detailDelete,按明细ID去重,上限 200)

- 新增 LocationPicker(仓库→库区→货架→库位逐层下拉,v-model 为库位ID数组),「添加盘点库位」接入该组件

- addDetail 改走 location_ids(优先于 locations),补 invalid_location_ids 提示

- 删除调试用临时文件 temp_stockcheck_tail.txt
2026-10-02 03:22:21 +08:00
yin
4d89cd31d0 1 2026-10-01 18:02:41 +08:00
liufumingren
4dc90ac539 1 2026-10-01 09:07:35 +08:00
yin
48dbe020ff 1 2026-09-30 18:13:53 +08:00
yin
2cf3806edf 1 2026-09-29 18:15:06 +08:00
yin
cf119f7ff3 1 2026-09-28 18:00:22 +08:00
yin
afe4298997 1 2026-09-26 18:00:37 +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
liufumingren
2fe9a2c844 fix(系统设置): 仓库设置支持嵌套 object 子项,售后跟进时间不再渲染为 [object Object]
- 新增 ObjectFieldEditor.vue:object 字段按 meta itemFields 递归渲染(bool/select/color/number/string),
  嵌套 object 不再退化成文本框 String(对象);留空表示「跟随服务端默认」,提交时不写入该键
- WarehouseSettingsForm.vue:object 字段改用递归编辑器并整体回写;ensureFieldDefaults 不再为嵌套 object 预填二级值;
  顺带修掉模板 `as number | undefined` 触发的 vue/no-deprecated-filter 与 v-loading 属性顺序告警
- settingwarehouse.ts normalizeSchemaValue 增加 depth(顶层=1):
  * 扁平标量(如 order: "24")归一为 { _default: 24 },不再被内层默认值覆盖丢值
  * 嵌套 object 无实际值或归一化后为空则不写入该键
  * 嵌套层叶子缺省不注入 meta 默认(留空 = 跟随服务端默认)
2026-09-24 03:23:39 +08:00
yin
c926beb226 1 2026-09-23 18:10:36 +08:00
liufumingren
4b6def1d89 fix(系统设置): 仓库设置子项归一化改为按 getFieldMeta 的 item_keys 驱动
- auto_outbound_rules 字段名对齐后端:allow_same_day_outbound 改为 exclude_same_day_outbound
  (语义相反、默认 true),并兼容读取旧字段名
- normalizeWarehouseSubjectConfig 新增可选 schema:顶层 object / array 字段的子项按 meta
  item_keys 递归归一化(flag→boolean、integer→number、缺省用 default),避免后端改字段名
  或新增子项时读取与提交再次出现漂移;顶层其它类型保持既有归一化,不改 flag 的 0/1 语义
- normalizeGetSettingsPayload / buildSaveSettingsRequest / normalizeSaveSettingsPayload 透传 schema;
  页面先解析 meta 再解析 settings,并把字段元信息作为 schema 传入
- 顺带修复 after_sale_followup_hours 提交空对象的问题
2026-09-23 02:34:47 +08:00
liufumingren
5c3ad6ad75 feat(微信小程序): 认证状态对接 queryauth 新契约,新增发起认证与同步微信信息
- wechat.ts:wechat.queryauth 契约更新(is_verified / verify_type_id / taskid / apply_status 等);
  新增 wechat.wxaauth(发起认证,图片字段支持 COS URL,超时 180s)与 wechat.getAuthorizerInfo
- MiniProgramConfigForm.vue:认证状态面板按新契约重写,新增「发起微信认证」弹窗与「同步微信信息」入口
2026-09-23 02:22:44 +08:00
liufumingren
b32bc4ec7e fix(系统设置): 仓库设置自动出库规则不再丢失「出库当天订单」的时间字段
normalizeWarehouseSubjectConfig 原先按「值是否为 boolean」过滤 auto_outbound_rules 子项,
字符串子项 same_day_outbound_deadline_time / same_day_outbound_release_time(HH:mm)
在读取(getSettings)与保存(saveSettings)时都被静默丢弃;改为按 flag 与 HH:mm 时间
白名单逐项归一化,并补全页面兜底字段与输入长度限制。
2026-09-23 02:22:42 +08:00
yin
b370cfd706 1 2026-09-22 18:10:52 +08:00
liufumingren
fc5a80717e feat(微信小程序): 授权页支持主域名校验、代注册入口与左菜单+右明细结构
- 主域名校验:复用 frontBrand 导出 isMainDomainHost/normalizeFrontHost/getMainDomainHosts,非主域名禁用授权/代注册并提示
- 新增「代注册小程序」按钮:wechat.getRegisterUrl 取链接,在新小窗打开
- 已授权改为左菜单+右明细(基础信息/认证状态/备案配置/支付配置/发布/微信用户),左右各自滚动、边框到底
- 基础信息改为「名称:不可编辑输入框」;头像只显示图片;隐藏启用状态/所属仓库/记录ID
- 修正 auth_time(Unix 秒)与 ISO 时间本地化;func_info JSON 解析为功能标签
2026-09-22 02:39:47 +08:00
liufumingren
401d1aa3df feat(系统设置): 新增微信小程序配置页(标签页 + 独立页)
- 接口:setting.warehouse.getweChatApp 拉取已授权小程序配置
- 接口:wechat.getAuthUrl 获取微信授权链接(点击按钮后在新小窗打开)
- 未授权(data 为 null)时提示需要授权,授权完成自动轮询刷新
- 新增「微信小程序」标签页与 system/setting/miniprogram 独立页路由(备用)
2026-09-21 18:26:00 +08:00
yin
f68c1fd301 1 2026-09-21 18:00:26 +08:00
liufumingren
bf9bba5059 feat(order): 波次/订单新增「确认打印状态」「领料状态」,波次页支持扫码确认打印
波次:注册全局扫码事件(src/composables/useBarcodeScan.ts),长度超过 8 位的面单号提交 order.wave.confirmPrintScan 整波确认打印,切页/失活自动摘除监听;tab 区新增「确认打印未领单 N」角标,order.wave.confirmPrintUnclaimedWaveCount 长轮询实时刷新(离开页面停止、回到页面重新轮询);列表新增确认打印状态/领料状态筛选、列与明细展示

订单:列表补齐「确认打印状态」(confirm_print_status) 与「领料状态」(claim_status) 列;ScanBox 流程状态组新增两项筛选(待处理/待出库/待处理异常/配送订单);导出字段白名单新增「领料状态」「确认打印状态」(流程状态分组,52 → 54);claim_status 文案由「认领」统一为「领料」
2026-09-20 05:01:59 +08:00
yin
648a6eb86c 1 2026-09-19 17:59:58 +08:00
liufumingren
68f7990373 1 2026-09-18 09:55:20 +08:00
yin
c20eff0d8a 1 2026-09-16 18:11:39 +08:00
liufumingren
60318d9b07 feat(camera): 摄像头预览弹窗新增云台控制面板(方向/转速/预置点)
- src/api/camera: 新增 ptzControl / ptzStop / ptzPresetGoto / ptzPresetSet 及 PtzDirection、转速与预置点校验

- src/components/CameraPtzPanel: 8 方向按住转动(松手停止)、转速 1-7、预置点 1-8 快捷键与编号跳转/覆盖保存

- 防呆: 按下请求未返回时先记录、返回后补发 stop;window pointerup/pointercancel/blur 与卸载时兜底停止

- newcamara 预览弹窗接入云台面板
2026-09-15 21:08:49 +08:00
yin
3e9095c73e 1 2026-09-15 18:31:55 +08:00
liufumingren
4ecf3c32b8 1 2026-09-15 09:04:56 +08:00
liufumingren
2cc558be60 1 2026-09-15 09:04:25 +08:00
yin
f4db240163 1 2026-09-14 18:07:40 +08:00
yin
abf03a901f 1 2026-09-11 17:59:33 +08:00
liufumingren
1b4107c437 feat(波次拣货): 拣货中任务列表新增「车编码」查询条件(where.cart_code,默认模糊匹配) 2026-09-10 23:33:36 +08:00
yin
1d29952e22 1 2026-09-09 18:02:17 +08:00