This commit is contained in:
@@ -90,6 +90,10 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
|
template: {
|
||||||
|
type: String,
|
||||||
|
default: null
|
||||||
|
},
|
||||||
hint: {
|
hint: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: null
|
||||||
@@ -214,10 +218,11 @@ export default {
|
|||||||
|
|
||||||
if (vm.variant != null) {
|
if (vm.variant != null) {
|
||||||
pickListParams["listVariant"] = vm.variant;
|
pickListParams["listVariant"] = vm.variant;
|
||||||
//variantSegment = `&variant=${vm.variant}`;
|
|
||||||
}
|
}
|
||||||
// let pickListParams =
|
|
||||||
// "?ayaType=" + vm.ayaType + "&preId=" + vm.value + variantSegment;
|
if (vm.template != null) {
|
||||||
|
pickListParams["template"] = vm.template;
|
||||||
|
}
|
||||||
|
|
||||||
vm.getList(pickListParams);
|
vm.getList(pickListParams);
|
||||||
}
|
}
|
||||||
@@ -313,6 +318,9 @@ export default {
|
|||||||
if (vm.variant != null) {
|
if (vm.variant != null) {
|
||||||
pickListParams["listVariant"] = vm.variant;
|
pickListParams["listVariant"] = vm.variant;
|
||||||
}
|
}
|
||||||
|
if (vm.template != null) {
|
||||||
|
pickListParams["template"] = vm.template;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await window.$gz.api.upsert("pick-list/list", pickListParams);
|
let res = await window.$gz.api.upsert("pick-list/list", pickListParams);
|
||||||
@@ -421,7 +429,9 @@ export default {
|
|||||||
}
|
}
|
||||||
if (vm.variant != null) {
|
if (vm.variant != null) {
|
||||||
pickListParams["listVariant"] = vm.variant;
|
pickListParams["listVariant"] = vm.variant;
|
||||||
//urlParams += `&variant=${vm.variant}`;
|
}
|
||||||
|
if (vm.template != null) {
|
||||||
|
pickListParams["template"] = vm.template;
|
||||||
}
|
}
|
||||||
this.getList(pickListParams);
|
this.getList(pickListParams);
|
||||||
//------------
|
//------------
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
ref="customerId"
|
ref="customerId"
|
||||||
data-cy="customerId"
|
data-cy="customerId"
|
||||||
variant="ho"
|
variant="ho"
|
||||||
template="{}"<----this is where I left off
|
|
||||||
@input="fieldValueChanged('customerId')"
|
@input="fieldValueChanged('customerId')"
|
||||||
></gz-pick-list>
|
></gz-pick-list>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -80,8 +79,12 @@
|
|||||||
>
|
>
|
||||||
<gz-pick-list
|
<gz-pick-list
|
||||||
:aya-type="ayaTypes().Unit"
|
:aya-type="ayaTypes().Unit"
|
||||||
:variant="'customerid:' + obj.customerId" //also this needs hoid variant here
|
:variant="unitListVariant()"
|
||||||
template="{}"<----this is where I left off
|
template="[
|
||||||
|
{ fld: 'UnitSerial' },
|
||||||
|
{ fld: 'UnitModelModelNumber' },
|
||||||
|
{ fld: 'UnitModelVendorID' }
|
||||||
|
]"
|
||||||
v-model="obj.unitId"
|
v-model="obj.unitId"
|
||||||
:readonly="formState.readOnly"
|
:readonly="formState.readOnly"
|
||||||
:label="$ay.t('CustomerServiceRequestItemUnitID')"
|
:label="$ay.t('CustomerServiceRequestItemUnitID')"
|
||||||
@@ -266,7 +269,7 @@ const FORM_CUSTOM_TEMPLATE_KEY = "CustomerServiceRequest"; //<-- Should always b
|
|||||||
export default {
|
export default {
|
||||||
async created() {
|
async created() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
|
//'[{"fld":"UnitSerial"},{"fld":"UnitModelModelNumber"},{"fld":"UnitModelVendorID"}]'
|
||||||
try {
|
try {
|
||||||
await initForm(vm);
|
await initForm(vm);
|
||||||
|
|
||||||
@@ -430,6 +433,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
unitListVariant: function() {
|
||||||
|
return `customerid: ${this.obj.customerId}`;
|
||||||
|
},
|
||||||
priorityColor: function() {
|
priorityColor: function() {
|
||||||
switch (this.obj.priority) {
|
switch (this.obj.priority) {
|
||||||
case 1: //asap
|
case 1: //asap
|
||||||
|
|||||||
Reference in New Issue
Block a user