|
@ -72,7 +72,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="h-1rpx flex-shrink-0" style="width: 110rpx;"></view> |
|
|
<view class="h-1rpx flex-shrink-0" style="width: 110rpx;"></view> |
|
|
<view class="person-item-more" @click.stop="showAddressPopUp({},[],true)"> |
|
|
<view class="person-item-more" @click.stop="showAddressPopUp({},[],true)" v-if="addressList.length>0"> |
|
|
<view>更多></view> |
|
|
<view>更多></view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -130,7 +130,7 @@ |
|
|
<view>身份证 {{skuItem.selPerson.id_number}}</view> |
|
|
<view>身份证 {{skuItem.selPerson.id_number}}</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<img @click.stop="changeAddressAddPopup('open',person)" v-if="!skuBuyMultiple" style="width: 32rpx;height: 32rpx;" |
|
|
<img @click.stop="changeAddressAddPopup('open',skuItem.selPerson)" v-if="!skuBuyMultiple" style="width: 32rpx;height: 32rpx;" |
|
|
:src="showImg('/uploads/20240827/337cf610ce5924c2a65b7a28b6a4891e.png')" alt="" /> |
|
|
:src="showImg('/uploads/20240827/337cf610ce5924c2a65b7a28b6a4891e.png')" alt="" /> |
|
|
<uni-icons v-else type="right" size="16"></uni-icons> |
|
|
<uni-icons v-else type="right" size="16"></uni-icons> |
|
|
</view> |
|
|
</view> |
|
@ -395,7 +395,7 @@ |
|
|
start_date:date |
|
|
start_date:date |
|
|
}, '/api/goods/getPriceCalendarListBySpecifications') |
|
|
}, '/api/goods/getPriceCalendarListBySpecifications') |
|
|
if (res.code == 1) { |
|
|
if (res.code == 1) { |
|
|
return {code:1,money: res.data[0].money} |
|
|
return {code:1,money: res.data[0].money, store: ''} |
|
|
} |
|
|
} |
|
|
return {code:2} |
|
|
return {code:2} |
|
|
}, |
|
|
}, |
|
@ -434,6 +434,7 @@ |
|
|
let is_price_calendar = data.sInfo.is_price_calendar |
|
|
let is_price_calendar = data.sInfo.is_price_calendar |
|
|
data.pInfo.specifications = data.pInfo.specifications.filter(v=>v.is_time_stock==is_time_stock && v.is_price_calendar==is_price_calendar) |
|
|
data.pInfo.specifications = data.pInfo.specifications.filter(v=>v.is_time_stock==is_time_stock && v.is_price_calendar==is_price_calendar) |
|
|
let date = data.allSeldDate[data.seldDateIndex].date |
|
|
let date = data.allSeldDate[data.seldDateIndex].date |
|
|
|
|
|
let time = data.timesArr[data.seldTimeIndex] |
|
|
|
|
|
|
|
|
for(let sku of data.pInfo.specifications) { |
|
|
for(let sku of data.pInfo.specifications) { |
|
|
let res = await this.initPriceCal(sku.id, sku.goods_id, date) |
|
|
let res = await this.initPriceCal(sku.id, sku.goods_id, date) |
|
@ -887,15 +888,16 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 设置参数 |
|
|
// 设置参数 |
|
|
console.log(this.pInfo) |
|
|
let canSubmit = true |
|
|
this.pInfo.specifications.forEach(sku=>{ |
|
|
this.pInfo.specifications.filter(v=>v.buyNum>0).forEach(sku=>{ |
|
|
|
|
|
debugger |
|
|
if (!sku.is_card) { |
|
|
if (!sku.is_card) { |
|
|
if (this.isTel(sku.selPerson.tel)) { |
|
|
if (!this.IsTel(sku.selPerson.tel)) { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title:'请输入正确的手机号', |
|
|
title:'请输入正确的手机号', |
|
|
icon:'none' |
|
|
icon:'none' |
|
|
}) |
|
|
}) |
|
|
return |
|
|
canSubmit = false |
|
|
} |
|
|
} |
|
|
let param = { |
|
|
let param = { |
|
|
specifications_id: sku.id, |
|
|
specifications_id: sku.id, |
|
@ -915,7 +917,7 @@ |
|
|
title:'请选择出行人', |
|
|
title:'请选择出行人', |
|
|
icon:'none' |
|
|
icon:'none' |
|
|
}) |
|
|
}) |
|
|
return |
|
|
canSubmit = false |
|
|
} |
|
|
} |
|
|
let param = { |
|
|
let param = { |
|
|
specifications_id: sku.id, |
|
|
specifications_id: sku.id, |
|
@ -927,12 +929,12 @@ |
|
|
} |
|
|
} |
|
|
goods.push(param) |
|
|
goods.push(param) |
|
|
} else { |
|
|
} else { |
|
|
if (sku.selPerson.id) { |
|
|
if (!sku.selPerson.id) { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title:'请选择出行人', |
|
|
title:'请选择出行人', |
|
|
icon:'none' |
|
|
icon:'none' |
|
|
}) |
|
|
}) |
|
|
return |
|
|
canSubmit = false |
|
|
} |
|
|
} |
|
|
let param = { |
|
|
let param = { |
|
|
specifications_id: sku.id, |
|
|
specifications_id: sku.id, |
|
@ -948,7 +950,9 @@ |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
console.log(goods) |
|
|
console.log(goods) |
|
|
|
|
|
if (!canSubmit) { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let data = { |
|
|
let data = { |
|
|
goods: goods, |
|
|
goods: goods, |
|
|