[#326] Admin modification creation client #25

Merged
tristan merged 2 commits from feat/326-creation-modification-customer into develop 2026-02-13 07:36:59 +00:00
2 changed files with 4 additions and 7 deletions
Showing only changes of commit 72055cac1b - Show all commits

View File

@@ -1,6 +1,6 @@
<template>
<form @submit.prevent="validate">
<div class="flex items-center justify-between gap-10">
<div class="flex items-center justify-between">
<h1 class="text-3xl font-bold uppercase">
{{ customerId ? "Modifications du client" : "Ajout d'un client" }}
</h1>
@@ -14,12 +14,12 @@
</button>
</div>
<div class="grid grid-cols-2 gap-y-16 gap-x-12 mb-10 py-12">
<div class="grid grid-cols-2 gap-y-8 gap-x-80 mb-10 py-12">
<UiTextInput id="customer-label" v-model="form.label" label="Nom du client" :disabled="!auth.isAdmin"/>
<UiTextInput id="customer-code" v-model="form.code" label="Code" :disabled="!auth.isAdmin"/>
</div>
<div class="mb-4 py-2 bg-black "></div>
<div class="mx-24 mb-4 py-6 border-t border-black"></div>
<div class="flex items-center justify-between mb-4">
<h2 class="text-3xl font-bold uppercase">Adresses client</h2>
<button
@@ -105,7 +105,6 @@ const goToAddAddress = () => {
path: "/admin/customer/address",
query: {
customerId: String(customerId.value),
fromCustomer: "1",
},
Review

Pas besoin de from customer au même titre que pas besoin de fromSupplier sur l'autre page

Pas besoin de from customer au même titre que pas besoin de fromSupplier sur l'autre page
})
}
@@ -117,7 +116,6 @@ const goToEditAddress = (addressId: number | null) => {
query: {
customerId: String(customerId.value),
addressId: String(addressId),
fromCustomer: "1",
},
})
Review

Même chose ici

Même chose ici
}
@@ -174,7 +172,6 @@ async function validate() {
label,
code,
}
let targetId: number | null = null
if (customerId.value !== null) {

View File

@@ -1,6 +1,6 @@
<template>
<div class="flex items-center justify-between">
<h1 class="text-3xl font-bold uppercase">Client</h1>
<h1 class="text-3xl font-bold uppercase">Liste des Clients</h1>
<NuxtLink
to="/admin/customer"
class="flex items-center justify-center text-xl uppercase bg-primary-500 text-white h-[50px] w-[272px]"