missing code for recal copy logic
This commit is contained in:
parent
03d18ba6a8
commit
3e91e0e7dc
1 changed files with 5 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { getStringWithCustomValues, processIfStatements } from '@/helpers/cms-content-helper';
|
import { getStringWithCustomValues, processIfStatements } from '@/helpers/cms-content-helper';
|
||||||
import { getGlassList } from '@/helpers/damage-helper';
|
import { getGlassList } from '@/helpers/damage-helper';
|
||||||
|
import { isRecalOrder } from '@/helpers/recal-helper';
|
||||||
import reviewBlock from '@/layouts/payment-method/review-dropdown/review-block/review-block.vue';
|
import reviewBlock from '@/layouts/payment-method/review-dropdown/review-block/review-block.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -34,12 +35,16 @@ export default {
|
||||||
customValueMap() {
|
customValueMap() {
|
||||||
return {
|
return {
|
||||||
glassList: this.glassList,
|
glassList: this.glassList,
|
||||||
|
isRecalibrationOnOrder: this.isRecalibrationOnOrder
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
glassList() {
|
glassList() {
|
||||||
const glassPieces = this.mainStore.lineItems.glassParts?.map((part) => part.partType.toLowerCase()) ?? [];
|
const glassPieces = this.mainStore.lineItems.glassParts?.map((part) => part.partType.toLowerCase()) ?? [];
|
||||||
return getGlassList(glassPieces);
|
return getGlassList(glassPieces);
|
||||||
},
|
},
|
||||||
|
isRecalibrationOnOrder() {
|
||||||
|
return isRecalOrder(this.mainStore.order.lineItems);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getCmsContentWithCustomValues(widgetName, widgetField) {
|
getCmsContentWithCustomValues(widgetName, widgetField) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue