yumeng 1 tahun lalu
induk
melakukan
7189089870

+ 42 - 74
src/views/bytedance/bytedanceChannelList.vue

@@ -48,7 +48,7 @@
           </el-option>
         </el-select>
       </el-form-item>
-      <el-form-item label="选择日期">
+      <el-form-item label="出单日期">
         <el-date-picker
           v-model="uploadDate"
           style="width: 240px"
@@ -58,6 +58,21 @@
           range-separator="-"
           start-placeholder="开始日期"
           end-placeholder="结束日期"
+          @change="cleanBindDate()"
+        ></el-date-picker>
+      </el-form-item>
+
+      <el-form-item label="绑定日期">
+        <el-date-picker
+          v-model="bindDate"
+          style="width: 240px"
+          value-format="yyyy-MM-dd"
+          format="yyyy-MM-dd"
+          type="daterange"
+          range-separator="-"
+          start-placeholder="开始日期"
+          end-placeholder="结束日期"
+          @change="cleanUploadDate()"
         ></el-date-picker>
       </el-form-item>
 
@@ -121,18 +136,7 @@
         prop="sampleCount"
         width="200px"
       />
-      <el-table-column label="(总)领样率" align="center" prop="sampleRate" width="100px">
-        <template slot-scope="scope">
-          {{ scope.row.sampleRate ? scope.row.sampleRate + "%" : "-" }}
-        </template>
-      </el-table-column>
-      <el-table-column
-        label="(总)未领样数"
-        align="center"
-        prop="notSampleCount"
-        width="100px"
-      >
-      </el-table-column>
+
       <el-table-column label="发样数" align="center" prop="sendTotalCount" width="100px">
       </el-table-column>
       <el-table-column
@@ -152,13 +156,7 @@
 
       <el-table-column label="订单数" align="center" prop="orderNum" width="100px">
       </el-table-column>
-      <el-table-column
-        label="(凭)订单数"
-        align="center"
-        prop="voucherOrderNum"
-        width="100px"
-      >
-      </el-table-column>
+
       <el-table-column
         label="有效订单数"
         align="center"
@@ -166,13 +164,7 @@
         width="100px"
       >
       </el-table-column>
-      <el-table-column
-        label="(凭)有效订单数"
-        align="center"
-        prop="voucherValidOrderNum"
-        width="150px"
-      >
-      </el-table-column>
+
       <el-table-column
         label="有效订单率"
         align="center"
@@ -180,28 +172,15 @@
         width="100px"
       >
         <template slot-scope="scope">
-          {{ scope.row.validOrderRate ? scope.row.validOrderRate + "%" : "-" }}
+          {{ scope.row.validOrderRate }}
         </template>
       </el-table-column>
       <el-table-column label="实付金额" align="center" prop="orderAmount" width="150px">
         <template slot-scope="scope">
-          {{ scope.row.orderAmount ? allMoney(scope.row.orderAmount / 100) : "-" }}
-        </template>
-      </el-table-column>
-      <el-table-column
-        label="(凭)实付金额"
-        align="center"
-        prop="voucherOrderAmount"
-        width="150px"
-      >
-        <template slot-scope="scope">
-          {{
-          scope.row.voucherOrderAmount
-          ? allMoney(scope.row.voucherOrderAmount / 100)
-          : "-"
-          }}
+          {{ scope.row.orderAmount ? allMoney(scope.row.orderAmount ) : "-" }}
         </template>
       </el-table-column>
+
       <el-table-column
         label="预估服务费"
         align="center"
@@ -211,25 +190,12 @@
         <template slot-scope="scope">
           {{
           scope.row.regimentalPromotionAmount
-          ? allMoney(scope.row.regimentalPromotionAmount / 100)
-          : "-"
-          }}
-        </template>
-      </el-table-column>
-      <el-table-column
-        label="(凭)预估服务费"
-        align="center"
-        prop="voucherRegimentalPromotionAmount"
-        width="150px"
-      >
-        <template slot-scope="scope">
-          {{
-          scope.row.voucherRegimentalPromotionAmount
-          ? allMoney(scope.row.voucherRegimentalPromotionAmount / 100)
+          ? allMoney(scope.row.regimentalPromotionAmount)
           : "-"
           }}
         </template>
       </el-table-column>
+
       <el-table-column
         label="结算服务费"
         align="center"
