add progress
This commit is contained in:
@@ -40,6 +40,7 @@ export default {
|
||||
indeterminatex: false,
|
||||
bar_chx_all: false,
|
||||
selected_barcode: [],
|
||||
list_itembelumserah: []
|
||||
},
|
||||
mutations: {
|
||||
update_dialog_confirmation(state, data) {
|
||||
@@ -119,6 +120,9 @@ export default {
|
||||
},
|
||||
update_selected_barcode(state, val) {
|
||||
state.selected_barcode = val
|
||||
},
|
||||
update_list_itembelumserah(state, val) {
|
||||
state.list_itembelumserah = val
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
@@ -243,7 +247,7 @@ export default {
|
||||
isUpfront: element.PurchaseOrderShippingCostStatus
|
||||
}
|
||||
|
||||
const isExist = context.rootState.form.shipping_info.some(
|
||||
const isExist = temp_ship.some(
|
||||
item => item.num_po == element.PurchaseOrderNumber
|
||||
);
|
||||
if (!isExist) {
|
||||
@@ -273,9 +277,9 @@ export default {
|
||||
note: context.state.selected_ro.ReceiveOrderPoNote
|
||||
}
|
||||
|
||||
context.commit("form/update_form_receive", form, {root: true});
|
||||
context.commit("form/update_shipping_info", temp_ship, {root: true});
|
||||
context.commit("form/update_form_receive_item", resp.data, {root: true});
|
||||
context.commit("form/update_form_receive", form, { root: true });
|
||||
context.commit("form/update_shipping_info", temp_ship, { root: true });
|
||||
context.commit("form/update_form_receive_item", resp.data, { root: true });
|
||||
}
|
||||
} catch (error) {
|
||||
context.commit("update_snackbar", {
|
||||
@@ -342,6 +346,30 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
async getItemSerahTerima(context) {
|
||||
try {
|
||||
let param = {
|
||||
token: one_token(),
|
||||
ROID: context.state.selected_ro.ReceiveOrderPoID
|
||||
}
|
||||
let resp = await api.getInventarisBelumSerah(param);
|
||||
if (resp.status != 'OK') {
|
||||
context.commit("update_snackbar", {
|
||||
color: 'error',
|
||||
msg: resp.message,
|
||||
isOpen: true
|
||||
});
|
||||
} else {
|
||||
context.commit("update_list_itembelumserah", resp.data);
|
||||
}
|
||||
} catch(error) {
|
||||
context.commit("update_snackbar", {
|
||||
color: 'error',
|
||||
msg: error.message,
|
||||
isOpen: true
|
||||
});
|
||||
}
|
||||
},
|
||||
async saveHandover(context, param) {
|
||||
try {
|
||||
param.token = one_token()
|
||||
|
||||
Reference in New Issue
Block a user