|
@@ -44,6 +44,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
|
+import formatDate from '../../utils/formatTime'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -123,13 +124,15 @@ export default {
|
|
|
methods: {
|
|
|
// 搜索
|
|
|
search() {
|
|
|
+ console.log(this.dateValue[0])
|
|
|
+ console.log(formatDate(this.dateValue[0],2))
|
|
|
this.orderParams.startDate =
|
|
|
this.dateValue.length > 1
|
|
|
- ? this.dateValue[0].toLocaleDateString().replace(/\//g, "-")
|
|
|
+ ? formatDate(this.dateValue[0],2)
|
|
|
: "";
|
|
|
this.orderParams.endDate =
|
|
|
this.dateValue.length > 1
|
|
|
- ? this.dateValue[1].toLocaleDateString().replace(/\//g, "-")
|
|
|
+ ? formatDate(this.dateValue[1],2)
|
|
|
: "";
|
|
|
this.$store.dispatch("getOrderList", this.orderParams);
|
|
|
},
|