|
@@ -60,6 +60,14 @@
|
|
|
readonly
|
|
readonly
|
|
|
:model-value="totalValueFormatted"
|
|
:model-value="totalValueFormatted"
|
|
|
/>
|
|
/>
|
|
|
|
|
+
|
|
|
|
|
+ <q-toggle
|
|
|
|
|
+ v-model="form.visible_franchisee"
|
|
|
|
|
+ class="col-12"
|
|
|
|
|
+ color="primary"
|
|
|
|
|
+ label="Visível para o Franqueado"
|
|
|
|
|
+ left-label
|
|
|
|
|
+ />
|
|
|
</q-card-section>
|
|
</q-card-section>
|
|
|
</q-scroll-area>
|
|
</q-scroll-area>
|
|
|
|
|
|
|
@@ -140,6 +148,7 @@ const { form, getUpdatedFields } = useForm(
|
|
|
name: props.product?.name ?? "",
|
|
name: props.product?.name ?? "",
|
|
|
quantity: props.product?.quantity ?? 0,
|
|
quantity: props.product?.quantity ?? 0,
|
|
|
unitPrice: props.product?.price_sale ?? 0,
|
|
unitPrice: props.product?.price_sale ?? 0,
|
|
|
|
|
+ visible_franchisee: props.product?.visible_franchisee ?? false,
|
|
|
},
|
|
},
|
|
|
{ containerRef: scrollAreaRef },
|
|
{ containerRef: scrollAreaRef },
|
|
|
);
|
|
);
|
|
@@ -177,6 +186,7 @@ const onOKClick = async () => {
|
|
|
name: form.name,
|
|
name: form.name,
|
|
|
price_sale: form.unitPrice,
|
|
price_sale: form.unitPrice,
|
|
|
quantity: Number(form.quantity),
|
|
quantity: Number(form.quantity),
|
|
|
|
|
+ visible_franchisee: form.visible_franchisee,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
await execute(() => {
|
|
await execute(() => {
|