Commit e04184156a7d8c79271fa63c222004e30c195b5f

Authored by 王强
1 parent 69ee5e01

优化 话费缴费名单确认,返话费预充确认 添加 话费充值总金额、返点比例展示,并对接接口;

src/pages/ehr/PhoneChargeAndSubsidy/subpages/ConfirmThePhoneBillList/components/List.tsx
... ... @@ -2,7 +2,7 @@
2 2 * @Author: wangqiang@feewee.cn
3 3 * @Date: 2022-05-27 11:14:12
4 4 * @LastEditors: wangqiang@feewee.cn
5   - * @LastEditTime: 2023-04-26 14:22:59
  5 + * @LastEditTime: 2023-04-27 16:08:16
6 6 */
7 7 import React from "react";
8 8 import { Table, Divider, Popconfirm, message, Badge } from "antd";
... ...
src/pages/ehr/PhoneChargeAndSubsidy/subpages/ConfirmThePhoneBillList/components/Modal.tsx
1 1 /*
2 2 * @Date: 2021-07-13 14:26:59
3 3 * @LastEditors: wangqiang@feewee.cn
4   - * @LastEditTime: 2023-04-27 09:42:31
  4 + * @LastEditTime: 2023-04-27 16:42:53
5 5 */
6 6 import React, { useEffect, useMemo, useState } from "react";
7 7 import { Form, Modal, message, Input, Divider, Spin, Row } from "antd";
... ... @@ -148,8 +148,9 @@ export default function MobileWhiteModal() {
148 148 0
149 149 ) ?? 0
150 150 )
151   - : undefined,
  151 + : val.sumRealAmount,
152 152 mobileList,
  153 + rebates: val.rebates,
153 154 };
154 155 const api =
155 156 current?.status === ListStatus.返话费预充确认
... ... @@ -223,7 +224,12 @@ export default function MobileWhiteModal() {
223 224 name="shop"
224 225 rules={[{ required: true, message: "请选择结算门店" }]}
225 226 >
226   - <ShopSelectNew disabled={!!checkDetailType} />
  227 + <ShopSelectNew
  228 + disabled={
  229 + !!checkDetailType ||
  230 + current?.status === ListStatus.返话费预充确认
  231 + }
  232 + />
227 233 </Form.Item>
228 234 <Divider />
229 235 <Form.Item noStyle>
... ... @@ -237,6 +243,22 @@ export default function MobileWhiteModal() {
237 243 +(form.getFieldValue("sumPreChargeAmount") ?? 0)
238 244 )} 元`}
239 245 />
  246 + <Form.Item noStyle name="sumRealAmount" />
  247 + <Form.Item noStyle name="rebates" />
  248 + <DetailItem
  249 + title="话费充值总金额"
  250 + style={{ marginBottom: 0 }}
  251 + desp={`${priceToThousands(
  252 + +(form.getFieldValue("sumRealAmount") ?? 0)
  253 + )} 元`}
  254 + />
  255 + <DetailItem
  256 + title="返点比例"
  257 + style={{ marginBottom: 0 }}
  258 + desp={`${priceToThousands(
  259 + +(form.getFieldValue("rebates") ?? 0)
  260 + )} %`}
  261 + />
240 262 <DetailItem
241 263 title="当前预充合计金额"
242 264 style={{ marginBottom: 0 }}
... ...
src/pages/ehr/PhoneChargeAndSubsidy/subpages/ConfirmThePhoneBillList/interface.d.ts
... ... @@ -2,7 +2,7 @@
2 2 * @Author: wangqiang@feewee.cn
3 3 * @Date: 2022-05-27 10:35:22
4 4 * @LastEditors: wangqiang@feewee.cn
5   - * @LastEditTime: 2023-04-26 14:07:17
  5 + * @LastEditTime: 2023-04-27 16:40:23
6 6 */
7 7 declare namespace EHrConfirmThePhoneBillList {
8 8 interface QueryParams {
... ... @@ -39,6 +39,8 @@ declare namespace EHrConfirmThePhoneBillList {
39 39 monthDate?: number; // 结算月份
40 40 mobileList?: MobileStaffItemVO[]; // 手机号列表
41 41 sumPreChargeAmount?: number; // 预充合计金额
  42 + sumRealAmount?: number; // 话费充值总金额
  43 + rebates?: number; // 返点比例
42 44 }
43 45  
44 46 interface MobileStaffItemVO {
... ... @@ -86,8 +88,9 @@ declare namespace EHrConfirmThePhoneBillList {
86 88 shopName?: string; // 结算门店名称
87 89 sumShouldAmount?: number; // 合计应补贴金额
88 90 sumPreChargeAmount?: number; // 合计预充金额
89   - sumRealAmount?: number; // 合计实际补贴金额
  91 + sumRealAmount?: number; // 合计实际补贴金额 / 话费充值总金额
90 92 mobileList?: MobileStaffItemVO[]; // 手机号列表
  93 + rebates?: number; // 返点比例
91 94 }
92 95  
93 96 type PhoneBillProgressItemEventKey =
... ...