Forráskód Böngészése

修改平台活动

YY 2 éve
szülő
commit
cb5de55e0d

+ 7 - 3
src/views/platActivi/act/goods.vue

@@ -77,7 +77,8 @@ export default {
     ...dictData({ dictQuery: 'query' }),
     ...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
     // 查询
-    async search({ skip = 0,limit = this.$limit, ...info } = {}) {
+    async search({ skip = 0, limit = this.$limit, ...info } = {}) {
+      info.platformAct = this.id;
       const condition = _.cloneDeep(this.searchForm);
       let res = await this.query({ skip, limit, ...condition, ...info });
       if (this.$checkRes(res)) {
@@ -87,7 +88,7 @@ export default {
     },
     // 新增
     toAdd() {
-      this.$router.push({ path: '/platActivi/act/goodsDetail' });
+      this.$router.push({ path: '/platActivi/act/goodsDetail', query: { id: this.id } });
     },
     // 删除
     async toDel({ data }) {
@@ -122,6 +123,9 @@ export default {
   },
   computed: {
     ...mapState(['user']),
+    id() {
+      return this.$route.query.id;
+    },
   },
   metaInfo() {
     return { title: this.$route.meta.title };
@@ -130,7 +134,7 @@ export default {
     test: {
       deep: true,
       immediate: true,
-      handler(val) { },
+      handler(val) {},
     },
   },
 };

+ 5 - 1
src/views/selfShop/sales/detail.vue

@@ -280,6 +280,7 @@ export default {
         this.loading = false;
       }
     },
+    // 审核
     async exam(status, form) {
       let info = this.info;
       info.status = status;
@@ -309,12 +310,14 @@ export default {
         }
       });
     },
+    // 远程查询快递公司
     async querySearch(value) {
       let res = await this.dictQuery({ code: 'transport_company', label: value });
       if (this.$checkRes(res)) {
         this.$set(this, 'shop_transport_typeList', res.data);
       }
     },
+    // 买家快递填写保存
     async customerSubmit(val) {
       let info = this.info;
       let res;
@@ -334,6 +337,7 @@ export default {
         this.search();
       }
     },
+    // 保存
     async onSubmit(val) {
       let info = this.info;
       let res;
@@ -367,7 +371,7 @@ export default {
       window.history.go('-1');
     },
   },
-  
+
   computed: {
     ...mapState(['user']),
     id() {