|
|
@@ -220,13 +220,12 @@ export default {
|
|
|
shopId:0,
|
|
|
infoData:{},
|
|
|
xjData:{},
|
|
|
- xjDataInfo:{},
|
|
|
+ hasColorInfo:{},
|
|
|
shareDiscount:1,
|
|
|
ghsId:0,
|
|
|
newCustomGift:{xrFlAmount:0},
|
|
|
isNewCustom:false,
|
|
|
showInvite:false,
|
|
|
- //推荐新人福利
|
|
|
tjFl:0,
|
|
|
cartItemShow:false
|
|
|
};
|
|
|
@@ -257,14 +256,11 @@ export default {
|
|
|
|
|
|
if(this.xjData.hasUpdate == 1){
|
|
|
|
|
|
- const list = this.selectList;
|
|
|
-
|
|
|
- this.customData = this.xjDataInfo
|
|
|
+ this.customData = this.hasColorInfo
|
|
|
|
|
|
if(this.xjData.cancel == 1){
|
|
|
this.customData.bigCount = 0
|
|
|
this.customData.smallCount = 0
|
|
|
- console.log('this.customData',this.customData)
|
|
|
this.affirm({index:0})
|
|
|
}else{
|
|
|
|
|
|
@@ -273,19 +269,19 @@ export default {
|
|
|
let has = false
|
|
|
for (let index = 0; index < list.length; index++) {
|
|
|
const element = list[index];
|
|
|
- if (element.id == this.xjDataInfo.id && element.classId == this.xjDataInfo.classId) {
|
|
|
+ if (element.id == this.hasColorInfo.id && element.classId == this.hasColorInfo.classId) {
|
|
|
has = true
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if(has == false){
|
|
|
let params = {
|
|
|
- ...this.xjDataInfo,
|
|
|
- bigCount: null, //扎数
|
|
|
- smallCount: null, //支数
|
|
|
- autoPrice: null, //调价价格
|
|
|
- realityWeight: null, //调价价格
|
|
|
- userPrice: null, //调价价格
|
|
|
+ ...this.hasColorInfo,
|
|
|
+ bigCount: null,
|
|
|
+ smallCount: null,
|
|
|
+ autoPrice: null,
|
|
|
+ realityWeight: null,
|
|
|
+ userPrice: null,
|
|
|
};
|
|
|
list.push(params);
|
|
|
this.setSelectInfoByType({ type: this.pageType, info: list });
|
|
|
@@ -390,11 +386,11 @@ export default {
|
|
|
},
|
|
|
//去特殊品种页,如小菊等
|
|
|
goToSpecialVariety(info){
|
|
|
- this.xjDataInfo = info
|
|
|
+ this.hasColorInfo = info
|
|
|
if(info.stock <= 0){
|
|
|
uni.showToast({title:"没有库存",icon:"none"})
|
|
|
}else{
|
|
|
- this.$util.pageTo({url: "/pagesPurchase/xj",query: {stock:info.stock,price: info.price,ghsId:this.option.id,itemId:info.id}})
|
|
|
+ this.$util.pageTo({url: "/pagesPurchase/xj",query: {stock:info.stock,price: info.price,ghsId:this.option.id,ptItemId:info.itemId}})
|
|
|
}
|
|
|
},
|
|
|
showPopup() {
|
|
|
@@ -404,7 +400,7 @@ export default {
|
|
|
this.popupShow = false;
|
|
|
},
|
|
|
showBigCover(item){
|
|
|
- this.$util.pageTo({url: "/admin/ghsProduct/detail",query: {id: item.id,ghsId:this.option.id}})
|
|
|
+ this.$util.pageTo({url: "/admin/ghsProduct/detail",query: {id: item.id,ghsId:this.option.id}})
|
|
|
},
|
|
|
init(){
|
|
|
|
|
|
@@ -592,7 +588,6 @@ export default {
|
|
|
if (val.index === 0) {
|
|
|
this.cancelEvent();
|
|
|
} else {
|
|
|
- console.log(444, this.selectList);
|
|
|
uni.navigateTo({
|
|
|
url: "/admin/billing/affirm"
|
|
|
});
|