Commit 0fe98dd5bcb6a4f3d981cddfaad8d905d31b0ef5
1 parent
06df4562
取消集团手机号配置最低月租权限控制;
Showing
1 changed file
with
18 additions
and
16 deletions
src/pages/ehr/GroupMobileRecord/components/GroupMobileRecordModal.tsx
1 | 1 | /* |
2 | 2 | * @Date: 2021-01-05 14:24:23 |
3 | 3 | * @LastEditors: wangqiang@feewee.cn |
4 | - * @LastEditTime: 2023-05-11 11:48:34 | |
4 | + * @LastEditTime: 2023-05-18 15:44:39 | |
5 | 5 | */ |
6 | 6 | import React, { useEffect, useState } from "react"; |
7 | 7 | import { Form, Input, Modal, message, Select, Switch } from "antd"; |
... | ... | @@ -112,6 +112,7 @@ export default function GroupMobileRecordModal() { |
112 | 112 | recording: false, |
113 | 113 | recordingTranslate: false, |
114 | 114 | businessCard: false, |
115 | + monthRent: false, | |
115 | 116 | }); |
116 | 117 | } |
117 | 118 | } |
... | ... | @@ -150,9 +151,10 @@ export default function GroupMobileRecordModal() { |
150 | 151 | : currentItem?.businessCard, |
151 | 152 | operatorId: val.operator?.value, |
152 | 153 | operatorName: val.operator?.label, |
153 | - monthRent: elements.includes("mobile:special-function:edit") | |
154 | - ? val.monthRent | |
155 | - : currentItem?.monthRent, | |
154 | + // monthRent: elements.includes("mobile:special-function:edit") | |
155 | + // ? val.monthRent | |
156 | + // : currentItem?.monthRent, | |
157 | + monthRent: val.monthRent, | |
156 | 158 | }; |
157 | 159 | saveMobileApi(params) |
158 | 160 | .then((res) => { |
... | ... | @@ -426,18 +428,6 @@ export default function GroupMobileRecordModal() { |
426 | 428 | unCheckedChildren="否" |
427 | 429 | /> |
428 | 430 | </FormItem> |
429 | - <FormItem | |
430 | - name="monthRent" | |
431 | - label="是否有最低月租" | |
432 | - valuePropName="checked" | |
433 | - rules={[{ required: true, message: "请选择" }]} | |
434 | - > | |
435 | - <Switch | |
436 | - disabled={editSubject} | |
437 | - checkedChildren="是" | |
438 | - unCheckedChildren="否" | |
439 | - /> | |
440 | - </FormItem> | |
441 | 431 | </> |
442 | 432 | ); |
443 | 433 | } else { |
... | ... | @@ -446,6 +436,18 @@ export default function GroupMobileRecordModal() { |
446 | 436 | }} |
447 | 437 | </FormItem> |
448 | 438 | ) : null} |
439 | + <FormItem | |
440 | + name="monthRent" | |
441 | + label="是否有最低月租" | |
442 | + valuePropName="checked" | |
443 | + rules={[{ required: true, message: "请选择" }]} | |
444 | + > | |
445 | + <Switch | |
446 | + disabled={editSubject} | |
447 | + checkedChildren="是" | |
448 | + unCheckedChildren="否" | |
449 | + /> | |
450 | + </FormItem> | |
449 | 451 | </Form> |
450 | 452 | </Modal> |
451 | 453 | ); | ... | ... |