代码更新
This commit is contained in:
@@ -68,6 +68,7 @@ import rrOperation from '@crud/RR.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import crudStructattr from '@/views/wms/basedata/st/struct/structattr'
|
||||
import crudSectattr from '@/views/wms/basedata/st/sect/sectattr'
|
||||
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
|
||||
|
||||
export default {
|
||||
name: 'StructDialog',
|
||||
@@ -91,6 +92,10 @@ export default {
|
||||
},
|
||||
sectProp: {
|
||||
type: Object
|
||||
},
|
||||
storId: {
|
||||
type: String,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -132,15 +137,14 @@ export default {
|
||||
return true
|
||||
},
|
||||
open() {
|
||||
crudSectattr.getSect().then(res => {
|
||||
crudUserStor.getSect({ 'stor_id': this.storId }).then(res => {
|
||||
this.sects = res.content
|
||||
})
|
||||
debugger
|
||||
if (this.sect) {
|
||||
this.query.sect = this.sect
|
||||
if (this.sect.length === 1) {
|
||||
this.query.stor_id = this.sect[0]
|
||||
this.query.sect_id = ''
|
||||
this.query.stor_id = this.storId
|
||||
}
|
||||
if (this.sect.length === 0) {
|
||||
this.query.sect_id = ''
|
||||
@@ -154,6 +158,8 @@ export default {
|
||||
this.query.is_lock = '1'
|
||||
this.query.lock_type = this.lock
|
||||
this.query.is_used = '1'
|
||||
debugger
|
||||
this.query.stor_id = this.storId
|
||||
this.crud.toQuery()
|
||||
},
|
||||
handleSelectionChange(val, row) {
|
||||
|
||||
Reference in New Issue
Block a user