add thousand separator, fix footer
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
</td>
|
||||
<td>{{ item.masa_bidaan }}</td>
|
||||
<td>{{ item.berat }}g</td>
|
||||
<td>RM{{ item.hargabida }}</td>
|
||||
<td>RM{{ item.hargabida?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}</td>
|
||||
</tr>
|
||||
<tr style="text-transform: uppercase">
|
||||
<th colspan="3">Jumlah</th>
|
||||
@@ -127,15 +127,26 @@
|
||||
<td>{{ marhun.marhun }}</td>
|
||||
<td>{{ marhun.karat }}</td>
|
||||
<td>{{ marhun.berat }}g</td>
|
||||
<td>RM{{ marhun.hargaasas }}</td>
|
||||
<td>RM{{ marhun.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}</td>
|
||||
</tr>
|
||||
<tr style="text-transform: uppercase">
|
||||
<th colspan="3">Jumlah</th>
|
||||
<th>{{ theData.berat }}g</th>
|
||||
<th>RM{{ theData.hargaasas }}</th>
|
||||
<th>RM{{ theData.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-6">
|
||||
<label class="col-form-label">Jumlah Harga Bida</label>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text">RM</span>
|
||||
<span class="form-control input-group-text">{{theData.hargabida?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || ''}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -65,8 +65,8 @@
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ surat.berat }}g</td>
|
||||
<td>RM{{ surat.hargaasas }}</td>
|
||||
<td>RM{{ surat.hargabida }}</td>
|
||||
<td>RM{{ surat.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}</td>
|
||||
<td>RM{{ surat.hargabida?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}</td>
|
||||
<td>
|
||||
<button
|
||||
class="btn me-1 ms-1 btn-warning"
|
||||
@@ -194,12 +194,12 @@
|
||||
<td>{{ data.marhun }}</td>
|
||||
<td>{{ data.karat }}</td>
|
||||
<td>{{ data.berat }}g</td>
|
||||
<td>RM{{ data.hargaasas }}</td>
|
||||
<td>RM{{ data.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}</td>
|
||||
</tr>
|
||||
<tr style="text-transform: uppercase">
|
||||
<th colspan="3">Jumlah</th>
|
||||
<th>{{ theSurat.berat }}g</th>
|
||||
<th>RM{{ theSurat.hargaasas }}</th>
|
||||
<th>RM{{ theSurat.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -266,12 +266,7 @@
|
||||
<div class="col-6">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text">RM</span>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
disabled
|
||||
v-bind:value="theSurat.hargabida"
|
||||
/>
|
||||
<span class="form-control input-group-text">{{theSurat.hargabida?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || ''}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -350,7 +345,7 @@
|
||||
class="form-control text-start justify-content-start"
|
||||
disabled
|
||||
>
|
||||
{{ theSurat.hargaasas }}
|
||||
{{ theSurat.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -413,7 +408,7 @@
|
||||
class="btn btn-success"
|
||||
@click="updateItem(theSurat)"
|
||||
>
|
||||
Terima
|
||||
Ubah
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -454,7 +449,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ theSurat.norujukan }}</td>
|
||||
<td>RM{{ theSurat.hargabida }}</td>
|
||||
<td>RM{{ theSurat.hargabida?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
data-bs-toggle="dropdown"
|
||||
aria-expanded="false"
|
||||
>
|
||||
<i class="bi bi-person-circle me-1"></i>{{ username }}!
|
||||
<i class="bi bi-person-circle me-1"></i>{{ username }}
|
||||
</div>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
|
||||
@@ -28,7 +28,7 @@ export default {
|
||||
.content-page {
|
||||
position: relative;
|
||||
/* overflow: hidden; */
|
||||
padding: 0 0 70px;
|
||||
padding: 0 0 100px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<!-- <li class="old_price">{{ sag.marhun }}</li> -->
|
||||
<li class="old_price">{{ sag.berat }}g</li>
|
||||
<li class="old_price">
|
||||
<b>RM{{ sag.hargaasas }}</b>
|
||||
<b>RM{{ sag.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}</b>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="cp_img">
|
||||
@@ -139,7 +139,7 @@
|
||||
<td>{{ marhun.marhun_desc }}</td>
|
||||
<td>{{ marhun.karat }}</td>
|
||||
<td>{{ marhun.berat }}g</td>
|
||||
<td>RM{{ marhun.hargaasas }}</td>
|
||||
<td>RM{{ marhun.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || '' }}</td>
|
||||
</tr>
|
||||
<tr style="text-transform: uppercase">
|
||||
<th colspan="3">Jumlah</th>
|
||||
@@ -162,7 +162,7 @@
|
||||
class="form-control text-start justify-content-start"
|
||||
disabled
|
||||
>
|
||||
{{ norujukan.hargaasas }}
|
||||
{{ norujukan.hargaasas?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") || ''}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user