Commit dd01797d by 张立顺

fix bug

1 parent d308b352
......@@ -176,14 +176,25 @@ Component({
that.setData({
orderInfo
})
const customerPhotos = orderInfo.subOrderList[
index
].constructionImgList.map(item => {
return {
customerPhoto: item,
subOrderCode: orderInfo.subOrderList[index].subOrderCode
// const customerPhotos = orderInfo.subOrderList[
// index
// ].constructionImgList.map(item => {
// return {
// customerPhoto: item,
// subOrderCode: orderInfo.subOrderList[index].subOrderCode
// }
// })
const customerPhotos = orderInfo.subOrderList.reduce((pre, item) => {
if (item.constructionImgList) {
item.constructionImgList.map(el => {
pre.push({
customerPhoto: el,
subOrderCode: item.subOrderCode
})
})
}
})
return pre;
}, [])
that.updateCustomerphotos({
orderCode: orderInfo.orderCode,
customerPhotos
......@@ -206,14 +217,17 @@ Component({
}
orderInfo.subOrderList[imgindex].constructionImgList.splice(index, 1)
const customerPhotos = orderInfo.subOrderList[
imgindex
].constructionImgList.map(item => {
return {
customerPhoto: item,
subOrderCode: orderInfo.subOrderList[imgindex].subOrderCode
const customerPhotos = orderInfo.subOrderList.reduce((pre, item) => {
if (item.constructionImgList) {
item.constructionImgList.map(el => {
pre.push({
customerPhoto: el,
subOrderCode: item.subOrderCode
})
})
}
})
return pre;
}, [])
this.updateCustomerphotos({
orderCode: orderInfo.orderCode,
customerPhotos
......
......@@ -339,10 +339,6 @@ Page({
customerObj,
});
}
// // 有配置技师
// if (data?.technicianConfigDTOList?.length > 0) {
// this.isArtificer(data)
// }
// 是2:门店收款 5:嘀加收款 6:对公转账 7:其它收款并且不是错误订单 自动打开门店收款弹窗
if ( !isErrorOrder && [2, 5, 6, 7].includes(Number(data.selectPayType)) ) {
this.toshowDateModal();
......
......@@ -68,7 +68,7 @@
<image src="/components/images/arrow-x.png" mode="" />
</view>
<!-- 太阳膜类且配置技师 -->
<view wx:if="{{orderInfo.isOpenArtificer && item.upgradeGoodsPosition}}" class="artificer" bindtap="selectArtificer" data-item="{{item}}">
<view wx:if="{{ item.upgradeGoodsPosition}}" class="artificer" bindtap="selectArtificer" data-item="{{item}}">
<text class="{{!item.technicianName ? 'grey_text' : ''}} 'text-hide'">{{item.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!