瀏覽代碼

8.5 12:02合并

Tartarus 2 年之前
父節點
當前提交
4eacf81682

+ 32 - 0
src/api/report.js

xqd
@@ -37,5 +37,37 @@ export function getReportSupplierReport(params) {
   })
 }
 
+/* 导出承兑人分类报表 */
+export function getExportAcceptor(params) {
+  return request({
+    url:'/api/Report/export/acceptorClassification',
+    method: 'get',
+    params
+  })
+}
+/* 导出出票人分类报表 */
+export function getExportDrawer(params) {
+  return request({
+    url:'/api/Report/export/drawerClassification',
+    method: 'get',
+    params
+  })
+}
+/* 导出合同统计报表 */
+export function getExportContract(params) {
+  return request({
+    url:'/api/Report/export/contractReport',
+    method: 'get',
+    params
+  })
+}
+/* 导出供应商统计报表 */
+export function getExportSupplier(params) {
+  return request({
+    url:'/api/Report/export/supplierReport',
+    method: 'get',
+    params
+  })
+}
 
 

+ 27 - 32
src/views/contracts/index.vue

xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd
@@ -103,6 +103,7 @@
     </el-row>
 
     <el-table
+      :row-key="getRowKey"
       v-loading="listLoading"
       :data="temporaryList"
       element-loading-text="Loading"
@@ -112,7 +113,13 @@
       @select="handleSelectionChange"
       @select-all="handleAll"
     >
-      <el-table-column align="center" label="" width="55" type="selection" />
+      <el-table-column
+        align="center"
+        label=""
+        width="55"
+        type="selection"
+        :reserve-selection="true"
+      />
       <el-table-column label="合同名称" align="center" prop="name" />
       <el-table-column
         label="合同编号"
@@ -220,9 +227,7 @@
             @click="failed"
             >审核失败</el-button
           >
-
-          <el-button type="primary" @click="Exports">全部导出</el-button>
-          <el-button type="primary" @click="batchExports">批量导出</el-button>
+          <el-button type="primary" @click="batchExports">导出</el-button>
           <el-button type="success" @click="recover">恢复</el-button>
           <el-button type="danger" @click="deleted">删除</el-button>
         </div>
@@ -310,7 +315,6 @@ export default {
       status: "",
       hpstatus: "",
       Auditstatus: "",
-      exportExcel: [], //导出数据
       search: "",
       /* 当前页数 */
       currentPage: 1,
@@ -349,8 +353,7 @@ export default {
         ],
       },
       value2: "",
