From 41d51e701f70606fe4ebc746c0fe6d53e6a60a9e Mon Sep 17 00:00:00 2001 From: douqi <630797947@qq.com> Date: Wed, 22 Feb 2023 08:33:25 +0800 Subject: [PATCH 1/7] =?UTF-8?q?feat:=20=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accountManagement/components/recharge.vue | 144 +++++++++++++++--- .../accountManagement/index.vue | 2 +- 2 files changed, 122 insertions(+), 24 deletions(-) diff --git a/src/views/financialCenter/accountManagement/components/recharge.vue b/src/views/financialCenter/accountManagement/components/recharge.vue index 5ce448c..942b720 100644 --- a/src/views/financialCenter/accountManagement/components/recharge.vue +++ b/src/views/financialCenter/accountManagement/components/recharge.vue @@ -8,22 +8,84 @@ >
+ {{ + oilCompanyMatch.transactionType === "TURN" + ? LoopBackTypeEnum.find( + (item) => item.value === oilCompanyMatch.turnType + ).label + : rechargeTypeEnum.find( + (item) => item.value === oilCompanyMatch.transactionType + ).label + }} +
+ + ++ {{ + rechargeStatusEnum.find( + (item) => item.value === oilCompanyMatch.transactionState + ).label + }} +
+ + ++ {{ + auditMarkEnum.find( + (item) => item.value === oilCompanyMatch.auditMark + ).label + }} +
+ + ++ {{ + accountStatusEnum.find( + (item) => item.value === oilCompanyMatch.accountState + ).label + }} +
+ + ++ {{ oilCompanyMatch.accountType === "0" ? "基础账户" : "" }} +
++ {{ + oilCompanyMatch.transactionType === "TURN" + ? LoopBackTypeEnum.find( + (item) => item.value === oilCompanyMatch.turnType + ).label + : rechargeTypeEnum.find( + (item) => item.value === oilCompanyMatch.transactionType + ).label + }} +
+ + ++ {{ + rechargeStatusEnum.find( + (item) => item.value === oilCompanyMatch.transactionState + ).label + }} +
+ + ++ {{ + auditMarkEnum.find( + (item) => item.value === oilCompanyMatch.auditMark + ).label + }} +
+ + ++ {{ + accountStatusEnum.find( + (item) => item.value === oilCompanyMatch.accountState + ).label + }} +
+ + ++ {{ oilCompanyMatch.accountType === "0" ? "基础账户" : "" }} +
++ {{ + rechargeTypeEnum.find( + (item) => item.value === oilCompanyMatch.billType + ).label + }} +
+
上次:{{ oilCompanyMatch.lastBalance }}
@@ -226,6 +235,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 +270,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: {},
From d53a293bf4e40e9ef939126f1bee04c8f8568e77 Mon Sep 17 00:00:00 2001
From: douqi <630797947@qq.com>
Date: Wed, 22 Feb 2023 09:20:29 +0800
Subject: [PATCH 5/7] =?UTF-8?q?feat:=20=E8=B4=A6=E6=88=B7=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E5=85=85=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/financialCenter/accountManagement.js | 10 ++-
.../accountManagement/components/recharge.vue | 74 ++++++++++++++-----
.../accountManagement/index.vue | 8 +-
3 files changed, 71 insertions(+), 21 deletions(-)
diff --git a/src/api/financialCenter/accountManagement.js b/src/api/financialCenter/accountManagement.js
index 59ea848..b0f1839 100644
--- a/src/api/financialCenter/accountManagement.js
+++ b/src/api/financialCenter/accountManagement.js
@@ -17,6 +17,13 @@ const updateAccountState = (params) => {
const get = (id) => {
return request.get(`/oil-finance/oilCompanyAccount/get/${id}`);
};
+//保存
+const save = (params) => {
+ return request.postJson(
+ "/oil-finance/oilCompanyAccountReverse/save",
+ params
+ );
+};
// //详情
// const getCompanyAccountRecord = (params) => {
// return request.postJson(
@@ -27,5 +34,6 @@ const get = (id) => {
export default {
getByPage,
updateAccountState,
- get
+ get,
+ save
};
diff --git a/src/views/financialCenter/accountManagement/components/recharge.vue b/src/views/financialCenter/accountManagement/components/recharge.vue
index 27f1c54..09887c7 100644
--- a/src/views/financialCenter/accountManagement/components/recharge.vue
+++ b/src/views/financialCenter/accountManagement/components/recharge.vue
@@ -2,20 +2,20 @@
{{ row.companyName }}
+业务负责人:{{ row.businessLeader }}
++ {{ 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 ? "共享" : "不共享" }} +
+ ++
{{ rechargeTypeEnum.find( - (item) => item.value === oilCompanyMatch.billType + (item) => item.value === oilCompanyMatch[0].billType ).label }}
-- 上次:{{ oilCompanyMatch.lastBalance }} +
+ 上次:{{ oilCompanyMatch[0].lastBalance }}
-- 本次:{{ oilCompanyMatch.currentBalance }} +
+ 本次:{{ 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 + }}
@@ -370,7 +376,7 @@ export default { }; serve.getCompanyAccountRecord(params).then((res) => { this.tableDataSec = []; - this.oilCompanyMatch = row; + this.oilCompanyMatch = [row]; this.controlWindows.detail = true; }); }, @@ -401,6 +407,9 @@ export default { diff --git a/src/views/refineryInfo/index.vue b/src/views/refineryInfo/index.vue index 6a86023..53344fb 100644 --- a/src/views/refineryInfo/index.vue +++ b/src/views/refineryInfo/index.vue @@ -1,16 +1,6 @@+ {{ + refineryTypeEnum.find( + (item) => item.value === oilCompanyMatch[0].refineryType + ).label + }} +
+ + ++ {{ oilCompanyMatch[0].enableMark === "ENABLE" ? "启用" : "禁用" }} +
+