mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 10:16:38 +08:00
main product injected
This commit is contained in:
parent
6c60d6296d
commit
e4e1b5cdb9
@ -336,7 +336,10 @@ export default {
|
|||||||
productAttachmentList = [insertTmpObj];
|
productAttachmentList = [insertTmpObj];
|
||||||
userbuy = false;
|
userbuy = false;
|
||||||
} else {
|
} else {
|
||||||
mainProduct = await productQuery(mainProductCode);
|
if(mainProductCode && mainProductCode.length>2) {
|
||||||
|
mainProduct = await productQuery(mainProductCode);
|
||||||
|
mainProduct = mainProduct.pop();
|
||||||
|
}
|
||||||
let stopLeftAllotmentChecking = false;
|
let stopLeftAllotmentChecking = false;
|
||||||
let stopIndex = 0;
|
let stopIndex = 0;
|
||||||
for(let singleCode of productCode) {
|
for(let singleCode of productCode) {
|
||||||
@ -597,12 +600,18 @@ export default {
|
|||||||
if(item.packageTypeIds!='1') {
|
if(item.packageTypeIds!='1') {
|
||||||
dateChecked=false;
|
dateChecked=false;
|
||||||
}
|
}
|
||||||
if(this.mainProduct && this.mainProduct.petType) {
|
if(this.mainProduct && this.mainProduct.petType && item.petCategoryIds) {
|
||||||
if(this.mainProduct.petType===0 && item.petCategoryIds!='1')
|
if(this.mainProduct.petType===0 && item.petCategoryIds!='1')
|
||||||
dateChecked=false;
|
dateChecked=false;
|
||||||
if(this.mainProduct.petType===1 && item.petCategoryIds!='2')
|
if(this.mainProduct.petType===1 && item.petCategoryIds!='2')
|
||||||
dateChecked=false;
|
dateChecked=false;
|
||||||
}
|
}
|
||||||
|
if(this.mainProduct && this.mainProduct.tagUsedAge && item.petAgeTypeIds) {
|
||||||
|
let productToCouponAgeId = this.util.getAgeMapping(this.mainProduct.tagUsedAge);
|
||||||
|
if(item.petAgeTypeIds!=productToCouponAgeId)
|
||||||
|
dateChecked=false;
|
||||||
|
}
|
||||||
|
|
||||||
if(dateChecked && item.activityId!=10) {
|
if(dateChecked && item.activityId!=10) {
|
||||||
if(!item.productCodes) {
|
if(!item.productCodes) {
|
||||||
menualist.push(item);
|
menualist.push(item);
|
||||||
|
Loading…
Reference in New Issue
Block a user