diff --git a/ayanova/src/views/customer-csr-edit.vue b/ayanova/src/views/customer-csr-edit.vue
index 0633c4c2..095da81d 100644
--- a/ayanova/src/views/customer-csr-edit.vue
+++ b/ayanova/src/views/customer-csr-edit.vue
@@ -162,39 +162,90 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ $ay.t("Cancel")
+ }}
+
+ {{ $ay.t("Add") }}
+
+
+
+
+
@@ -236,6 +287,7 @@ export default {
if (this.$store.state.userType == 3) {
//Customer specific user
this.obj.customerId = this.$store.state.customerRights.entityId;
+ this.unitObj.customerId = this.$store.state.customerRights.entityId;
}
window.$gz.form.setFormState({
vm: vm,
@@ -307,7 +359,14 @@ export default {
serverError: {}
},
rights: window.$gz.role.defaultRightsObject(),
- ayaType: window.$gz.type.CustomerServiceRequest
+ ayaType: window.$gz.type.CustomerServiceRequest,
+ addUnitDialog: false,
+ unitObj: {
+ serial: null,
+ description: null,
+ unitModelId: null,
+ customerId: null
+ }
};
},
watch: {
@@ -339,7 +398,10 @@ export default {
}
},
methods: {
- showAddUnitDialog: function() {},
+ showAddUnitDialog: function() {
+ this.addUnitDialog = true;
+ },
+ addUnit: function() {},
unitListVariant: function() {
return `customerid: ${this.obj.customerId}`;
},
@@ -688,7 +750,10 @@ async function fetchTranslatedText() {
"CustomerServiceRequestCustom14",
"CustomerServiceRequestCustom15",
"CustomerServiceRequestCustom16",
- "AddNewUnit"
+ "AddNewUnit",
+ "UnitDescription",
+ "UnitModel",
+ "UnitSerial"
]);
}