|  | @@ -1,7 +1,9 @@
 | 
											
												
													
														|  |  import { Button, Form, Input, InputNumber, Select, DatePicker, Rate, Upload } from 'antd';
 |  |  import { Button, Form, Input, InputNumber, Select, DatePicker, Rate, Upload } from 'antd';
 | 
											
												
													
														|  | 
 |  | +import { InnerContactField } from '@/components/DDComponents';
 | 
											
												
													
														|  |  import { PlusOutlined } from '@ant-design/icons';
 |  |  import { PlusOutlined } from '@ant-design/icons';
 | 
											
												
													
														|  |  import React, { useState } from 'react';
 |  |  import React, { useState } from 'react';
 | 
											
												
													
														|  |  const { Option } = Select;
 |  |  const { Option } = Select;
 | 
											
												
													
														|  | 
 |  | +const { RangePicker } = DatePicker;
 | 
											
												
													
														|  |  const layout = {
 |  |  const layout = {
 | 
											
												
													
														|  |    labelCol: {
 |  |    labelCol: {
 | 
											
												
													
														|  |      span: 8,
 |  |      span: 8,
 | 
											
										
											
												
													
														|  | @@ -76,12 +78,13 @@ const AuditDetailed = ({ items }) => {
 | 
											
												
													
														|  |      let component;
 |  |      let component;
 | 
											
												
													
														|  |      switch (item.componentName) {
 |  |      switch (item.componentName) {
 | 
											
												
													
														|  |        case 'TextField': //单行输入
 |  |        case 'TextField': //单行输入
 | 
											
												
													
														|  | -        component = <Input placeholder={placeholder} />;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        component = <Input disabled={disabled} placeholder={placeholder} />;
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'TextareaField': //多行输入
 |  |        case 'TextareaField': //多行输入
 | 
											
												
													
														|  | -        component = <Input.TextArea placeholder={placeholder} />;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        component = <Input.TextArea disabled={disabled} placeholder={placeholder} />;
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'NumberField': //数字输入
 |  |        case 'NumberField': //数字输入
 | 
											
												
													
														|  | 
 |  | +        component = <InputNumber disabled={disabled} formatter={value => `${value}${unit}`} />;
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'DDSelectField': //单选框
 |  |        case 'DDSelectField': //单选框
 | 
											
												
													
														|  |          component = (
 |  |          component = (
 | 
											
										
											
												
													
														|  | @@ -104,13 +107,16 @@ const AuditDetailed = ({ items }) => {
 | 
											
												
													
														|  |          );
 |  |          );
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'DDDateField': //日期控件
 |  |        case 'DDDateField': //日期控件
 | 
											
												
													
														|  | -        component = <DatePicker format={format} onChange={() => {}} />;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        component = <DatePicker format={format} />;
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'DDDateRangeField': //时间区间控件
 |  |        case 'DDDateRangeField': //时间区间控件
 | 
											
												
													
														|  | 
 |  | +        component = <RangePicker format={format} />;
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'TextNote': //文本说明控件
 |  |        case 'TextNote': //文本说明控件
 | 
											
												
													
														|  | 
 |  | +        // component = <p style={{textAlign: align}}></p>
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'PhoneField': //电话控件
 |  |        case 'PhoneField': //电话控件
 | 
											
												
													
														|  | 
 |  | +        component = <Input type="phone" disabled={disabled} placeholder={placeholder} />;
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'DDPhotoField': //图片控件
 |  |        case 'DDPhotoField': //图片控件
 | 
											
												
													
														|  |          component = (
 |  |          component = (
 | 
											
										
											
												
													
														|  | @@ -125,8 +131,14 @@ const AuditDetailed = ({ items }) => {
 | 
											
												
													
														|  |        case 'TableField': //明细控件
 |  |        case 'TableField': //明细控件
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'DDAttachment': //附件
 |  |        case 'DDAttachment': //附件
 | 
											
												
													
														|  | 
 |  | +        component = (
 | 
											
												
													
														|  | 
 |  | +          <Upload>
 | 
											
												
													
														|  | 
 |  | +            <Button icon={<PlusOutlined />}>添加附件</Button>
 | 
											
												
													
														|  | 
 |  | +          </Upload>
 | 
											
												
													
														|  | 
 |  | +        );
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'InnerContactField': //联系人控件
 |  |        case 'InnerContactField': //联系人控件
 | 
											
												
													
														|  | 
 |  | +        component = <InnerContactField></InnerContactField>;
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
												
													
														|  |        case 'DepartmentField': //部门控件
 |  |        case 'DepartmentField': //部门控件
 | 
											
												
													
														|  |          break;
 |  |          break;
 | 
											
										
											
												
													
														|  | @@ -162,7 +174,7 @@ const AuditDetailed = ({ items }) => {
 | 
											
												
													
														|  |        autoComplete="off"
 |  |        autoComplete="off"
 | 
											
												
													
														|  |        onFinish={onFinish}
 |  |        onFinish={onFinish}
 | 
											
												
													
														|  |      >
 |  |      >
 | 
											
												
													
														|  | -      <Form.Item
 |  | 
 | 
											
												
													
														|  | 
 |  | +      {/* <Form.Item
 | 
											
												
													
														|  |          name={['user', 'name']}
 |  |          name={['user', 'name']}
 | 
											
												
													
														|  |          label="单行输入"
 |  |          label="单行输入"
 | 
											
												
													
														|  |          rules={[
 |  |          rules={[
 | 
											
										
											
												
													
														|  | @@ -249,7 +261,7 @@ const AuditDetailed = ({ items }) => {
 | 
											
												
													
														|  |        </Form.Item>
 |  |        </Form.Item>
 | 
											
												
													
														|  |        <Form.Item name={['user', 'introduction']} label="评分">
 |  |        <Form.Item name={['user', 'introduction']} label="评分">
 | 
											
												
													
														|  |          <Rate />
 |  |          <Rate />
 | 
											
												
													
														|  | -      </Form.Item>
 |  | 
 | 
											
												
													
														|  | 
 |  | +      </Form.Item> */}
 | 
											
												
													
														|  |        {/* <Form.Item wrapperCol={{ ...layout.wrapperCol, offset: 8 }}>
 |  |        {/* <Form.Item wrapperCol={{ ...layout.wrapperCol, offset: 8 }}>
 | 
											
												
													
														|  |          <Button type="primary" htmlType="submit">
 |  |          <Button type="primary" htmlType="submit">
 | 
											
												
													
														|  |            Submit
 |  |            Submit
 |