This commit is contained in:
@@ -716,6 +716,17 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
|
// childRowErrorClass
|
||||||
|
// returns class to set on row if error exists for row
|
||||||
|
// else returns nothing
|
||||||
|
//
|
||||||
|
childRowErrorClass(vm, collectionName, rowIndex) {
|
||||||
|
if (this.childRowHasError(vm, collectionName, rowIndex)) {
|
||||||
|
return "font-weight-black font-italic error--text";
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
///////////////////////////////
|
||||||
// ShowMe
|
// ShowMe
|
||||||
// (returns false if the field has been set to hidden by the user in the formcustomtemplate)
|
// (returns false if the field has been set to hidden by the user in the formcustomtemplate)
|
||||||
// NOTE: that in a form this should only be used with non stock-required fields, if they are already required they cannot be hidden
|
// NOTE: that in a form this should only be used with non stock-required fields, if they are already required they cannot be hidden
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
chips
|
chips
|
||||||
deletable-chips
|
deletable-chips
|
||||||
cache-items
|
cache-items
|
||||||
|
:rules="rules"
|
||||||
|
:error-messages="errorMessages"
|
||||||
>
|
>
|
||||||
<template slot="no-data" v-if="offerAdd()">
|
<template slot="no-data" v-if="offerAdd()">
|
||||||
<v-chip color="primary" text-color="white" class="display-1">
|
<v-chip color="primary" text-color="white" class="display-1">
|
||||||
@@ -58,7 +60,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// value: Array,
|
// value: Array,
|
||||||
label: String,
|
label: String,
|
||||||
readonly: { type: Boolean, default: false }
|
readonly: { type: Boolean, default: false },
|
||||||
|
rules: { type: Array, default: undefined },
|
||||||
|
errorMessages: { type: Array, default: null }
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
async tagSearchEntry(val) {
|
async tagSearchEntry(val) {
|
||||||
|
|||||||
@@ -318,6 +318,13 @@
|
|||||||
<tr
|
<tr
|
||||||
v-for="(item, index) in obj.contractTravelRateOverrideItems"
|
v-for="(item, index) in obj.contractTravelRateOverrideItems"
|
||||||
:key="item.Id"
|
:key="item.Id"
|
||||||
|
:class="
|
||||||
|
form().childRowErrorClass(
|
||||||
|
thisVm(),
|
||||||
|
'ContractTravelRateOverrideItems',
|
||||||
|
index
|
||||||
|
)
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<td class="text-right">{{ item.overridePct }}%</td>
|
<td class="text-right">{{ item.overridePct }}%</td>
|
||||||
<td class="text-left">
|
<td class="text-left">
|
||||||
@@ -1581,6 +1588,9 @@ export default {
|
|||||||
form() {
|
form() {
|
||||||
return window.$gz.form;
|
return window.$gz.form;
|
||||||
},
|
},
|
||||||
|
thisVm() {
|
||||||
|
return this;
|
||||||
|
},
|
||||||
fieldValueChanged(ref) {
|
fieldValueChanged(ref) {
|
||||||
if (
|
if (
|
||||||
this.formState.ready &&
|
this.formState.ready &&
|
||||||
|
|||||||
Reference in New Issue
Block a user