update status WTD dan tukar ayat
This commit is contained in:
@@ -15,9 +15,9 @@
|
|||||||
<div class="w-1/3">Jumlah WTD</div>
|
<div class="w-1/3">Jumlah WTD</div>
|
||||||
<div>:</div>
|
<div>:</div>
|
||||||
<div class="ml-2 w-1/3"><b>RM {{ formattext(sb.baki) }} </b></div>
|
<div class="ml-2 w-1/3"><b>RM {{ formattext(sb.baki) }} </b></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row font-normal text-gray-700 dark:text-gray-400">
|
<div class="flex flex-row font-normal text-gray-700 dark:text-gray-400">
|
||||||
<div class="w-1/3">Tarikh WTD
|
<div class="w-1/3">Tarikh Proses WTD
|
||||||
</div>
|
</div>
|
||||||
<div>:</div>
|
<div>:</div>
|
||||||
<div class="ml-2 w-1/3"><b> {{ (sb.t_jual) ? sb.t_jual : 'Tiada' }} </b></div>
|
<div class="ml-2 w-1/3"><b> {{ (sb.t_jual) ? sb.t_jual : 'Tiada' }} </b></div>
|
||||||
@@ -26,12 +26,15 @@
|
|||||||
<div class="w-1/3">Status
|
<div class="w-1/3">Status
|
||||||
</div>
|
</div>
|
||||||
<div>:</div>
|
<div>:</div>
|
||||||
<div class="w-1/3 ml-2">
|
<div v-if="sb.batchno === 0">
|
||||||
<span :class="getClass(sb.aktif)" class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded uppercase last:mr-0 mr-1">{{ sb.aktif ? 'Selesai' : 'Belum' }} </span>
|
<span :class="getNoBatch(sb.aktif)" class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded uppercase last:mr-0 mr-1">{{sb.aktif ? 'Dalam Proses WTD' : 'Dalam Proses WTD' }} </span>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<span :class="getClass(sb.aktif)" class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded uppercase last:mr-0 mr-1">{{ sb.aktif ? 'Selesai' : 'Dalam Proses WTD' }} </span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pagination :data="serahbakiarray" @clickEvent_="getRekod"></pagination>
|
<pagination :data="serahbakiarray" @clickEvent_="getRekod"></pagination>
|
||||||
@@ -79,6 +82,11 @@ export default {
|
|||||||
'text-pink-600 bg-pink-200 ': !property
|
'text-pink-600 bg-pink-200 ': !property
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
getNoBatch(property) {
|
||||||
|
return {
|
||||||
|
'text-pink-600 bg-pink-200 ': property,
|
||||||
|
}
|
||||||
|
},
|
||||||
getRekod(pageNumber) {
|
getRekod(pageNumber) {
|
||||||
this.axios.get(this.$hostname + '/admin/wtd/rekod/', {
|
this.axios.get(this.$hostname + '/admin/wtd/rekod/', {
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -198,8 +198,8 @@ export default {
|
|||||||
if (this.selectedNorujukan.length > 0) {
|
if (this.selectedNorujukan.length > 0) {
|
||||||
await this.$swal({
|
await this.$swal({
|
||||||
icon: 'info',
|
icon: 'info',
|
||||||
title: '<strong>Block WTD</strong>',
|
title: '<strong>Sekatan WTD</strong>',
|
||||||
html: "Sila tekan <b>Ya</b> untuk block SAG, Sila tekan Tidak untuk membatal urusan!",
|
html: "Sila tekan <b>Ya</b> untuk sekat SAG, Sila tekan Tidak untuk membatal urusan!",
|
||||||
// html:"<button onclick='console.log(`haha`);cetaksenarai();' class='px-4 py-2 bg-yellow-500 text-white rounded-xl'>PDF</button><button class='ml-2 px-4 py-2 bg-yellow-500 text-white rounded-xl'>Excel</button>",
|
// html:"<button onclick='console.log(`haha`);cetaksenarai();' class='px-4 py-2 bg-yellow-500 text-white rounded-xl'>PDF</button><button class='ml-2 px-4 py-2 bg-yellow-500 text-white rounded-xl'>Excel</button>",
|
||||||
showCloseButton: true,
|
showCloseButton: true,
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user