Commit 8ca3e40e by hanzhen

1

parent 3553bab9
......@@ -254,6 +254,7 @@ export default {
},
async getAllData () {
// 分页查询指定管理单位盘库
this.allSearchData.condition.storeCode = JSON.parse(sessionStorage.getItem('storeList'))
const { data: res } = await this.$axios.post('/account/getGoodsPage', this.allSearchData)
if (res.code !== 99200) return this.$message(res.message)
this.allTotal = res.data.totalRows - 0
......
......@@ -230,6 +230,8 @@
},
async getAllData () {
// 分页查询指定管理单位盘库
this.allSearchData.condition.storeCode = JSON.parse(sessionStorage.getItem('storeList'))
const { data: res } = await this.$axios.post('/account/getGoodsPage', this.allSearchData)
if (res.code !== 99200) return this.$message(res.message)
this.allTotal = res.data.totalRows - 0
......
......@@ -177,9 +177,9 @@
>
<div class="drawer_box">
<div class="drawer_body">
<a-input placeholder="搜索库房" v-model="seleName" @pressEnter="seleRome()">
<!-- <a-input placeholder="搜索库房" v-model="seleName" @pressEnter="seleRome()">
<a-icon slot="prefix" type="search" />
</a-input>
</a-input>-->
<!-- 库房选择 -->
<div class="checkbox">
......@@ -188,8 +188,8 @@
</a-checkbox>
<!-- 库房列表 -->
<a-checkbox-group v-model="checkRoomKey" @change="allChange" class="checkbox_box">
<a-checkbox class="checkbox_child" v-for="(item, index) in roomData" :key="index" :value="item.code">
{{ item.name }}
<a-checkbox class="checkbox_child" v-for="(item, index) in roomData" :key="index" :value="item.storeCode">
{{ item.storeName }}
</a-checkbox>
</a-checkbox-group>
</div>
......@@ -390,6 +390,7 @@ export default {
this.draFlag = false
},
async showDr (row) {
this.getRoom()
this.activeUser = row
this.draFlag = true
const { data: res } = await this.$axios.get(window._CONFIG['publicURL'] + '/store/getStoreByUser', {
......@@ -399,7 +400,7 @@ export default {
})
if (res.code !== 99200) return this.$message.error(res.message)
this.checkRoomKey = res.data
console.log(this.activeUser)
console.log('打印:',res.data)
},
// 确认按钮
async putUser () {
......@@ -416,7 +417,7 @@ export default {
allClick (e) {
var keys = []
this.roomData.forEach(item => {
keys.push(item.code)
keys.push(item.storeCode)
})
this.checkRoomKey = e.target.checked ? keys : []
this.checkAll = e.target.checked
......@@ -437,7 +438,7 @@ export default {
this.getRoom()
},
async getRoom () {
const { data: res } = await this.$axios.post(window._CONFIG['publicURL'] + '/store/list', { isSuperAdmin: true })
const { data: res } = await this.$axios.get(window._CONFIG['domianURL'] + '/store/list')
if (res.code !== 99200) return this.$message.error(res.message)
this.roomData = res.data
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论