case 4504
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sockeye",
|
||||
"version": "8.0.11",
|
||||
"version": "8.0.12",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default {
|
||||
version: "8.0.11",
|
||||
version: "8.0.12",
|
||||
copyright: "© 1999-2022, Ground Zero Tech-Works Inc."
|
||||
};
|
||||
|
||||
@@ -400,6 +400,13 @@
|
||||
>{{ $sock.t("Close") }}</v-btn
|
||||
>
|
||||
|
||||
<v-btn
|
||||
color="blue darken-1"
|
||||
text
|
||||
class="ml-4"
|
||||
@click="duplicateItem(obj.items[editItemIndex])"
|
||||
>{{ $sock.t("Duplicate") }}</v-btn
|
||||
>
|
||||
<v-btn
|
||||
color="blue darken-1"
|
||||
text
|
||||
@@ -427,6 +434,14 @@
|
||||
@click="submit()"
|
||||
>{{ $sock.t("Save") }}</v-btn
|
||||
>
|
||||
<v-btn
|
||||
class="mt-4"
|
||||
block
|
||||
text
|
||||
color="blue darken-1"
|
||||
@click="duplicateItem(obj.items[editItemIndex])"
|
||||
>{{ $sock.t("Duplicate") }}</v-btn
|
||||
>
|
||||
<v-btn
|
||||
class="mt-4"
|
||||
block
|
||||
@@ -665,6 +680,21 @@ export default {
|
||||
this.editItemDialog = true;
|
||||
this.formState.dirty = true;
|
||||
},
|
||||
duplicateItem: function(src) {
|
||||
this.obj.items.push({
|
||||
id: 0,
|
||||
subscriptionId: 0,
|
||||
productId: null,
|
||||
quantity: 1,
|
||||
expireDate: src.expireDate,
|
||||
originalOrderDate: src.originalOrderDate,
|
||||
originalOrderNumber: src.originalOrderNumber,
|
||||
active: true
|
||||
});
|
||||
this.editItemIndex = this.obj.items.length - 1;
|
||||
this.editItemDialog = true;
|
||||
this.formState.dirty = true;
|
||||
},
|
||||
deleteItem: function() {
|
||||
this.editItemDialog = false;
|
||||
this.obj.items.splice(this.editItemIndex, 1);
|
||||
|
||||
Reference in New Issue
Block a user