diff --git a/mobile/src/components/AppNav.vue b/mobile/src/components/AppNav.vue index d2d5d0e..732c739 100644 --- a/mobile/src/components/AppNav.vue +++ b/mobile/src/components/AppNav.vue @@ -11,6 +11,12 @@ Ordering + + Receiving + + diff --git a/mobile/src/router/index.js b/mobile/src/router/index.js index cd9f35b..f557bed 100644 --- a/mobile/src/router/index.js +++ b/mobile/src/router/index.js @@ -3,6 +3,7 @@ import VueRouter from 'vue-router' import Home from '../views/Home.vue' import Login from '../views/Login.vue' import {OrderingBatches, OrderingBatch, OrderingBatchRow, OrderingBatchWorksheet} from '../views/ordering' +import {ReceivingBatches, ReceivingBatch, ReceivingBatchRow, ReceivingBatchRowReceive} from '../views/receiving' Vue.use(VueRouter) @@ -75,6 +76,44 @@ const routes = [ name: 'ordering.worksheet', component: OrderingBatchWorksheet, }, + + ////////////////////////////// + // Receiving + ////////////////////////////// + { + path: '/receiving/', + name: 'receiving', + component: ReceivingBatches, + }, + { + path: '/receiving/new', + name: 'receiving.new', + component: ReceivingBatch, + props: {mode: 'creating'}, + }, + { + path: '/receiving/:uuid', + name: 'receiving.view', + component: ReceivingBatch, + props: {mode: 'viewing'}, + }, + { + path: '/receiving/:uuid/edit', + name: 'receiving.edit', + component: ReceivingBatch, + props: {mode: 'editing'}, + }, + { + path: '/receiving/rows/:uuid', + name: 'receiving.rows.view', + component: ReceivingBatchRow, + props: {mode: 'viewing'}, + }, + { + path: '/receiving/rows/:uuid/receive', + name: 'receiving.rows.receive', + component: ReceivingBatchRowReceive, + }, ] const router = new VueRouter({ diff --git a/mobile/src/views/receiving/ReceivingBatch.vue b/mobile/src/views/receiving/ReceivingBatch.vue new file mode 100644 index 0000000..e4640bc --- /dev/null +++ b/mobile/src/views/receiving/ReceivingBatch.vue @@ -0,0 +1,608 @@ + + + diff --git a/mobile/src/views/receiving/ReceivingBatchRow.vue b/mobile/src/views/receiving/ReceivingBatchRow.vue new file mode 100644 index 0000000..6f1eb6c --- /dev/null +++ b/mobile/src/views/receiving/ReceivingBatchRow.vue @@ -0,0 +1,193 @@ + + + + + + + + + diff --git a/mobile/src/views/receiving/ReceivingBatchRowReceive.vue b/mobile/src/views/receiving/ReceivingBatchRowReceive.vue new file mode 100644 index 0000000..d05dcee --- /dev/null +++ b/mobile/src/views/receiving/ReceivingBatchRowReceive.vue @@ -0,0 +1,15 @@ + + + diff --git a/mobile/src/views/receiving/ReceivingBatches.vue b/mobile/src/views/receiving/ReceivingBatches.vue new file mode 100644 index 0000000..63c12da --- /dev/null +++ b/mobile/src/views/receiving/ReceivingBatches.vue @@ -0,0 +1,44 @@ + + + diff --git a/mobile/src/views/receiving/index.js b/mobile/src/views/receiving/index.js new file mode 100644 index 0000000..723c399 --- /dev/null +++ b/mobile/src/views/receiving/index.js @@ -0,0 +1,11 @@ +import ReceivingBatches from './ReceivingBatches' +import ReceivingBatch from './ReceivingBatch' +import ReceivingBatchRow from './ReceivingBatchRow' +import ReceivingBatchRowReceive from './ReceivingBatchRowReceive' + +export { + ReceivingBatches, + ReceivingBatch, + ReceivingBatchRow, + ReceivingBatchRowReceive, +} diff --git a/theo/web/api/__init__.py b/theo/web/api/__init__.py index c0ffc1b..780ee1c 100644 --- a/theo/web/api/__init__.py +++ b/theo/web/api/__init__.py @@ -36,3 +36,4 @@ def includeme(config): # batches config.include('tailbone.api.batch.ordering') + config.include('tailbone.api.batch.receiving')