代码合并

This commit is contained in:
2023-02-21 19:05:20 +08:00
parent 7e530fb008
commit b644c8233e
6 changed files with 150 additions and 94 deletions

View File

@@ -11,22 +11,16 @@
label-width="90px"
label-suffix=":"
>
<el-form-item label="仓库">
<el-select
v-model="query.stor_id"
<el-form-item label="所属库区">
<el-cascader
placeholder="所属库区"
:options="sects"
:props="{ checkStrictly: true }"
clearable
filterable
size="mini"
class="filter-item"
style="width: 200px;"
@change="hand"
>
<el-option
v-for="item in storlist"
:label="item.stor_name"
:value="item.stor_id"
/>
</el-select>
@change="sectQueryChange"
/>
</el-form-item>
<el-form-item label="仓位搜索">
<el-input
@@ -142,8 +136,6 @@ import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import crudPoint from '@/views/wms/sch/point/point'
import crudStorattr from '@/views/wms/basedata/st/stor/storattr'
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
import { download } from '@/api/data'
import { downloadFile } from '@/utils'
@@ -167,7 +159,7 @@ export default {
},
data() {
return {
storlist: [],
sects: [],
permission: {
},
rules: {
@@ -175,8 +167,8 @@ export default {
}
},
created() {
crudUserStor.getUserStor().then(res => {
this.storlist = res
crudUserStor.getSect({ 'stor_id': '' }).then(res => {
this.sects = res.content
})
},
methods: {
@@ -191,6 +183,21 @@ export default {
hand(value) {
this.crud.toQuery()
},
sectQueryChange(val) {
if (val.length === 1) {
this.query.stor_id = val[0]
this.query.sect_id = ''
}
if (val.length === 0) {
this.query.sect_id = ''
this.query.stor_id = ''
}
if (val.length === 2) {
this.query.stor_id = val[0]
this.query.sect_id = val[1]
}
this.crud.toQuery()
},
downdtl() {
if (this.currentRow !== null) {
crud.downloadLoading = true