-      exportExcelData1: [], //导出列表缓存数据整页
-      exportExcelData2: [], //导出列表缓存数据单选
+      multipleSelection:[]
     };
   },
   mounted() {
@@ -664,33 +667,27 @@ export default {
       font.handleCurrentChange(cpage);
     },
 
+    getRowKey(row) {
+      return row.id;
+    },
+
     /* 批量导出数据 */
     handleSelectionChange(data) {
-	  this.multipleSelection=data
-      this.exportExcelData1.push(data);
-      this.exportExcelData2 = [
-        ...new Set(this.exportExcelData1.flat(Infinity)),
-      ];
+      this.multipleSelection = data;
+      console.log(this.multipleSelection);
     },
     handleAll(data) {
-	  this.multipleSelection=data
-      this.exportExcelData1.push(data);
+      this.multipleSelection = data;
     },
 
-    /* 批量导出合同列表 */
+    /* 导出 */
     batchExports() {
-      this.exportExcel =
-        [...new Set(this.exportExcelData1.flat(Infinity))] ||
-        this.exportExcelData2;
-      if (this.exportExcel == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+      if (this.multipleSelection == "") {
+        this.Exports();
       } else {
         var tableHeader = [
           [
-            "序号",
+             "序号",
             "合同名称",
             "合同编号",
             "承兑人",
@@ -702,7 +699,7 @@ export default {
           ],
         ];
         var dataList = [];
-        this.exportExcel.forEach((item, index) => {
+        this.multipleSelection.forEach((item, index) => {
           dataList.push([
             index + 1,
             item.name,
@@ -715,12 +712,12 @@ export default {
             item.createdAt,
           ]);
         });
-        dataConversionUtil.dataToExcel("合同列表", tableHeader, dataList);
+        dataConversionUtil.dataToExcel("承兑人列表", tableHeader, dataList);
         this.$message.success("导出成功!");
       }
     },
 
-    /* 全部导出合同列表数据 */
+    /* 全部导出承兑人列表数据 */
     getContacts() {
       const data = {
         pageIndex: "",
@@ -735,17 +732,16 @@ export default {
       };
       contractsPageApi({ ...data }).then((res) => {
         const { result } = res.data;
-        this.exportExcel = result;
+        this.multipleSelection = result;
       });
     },
-
     /* 全部导出 */
     Exports() {
       this.getContacts();
       setTimeout(() => {
         var tableHeader = [
           [
-            "序号",
+             "序号",
             "合同名称",
             "合同编号",
             "承兑人",
@@ -757,7 +753,7 @@ export default {
           ],
         ];
         var dataList = [];
-        this.exportExcel.forEach((item, index) => {
+        this.multipleSelection.forEach((item, index) => {
           dataList.push([
             index + 1,
             item.name,
@@ -772,7 +768,6 @@ export default {
         });
         dataConversionUtil.dataToExcel("合同列表", tableHeader, dataList);
         this.$message.success("导出成功!");
-        this.exportExcel = [];
       }, 1000);
     },
   },

+ 9 - 14
src/views/databackup/index.vue

xqd xqd xqd xqd
@@ -49,13 +49,14 @@
         class="grid-content bg-purple"
         style="display: flex; justify-content: flex-end"
       >
-        <el-button type="primary" @click="Exports">全部导出</el-button>
-        <el-button type="primary" @click="batchExports">批量导出</el-button>
+        <el-button type="primary" @click="batchExports">导出</el-button>
         <el-button type="primary" @click="downLoadSql">下载</el-button>
         <el-button type="danger" @click="moreDelete">删除</el-button>
       </div>
     </el-row>
     <el-table
+      :row-key="getRowKey"
+
       v-loading="listLoading"
       :data="srcList"
       element-loading-text="Loading"
@@ -65,7 +66,7 @@
       @select="handleSelectionChange"
       @select-all="handleAll"
     >
-      <el-table-column align="center" label="" width="55" type="selection">
+      <el-table-column align="center" label="" width="55" type="selection" :reserve-selection="true">
       </el-table-column>
       <el-table-column
         label="文件名称"
@@ -430,26 +431,20 @@ export default {
       });
     },
 
+    getRowKey(row) {
+      return row.id;
+    },
     /* 批量导出 */
     handleSelectionChange(data) {
       this.multipleSelection = data
-      console.log(this.multipleSelection);
-       this.exportExcelData1.push(data);
-      this.exportExcelData2 = [...new Set( this.exportExcelData1.flat(Infinity))];
-      
     },
     handleAll(data) {
       this.multipleSelection = data
-      this.exportExcelData1.push(data);
     },
     /* 批量导出数据 */
     batchExports() {
-       this.multipleSelection = [...new Set(this.exportExcelData1.flat(Infinity))]||this.exportExcelData2;
       if (this.multipleSelection == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+        this.Exports()
       } else {
         var tableHeader = [
           [
@@ -518,7 +513,7 @@ export default {
         });
         dataConversionUtil.dataToExcel("数据备份列表", tableHeader, dataList);
         this.$message.success("导出成功!");
-         this.multipleSelection=[]
+
       }, 1000);
     },
   },

+ 8 - 17
src/views/delivery/index.vue

xqd xqd xqd xqd xqd
@@ -67,6 +67,7 @@
       </div>
     </el-row>
     <el-table
+      :row-key="getRowKey"
       v-loading="listLoading"
       :data="temporaryList"
       element-loading-text="Loading"
@@ -76,7 +77,7 @@
       @selection-change="handleSelectionChange"
       @select-all="handleAll"
     >
-      <el-table-column type="selection"> </el-table-column>
+      <el-table-column type="selection" :reserve-selection="true"> </el-table-column>
       <el-table-column
         label="供应商名称"
         align="center"
@@ -193,8 +194,7 @@
         <div class="btn" style="display: flex; justify-content: flex-end">
           <el-button type="primary" @click="failed">认证失败</el-button>
           <el-button type="primary" @click="success">认证成功</el-button>
-          <el-button type="primary" @click="Exports">全部导出</el-button>
-          <el-button type="primary" @click="batchExports">批量导出</el-button>
+          <el-button type="primary" @click="batchExports">导出</el-button>
           <el-button type="success" @click="recover">恢复</el-button>
           <el-button type="danger" @click="deleted">禁用</el-button>
         </div>
@@ -433,29 +433,21 @@ export default {
       font.handleCurrentChange(cpage);
     },
 
+     getRowKey(row) {
+      return row.id;
+    },
+
     /* 批量导出数据 */
     handleSelectionChange(data) {
 	  this.multipleSelection=data
-      this.exportExcelData1.push(data);
-      this.exportExcelData2 = [
-        ...new Set(this.exportExcelData1.flat(Infinity)),
-      ];
     },
     handleAll(data) {
 	  this.multipleSelection=data
-      this.exportExcelData1.push(data);
     },
     /* 批量导出数据 */
     batchExports() {
-      this.multipleSelection =
-        [...new Set(this.exportExcelData1.flat(Infinity))] ||
-        this.exportExcelData2;
-
       if (this.multipleSelection == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+        this.Exports()
       } else {
         var tableHeader = [
           [
@@ -540,7 +532,6 @@ export default {
         });
         dataConversionUtil.dataToExcel("供应商列表", tableHeader, dataList);
         this.$message.success("导出成功!");
-        this.multipleSelection = [];
       }, 1000);
     },
 

+ 260 - 238
src/views/form/index.vue

xqd xqd xqd xqd xqd
@@ -26,15 +26,17 @@
 				</el-dropdown>
 			</div>
 
+
 			<div class="grid-content bg-purple" style="display: flex; justify-content: flex-end">
 				<el-button type="success" @click="recovers">恢复</el-button>
 				<el-button type="danger" @click="deletestatuses">删除</el-button>
 				<el-button type="primary" @click="dialogVisible2 = true">新增出票人</el-button>
-				<el-button type="primary" @click="Exports">全部导出</el-button>
-				<el-button type="primary" @click="batchExports">批量导出</el-button>
+				\
+				<el-button type="primary" @click="batchExports">导出</el-button>
 			</div>
 		</el-row>
 
+
 		<!--修改出票人弹窗 -->
 		<el-dialog title="修改出票人" :visible.sync="dialogVisible1" width="500px">
 			<el-form ref="form" :model="tableData" label-width="80px">
@@ -72,144 +74,191 @@
 			</el-form>
 		</el-dialog>
 
-		<el-table v-loading="listLoading" :data="temporaryList" element-loading-text="Loading" border fit
-			highlight-current-row @select="handleSelectionChange" @select-all="handleAll">
-			<el-table-column align="center" type="selection"> </el-table-column>
-			<el-table-column label="出票人名称" align="center" prop="name">
-			</el-table-column>
-			<el-table-column label="账号" align="center" prop="bankAccount">
-			</el-table-column>
-			<el-table-column align="center" prop="bankName" label="开户行名称">
-			</el-table-column>
-			<el-table-column align="center" prop="statusText" label="出票人状态">
-			</el-table-column>
-			<el-table-column align="center" prop="createdAt" label="时间">
-			</el-table-column>
-			<el-table-column align="center" prop="created_at" label="操作" width="250">
-				<template slot-scope="scope">
-					<el-tag type="primary" style="cursor: pointer; margin-right: 15px" @click="modify(scope.row.id)">修改
-					</el-tag>
-					<el-tag type="success" style="cursor: pointer; margin-right: 15px" @click="recover(scope.row.id)"
-						v-if="scope.row.status == 1">恢复
-					</el-tag>
-					<el-tag type="danger" style="cursor: pointer; margin-right: 15px"
-						@click="deletestatus(scope.row.id)" v-if="scope.row.status == 0">删除</el-tag>
-				</template>
-			</el-table-column>
-		</el-table>
-		<div class="pagesip">
-			<el-button type="primary" size="small"
-				style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px" @click="jumpFirstPage">首页
-			</el-button>
-			<el-pagination background @current-change="handleCurrentChange" layout="total,prev, pager, next"
-				:total="total" :page-size="pagesize" :current-page="currentPage" prev-text="上一页" next-text="下一页"
-				:hide-on-single-page="false" ref="pagination">
-			</el-pagination>
-			<el-button type="primary" size="small"
-				style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px" @click="jumpLastPage">尾页
-			</el-button>
-		</div>
-	</div>
+    <el-table
+      :row-key="getRowKey"
+      v-loading="listLoading"
+      :data="temporaryList"
+      element-loading-text="Loading"
+      border
+      fit
+      highlight-current-row
+      @select="handleSelectionChange"
+      @select-all="handleAll"
+    >
+      <el-table-column
+        align="center"
+        type="selection"
+        :reserve-selection="true"
+      >
+      </el-table-column>
+      <el-table-column label="出票人名称" align="center" prop="name">
+      </el-table-column>
+      <el-table-column label="账号" align="center" prop="bankAccount">
+      </el-table-column>
+      <el-table-column align="center" prop="bankName" label="开户行名称">
+      </el-table-column>
+      <el-table-column align="center" prop="statusText" label="出票人状态">
+      </el-table-column>
+      <el-table-column align="center" prop="createdAt" label="时间">
+      </el-table-column>
+      <el-table-column
+        align="center"
+        prop="created_at"
+        label="操作"
+        width="250"
+      >
+        <template slot-scope="scope">
+          <el-tag
+            type="primary"
+            style="cursor: pointer; margin-right: 15px"
+            @click="modify(scope.row.id)"
+            >修改
+          </el-tag>
+          <el-tag
+            type="success"
+            style="cursor: pointer; margin-right: 15px"
+            @click="recover(scope.row.id)"
+            v-if="scope.row.status == 1"
+            >恢复
+          </el-tag>
+          <el-tag
+            type="danger"
+            style="cursor: pointer; margin-right: 15px"
+            @click="deletestatus(scope.row.id)"
+            v-if="scope.row.status == 0"
+            >删除</el-tag
+          >
+        </template>
+      </el-table-column>
+    </el-table>
+    <div class="pagesip">
+      <el-button
+        type="primary"
+        size="small"
+        style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px"
+        @click="jumpFirstPage"
+        >首页
+      </el-button>
+      <el-pagination
+        background
+        @current-change="handleCurrentChange"
+        layout="total,prev, pager, next"
+        :total="total"
+        :page-size="pagesize"
+        :current-page="currentPage"
+        prev-text="上一页"
+        next-text="下一页"
+        :hide-on-single-page="false"
+        ref="pagination"
+      >
+      </el-pagination>
+      <el-button
+        type="primary"
+        size="small"
+        style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px"
+        @click="jumpLastPage"
+        >尾页
+      </el-button>
+    </div>
+  </div>
 </template>
 
 <script>
-	import {
-		dataConversionUtil
-	} from "../../utils/Excel.js";
-	import {
-		getDrawerSearch
-	} from "@/api/drawer";
-	export default {
-		filters: {
-			statusFilter(status) {
-				const statusMap = {
-					published: "success",
-					draft: "gray",
-					deleted: "danger",
-				};
-				return statusMap[status];
-			},
-		},
-		data() {
-			return {
-				// 弹窗显示
-				dialogVisible1: false,
-				dialogVisible2: false,
-				// 表单数据
-				formData: {
-					startTime: "",
-					endTime: "",
-					name: "", // 出票人
-					status: "", // 出票人状态
-				},
-				// 新增出票人数据
-				form: {
-					name: "",
-					bankAccount: "",
-					bankName: "",
-				},
-				oldTableData: '',
-				// 修改出票人数据
-				tableData: {
-					name: "",
-					bankAccount: "",
-					bankName: "",
-					id: "",
-					createdAt: "",
-					status: "",
-					statusText: "",
-				},
-				/* 当前页数 */
-				currentPage: 1,
-				/* 每页显示个数 */
-				pagesize: 10,
-				/* 总条数 */
-				total: 20,
-				multipleSelection: [],
-				srcList: [],
-				list: [],
-				temporaryList: [],
-				listLoading: false,
-				status: "",
-				hpstatus: "",
-				search: "",
-				checked: "",
-				pickerOptions: {
-					shortcuts: [{
-							text: "最近一周",
-							onClick(picker) {
-								const end = new Date();
-								const start = new Date();
-								start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
-								picker.$emit("pick", [start, end]);
-							},
-						},
-						{
-							text: "最近一个月",
-							onClick(picker) {
-								const end = new Date();
-								const start = new Date();
-								start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
-								picker.$emit("pick", [start, end]);
-							},
-						},
-						{
-							text: "最近三个月",
-							onClick(picker) {
-								const end = new Date();
-								const start = new Date();
-								start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
-								picker.$emit("pick", [start, end]);
-							},
-						},
-					],
-				},
-				value1: "",
-				value2: "",
-				exportExcelData1: [], //列表缓存数据
-				exportExcelData2: [],
-			};
-		},
+import { dataConversionUtil } from "../../utils/Excel.js";
+import { getDrawerSearch } from "@/api/drawer";
+export default {
+  filters: {
+    statusFilter(status) {
+      const statusMap = {
+        published: "success",
+        draft: "gray",
+        deleted: "danger",
+      };
+      return statusMap[status];
+    },
+  },
+  data() {
+    return {
+      // 弹窗显示
+      dialogVisible1: false,
+      dialogVisible2: false,
+      // 表单数据
+      formData: {
+        startTime: "",
+        endTime: "",
+        name: "", // 出票人
+        status: "", // 出票人状态
+      },
+      // 新增出票人数据
+      form: {
+        name: "",
+        bankAccount: "",
+        bankName: "",
+      },
+      oldTableData: "",
+      // 修改出票人数据
+      tableData: {
+        name: "",
+        bankAccount: "",
+        bankName: "",
+        id: "",
+        createdAt: "",
+        status: "",
+        statusText: "",
+      },
+      /* 当前页数 */
+      currentPage: 1,
+      /* 每页显示个数 */
+      pagesize: 10,
+      /* 总条数 */
+      total: 20,
+      multipleSelection: [],
+      srcList: [],
+      list: [],
+      temporaryList: [],
+      listLoading: false,
+      status: "",
+      hpstatus: "",
+      search: "",
+      checked: "",
+      pickerOptions: {
+        shortcuts: [
+          {
+            text: "最近一周",
+            onClick(picker) {
+              const end = new Date();
+              const start = new Date();
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
+              picker.$emit("pick", [start, end]);
+            },
+          },
+          {
+            text: "最近一个月",
+            onClick(picker) {
+              const end = new Date();
+              const start = new Date();
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
+              picker.$emit("pick", [start, end]);
+            },
+          },
+          {
+            text: "最近三个月",
+            onClick(picker) {
+              const end = new Date();
+              const start = new Date();
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
+              picker.$emit("pick", [start, end]);
+            },
+          },
+        ],
+      },
+      value1: "",
+      value2: "",
+      exportExcelData1: [], //列表缓存数据
+      exportExcelData2: [],
+    };
+  },
+
 
 		mounted() {
 			this.checked = this.$store.state.user.checked;
@@ -373,6 +422,7 @@
 				});
 			},
 
+
 			// 修改信息弹窗
 			modify(id) {
 				this.dialogVisible1 = true;
@@ -421,6 +471,7 @@
 					});
 				}
 
+
 			},
 			// 新增出票人弹窗
 			addTicketdrawer() {
@@ -474,111 +525,82 @@
 				this.getAllList(this.searchForm);
 			},
 
-			/* 分页功能,改变当前页 */
-			handleCurrentChange(val) {
-				this.currentPage = val;
-				this.getAllList(this.searchForm);
-			},
-
-			/* 分页功能去首页 */
-			jumpFirstPage() {
-				this.$refs.pagination.handleCurrentChange(1);
-				this.$emit("handleCurrentChange", 1);
-			},
-			/* 分页功能:去尾页 */
-			jumpLastPage() {
-				let font = this.$refs.pagination;
-				let cpage = Math.ceil(font.total / font.pageSize);
-				font.handleCurrentChange(cpage);
-			},
 
-			/* 批量导出数据 */
-			handleSelectionChange(data) {
-				this.multipleSelection = data
-				this.exportExcelData1.push(data);
-				this.exportExcelData2 = [
-					...new Set(this.exportExcelData1.flat(Infinity)),
-				];
-			},
-			handleAll(data) {
-				this.multipleSelection = data
-				this.exportExcelData1.push(data);
-			},
+    getRowKey(row) {
+      return row.id;
+    },
+    /* 批量导出数据 */
+    handleSelectionChange(data) {
+      this.multipleSelection = data;
+    },
+    handleAll(data) {
+      this.multipleSelection = data;
+    },
 
-			/* 批量导出 */
-			batchExports() {
-				this.multipleSelection = [...new Set(this.exportExcelData1.flat(Infinity))] ||
-					this.exportExcelData2;
+    /* 批量导出 */
+    batchExports() {
+      if (this.multipleSelection == "") {
+        this.Exports();
+      } else {
+        var tableHeader = [
+          ["序号", "出票人名称", "账号", "开户行名称", "状态", "时间"],
+        ];
+        var dataList = [];
+        this.multipleSelection.forEach((item, index) => {
+          dataList.push([
+            index + 1,
+            item.name,
+            item.bankAccount,
+            item.bankName,
+            item.statusText,
+            item.createdAt,
+          ]);
+        });
+        dataConversionUtil.dataToExcel("出票人列表", tableHeader, dataList);
+        this.$message.success("导出成功!");
+      }
+    },
+    /* 全部导出承兑人列表数据 */
+    getContacts() {
+      const data = {
+        pageIndex: "",
+        pageSize: -1,
+        startTime: "",
+        endTime: "",
+        name: "",
+        status: "",
+      };
+      getDrawerSearch({ ...data }).then((res) => {
+        const { result } = res.data;
+        this.multipleSelection = result;
+      });
+    },
 
-				if (this.multipleSelection == "") {
-					this.$message({
-						type: "warning",
-						message: "请选择数据!",
-					});
-				} else {
-					var tableHeader = [
-						["序号", "出票人名称", "账号", "开户行名称", "状态", "时间"],
-					];
-					var dataList = [];
-					this.multipleSelection.forEach((item, index) => {
-						dataList.push([
-							index + 1,
-							item.name,
-							item.bankAccount,
-							item.bankName,
-							item.statusText,
-							item.createdAt,
-						]);
-					});
-					dataConversionUtil.dataToExcel("出票人列表", tableHeader, dataList);
-					this.$message.success("导出成功!");
-				}
-			},
-			/* 全部导出承兑人列表数据 */
-			getContacts() {
-				const data = {
-					pageIndex: "",
-					pageSize: -1,
-					startTime: "",
-					endTime: "",
-					name: "",
-					status: "",
-				};
-				getDrawerSearch({
-					...data
-				}).then((res) => {
-					const {
-						result
-					} = res.data;
-					this.multipleSelection = result;
-				});
-			},
+    /* 全部导出 */
+    Exports() {
+      this.getContacts();
+      setTimeout(() => {
+        var tableHeader = [
+          ["序号", "出票人名称", "账号", "开户行名称", "状态", "时间"],
+        ];
+        var dataList = [];
+        this.multipleSelection.forEach((item, index) => {
+          dataList.push([
+            index + 1,
+            item.name,
+            item.bankAccount,
+            item.bankName,
+            item.statusText,
+            item.createdAt,
+          ]);
+        });
+        dataConversionUtil.dataToExcel("出票人列表", tableHeader, dataList);
+        this.$message.success("导出成功!");
+      }, 1000);
+    },
+  },
+};
 
-			/* 全部导出 */
-			Exports() {
-				this.getContacts();
-				setTimeout(() => {
-					var tableHeader = [
-						["序号", "出票人名称", "账号", "开户行名称", "状态", "时间"],
-					];
-					var dataList = [];
-					this.multipleSelection.forEach((item, index) => {
-						dataList.push([
-							index + 1,
-							item.name,
-							item.bankAccount,
-							item.bankName,
-							item.statusText,
-							item.createdAt,
-						]);
-					});
-					dataConversionUtil.dataToExcel("出票人列表", tableHeader, dataList);
-					this.$message.success("导出成功!");
-					this.multipleSelection = [];
-				}, 1000);
-			},
-		},
-	};
 </script>
 <style lang="scss" scoped>
 	.pulldown {

+ 605 - 553
src/views/management/index.vue

xqd xqd
@@ -1,472 +1,525 @@
 <template>
-	<div class="app-container">
-		<el-row type="flex" justify="space-between" style="margin-bottom: 20px">
-			<div class="grid-content bg-purple">
-				<el-input v-model="formData.name" @change="Search" placeholder="请输入业务管理员名称" style="width: 100%">
-					<i slot="prefix" class="el-input__icon el-icon-search" />
-				</el-input>
-			</div>
-			<div class="grid-content bg-purple">
-				<el-dropdown @command="handleCommand">
-					<div class="pulldown">
-						<span v-if="!status" class="el-dropdown-link">
-							业务管理员状态
-						</span>
-						<span v-if="status" class="el-dropdown-link">
-							{{ status }}
-						</span>
-						<i class="el-icon-arrow-down el-icon--right" />
-					</div>
-					<el-dropdown-menu slot="dropdown">
-						<el-dropdown-item command="全部">全部</el-dropdown-item>
-						<el-dropdown-item command="正常">正常</el-dropdown-item>
-						<el-dropdown-item command="删除">删除</el-dropdown-item>
-					</el-dropdown-menu>
-				</el-dropdown>
-			</div>
-			<div class="grid-content bg-purple">
-				<el-dropdown @command="handlehpCommand">
-					<div class="pulldown">
-						<span v-if="!Auditstatus" class="el-dropdown-link"> 审核状态 </span>
-						<span v-if="Auditstatus" class="el-dropdown-link">
-							{{ Auditstatus }}
-						</span>
-						<i class="el-icon-arrow-down el-icon--right" />
-					</div>
-					<el-dropdown-menu slot="dropdown">
-						<el-dropdown-item command="全部">全部</el-dropdown-item>
-						<el-dropdown-item command="待审核">待审核</el-dropdown-item>
-						<el-dropdown-item command="通过">通过</el-dropdown-item>
-						<el-dropdown-item command="未通过">未通过</el-dropdown-item>
-					</el-dropdown-menu>
-				</el-dropdown>
-			</div>
-			<div class="grid-content bg-purple" style="display: flex; justify-content: flex-end; margin-left: 10px">
-				<el-button type="success" @click="success">审核成功</el-button>
-				<el-button type="danger" @click="failed">审核失败</el-button>
-				<el-button type="primary" @click="recover">恢复</el-button>
-				<el-button type="warning" @click="deleted">删除</el-button>
-				<el-button type="primary" @click="Exports">全部导出</el-button>
-				<el-button type="primary" @click="batchExports">批量导出</el-button>
-			</div>
-		</el-row>
-		<el-table v-loading="listLoading" :data="temporaryList" element-loading-text="Loading" border fit
-			highlight-current-row @selection-change="handleSelectionChange" @select-all="handleAll">
-			<el-table-column align="center" label="" width="55" type="selection" />
+  <div class="app-container">
+    <el-row type="flex" justify="space-between" style="margin-bottom: 20px">
+      <div class="grid-content bg-purple">
+        <el-input
+          v-model="formData.name"
+          @change="Search"
+          placeholder="请输入业务管理员名称"
+          style="width: 100%"
+        >
+          <i slot="prefix" class="el-input__icon el-icon-search" />
+        </el-input>
+      </div>
+      <div class="grid-content bg-purple">
+        <el-dropdown @command="handleCommand">
+          <div class="pulldown">
+            <span v-if="!status" class="el-dropdown-link">
+              业务管理员状态
+            </span>
+            <span v-if="status" class="el-dropdown-link">
+              {{ status }}
+            </span>
+            <i class="el-icon-arrow-down el-icon--right" />
+          </div>
+          <el-dropdown-menu slot="dropdown">
+            <el-dropdown-item command="全部">全部</el-dropdown-item>
+            <el-dropdown-item command="正常">正常</el-dropdown-item>
+            <el-dropdown-item command="删除">删除</el-dropdown-item>
+          </el-dropdown-menu>
+        </el-dropdown>
+      </div>
+      <div class="grid-content bg-purple">
+        <el-dropdown @command="handlehpCommand">
+          <div class="pulldown">
+            <span v-if="!Auditstatus" class="el-dropdown-link"> 审核状态 </span>
+            <span v-if="Auditstatus" class="el-dropdown-link">
+              {{ Auditstatus }}
+            </span>
+            <i class="el-icon-arrow-down el-icon--right" />
+          </div>
+          <el-dropdown-menu slot="dropdown">
+            <el-dropdown-item command="全部">全部</el-dropdown-item>
+            <el-dropdown-item command="待审核">待审核</el-dropdown-item>
+            <el-dropdown-item command="通过">通过</el-dropdown-item>
+            <el-dropdown-item command="未通过">未通过</el-dropdown-item>
+          </el-dropdown-menu>
+        </el-dropdown>
+      </div>
+      <div
+        class="grid-content bg-purple"
+        style="display: flex; justify-content: flex-end; margin-left: 10px"
+      >
+        <el-button type="success" @click="success">审核成功</el-button>
+        <el-button type="danger" @click="failed">审核失败</el-button>
+        <el-button type="primary" @click="recover">恢复</el-button>
+        <el-button type="warning" @click="deleted">删除</el-button>
+        <el-button type="primary" @click="batchExports">导出</el-button>
+      </div>
+    </el-row>
+    <el-table
+    :row-key="getRowKey"
+      v-loading="listLoading"
+      :data="temporaryList"
+      element-loading-text="Loading"
+      border
+      fit
+      highlight-current-row
+      @selection-change="handleSelectionChange"
+      @select-all="handleAll"
+    >
+      <el-table-column align="center" label="" width="55" type="selection"  :reserve-selection="true" />
 
-			<el-table-column label="业务管理员名称" align="center" width="180" prop="realName" />
-			<el-table-column label="账号" align="center" prop="account" />
-			<el-table-column label="联系电话" width="180" align="center" prop="mobile" />
-			<el-table-column label="审核状态" align="center" prop="approveStatusText" />
-			<el-table-column label="业务管理员状态" align="center" prop="statusText" width="180" />
+      <el-table-column
+        label="业务管理员名称"
+        align="center"
+        width="180"
+        prop="realName"
+      />
+      <el-table-column label="账号" align="center" prop="account" />
+      <el-table-column
+        label="联系电话"
+        width="180"
+        align="center"
+        prop="mobile"
+      />
+      <el-table-column
+        label="审核状态"
+        align="center"
+        prop="approveStatusText"
+      />
+      <el-table-column
+        label="业务管理员状态"
+        align="center"
+        prop="statusText"
+        width="180"
+      />
 
-			<el-table-column label="时间" width="180" align="center" prop="createdAt" />
-			<el-table-column align="center" prop="created_at" label="操作" width="300">
-				<template slot-scope="scope">
-					<el-tag type="success" style="cursor: pointer; margin: 0 5px" @click="Srecover(scope.row.id)"
-						v-if="scope.row.status == 1">恢复</el-tag>
-					<el-tag type="danger" style="cursor: pointer; margin: 0 5px" @click="Sdeleted(scope.row.id)"
-						v-if="scope.row.status == 0">删除</el-tag>
-					<el-tag type="primary" v-permission="['admin']" style="cursor: pointer; margin: 0 5px"
-						@click="reset(scope.row.id)">重置密码
-					</el-tag>
-				</template>
-			</el-table-column>
-		</el-table>
-		<!-- 重置密码弹窗 -->
-		<el-dialog title="重置密码" :visible.sync="dialogVisible" width="30%">
-		  <el-form ref="form" :model="password" label-width="80px">
-		    <el-form-item label="登录密码" prop="password.newpassword">
-		      <el-input
-		        v-model="password.newpassword"
-		        style="width: 300px"
-		        show-password
-		      ></el-input>
-		    </el-form-item>
-		    <el-form-item label="确认密码" prop="password.ConfirmnewPassword">
-		      <el-input
-		        v-model="password.ConfirmnewPassword"
-		        style="width: 300px"
-		        show-password
-		      ></el-input>
-		    </el-form-item>
-		    <el-form-item>
-		      <el-button @click="dialogVisible = false">取 消</el-button>
-		      <el-button type="primary" @click="onSubmit">提交修改</el-button>
-		    </el-form-item>
-		  </el-form>
-		</el-dialog>
-		
-		<div class="pagesip">
-			<el-button type="primary" size="small"
-				style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px" @click="jumpFirstPage">首页
-			</el-button>
-			<el-pagination ref="pagination" background layout="total,prev, pager, next" :total="total"
-				:page-size="pagesize" :current-page="currentPage" prev-text="上一页" next-text="下一页"
-				@current-change="handleCurrentChange" />
-			<el-button type="primary" size="small"
-				style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px" @click="jumpLastPage">尾页
-			</el-button>
-		</div>
-	</div>
+      <el-table-column
+        label="时间"
+        width="180"
+        align="center"
+        prop="createdAt"
+      />
+      <el-table-column
+        align="center"
+        prop="created_at"
+        label="操作"
+        width="300"
+      >
+        <template slot-scope="scope">
+          <el-tag
+            type="success"
+            style="cursor: pointer; margin: 0 5px"
+            @click="Srecover(scope.row.id)"
+            v-if="scope.row.status == 1"
+            >恢复</el-tag
+          >
+          <el-tag
+            type="danger"
+            style="cursor: pointer; margin: 0 5px"
+            @click="Sdeleted(scope.row.id)"
+            v-if="scope.row.status == 0"
+            >删除</el-tag
+          >
+          <el-tag
+            type="primary"
+            v-permission="['admin']"
+            style="cursor: pointer; margin: 0 5px"
+            @click="reset(scope.row.id)"
+            >重置密码
+          </el-tag>
+        </template>
+      </el-table-column>
+    </el-table>
+    <!-- 重置密码弹窗 -->
+    <el-dialog title="重置密码" :visible.sync="dialogVisible" width="30%">
+      <el-form ref="form" :model="password" label-width="80px">
+        <el-form-item label="登录密码" prop="password.newpassword">
+          <el-input
+            v-model="password.newpassword"
+            style="width: 300px"
+            show-password
+          ></el-input>
+        </el-form-item>
+        <el-form-item label="确认密码" prop="password.ConfirmnewPassword">
+          <el-input
+            v-model="password.ConfirmnewPassword"
+            style="width: 300px"
+            show-password
+          ></el-input>
+        </el-form-item>
+        <el-form-item>
+          <el-button @click="dialogVisible = false">取 消</el-button>
+          <el-button type="primary" @click="onSubmit">提交修改</el-button>
+        </el-form-item>
+      </el-form>
+    </el-dialog>
+
+    <div class="pagesip">
+      <el-button
+        type="primary"
+        size="small"
+        style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px"
+        @click="jumpFirstPage"
+        >首页
+      </el-button>
+      <el-pagination
+        ref="pagination"
+        background
+        layout="total,prev, pager, next"
+        :total="total"
+        :page-size="pagesize"
+        :current-page="currentPage"
+        prev-text="上一页"
+        next-text="下一页"
+        @current-change="handleCurrentChange"
+      />
+      <el-button
+        type="primary"
+        size="small"
+        style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px"
+        @click="jumpLastPage"
+        >尾页
+      </el-button>
+    </div>
+  </div>
 </template>
 
 <script>
-	import {
-		dataConversionUtil
-	} from "../../utils/Excel.js";
-	import {
-		getAccountSearch
-	} from "@/api/account";
-	export default {
-		filters: {
-			statusFilter(status) {
-				const statusMap = {
-					published: "success",
-					draft: "gray",
-					deleted: "danger",
-				};
-				return statusMap[status];
-			},
-		},
-		data() {
-			return {
-				dialogVisible:false,
-				// 表单数据
-				formData: {
-					startTime: "",
-					endTime: "",
-					name: "",
-					status: "", //审核状态
-					isDeleted: "", //删除状态
-				},
-				// 重置密码
-				password: {
-				  newpassword: "",
-				  ConfirmnewPassword: "",
-				  userId: "",
-				},
-				/* 当前页数 */
-				currentPage: 1,
-				/* 每页显示个数 */
-				pagesize: 10,
-				/* 总条数 */
-				total: 20,
-				temporaryList: [],
-				srcList: [],
-				list: [],
-				listLoading: false,
-				status: "",
-				Auditstatus: "",
-				checked: false,
-				pickerOptions: {
-					shortcuts: [{
-							text: "最近一周",
-							onClick(picker) {
-								const end = new Date();
-								const start = new Date();
-								start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
-								picker.$emit("pick", [start, end]);
-							},
-						},
-						{
-							text: "最近一个月",
-							onClick(picker) {
-								const end = new Date();
-								const start = new Date();
-								start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
-								picker.$emit("pick", [start, end]);
-							},
-						},
-						{
-							text: "最近三个月",
-							onClick(picker) {
-								const end = new Date();
-								const start = new Date();
-								start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
-								picker.$emit("pick", [start, end]);
-							},
-						},
-					],
-				},
-				value1: "",
-				value2: "",
-				exportExcelData1: [], //导出列表缓存数据整页
-				exportExcelData2: [], //导出列表缓存数据单选
-			};
-		},
-
-		mounted() {
-			this.getAllList();
-		},
-		methods: {
-			/* 获取列表数据 */
-			getAllList(searchForm = {}) {
-				const params = {
-					pageIndex: this.currentPage,
-					pageSize: this.pagesize,
-				};
-				getAccountSearch({
-					...params,
-					...searchForm
-				}).then((res) => {
-					const {
-						data
-					} = res;
-					this.temporaryList = data.result;
-					this.srcList = data.result;
-					this.total = res.data.total;
-				});
-			},
-
-			success() {
-				const ids = Array.from(this.multipleSelection, ({
-					id
-				}) => id);
-				this.$request({
-					url: "/api/Account/manager",
-					method: "post",
-					data: {
-						ids: ids,
-						operateType: 3,
-					},
-				}).then((res) => {
-					if (res.code == 200) {
-						this.$message({
-							type: "success",
-							message: res.msg,
-						});
-						this.getAllList();
-					} else {
-						this.$message({
-							type: "error",
-							message: res.msg,
-						});
-						this.getAllList();
-					}
-				});
-			},
-			failed() {
-				const ids = Array.from(this.multipleSelection, ({
-					id
-				}) => id);
-				this.$request({
-					url: "/api/Account/manager",
-					method: "post",
-					data: {
-						ids: ids,
-						operateType: 4,
-					},
-				}).then((res) => {
-					if (res.code == 200) {
-						this.$message({
-							type: "success",
-							message: res.msg,
-						});
-						this.getAllList();
-					} else {
-						this.$message({
-							type: "error",
-							message: res.msg,
-						});
-						this.getAllList();
-					}
-				});
-			},
-			recover() {
-				const ids = Array.from(this.multipleSelection, ({
-					id
-				}) => id);
-				this.$request({
-					url: "/api/Account/manager",
-					method: "post",
-					data: {
-						ids: ids,
-						operateType: 2,
-					},
-				}).then((res) => {
-					if (res.code == 200) {
-						this.$message({
-							type: "success",
-							message: "恢复成功",
-						});
-						this.getAllList();
-					} else {
-						this.$message({
-							type: "error",
-							message: "恢复失败",
-						});
-						this.getAllList();
-					}
-				});
-			},
-			deleted() {
-				const ids = Array.from(this.multipleSelection, ({
-					id
-				}) => id);
-				this.$request({
-					url: "/api/Account/manager",
-					method: "post",
-					data: {
-						ids: ids,
-						operateType: 1,
-					},
-				}).then((res) => {
-					if (res.code == 200) {
-						this.$message({
-							type: "success",
-							message: "删除成功",
-						});
-						this.getAllList();
-					} else {
-						this.$message({
-							type: "error",
-							message: "删除失败",
-						});
-						this.getAllList();
-					}
-				});
-			},
-			Srecover(id) {
-				this.$request({
-					url: "/api/Account/manager",
-					method: "post",
-					data: {
-						ids: [id],
-						operateType: 2,
-					},
-				}).then((res) => {
-					if (res.code == 200) {
-						this.$message({
-							type: "success",
-							message: "恢复成功",
-						});
-						this.getAllList();
-					} else {
-						this.$message({
-							type: "error",
-							message: "恢复失败",
-						});
-						this.getAllList();
-					}
-				});
-			},
-			Sdeleted(id) {
-				this.$request({
-					url: "/api/Account/manager",
-					method: "post",
-					data: {
-						ids: [id],
-						operateType: 1,
-					},
-				}).then((res) => {
-					if (res.code == 200) {
-						this.$message({
-							type: "success",
-							message: "删除成功",
-						});
-						this.getAllList();
-					} else {
-						this.$message({
-							type: "error",
-							message: "删除失败",
-						});
-						this.getAllList();
-					}
-				});
-			},
+import { dataConversionUtil } from "../../utils/Excel.js";
+import { getAccountSearch } from "@/api/account";
+export default {
+  filters: {
+    statusFilter(status) {
+      const statusMap = {
+        published: "success",
+        draft: "gray",
+        deleted: "danger",
+      };
+      return statusMap[status];
+    },
+  },
+  data() {
+    return {
+      dialogVisible: false,
+      // 表单数据
+      formData: {
+        startTime: "",
+        endTime: "",
+        name: "",
+        status: "", //审核状态
+        isDeleted: "", //删除状态
+      },
+      // 重置密码
+      password: {
+        newpassword: "",
+        ConfirmnewPassword: "",
+        userId: "",
+      },
+      /* 当前页数 */
+      currentPage: 1,
+      /* 每页显示个数 */
+      pagesize: 10,
+      /* 总条数 */
+      total: 20,
+      temporaryList: [],
+      srcList: [],
+      list: [],
+      listLoading: false,
+      status: "",
+      Auditstatus: "",
+      checked: false,
+      pickerOptions: {
+        shortcuts: [
+          {
+            text: "最近一周",
+            onClick(picker) {
+              const end = new Date();
+              const start = new Date();
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
+              picker.$emit("pick", [start, end]);
+            },
+          },
+          {
+            text: "最近一个月",
+            onClick(picker) {
+              const end = new Date();
+              const start = new Date();
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
+              picker.$emit("pick", [start, end]);
+            },
+          },
+          {
+            text: "最近三个月",
+            onClick(picker) {
+              const end = new Date();
+              const start = new Date();
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
+              picker.$emit("pick", [start, end]);
+            },
+          },
+        ],
+      },
+      value1: "",
+      value2: "",
+      exportExcelData1: [], //导出列表缓存数据整页
+      exportExcelData2: [], //导出列表缓存数据单选
+    };
+  },
 
-			/* 输入出票人名称查询 */
-			Search() {
-				this.currentPage = 1;
-				this.searchForm = {
-					...this.formData
-				};
-				this.getAllList(this.searchForm);
-			},
-			/* 业务员状态筛选 */
-			handleCommand(command) {
-				this.status = command;
-				if (command === "全部") {
-					this.formData.isDeleted = "";
-				}
-				if (command === "正常") {
-					this.formData.isDeleted = 0;
-				}
-				if (command === "删除") {
-					this.formData.isDeleted = 1;
-				}
-				this.currentPage = 1;
-				this.searchForm = {
-					...this.formData
-				};
-				this.getAllList(this.searchForm);
-			},
+  mounted() {
+    this.getAllList();
+  },
+  methods: {
+    /* 获取列表数据 */
+    getAllList(searchForm = {}) {
+      const params = {
+        pageIndex: this.currentPage,
+        pageSize: this.pagesize,
+      };
+      getAccountSearch({
+        ...params,
+        ...searchForm,
+      }).then((res) => {
+        const { data } = res;
+        this.temporaryList = data.result;
+        this.srcList = data.result;
+        this.total = res.data.total;
+      });
+    },
 
-			/* 审核状态筛选 */
-			handlehpCommand(command) {
-				this.Auditstatus = command;
-				if (command === "全部") {
-					this.formData.status = "";
-				}
-				if (command === "待审核") {
-					this.formData.status = 1;
-				}
-				if (command === "通过") {
-					this.formData.status = 2;
-				}
-				if (command === "未通过") {
-					this.formData.status = 3;
-				}
-				this.currentPage = 1;
-				this.searchForm = {
-					...this.formData
-				};
-				this.getAllList(this.searchForm);
-			},
+    success() {
+      const ids = Array.from(this.multipleSelection, ({ id }) => id);
+      this.$request({
+        url: "/api/Account/manager",
+        method: "post",
+        data: {
+          ids: ids,
+          operateType: 3,
+        },
+      }).then((res) => {
+        if (res.code == 200) {
+          this.$message({
+            type: "success",
+            message: res.msg,
+          });
+          this.getAllList();
+        } else {
+          this.$message({
+            type: "error",
+            message: res.msg,
+          });
+          this.getAllList();
+        }
+      });
+    },
+    failed() {
+      const ids = Array.from(this.multipleSelection, ({ id }) => id);
+      this.$request({
+        url: "/api/Account/manager",
+        method: "post",
+        data: {
+          ids: ids,
+          operateType: 4,
+        },
+      }).then((res) => {
+        if (res.code == 200) {
+          this.$message({
+            type: "success",
+            message: res.msg,
+          });
+          this.getAllList();
+        } else {
+          this.$message({
+            type: "error",
+            message: res.msg,
+          });
+          this.getAllList();
+        }
+      });
+    },
+    recover() {
+      const ids = Array.from(this.multipleSelection, ({ id }) => id);
+      this.$request({
+        url: "/api/Account/manager",
+        method: "post",
+        data: {
+          ids: ids,
+          operateType: 2,
+        },
+      }).then((res) => {
+        if (res.code == 200) {
+          this.$message({
+            type: "success",
+            message: "恢复成功",
+          });
+          this.getAllList();
+        } else {
+          this.$message({
+            type: "error",
+            message: "恢复失败",
+          });
+          this.getAllList();
+        }
+      });
+    },
+    deleted() {
+      const ids = Array.from(this.multipleSelection, ({ id }) => id);
+      this.$request({
+        url: "/api/Account/manager",
+        method: "post",
+        data: {
+          ids: ids,
+          operateType: 1,
+        },
+      }).then((res) => {
+        if (res.code == 200) {
+          this.$message({
+            type: "success",
+            message: "删除成功",
+          });
+          this.getAllList();
+        } else {
+          this.$message({
+            type: "error",
+            message: "删除失败",
+          });
+          this.getAllList();
+        }
+      });
+    },
+    Srecover(id) {
+      this.$request({
+        url: "/api/Account/manager",
+        method: "post",
+        data: {
+          ids: [id],
+          operateType: 2,
+        },
+      }).then((res) => {
+        if (res.code == 200) {
+          this.$message({
+            type: "success",
+            message: "恢复成功",
+          });
+          this.getAllList();
+        } else {
+          this.$message({
+            type: "error",
+            message: "恢复失败",
+          });
+          this.getAllList();
+        }
+      });
+    },
+    Sdeleted(id) {
+      this.$request({
+        url: "/api/Account/manager",
+        method: "post",
+        data: {
+          ids: [id],
+          operateType: 1,
+        },
+      }).then((res) => {
+        if (res.code == 200) {
+          this.$message({
+            type: "success",
+            message: "删除成功",
+          });
+          this.getAllList();
+        } else {
+          this.$message({
+            type: "error",
+            message: "删除失败",
+          });
+          this.getAllList();
+        }
+      });
+    },
 
-			/* 分页功能,改变当前页 */
-			handleCurrentChange(val) {
-				this.currentPage = val;
-				this.getAllList(this.searchForm);
-			},
+    /* 输入出票人名称查询 */
+    Search() {
+      this.currentPage = 1;
+      this.searchForm = {
+        ...this.formData,
+      };
+      this.getAllList(this.searchForm);
+    },
+    /* 业务员状态筛选 */
+    handleCommand(command) {
+      this.status = command;
+      if (command === "全部") {
+        this.formData.isDeleted = "";
+      }
+      if (command === "正常") {
+        this.formData.isDeleted = 0;
+      }
+      if (command === "删除") {
+        this.formData.isDeleted = 1;
+      }
+      this.currentPage = 1;
+      this.searchForm = {
+        ...this.formData,
+      };
+      this.getAllList(this.searchForm);
+    },
 
-			/* 分页功能去首页 */
-			jumpFirstPage() {
-				this.$refs.pagination.handleCurrentChange(1);
-				this.$emit("handleCurrentChange", 1);
-			},
-			/* 分页功能:去尾页 */
-			jumpLastPage() {
-				let font = this.$refs.pagination;
-				let cpage = Math.ceil(font.total / font.pageSize);
-				font.handleCurrentChange(cpage);
-			},
+    /* 审核状态筛选 */
+    handlehpCommand(command) {
+      this.Auditstatus = command;
+      if (command === "全部") {
+        this.formData.status = "";
+      }
+      if (command === "待审核") {
+        this.formData.status = 1;
+      }
+      if (command === "通过") {
+        this.formData.status = 2;
+      }
+      if (command === "未通过") {
+        this.formData.status = 3;
+      }
+      this.currentPage = 1;
+      this.searchForm = {
+        ...this.formData,
+      };
+      this.getAllList(this.searchForm);
+    },
 
-			/* 批量导出数据 */
-			handleSelectionChange(data) {
-				this.multipleSelection = data
-				this.exportExcelData1.push(data);
-				this.exportExcelData2 = [
-					...new Set(this.exportExcelData1.flat(Infinity)),
-				];
+    /* 分页功能,改变当前页 */
+    handleCurrentChange(val) {
+      this.currentPage = val;
+      this.getAllList(this.searchForm);
+    },
 
-			},
-			handleAll(data) {
-				this.multipleSelection = data
-				this.exportExcelData1.push(data);
-			},
+    /* 分页功能去首页 */
+    jumpFirstPage() {
+      this.$refs.pagination.handleCurrentChange(1);
+      this.$emit("handleCurrentChange", 1);
+    },
+    /* 分页功能:去尾页 */
+    jumpLastPage() {
+      let font = this.$refs.pagination;
+      let cpage = Math.ceil(font.total / font.pageSize);
+      font.handleCurrentChange(cpage);
+    },
 
-			/* 批量导出 */
-			batchExports() {
-				this.multipleSelection = [...new Set(this.exportExcelData1.flat(Infinity))] ||
-					this.exportExcelData2;
+    getRowKey(row) {
+      return row.id;
+    },
+    /* 批量导出数据 */
+    handleSelectionChange(data) {
+      this.multipleSelection = data;
+    },
+    handleAll(data) {
+      this.multipleSelection = data;
+    },
 
+    /* 批量导出 */
+    batchExports() {
       if (this.multipleSelection == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+        this.Exports()
       } else {
         var tableHeader = [
           [
@@ -511,109 +564,108 @@
       });
     },
 
-			/* 全部导出 */
-			Exports() {
-				this.getContacts();
-				setTimeout(() => {
-					var tableHeader = [
-						[
-							"序号",
-							"业务管理员姓名",
-							"账号",
-							"联系电话",
-							"业务管理员状态",
-							"审核状态",
-							"时间",
-						],
-					];
-					var dataList = [];
-					this.multipleSelection.forEach((item, index) => {
-						dataList.push([
-							index + 1,
-							item.realName,
-							item.account,
-							item.mobile,
-							item.statusText,
-							item.approveStatusText,
-							item.createdAt,
-						]);
-					});
-					dataConversionUtil.dataToExcel("业务管理员列表", tableHeader, dataList);
-					this.$message.success("导出成功!");
-					this.multipleSelection = [];
-				}, 1000);
-			},
+    /* 全部导出 */
+    Exports() {
+      this.getContacts();
+      setTimeout(() => {
+        var tableHeader = [
+          [
+            "序号",
+            "业务管理员姓名",
+            "账号",
+            "联系电话",
+            "业务管理员状态",
+            "审核状态",
+            "时间",
+          ],
+        ];
+        var dataList = [];
+        this.multipleSelection.forEach((item, index) => {
+          dataList.push([
+            index + 1,
+            item.realName,
+            item.account,
+            item.mobile,
+            item.statusText,
+            item.approveStatusText,
+            item.createdAt,
+          ]);
+        });
+        dataConversionUtil.dataToExcel("业务管理员列表", tableHeader, dataList);
+        this.$message.success("导出成功!");
+      }, 1000);
+    },
 
-			// 重置业务员密码
-			reset(id) {
-				this.dialogVisible = true;
-				this.password.userId = id;
-			},
-			// 提交修改密码
-			onSubmit() {
-			  if (this.password.newpassword !== this.password.ConfirmnewPassword) {
-			    this.$message({
-			      type: "error",
-			      message: "密码与确认密码不一致",
-			    });
-			  } else if (
-			    this.password.newpassword.length < 6 ||
-			    this.password.ConfirmnewPassword < 6
-			  ) {
-			    this.$message({
-			      type: "error",
-			      message: "密码与确认密码至少6位",
-			    });
-			  } else {
-			    this.$request({
-			      url: "/api/Account/password/resetUser",
-			      method: "post",
-			      data: {
-			        password: this.password.newpassword,
-			        userId: this.password.userId,
-			      },
-			    }).then((res) => {
-			      console.log(res);
-			      if (res.code === 200) {
-			        this.$message({
-			          type: "success",
-			          message: "重置成功",
-			        });
-			        this.dialogVisible = false;
-			      }
-			    });
-			  }
-			},
-		},
-	};
+    // 重置业务员密码
+    reset(id) {
+      this.dialogVisible = true;
+      this.password.userId = id;
+    },
+    // 提交修改密码
+    onSubmit() {
+      if (this.password.newpassword !== this.password.ConfirmnewPassword) {
+        this.$message({
+          type: "error",
+          message: "密码与确认密码不一致",
+        });
+      } else if (
+        this.password.newpassword.length < 6 ||
+        this.password.ConfirmnewPassword < 6
+      ) {
+        this.$message({
+          type: "error",
+          message: "密码与确认密码至少6位",
+        });
+      } else {
+        this.$request({
+          url: "/api/Account/password/resetUser",
+          method: "post",
+          data: {
+            password: this.password.newpassword,
+            userId: this.password.userId,
+          },
+        }).then((res) => {
+          console.log(res);
+          if (res.code === 200) {
+            this.$message({
+              type: "success",
+              message: "重置成功",
+            });
+            this.dialogVisible = false;
+          }
+        });
+      }
+    },
+  },
+};
 </script>
 <style lang="scss" scoped>
-	.pulldown {
-		width: 185px;
-		height: 40px;
-		border: 1px solid #e8e8e8;
-		border-radius: 10px;
-		display: flex;
-		justify-content: center;
-		align-items: center;
-		justify-content: space-between;
-		padding: 0 20px;
-		color: #999999;
-	}
+.pulldown {
+  width: 185px;
+  height: 40px;
+  border: 1px solid #e8e8e8;
+  border-radius: 10px;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  justify-content: space-between;
+  padding: 0 20px;
+  color: #999999;
+}
 
-	.pagesip {
-		width: 100%;
-		margin: 20px auto;
-		display: flex;
-		// align-items: center;
-		justify-content: flex-end;
-	}
+.pagesip {
+  width: 100%;
+  margin: 20px auto;
+  display: flex;
+  // align-items: center;
+  justify-content: flex-end;
+}
 
-	.el-pagination.is-background .el-pager li:not(.disabled).active {
-		background-color: #d8ab5a;
-	}
+.el-pagination.is-background .el-pager li:not(.disabled).active {
+  background-color: #d8ab5a;
+}
 
-	.el-col {
-		margin-bottom: 20px;
-	}
+.el-col {
+  margin-bottom: 20px;
+}
 </style>

+ 11 - 18
src/views/shipments/index.vue

xqd xqd xqd xqd xqd
@@ -40,11 +40,11 @@
         <el-button type="primary" @click="shipments1">出票人分类报表</el-button>
         <el-button type="primary" @click="shipments2">合同统计列表</el-button>
         <el-button type="primary" @click="shipments3">供应商统计列表</el-button>
-        <el-button type="primary" @click="Exports">全部导出</el-button>
-        <el-button type="primary" @click="batchExport">批量导出</el-button>
+        <el-button type="primary" @click="batchExport">导出</el-button>
       </div>
     </el-row>
     <el-table
+      :row-key="getRowKey"
       v-loading="listLoading"
       :data="srcList"
       element-loading-text="Loading"
@@ -54,7 +54,7 @@
       highlight-current-row
       @select-all="handleAll"
     >
-      <el-table-column align="center" label="" width="55" type="selection">
+      <el-table-column align="center" label="" width="55" type="selection" :reserve-selection="true">
       </el-table-column>
       <el-table-column label="承兑人名称" align="center" prop="acceptorName">
       </el-table-column>
@@ -289,27 +289,21 @@ export default {
       });
     },
 
+    getRowKey(row) {
+      return row.id;
+    },
+
     /* 批量导出数据 */
     handleSelectionChange(data) {
-      this.exportExcelData1.push(data);
-      this.exportExcelData2 = [
-        ...new Set(this.exportExcelData1.flat(Infinity)),
-      ];
+      this.multipleSelection = data
     },
     handleAll(data) {
-      this.exportExcelData1.push(data);
+      this.multipleSelection = data
     },
     /* 导出 */
     batchExport() {
-      this.multipleSelection =
-        [...new Set(this.exportExcelData1.flat(Infinity))] ||
-        this.exportExcelData2;
-
       if (this.multipleSelection == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+        this.Exports();
       } else {
         var tableHeader = [
           [
@@ -342,7 +336,7 @@ export default {
     getContacts(number) {
       const params = {
         pageIndex: "",
-        pageSize: "",
+        pageSize: -1,
         startTime: "",
         endTime: "",
         frequency: number || 1,
@@ -381,7 +375,6 @@ export default {
         });
         dataConversionUtil.dataToExcel("承兑人分类报表", tableHeader, dataList);
         this.$message.success("导出成功!");
-        this.multipleSelection = [];
       }, 1000);
     },
   },

+ 16 - 19
src/views/shipments/shipments1.vue

xqd xqd xqd xqd xqd
@@ -40,11 +40,11 @@
         <el-button type="primary" disabled>出票人分类报表</el-button>
         <el-button type="primary" @click="shipments2">合同统计列表</el-button>
         <el-button type="primary" @click="shipments3">供应商统计列表</el-button>
-        <el-button type="primary" @click="Exports">全部导出</el-button>
-        <el-button type="primary" @click="batchExport">批量导出</el-button>
+        <el-button type="primary" @click="batchExport">导出</el-button>
       </div>
     </el-row>
     <el-table
+      :row-key="getRowKey"
       v-loading="listLoading"
       :data="srcList"
       element-loading-text="Loading"
@@ -55,7 +55,13 @@
       @select="handleSelectionChange"
       @select-all="handleAll"
     >
-      <el-table-column align="center" label="" width="55" type="selection">
+      <el-table-column
+        align="center"
+        label=""
+        width="55"
+        type="selection"
+        :reserve-selection="true"
+      >
       </el-table-column>
       <el-table-column label="出票人名称" align="center" prop="drawerName">
       </el-table-column>
@@ -289,28 +295,20 @@ export default {
       const cpage = Math.ceil(font.total / font.pageSize);
       font.handleCurrentChange(cpage);
     },
-
+    getRowKey(row) {
+      return row.id;
+    },
     /* 批量导出数据 */
     handleSelectionChange(data) {
-      this.exportExcelData1.push(data);
-      this.exportExcelData2 = [
-        ...new Set(this.exportExcelData1.flat(Infinity)),
-      ];
+      this.multipleSelection = data
     },
     handleAll(data) {
-      this.exportExcelData1.push(data);
+      this.multipleSelection = data
     },
     /* 批量导出数据 */
     batchExport() {
-      this.multipleSelection =
-        [...new Set(this.exportExcelData1.flat(Infinity))] ||
-        this.exportExcelData2;
-
       if (this.multipleSelection == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+        this.Exports();
       } else {
         var tableHeader = [
           [
@@ -344,7 +342,7 @@ export default {
     getContacts(number) {
       const params = {
         pageIndex: "",
-        pageSize: "",
+        pageSize: -1,
         startTime: "",
         endTime: "",
         frequency: number || 1,
@@ -383,7 +381,6 @@ export default {
         });
         dataConversionUtil.dataToExcel("出票人分类报表", tableHeader, dataList);
         this.$message.success("导出成功!");
-        this.multipleSelection = [];
       }, 1000);
     },
   },

+ 16 - 17
src/views/shipments/shipments2.vue

xqd xqd xqd xqd xqd
@@ -37,11 +37,11 @@
         <el-button type="primary" @click="shipments1">出票人分类报表</el-button>
         <el-button type="primary" disabled>合同统计列表</el-button>
         <el-button type="primary" @click="shipments3">供应商统计列表</el-button>
-        <el-button type="primary" @click="Exports">全部导出</el-button>
-        <el-button type="primary" @click="batchExport">批量导出</el-button>
+        <el-button type="primary" @click="batchExport">导出</el-button>
       </div>
     </el-row>
     <el-table
+      :row-key="getRowKey"
       v-loading="listLoading"
       :data="srcList"
       element-loading-text="Loading"
@@ -51,7 +51,13 @@
       @select="handleSelectionChange"
       @select-all="handleAll"
     >
-      <el-table-column align="center" label="" width="55" type="selection">
+      <el-table-column
+        align="center"
+        label=""
+        width="55"
+        type="selection"
+        :reserve-selection="true"
+      >
       </el-table-column>
       <el-table-column label="合同名称" align="center" prop="contractName">
       </el-table-column>
@@ -276,27 +282,20 @@ export default {
       font.handleCurrentChange(cpage);
     },
 
+    getRowKey(row) {
+      return row.id;
+    },
     /* 批量导出数据 */
     handleSelectionChange(data) {
-      this.exportExcelData1.push(data);
-      this.exportExcelData2 = [
-        ...new Set(this.exportExcelData1.flat(Infinity)),
-      ];
+      this.multipleSelection = data;
     },
     handleAll(data) {
-      this.exportExcelData1.push(data);
+      this.multipleSelection = data;
     },
     /* 批量导出 */
     batchExport() {
-      this.multipleSelection =
-        [...new Set(this.exportExcelData1.flat(Infinity))] ||
-        this.exportExcelData2;
-
       if (this.multipleSelection == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+        this.Exports();
       } else {
         var tableHeader = [
           [
@@ -334,6 +333,7 @@ export default {
         pageSize: "",
         startTime: "",
         contractName: "",
+        pageSize: -1,
       };
       getReportContractReport({ ...params }).then((res) => {
         const { data } = res;
@@ -371,7 +371,6 @@ export default {
         });
         dataConversionUtil.dataToExcel("合同统计列表", tableHeader, dataList);
         this.$message.success("导出成功!");
-        this.multipleSelection = [];
       }, 1000);
     },
   },

+ 10 - 18
src/views/shipments/shipments3.vue

xqd xqd xqd xqd xqd
@@ -39,11 +39,11 @@
         <el-button type="primary" @click="shipments1">出票人分类报表</el-button>
         <el-button type="primary" @click="shipments2">合同统计列表</el-button>
         <el-button type="primary" disabled>供应商统计列表</el-button>
-        <el-button type="primary" @click="Exports">全部导出</el-button>
-        <el-button type="primary" @click="batchExport">批量导出</el-button>
+        <el-button type="primary" @click="batchExport">导出</el-button>
       </div>
     </el-row>
     <el-table
+    :row-key="getRowKey"
       v-loading="listLoading"
       :data="srcList"
       element-loading-text="Loading"
@@ -53,7 +53,7 @@
       @select="handleSelectionChange"
       @select-all="handleAll"
     >
-      <el-table-column align="center" label="" width="55" type="selection">
+      <el-table-column align="center" label="" width="55" type="selection" :reserve-selection="true">
       </el-table-column>
       <el-table-column label="供应商名称" align="center" prop="supplierName">
       </el-table-column>
@@ -276,27 +276,20 @@ export default {
       font.handleCurrentChange(cpage);
     },
 
+     getRowKey(row) {
+      return row.id;
+    },
     /* 批量导出数据 */
     handleSelectionChange(data) {
-      this.exportExcelData1.push(data);
-      this.exportExcelData2 = [
-        ...new Set(this.exportExcelData1.flat(Infinity)),
-      ];
+      this.multipleSelection = data
     },
     handleAll(data) {
-      this.exportExcelData1.push(data);
+      this.multipleSelection = data
     },
     /* 导出 */
     batchExport() {
-      this.multipleSelection =
-        [...new Set(this.exportExcelData1.flat(Infinity))] ||
-        this.exportExcelData2;
-
       if (this.multipleSelection == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+        this.Exports()
       } else {
         var tableHeader = [
           [
@@ -331,7 +324,7 @@ export default {
     getContacts() {
       const params = {
         pageIndex: "",
-        pageSize: "",
+        pageSize: -1,
         startTime: "",
         supplierName: "",
       };
@@ -371,7 +364,6 @@ export default {
         });
         dataConversionUtil.dataToExcel("供应商统计列表", tableHeader, dataList);
         this.$message.success("导出成功!");
-        this.multipleSelection = [];
       }, 1000);
     },
   },

+ 21 - 23
src/views/sucuirtyaudit/annexList.vue

xqd xqd xqd xqd xqd xqd xqd xqd
@@ -48,12 +48,12 @@
       >
         <el-button type="primary" @click="toindex">操作日志</el-button>
         <el-button type="primary" disabled>附件列表</el-button>
-        <el-button type="primary" @click="Exports">全部导出</el-button>
-        <el-button type="primary" @click="batchExports">批量导出</el-button>
+        <el-button type="primary" @click="batchExports">导出</el-button>
         <el-button type="primary">批量下载</el-button>
       </div>
     </el-row>
     <el-table
+      :row-key="getRowKey"
       v-loading="listLoading"
       :data="temporaryList"
       element-loading-text="Loading"
@@ -63,7 +63,13 @@
       @select="handleSelectionChange"
       @select-all="handleAll"
     >
-      <el-table-column align="center" label="" width="55" type="selection">
+      <el-table-column
+        align="center"
+        label=""
+        width="55"
+        type="selection"
+        :reserve-selection="true"
+      >
       </el-table-column>
       <el-table-column align="center" label="合同名称" width="210" prop="name">
       </el-table-column>
@@ -88,7 +94,7 @@
         width="300"
         prop="picUrls"
       >
-       <template slot-scope="scope">
+        <template slot-scope="scope">
           <!-- <img
             width="100"
             height="100"
@@ -96,9 +102,8 @@
             :key="item.id"
             :src="item"
           /> -->
-		  <FileShow :files="scope.row.picUrls" />
+          <FileShow :files="scope.row.picUrls" />
         </template>
-				
       </el-table-column>
       <!-- 发票附件 -->
       <el-table-column
@@ -108,14 +113,14 @@
         prop="invoicePics"
       >
         <template slot-scope="scope">
-         <!-- <img
+          <!-- <img
             width="100"
             height="100"
             v-for="item in scope.row.invoicePics"
             :key="item.id"
             :src="item"
           /> -->
-		  <FileShow :files="scope.row.invoicePics" />
+          <FileShow :files="scope.row.invoicePics" />
         </template>
       </el-table-column>
       <!-- 贸易合同 -->
@@ -133,7 +138,7 @@
             :key="item.id"
             :src="item"
           /> -->
-		  <FileShow :files="scope.row.tradePics" />
+          <FileShow :files="scope.row.tradePics" />
         </template>
       </el-table-column>
 
@@ -394,27 +399,21 @@ export default {
       return decodeURI(filename);
     },
 
+    getRowKey(row) {
+      return row.id;
+    },
+
     /* 批量导出 */
     handleSelectionChange(data) {
-      this.exportExcelData1.push(data);
-      this.exportExcelData2 = [
-        ...new Set(this.exportExcelData1.flat(Infinity)),
-      ];
+      this.multipleSelection = data;
     },
     handleAll(data) {
-      this.exportExcelData1.push(data);
+      this.multipleSelection = data;
     },
     /* 批量导出数据 */
     batchExports() {
-      this.multipleSelection =
-        [...new Set(this.exportExcelData1.flat(Infinity))] ||
-        this.exportExcelData2;
-
       if (this.multipleSelection == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+        this.Exports();
       } else {
         var tableHeader = [
           [
@@ -487,7 +486,6 @@ export default {
         });
         dataConversionUtil.dataToExcel("附件列表", tableHeader, dataList);
         this.$message.success("导出成功!");
-        this.multipleSelection = [];
       }, 1000);
     },
   },

+ 9 - 17
src/views/sucuirtyaudit/index.vue

xqd xqd xqd xqd
@@ -48,11 +48,11 @@
       >
         <el-button type="primary" disabled>操作日志</el-button>
         <el-button type="primary" @click="toannexList">附件列表</el-button>
-        <el-button type="primary" @click="Exports">全部导出</el-button>
-        <el-button type="primary" @click="batchExports">批量导出</el-button>
+        <el-button type="primary" @click="batchExports">导出</el-button>
       </div>
     </el-row>
     <el-table
+    :row-key="getRowKey"
       v-loading="listLoading"
       :data="temporaryList"
       element-loading-text="Loading"
@@ -62,7 +62,7 @@
       @select="handleSelectionChange"
       @select-all="handleAll"
     >
-      <el-table-column align="center" label="" width="55" type="selection">
+      <el-table-column align="center" label="" width="55" type="selection" :reserve-selection="true">
       </el-table-column>
       <el-table-column
         align="center"
@@ -300,26 +300,19 @@ export default {
       font.handleCurrentChange(cpage);
     },
 
+    getRowKey(row) {
+      return row.id;
+    },
     /* 批量导出 */
     handleSelectionChange(data) {
-      this.exportExcelData1.push(data);
-      this.exportExcelData2 = [
-        ...new Set(this.exportExcelData1.flat(Infinity)),
-      ];
+      this.multipleSelection = data
     },
     handleAll(data) {
-      this.exportExcelData1.push(data);
+      this.multipleSelection = data
     },
     batchExports() {
-      this.multipleSelection =
-        [...new Set(this.exportExcelData1.flat(Infinity))] ||
-        this.exportExcelData2;
-
       if (this.multipleSelection == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+        this.Exports()
       } else {
         var tableHeader = [
           ["序号", "操作日", "事件", "操作人员", "操作状态", "操作说明"],
@@ -375,7 +368,6 @@ export default {
         });
         dataConversionUtil.dataToExcel("安全审计列表", tableHeader, dataList);
         this.$message.success("导出成功!");
-        this.multipleSelection = [];
       }, 1000);
     },
   },

+ 16 - 23
src/views/table/index.vue

xqd xqd xqd xqd xqd xqd xqd xqd
@@ -39,8 +39,7 @@
         <el-button type="primary" @click="dialogVisible2 = true"
           >新增承兑人</el-button
         >
-        <el-button type="primary" @click="Exports">全部导出</el-button>
-        <el-button type="primary" @click="batchExports">批量导出</el-button>
+        <el-button type="primary" @click="batchExports">导出</el-button>
       </div>
     </el-row>
 
@@ -160,6 +159,8 @@
     </el-dialog>
 
     <el-table
+      :row-key="getRowKey"
+      
       v-loading="listLoading"
       :data="temporaryList"
       element-loading-text="Loading"
@@ -169,7 +170,7 @@
       @select="handleSelectionChange"
       @select-all="handleAll"
     >
-      <el-table-column align="center" label="" width="55" type="selection">
+      <el-table-column align="center" label="" width="55" type="selection" :reserve-selection="true">
       </el-table-column>
       <el-table-column label="承兑人名称" align="center" prop="name">
       </el-table-column>
@@ -299,7 +300,7 @@ export default {
         bankName: "",
         id: "",
       },
-	  oldTableData:'',
+      oldTableData: "",
       /* 当前页数 */
       currentPage: 1,
       /* 每页显示个数 */
@@ -523,12 +524,13 @@ export default {
         console.log(res);
         this.tableData = res.data;
         this.tableData.id = id;
-		this.oldTableData={...this.tableData}
+        this.oldTableData = { ...this.tableData };
       });
       this.dialogVisible1 = true;
     },
     // 弹窗修改
     onSubmit() {
+
 	  if(JSON.stringify(this.oldTableData)===JSON.stringify(this.tableData)){
 		  this.$message({
 			  type:'error',
@@ -560,6 +562,7 @@ export default {
 		  });
 		  this.dialogVisible1 = false;
 	  }
+
     },
 
     /* 输入承兑人状态查询 */
@@ -608,31 +611,22 @@ export default {
       font.handleCurrentChange(cpage);
     },
 
+    getRowKey(row) {
+      return row.id;
+    },
+
     /* 批量导出数据 */
     handleSelectionChange(data) {
-	  this.multipleSelection=data
-	  console.log(this.multipleSelection)
-      this.exportExcelData1.push(data);
-      this.exportExcelData2 = [
-        ...new Set(this.exportExcelData1.flat(Infinity)),
-      ];
+      this.multipleSelection = data
+
     },
     handleAll(data) {
-	  this.multipleSelection=data
-	  console.log(this.multipleSelection)
-      this.exportExcelData1.push(data);
+      this.multipleSelection = data
     },
     /* 导出 */
     batchExports() {
-      this.multipleSelection =
-        [...new Set(this.exportExcelData1.flat(Infinity))] ||
-        this.exportExcelData2;
-
       if (this.multipleSelection == "") {
-        this.$message({
-          type: "warning",
-          message: "请选择数据!",
-        });
+        this.Exports();
       } else {
         var tableHeader = [
           [
@@ -717,7 +711,6 @@ export default {
         });
         dataConversionUtil.dataToExcel("承兑人列表", tableHeader, dataList);
         this.$message.success("导出成功!");
-        this.multipleSelection = [];
       }, 1000);
     },
   },