|
@@ -3,22 +3,22 @@
|
|
|
<view class="title">列表</view>
|
|
<view class="title">列表</view>
|
|
|
<view class="order-status">
|
|
<view class="order-status">
|
|
|
<view @tap="changeStatus(0)" :class="[{'checked':status===0}]">全部</view>
|
|
<view @tap="changeStatus(0)" :class="[{'checked':status===0}]">全部</view>
|
|
|
- <view @tap="changeStatus(1)" :class="[{'checked':status===1}]">待完成</view>
|
|
|
|
|
- <view @tap="changeStatus(4)" :class="[{'checked':status===4}]">已完成</view>
|
|
|
|
|
|
|
+ <view @tap="changeStatus(1)" :class="[{'checked':status===1}]">消费排行</view>
|
|
|
|
|
+ <view @tap="changeStatus(4)" :class="[{'checked':status===4}]">赊账排行</view>
|
|
|
</view>
|
|
</view>
|
|
|
<scroll-view class="itemList-item_box" scroll-y="true" @scrolltolower="reachBottom" lower-threshold="50">
|
|
<scroll-view class="itemList-item_box" scroll-y="true" @scrolltolower="reachBottom" lower-threshold="50">
|
|
|
- <view v-for="item in list.data" :key="item.id" class="show-item_box" @click="">
|
|
|
|
|
- <view :class="[selectOrderId==item.id ? 'active' : 'not-active', 'item-body_box']">
|
|
|
|
|
|
|
+ <view v-for="item in list.data" :key="item.id" class="show-item_box" @click="getCustomInfo(item,1)">
|
|
|
|
|
+ <view :class="[selCustomId==item.id ? 'active' : 'not-active', 'item-body_box']">
|
|
|
<view class="flower-name_box">
|
|
<view class="flower-name_box">
|
|
|
<view class="current-item-title">
|
|
<view class="current-item-title">
|
|
|
- <text>{{item.actPrice}}</text>
|
|
|
|
|
|
|
+ <text>{{ item.name }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <image class="flower-image" :src="item.cover"></image>
|
|
|
|
|
- <text v-if="item.fromType!=4" style="position:absolute;top:2upx;left:90upx;font-size:11upx;">{{item.sn}}</text>
|
|
|
|
|
|
|
+ <image class="flower-image" :src="item.avatar"></image>
|
|
|
|
|
+ <text style="position:absolute;top:2upx;left:90upx;font-size:11upx;">3333</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item-price-num">
|
|
<view class="item-price-num">
|
|
|
<view>
|
|
<view>
|
|
|
- <text>{{item.orderSn}}</text>
|
|
|
|
|
|
|
+ <text>xsd555611</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view>{{item.status == 1 ? '待付款':item.status==2?'待配送':item.status==3?'配送中':item.status==4?'已完成':item.status==5?'已取消':'待付款'}}</view>
|
|
<view>{{item.status == 1 ? '待付款':item.status==2?'待配送':item.status==3?'配送中':item.status==4?'已完成':item.status==5?'已取消':'待付款'}}</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -28,7 +28,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
-import { getList } from "@/api/order"
|
|
|
|
|
|
|
+import { getCustomList } from "@/api/custom"
|
|
|
import { list } from "@/mixins";
|
|
import { list } from "@/mixins";
|
|
|
export default {
|
|
export default {
|
|
|
name:'cumList',
|
|
name:'cumList',
|
|
@@ -40,7 +40,7 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
groupList:[],
|
|
groupList:[],
|
|
|
status:0,
|
|
status:0,
|
|
|
- selectOrderId:0,
|
|
|
|
|
|
|
+ selCustomId:0,
|
|
|
sn:'',
|
|
sn:'',
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -70,13 +70,25 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
getCustomData(){
|
|
getCustomData(){
|
|
|
- let params = {page: this.list.page,pageSize:30,status:this.status,sn:this.sn,isCashier:1}
|
|
|
|
|
- return getList(params).then(res=>{
|
|
|
|
|
|
|
+ let params = {page: this.list.page,pageSize:30}
|
|
|
|
|
+ return getCustomList(params).then(res=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
this.completes(res)
|
|
this.completes(res)
|
|
|
|
|
+
|
|
|
|
|
+ if(this.list.data && this.list.data[0]){
|
|
|
|
|
+ this.getCustomInfo(this.list.data[0])
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ getCustomInfo(item,click=0){
|
|
|
|
|
+ if(click == 1){
|
|
|
|
|
+ this.$util.hitVoice()
|
|
|
|
|
+ }
|
|
|
|
|
+ this.selCustomId = item.id
|
|
|
|
|
+ this.$emit('getCustomInfo',item)
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|