From 84a8b8d1df48c412a241ed06bca2f3a6ad3ccbdb Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 4 Dec 2024 10:36:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BB=9F=E8=AE=A1=E5=88=86=E6=9E=90?= =?UTF-8?q?=E6=A3=92=E7=AE=A1=E9=A1=B5=E9=9D=A2=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/statistics_bang.vue | 81 ++++++-------------- src/views/statistics/statistics_guan.vue | 97 ++++++++---------------- 2 files changed, 52 insertions(+), 126 deletions(-) diff --git a/src/views/statistics/statistics_bang.vue b/src/views/statistics/statistics_bang.vue index 23402cb1..1d0a52a2 100644 --- a/src/views/statistics/statistics_bang.vue +++ b/src/views/statistics/statistics_bang.vue @@ -2,24 +2,27 @@
- - - - + + + - - + @@ -512,41 +514,19 @@ export default { data() { return { params: { + ordering:'-last_time', batch__contains:'ZJ2', }, query:{ - last_time:'' + last_time__gte:'', + last_time__lte:'', }, apiObj: this.$API.wpm.batchst, options:[], tableData:[], }; }, - mounted() { - this.getOptions(); - }, methods: { - //获取物料批次 - getOptions(){ - let that = this; - let obj = {}; - obj.page = 0; - obj.type__in = "10,20"; - obj.is_hidden = false; - that.options = []; - that.$API.mtm.material.list.req(obj).then((res) => { - if(res.length>0){ - that.options = res; - } - }); - }, - - searchTypeChange(){ - this.query.batch = ''; - }, - batchChange(val){ - - }, handleQuery(){ this.$refs.table.queryData(this.query); }, @@ -555,21 +535,4 @@ export default { diff --git a/src/views/statistics/statistics_guan.vue b/src/views/statistics/statistics_guan.vue index f9bb0c0b..22716d86 100644 --- a/src/views/statistics/statistics_guan.vue +++ b/src/views/statistics/statistics_guan.vue @@ -2,24 +2,27 @@
- - - - + + + + + - - - - - - + + + @@ -527,40 +527,20 @@ export default { data() { return { params: { - batch__contains:'ZJ2', + ordering:'-last_time', + batch__contains:'ZB2', }, query:{ - last_time:'' + last_time__gte:'', + last_time__lte:'', + }, apiObj: this.$API.wpm.batchst, options:[], tableData:[], }; }, - mounted() { - this.getOptions(); - }, methods: { - //获取物料批次 - getOptions(){ - let that = this; - let obj = {}; - obj.page = 0; - obj.type__in = "10,20"; - obj.is_hidden = true; - that.options = []; - that.$API.mtm.material.list.req(obj).then((res) => { - if(res.length>0){ - that.options = res; - } - }); - }, - searchTypeChange(){ - this.query.batch = ''; - }, - batchChange(val){ - - }, handleQuery(){ this.$refs.table.queryData(this.query); }, @@ -569,21 +549,4 @@ export default {