diff --git a/src/views/home/widgets/index_bx.vue b/src/views/home/widgets/index_bx.vue index a5e7d66e..e9592dec 100644 --- a/src/views/home/widgets/index_bx.vue +++ b/src/views/home/widgets/index_bx.vue @@ -21,17 +21,17 @@
-
待接收的物料
+
设备列表
- - - - + + + +
@@ -41,17 +41,16 @@
-
待填日志的物料
+
车间物料
- - - - + + +
@@ -61,11 +60,11 @@
-
待交送的物料
+
半成品库存统计
@@ -83,7 +82,7 @@
-
生产任务列表
+
成品库存统计
{ - that.tableData = res; - res.forEach(item => { - let index = nameList.indexOf(item.name); - if(index<0){ - nameList.push(item.name); - countList.push(item.count); - } - }); - that.option.xAxis.data = nameList; - that.option.series.data = countList; + that.$API.em.equipment.list.req({ page: 0, type: 10 }).then((res) => { + that.tableDataEq = res; + }); + }, + //车间物料 + getMaterialInList(){ + let that = this; + that.$API.wpm.wmaterial.list.req({ page: 0, material__type: '20',count__gte:1 }).then((res) => { + that.tableDataIn = res; + }); + }, + //半成品库存统计 + getMaterialOutList(){ + let that = this; + that.$API.mtm.material.list.req({ page: 0, material__type: 20,count__gt:0 }).then((res) => { + that.tableDataOut = res; + }); + }, + //成品库车间库存 + getMaterialList() { + let that = this; + that.$API.mtm.material.list.req({ page: 0, material__type: 10,count__gt:0 }).then((res) => { + that.tableData = res; }); }, - //待接收 - getMaterialRecive(){}, - //待加工 - getMaterialMlog(){}, - //已加工 - getMaterialSend(){}, //任务列表 getMtaskLists(){}, },