魏超 5 gadus atpakaļ
vecāks
revīzija
94505f220b

+ 10
- 1
src/pages/building/list/add/components/base.jsx Parādīt failu

@@ -363,7 +363,7 @@ function AddBuilding(props) {
363 363
             {getFieldDecorator('price')(<Input type="number" style={{ width: '210px' }}/>)}元/m²
364 364
           </Form.Item>
365 365
           <Form.Item label="开盘时间" >
366
-            {getFieldDecorator('openingDate')(<DatePicker format="YYYY/MM/DD" />)}
366
+            {getFieldDecorator('openingDate')(<Input placeholder="预计xxxx年xx月开盘" maxLength = "15"/>)}
367 367
           </Form.Item>
368 368
           <Form.Item label="电话" >
369 369
             {getFieldDecorator('tel', {
@@ -549,6 +549,15 @@ function AddBuilding(props) {
549 549
           <Form.Item label="装修标准" >
550 550
             {getFieldDecorator('decoration')(<Input />)}
551 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 561
           {/* <Form.Item label="交房时间" >
553 562
             {getFieldDecorator('receivedDate')(<DatePicker />)}
554 563
           </Form.Item> */}

+ 29
- 0
src/pages/building/list/add/components/imageSet.jsx Parādīt failu

@@ -25,6 +25,29 @@ const saleType = [
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,6 +138,12 @@ function imageSet(props) {
115 138
       key: 'marketStatus',
116 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 148
       title: '面积',
120 149
       dataIndex: 'buildingArea',

+ 34
- 0
src/pages/building/list/add/components/modalImage.jsx Parādīt failu

@@ -42,6 +42,29 @@ const saleType = [
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,6 +217,17 @@ class ModalImage extends React.Component {
194 217
                 <ImageUpload />,
195 218
               )}
196 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 231
               <Form.Item label="面积" help="单位 ㎡">
198 232
                 {getFieldDecorator('buildingArea')(<Input type="number" precision = '2' min='0.00' step='0.01'/>)}
199 233
               </Form.Item>