added emergency price/ checks info
This commit is contained in:
@@ -56,7 +56,12 @@
|
||||
class="input input-bordered input-sm w-full max-w-xs"
|
||||
id="title" type="text" placeholder="Price Same Day"/>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="block text-white text-sm font-bold mb-2">Price Emergency Call (After Hours)</label>
|
||||
<input v-model="CreateOilForm.basicInfo.price_emergency"
|
||||
class="input input-bordered input-sm w-full max-w-xs"
|
||||
id="title" type="text" placeholder="Price After hours same day call"/>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label class="block text-white text-sm font-bold mb-2">Price Prime</label>
|
||||
<input v-model="CreateOilForm.basicInfo.price_prime"
|
||||
@@ -110,6 +115,7 @@
|
||||
price_for_employee: '',
|
||||
price_same_day: '',
|
||||
price_prime: '',
|
||||
price_emergency: '',
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -160,6 +166,7 @@
|
||||
this.CreateOilForm.basicInfo.price_for_employee = response.data.price_for_employee;
|
||||
this.CreateOilForm.basicInfo.price_same_day = response.data.price_same_day;
|
||||
this.CreateOilForm.basicInfo.price_prime = response.data.price_prime;
|
||||
this.CreateOilForm.basicInfo.price_emergency = response.data.price_emergency;
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -169,6 +176,7 @@
|
||||
price_for_employee: string;
|
||||
price_same_day: string;
|
||||
price_prime: string;
|
||||
price_emergency: string;
|
||||
|
||||
}) {
|
||||
let path = import.meta.env.VITE_BASE_URL + "/admin/oil/create";
|
||||
@@ -186,7 +194,7 @@
|
||||
text: "Prices have been updated!",
|
||||
type: "success",
|
||||
});
|
||||
this.$router.push({name: "oilprice"});
|
||||
this.$router.push({name: "home"});
|
||||
}
|
||||
if (response.data.error) {
|
||||
this.$router.push("/");
|
||||
@@ -200,6 +208,7 @@
|
||||
price_for_employee: this.CreateOilForm.basicInfo.price_for_employee,
|
||||
price_same_day: this.CreateOilForm.basicInfo.price_same_day,
|
||||
price_prime: this.CreateOilForm.basicInfo.price_prime,
|
||||
price_emergency: this.CreateOilForm.basicInfo.price_emergency,
|
||||
};
|
||||
this.CreatePricing(payload);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user