[Update] cleaning console log
This commit is contained in:
parent
dac6f59018
commit
b472c7091c
@ -154,7 +154,7 @@ const createItem = async () => {
|
||||
|
||||
success.value = true;
|
||||
createdItem.value = response.data.data;
|
||||
console.log('Item created:', createdItem);
|
||||
// console.log('Item created:', createdItem);
|
||||
|
||||
emit('itemAdded'); // 🔔 penting
|
||||
|
||||
|
||||
@ -303,7 +303,7 @@ const getSortIcon = (column) => {
|
||||
};
|
||||
|
||||
const handleDateChange = (newDateRange) => {
|
||||
console.log('Date range changed:', newDateRange);
|
||||
// console.log('Date range changed:', newDateRange);
|
||||
// Reset pagination when date changes
|
||||
pagination.value.current_page = 1;
|
||||
fetchData(1);
|
||||
@ -384,9 +384,9 @@ const fetchData = async (page = 1) => {
|
||||
total: response.data.nampan ? response.data.nampan.length : 0,
|
||||
};
|
||||
}
|
||||
console.log('Data laporan nampan berhasil diambil:', data.value);
|
||||
// console.log('Data laporan nampan berhasil diambil:', data.value);
|
||||
} catch (error) {
|
||||
console.error('Gagal mengambil data laporan nampan:', error);
|
||||
console.error('Gagal mengambil data laporan nampan');
|
||||
data.value = null;
|
||||
pagination.value = {
|
||||
current_page: 1,
|
||||
|
||||
@ -304,7 +304,7 @@ const getSortIcon = (column) => {
|
||||
};
|
||||
|
||||
const handleDateChange = (newDateRange) => {
|
||||
console.log('Date range changed:', newDateRange);
|
||||
// console.log('Date range changed:', newDateRange);
|
||||
// Reset pagination when date changes
|
||||
pagination.value.current_page = 1;
|
||||
fetchData(1);
|
||||
@ -386,7 +386,7 @@ const fetchData = async (page = 1) => {
|
||||
total: response.data.produk ? response.data.produk.length : 0,
|
||||
};
|
||||
}
|
||||
console.log('Data laporan produk berhasil diambil:', data.value);
|
||||
// console.log('Data laporan produk berhasil diambil:', data.value);
|
||||
} catch (error) {
|
||||
console.error('Gagal mengambil data laporan produk:', error);
|
||||
data.value = null;
|
||||
|
||||
@ -202,9 +202,9 @@
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
console.log("Akun.id:", props.akun.id);
|
||||
console.log("LoggedInId:", loggedInId.value);
|
||||
console.log("isEditingSelf:", isEditingSelf.value);
|
||||
// console.log("Akun.id:", props.akun.id);
|
||||
// console.log("LoggedInId:", loggedInId.value);
|
||||
// console.log("isEditingSelf:", isEditingSelf.value);
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -199,7 +199,7 @@ const inputItem = async () => {
|
||||
// Format harga untuk tampilan
|
||||
hargaJualFormatted.value = formatNumber(item.value.produk.harga_jual);
|
||||
|
||||
console.log(item.value);
|
||||
// console.log(item.value);
|
||||
|
||||
if (item.value.is_sold) {
|
||||
throw new Error("Item sudah terjual");
|
||||
|
||||
@ -184,7 +184,7 @@ const formatTime = (dateString) => {
|
||||
const lihatDetail = async (trx) => {
|
||||
try {
|
||||
isDetailLoading.value = true
|
||||
console.log('Fetching detail untuk transaksi:', trx.kode_transaksi)
|
||||
// console.log('Fetching detail untuk transaksi:', trx.kode_transaksi)
|
||||
|
||||
const response = await axios.get(`/api/transaksi/${trx.id}`, {
|
||||
headers: {
|
||||
@ -192,7 +192,7 @@ const lihatDetail = async (trx) => {
|
||||
},
|
||||
})
|
||||
|
||||
console.log('Response detail transaksi:', response.data)
|
||||
// console.log('Response detail transaksi:', response.data)
|
||||
selectedTransaksi.value = response.data
|
||||
isDetailOpen.value = true
|
||||
|
||||
|
||||
@ -293,7 +293,7 @@ const fetchTransaksi = async (page = 1) => {
|
||||
transaksi.value = response.data.data || []
|
||||
pagination.value = response.data.pagination || null
|
||||
|
||||
console.log("data", transaksi.value)
|
||||
// console.log("data", transaksi.value)
|
||||
} catch (error) {
|
||||
console.error('Error fetching transaksi:', error)
|
||||
transaksi.value = []
|
||||
|
||||
@ -355,7 +355,7 @@ const handleSimpan = () => {
|
||||
}
|
||||
|
||||
const simpanTransaksi = async (dataTransaksi) => {
|
||||
console.log('Data transaksi yang akan disimpan:', dataTransaksi);
|
||||
// console.log('Data transaksi yang akan disimpan:', dataTransaksi);
|
||||
|
||||
try {
|
||||
const response = await axios.post('/api/transaksi', dataTransaksi, {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user