|
@@ -69,6 +69,9 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import {
|
|
|
|
+ mapState
|
|
|
|
+ } from 'vuex';
|
|
import helper from '@/common/helper.js';
|
|
import helper from '@/common/helper.js';
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
@@ -85,6 +88,9 @@
|
|
cangId:''
|
|
cangId:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState(['hasLogin', 'userInfo'])
|
|
|
|
+ },
|
|
onShow() {
|
|
onShow() {
|
|
this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
|
|
this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
|
|
if (res.data.data == "INVALID") {
|
|
if (res.data.data == "INVALID") {
|
|
@@ -135,7 +141,8 @@
|
|
},
|
|
},
|
|
loadData() {
|
|
loadData() {
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseSelf', {
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouseSelf', {
|
|
- compId: ''
|
|
|
|
|
|
+ compId: '',
|
|
|
|
+ personCharge:this.userInfo.phone
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log("warehouseBaseInfo", res)
|
|
console.log("warehouseBaseInfo", res)
|
|
let _resData = res.data.data
|
|
let _resData = res.data.data
|