From 9fd1cc437020e4c15d81a4e57e1eaa6a49e6a0dc Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Thu, 19 Nov 2026 14:29:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(sample):=20=E6=A0=B7=E6=9C=AC=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E9=97=AE=E5=8F=B7=E4=BB=85=E5=B7=B2=E4=BD=9C=E5=BA=9F?= =?UTF-8?q?=E6=97=B6=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Web SampleStatusTag 仅在 sampleStatus=yzf 时显示问号;移动市场部回归断言非作废无 help(#134)。 Co-authored-by: Cursor --- mobile-oa-h5/src/market/list-presenter.test.js | 12 ++++++------ .../components/business/sample-status-tag/index.vue | 6 ++++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/mobile-oa-h5/src/market/list-presenter.test.js b/mobile-oa-h5/src/market/list-presenter.test.js index a1e70012..d3e7509c 100644 --- a/mobile-oa-h5/src/market/list-presenter.test.js +++ b/mobile-oa-h5/src/market/list-presenter.test.js @@ -270,12 +270,12 @@ test('sample-coded list cards show sample status and a void reason affordance', }).fields.find((field) => field.label === '样本状态').value, '已入库' ) - assert.equal( - buildMarketCard('payment-chase', 'specialist', { - sampleCode: 'S-1', sampleStatus: 'jcz' - }).fields.find((field) => field.label === '样本状态').value, - '检测中' - ) + const detecting = buildMarketCard('payment-chase', 'specialist', { + sampleCode: 'S-1', sampleStatus: 'jcz' + }).fields.find((field) => field.label === '样本状态') + assert.equal(detecting.value, '检测中') + assert.equal(detecting.helpTitle, undefined) + assert.equal(detecting.helpText, undefined) const voided = buildMarketCard('payment', 'specialist', { motherName: '作废客户', diff --git a/web-admin/src/components/business/sample-status-tag/index.vue b/web-admin/src/components/business/sample-status-tag/index.vue index c20ddff3..93424642 100644 --- a/web-admin/src/components/business/sample-status-tag/index.vue +++ b/web-admin/src/components/business/sample-status-tag/index.vue @@ -1,8 +1,8 @@ - +