lx
This commit is contained in:
@@ -246,6 +246,7 @@
|
||||
<script>
|
||||
import { initWarehouse, addWarehouse, alterWarehouse, deleteWarehouse, searchLocate, addLocate, alterLocate, deleteLocate, searchPeople } from '@/api/Inventory/InventoryManagement'
|
||||
import QRCode from 'qrcode'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -297,14 +298,26 @@ export default {
|
||||
}, {
|
||||
value: '0',
|
||||
label: '否'
|
||||
}]
|
||||
}],
|
||||
role: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'token'
|
||||
])
|
||||
},
|
||||
created() {
|
||||
this.getTable()
|
||||
this.searchPeopleData()
|
||||
this.getpeopleid()
|
||||
},
|
||||
methods: {
|
||||
// 获取人员编号
|
||||
getpeopleid() {
|
||||
this.role = this.token
|
||||
console.log(this.role, 321312)
|
||||
this.searchPeopleData()
|
||||
},
|
||||
// 查询仓库
|
||||
getTable() {
|
||||
this.tableData = []
|
||||
@@ -331,7 +344,7 @@ export default {
|
||||
},
|
||||
searchPeopleData() { // 查询人员
|
||||
this.Contactpeople = []
|
||||
searchPeople().then(response => {
|
||||
searchPeople(this.role).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.Contactpeople.push({
|
||||
label: response.data[i].姓名,
|
||||
|
||||
Reference in New Issue
Block a user