YY 2 anni fa
parent
commit
ca052b622d

+ 1 - 0
src/views/selfShop/order/parts/parts/detail-1.vue

@@ -74,6 +74,7 @@ export default {
       info.status = '1';
       let res = await this.query({ skip, limit, ...condition, ...info, shop: _.get(this.shop, '_id') });
       if (this.$checkRes(res)) {
+        console.log(res.data);
         this.$set(this, 'list', res.data);
         this.$set(this, 'total', res.total);
       }

+ 2 - 0
src/views/selfShop/order/parts/parts/detail-2.vue

@@ -101,6 +101,7 @@ export default {
         this.$set(this, 'list', list);
       }
     },
+    // 选中要导出的商品
     handleSelect(goodsList, address) {
       let fileList = this.fileList;
       if (fileList.length == 0) {
@@ -122,6 +123,7 @@ export default {
       let list = _.uniqBy(fileList, 'address._id');
       this.$set(this, 'fileList', list);
     },
+    // 导出清单
     toFile() {
       const workbook = new ExcelJS.Workbook();
       let list = this.fileList;

+ 1 - 1
src/views/system/config/index.vue

@@ -36,7 +36,7 @@ export default {
     async search() {
       const res = await this.fetch();
       if (this.$checkRes(res)) {
-        this.$set(this, `form`, res.data[0]);
+        this.$set(this, `form`, res.data);
         if (this.form.config) {
           this.form = {
             ...this.form,