@@ -100,9 +99,11 @@ export default {
start: undefined,
end: undefined,
listQuery: {
+ pageNo: 1,
+ pageSize: 999,
// size: 10,
// current: 1,
- factory: null,
+ factory: undefined,
// total: 0,
type: 2,
startDate: undefined,
@@ -236,7 +237,7 @@ export default {
mounted() {
// this.getOverView()
const currentMonth = new Date()
- this.listQuery.reportTime = [moment(currentMonth).format('yyyy-MM-DD HH:mm:ss'), moment(currentMonth).format('yyyy-MM-DD HH:mm:ss')]
+ this.listQuery.reportTime = [moment(currentMonth).format('yyyy-MM-DD'), moment(currentMonth).format('yyyy-MM-DD')]
this.changeTime()
this.getDataList()
},
@@ -294,8 +295,8 @@ export default {
},
onValueChange(picker, k) { // 选中近k周后触发的操作
if (this.start && this.end) {
- this.date1 = moment(this.start.getTime() - 24 * 60 * 60 * 1000).format('YYYY-MM-DD HH:mm:ss')
- this.date2 = moment(this.end.getTime() + 5 * 24 * 60 * 60 * 1000).format('YYYY-MM-DD HH:mm:ss')
+ this.date1 = moment(this.start.getTime() - 24 * 60 * 60 * 1000).format('YYYY-MM-DD')
+ this.date2 = moment(this.end.getTime() + 5 * 24 * 60 * 60 * 1000).format('YYYY-MM-DD')
const numDays = (new Date(this.date2).getTime() - new Date(this.date1).getTime()) / (24 * 3600 * 1000);
if (numDays > 168) {
console.log(numDays)
diff --git a/src/views/report/produceConversion.vue b/src/views/report/produceConversion.vue
index f8e9637..1e76b70 100644
--- a/src/views/report/produceConversion.vue
+++ b/src/views/report/produceConversion.vue
@@ -7,17 +7,17 @@
-
+
-
+
+ start-placeholder="开始日期" value-format="yyyy-MM-dd" @change="changeDayTime" end-placeholder="结束日期">
-
+
@@ -29,13 +29,12 @@
{{ date1 }} 至 {{ date2 }},共 {{ weekNum }} 周
-->
-
-
+
+
-
+
@@ -79,65 +78,28 @@