Add debug logging for savefisik updated_trx response
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1357,15 +1357,20 @@ export default {
|
||||
context.commit("update_dialog_action", false)
|
||||
var msg = "Order " + prm.trx_numbering + " pemeriksaan <span class='red--text'>" + prm.trx.test_name + "</span> berhasil diupdate dong ..."
|
||||
context.commit("update_msg_success", msg)
|
||||
console.log('[savefisik] resp.data:', resp.data)
|
||||
if (resp.data && resp.data.updated_trx) {
|
||||
let updated = resp.data.updated_trx
|
||||
console.log('[savefisik] updated_trx:', updated)
|
||||
let transactions = [...context.state.transactions]
|
||||
let idx = _.findIndex(transactions, t => t.re_id === updated.re_id)
|
||||
console.log('[savefisik] idx in transactions:', idx)
|
||||
if (idx !== -1) {
|
||||
transactions[idx] = { ...transactions[idx], ...updated }
|
||||
context.commit("update_transactions", transactions)
|
||||
}
|
||||
context.commit("update_cantedit", updated.status_name !== 'BARU')
|
||||
} else {
|
||||
console.warn('[savefisik] updated_trx not found in response')
|
||||
}
|
||||
context.commit("update_dialog_success", true)
|
||||
if (context.state.search_lab_no !== '') {
|
||||
|
||||
Reference in New Issue
Block a user