This commit is contained in:
2021-02-19 21:53:07 +00:00
parent 439f6aef8f
commit 0bfaa98cdc

View File

@@ -305,31 +305,62 @@
:size="60" :size="60"
></v-progress-circular> ></v-progress-circular>
</template> </template>
<v-row justify="center"> <template v-if="obj.items.length">
<v-dialog v-model="editPoItemDialog" persistent> <v-row justify="center">
<v-card> <v-dialog v-model="editPoItemDialog" persistent>
<v-card-title> <v-card>
<span class="headline">{{ $ay.t("FindAndReplace") }}</span> <v-card-title>
</v-card-title> <span class="headline">{{ $ay.t("FindAndReplace") }}</span>
<v-card-text> </v-card-title>
form here <v-card-text>
{{ obj.items[editPoItemIndex] }} <v-row>
</v-card-text> <v-col cols="12" sm="6" lg="4" xl="3">
<v-card-actions> <gz-pick-list
<v-spacer></v-spacer> :aya-type="ayaTypes().Part"
<v-btn :show-edit-icon="true"
color="blue darken-1" v-model="obj.items[editPoItemIndex].partId"
text :readonly="formState.readOnly"
@click="editPoItemDialog = false" :label="$ay.t('Part')"
>{{ $ay.t("Cancel") }}</v-btn ref="partId"
> data-cy="partId"
<v-btn color="blue darken-1" text @click="submit()">{{ ></gz-pick-list>
$ay.t("Save") </v-col>
}}</v-btn> <v-col cols="12" sm="6" lg="4" xl="3">
</v-card-actions> <v-text-field
</v-card> v-model="obj.items[editPoItemIndex].vendorPartNumber"
</v-dialog> :readonly="formState.readOnly"
</v-row> :clearable="!formState.readOnly"
@click:clear="fieldValueChanged('vendorPartNumber')"
:label="$ay.t('VendorPartNumber')"
ref="vendorPartNumber"
data-cy="vendorPartNumber"
:rules="[form().required(this, 'vendorPartNumber')]"
></v-text-field>
<!-- maybe don't need this in these sub forms as they are all to do with server related errors which isn't currently supportive of indexed collection children :error-messages="
//YAGNI FOR NOW
form().serverErrors(this, 'vendorPartNumber')
" @input="fieldValueChanged('vendorPartNumber')" -->
</v-col>
</v-row>
{{ obj.items[editPoItemIndex] }}
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="blue darken-1"
text
@click="editPoItemDialog = false"
>{{ $ay.t("Cancel") }}</v-btn
>
<v-btn color="blue darken-1" text @click="submit()">{{
$ay.t("Save")
}}</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
</template>
</div> </div>
</template> </template>