More Tech Review Changes
This commit is contained in:
parent
25607e8f19
commit
e55eda4cee
1 changed files with 14 additions and 7 deletions
|
|
@ -17,7 +17,7 @@
|
|||
:answers="answers"
|
||||
groupName="chooseShop"
|
||||
textPosition="text-start"
|
||||
v-model="selectedValue"
|
||||
v-model="selectedProviderNumber"
|
||||
isRequired
|
||||
validationRules="option-required" />
|
||||
<textLink
|
||||
|
|
@ -81,12 +81,19 @@ export default {
|
|||
},
|
||||
selectedValue: {
|
||||
get: function () {
|
||||
return this.modelValue?.providerNumber;
|
||||
return this.modelValue;
|
||||
},
|
||||
set: function (newValue) {
|
||||
// Button Question only supports Number, String data types so we must get the full object to emit
|
||||
const provider = this.getSelectedProviderObject(newValue);
|
||||
this.$emit("update:modelValue", provider);
|
||||
this.$emit("update:modelValue", newValue);
|
||||
},
|
||||
},
|
||||
selectedProviderNumber: {
|
||||
get: function () {
|
||||
return this.selectedValue?.providerNumber;
|
||||
},
|
||||
set: function (newValue) {
|
||||
// Button Question only supports Number, or String data types so we must get the full object to emit
|
||||
this.selectedValue = this.getSelectedProviderObject(newValue);
|
||||
},
|
||||
},
|
||||
displayDropoffInformation() {
|
||||
|
|
@ -198,7 +205,7 @@ export default {
|
|||
|
||||
await this.$nextTick();
|
||||
|
||||
this.selectedValue = null;
|
||||
this.selectedProviderNumber = null;
|
||||
|
||||
this.$refs.buttonQuestion?.resetField();
|
||||
|
||||
|
|
@ -216,7 +223,7 @@ export default {
|
|||
if (this.selectedAppointmentType) {
|
||||
const selectedShopIndex = this.getSelectedProviderIndex(
|
||||
newValue,
|
||||
this.modelValue?.providerNumber
|
||||
this.selectedProviderNumber
|
||||
);
|
||||
|
||||
if (selectedShopIndex >= 3) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue