|
@@ -127,6 +127,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+const moment = require('moment');
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions: order } = createNamespacedHelpers('order');
|
|
const { mapActions: order } = createNamespacedHelpers('order');
|
|
const { mapActions: orderDetail } = createNamespacedHelpers('orderDetail');
|
|
const { mapActions: orderDetail } = createNamespacedHelpers('orderDetail');
|
|
@@ -157,7 +158,9 @@ export default {
|
|
async handleChange(data) {
|
|
async handleChange(data) {
|
|
if (data) {
|
|
if (data) {
|
|
let res;
|
|
let res;
|
|
- let info = { customer: this.customer._id, limit: 5, shop: this.shop._id };
|
|
|
|
|
|
+ let info = { customer: this.customer._id, shop: this.shop._id };
|
|
|
|
+ info[`buy_time@end`] = moment().format('YYYY-MM-DD');
|
|
|
|
+ info[`buy_time@start`] = moment().subtract(3, 'months').format('YYYY-MM-DD');
|
|
if (data == '1') {
|
|
if (data == '1') {
|
|
info.status = '0';
|
|
info.status = '0';
|
|
res = await this.orderQuery(info);
|
|
res = await this.orderQuery(info);
|