From 0b96d2c9621b0f2054732f7eb5f6b856550a02f2 Mon Sep 17 00:00:00 2001
From: bibi <541660090@qq.com>
Date: Wed, 9 Mar 2022 13:44:14 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BC=B4=E8=B4=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/payment/chargeStandardBind/index.js | 24 +-
src/api/payment/chargeStandardManage/index.js | 28 ++
src/api/payment/prepayManage/index.js | 24 ++
.../ChargeStandardBind/depend/config.js | 24 +-
.../ChargeStandardBind/depend/table.js | 38 ++
.../Payment/ChargeStandardBind/index.vue | 185 ++++++--
.../ChargeStandardManage/depend/config.js | 10 +-
.../ChargeStandardManage/depend/form.js | 234 +++++++++-
.../ChargeStandardManage/depend/form.vue | 405 +++++++++++++++++-
.../Payment/ChargeStandardManage/index.vue | 38 +-
.../Payment/PrepayManage/depend/config.js | 47 +-
src/views/Payment/PrepayManage/depend/form.js | 7 -
.../Payment/PrepayManage/depend/form.vue | 73 ----
src/views/Payment/PrepayManage/depend/list.js | 51 +++
.../Payment/PrepayManage/depend/preList.vue | 33 ++
src/views/Payment/PrepayManage/index.vue | 88 ++--
16 files changed, 1066 insertions(+), 243 deletions(-)
create mode 100644 src/api/payment/prepayManage/index.js
create mode 100644 src/views/Payment/ChargeStandardBind/depend/table.js
delete mode 100644 src/views/Payment/PrepayManage/depend/form.js
delete mode 100644 src/views/Payment/PrepayManage/depend/form.vue
create mode 100644 src/views/Payment/PrepayManage/depend/list.js
create mode 100644 src/views/Payment/PrepayManage/depend/preList.vue
diff --git a/src/api/payment/chargeStandardBind/index.js b/src/api/payment/chargeStandardBind/index.js
index c81d6bd..6c2bc9c 100644
--- a/src/api/payment/chargeStandardBind/index.js
+++ b/src/api/payment/chargeStandardBind/index.js
@@ -1,10 +1,24 @@
import httpService from "@/request"
-// 活动列表
-export function activityList(params) {
+// 收费标准列表
+export function bindList(params) {
return httpService({
- url: `/user/activity/list`,
- method: 'get',
- params: params,
+ url: `/user/chargesBind/list`,
+ method: 'post',
+ data: params,
+ })
+}
+export function bind(params) {
+ return httpService({
+ url: `/user/chargesBind/bind`,
+ method: 'post',
+ data: params,
+ })
+}
+export function unbind(params) {
+ return httpService({
+ url: `/user/chargesBind/unbind`,
+ method: 'post',
+ data: params,
})
}
\ No newline at end of file
diff --git a/src/api/payment/chargeStandardManage/index.js b/src/api/payment/chargeStandardManage/index.js
index e4f6ae6..5291270 100644
--- a/src/api/payment/chargeStandardManage/index.js
+++ b/src/api/payment/chargeStandardManage/index.js
@@ -7,4 +7,32 @@ export function chargesList(params) {
method: 'get',
params: params,
})
+}
+export function chargesInfo(params) {
+ return httpService({
+ url: `/user/charges/findById`,
+ method: 'get',
+ params: params,
+ })
+}
+export function chargesInsert(params) {
+ return httpService({
+ url: `/user/charges/insert`,
+ method: 'post',
+ data: params,
+ })
+}
+export function chargesUpdate(params) {
+ return httpService({
+ url: `/user/charges/update`,
+ method: 'post',
+ data: params,
+ })
+}
+export function chargesDel(params) {
+ return httpService({
+ url: `/user/charges/delete`,
+ method: 'post',
+ data: params,
+ })
}
\ No newline at end of file
diff --git a/src/api/payment/prepayManage/index.js b/src/api/payment/prepayManage/index.js
new file mode 100644
index 0000000..ac46ac7
--- /dev/null
+++ b/src/api/payment/prepayManage/index.js
@@ -0,0 +1,24 @@
+import httpService from "@/request"
+
+// 预缴列表
+export function prepaymentList(params) {
+ return httpService({
+ url: `/user/prepayment/list`,
+ method: 'get',
+ params: params,
+ })
+}
+export function rechargeList(params) {
+ return httpService({
+ url: `/user/prepayment/rechargeList`,
+ method: 'get',
+ params: params,
+ })
+}
+export function recharge(params) {
+ return httpService({
+ url: `/user/prepayment/recharge`,
+ method: 'post',
+ data: params,
+ })
+}
diff --git a/src/views/Payment/ChargeStandardBind/depend/config.js b/src/views/Payment/ChargeStandardBind/depend/config.js
index 3f6c8ce..4a8603f 100644
--- a/src/views/Payment/ChargeStandardBind/depend/config.js
+++ b/src/views/Payment/ChargeStandardBind/depend/config.js
@@ -1,19 +1,19 @@
export const columns = [
- {
- title: "收费标准名称",
- dataIndex: "name",
- },
{
title: "计费方式",
- dataIndex: "feeType",
+ dataIndex: "billingType",
},
{
title: "计量方式",
- dataIndex: "Type",
+ dataIndex: "calculateType",
},
{
title: "单价",
- dataIndex: "price",
+ dataIndex: "calculateUnit",
+ },
+ {
+ title: "备注",
+ dataIndex: "remarks",
},
{
title: "操作",
@@ -23,12 +23,4 @@ export const columns = [
fixed: "right",
scopedSlots: { customRender: "action" },
},
-]
-export const pagination = {
- current: 1,
- total: 0,
- pageSize: 10,
- showTotal: (total) => `共 ${total} 条`,
- showSizeChanger: true,
- showQuickJumper: true,
-}
\ No newline at end of file
+]
\ No newline at end of file
diff --git a/src/views/Payment/ChargeStandardBind/depend/table.js b/src/views/Payment/ChargeStandardBind/depend/table.js
new file mode 100644
index 0000000..d5da01a
--- /dev/null
+++ b/src/views/Payment/ChargeStandardBind/depend/table.js
@@ -0,0 +1,38 @@
+export const formItem = [
+ {
+ type: 'input',
+ label:'费用名称',
+ prop:'name',
+ placeholder:'请输入'
+ },
+]
+export const tableColumns = [
+ {
+ title: "费用名称",
+ dataIndex: "name",
+ },
+ {
+ title: "计费方式",
+ dataIndex: "billingType",
+ },
+ {
+ title: "计量方式",
+ dataIndex: "calculateType",
+ },
+ {
+ title: "单价",
+ dataIndex: "calculateUnit",
+ },
+ {
+ title: "备注",
+ dataIndex: "remarks",
+ },
+]
+export const pagination = {
+ current: 1,
+ total: 0,
+ pageSize: 10,
+ showTotal: (total) => `共 ${total} 条`,
+ showSizeChanger: true,
+ showQuickJumper: true,
+}
\ No newline at end of file
diff --git a/src/views/Payment/ChargeStandardBind/index.vue b/src/views/Payment/ChargeStandardBind/index.vue
index dbcb8c5..3d2c996 100644
--- a/src/views/Payment/ChargeStandardBind/index.vue
+++ b/src/views/Payment/ChargeStandardBind/index.vue
@@ -11,6 +11,7 @@
:selected-keys="selectedKeys"
:tree-data="treeData"
@expand="onExpand"
+ @check="onCheck"
@select="onSelect"
:replaceFields="{
children: 'childList',
@@ -23,14 +24,12 @@