Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 16 additions & 21 deletions shopfloor_reception_mobile/static/src/scenario/reception.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,19 @@ const Reception = {
v-on:found="on_scan"
:input_placeholder="search_input_placeholder"
/>
<date-picker-input
v-if="state_is('set_lot')"
:handler_to_update_date="get_expiration_date_from_lot"
v-on:date_picker_selected="state.on_date_picker_selected"
/>
<template v-if="state_is('select_move')">
<item-detail-card
:record="state.data.picking"
:options="operation_options()"
:card_color="utils.colors.color_for('screen_step_done')"
:key="make_state_component_key(['reception-picking-item-detail', state.data.picking.id])"
/>
</template>
<template v-if="state_is('select_document')">
<manual-select
class="with-progress-bar"
:records="state.data.pickings"
:options="manual_select_options_for_select_document(true)"
:key="make_state_component_key(['reception', 'manual-select-document'])"
/>
<div v-if="state_is('select_document')">
<div class="button-list button-vertical-list full">
<v-row align="center">
<v-col class="text-center" cols="12">
<btn-action @click="state.on_manual_selection">Manual selection</btn-action>
</v-col>
</v-row>
</div>
<div class="button-list button-vertical-list full">
<v-row align="center">
<v-col class="text-center" cols="12">
<btn-action @click="state.on_manual_selection">Manual selection</btn-action>
</v-col>
</v-row>
</div>
</template>
<template v-if="state_is('manual_selection') && visible_pickings">
Expand All @@ -71,6 +56,12 @@ const Reception = {
</div>
</template>
<template v-if="state_is('select_move')">
<item-detail-card
:record="state.data.picking"
:options="operation_options()"
:card_color="utils.colors.color_for('screen_step_done')"
:key="make_state_component_key(['reception-picking-item-detail', state.data.picking.id])"
/>
<manual-select
:card_color="utils.colors.color_for('screen_step_done')"
:records="ordered_moves"
Expand Down Expand Up @@ -100,6 +91,10 @@ const Reception = {
</div>
</template>
<template v-if="state_is('set_lot')">
<date-picker-input
:handler_to_update_date="get_expiration_date_from_lot"
v-on:date_picker_selected="state.on_date_picker_selected"
/>
<item-detail-card
:record="line_being_handled"
:options="picking_detail_options_for_set_lot()"
Expand Down
Loading