|
@@ -1,7 +1,7 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
<div class="m-container">
|
|
|
- <div class="m-core">
|
|
|
+ <div>
|
|
|
<save-form
|
|
|
:inline="true"
|
|
|
class="searchForm"
|
|
@@ -9,8 +9,6 @@
|
|
|
@reset="reset"
|
|
|
:model="searchForm"
|
|
|
>
|
|
|
-
|
|
|
-
|
|
|
<el-form-item prop="memberId">
|
|
|
<el-input
|
|
|
v-model.trim="searchForm.memberId"
|
|
@@ -212,7 +210,9 @@
|
|
|
type="number"
|
|
|
placeholder="请输入每日最大收款金额"
|
|
|
>
|
|
|
- <template slot="append">元</template>
|
|
|
+ <template slot="append"
|
|
|
+ >元</template
|
|
|
+ >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="满额转到收款账户" prop="organId">
|
|
@@ -260,7 +260,7 @@ import AccountForm from "./form";
|
|
|
import {
|
|
|
queryPageList,
|
|
|
createSettleAccount,
|
|
|
- updateMonthMaxReceipt,
|
|
|
+ updateMonthMaxReceipt
|
|
|
} from "./api.js";
|
|
|
import { getPaymentConfigs } from "../chargeManager/api";
|
|
|
import { cityJson } from "../../utils/cityJson";
|
|
@@ -269,12 +269,12 @@ import cleanDeep from "clean-deep";
|
|
|
const initSearch = {
|
|
|
memberId: null,
|
|
|
name: null,
|
|
|
- status: null,
|
|
|
+ status: null
|
|
|
};
|
|
|
export default {
|
|
|
components: {
|
|
|
pagination,
|
|
|
- AccountForm,
|
|
|
+ AccountForm
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -285,42 +285,42 @@ export default {
|
|
|
limit: 20, // 限制显示条数
|
|
|
page: 1, // 当前页
|
|
|
total: 0, // 总条数
|
|
|
- page_size: [10, 20, 50, 100], // 选择限制显示条数
|
|
|
+ page_size: [10, 20, 50, 100] // 选择限制显示条数
|
|
|
},
|
|
|
tableList: [],
|
|
|
searchForm: { ...initSearch },
|
|
|
maskRules: {
|
|
|
cardNo: [
|
|
|
- { required: true, message: "请输入银行卡号", trigger: "blur" },
|
|
|
+ { required: true, message: "请输入银行卡号", trigger: "blur" }
|
|
|
],
|
|
|
bankCode: [
|
|
|
- { required: true, message: "请选择所属银行", trigger: "change" },
|
|
|
- ],
|
|
|
+ { required: true, message: "请选择所属银行", trigger: "change" }
|
|
|
+ ]
|
|
|
},
|
|
|
maskForm: {
|
|
|
memberId: null,
|
|
|
cardNo: null,
|
|
|
- bankCode: null,
|
|
|
+ bankCode: null
|
|
|
},
|
|
|
moneyVisible: false,
|
|
|
moneyForm: {
|
|
|
monthMaxReceipt: null,
|
|
|
organId: null,
|
|
|
- routeMemberId: null,
|
|
|
+ routeMemberId: null
|
|
|
},
|
|
|
moneyRules: {
|
|
|
monthMaxReceipt: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请输入每日最大收款金额",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
organId: [
|
|
|
- { required: true, message: "请选择满额转分部", trigger: "change" },
|
|
|
- ],
|
|
|
+ { required: true, message: "请选择满额转分部", trigger: "change" }
|
|
|
+ ]
|
|
|
},
|
|
|
- calcBranchList: [],
|
|
|
+ calcBranchList: []
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -332,7 +332,7 @@ export default {
|
|
|
let obj = this.searchForm;
|
|
|
obj.page = this.rules.page;
|
|
|
obj.rows = this.rules.limit;
|
|
|
- await queryPageList(cleanDeep(obj)).then((res) => {
|
|
|
+ await queryPageList(cleanDeep(obj)).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.tableList = res.data.rows;
|
|
|
this.rules.total = res.data.total;
|
|
@@ -343,14 +343,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getCalcBranchList() {
|
|
|
- await getPaymentConfigs({ payType: "ADAPAY" }).then((res) => {
|
|
|
+ await getPaymentConfigs({ payType: "ADAPAY" }).then(res => {
|
|
|
this.calcBranchList = [];
|
|
|
if (res.code == 200 && res.data) {
|
|
|
- res.data.forEach((item) => {
|
|
|
+ res.data.forEach(item => {
|
|
|
this.calcBranchList.push({
|
|
|
label: item.hfMerNo,
|
|
|
value: item.organId,
|
|
|
- hfMerNo: item.hfMerNo,
|
|
|
+ hfMerNo: item.hfMerNo
|
|
|
});
|
|
|
});
|
|
|
}
|
|
@@ -377,10 +377,10 @@ export default {
|
|
|
path: "/systemManager/adapayOperation",
|
|
|
query: {
|
|
|
type: type,
|
|
|
- row: JSON.stringify(row),
|
|
|
- },
|
|
|
+ row: JSON.stringify(row)
|
|
|
+ }
|
|
|
},
|
|
|
- (route) => {
|
|
|
+ route => {
|
|
|
route.meta.title = tagTitle + "汇付账号";
|
|
|
}
|
|
|
);
|
|
@@ -391,14 +391,14 @@ export default {
|
|
|
this.maskForm = {
|
|
|
memberId: row.memberId,
|
|
|
cardNo: row.cardNo,
|
|
|
- bankCode: row.bankCode,
|
|
|
+ bankCode: row.bankCode
|
|
|
};
|
|
|
});
|
|
|
},
|
|
|
addZero(formName) {
|
|
|
- this.$refs[formName].validate((valid) => {
|
|
|
+ this.$refs[formName].validate(valid => {
|
|
|
if (valid) {
|
|
|
- createSettleAccount(cleanDeep(this.maskForm)).then((res) => {
|
|
|
+ createSettleAccount(cleanDeep(this.maskForm)).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("修改结算账户成功");
|
|
|
this.zeroVisible = false;
|
|
@@ -413,7 +413,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
onBranchChange(val) {
|
|
|
- this.calcBranchList.forEach((item) => {
|
|
|
+ this.calcBranchList.forEach(item => {
|
|
|
if (item.value == val) {
|
|
|
this.moneyForm.routeMemberId = item.hfMerNo;
|
|
|
}
|
|
@@ -426,15 +426,15 @@ export default {
|
|
|
id: row.id,
|
|
|
organId: row.routeOrganId || null,
|
|
|
monthMaxReceipt: row.monthMaxReceipt,
|
|
|
- routeMemberId: row.routeMemberId,
|
|
|
+ routeMemberId: row.routeMemberId
|
|
|
};
|
|
|
});
|
|
|
this.getCalcBranchList();
|
|
|
},
|
|
|
addMaxMoney(formName) {
|
|
|
- this.$refs[formName].validate(async (valid) => {
|
|
|
+ this.$refs[formName].validate(async valid => {
|
|
|
if (valid) {
|
|
|
- await updateMonthMaxReceipt(cleanDeep(this.moneyForm)).then((res) => {
|
|
|
+ await updateMonthMaxReceipt(cleanDeep(this.moneyForm)).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("设置金额成功");
|
|
|
this.moneyVisible = false;
|
|
@@ -447,19 +447,18 @@ export default {
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
filters: {
|
|
|
formatStatus(val) {
|
|
|
const templateList = {
|
|
|
pending: "处理中",
|
|
|
succeeded: "成功",
|
|
|
- failed: "失败",
|
|
|
+ failed: "失败"
|
|
|
};
|
|
|
return templateList[val];
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
-<style lang='scss' scoped>
|
|
|
-</style>
|
|
|
+<style lang="scss" scoped></style>
|