-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented: logic to select location on product detail page (#22qm8pq). #71
Conversation
…h and store location detail on 'count.vue' page (#22qm8pq).
src/views/count.vue
Outdated
methods: { | ||
async openLocationPicker() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async openLocationPicker() { | |
async selectLocation() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed method name.
src/views/count.vue
Outdated
"entityName": "ProductFacilityLocation", | ||
"fieldsToSelect": [ "locationSeqId" ] | ||
} | ||
resp = await UserService.getFacilityLocations(params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resp = await UserService.getFacilityLocations(params); | |
resp = await ProductService.getFacilityLocations(params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed Service name.
src/views/count.vue
Outdated
}, | ||
{ | ||
text: translate('Confirm'), | ||
handler: (value) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handler: (value) => { | |
handler: (data) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed parameter name.
src/views/count.vue
Outdated
this.facilityLocations = this.facilityLocations.map((location: any) => { | ||
return { | ||
locationSeqId: location.locationSeqId, | ||
locationLabel: location.areaId + location.aisleId + location.sectionId + location.levelId + location.positionId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
locationLabel: location.areaId + location.aisleId + location.sectionId + location.levelId + location.positionId | |
location: location.areaId + location.aisleId + location.sectionId + location.levelId + location.positionId |
src/views/count.vue
Outdated
<ion-item> | ||
<ion-label>{{ $t("Location") }}</ion-label> | ||
<ion-chip @click="selectLocation"> | ||
<ion-label>{{ locationId }}</ion-label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<ion-label>{{ locationId }}</ion-label> | |
<ion-label>{{ location }}</ion-label> |
…n method (#22qm8pq).
…nt.vue file (#22qm8pq)
… data (#22qm8pq).
changelogs/unreleased/-22qm8pq.yml
Outdated
@@ -0,0 +1,6 @@ | |||
--- | |||
title: 'Impelented: logic to select location on pdp page' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: 'Impelented: logic to select location on pdp page' | |
title: 'Implemented: logic to select location on product detail page' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improved title of the changelog.
src/views/count.vue
Outdated
methods: { | ||
async selectLocation() { | ||
this.pickerOptions = await this.facilityLocations.map((location: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could make pickerOptions
local variable instead
No description provided.