This commit is contained in:
2021-07-28 23:16:42 +00:00
parent 1ee05ce284
commit a6dc3bc35b
4 changed files with 199 additions and 55 deletions

View File

@@ -102,7 +102,6 @@
</v-row>
</template>
</div>
<!-- :reset-selections="resetSelections" -->
</template>
<script>
@@ -701,6 +700,14 @@ export default {
});
cp.id = 0;
//set quote specific fields
cp.preparedById = window.$gz.store.state.userId;
cp.introduction = null;
cp.requested = window.$gz.locale.nowUTC8601String();
cp.validUntil = null;
cp.submitted = null;
cp.approved = null;
//Navigate to new record
this.$router.push({
name: "quote-edit",
@@ -1998,6 +2005,19 @@ function generateMenu(vm) {
});
}
if (
vm.rights.change &&
vm.$route.params.recordid != 0 &&
!vm.obj.userIsRestrictedType
) {
menuOptions.menuItems.push({
title: "Duplicate",
icon: "$ayiClone",
key: FORM_KEY + ":duplicate",
vm: vm
});
}
if (
vm.rights.change &&
vm.$route.params.recordid != 0 &&
@@ -2024,19 +2044,6 @@ function generateMenu(vm) {
});
}
if (
vm.rights.change &&
vm.$route.params.recordid != 0 &&
!vm.obj.userIsRestrictedType
) {
menuOptions.menuItems.push({
title: "Duplicate",
icon: "$ayiClone",
key: FORM_KEY + ":duplicate",
vm: vm
});
}
//--- /show all ---
if (!vm.obj.userIsRestrictedType) {