魏超 5 年之前
父節點
當前提交
94505f220b

+ 10
- 1
src/pages/building/list/add/components/base.jsx 查看文件

363
             {getFieldDecorator('price')(<Input type="number" style={{ width: '210px' }}/>)}元/m²
363
             {getFieldDecorator('price')(<Input type="number" style={{ width: '210px' }}/>)}元/m²
364
           </Form.Item>
364
           </Form.Item>
365
           <Form.Item label="开盘时间" >
365
           <Form.Item label="开盘时间" >
366
-            {getFieldDecorator('openingDate')(<DatePicker format="YYYY/MM/DD" />)}
366
+            {getFieldDecorator('openingDate')(<Input placeholder="预计xxxx年xx月开盘" maxLength = "15"/>)}
367
           </Form.Item>
367
           </Form.Item>
368
           <Form.Item label="电话" >
368
           <Form.Item label="电话" >
369
             {getFieldDecorator('tel', {
369
             {getFieldDecorator('tel', {
549
           <Form.Item label="装修标准" >
549
           <Form.Item label="装修标准" >
550
             {getFieldDecorator('decoration')(<Input />)}
550
             {getFieldDecorator('decoration')(<Input />)}
551
           </Form.Item>
551
           </Form.Item>
552
+          <Form.Item label="开发商" >
553
+            {getFieldDecorator('propertyDeveloper')(<Input placeholder="不超过15个字" maxLength = "15"/>)}
554
+          </Form.Item>
555
+          <Form.Item label="备案名" >
556
+            {getFieldDecorator('recordName')(<Input placeholder="不超过15个字" maxLength = "15"/>)}
557
+          </Form.Item>
558
+          <Form.Item label="楼栋总数" >
559
+            {getFieldDecorator('buildingNum')(<Input min={0} type="number" style={{ width: 80}}/>)}
560
+          </Form.Item>
552
           {/* <Form.Item label="交房时间" >
561
           {/* <Form.Item label="交房时间" >
553
             {getFieldDecorator('receivedDate')(<DatePicker />)}
562
             {getFieldDecorator('receivedDate')(<DatePicker />)}
554
           </Form.Item> */}
563
           </Form.Item> */}

+ 29
- 0
src/pages/building/list/add/components/imageSet.jsx 查看文件

25
   },
25
   },
26
 ]
26
 ]
27
 
27
 
28
+const houseType = [
29
+  {
30
+    id: 1,
31
+    name: '1室',
32
+  },
33
+  {
34
+    id: 2,
35
+    name: '2室',
36
+  },
37
+  {
38
+    id: 3,
39
+    name: '3室',
40
+  },
41
+  {
42
+    id: 4,
43
+    name: '4室',
44
+  },
45
+  {
46
+    id: 5,
47
+    name: '5室及以上',
48
+  },
49
+]
50
+
28
 /**
51
 /**
29
  *图片设置
52
  *图片设置
30
  *
53
  *
115
       key: 'marketStatus',
138
       key: 'marketStatus',
116
       render: (_, record) => <span>{ (saleType.filter(x => x.id == record.marketStatus)[0] || {}).name }</span>,
139
       render: (_, record) => <span>{ (saleType.filter(x => x.id == record.marketStatus)[0] || {}).name }</span>,
117
     },
140
     },
141
+    {
142
+      title: '户型',
143
+      dataIndex: 'houseType',
144
+      key: 'houseType',
145
+      render: (_, record) => <span>{ (houseType.filter(x => x.id == record.houseType)[0] || {}).name }</span>,
146
+    },
118
     {
147
     {
119
       title: '面积',
148
       title: '面积',
120
       dataIndex: 'buildingArea',
149
       dataIndex: 'buildingArea',

+ 34
- 0
src/pages/building/list/add/components/modalImage.jsx 查看文件

42
   },
42
   },
43
 ]
43
 ]
44
 
44
 
45
+const houseType = [
46
+  {
47
+    id: '1',
48
+    name: '1室',
49
+  },
50
+  {
51
+    id: '2',
52
+    name: '2室',
53
+  },
54
+  {
55
+    id: '3',
56
+    name: '3室',
57
+  },
58
+  {
59
+    id: '4',
60
+    name: '4室',
61
+  },
62
+  {
63
+    id: '5',
64
+    name: '5室及以上',
65
+  },
66
+]
67
+
45
 /**
68
 /**
46
  * 图片信息
69
  * 图片信息
47
  *
70
  *
194
                 <ImageUpload />,
217
                 <ImageUpload />,
195
               )}
218
               )}
196
               </Form.Item>
219
               </Form.Item>
220
+              <Form.Item label="户型">
221
+                {getFieldDecorator('houseType', {
222
+                  rules: [{ required: true, message: '请选择户型' }],
223
+                })(
224
+                  <Select placeholder="户型">
225
+                    {
226
+                      houseType.map((item, _) => <Option value={item.id}>{item.name}</Option>)
227
+                    }
228
+                  </Select>,
229
+                )}
230
+              </Form.Item>
197
               <Form.Item label="面积" help="单位 ㎡">
231
               <Form.Item label="面积" help="单位 ㎡">
198
                 {getFieldDecorator('buildingArea')(<Input type="number" precision = '2' min='0.00' step='0.01'/>)}
232
                 {getFieldDecorator('buildingArea')(<Input type="number" precision = '2' min='0.00' step='0.01'/>)}
199
               </Form.Item>
233
               </Form.Item>