From 10b6e5bda33a0a266fa1bc6df75e248f9c849e68 Mon Sep 17 00:00:00 2001 From: faiztyanirh Date: Fri, 20 Feb 2026 16:59:56 +0700 Subject: [PATCH] continue dict test refnum --- .../test/config/test-form-config.js | 4 +-- .../dictionary/test/page/create-page.svelte | 2 +- .../test/page/reference/ref-num.svelte | 32 +++++++++++++++++-- .../dictionary/test/page/view-page.svelte | 2 -- .../form/dictionary-form-renderer.svelte | 5 +-- 5 files changed, 36 insertions(+), 9 deletions(-) diff --git a/src/lib/components/dictionary/test/config/test-form-config.js b/src/lib/components/dictionary/test/config/test-form-config.js index aac173f..ff664b8 100644 --- a/src/lib/components/dictionary/test/config/test-form-config.js +++ b/src/lib/components/dictionary/test/config/test-form-config.js @@ -25,7 +25,7 @@ export const testInitialForm = { ReqQtyUnit: "", CollReq: "", Method: "", - ExpectedTXT: "", + ExpectedTAT: "", SeqScr: "", SeqRpt: "", VisibleScr: "", @@ -229,7 +229,7 @@ export const testFormFields = [ key: "ExpectedTAT", label: "Expected TAT", required: false, - type: "select", + type: "text", fullWidth: false }, ] diff --git a/src/lib/components/dictionary/test/page/create-page.svelte b/src/lib/components/dictionary/test/page/create-page.svelte index 18c21e2..d6faf98 100644 --- a/src/lib/components/dictionary/test/page/create-page.svelte +++ b/src/lib/components/dictionary/test/page/create-page.svelte @@ -179,7 +179,7 @@
{#if refComponent === 'numeric'} - + {:else if refComponent === 'text'} {:else} diff --git a/src/lib/components/dictionary/test/page/reference/ref-num.svelte b/src/lib/components/dictionary/test/page/reference/ref-num.svelte index ea9a7a8..5a7b27e 100644 --- a/src/lib/components/dictionary/test/page/reference/ref-num.svelte +++ b/src/lib/components/dictionary/test/page/reference/ref-num.svelte @@ -6,6 +6,21 @@ import { Badge } from "$lib/components/ui/badge/index.js"; let props = $props(); + + let disabledSign = $derived.by(() => { + const refType = props.refType; + + if (refType === "RANGE") return true; + if (refType === "THOLD") return false; + + return false; + }); + + $effect(() => { + if (props.refType) { + props.refNumState.form.NumRefType = props.refType; + } + });
@@ -13,6 +28,7 @@