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 {