|
@@ -43,8 +43,8 @@
|
|
<view class="check-row">
|
|
<view class="check-row">
|
|
<view v-if="item.totalCategory>1" class="check-row-left">
|
|
<view v-if="item.totalCategory>1" class="check-row-left">
|
|
<scroll-view style="width: 100%;white-space: nowrap;" scroll-x="true">
|
|
<scroll-view style="width: 100%;white-space: nowrap;" scroll-x="true">
|
|
- <view class="img-item" v-for="item in item.productList" :key="item.id">
|
|
|
|
- <image :src="item.images||'/static/def_imgs.png'" style="width: 100%;height: 100%;"></image>
|
|
|
|
|
|
+ <view class="img-item" v-for="pitem in item.productList" :key="pitem.id">
|
|
|
|
+ <image :src="pitem.images||'/static/def_imgs.png'" style="width: 100%;height: 100%;"></image>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
@@ -188,13 +188,18 @@
|
|
},
|
|
},
|
|
// 刷新列表
|
|
// 刷新列表
|
|
resetList(item,state){
|
|
resetList(item,state){
|
|
|
|
+ // 其它列表,删除当前操作的订单
|
|
|
|
+ const index = this.list.findIndex((key)=>key.purchaseSn == item.purchaseSn)
|
|
// 全部列表,改变状态
|
|
// 全部列表,改变状态
|
|
if(this.swiperCurrent==0){
|
|
if(this.swiperCurrent==0){
|
|
- item.billStatus = state
|
|
|
|
- this.list.splice()
|
|
|
|
|
|
+ purchaseQueryPage({pageNo:1,pageSize:1,purchaseSn: item.purchaseSn}).then(res => {
|
|
|
|
+ const data = res.data ? res.data.list[0] : null
|
|
|
|
+ if(data){
|
|
|
|
+ data.billStatus = data.billStatus == 'WAIT_AUDIT'&&data.payOnlineFlag==1&&data.payInfo&&data.payInfo.payState=='WAIT'?'WAIT_PAY':data.billStatus
|
|
|
|
+ this.list.splice(index,1,data)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}else{
|
|
}else{
|
|
- // 其它列表,删除当前操作的订单
|
|
|
|
- const index = this.list.findIndex((key)=>key.purchaseSn == item.purchaseSn)
|
|
|
|
if(index>-1){
|
|
if(index>-1){
|
|
this.list.splice(index,1)
|
|
this.list.splice(index,1)
|
|
}
|
|
}
|