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
|
||||
// (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
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
chips
|
||||
deletable-chips
|
||||
cache-items
|
||||
:rules="rules"
|
||||
:error-messages="errorMessages"
|
||||
>
|
||||
<template slot="no-data" v-if="offerAdd()">
|
||||
<v-chip color="primary" text-color="white" class="display-1">
|
||||
@@ -58,7 +60,9 @@ export default {
|
||||
},
|
||||
// value: Array,
|
||||
label: String,
|
||||
readonly: { type: Boolean, default: false }
|
||||
readonly: { type: Boolean, default: false },
|
||||
rules: { type: Array, default: undefined },
|
||||
errorMessages: { type: Array, default: null }
|
||||
},
|
||||
watch: {
|
||||
async tagSearchEntry(val) {
|
||||
|
||||
@@ -318,6 +318,13 @@
|
||||
<tr
|
||||
v-for="(item, index) in obj.contractTravelRateOverrideItems"
|
||||
:key="item.Id"
|
||||
:class="
|
||||
form().childRowErrorClass(
|
||||
thisVm(),
|
||||
'ContractTravelRateOverrideItems',
|
||||
index
|
||||
)
|
||||
"
|
||||
>
|
||||
<td class="text-right">{{ item.overridePct }}%</td>
|
||||
<td class="text-left">
|
||||
@@ -1581,6 +1588,9 @@ export default {
|
||||
form() {
|
||||
return window.$gz.form;
|
||||
},
|
||||
thisVm() {
|
||||
return this;
|
||||
},
|
||||
fieldValueChanged(ref) {
|
||||
if (
|
||||
this.formState.ready &&
|
||||
|
||||
Reference in New Issue
Block a user