From 40afd60b29cfe9a41e3b0764d9bc99a966ae1808 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 30 Dec 2021 21:13:30 +0000 Subject: [PATCH] case 4049 --- ayanova/devdocs/todo.txt | 3 +++ ayanova/src/views/customer-csr-edit.vue | 10 ++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 608dbad9..f3627297 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -878,6 +878,9 @@ BUILD 8.0.0-beta.0.8 CHANGES OF NOTE - case 4044 fixed - case 4045 fixed - case 4046 fixed +- case 4047 fixed +- case 4048 see notes +- case 4049 fixed diff --git a/ayanova/src/views/customer-csr-edit.vue b/ayanova/src/views/customer-csr-edit.vue index 0244d190..e7cb1c06 100644 --- a/ayanova/src/views/customer-csr-edit.vue +++ b/ayanova/src/views/customer-csr-edit.vue @@ -172,7 +172,7 @@ - - + --> @@ -400,10 +401,14 @@ export default { }, methods: { showAddUnitDialog: function() { + this.unitObj.customerId = this.obj.customerId; this.addUnitDialog = true; }, async addUnit() { const vm = this; + if (!vm.unitObj.serial) { + return; + } try { const res = await window.$gz.api.upsert( "unit/customerunit/", @@ -416,6 +421,7 @@ export default { if (res.data) { if (vm.obj.unitId == null) { vm.obj.unitId = res.data; + // this.formState.dirty = true; } //SUCCESS this.addUnitDialog = false;