diff --git a/src/views/statistics/wpr_statistics.vue b/src/views/statistics/wpr_statistics.vue index 2eb6b32c..880ab6d6 100644 --- a/src/views/statistics/wpr_statistics.vue +++ b/src/views/statistics/wpr_statistics.vue @@ -30,30 +30,39 @@ - - - + + + {{wprItem.material_name}} - + {{wprItem.number}} - + {{wprItem.belong_dept_name}} - - {{wprItem.mgroup_name}} - - + {{wprItem.batch}} - + {{wprItem.material_ofrom_name}} - + {{wprItem.batch_ofrom}} - + + + + {{wprItem.mgroup_name}} + + + [{{mlogItem.belong_dept_name}}/{{mlogItem.mgroup_name}}] + {{mlogItem.submit_user_name}} + {{mlogItem.update_time}}提交 + + + [{{handoverItem.send_mgroup_name}}]{{handoverItem.send_user_name}}交送,[{{handoverItem.recive_mgroup_name}}]{{handoverItem.recive_user_name}}{{ handoverItem.submit_time }}接收 + @@ -93,7 +102,7 @@ prop="handle_user_name" width="80" > - + @@ -186,9 +195,9 @@ width="80" > @@ -269,6 +278,8 @@ export default { apiObj_mlog:null, apiObj_handover:null, apiObj_mio:null, + mlogItem:null, + handoverItem:null, }; }, mounted() { @@ -295,8 +306,18 @@ export default { that.apiObj_handover = that.$API.wpm.handover.list; that.apiObj_mio = that.$API.inm.mio.list; that.$refs.tableMlog.queryData(that.params_mlog); - that.$refs.tableHandover.queryData(that.params_handover); - that.$refs.tableMio.queryData(that.params_mio); + // that.$refs.tableHandover.queryData(that.params_handover); + // that.$refs.tableMio.queryData(that.params_mio); + setTimeout(()=>{ + this.$API.wpm.mlog.list.req({cnumber: row.number,page:1,page_size:1}).then(mlogres=>{ + console.log('mlogres',mlogres); + that.mlogItem = mlogres.results[0]; + }) + this.$API.wpm.handover.list.req({b_handover__w_handoverb__number : row.number,page:1,page_size:1}).then(handoverres=>{ + console.log('handoverres',handoverres); + that.handoverItem = handoverres.results[0]; + }) + },1000) }) },