This commit is contained in:
2021-09-09 15:02:06 +00:00
parent 2abe816549
commit 18cf9bd33e
2 changed files with 24 additions and 8 deletions

View File

@@ -22,7 +22,6 @@
ref="customerId"
data-cy="customerId"
variant="ho"
template="{}"<----this is where I left off
@input="fieldValueChanged('customerId')"
></gz-pick-list>
</v-col>
@@ -80,8 +79,12 @@
>
<gz-pick-list
:aya-type="ayaTypes().Unit"
:variant="'customerid:' + obj.customerId" //also this needs hoid variant here
template="{}"<----this is where I left off
:variant="unitListVariant()"
template="[
{ fld: 'UnitSerial' },
{ fld: 'UnitModelModelNumber' },
{ fld: 'UnitModelVendorID' }
]"
v-model="obj.unitId"
:readonly="formState.readOnly"
:label="$ay.t('CustomerServiceRequestItemUnitID')"
@@ -266,7 +269,7 @@ const FORM_CUSTOM_TEMPLATE_KEY = "CustomerServiceRequest"; //<-- Should always b
export default {
async created() {
let vm = this;
//'[{"fld":"UnitSerial"},{"fld":"UnitModelModelNumber"},{"fld":"UnitModelVendorID"}]'
try {
await initForm(vm);
@@ -430,6 +433,9 @@ export default {
}
},
methods: {
unitListVariant: function() {
return `customerid: ${this.obj.customerId}`;
},
priorityColor: function() {
switch (this.obj.priority) {
case 1: //asap