This commit is contained in:
@@ -160,6 +160,7 @@ PO UI for items:
|
|||||||
ideally the server should send the text to display along with the items to save triggering multiple round trips
|
ideally the server should send the text to display along with the items to save triggering multiple round trips
|
||||||
ideally it should display in the displayformat chosen for that picklist type item to mirror functionality, or maybe not to save space just name field etc
|
ideally it should display in the displayformat chosen for that picklist type item to mirror functionality, or maybe not to save space just name field etc
|
||||||
|
|
||||||
|
Receive all menu item if applicable that just receives the entire PO now
|
||||||
|
|
||||||
PO todo
|
PO todo
|
||||||
todo: test duplicate route
|
todo: test duplicate route
|
||||||
|
|||||||
@@ -305,6 +305,31 @@
|
|||||||
:size="60"
|
:size="60"
|
||||||
></v-progress-circular>
|
></v-progress-circular>
|
||||||
</template>
|
</template>
|
||||||
|
<v-row justify="center">
|
||||||
|
<v-dialog v-model="editPoItemDialog" persistent>
|
||||||
|
<v-card>
|
||||||
|
<v-card-title>
|
||||||
|
<span class="headline">{{ $ay.t("FindAndReplace") }}</span>
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text>
|
||||||
|
form here
|
||||||
|
{{ obj.items[editPoItemIndex] }}
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-btn
|
||||||
|
color="blue darken-1"
|
||||||
|
text
|
||||||
|
@click="editPoItemDialog = false"
|
||||||
|
>{{ $ay.t("Cancel") }}</v-btn
|
||||||
|
>
|
||||||
|
<v-btn color="blue darken-1" text @click="submit()">{{
|
||||||
|
$ay.t("Save")
|
||||||
|
}}</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-dialog>
|
||||||
|
</v-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -378,10 +403,11 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||||
|
editPoItemDialog: false,
|
||||||
|
editPoItemIndex: 0,
|
||||||
selectLists: {
|
selectLists: {
|
||||||
status: []
|
status: []
|
||||||
},
|
},
|
||||||
showWarehouses: true,
|
|
||||||
headers: [],
|
headers: [],
|
||||||
obj:
|
obj:
|
||||||
//IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record
|
//IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record
|
||||||
@@ -606,8 +632,10 @@ export default {
|
|||||||
"displayLineTotal": 345.387168
|
"displayLineTotal": 345.387168
|
||||||
},
|
},
|
||||||
*/
|
*/
|
||||||
return vm.obj.items.map(x => {
|
|
||||||
|
return vm.obj.items.map((x, i) => {
|
||||||
return {
|
return {
|
||||||
|
index: i,
|
||||||
id: x.id,
|
id: x.id,
|
||||||
quantityOrdered: window.$gz.locale.decimalLocalized(
|
quantityOrdered: window.$gz.locale.decimalLocalized(
|
||||||
x.quantityOrdered,
|
x.quantityOrdered,
|
||||||
@@ -664,7 +692,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
editItem: function(item) {},
|
editItem: function(item) {
|
||||||
|
this.editPoItemIndex = item.index;
|
||||||
|
this.editPoItemDialog = true;
|
||||||
|
},
|
||||||
canSave: function() {
|
canSave: function() {
|
||||||
return this.formState.valid && this.formState.dirty;
|
return this.formState.valid && this.formState.dirty;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user