@@ -1630,6 +1630,38 @@ export default {
}
});
},
+ // 获取时间段
+ getTimes() {
+ let str = ''
+ let time = new Date().getTime()
+ if (this.TimetoAhoose == 0) {
+ str = `${new Date(time).getFullYear()}-${new Date(time).getMonth()+1}-${new Date(time).getDate()}`
+ }
+ if (this.TimetoAhoose == 1) {
+ let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7;
+ let startDate = `${new Date(starTime).getFullYear()}-${
+ new Date(starTime).getMonth() + 1
+ }-${new Date(starTime).getDate()}`;
+ let endTime = new Date().getTime() - 24 * 60 * 60 * 1000;
+ let endDate = `${new Date(endTime).getFullYear()}-${
+ new Date(endTime).getMonth() + 1
+ }-${new Date(endTime).getDate()}`;
+ str = `${startDate},${endDate}`
+ }
+ if(this.TimetoAhoose == 2) {
+ let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 30;
+ let startDate = `${new Date(starTime).getFullYear()}-${
+ new Date(starTime).getMonth() + 1
+ }-${new Date(starTime).getDate()}`;
+ let endTime = new Date().getTime() - 24 * 60 * 60 * 1000;
+ let endDate = `${new Date(endTime).getFullYear()}-${
+ new Date(endTime).getMonth() + 1
+ }-${new Date(endTime).getDate()}`;
+ str = `${startDate},${endDate}`
+ }
+ return str
+ },
+
jumpto(ind) {
let num = 24 * 3600 * 1000 * 29;
let dang = this.getCurrentTime();
diff --git a/src/views/ReceivingRecords/index.vue b/src/views/ReceivingRecords/index.vue
index 6785316..4faa4ed 100644
--- a/src/views/ReceivingRecords/index.vue
+++ b/src/views/ReceivingRecords/index.vue
@@ -372,11 +372,11 @@
-
+