diff --git a/src/pages/card/memberAccount/index.jsx b/src/pages/card/memberAccount/index.jsx
index 5a590a5..4d2e66a 100644
--- a/src/pages/card/memberAccount/index.jsx
+++ b/src/pages/card/memberAccount/index.jsx
@@ -155,15 +155,15 @@ const memberAccount = () => {
dataIndex: 'type',
valueType: 'select',
valueEnum: {
- 0: {
+ 1: {
text: '人脸',
status: 'Success',
},
- 1: {
+ 2: {
text: '实体卡',
status: 'Success',
},
- 2: {
+ 3: {
text: '指纹',
status: 'Success',
}
diff --git a/src/pages/card/storedValueCard/index.jsx b/src/pages/card/storedValueCard/index.jsx
index 3d49da1..9d60f59 100644
--- a/src/pages/card/storedValueCard/index.jsx
+++ b/src/pages/card/storedValueCard/index.jsx
@@ -70,7 +70,7 @@ const storedValueCard = () => {
"memberCardId": currentOption.id
});
if (response.data === true) {
- message.error('绑定成功');
+ message.success('绑定成功');
actionRef.current.reload();
setBindMemberDrawer(false);
} else {
@@ -172,15 +172,15 @@ const storedValueCard = () => {
dataIndex: 'type',
valueType: 'select',
valueEnum: {
- 0: {
+ 1: {
text: '人脸',
status: 'Success',
},
- 1: {
+ 2: {
text: '实体卡',
status: 'Success',
},
- 2: {
+ 3: {
text: '指纹',
status: 'Success',
}
@@ -265,7 +265,7 @@ const storedValueCard = () => {
onChange: (page) => setCurrent(page),
}}
dateFormatter="string"
- headerTitle="储值卡账户管理"
+ headerTitle="储值卡管理"
toolBarRender={() => [
} type="primary" onClick={onCreateTableRow}>
新建
@@ -324,9 +324,9 @@ const storedValueCard = () => {
]}
>
diff --git a/src/pages/quickStart/components/ConfirmConfig/index.jsx b/src/pages/quickStart/components/ConfirmConfig/index.jsx
index 2a4765b..7f1b413 100644
--- a/src/pages/quickStart/components/ConfirmConfig/index.jsx
+++ b/src/pages/quickStart/components/ConfirmConfig/index.jsx
@@ -1,21 +1,206 @@
import React, { useState, useEffect, useRef } from 'react';
-import ProTable from '@ant-design/pro-table';
-import { Form, Input, Select, InputNumber, TreeSelect, message, Button, Modal, Radio, Upload, Switch, Card } from 'antd';
import quickAPI from "../../service";
import indexStyles from "../../index.less";
import StepsButton from "../StepsButton";
+import { message } from 'antd';
/**
* 确认配置
* @returns
*/
const ConfirmConfig = (props) => {
+ /**
+ * 1.组织配置
+ */
+ //组织树
+ const [orgTree, setOrgTree] = useState([]);
+ //支付方式列表
+ const [payTypeList, setPayTypeList] = useState([]);
+ //获取组织树
+ const onFetchOrgTree = async () => {
+ const response = await await quickAPI.getpage({
+ current: 1,
+ pageSize: 1000
+ });
+ if (response.data.success) {
+ setOrgTree(response.data.data);
+ } else {
+ message.error(response.errors || '获取组织架构出错');
+ }
+ }
+
+ //获取支付配置
+ const getPayTemplateList = async () => {
+ const response = await quickAPI.getPayTemplateList();
+ if (response.statusCode === 200) {
+ setPayTypeList(response.data.data);
+ } else {
+ message.error(response.errors || '获取获取支付方式出错');
+ }
+ }
+
+ useEffect(() => {
+ onFetchOrgTree();
+ getPayTemplateList();
+ }, []);
+
return <>
-
- 组织名称:{quickStartObj.storeConfig.name}
-
+ {/* 1.组织配置 */}
+
+
+
+
+ 组织配置
+ |
+
+
+
+ ID
+ |
+
+ {props.quickStartObj.storeConfig.id}
+ |
+
+
+
+ 编码
+ |
+
+ {props.quickStartObj.storeConfig.code}
+ |
+
+
+
+ 名称
+ |
+
+ {props.quickStartObj.storeConfig.name}
+ |
+
+
+
+ 上级组织
+ |
+
+ {(() => {
+ const pid = props.quickStartObj.storeConfig.pid;
+ const find = orgTree.find(item => item.id === pid);
+ if (find) {
+ return find.name;
+ } else {
+ return "无上级组织"
+ }
+ })()}
+ |
+
+
+
+ 组织类型
+ |
+
+ {props.quickStartObj.storeConfig.type}
+ |
+
+
+
+ 支付方式
+ |
+
+ {(() => {
+ const payTemplateId = props.quickStartObj.storeConfig.payTemplateId;
+ const find = payTypeList.find(item => item.id === payTemplateId);
+ if (find) {
+ return find.name;
+ } else {
+ return "无支付方式"
+ }
+ })()}
+ |
+
+
+
+ 店铺地址
+ |
+
+ {props.quickStartObj.storeConfig.store_Addr}
+ |
+
+
+
+ 店铺坐标
+ |
+
+ {props.quickStartObj.storeConfig.store_Loc}
+ |
+
+
+
+ 联系电话
+ |
+
+ {props.quickStartObj.storeConfig.tel}
+ |
+
+
+
+ 门店排序
+ |
+
+ {props.quickStartObj.storeConfig.sort}
+ |
+
+
+
+ 备注
+ |
+
+ {props.quickStartObj.storeConfig.remark}
+ |
+
+
+
+ {/* 2.设备配置 */}
+
+
+
+
+ 设备配置
+ |
+
+
+
+ ID
+ |
+
+ {props.quickStartObj.deviceConfig.id}
+ |
+
+
+
+ 设备名称
+ |
+
+ {props.quickStartObj.deviceConfig.deviceName}
+ |
+
+
+
+ 设备类型
+ |
+
+ {props.quickStartObj.deviceConfig.deviceTypeKey}
+ |
+
+
+
+ 设备类型
+ |
+
+ {props.quickStartObj.deviceConfig.deviceTypeKey}
+ |
+
+
+
>
}
diff --git a/src/pages/quickStart/index.less b/src/pages/quickStart/index.less
index e959ccb..79c9d67 100644
--- a/src/pages/quickStart/index.less
+++ b/src/pages/quickStart/index.less
@@ -25,4 +25,50 @@
top: 50%;
transform: translateY(-50%);
right: 0px
+}
+
+.ant_descriptions_row {
+ display: flex;
+ border-bottom: 1px solid rgba(0,0,0,.06);
+}
+
+.ant_descriptions_row:first-child {
+ border-top: 1px solid rgba(0,0,0,.06);
+ border-right: 1px solid rgba(0,0,0,.06);
+}
+
+.ant_descriptions_item_title {
+ color: rgba(0,0,0,.85);
+ font-weight: 600;
+ font-size: 18px;
+ line-height: 1.5715;
+ text-align: start;
+ padding: 16px 24px;
+ border-left: 1px solid rgba(0,0,0,.06);
+}
+
+.ant_descriptions_item_label {
+ flex-shrink: 0;
+ width: 20%;
+ color: rgba(0,0,0,.85);
+ font-weight: 400;
+ font-size: 14px;
+ line-height: 1.5715;
+ text-align: start;
+ background-color: #fafafa;
+ padding: 16px 24px;
+ border-left: 1px solid rgba(0,0,0,.06);
+ border-right: 1px solid rgba(0,0,0,.06);
+}
+
+.ant_descriptions_item_content {
+ border-right: 1px solid rgba(0,0,0,.06);
+ padding: 16px 24px;
+ display: table-cell;
+ flex: 1 1;
+ color: rgba(0,0,0,.85);
+ font-size: 14px;
+ line-height: 1.5715;
+ word-break: break-word;
+ overflow-wrap: break-word;
}
\ No newline at end of file