From 9c17ec2779e717e0733d7425b6ac4c0f520a9d2e Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Fri, 6 Nov 2026 13:53:33 +0800 Subject: [PATCH] fix(pda): prepare 0.1.0 package and refresh counting retry keys --- src/manifest.json | 4 ++-- src/pages/warehouse-transfer/warehouse-transfer.vue | 5 ++++- tests/fulfillment-workflows.test.mjs | 8 +++++--- tests/project-contract.test.mjs | 12 ++++++------ 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index 6ba6975..3577175 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,8 +2,8 @@ "name" : "柏悦物流 PDA 海外版", "appid" : "__UNI__936D079", "description" : "柏悦物流海外仓 PDA 作业端", - "versionName" : "0.0.5", - "versionCode" : 5, + "versionName" : "0.1.0", + "versionCode" : 10, "transformPx" : false, "app-plus" : { "usingComponents" : true, diff --git a/src/pages/warehouse-transfer/warehouse-transfer.vue b/src/pages/warehouse-transfer/warehouse-transfer.vue index 696ff47..1f065a6 100644 --- a/src/pages/warehouse-transfer/warehouse-transfer.vue +++ b/src/pages/warehouse-transfer/warehouse-transfer.vue @@ -362,7 +362,10 @@ export default { const detail = await countWarehouseTransferCartons(this.selected.transferNo, { idempotencyKey: this.cartonRequestKey, boxes, discrepancyReason: this.countDiscrepancyReason, forecastPackageCount: Number(this.selected.packageCount) }); if (!detail.cartons?.length || !detail.cartons.every(box => box.countedAt)) throw new Error('清点结果未确认,请刷新核实'); uni.setStorageSync(this.cartonDraftKey(), { deletedBoxes: this.deletedCartonBoxes }); this.selected = detail; this.pallets = detail.pallets.map(restoredPallet); this.restoreCartons(); - } catch (error) { this.error = error } finally { this.countingCartons = false } + } catch (error) { this.error = error } finally { + this.countingCartons = false; + this.cartonRequestKey = ''; this.cartonSignature = ''; + } }, openPalletOperations() { uni.navigateTo({ url: '/pages/pallet/pallet' }) }, destinationLabel(value, fallback = {}) { const code = String(value?.fbaWarehouseCode || fallback?.fbaWarehouseCode || '').trim(); if (code) return code; const type = value?.destinationType || fallback?.destinationType; return type === 'PRIVATE' ? '私人仓' : '目的仓待定' }, diff --git a/tests/fulfillment-workflows.test.mjs b/tests/fulfillment-workflows.test.mjs index 2f04d92..f4acd31 100644 --- a/tests/fulfillment-workflows.test.mjs +++ b/tests/fulfillment-workflows.test.mjs @@ -25,9 +25,9 @@ const read = (path) => readFile(new URL(path, import.meta.url), 'utf8') test('outbound list and detail lead with the outbound number and label the task number separately', async () => { const page = await read('../src/pages/outbound/outbound.vue') - assert.match(page, /class="business-code">\{\{ task\.outboundNo \|\| '—' \}\}/) + assert.match(page, /class="pda-task-no">\{\{ task\.outboundNo \|\| '—' \}\}/) assert.match(page, /class="business-code">\{\{ current\.outboundNo \|\| '—' \}\}/) - assert.match(page, /任务号 \{\{ task\.taskNo \|\| '—' \}\}/) + assert.match(page, /任务号 \{\{ task\.taskNo \}\}/) assert.match(page, /任务号 \{\{ current\.taskNo \|\| '—' \}\}/) assert.match(page, /@tap="openTask\(task\.taskNo\)"/) }) @@ -248,10 +248,12 @@ test('native action gates reject strings and retain server block reasons', () => async function dispatchScanHarness(items) { const source = (await read('../src/pages/dispatch/dispatch.vue')).match(/