diff --git a/src/views/inm/good.vue b/src/views/inm/good.vue
index 5d8fc86c..afecaaa6 100644
--- a/src/views/inm/good.vue
+++ b/src/views/inm/good.vue
@@ -19,6 +19,7 @@
:value="item.id"
>
+ 仓库总数:{{ totalCount }}
打签
-
@@ -89,11 +87,6 @@
车间库存
-
@@ -146,15 +139,18 @@
:mtype="wmtype"
:apiObj="apiObjPrint"
>
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -176,8 +172,10 @@ export default {
paramsWm: { count__gte: 1, material__type: 10 },
nodes:[],
edges:[],
+ tableData:[],
queryWm: {},
wmtype:0,
+ totalCount:0,
print_m:false,
limitedWatch:false,
materialsVisible:false,
@@ -240,9 +238,32 @@ export default {
},
mounted() {
this.getWarehouse();
- // this.getProcessOptions()
+ this.getProductCount();
},
methods: {
+ getProductCount(){
+ let that = this;
+ let query ={
+ select_dept: "",
+ groupby_dept: "",
+ material_types: "10",
+ select_material: "material.name as material_name",
+ groupby_material: "material.name",
+ select_material_name: "",
+ groupby_material_name: ""
+ };
+ that.$API.bi.dataset.exec.req("materialCount", {query:query }).then((res) => {
+ let data = that.tableData = res.data2.ds0;
+ let totalCount = 0;
+ data.forEach(item => {
+ totalCount += item.count;
+ });
+ that.totalCount = totalCount;
+ if (res.echart_options) {
+ that.echartsOptions = JSON.parse(res.echart_options);
+ }
+ })
+ },
getWarehouse() {
this.$API.inm.warehouse.list.req({ page: 0 }).then((res) => {
this.warehouseOptions = res;
@@ -262,16 +283,8 @@ export default {
resetQuery() {
this.query = {};
},
- handleWatch(row) {
- let that = this;
- that.$API.wpm.batchlog.dag.req({batch:row.batch}).then((res) => {
- that.nodes = res.nodes;
- that.edges = res.edges;
- that.limitedWatch = true;
- that.$nextTick(() => {
- that.$refs.degraDialogs.open();
- });
- })
+ handleWatch() {
+ this.limitedWatch = true;
},
//打签
printMaterial(row,type){