浏览代码

Merge branch 'master' of http://git.cc-lotus.info/pointToNetwork/web-admin

guhongwei 2 年之前
父节点
当前提交
9db5272f8f
共有 3 个文件被更改,包括 11 次插入0 次删除
  1. 6 0
      src/views/selfShop/goods/index.vue
  2. 4 0
      src/views/selfShop/goods/spec.vue
  3. 1 0
      src/views/selfShop/goodsRate/index.vue

+ 6 - 0
src/views/selfShop/goods/index.vue

@@ -125,6 +125,7 @@ export default {
     ...goodsTags(['tree']),
     ...goods(['copy', 'query', 'delete', 'fetch', 'update', 'create']),
     ...methodsUtil,
+    // 查询
     async search({ skip = 0, limit = this.limit, ...others } = {}) {
       let query = { skip, limit, ...others, shop: this.user.shop.id };
       if (Object.keys(this.searchInfo).length > 0) query = { ...query, ...this.searchInfo };
@@ -134,6 +135,7 @@ export default {
         this.$set(this, `total`, res.total);
       }
     },
+    // 添加自定义
     initAddData() {
       const obj = {
         status: '1',
@@ -166,11 +168,13 @@ export default {
       res = await this.actQuery();
       if (this.$checkRes(res)) this.$set(this, `act_tagsList`, res.data);
     },
+    // 商品状态
     getStatus(data) {
       const res = this.goodsStatusList.find((f) => f.value === data);
       if (res) return res.label;
       return '';
     },
+    // 活动标签
     getAct_tags(data) {
       const arr = [];
       for (const val of data) {
@@ -179,6 +183,7 @@ export default {
       }
       return arr.join(';');
     },
+    // 商品分类
     getTags(data) {
       let list = this.tagsList;
       const getChildren = (list) =>
@@ -245,6 +250,7 @@ export default {
         this.search();
       });
     },
+    // 库存管理
     toSpec({ data }) {
       this.$router.push({ path: `/selfShop/spec/${data._id}` });
     },

+ 4 - 0
src/views/selfShop/goods/spec.vue

@@ -123,6 +123,7 @@ export default {
     ...dictData({ getDict: 'query' }),
     ...mapActions(['query', 'fetch', 'update', 'delete', 'create']),
     ...methodUtil,
+    // 添加自定义
     initAddData() {
       const obj = { goods: this.goods, status: '0', can_group: '1', freight: 0 };
       this.$set(this, 'form', obj);
@@ -177,13 +178,16 @@ export default {
         this.$message.error('未找到指定数据');
       }
     },
+    // 返回
     toBack() {
       window.history.go('-1');
     },
+    // 返回列表
     toBackList() {
       this.view = 'list';
       this.form = {};
     },
+    // 查询其他信息
     async searchOthers() {
       // 状态
       let res = await this.getDict({ code: 'status' });

+ 1 - 0
src/views/selfShop/goodsRate/index.vue

@@ -60,6 +60,7 @@ export default {
   methods: {
     ...dictData({ getDict: 'query' }),
     ...goods(['query', 'delete', 'fetch', 'update', 'create']),
+    // 查询
     async search({ skip = 0, limit = 10, ...info } = {}) {
       let condition = _.cloneDeep(this.searchForm);
       let res = await this.query({ skip, limit, ...condition, ...info, shop: this.user.shop.id });