|
@@ -45,7 +45,14 @@
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
-
|
|
|
+ <!-- 按钮 -->
|
|
|
+ <div class="btn-group clearfix">
|
|
|
+ <div class="fr">
|
|
|
+ <el-button type="primary" size="small" @click="exportFn"
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<el-row>
|
|
|
<el-col :xs="24" :sm="12" :lg="12">
|
|
|
<div class="styl">现金钱包</div>
|
|
@@ -225,6 +232,26 @@
|
|
|
<el-button type="primary" @click="determineFn">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <!-- 导出弹窗 -->
|
|
|
+ <el-dialog
|
|
|
+ title="导出"
|
|
|
+ :visible.sync="dialogExportForm"
|
|
|
+ width="30%"
|
|
|
+ :show-close="false"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
+ <el-form
|
|
|
+ ref="exportForm"
|
|
|
+ :rules="exportRules"
|
|
|
+ :model="exportForm"
|
|
|
+ label-width="120px"
|
|
|
+ >
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button>取 消</el-button>
|
|
|
+ <el-button type="primary">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -235,10 +262,14 @@ import {
|
|
|
getWalletRebateRateUpdate,
|
|
|
getCustomerList,
|
|
|
} from "@/api/finance/wallet";
|
|
|
+import { downloadFiles } from "@/utils/util";
|
|
|
import { getWalletCustomerList } from "@/api/finance/change_apply";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ dialogExportForm: false,
|
|
|
+ exportRules: [],
|
|
|
+ exportForm: {},
|
|
|
isShow: JSON.parse(localStorage.getItem("supply_user")).isCustomer,
|
|
|
show: false,
|
|
|
show2: true,
|
|
@@ -349,6 +380,11 @@ export default {
|
|
|
...mapGetters(["customerId"]),
|
|
|
},
|
|
|
methods: {
|
|
|
+ //导出
|
|
|
+ exportFn() {
|
|
|
+ // this.dialogExportForm = true;
|
|
|
+ downloadFiles("/wallet/count/export");
|
|
|
+ },
|
|
|
//清空
|
|
|
resetFn() {
|
|
|
this.$refs.searchForm.resetFields();
|