diff --git a/src/views/statistics/wpr_statistics.vue b/src/views/statistics/wpr_statistics.vue index 930ccd8a..7f73d87e 100644 --- a/src/views/statistics/wpr_statistics.vue +++ b/src/views/statistics/wpr_statistics.vue @@ -30,7 +30,204 @@ - + + + + + {{wprItem.material_name}} + + + {{wprItem.number}} + + + {{wprItem.belong_dept_name}} + + + {{wprItem.mgroup_name}} + + + {{wprItem.batch}} + + + {{wprItem.material_ofrom_name}} + + + {{wprItem.batch_ofrom}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -42,7 +239,7 @@ export default { return { wmState, apiObj:this.$API.wpm.wpr.list, - apiObj_mlog:null, + wprItem:{}, params:{ batch:'', }, @@ -50,9 +247,33 @@ export default { batch:'', material_start__type:30, }, + params_mio:{ + item_mio_w_mioitem_number:'', + }, + params_mlog:{ + b_mlog_wmlogb_number:'', + }, + params_handover:{ + b_handover_w_handoverb_number:'', + }, + stateDict: { + 10: "创建中", + 20: "已提交", + }, + typeDict: { + do_out: "生产领料", + sale_out: "销售发货", + pur_in: "采购入库", + do_in: "生产入库", + other_in: "其他入库", + other_out: "其他出库", + }, batch:'', activeName:'', limitedWatch:false, + apiObj_mlog:null, + apiObj_handover:null, + apiObj_mio:null, }; }, mounted() { @@ -63,8 +284,21 @@ export default { let that = this; that.nodes =[]; that.edges = []; + that.wprItem = {}; + that.wprItem.material_name = row.material_name; + that.wprItem.number = row.number; + that.activeName = 'mlog'; that.$API.wpm.wpr.item.req(row.id).then((res) => { - console.log('res',res) + if(res.wm_!==null){ + that.wprItem = res.wm_; + that.wprItem.number = row.number; + } + that.params_mio.item_mio_w_mioitem_number = row.number; + that.params_mlog.b_mlog_wmlogb_number = row.number; + that.params_handover.b_handover_w_handoverb_number = row.number; + that.apiObj_mlog = that.$API.wpm.mlog.list; + that.apiObj_handover = that.$API.wpm.handover.list; + that.apiObj_mio = that.$API.inm.mio.list; }) },