From 0e5a32616d33649e9178e8b705240587e5e97861 Mon Sep 17 00:00:00 2001
From: liuyihe <2513762445@qq.com>
Date: Tue, 20 Oct 2026 14:52:33 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/dispatch/dispatch.vue | 2 +-
src/pages/module/module.vue | 2 +-
src/pages/move/move.vue | 4 ++--
src/pages/operation/operation.vue | 2 +-
src/pages/pallet/pallet.vue | 4 ++--
src/pages/relabel/relabel.vue | 6 +++---
src/pages/return-packing/return-packing.vue | 6 +++---
src/pages/return-receipt/return-receipt.vue | 4 ++--
src/pages/stocktake/stocktake.vue | 4 ++--
src/pages/warehouse-transfer/warehouse-transfer.vue | 4 ++--
tests/input-placeholders.test.mjs | 6 +++---
tests/warehouse-workflows.test.mjs | 2 +-
12 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/src/pages/dispatch/dispatch.vue b/src/pages/dispatch/dispatch.vue
index 780eb18..35f6a05 100644
--- a/src/pages/dispatch/dispatch.vue
+++ b/src/pages/dispatch/dispatch.vue
@@ -2,7 +2,7 @@
- 整车拣货、装车与发车一张排车单代表一趟车,按实物托盘码或来源箱唛逐项作业。
+ 整车拣货、装车与发车
排车 {{ pendingCommand.dispatchNo }} 的原操作结果待核对,请保留原请求。
{{ current.dispatchNo }}
diff --git a/src/pages/module/module.vue b/src/pages/module/module.vue
index f2b777d..22911b3 100644
--- a/src/pages/module/module.vue
+++ b/src/pages/module/module.vue
@@ -3,7 +3,7 @@
{{ currentModule.icon }}{{ currentModule.name }}{{ currentModule.description }}{{ availableCount }}/{{ currentModule.operations.length }} 可用
- 业务功能点击可用功能开始作业
+ 业务功能
灰色功能尚未开放,仅可进入已接入真实接口的作业。
diff --git a/src/pages/move/move.vue b/src/pages/move/move.vue
index b85adb0..b7fbaaa 100644
--- a/src/pages/move/move.vue
+++ b/src/pages/move/move.vue
@@ -2,7 +2,7 @@
- 整托移库扫描来源托盘和同仓目标库位,按服务端资源版本一次移动整托库存
+ 整托移库
正在恢复未完成的移库草稿…
暂无已读取托盘,请先扫描或输入来源托盘码
@@ -17,7 +17,7 @@
{{ target.locationCode }}{{ locationTypeLabel(target.locationType) }}{{ statusLabel(target.status) }}{{ target.occupiedPackages }}已占箱数{{ target.inventoryPositionCount }}库存位置
- 3. 移库原因来源和目标必须属于 Token 绑定的同一海外仓;冲突后必须重新扫描。
+ 3. 移库原因(必填)发生冲突后请重新扫描。
移库完成{{ result.moveNo || '移库单号待生成' }}{{ result.palletCode }}:{{ result.sourceLocationCode || '未绑定库位' }} → {{ result.targetLocationCode || '—' }}{{ result.packageCount }} 箱 · {{ result.replayed ? '幂等恢复结果' : '本次提交成功' }}
{{ error.message }}错误码:{{ error.code }}requestId:{{ error.requestId }}traceId:{{ error.traceId }}
diff --git a/src/pages/operation/operation.vue b/src/pages/operation/operation.vue
index eb3bf22..1fb7979 100644
--- a/src/pages/operation/operation.vue
+++ b/src/pages/operation/operation.vue
@@ -99,7 +99,7 @@
总计 {{ activeInbound.totalPackages }} 箱已收 {{ activeInbound.receivedPackages }} 箱待收 {{ activeInbound.pendingPackages }} 箱
2. 扫描预留实物托盘码
- 扫码确认服务端已预留的托盘及库位;合托提示不改变当前分配。
+
{{ resolvedPallet.palletCode }}{{ resolvedPallet.compatible ? '预留托盘校验通过,可收货' : '托盘不匹配' }}库位:{{ resolvedPallet.locationCode }}{{ resolvedPallet.locationType === 'SHARED_OVERFLOW' ? '(A0共享溢出位)' : '' }}库位:待现场确认
diff --git a/src/pages/pallet/pallet.vue b/src/pages/pallet/pallet.vue
index 05e85fa..21fefee 100644
--- a/src/pages/pallet/pallet.vue
+++ b/src/pages/pallet/pallet.vue
@@ -5,7 +5,7 @@
托盘管理
- 扫描实物托盘,按 Token 绑定的当前海外仓执行作业
+
@@ -46,7 +46,7 @@
作业备注
-
+
{{ confirmationTip }}
diff --git a/src/pages/relabel/relabel.vue b/src/pages/relabel/relabel.vue
index 653309d..a012b34 100644
--- a/src/pages/relabel/relabel.vue
+++ b/src/pages/relabel/relabel.vue
@@ -41,7 +41,7 @@
-
+ 跳过或异常原因(必填)
@@ -56,13 +56,13 @@
{{ photoNames[index] || '换标现场照片' }}
-
+ {{ allProcessed ? '完成备注(选填)' : '异常作业备注(必填)' }}
还不能完成换标{{ completionBlockReason }}
- 待客户确认现场换标已经完成。请客户在客户工作台核对完工结果并确认;需要退回重做时由平台处理。
+ 待客户确认现场换标已完成,等待客户确认。
diff --git a/src/pages/return-packing/return-packing.vue b/src/pages/return-packing/return-packing.vue
index 4a84e7f..4fdc37d 100644
--- a/src/pages/return-packing/return-packing.vue
+++ b/src/pages/return-packing/return-packing.vue
@@ -4,14 +4,14 @@
- 仓库现场直接合箱扫描 SKU 或箱号开始;系统会自动锁定客户和当前仓,跨客户货物不能合箱。
- 平台合箱计划审核通过后推送按计划锁定的来源箱和数量作业,后续合箱规则不变。
+ 仓库现场直接合箱
+ 平台合箱计划审核通过后推送
选择客户该 SKU 在多个客户有可用退货库存,请先选择客户
没有匹配的已完成退货单或可用库存
- {{ activePlan ? `合箱计划 ${activePlan.planNo}` : '客户散件库存' }}{{ activePlan ? '数量已由计划锁定,请分配到目标箱。' : '已锁定一个客户;可用数量来自该客户同仓全部散件库存,后台自动追溯来源退货单。' }}
+ {{ activePlan ? `合箱计划 ${activePlan.planNo}` : '客户散件库存' }}
新箱 SKU 数量{{ item.skuCode }}{{ item.productNameZh || '商品名称未填写' }}可用 {{ item.availableQuantity }}装入数量
diff --git a/src/pages/return-receipt/return-receipt.vue b/src/pages/return-receipt/return-receipt.vue
index 49d2336..dc5eef3 100644
--- a/src/pages/return-receipt/return-receipt.vue
+++ b/src/pages/return-receipt/return-receipt.vue
@@ -5,7 +5,7 @@
扫描 SKU 69 码
- 扫描完成后自动匹配对应退货单
+
@@ -47,7 +47,7 @@
{{ item.skuCode }}{{ item.productNameZh || '商品名称未填写' }}剩余 {{ remaining(item) }}数量SKU 箱数
{{ unitType === 'PARCEL' ? '本次合计' : '本托合计' }}{{ receiptQuantity }}
- 退货打托照片{{ unitType !== 'PALLET' ? '支持多张照片,上传后点击确认签收入库' : '签收过程中可随时拍照' }}{{ photoFileIds.length }} / 20 张{{ photoNames[index] || '退货打托照片' }}
+ 退货打托照片{{ photoFileIds.length }} / 20 张{{ photoNames[index] || '退货打托照片' }}
本次合计{{ receiptQuantity }}
本单已完成打托{{ pallet.palletCode }}{{ pallet.skuCode }} · {{ pallet.quantity }} 件签收批次:{{ pallet.receiptBatchNo }}
diff --git a/src/pages/stocktake/stocktake.vue b/src/pages/stocktake/stocktake.vue
index 02146a0..39753fe 100644
--- a/src/pages/stocktake/stocktake.vue
+++ b/src/pages/stocktake/stocktake.vue
@@ -2,7 +2,7 @@
- 库存盘点按 Token 绑定的海外仓冻结库位或托盘库存,逐位置实盘后提交差异
+ 库存盘点
新建盘点任务
@@ -24,7 +24,7 @@
- 提交原因所有位置完成实盘后才能提交;版本变化时页面会自动刷新。
+ 提交原因(必填)所有位置完成实盘后才能提交。
{{ error.message }}错误码:{{ error.code }}requestId:{{ error.requestId }}traceId:{{ error.traceId }}
diff --git a/src/pages/warehouse-transfer/warehouse-transfer.vue b/src/pages/warehouse-transfer/warehouse-transfer.vue
index f76f5bd..3380952 100644
--- a/src/pages/warehouse-transfer/warehouse-transfer.vue
+++ b/src/pages/warehouse-transfer/warehouse-transfer.vue
@@ -7,7 +7,7 @@
- 仓储转运测量列表选择待测转运单
+ 仓储转运测量列表
@@ -47,7 +47,7 @@
{{ palletSummary(pallet).cartonCount }} 箱实收箱数{{ palletVolume(pallet) }} m³体积{{ palletSummary(pallet).weight.toFixed(2) }} kg重量
{{ pallet.palletNo }}当前签收
- 本托箱子汇总由分配到本托的实收箱自动汇总,无需填写托盘尺寸和重量
+ 本托箱子汇总
{{ palletSummary(pallet).cartonCount }}实收箱数{{ palletVolume(pallet) }}箱子体积 m³{{ palletSummary(pallet).weight.toFixed(2) }}箱子重量 kg
{{ pallet.palletNo }}{{ destinationLabel(pallet, selected) }}
diff --git a/tests/input-placeholders.test.mjs b/tests/input-placeholders.test.mjs
index fee7f7b..7330b67 100644
--- a/tests/input-placeholders.test.mjs
+++ b/tests/input-placeholders.test.mjs
@@ -18,18 +18,18 @@ async function vueFiles(directory) {
return files
}
-test('every editable PDA input and textarea provides an input hint', async () => {
+test('every editable PDA input and textarea provides a label or input hint', async () => {
const missing = []
for (const file of await vueFiles(sourceRoot)) {
const source = await readFile(file, 'utf8')
for (const match of source.matchAll(/<(input|textarea)\b[^>]*>/gs)) {
- if (!/\s:?placeholder\s*=/.test(match[0])) {
+ if (!/\s:?(?:placeholder|aria-label)\s*=/.test(match[0])) {
const line = source.slice(0, match.index).split('\n').length
missing.push(`${relative(sourceRoot, file)}:${line}`)
}
}
}
- assert.deepEqual(missing, [], `缺少 placeholder:${missing.join(', ')}`)
+ assert.deepEqual(missing, [], `缺少输入标签或提示:${missing.join(', ')}`)
})
test('quantity inputs explain the valid package range', async () => {
diff --git a/tests/warehouse-workflows.test.mjs b/tests/warehouse-workflows.test.mjs
index ca43e85..23876be 100644
--- a/tests/warehouse-workflows.test.mjs
+++ b/tests/warehouse-workflows.test.mjs
@@ -130,7 +130,7 @@ test('relabel review opens a pending task as customer-confirmation read-only det
assert.match(page, /[\s\S]*@tap="openReview\(item\)"/)
assert.match(page, /查看并复核/)
assert.match(page, /async openReview\(item\)/)
- assert.match(page, /现场换标已经完成。请客户在客户工作台核对完工结果并确认/)
+ assert.match(page, /现场换标已完成,等待客户确认/)
assert.doesNotMatch(page, /@tap="review\('APPROVE'\)"/)
assert.match(page, /