| Maklumat Marhun | ++ Harga Asas + | ++ Harga Bida + | ++ Tindakan + | +
+ + {{ senaraiCart.datalelongbid.norujukan }} ++ +
+ Marhun: + {{ senaraiCart.datalelongbid.marhun }} + ++ Berat: + {{ senaraiCart.datalelongbid.berat }}g + ++ Cawangan: + {{ + senaraiCart.datalelongbid.cawangan.caw_name + }} + +
+
+
+ |
+
+ + RM{{ senaraiCart.datalelongbid.hargaasas }} + | +
+ RM{{ senaraiCart.hargabida }}+ |
+ + + | +
Jumlah Bilangan Surat
+{{ total_sag }}
+Jumlah Bidaan
+RM{{ total_bidaan }}
+| Maklumat Marhun | -- Harga Asas - | -- Harga Bida - | -- Tindakan - | -
- - {{ senaraiCart.datalelongbid.norujukan }} -- -
- Marhun: - {{ senaraiCart.datalelongbid.marhun }} - -- Berat: - {{ senaraiCart.datalelongbid.berat }}g - -- Cawangan: - {{ - senaraiCart.datalelongbid.cawangan - .caw_name - }} - -
-
-
- |
-
- - RM{{ senaraiCart.datalelongbid.hargaasas }} - | -
- RM{{ senaraiCart.hargabida }}- |
- - - | -
Jumlah Bilangan Surat
-{{ total_sag }}
-Jumlah Bidaan
-RM{{ total_bidaan }}
-- Flowbite is an open-source library of interactive components built on - top of Tailwind CSS including buttons, dropdowns, modals, navbars, and - more. -
-- Check out this guide to learn how to - get started - and start developing websites even faster with components on top of - Tailwind CSS. -
-- Flowbite is first conceptualized and designed using the Figma software - so everything you see in the library has a design equivalent in our - Figma file. -
-- Check out the - Figma design system - based on the utility classes from Tailwind CSS and components from - Flowbite. -
-- The main difference is that the core components from Flowbite are open - source under the MIT license, whereas Tailwind UI is a paid product. - Another difference is that Flowbite relies on smaller and standalone - components, whereas Tailwind UI offers sections of pages. -
-- However, we actually recommend using both Flowbite, Flowbite Pro, and - even Tailwind UI as there is no technical reason stopping you from - using the best of two worlds. -
-- Learn more about these technologies: -
-- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Molestie - parturient et sem ipsum volutpat vel. Natoque sem et aliquam mauris - egestas quam volutpat viverra. In pretium nec senectus erat. Et - malesuada lobortis. -
-Tahniah! Bidaan anda menang.
- -{{todo.masakemaskini_data}}
-{{this.allTodos.length}}
- - - - \ No newline at end of file diff --git a/src/components/list/ListItem.vue b/src/components/list/ListItem.vue index 557891d..bd0992a 100644 --- a/src/components/list/ListItem.vue +++ b/src/components/list/ListItem.vue @@ -150,7 +150,7 @@ type="text" id="tambahanbida" class="form-control" - @change="calcTotal()" + @keyup="calcTotal()" /> @@ -214,6 +214,7 @@ import { required, integer, numeric, minValue } from "@vuelidate/validators"; import { mapGetters, mapActions } from "vuex"; export default { + emits: ["reloadComponent"], props: { selectedCawangan: { type: String }, reloadId: { type: Number }, @@ -297,9 +298,10 @@ export default { this.norujukan = norujukan; this.marhuns = this.norujukan.lelongbidmarhun; this.form.lelongbid_id = this.norujukan.id; - this.tambahan = 1; + // this.tambahan = ; this.form.hargabida = - parseFloat(this.tambahan) + parseFloat(this.norujukan.hargaasas); + // parseFloat(this.tambahan) + parseFloat(this.norujukan.hargaasas); + parseFloat(this.norujukan.hargaasas); }, calcTotal() { this.form.hargabida = @@ -309,6 +311,8 @@ export default { addToCart() { this.v$.$validate(); if (!this.v$.$error) { + this.$refs.tambahClose.click(); + this.loading = true; axios .post("/addToCart", this.form, { headers: { @@ -317,13 +321,13 @@ export default { }) .then((response) => { console.log(response); - this.loading = true; - this.$refs.tambahClose.click(); + this.loading = false; - this.$emit("reloadComponent", this.reloadId); + this.$emit("reloadComponent"); // location.reload(); }) .catch((error) => { + this.loading = false; console.log(error); }); } else { diff --git a/src/components/list/Senarai.vue b/src/components/list/Senarai.vue deleted file mode 100644 index 92e6e67..0000000 --- a/src/components/list/Senarai.vue +++ /dev/null @@ -1,331 +0,0 @@ - -