|
@@ -1,14 +1,15 @@
|
|
|
-import InnerContactField from './InnerContactField';
|
|
|
import { Button, Input, InputNumber, Select, DatePicker, Rate, Upload } from 'antd';
|
|
|
import { PlusOutlined } from '@ant-design/icons';
|
|
|
import TableField from './TableField';
|
|
|
import PhoneField from './PhoneField';
|
|
|
+import InnerContactField from './InnerContactField';
|
|
|
+import DepartmentField from './DepartmentField';
|
|
|
|
|
|
const { Option } = Select;
|
|
|
const { RangePicker } = DatePicker;
|
|
|
|
|
|
export default function DDComponents(props) {
|
|
|
- const { item, onChange, value } = props;
|
|
|
+ const { item, onChange } = props;
|
|
|
const {
|
|
|
id,
|
|
|
label,
|
|
@@ -52,7 +53,6 @@ export default function DDComponents(props) {
|
|
|
<InputNumber
|
|
|
disabled={disabled}
|
|
|
formatter={value => `${value}${unit || ''}`}
|
|
|
- value={value}
|
|
|
onChange={e => {
|
|
|
console.log(e);
|
|
|
onChange?.(e);
|
|
@@ -130,6 +130,7 @@ export default function DDComponents(props) {
|
|
|
component = <InnerContactField onChange={onChange}></InnerContactField>;
|
|
|
break;
|
|
|
case 'DepartmentField': //部门控件
|
|
|
+ component = <DepartmentField onChange={onChange} />;
|
|
|
break;
|
|
|
case 'RelateField': //关联审批单
|
|
|
break;
|