给报表里面增加商品类别的查询条件

This commit is contained in:
jishenghua
2025-01-14 00:19:58 +08:00
parent edcada7d16
commit 9566071e91
10 changed files with 227 additions and 20 deletions

View File

@@ -25,6 +25,13 @@
<a-input placeholder="请输入条码名称助记码规格型号等信息" v-model="queryParam.materialParam"></a-input>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<a-form-item label="商品类别" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-tree-select style="width:100%" :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" allow-clear
:treeData="categoryTree" v-model="queryParam.categoryId" placeholder="请选择商品类别">
</a-tree-select>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery">查询</a-button>
@@ -103,6 +110,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import JEllipsis from '@/components/jeecg/JEllipsis'
import {getAction} from '@/api/manage'
import { queryMaterialCategoryTreeList } from '@/api/api'
import { getMpListShort } from "@/utils/util"
import Vue from 'vue'
export default {
@@ -131,6 +139,7 @@
pageSizeOptions: ['11', '21', '31', '101', '201']
},
depotList: [],
categoryTree:[],
tabKey: "1",
pageName: 'stockWarningReport',
// 默认索引
@@ -167,6 +176,7 @@
},
created () {
this.getDepotData()
this.loadCategoryTreeData()
this.initColumnsSetting()
},
methods: {
@@ -186,6 +196,20 @@
}
})
},
loadCategoryTreeData(){
let that = this;
let params = {};
params.id='';
queryMaterialCategoryTreeList(params).then((res)=>{
if(res){
that.categoryTree = [];
for (let i = 0; i < res.length; i++) {
let temp = res[i];
that.categoryTree.push(temp);
}
}
})
},
exportExcel() {
let list = []
let head = '仓库,条码,名称,规格,型号,颜色,品牌,制造商,扩展信息,单位,库存,最低安全库存,最高安全库存,建议入库量,建议出库量'