update status WTD dan tukar ayat

This commit is contained in:
Amirah22
2023-03-01 09:25:27 +08:00
parent 4d9ebb9bef
commit 76b2edf342
2 changed files with 15 additions and 7 deletions
+11 -3
View File
@@ -17,7 +17,7 @@
<div class="ml-2 w-1/3"><b>RM {{ formattext(sb.baki) }} </b></div>
</div>
<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 class="ml-2 w-1/3"><b> {{ (sb.t_jual) ? sb.t_jual : 'Tiada' }} </b></div>
@@ -26,8 +26,11 @@
<div class="w-1/3">Status
</div>
<div>:</div>
<div class="w-1/3 ml-2">
<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>
<div v-if="sb.batchno === 0">
<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 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>
</a>
@@ -79,6 +82,11 @@ export default {
'text-pink-600 bg-pink-200 ': !property
}
},
getNoBatch(property) {
return {
'text-pink-600 bg-pink-200 ': property,
}
},
getRekod(pageNumber) {
this.axios.get(this.$hostname + '/admin/wtd/rekod/', {
params: {
+2 -2
View File
@@ -198,8 +198,8 @@ export default {
if (this.selectedNorujukan.length > 0) {
await this.$swal({
icon: 'info',
title: '<strong>Block WTD</strong>',
html: "Sila tekan <b>Ya</b> untuk block SAG, Sila tekan Tidak untuk membatal urusan!",
title: '<strong>Sekatan WTD</strong>',
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>",
showCloseButton: true,
showCancelButton: true,