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 @@
已绑定收费标准
- 新增绑定 - + - 详情 - 解绑 + 解绑 - - - 无图片 -
- 批量删除 + 批量解绑 批量操作 @@ -72,43 +61,159 @@
+ +
+ + + +
+ +
+ diff --git a/src/views/Payment/ChargeStandardManage/index.vue b/src/views/Payment/ChargeStandardManage/index.vue index 74ff4eb..14e58ee 100644 --- a/src/views/Payment/ChargeStandardManage/index.vue +++ b/src/views/Payment/ChargeStandardManage/index.vue @@ -8,7 +8,7 @@ - 添加费用 + 添加费用 - 修改 + 修改 删除 @@ -44,13 +44,18 @@ + - - diff --git a/src/views/Payment/PrepayManage/depend/list.js b/src/views/Payment/PrepayManage/depend/list.js new file mode 100644 index 0000000..f925a3e --- /dev/null +++ b/src/views/Payment/PrepayManage/depend/list.js @@ -0,0 +1,51 @@ +export const formItem = [ + { + type: 'input', + label:'关键字', + prop:'keyword', + placeholder:'请输入' + }, + { + type: 'select', + label:'余量告警', + prop:'status', + placeholder: '请选择', + option:[{ id:1,name:'充足'},{ id:2,name:'不足'}] + }, +] +export const columns = [ + { + title: "房屋名称", + dataIndex: "manageBuildingName", + scopedSlots: { customRender: "name" }, + }, + { + title: "户主", + dataIndex: "owner", + }, + { + title: "余额", + dataIndex: "balance", + }, + { + title: "余额状态", + dataIndex: "", + scopedSlots:{ customRender: "tags"} + }, + { + title: "操作", + dataIndex: "action", + key: "action", + width: "180", + 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 diff --git a/src/views/Payment/PrepayManage/depend/preList.vue b/src/views/Payment/PrepayManage/depend/preList.vue new file mode 100644 index 0000000..3a51da4 --- /dev/null +++ b/src/views/Payment/PrepayManage/depend/preList.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/src/views/Payment/PrepayManage/index.vue b/src/views/Payment/PrepayManage/index.vue index ac9f9a6..dabd5b2 100644 --- a/src/views/Payment/PrepayManage/index.vue +++ b/src/views/Payment/PrepayManage/index.vue @@ -1,12 +1,7 @@ -