|
@@ -65,7 +65,7 @@
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
mapState,
|
|
mapState,
|
|
- mapMutations
|
|
|
|
|
|
+ mapMutations,
|
|
} from 'vuex'
|
|
} from 'vuex'
|
|
import scrollBox from '@/components/scrollBox.vue'
|
|
import scrollBox from '@/components/scrollBox.vue'
|
|
import { shelfBondRecordWaitPayRecord, findStoreShelf } from '@/api/shelf.js'
|
|
import { shelfBondRecordWaitPayRecord, findStoreShelf } from '@/api/shelf.js'
|
|
@@ -94,17 +94,17 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
- if(this.hasLogin){
|
|
|
|
- this.getStoreShelf()
|
|
|
|
- // 获取数据字典
|
|
|
|
- this.getListLookUp();
|
|
|
|
- // 获取支付,收款方式
|
|
|
|
- this.getLookUpList('PAY_PROCUCT_TYPE', 'vuex_paymentTypeList');
|
|
|
|
- }
|
|
|
|
|
|
+ // 检测是否登录
|
|
|
|
+ this.$store.dispatch('checkLogin')
|
|
|
|
+ // 获取数据字典
|
|
|
|
+ this.getListLookUp();
|
|
|
|
+ // 获取支付,收款方式
|
|
|
|
+ this.getLookUpList('PAY_PROCUCT_TYPE', 'vuex_paymentTypeList');
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
if(this.hasLogin){
|
|
if(this.hasLogin){
|
|
this.$store.state.vuex_userInfo = uni.getStorageSync('userInfo')
|
|
this.$store.state.vuex_userInfo = uni.getStorageSync('userInfo')
|
|
|
|
+ this.getStoreShelf()
|
|
// 获取扫描记录
|
|
// 获取扫描记录
|
|
this.getScrollLog()
|
|
this.getScrollLog()
|
|
this.getVinLog()
|
|
this.getVinLog()
|