+
-
-
+
+
+
+
+
+
+
+ {{ oilCompanyMatch[0].parentMark === 0 ? "主体公司" : "分公司" }}
+
+
+
+
+ {{
+ companyNatureEnum.find(
+ (item) => item.value === oilCompanyMatch[0].companyNature
+ ).label
+ }}
+
+
+
+
+ {{ oilCompanyMatch[0].enableMark === 0 ? "禁用" : "启用" }}
+
+
+
+
+ {{ auditMarkEnum[oilCompanyMatch[0].enableMark] }}
+
+
+
+
+ {{
+ accountStatusEnum.find(
+ (item) => item.value === oilCompanyMatch[1].accountState
+ ).label
+ }}
+
+
+
+
+ {{ oilCompanyMatch[1].accountType == 0 ? "基础账户" : "" }}
+
+
+
+
+
+
+
+ {{ settlementModesEnum[oilCompanyMatch[3].settlementModes] }}
+
+
+
+
+ {{ oilCompanyMatch[3].defaultShare === 1 ? "共享" : "不共享" }}
+
+
+
+
@@ -159,6 +249,8 @@ import autocomplete from "components/autocomplete/index.vue";
import pagination from "components/pagination/index.vue";
import generalDetails from "components/generalDetails/index.vue";
+import { accountStatusEnum } from "utils/dataType.js";
+
export default {
components: {
recharge,
@@ -168,6 +260,7 @@ export default {
},
data() {
return {
+ accountStatusEnum: accountStatusEnum,
oilCompanyAccount: {},
controlWindows: {
detail: false,
@@ -211,14 +304,17 @@ export default {
{
label: "禁用",
value: 0,
+ type: "info",
},
{
label: "启用",
value: 1,
+ type: "",
},
{
label: "冻结",
value: -1,
+ type: "info",
},
],
companyNatureEnum: [
@@ -251,6 +347,86 @@ export default {
value: 6,
},
],
+ oilCompanyMatch: {},
+ mappingData: [
+ {
+ carTitle: "基础信息",
+ // 标记
+ carItems: [
+ { label: "账户ID", value: "id" },
+ { label: "企业名称", value: "name" },
+ { label: "企业简称", value: "abbreviaName" },
+ { label: "是否为主体公司", value: "parentMark" },
+ // { label: "上级公司", value: "name" },
+ { label: "企业性质", value: "companyNature" },
+ { label: "启用标识", value: "enableMark" },
+ { label: "审核标识", value: "auditMark" },
+ { label: "审核说明", value: "auditRemarks" },
+ { label: "创建人编码", value: "createUser" },
+ { label: "创建时间", value: "createTime" },
+ ],
+ },
+ {
+ carTitle: "账户信息",
+ carItems: [
+ { label: "账户总余额", value: "balance" },
+ { label: "待还总金额", value: "totalChargeAmount" },
+ { label: "账户状态", value: "accountState" },
+ { label: "账户类型", value: "accountType" },
+ { label: "账户充值余额", value: "rechargeBalance" },
+ { label: "充值返利余额", value: "rechargeRebateBalance" },
+ { label: "消费返利余额", value: "consumeRebateBalance" },
+ { label: "累计充值金额", value: "totalRechargeAmount" },
+ { label: "累计充值返利金额", value: "totalRechargeRebateAmount" },
+ { label: "累计消费返利金额", value: "totalConsumeRebateAmount" },
+ ],
+ },
+ {
+ carTitle: "认证信息",
+ carItems: [
+ { label: "企业名称", value: "companyName" },
+ { label: "省份名称", value: "provinceName" },
+ { label: "城市名称", value: "cityName" },
+ { label: "区县名称", value: "areaName" },
+ { label: "详细地址", value: "address" },
+ { label: "法人代表", value: "companyLegalPerson" },
+ { label: "注册资本", value: "registeredCapital" },
+ { label: "经营范围", value: "businessScope" },
+ { label: "经营资质", value: "businessQualia" },
+ { label: "联系方式", value: "contactPhone" },
+ { label: "企业网址", value: "website" },
+ { label: "营业执照号码", value: "businessLienceId" },
+ { label: "营业执照照片", value: "businessLienceImg" },
+ { label: "创建人编号", value: "createUser" },
+ { label: "创建时间", value: "createTime" },
+ ],
+ },
+ {
+ carTitle: "财务信息",
+ carItems: [
+ { label: "结算方式", value: "settlementModes" },
+ { label: "充值返利费率", value: "rechargeRebate" },
+ { label: "消费返利叠加费率", value: "consumptionRebate" },
+ { label: "结账周期", value: "billingCycle" },
+ { label: "是否开启企业共享额度", value: "defaultShare" },
+ { label: "默认单次额度上限", value: "defaultOnceUp" },
+ { label: "默认单日加油额度上限", value: "defaultDayUp" },
+ { label: "创建人编号", value: "createUser" },
+ { label: "创建时间", value: "createTime" },
+ ],
+ },
+ ],
+ auditMarkEnum: {
+ 0: "零售客户",
+ 1: "外请客户",
+ 2: "渠道客户",
+ "-3": "存量客户",
+ },
+ settlementModesEnum: {
+ 1: "充值返利",
+ 2: "消费返利",
+ 3: "充值返利+消费返利",
+ },
};
},
created() {
@@ -277,6 +453,7 @@ export default {
},
//table list
getByPage() {
+ this.parameter.params["companyType"] = "4";
serve.getByPage(this.parameter).then((res) => {
this.tableData = res.data.list;
this.parameter.total = res.data.totalCount;
@@ -302,6 +479,31 @@ export default {
},
detail(row) {
//TODO
+ serve.get(row.id).then((res) => {
+ Promise.all([
+ //基础信息
+ serve.getInfo(res.data.companyId),
+ // 账户信息
+ commonServe.getByCompanyId(res.data.companyId),
+ // 认证信息
+ serve.getByCompanyIdAuth(res.data.companyId),
+ // 财务信息
+ commonServe.getByCompanyIdFinance(res.data.companyId),
+ ]).then(([firstRes, secondRes, thirdRes, fourthRes]) => {
+ this.oilCompanyMatch = [
+ firstRes.data,
+ secondRes.data,
+ thirdRes.data,
+ fourthRes.data,
+ ];
+ if (firstRes.parentMark === 1) {
+ serve.getInfo(firstRes.parentId).then((res) => {
+ this.oilCompanyMatch[0] = res.data;
+ this.controlWindows.detail = true;
+ });
+ } else this.controlWindows.detail = true;
+ });
+ });
},
toRecharge(id) {
// 跳转到充值
@@ -339,6 +541,9 @@ export default {
diff --git a/src/views/financialCenter/billDetails/index.vue b/src/views/financialCenter/billDetails/index.vue
index ca9cef6..1321255 100644
--- a/src/views/financialCenter/billDetails/index.vue
+++ b/src/views/financialCenter/billDetails/index.vue
@@ -139,44 +139,59 @@
:mappingData="mappingData"
@close="controlWindows.detail = false"
>
-
-
- 上次:{{ oilCompanyMatch.lastBalance }}
+
+
+ {{
+ rechargeTypeEnum.find(
+ (item) => item.value === oilCompanyMatch[0].billType
+ ).label
+ }}
-
- 本次:{{ oilCompanyMatch.currentBalance }}
+
+
+
+ 上次:{{ oilCompanyMatch[0].lastBalance }}
+
+
+ 本次:{{ oilCompanyMatch[0].currentBalance }}
-
- 上次:{{ oilCompanyMatch.lastRechargeBalance }}
+
+ 上次:{{ oilCompanyMatch[0].lastRechargeBalance }}
-
- 本次:{{ oilCompanyMatch.currentRechargeBalance }}
+
+ 本次:{{ oilCompanyMatch[0].currentRechargeBalance }}
-
- 上次:{{ oilCompanyMatch.lastChargeRechargeBalance }}
+
+ 上次:{{ oilCompanyMatch[0].lastChargeRechargeBalance }}
-
- 本次:{{ oilCompanyMatch.currentChargeRechargeBalance }}
+
+ 本次:{{
+ oilCompanyMatch[0].currentChargeRechargeBalance
+ }}
-
- 上次:{{ oilCompanyMatch.lastRechargeRebateBalance }}
+
+ 上次:{{ oilCompanyMatch[0].lastRechargeRebateBalance }}
-
- 本次:{{ oilCompanyMatch.currentRechargeRebateBalance }}
+
+ 本次:{{
+ oilCompanyMatch[0].currentRechargeRebateBalance
+ }}
-
- 上次:{{ oilCompanyMatch.lastConsumeRebateAmount }}
+
+ 上次:{{ oilCompanyMatch[0].lastConsumeRebateAmount }}
-
- 本次:{{ oilCompanyMatch.currentConsumeRebateAmount }}
+
+ 本次:{{
+ oilCompanyMatch[0].currentConsumeRebateAmount
+ }}
@@ -226,6 +241,8 @@ import commonServe from "api/common.js";
import autocomplete from "components/autocomplete/index.vue";
import pagination from "components/pagination/index.vue";
import generalDetails from "components/generalDetails/index.vue";
+
+import { rechargeTypeEnum } from "utils/dataType.js";
export default {
components: {
pagination,
@@ -259,30 +276,16 @@ export default {
label: "分油",
value: "SEPARATION_OIL",
},
- {
- label: "充值",
- value: "RECHARGE",
- },
{
label: "圈回",
value: "TURN",
},
- {
- label: "销账",
- value: "REVOKE",
- },
- {
- label: "赊销",
- value: "CHARGE_SALES",
- },
+
+ ...rechargeTypeEnum,
{
label: "充值返利",
value: "RECHARGE_REBETE",
},
- {
- label: "消费返利",
- value: "CONSUME_REBATE",
- },
],
oilCompanyMatch: {},
@@ -373,7 +376,7 @@ export default {
};
serve.getCompanyAccountRecord(params).then((res) => {
this.tableDataSec = [];
- this.oilCompanyMatch = row;
+ this.oilCompanyMatch = [row];
this.controlWindows.detail = true;
});
},
@@ -404,6 +407,9 @@ export default {
diff --git a/src/views/financialCenter/enterpriseRechargeDetails/index.vue b/src/views/financialCenter/enterpriseRechargeDetails/index.vue
index 992893f..3e176b3 100644
--- a/src/views/financialCenter/enterpriseRechargeDetails/index.vue
+++ b/src/views/financialCenter/enterpriseRechargeDetails/index.vue
@@ -188,12 +188,57 @@
:mappingData="mappingData"
@close="controlWindows.detail = false"
>
+
+
+ {{
+ oilCompanyMatch[0].transactionType === "TURN"
+ ? LoopBackTypeEnum.find(
+ (item) => item.value === oilCompanyMatch[0].turnType
+ ).label
+ : rechargeTypeEnum.find(
+ (item) => item.value === oilCompanyMatch[0].transactionType
+ ).label
+ }}
+
+
+
+
+ {{
+ rechargeStatusEnum.find(
+ (item) => item.value === oilCompanyMatch[0].transactionState
+ ).label
+ }}
+
+
+
+
+ {{
+ auditMarkEnum.find(
+ (item) => item.value === oilCompanyMatch[0].auditMark
+ ).label
+ }}
+
+
+
+
+ {{
+ accountStatusEnum.find(
+ (item) => item.value === oilCompanyMatch[1].accountState
+ ).label
+ }}
+
+
+
+
+ {{ oilCompanyMatch[1].accountType === "0" ? "基础账户" : "" }}
+
+
@@ -211,6 +256,7 @@ import {
rechargeTypeEnum,
rechargeStatusEnum,
repaymentExamineEnum,
+ accountStatusEnum,
} from "utils/dataType.js";
export default {
@@ -224,6 +270,7 @@ export default {
rechargeTypeEnum: rechargeTypeEnum,
rechargeStatusEnum: rechargeStatusEnum,
repaymentExamineEnum: repaymentExamineEnum,
+ accountStatusEnum: accountStatusEnum,
controlWindows: {
detail: false,
},
@@ -271,6 +318,23 @@ export default {
value: 4,
},
],
+ auditMarkEnum: [
+ {
+ label: "待审核",
+ value: 0,
+ type: "warning",
+ },
+ {
+ label: "审核通过",
+ value: 1,
+ type: "success",
+ },
+ {
+ label: "审核失败",
+ value: -1,
+ type: "danger",
+ },
+ ],
oilCompanyMatch: {},
mappingData: [
@@ -365,7 +429,7 @@ export default {
serve.get(row.id),
commonServe.getByCompanyId(row.companyId),
]).then(([firstRes, secondRes]) => {
- this.oilCompanyMatch = { ...firstRes.data, ...secondRes.data };
+ this.oilCompanyMatch = [firstRes.data, secondRes.data];
this.controlWindows.detail = true;
});
@@ -451,6 +515,9 @@ export default {
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 4368350..c986397 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -9,7 +9,7 @@
label-position="left"
>