prodpicker: restrict to only add by id

This commit is contained in:
2020-01-16 14:43:36 -08:00
parent dda53e7b56
commit 036143764a
2 changed files with 23 additions and 25 deletions

View File

@ -3,11 +3,10 @@
<v-card-text> <v-card-text>
<v-textarea <v-textarea
v-model="text" v-model="text"
label="Enter material numbers" label="Enter SKUs to add to the catalog"
autofocus autofocus
outlined outlined
clearable hide-details
clear-icon="cancel"
rows="6" rows="6"
placeholder="1001234 placeholder="1001234
1001235..." 1001235..."

View File

@ -1,31 +1,31 @@
<template> <template>
<div class="text-center"> <div class="text-center">
<v-dialog v-model="show" width="500"> <v-dialog v-model="show" width="400">
<v-card> <v-card>
<DialogHeading title="Add Materials" @hide="show = false" /> <DialogHeading title="Add Materials" @hide="show = false" />
<v-card-text class="ma-0 pa-0"> <v-card-text class="ma-0 pa-0">
<v-tabs v-model="tab" grow> <!-- <v-tabs v-model="tab" grow>
<v-tab>By ID</v-tab> <v-tab>By SKU</v-tab>
<v-tab>By Name</v-tab> <v-tab>By Name</v-tab>
<v-tab>From Catalog</v-tab> <v-tab>From Catalog</v-tab>
</v-tabs> </v-tabs> -->
<v-tabs-items v-model="tab"> <!-- <v-tabs-items v-model="tab">
<v-tab-item> <v-tab-item> -->
<AddMaterialPanel v-model="materialText"/> <AddMaterialPanel v-model="materialText"/>
</v-tab-item> <!-- </v-tab-item>
<v-tab-item> <v-tab-item>
<AddModelPanel v-model="models"/> <AddModelPanel v-model="models"/>
</v-tab-item> </v-tab-item>
<v-tab-item> <v-tab-item>
<AddCatalogPanel v-model="catalog"/> <AddCatalogPanel v-model="catalog"/>
</v-tab-item> </v-tab-item>
</v-tabs-items> </v-tabs-items> -->
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions class="pt-0">
<v-spacer/> <v-spacer/>
<v-btn depressed @click="show = false">Cancel</v-btn> <v-btn depressed @click="show = false">Cancel</v-btn>
<v-spacer/> <v-spacer/>
@ -48,15 +48,15 @@ import DialogHeading from './DialogHeading'
export default { export default {
components: { components: {
AddMaterialPanel, AddMaterialPanel,
AddModelPanel, /* AddModelPanel, */
AddCatalogPanel, /* AddCatalogPanel, */
DialogHeading, DialogHeading,
}, },
props: { props: {
value: Boolean, value: Boolean,
}, },
data: () => ({ data: () => ({
tab: 1, tab: 0,
materialText: '', materialText: '',
models: [], models: [],
catalog: null, catalog: null,
@ -85,7 +85,6 @@ export default {
} }
/* this.show = false */ /* this.show = false */
}, },
}, },
} }
</script> </script>