fix:库存统计修正
This commit is contained in:
parent
84562cfb37
commit
76d3cc25cc
|
|
@ -321,15 +321,21 @@ export default {
|
|||
that.initChartOptions();
|
||||
},
|
||||
initChartOptions() {
|
||||
this.$API.bi.dataset.exec.req("materialCount", {query: {
|
||||
let that = this;
|
||||
let query = {
|
||||
"select_dept": "",
|
||||
"groupby_dept": "",
|
||||
"material_types": this.params.type,
|
||||
"select_material": "material.cate as cate",
|
||||
"groupby_material": "material.cate",
|
||||
"select_material_name": "",
|
||||
"groupby_material_name": ""
|
||||
}}).then((res) => {
|
||||
"select_material": "",
|
||||
"groupby_material": ""
|
||||
};
|
||||
if(that.params.type==40){
|
||||
query.select_material="material.cate as cate";
|
||||
query.groupby_material="material.cate";
|
||||
query.select_material_name = "";
|
||||
query.groupby_material_name = "";
|
||||
}
|
||||
this.$API.bi.dataset.exec.req("materialCount", {query:query }).then((res) => {
|
||||
if (res.echart_options) {
|
||||
this.echartsOptions = JSON.parse(res.echart_options);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue