|
|
@ -72,12 +72,6 @@ const Satuan = ({ params }) => { |
|
|
|
"logic_operator": "ilike", |
|
|
|
"logic_operator": "ilike", |
|
|
|
"value": search, |
|
|
|
"value": search, |
|
|
|
"operator": "AND" |
|
|
|
"operator": "AND" |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"name": "description", |
|
|
|
|
|
|
|
"logic_operator": "ilike", |
|
|
|
|
|
|
|
"value": search, |
|
|
|
|
|
|
|
"operator": "AND" |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
"orders": { |
|
|
|
"orders": { |
|
|
@ -181,7 +175,7 @@ const Satuan = ({ params }) => { |
|
|
|
|
|
|
|
|
|
|
|
if (result && result.data && result.data.code === 200) { |
|
|
|
if (result && result.data && result.data.code === 200) { |
|
|
|
getDataSatuan() |
|
|
|
getDataSatuan() |
|
|
|
NotificationManager.success(`Data project type berhasil ditambah`, 'Success!!'); |
|
|
|
NotificationManager.success(`Satuan berhasil ditambah`, 'Success!!'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
NotificationManager.error(`${result.data.message}`, 'Failed!!'); |
|
|
|
NotificationManager.error(`${result.data.message}`, 'Failed!!'); |
|
|
|
} |
|
|
|
} |
|
|
@ -197,9 +191,9 @@ const Satuan = ({ params }) => { |
|
|
|
|
|
|
|
|
|
|
|
if (result && result.data && result.data.code === 200) { |
|
|
|
if (result && result.data && result.data.code === 200) { |
|
|
|
getDataSatuan(); |
|
|
|
getDataSatuan(); |
|
|
|
NotificationManager.success(`Data project type berhasil diedit`, 'Success!!'); |
|
|
|
NotificationManager.success(`Satuan berhasil diubah`, 'Success!!'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
NotificationManager.error(`Data project type gagal di edit`, `Failed!!`); |
|
|
|
NotificationManager.error(`Satuan gagal diubah`, `Failed!!`); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -218,11 +212,11 @@ const Satuan = ({ params }) => { |
|
|
|
getDataSatuan() |
|
|
|
getDataSatuan() |
|
|
|
setIdDelete(0) |
|
|
|
setIdDelete(0) |
|
|
|
setAlertDelete(false) |
|
|
|
setAlertDelete(false) |
|
|
|
NotificationManager.success(`Data project type berhasil dihapus!`, 'Success!!'); |
|
|
|
NotificationManager.success(`Satuan berhasil dihapus!`, 'Success!!'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setIdDelete(0) |
|
|
|
setIdDelete(0) |
|
|
|
setAlertDelete(false) |
|
|
|
setAlertDelete(false) |
|
|
|
NotificationManager.error(`Data project type gagal dihapus!}`, 'Failed!!'); |
|
|
|
NotificationManager.error(`Satuan gagal dihapus!}`, 'Failed!!'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|