|
@@ -59,10 +59,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...dictData({ getDict: 'query' }),
|
|
|
- ...goods(['delete', 'fetch', 'update', 'create']),
|
|
|
+ ...goods(['query', 'delete', 'fetch', 'update', 'create']),
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
let condition = _.cloneDeep(this.searchForm);
|
|
|
- let res = await this.getGoods({ skip, limit, ...condition, ...info, shop: this.user.shop.id });
|
|
|
+ let res = await this.query({ skip, limit, ...condition, ...info, shop: this.user.shop.id });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, 'list', res.data);
|
|
|
this.$set(this, 'total', res.total);
|