feat : finalisation et correctif couleur de affichage reception finie
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
:disabled="!auth.isAdmin"
|
||||
:min="0"
|
||||
:max="48000"
|
||||
wrapper-class="flex-col"
|
||||
/>
|
||||
|
||||
<UiDateInput
|
||||
@@ -23,6 +24,7 @@
|
||||
labelClass="font-bold uppercase"
|
||||
v-model="sharedWeightMeta.dsd"
|
||||
:disabled="!auth.isAdmin"
|
||||
wrapper-class="flex-col"
|
||||
/>
|
||||
</div>
|
||||
</form>
|
||||
@@ -41,11 +43,6 @@ const props = defineProps<{
|
||||
isValidate: boolean
|
||||
}>()
|
||||
|
||||
const idReception = props.idReception
|
||||
const weightType = props.weightType
|
||||
|
||||
const auth = useAuthStore()
|
||||
|
||||
const form = reactive({
|
||||
weights: [
|
||||
{id: 0, type: 'tare' as const, weight: 0, dsd: null, weighedAt: null},
|
||||
@@ -53,6 +50,9 @@ const form = reactive({
|
||||
]
|
||||
})
|
||||
|
||||
const idReception = props.idReception
|
||||
const weightType = props.weightType
|
||||
const auth = useAuthStore()
|
||||
const weight = form.weights.find(w => w.type === weightType)
|
||||
const initialWeight = ref<{ weight: number | null; dsd: number | null; weighedAt: string | null } | null>(null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user