This commit is contained in:
@@ -5,6 +5,9 @@
|
|||||||
|
|
||||||
MISC ITEMS THAT CAME UP
|
MISC ITEMS THAT CAME UP
|
||||||
|
|
||||||
|
todo: vendor edit form has locale keys from headoffice, check all recent, may be more, memo etc
|
||||||
|
todo: newer objects use full translation key for form field definitions but some forms have abbreviated or lower case for ShowMe() code, double check recent
|
||||||
|
|
||||||
todo: NEXT DEPLOY TO DEVOPS attach a photo from phone, no error just does nothing
|
todo: NEXT DEPLOY TO DEVOPS attach a photo from phone, no error just does nothing
|
||||||
worked here locally latest build
|
worked here locally latest build
|
||||||
retest on server after next deploy
|
retest on server after next deploy
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
<gz-report-selector ref="reportSelector"></gz-report-selector>
|
<gz-report-selector ref="reportSelector"></gz-report-selector>
|
||||||
<div v-if="formState.ready">
|
<div v-if="formState.ready">
|
||||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||||
|
|
||||||
<v-form ref="form">
|
<v-form ref="form">
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
@@ -38,7 +37,7 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'AccountNumber')"
|
v-if="form().showMe(this, 'ProjectAccountNumber')"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
@@ -55,7 +54,65 @@
|
|||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'ProjectProjectOverseerID')"
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
lg="4"
|
||||||
|
xl="3"
|
||||||
|
>
|
||||||
|
<gz-pick-list
|
||||||
|
:ayaType="ayaTypes().User"
|
||||||
|
:variant="'inside'"
|
||||||
|
:showEditIcon="true"
|
||||||
|
v-model="obj.projectOverseerId"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:label="$ay.t('ProjectProjectOverseerID')"
|
||||||
|
ref="projectOverseerId"
|
||||||
|
data-cy="projectOverseerId"
|
||||||
|
:error-messages="form().serverErrors(this, 'projectOverseerId')"
|
||||||
|
@input="fieldValueChanged('projectOverseerId')"
|
||||||
|
></gz-pick-list>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'ProjectDateStarted')"
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
lg="4"
|
||||||
|
xl="3"
|
||||||
|
>
|
||||||
|
<gz-date-time-picker
|
||||||
|
:label="$ay.t('ProjectDateStarted')"
|
||||||
|
v-model="obj.dateStarted"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
ref="dateStarted"
|
||||||
|
testId="dateStarted"
|
||||||
|
:error-messages="form().serverErrors(this, 'dateStarted')"
|
||||||
|
@input="fieldValueChanged('dateStarted')"
|
||||||
|
></gz-date-time-picker>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'ProjectDateCompleted')"
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
lg="4"
|
||||||
|
xl="3"
|
||||||
|
>
|
||||||
|
<gz-date-time-picker
|
||||||
|
:label="$ay.t('ProjectDateCompleted')"
|
||||||
|
:rules="[
|
||||||
|
form().datePrecedence(this, 'dateStarted', 'dateCompleted')
|
||||||
|
]"
|
||||||
|
:error-messages="form().serverErrors(this, 'dateCompleted')"
|
||||||
|
v-model="obj.dateCompleted"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
ref="dateCompleted"
|
||||||
|
testId="dateCompleted"
|
||||||
|
@input="fieldValueChanged('dateCompleted')"
|
||||||
|
></gz-date-time-picker>
|
||||||
|
</v-col>
|
||||||
<!-- --------------------------------- -->
|
<!-- --------------------------------- -->
|
||||||
<v-col v-if="form().showMe(this, 'Notes')" cols="12">
|
<v-col v-if="form().showMe(this, 'Notes')" cols="12">
|
||||||
<v-textarea
|
<v-textarea
|
||||||
@@ -70,10 +127,6 @@
|
|||||||
></v-textarea>
|
></v-textarea>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<v-col v-if="form().showMe(this, 'Tags')" cols="12">
|
<v-col v-if="form().showMe(this, 'Tags')" cols="12">
|
||||||
<gz-tag-picker
|
<gz-tag-picker
|
||||||
v-model="obj.tags"
|
v-model="obj.tags"
|
||||||
@@ -212,29 +265,12 @@ export default {
|
|||||||
wiki: null,
|
wiki: null,
|
||||||
customFields: "{}",
|
customFields: "{}",
|
||||||
tags: [],
|
tags: [],
|
||||||
webAddress: null,
|
dateStarted: window.$gz.locale.nowUTC8601String(),
|
||||||
popUpNotes: null,
|
dateCompleted: null,
|
||||||
contactNotes: null,
|
projectOverseerId: null,
|
||||||
contact: null,
|
accountNumber: null
|
||||||
accountNumber: null,
|
|
||||||
phone1: null,
|
|
||||||
phone2: null,
|
|
||||||
phone3: null,
|
|
||||||
phone4: null,
|
|
||||||
phone5: null,
|
|
||||||
emailAddress: null,
|
|
||||||
postAddress: null,
|
|
||||||
postCity: null,
|
|
||||||
postRegion: null,
|
|
||||||
postCountry: null,
|
|
||||||
postCode: null,
|
|
||||||
address: null,
|
|
||||||
city: null,
|
|
||||||
region: null,
|
|
||||||
country: null,
|
|
||||||
latitude: null,
|
|
||||||
longitude: null
|
|
||||||
},
|
},
|
||||||
|
|
||||||
tab: 0,
|
tab: 0,
|
||||||
formState: {
|
formState: {
|
||||||
ready: false,
|
ready: false,
|
||||||
@@ -754,36 +790,10 @@ async function fetchTranslatedText(vm) {
|
|||||||
"Project",
|
"Project",
|
||||||
"ProjectName",
|
"ProjectName",
|
||||||
"ProjectNotes",
|
"ProjectNotes",
|
||||||
"WebAddress",
|
|
||||||
"ProjectPopUpNotes",
|
|
||||||
"ProjectBillHeadOffice",
|
|
||||||
"HeadOffice",
|
|
||||||
"ProjectTechNotes",
|
|
||||||
"ProjectAccountNumber",
|
"ProjectAccountNumber",
|
||||||
"ProjectContact",
|
"ProjectProjectOverseerID",
|
||||||
"ProjectContactNotes",
|
"ProjectDateStarted",
|
||||||
"ProjectPhone1",
|
"ProjectDateCompleted",
|
||||||
"ProjectPhone2",
|
|
||||||
"ProjectPhone3",
|
|
||||||
"ProjectPhone4",
|
|
||||||
"ProjectPhone5",
|
|
||||||
"ProjectEmail",
|
|
||||||
"AddressTypePhysical",
|
|
||||||
"AddressTypePostal",
|
|
||||||
"AddressCopyToPostal",
|
|
||||||
"AddressCopyToPhysical",
|
|
||||||
"Address",
|
|
||||||
"AddressPostalDeliveryAddress",
|
|
||||||
"AddressPostalCity",
|
|
||||||
"AddressPostalStateProv",
|
|
||||||
"AddressPostalCountry",
|
|
||||||
"AddressPostalPostal",
|
|
||||||
"AddressDeliveryAddress",
|
|
||||||
"AddressCity",
|
|
||||||
"AddressStateProv",
|
|
||||||
"AddressCountry",
|
|
||||||
"AddressLatitude",
|
|
||||||
"AddressLongitude",
|
|
||||||
"ProjectCustom1",
|
"ProjectCustom1",
|
||||||
"ProjectCustom2",
|
"ProjectCustom2",
|
||||||
"ProjectCustom3",
|
"ProjectCustom3",
|
||||||
|
|||||||
Reference in New Issue
Block a user