Commit dd01797d by 张立顺

fix bug

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