wolyshaw vor 2 Jahren
Ursprung
Commit
f395a3a817

+ 29 - 14
src/views/activityScheduling/2021double11List.vue

@@ -52,6 +52,11 @@
             <el-button type="primary" @click="onExport">导出</el-button>
           </auth>
         </el-form-item>
+        <el-form-item>
+          <auth auths="export/doubleEleven2021OrderDetail">
+            <el-button type="primary" @click="onExport2">学员明细导出</el-button>
+          </auth>
+        </el-form-item>
       </save-form>
       <!-- <div style="font-size: 14px; color: #f85043; padding-bottom: 10px"> -->
       <!-- 应收总金额:{{ totalExpectAmount }}元 &nbsp;&nbsp;&nbsp;&nbsp;
@@ -201,19 +206,6 @@
             </div>
           </template>
         </el-table-column>
-        <el-table-column
-          align="center"
-          prop="giveMemberNum"
-          label="赠送会员人数"
-          width="150px"
-          v-if="year === '2021'"
-        >
-          <template slot-scope="scope">
-            <div>
-              {{ scope.row.giveMemberNum }}人
-            </div>
-          </template>
-        </el-table-column>
 
         <el-table-column label="详情" align="left">
           <template slot-scope="scope">
@@ -376,13 +368,36 @@ export default {
         this,
         {
           url: this.year === "2021" ? "/api-web/export/organDoubleEleven2021Statis" : "/api-web/export/organDoubleEleven2022Statis",
-          fileName: this.year === "2021" ? "2021双十一活动.xls" : "2022双十一活动.xls",
+          fileName: this.year === "2021" ? "双十一活动.xls" : "双十一活动.xls",
           method: "post",
           params: qs.stringify(cleanDeep(obj)),
         },
         "您确定导出双十一活动列表?"
       );
     },
+    async onExport2() {
+      //   let { getTime, ...rest } = this.searchForm;
+      // let params = {
+      //   ...rest,
+      //   page: this.rules.page,
+      //   rows: this.rules.limit,
+      //   ...getTimes(getTime, ["startTime", "endTime"]),
+      // };
+      let obj = {
+        organIds: this.searchForm.organId,
+        ...this.searchList,
+      };
+      await Export(
+        this,
+        {
+          url: "/api-web/export/doubleEleven2021OrderDetail",
+          fileName: this.$route.query.year === "2021" ? "学员购买详情.xls" : "学员购买详情.xls",
+          method: "post",
+          params: qs.stringify(cleanDeep(obj)),
+        },
+        "您确定导出双十一活动详情列表?"
+      );
+    },
     onCancel() {
       this.$store.dispatch("delVisitedViews", this.$route);
       this.$router.push("/activeMarketing");

+ 1 - 1
src/views/activityScheduling/2021doubleDetail.vue

@@ -90,7 +90,7 @@
           <el-button native-type="submit" type="primary">搜索</el-button>
           <el-button native-type="reset" type="danger">重置</el-button>
           <auth auths="export/doubleEleven2021OrderDetail"></auth>
-          <el-button type="primary" @click="onExport">导出</el-button>
+          <!-- <el-button type="primary" @click="onExport">导出</el-button> -->
         </el-form-item>
       </save-form>
       <div class="tableWrap">