|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<div v-if="showPage == 1">
|
|
|
- <el-radio-group @change="changeRadioFn" v-model="searchForm.examineStatus" size="">
|
|
|
+ <el-radio-group @change="changeRadioFn" v-model="searchForm.examineStatus" size="mini">
|
|
|
<el-radio-button label="">全部</el-radio-button>
|
|
|
<el-radio-button label="SAVE">保存</el-radio-button>
|
|
|
<el-radio-button label="WAIT">待审核</el-radio-button>
|
|
@@ -14,7 +14,7 @@
|
|
|
<br /><br />
|
|
|
<!-- 筛选条件 -->
|
|
|
<div>
|
|
|
- <el-form ref="searchForm" :model="searchForm" label-width="100px" size="small" label-position="left">
|
|
|
+ <el-form ref="searchForm" :model="searchForm" label-width="100px" size="mini" label-position="left">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="经销商名称" prop="customerName">
|
|
@@ -46,8 +46,8 @@
|
|
|
|
|
|
<el-col :xs="24" :sm="12" :lg="18">
|
|
|
<el-form-item label="" class="fr">
|
|
|
- <el-button size="small" @click="cancelFn">清空</el-button>
|
|
|
- <el-button size="small" type="primary" @click="searchFn">搜索</el-button>
|
|
|
+ <el-button size="mini" @click="cancelFn">清空</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="searchFn">搜索</el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -55,6 +55,11 @@
|
|
|
</div>
|
|
|
<!-- 按钮 -->
|
|
|
<div class="btn-group clearfix">
|
|
|
+ <div class="fl">
|
|
|
+ <el-popconfirm v-if="$checkBtnRole('del', $route.meta.roles)" class="delClass" @onConfirm="deleFn" title="这是一段内容确定删除吗?">
|
|
|
+ <el-button :disabled="deleList.length < 1" slot="reference" type="danger" icon="el-icon-minus" size="mini">批量删除</el-button>
|
|
|
+ </el-popconfirm>
|
|
|
+ </div>
|
|
|
<div class="fr">
|
|
|
<ExportButton :exUrl="'/rebate/order/export'" :exParams="exParams" />
|
|
|
</div>
|
|
@@ -62,7 +67,8 @@
|
|
|
<!-- 列表 -->
|
|
|
<div class="mymain-container">
|
|
|
<div class="table">
|
|
|
- <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe show-summary :summary-method="$getSummaries">
|
|
|
+ <el-table @selection-change="selectionChangeFn" v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe show-summary :summary-method="$getSummaries">
|
|
|
+ <el-table-column :selectable='selectableFn' align="center" type="selection" width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="left" label="状态" prop="examineStatus" min-width="160" show-overflow-tooltip v-if="!isCustomer">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag v-show="scope.row.examineStatus == 'SAVE'">保存</el-tag>
|
|
@@ -232,6 +238,7 @@
|
|
|
import {
|
|
|
getRebateOrderList,
|
|
|
getRebateOrderApply,
|
|
|
+ getRebateOrderBatchDel,
|
|
|
} from "@/api/finance/rebate_list";
|
|
|
import RebateListApply from "./components/rebate_list-apply.vue";
|
|
|
import RebateListExamine from "./components/rebate_list-examine.vue";
|
|
@@ -252,6 +259,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ deleList: [],
|
|
|
currentPage: 1, // 当前页码
|
|
|
pageSize: 10, // 每页数量
|
|
|
listTotal: 0, // 列表总数
|
|
@@ -298,6 +306,35 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 批量删除
|
|
|
+ selectionChangeFn(value) {
|
|
|
+ // console.log(value);
|
|
|
+ const res = value.map((v) => v.rebateOrderId);
|
|
|
+ // console.log(res);
|
|
|
+ this.deleList = res;
|
|
|
+ },
|
|
|
+ //删除
|
|
|
+ async deleFn() {
|
|
|
+ let res = this.deleList.toString();
|
|
|
+ // console.log(res);
|
|
|
+ await getRebateOrderBatchDel({ ids: res });
|
|
|
+ this.getDataList({
|
|
|
+ ...this.searchForm,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ pageNum: this.currentPage,
|
|
|
+ });
|
|
|
+ this.$message.success("删除成功");
|
|
|
+ this.deleList = [];
|
|
|
+ },
|
|
|
+
|
|
|
+ selectableFn(row, index) {
|
|
|
+ // console.log(row, index, 444);
|
|
|
+ if (row.examineStatus !== "SAVE") {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
//切换radio获取数据
|
|
|
changeRadioFn(v) {
|
|
|
// console.log(111);
|