@@ -239,21 +205,7 @@
         <template slot-scope="scope">
           {{
           scope.row.totalRegimentalSettleAmount
-          ? allMoney(scope.row.totalRegimentalSettleAmount / 100)
-          : "-"
-          }}
-        </template>
-      </el-table-column>
-      <el-table-column
-        label="(凭)结算服务费"
-        align="center"
-        prop="voucherTotalRegimentalSettleAmount"
-        width="150px"
-      >
-        <template slot-scope="scope">
-          {{
-          scope.row.voucherTotalRegimentalSettleAmount
-          ? allMoney(scope.row.voucherTotalRegimentalSettleAmount / 100)
+          ? allMoney(scope.row.totalRegimentalSettleAmount )
           : "-"
           }}
         </template>
@@ -363,6 +315,7 @@
           orderEndDate: undefined,
         },
         uploadDate: [new Date(), new Date()],
+        bindDate: [],
         //查询参数所用下拉数据
         queryParamsList: {
           personList: [],
@@ -379,6 +332,7 @@
       let dd = date.getDate();
       dd = dd < 10 ? "0" + dd : dd;
       this.uploadDate = [`${y}-${MM}-${dd}`, `${y}-${MM}-${dd}`];
+      this.bindDate = [];
     },
     mounted() {
       this.$nextTick(() => {
@@ -387,7 +341,12 @@
       });
     },
     methods: {
-
+      cleanUploadDate() {
+        this.uploadDate = [];
+      },
+      cleanBindDate() {
+        this.bindDate = [];
+      },
       submitPromotersCount() {
         if (!!this.promotersCount) {
           this.promotersCountLoading = true;
@@ -420,6 +379,10 @@
       /** 导出按钮操作 */
       handleExport() {
         this.downLoadLoading = true;
+        if (!!this.bindDate) {
+          this.queryParams.bindStartDate = this.bindDate[0],
+            this.queryParams.bindEndDate = this.bindDate[1]
+        }
         downFile(
           "/bytedance/order/exportBytedanceBDReportList",
           this.addDateRange(
@@ -464,6 +427,10 @@
         if (this.roleId == 'bd') {
           this.queryParams.collectSampleId = this.userId
         }
+        if (!!this.bindDate) {
+          this.queryParams.bindStartDate = this.bindDate[0],
+            this.queryParams.bindEndDate = this.bindDate[1]
+        }
         getBytedanceBdReportList(
           this.addDateRange(
             this.queryParams,
@@ -504,6 +471,7 @@
         let dd = date.getDate();
         dd = dd < 10 ? "0" + dd : dd;
         this.uploadDate = [`${y}-${MM}-${dd}`, `${y}-${MM}-${dd}`];
+        this.bindDate = [];
         this.resetForm("queryForm");
         this.queryParams.pageNum = 1;
         this.handleQuery();

+ 1 - 1
src/views/jiaoyang/components/uploadFile.vue

@@ -96,7 +96,7 @@ export default {
         if (this.uploadType == "image") {
           return 2048;
         } else {
-          return 102400;
+          return 512000;
         }
       },
     },

+ 2 - 2
src/views/jiaoyang/jyHome.vue

@@ -90,11 +90,11 @@
             <div style="flex: 1">
               <p class="p-title">预估佣金收入</p>
               <p class="p-main"
-                 v-if=" this.$store.getters.roles[0] == 'jy_admnin' || this.$store.getters.roles[0] == 'admnin' || this.$store.getters.roles[0] ==  'jy_scissors_manage'">
+                 v-if=" this.$store.getters.roles[0] == 'jy_admnin' || this.$store.getters.roles[0] == 'admnin'">
                 {{ priceFormat(regimentalPromotion.complete) }}
               </p>
               <p class="p-main" v
-                 v-if="this.$store.getters.roles[0] != 'jy_admnin' && this.$store.getters.roles[0] != 'admnin'  && this.$store.getters.roles[0] != 'jy_scissors_manage' ">
+                 v-if="this.$store.getters.roles[0] != 'jy_admnin' && this.$store.getters.roles[0] != 'admnin' ">
                 -
               </p>
             </div>

+ 1 - 0
src/views/staging.vue

@@ -228,6 +228,7 @@
           @change="changeEchartsType"
         >
           <el-option label="销售额" value="orderAmount"/>
+          <el-option label="销售额(有效)" value="validOrderAmount"/>
           <el-option label="服务费" value="regimentalPromotionAmount"/>
           <el-option label="达人数" value="promoterCount" v-if="type == 1"/>
           <el-option label="订单数" value="orderCount"/>

+ 287 - 247
src/views/supplyChain/goods.vue

@@ -1,19 +1,22 @@
 <style scoped lang="scss">
-::v-deep a {
-  color: #409eff;
-  display: block;
-}
-.item-name-calss p {
-  margin: 0;
-  text-align: left;
-}
-.tableBox {
-  width: 100%;
-}
-::v-deep .el-table {
+  ::v-deep a {
+    color: #409eff;
+    display: block;
+  }
 
-  height: calc(100vh - 280px);
-}
+  .item-name-calss p {
+    margin: 0;
+    text-align: left;
+  }
+
+  .tableBox {
+    width: 100%;
+  }
+
+  ::v-deep .el-table {
+
+    height: calc(100vh - 280px);
+  }
 </style>
 <template>
   <div class="app-container" style="height: 100%">
@@ -55,7 +58,7 @@
                     ? 'backgroundColor:green'
                     : 'backgroundColor:red'
                 "
-                >{{ item.value }}</span
+              >{{ item.value }}</span
               ><span>{{ item.nickMame }}</span>
             </div>
           </el-option>
@@ -79,7 +82,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="选择日期">
+      <el-form-item label="出单日期">
         <el-date-picker
           v-model="uploadDate"
           style="width: 240px"
@@ -89,6 +92,20 @@
           range-separator="-"
           start-placeholder="开始日期"
           end-placeholder="结束日期"
+          @change="cleanBindDate()"
+        ></el-date-picker>
+      </el-form-item>
+      <el-form-item label="绑定日期">
+        <el-date-picker
+          v-model="bindDate"
+          style="width: 240px"
+          value-format="yyyy-MM-dd"
+          format="yyyy-MM-dd"
+          type="daterange"
+          range-separator="-"
+          start-placeholder="开始日期"
+          end-placeholder="结束日期"
+          @change="cleanUploadDate()"
         ></el-date-picker>
       </el-form-item>
 
@@ -98,10 +115,12 @@
           icon="el-icon-search"
           size="mini"
           @click="handleQuery"
-          >搜索</el-button
+        >搜索
+        </el-button
         >
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
-          >重置</el-button
+        >重置
+        </el-button
         >
         <el-button
           type="warning"
@@ -110,7 +129,8 @@
           size="mini"
           @click="handleExport"
           :loading="downLoadLoading"
-          >导出</el-button
+        >导出
+        </el-button
         >
       </el-form-item>
     </el-form>
@@ -157,9 +177,9 @@
                 <p>
                   佣金率:
                   {{
-                    scope.row.itemCommissionRate
-                      ? scope.row.itemCommissionRate / 10 + "%"
-                      : "-"
+                  scope.row.itemCommissionRate
+                  ? scope.row.itemCommissionRate / 10 + "%"
+                  : "-"
                   }}
                 </p>
               </div>
@@ -188,9 +208,9 @@
         >
           <template slot-scope="scope">
             {{
-              scope.row.validRadio
-                ? (scope.row.validRadio * 100).toFixed(2) + "%"
-                : "-"
+            scope.row.validRadio
+            ? (scope.row.validRadio * 100).toFixed(2) + "%"
+            : "-"
             }}
           </template>
         </el-table-column>
@@ -209,9 +229,9 @@
         >
           <template slot-scope="scope">
             {{
-              scope.row.deliveryRadio
-                ? (scope.row.deliveryRadio * 100).toFixed(2) + "%"
-                : "-"
+            scope.row.deliveryRadio
+            ? (scope.row.deliveryRadio * 100).toFixed(2) + "%"
+            : "-"
             }}
           </template>
         </el-table-column>
@@ -224,7 +244,7 @@
         </el-table-column>
         <el-table-column label="归属人" align="center" prop="userName">
         </el-table-column>
-        <el-table-column label="top3的达人" align="center" prop="topAnchors"  >
+        <el-table-column label="top3的达人" align="center" prop="topAnchors">
           <template slot-scope="scope">
             <el-popover
               placement="top"
@@ -240,7 +260,7 @@
                 style="text-align: left; display: block"
               >
                 {{ item.promoterNickName }}(Id:{{ item.promoterId }};订单数量:{{
-                  item.orderNum
+                item.orderNum
                 }})
               </asamplingList>
               <a slot="reference">查看</a>
@@ -261,219 +281,89 @@
 </template>
 
 <script>
-import {
-  listType,
-  getType,
-  delType,
-  addType,
-  updateType,
-  refreshCache,
-} from "@/api/system/dict/type";
-import {
-  getItemList,
-  downFilePost,
-  getTopPromoterByItemId,
-  getSupplyChainUserList,
-} from "@/api/supplyChain/supplyChain";
-export default {
-  name: "Goods",
-  dicts: ["sys_normal_disable"],
-  data() {
-    return {
-      downLoadLoading: false,
-      dialogTableVisible: false,
-      logPage: {
-        pageNum: 1,
-        pageSize: 10,
-      },
-      logData: [],
-      logTotal: 0,
-      logLoading: false,
-      // 遮罩层
-      loading: true,
-      // 选中数组
-      ids: [],
-      // 非单个禁用
-      single: true,
-      // 非多个禁用
-      multiple: true,
-      // 显示搜索条件
-      showSearch: true,
-      // 总条数
-      total: 0,
-      // 字典表格数据
-      typeList: [],
-      // 弹出层标题
-      title: "",
-      // 是否显示弹出层
-      open: false,
-      // 分配销售
-      openAllocation: false,
-      // 选择的销售id
-      saleId: undefined,
-      // 获取用户id
-      userId: undefined,
-      // 销售列表
-      saleList: [],
-      // 分配销售确定loading
-      confirmLoadingSale: false,
-      // 日期范围
-      dateRange: [],
-      // 查询参数
-      queryParams: {
-        pageNum: 1,
-        pageSize: 10,
+  import {
+    listType,
+    getType,
+    delType,
+    addType,
+    updateType,
+    refreshCache,
+  } from "@/api/system/dict/type";
+  import {
+    getItemList,
+    downFilePost,
+    getTopPromoterByItemId,
+    getSupplyChainUserList,
+  } from "@/api/supplyChain/supplyChain";
+
+  export default {
+    name: "Goods",
+    dicts: ["sys_normal_disable"],
+    data() {
+      return {
+        downLoadLoading: false,
+        dialogTableVisible: false,
+        logPage: {
+          pageNum: 1,
+          pageSize: 10,
+        },
+        logData: [],
+        logTotal: 0,
+        logLoading: false,
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 字典表格数据
+        typeList: [],
+        // 弹出层标题
+        title: "",
+        // 是否显示弹出层
+        open: false,
+        // 分配销售
+        openAllocation: false,
+        // 选择的销售id
+        saleId: undefined,
+        // 获取用户id
         userId: undefined,
-        itemId: undefined,
-        itemTitle: undefined,
-        orderStartDate: undefined,
-        orderEndDate: undefined,
-      },
-      uploadDate: [new Date(), new Date()],
-      //查询参数所用下拉数据
-      queryParamsList: {
-        personList: [],
-      },
-      videoTag: [],
-      videoVisibleChange: undefined,
-      prop: "orderNum",
-      sort: "desc",
-    };
-  },
-  created() {
-    this.userId = this.$store.getters.userId;
-    let date = new Date();
-    let y = date.getFullYear();
-    let MM = date.getMonth() + 1;
-    MM = MM < 10 ? "0" + MM : MM;
-    let dd = date.getDate();
-    dd = dd < 10 ? "0" + dd : dd;
-    this.uploadDate = [`${y}-${MM}-${dd}`, `${y}-${MM}-${dd}`];
-  },
-  mounted() {
-    this.$nextTick(() => {
-      this.getPersonList();
-      this.getList();
-    });
-  },
-  methods: {
-    showTitle(visible) {
-      console.log(visible);
-      if (this.videoVisibleChange != visible.itemId) {
-        this.videoVisibleChange = visible.itemId;
-        this.videoTag = [];
-        getTopPromoterByItemId(
-          this.addDateRange(
-            { itemId: visible.itemId },
-            this.uploadDate,
-            "orderStartDate",
-            "orderEndDate"
-          )
-        ).then((res) => {
-          this.videoTag = res.rows;
-        });
-      } else {
-        return;
-      }
-    },
-    /** 导出按钮操作 */
-    handleExport() {
-      this.downLoadLoading = true;
-      downFilePost(
-        "/isv/supply_chain/exportOrder",
-        this.addDateRange(
-          this.queryParams,
-          this.uploadDate,
-          "orderStartDate",
-          "orderEndDate"
-        )
-      ).then((res) => {
-        let blob = new Blob([res], {
-          type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
-        });
-        let downloadElement = document.createElement("a");
-        let href = window.URL.createObjectURL(blob); //创建下载的链接
-        downloadElement.href = href;
-        downloadElement.download = `商品列表_${this.uploadDate[0]}-${this.uploadDate[1]}.xlsx`; //下载后文件名
-        document.body.appendChild(downloadElement);
-        downloadElement.click(); //点击下载
-        document.body.removeChild(downloadElement); //下载完成移除元素
-        window.URL.revokeObjectURL(href); //释放掉blob对象
-        this.downLoadLoading = false;
-      });
-    },
-    toDetail(item) {
-      this.$router.replace({
-        path: "/supplyChain/kuaishou/indexDetails",
-        query: {
-          id: item.promoterId,
-          name: item.promoterNickName,
-          orderStartDate: this.uploadDate[0],
-          orderEndDate: this.uploadDate[1],
+        // 销售列表
+        saleList: [],
+        // 分配销售确定loading
+        confirmLoadingSale: false,
+        // 日期范围
+        dateRange: [],
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 10,
+          userId: undefined,
+          itemId: undefined,
+          itemTitle: undefined,
+          orderStartDate: undefined,
+          orderEndDate: undefined,
         },
-      });
-    },
-    toIndexDetail(item) {
-      this.$router.replace({
-        path: "/supplyChain/kuaishou/goodsDetails",
-        query: {
-          id: item.itemId,
-          name: item.itemTitle,
-          orderStartDate: this.uploadDate[0],
-          orderEndDate: this.uploadDate[1],
+        uploadDate: [new Date(), new Date()],
+        bindDate: [],
+        //查询参数所用下拉数据
+        queryParamsList: {
+          personList: [],
         },
-      });
+        videoTag: [],
+        videoVisibleChange: undefined,
+        prop: "orderNum",
+        sort: "desc",
+      };
     },
-    sortChange(col, prop, order) {
-      this.prop = col.prop;
-      this.sort = !!col.order
-        ? col.order == "descending"
-          ? "desc"
-          : "asc"
-        : "desc";
-      this.handleQuery();
-    },
-    getPersonList() {
-      getSupplyChainUserList().then((response) => {
-        this.queryParamsList.personList = response.rows;
-      });
-    },
-    /** 查询字典类型列表 */
-    getList() {
-      this.loading = true;
-      getItemList(
-        this.addDateRange(
-          { ...this.queryParams, fieId: this.prop, sort: this.sort },
-          this.uploadDate,
-          "orderStartDate",
-          "orderEndDate"
-        )
-      ).then((response) => {
-        this.typeList = response.rows;
-        this.total = response.total;
-        this.loading = false;
-      });
-    },
-    // 取消按钮
-    cancel() {
-      this.open = false;
-      this.confirmLoading = false;
-      this.reset();
-    },
-    // 表单重置
-    reset() {
-      this.form = {};
-      this.dateFile = null;
-      this.resetForm("form");
-    },
-    /** 搜索按钮操作 */
-    handleQuery() {
-      this.queryParams.pageNum = 1;
-      this.getList();
-    },
-    /** 重置按钮操作 */
-    resetQuery() {
-      this.dateRange = [];
+    created() {
+      this.userId = this.$store.getters.userId;
       let date = new Date();
       let y = date.getFullYear();
       let MM = date.getMonth() + 1;
@@ -481,14 +371,164 @@ export default {
       let dd = date.getDate();
       dd = dd < 10 ? "0" + dd : dd;
       this.uploadDate = [`${y}-${MM}-${dd}`, `${y}-${MM}-${dd}`];
-      this.resetForm("queryForm");
-      this.queryParams.pageNum = 1;
-      this.handleQuery();
+      this.bindDate = [];
     },
-    // 多选框选中数据
-    handleSelectionChange(selection) {
-      this.ids = selection.map((item) => item.id);
+    mounted() {
+      this.$nextTick(() => {
+        this.getPersonList();
+        this.getList();
+      });
     },
-  },
-};
+    methods: {
+      cleanBindDate() {
+        this.bindDate = [];
+      },
+      cleanUploadDate() {
+        this.uploadDate = [];
+      },
+      showTitle(visible) {
+        console.log(visible);
+        if (this.videoVisibleChange != visible.itemId) {
+          this.videoVisibleChange = visible.itemId;
+          this.videoTag = [];
+          getTopPromoterByItemId(
+            this.addDateRange(
+              {itemId: visible.itemId},
+              this.uploadDate,
+              "orderStartDate",
+              "orderEndDate"
+            )
+          ).then((res) => {
+            this.videoTag = res.rows;
+          });
+        } else {
+          return;
+        }
+      },
+      /** 导出按钮操作 */
+      handleExport() {
+        this.downLoadLoading = true;
+        if (!!this.bindDate) {
+             this.queryParams.bindStartDate = this.bindDate[0],
+            this.queryParams.bindEndDate = this.bindDate[1]
+        }
+        downFilePost(
+          "/isv/supply_chain/exportOrder",
+          this.addDateRange(
+            this.queryParams,
+            this.uploadDate,
+            "orderStartDate",
+            "orderEndDate"
+          )
+        ).then((res) => {
+          let blob = new Blob([res], {
+            type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
+          });
+          let downloadElement = document.createElement("a");
+          let href = window.URL.createObjectURL(blob); //创建下载的链接
+          downloadElement.href = href;
+          downloadElement.download = `商品列表.xlsx`; //下载后文件名
+          document.body.appendChild(downloadElement);
+          downloadElement.click(); //点击下载
+          document.body.removeChild(downloadElement); //下载完成移除元素
+          window.URL.revokeObjectURL(href); //释放掉blob对象
+          this.downLoadLoading = false;
+        });
+      },
+      toDetail(item) {
+        this.$router.replace({
+          path: "/supplyChain/kuaishou/indexDetails",
+          query: {
+            id: item.promoterId,
+            name: item.promoterNickName,
+            orderStartDate: this.uploadDate[0],
+            orderEndDate: this.uploadDate[1],
+          },
+        });
+      },
+      toIndexDetail(item) {
+        this.$router.replace({
+          path: "/supplyChain/kuaishou/goodsDetails",
+          query: {
+            id: item.itemId,
+            name: item.itemTitle,
+            orderStartDate: this.uploadDate[0],
+            orderEndDate: this.uploadDate[1],
+          },
+        });
+      },
+      sortChange(col, prop, order) {
+        this.prop = col.prop;
+        this.sort = !!col.order
+          ? col.order == "descending"
+            ? "desc"
+            : "asc"
+          : "desc";
+        this.handleQuery();
+      },
+      getPersonList() {
+        getSupplyChainUserList().then((response) => {
+          this.queryParamsList.personList = response.rows;
+        });
+      },
+      /** 查询字典类型列表 */
+      getList() {
+        this.loading = true;
+        if (!!this.bindDate) {
+          this.queryParams.bindStartDate = this.bindDate[0],
+            this.queryParams.bindEndDate = this.bindDate[1]
+        }
+        getItemList(
+          this.addDateRange(
+            {...this.queryParams, fieId: this.prop, sort: this.sort},
+            this.uploadDate,
+            "orderStartDate",
+            "orderEndDate"
+          )
+        ).then((response) => {
+          this.typeList = response.rows;
+          this.total = response.total;
+          this.loading = false;
+        });
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+        this.confirmLoading = false;
+        this.reset();
+      },
+      // 表单重置
+      reset() {
+        this.form = {};
+        this.dateFile = null;
+        this.resetForm("form");
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.dateRange = [];
+        let date = new Date();
+        let y = date.getFullYear();
+        let MM = date.getMonth() + 1;
+        MM = MM < 10 ? "0" + MM : MM;
+        let dd = date.getDate();
+        dd = dd < 10 ? "0" + dd : dd;
+        this.uploadDate = [`${y}-${MM}-${dd}`, `${y}-${MM}-${dd}`];
+        this.bindDate = [];
+        this.resetForm("queryForm");
+        this.queryParams.pageNum = 1;
+        this.handleQuery();
+      },
+      // 多选框选中数据
+      handleSelectionChange(selection) {
+        this.ids = selection.map((item) => item.id);
+      },
+    }
+    ,
+  }
+  ;
 </script>