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 @@