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