|
@@ -32,7 +32,6 @@ import FileSaver from 'file-saver';
|
|
|
const ExcelJS = require('exceljs');
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions } = createNamespacedHelpers('getBill');
|
|
|
-const { mapActions: selfShop } = createNamespacedHelpers('selfShop');
|
|
|
const { mapActions: outBill } = createNamespacedHelpers('outBill');
|
|
|
export default {
|
|
|
name: 'card-1',
|
|
@@ -64,8 +63,6 @@ export default {
|
|
|
],
|
|
|
// 多选值
|
|
|
selected: [],
|
|
|
- // 自营店铺信息
|
|
|
- shop: {},
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
@@ -73,7 +70,6 @@ export default {
|
|
|
await this.searchOther();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...selfShop(['getInfo']),
|
|
|
...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
|
|
|
...outBill({ outQuery: 'query', outCreate: 'create' }),
|
|
|
// 查询
|
|
@@ -83,7 +79,7 @@ export default {
|
|
|
condition[`start`] = _.head(condition.buy_time);
|
|
|
condition[`end`] = _.last(condition.buy_time);
|
|
|
delete condition.buy_time;
|
|
|
- let res = await this.query({ skip, limit, ...condition, ...info, shop: _.get(this.shop, '_id') });
|
|
|
+ let res = await this.query({ skip, limit, ...condition, ...info, shop: this.user.shop.id });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, 'info', res.data);
|
|
|
this.$set(this, 'afterSaleList', res.data.afterSaleList);
|
|
@@ -153,11 +149,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 查询其他信息
|
|
|
- async searchOther() {
|
|
|
- let res;
|
|
|
- res = await this.getInfo();
|
|
|
- if (this.$checkRes(res)) this.$set(this, `shop`, res.data);
|
|
|
- },
|
|
|
+ async searchOther() {},
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|