|
@@ -99,7 +99,7 @@
|
|
import { shelfBondRecordWaitPayRecord, findStoreShelf, shelfGetTotalWaitQty } from '@/api/shelf.js'
|
|
import { shelfBondRecordWaitPayRecord, findStoreShelf, shelfGetTotalWaitQty } from '@/api/shelf.js'
|
|
import { xprhStoreApplyRead } from '@/api/xprh.js'
|
|
import { xprhStoreApplyRead } from '@/api/xprh.js'
|
|
import { listLookUp, getLookUpDatas } from '@/api/data.js';
|
|
import { listLookUp, getLookUpDatas } from '@/api/data.js';
|
|
- import { scanVinLogQueryRoll, getScanVinLogList }from '@/api/car.js'
|
|
|
|
|
|
+ import { scanVinLogQueryRoll, getScanVinLogList, getScanGetMaxQty }from '@/api/car.js'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
scrollBox,
|
|
scrollBox,
|
|
@@ -114,7 +114,8 @@
|
|
vinList: [],
|
|
vinList: [],
|
|
orderTodo: null,
|
|
orderTodo: null,
|
|
avatarUrl:'',
|
|
avatarUrl:'',
|
|
- navHeight: '44'
|
|
|
|
|
|
+ navHeight: '44',
|
|
|
|
+ scanMaxNums: 10
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -177,15 +178,20 @@
|
|
pageInit(){
|
|
pageInit(){
|
|
if(this.hasLogin){
|
|
if(this.hasLogin){
|
|
this.avatarUrl = this.userInfo.avatarUrl
|
|
this.avatarUrl = this.userInfo.avatarUrl
|
|
|
|
+ // 获取扫描记录
|
|
|
|
+ this.getVinLog()
|
|
|
|
+
|
|
// 非游客
|
|
// 非游客
|
|
if(this.userInfo.sysUserFlag == '1'){
|
|
if(this.userInfo.sysUserFlag == '1'){
|
|
// 查询是否有数字货架
|
|
// 查询是否有数字货架
|
|
this.getStoreShelf()
|
|
this.getStoreShelf()
|
|
|
|
+ }else{
|
|
|
|
+ // 获取扫描次数
|
|
|
|
+ this.$store.dispatch("getScanNums")
|
|
|
|
+ // 获取最大扫描次数
|
|
|
|
+ this.getMaxQty()
|
|
}
|
|
}
|
|
- // 获取扫描记录
|
|
|
|
- this.getVinLog()
|
|
|
|
- // 获取扫描次数
|
|
|
|
- this.$store.dispatch("getScanNums")
|
|
|
|
|
|
+
|
|
// 查询门店认证信息
|
|
// 查询门店认证信息
|
|
this.findLastApply()
|
|
this.findLastApply()
|
|
}else{
|
|
}else{
|
|
@@ -209,6 +215,13 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 获取最大扫描数
|
|
|
|
+ getMaxQty(){
|
|
|
|
+ getScanGetMaxQty().then(res => {
|
|
|
|
+ this.scanMaxNums = res.data || 10
|
|
|
|
+ this.$store.state.vuex_scanMaxNums = this.scanMaxNums
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 获取最新申请门店
|
|
// 获取最新申请门店
|
|
findLastApply(){
|
|
findLastApply(){
|
|
const mobile = this.userInfo.mobile
|
|
const mobile = this.userInfo.mobile
|
|
@@ -294,7 +307,7 @@
|
|
openCamera(){
|
|
openCamera(){
|
|
if(this.hasLogin){
|
|
if(this.hasLogin){
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
- if(this.vuex_vinScanNums < 10){
|
|
|
|
|
|
+ if(this.vuex_vinScanNums < this.scanMaxNums){
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: "/pages/scan-frame/scan-frame"
|
|
url: "/pages/scan-frame/scan-frame"
|
|
})
|
|
})
|