diff --git a/src/views/statistics/batch_statistics.vue b/src/views/statistics/batch_statistics.vue index dcf12279..42eed33b 100644 --- a/src/views/statistics/batch_statistics.vue +++ b/src/views/statistics/batch_statistics.vue @@ -56,9 +56,9 @@ - + - + - + - + - + @@ -289,6 +289,37 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -307,22 +338,36 @@ export default { apiObj_handover:null, apiObj_winm:null, apiObj_binm:null, + apiObj_mio:null, nodes: [], edges: [], + stateDict: { + 10: "创建中", + 20: "已提交", + }, + typeDict: { + do_out: "生产领料", + sale_out: "销售发货", + pur_in: "采购入库", + do_in: "生产入库", + other_in: "其他入库", + other_out: "其他出库", + }, //mlog\handover params:{ cbatch:'', + // query:" { id, name, code, last_data, gather_state }", }, params2:{ batch:'', }, + params_mio:{ + item_mio__batch:'', + }, query:{ batch:'', material_start__type:30, }, - params_binm:{ - search:'' - }, batch:'', activeName:'', limitedWatch:false, @@ -357,40 +402,25 @@ export default { let that = this; that.params.cbatch = data; that.params2.batch = data; - that.params_binm.search = data; + that.params_mio.item_mio__batch=data; that.activeName = 'mlog'; if( that.apiObj_mlog !==null){ - that.$refs.tableMlog.queryData(that.params); - that.$refs.tableHandover.queryData(that.params); - that.$refs.tableWinm.queryData(that.params2); - that.$refs.tableBinm.queryData(that.params_binm); + that.activeName='mlog'; + that.$nextTick(() => { + that.$refs.tableMlog.queryData(that.params); + }) }else{ that.apiObj_mlog = that.$API.wpm.mlog.list; that.apiObj_handover = that.$API.wpm.handover.list; that.apiObj_winm = that.$API.wpm.wmaterial.list; that.apiObj_binm = that.$API.inm.warehouse.batch; + that.apiObj_mio = that.$API.inm.mio.list; } }, search(){ this.$refs.tablets.queryData(this.query) }, - handleClick(){ - // switch (this.activeName) { - // case 'mlog': - // this.$refs.tableMlog.refresh(); - // break; - // case 'handover': - // this.$refs.tableHandover.refresh(); - // break; - // case 'winm': - // this.$refs.tableWinm.refresh(); - // break; - // case 'binm': - // this.$refs.tableBinm.refresh(); - // break; - // } - - } + handleClick(){ } }, };