Office driver api get data works
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
<div class="grid grid-cols-1 rounded-md p-6 ">
|
||||
<div class="text-[24px]">
|
||||
Add oil Price
|
||||
Add Oil Price
|
||||
</div>
|
||||
<form class="rounded-md px-8 pt-6 pb-8 mb-4 w-full"
|
||||
enctype="multipart/form-data"
|
||||
@@ -41,12 +41,24 @@
|
||||
class="input input-bordered w-full max-w-xs"
|
||||
id="title" type="text" placeholder="Todays Price Employee"/>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="block text-white text-sm font-bold mb-2"> Price from Supplier</label>
|
||||
<input v-model="CreateOilForm.basicInfo.price_from_supplier"
|
||||
class="input input-bordered w-full max-w-xs"
|
||||
id="prime" type="text" placeholder="Price Prime"/>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="block text-white text-sm font-bold mb-2">Price same day</label>
|
||||
<input v-model="CreateOilForm.basicInfo.price_same_day"
|
||||
class="input input-bordered w-full max-w-xs"
|
||||
id="title" type="text" placeholder="Price Same Day"/>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-span-12 md:col-span-12 flex mt-5 mb-5">
|
||||
<button
|
||||
class="btn">
|
||||
@@ -90,6 +102,7 @@
|
||||
price_from_supplier: '',
|
||||
price_for_customer: '',
|
||||
price_for_employee: '',
|
||||
price_same_day: '',
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -138,6 +151,7 @@
|
||||
this.CreateOilForm.basicInfo.price_from_supplier = response.data.price_from_supplier;
|
||||
this.CreateOilForm.basicInfo.price_for_customer = response.data.price_for_customer;
|
||||
this.CreateOilForm.basicInfo.price_for_employee = response.data.price_for_employee;
|
||||
this.CreateOilForm.basicInfo.price_same_day = response.data.price_same_day;
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -145,6 +159,7 @@
|
||||
price_from_supplier: string;
|
||||
price_for_customer: string;
|
||||
price_for_employee: string;
|
||||
price_same_day: string;
|
||||
|
||||
}) {
|
||||
let path = import.meta.env.VITE_BASE_URL + "/admin/oil/create";
|
||||
@@ -174,6 +189,7 @@
|
||||
price_from_supplier: this.CreateOilForm.basicInfo.price_from_supplier,
|
||||
price_for_customer: this.CreateOilForm.basicInfo.price_for_customer,
|
||||
price_for_employee: this.CreateOilForm.basicInfo.price_for_employee,
|
||||
price_same_day: this.CreateOilForm.basicInfo.price_same_day,
|
||||
};
|
||||
this.CreatePricing(payload);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user