|
@@ -1,10 +1,10 @@
|
|
<template>
|
|
<template>
|
|
<view class="vinRecord flex flex_column">
|
|
<view class="vinRecord flex flex_column">
|
|
- <view class="des">仅可查看最近7天的VIN查询记录</view>
|
|
|
|
|
|
+ <!-- <view class="des">仅可查看最近7天的VIN查询记录</view> -->
|
|
<swiper class="list-box">
|
|
<swiper class="list-box">
|
|
<swiper-item class="swiper-item" style="height: 100%;width: 100%;overflow: hidden;">
|
|
<swiper-item class="swiper-item" style="height: 100%;width: 100%;overflow: hidden;">
|
|
<scroll-view scroll-y style="height: 100%;width: 100%;overflow: auto;" @scrolltolower="onreachBottom">
|
|
<scroll-view scroll-y style="height: 100%;width: 100%;overflow: auto;" @scrolltolower="onreachBottom">
|
|
- <view class="list-item flex align_center justify_between" v-for="item in list" :key="item.id">
|
|
|
|
|
|
+ <view class="list-item flex align_center justify_between" v-for="item in list" :key="item.id" @click="toChoosePart(item)">
|
|
<view>
|
|
<view>
|
|
<u-image shape="circle" :src="item.icon||'@/static/def_imgs.png'" width='90' height="90"></u-image>
|
|
<u-image shape="circle" :src="item.icon||'@/static/def_imgs.png'" width='90' height="90"></u-image>
|
|
</view>
|
|
</view>
|
|
@@ -44,6 +44,11 @@
|
|
onLoad() {
|
|
onLoad() {
|
|
this.pageInit()
|
|
this.pageInit()
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ hasShelf(){
|
|
|
|
+ return this.$store.state.vuex_storeShelf
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
pageInit(){
|
|
pageInit(){
|
|
this.total = 0
|
|
this.total = 0
|
|
@@ -59,8 +64,8 @@
|
|
// 状态条件
|
|
// 状态条件
|
|
const state = ['WAIT','FINISH','CLOSE']
|
|
const state = ['WAIT','FINISH','CLOSE']
|
|
let params = {
|
|
let params = {
|
|
- beginDate: moment().subtract('days', 6).format('YYYY-MM-DD 00:00:00'),
|
|
|
|
- endDate: moment(moment().valueOf()).format('YYYY-MM-DD 23:59:59'),
|
|
|
|
|
|
+ // beginDate: moment().subtract('days', 6).format('YYYY-MM-DD 00:00:00'),
|
|
|
|
+ // endDate: moment(moment().valueOf()).format('YYYY-MM-DD 23:59:59'),
|
|
pageNo: this.pageNo,
|
|
pageNo: this.pageNo,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
billState: state[this.swiperCurrent]
|
|
billState: state[this.swiperCurrent]
|
|
@@ -92,6 +97,19 @@
|
|
this.status = "nomore"
|
|
this.status = "nomore"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ toChoosePart(item){
|
|
|
|
+ if(this.hasShelf){
|
|
|
|
+ item.text = item.modelInfo
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/pages/digitalShelf/choosePart?vinNumber="+item.vinCode+"&carList="+encodeURIComponent(JSON.stringify(item))
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:'none',
|
|
|
|
+ title: '当前门店没有数字货架!'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|