PriceDetails.vue
3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<script setup>
const props = defineProps({
formData: {
type: null,
required: true,
},
})
const emit = defineEmits(['update:formData'])
const formData = ref(props.formData)
watch(formData, () => {
emit('update:formData', formData.value)
})
</script>
<template>
<VForm>
<VRow>
<VCol
cols="12"
sm="6"
>
<!-- 👉 Expected Price -->
<VTextField
v-model="formData.expectedPrice"
label="Expected Price"
type="number"
append-inner-icon="ri-money-dollar-circle-line"
placeholder="25,000"
/>
</VCol>
<VCol
cols="12"
sm="6"
>
<!-- 👉 Price Per SQFT -->
<VTextField
v-model="formData.pricePerSqft"
label="Price Per SQFT"
append-inner-icon="ri-money-dollar-circle-line"
type="number"
placeholder="500"
/>
</VCol>
<VCol
cols="12"
sm="6"
>
<!-- 👉 Maintenance Charge -->
<VTextField
v-model="formData.maintenanceCharge"
label="Maintenance Charge"
append-inner-icon="ri-money-dollar-circle-line"
type="number"
placeholder="50"
/>
</VCol>
<VCol
cols="12"
sm="6"
>
<!-- 👉 Maintenance Period -->
<VSelect
v-model="formData.maintenancePeriod"
label="Maintenance Period"
placeholder="Select Maintenance Period"
:items="['Monthly', 'Quarterly', 'Half Yearly', 'Yearly']"
/>
</VCol>
<VCol
cols="12"
sm="6"
>
<!-- 👉 Booking/Token Amount -->
<VTextField
v-model="formData.bookingAmount"
label="Booking/Token Amount"
append-inner-icon="ri-money-dollar-circle-line"
type="number"
placeholder="250"
/>
</VCol>
<VCol
cols="12"
sm="6"
>
<!-- 👉 Other Amount -->
<VTextField
v-model="formData.otherAmount"
label="Other Amount"
append-inner-icon="ri-money-dollar-circle-line"
type="number"
placeholder="500"
/>
</VCol>
<VCol
cols="12"
sm="6"
>
<!-- 👉 Show Price As -->
<VRadioGroup v-model="formData.priceDisplayType">
<template #label>
<div>
Show Price As
</div>
</template>
<VRadio
label="Negotiable"
value="Negotiable"
/>
<VRadio
label="Call For Price"
value="Call For Price"
/>
</VRadioGroup>
</VCol>
<VCol
cols="12"
sm="6"
>
<!-- 👉 Price Includes -->
<div class="mb-2 text-base">
Price Includes
</div>
<VCheckbox
v-model="formData.priceIncludes"
label="Car Parking"
value="Car Parking"
/>
<VCheckbox
v-model="formData.priceIncludes"
label="Club Membership"
value="Club Membership"
/>
</VCol>
</VRow>
</VForm>
</template>