|
@@ -6,18 +6,18 @@
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="仓库" prop="warehouse">
|
|
|
- <el-select v-model="screenForm.warehouse" placeholder="请选择仓库" @change="changeWarehouse" clearable>
|
|
|
+ <el-select v-model="screenForm.warehouse" placeholder="请选择仓库" @change="changeWarehouse" clearable multiple >
|
|
|
<el-option :label="item.name" :value="item.id" v-for="(item, index) in warehouseList" :key="index"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <!-- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="仓位" prop="position">
|
|
|
<el-select v-model="screenForm.position" placeholder="请选择仓位" clearable>
|
|
|
<el-option :label="item.name" :value="item.id" v-for="(item, index) in positionList" :key="index"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<!-- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="产品大类" prop="type">
|
|
|
<el-select v-model="screenForm.type" placeholder="请选择产品大类" @change="changeType" clearable>
|
|
@@ -53,7 +53,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :xs="24" :sm="24" :lg="24" class="tr">
|
|
|
+ <el-col :xs="24" :sm="24" :lg="12" class="tr">
|
|
|
<el-form-item label="">
|
|
|
<el-button @click="resetScreenForm">清空</el-button>
|
|
|
<el-button type="primary" @click="submitScreenForm">搜索</el-button>
|
|
@@ -137,7 +137,7 @@ export default {
|
|
|
dataList: null, // 列表数据
|
|
|
listLoading: false, // 列表加载loading
|
|
|
screenForm: { // 筛选表单数据
|
|
|
- warehouse: '',
|
|
|
+ warehouse: [],
|
|
|
position: '',
|
|
|
goodsName: '',
|
|
|
goodsNum: '',
|
|
@@ -215,23 +215,32 @@ export default {
|
|
|
|
|
|
// 更改仓库
|
|
|
changeWarehouse() {
|
|
|
- this.screenForm.position = '';
|
|
|
- if(this.screenForm.warehouse) {
|
|
|
- let obj = this.warehouseList.find(o => o.id == this.screenForm.warehouse);
|
|
|
- this.positionList = obj.kingDeeStocks;
|
|
|
- }else {
|
|
|
- this.positionList = [];
|
|
|
- }
|
|
|
+ // this.screenForm.position = '';
|
|
|
+ // if(this.screenForm.warehouse) {
|
|
|
+ // let obj = this.warehouseList.find(o => o.id == this.screenForm.warehouse);
|
|
|
+ // this.positionList = obj.kingDeeStocks;
|
|
|
+ // }else {
|
|
|
+ // this.positionList = [];
|
|
|
+ // }
|
|
|
},
|
|
|
|
|
|
// 查询列表
|
|
|
getList() {
|
|
|
this.listLoading = true;
|
|
|
-
|
|
|
+ const correspondNameS = []
|
|
|
+ if( this.screenForm.warehouse && this.screenForm.warehouse.length)
|
|
|
+ this.screenForm.warehouse.forEach(e=>{
|
|
|
+ this.warehouseList.filter(k=>{
|
|
|
+ if(e === k.id){
|
|
|
+ correspondNameS.push(k.name)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
let params = {
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
- correspondId: this.screenForm.warehouse,
|
|
|
+ correspondId: this.screenForm.warehouse.join(),
|
|
|
+ correspondNameS:correspondNameS.join('/'),
|
|
|
stockId: this.screenForm.position,
|
|
|
materialName: this.screenForm.goodsName,
|
|
|
materialNumber: this.screenForm.goodsCode,
|