魏超 5 years ago
parent
commit
66d84a6851

+ 6
- 0
src/pages/house/house/edit/components/house.jsx View File

@@ -203,6 +203,12 @@ function House(props) {
203 203
       dataIndex: 'updateName',
204 204
       key: 'updateName',
205 205
     },
206
+    {
207
+      title: '最后修改时间',
208
+      dataIndex: 'updateDate',
209
+      key: 'updateDate',
210
+      render: (x, row) => <><span>{row.updateDate != null ? `${moment(row.updateDate).format('YYYY-MM-DD HH:mm:ss')}` : null}</span></>,
211
+    },
206 212
     {
207 213
       title: '操作',
208 214
       dataIndex: 'apartmentId',

+ 1
- 1
src/pages/house/house/edit/components/shareRecord.jsx View File

@@ -107,7 +107,7 @@ const handleSubmit = (e, props) => {
107 107
   return (
108 108
 
109 109
     <>
110
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
110
+      <Form style={{marginBottom:'20px'}} layout="inline" onSubmit={e => handleSubmit(e, props)}>
111 111
         <Form.Item>
112 112
           {getFieldDecorator('shareType')(
113 113
             <Select style={{ width: '180px' }} placeholder="分享方式">

+ 1
- 1
src/pages/house/house/edit/components/visitRecord.jsx View File

@@ -108,7 +108,7 @@ const handleSubmit = (e, props) => {
108 108
   return (
109 109
 
110 110
     <>
111
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
111
+      <Form style={{marginBottom:'20px'}} layout="inline" onSubmit={e => handleSubmit(e, props)}>
112 112
         {/* <Form.Item>
113 113
           {getFieldDecorator('sceneType')(
114 114
             <Select style={{ width: '180px' }} placeholder="进入场景">

+ 6
- 5
src/pages/house/preSelect/edit/components/preselectionHouse.jsx View File

@@ -129,11 +129,12 @@ function PreselectionRecord(props) {
129 129
         dataIndex: 'updateName',
130 130
         key: 'updateName',
131 131
     },
132
-    // {
133
-    //     title: '最后修改时间',
134
-    //     dataIndex: 'updateTime',
135
-    //     key: 'updateTime',
136
-    // },
132
+    {
133
+        title: '最后修改时间',
134
+        dataIndex: 'updateDate',
135
+        key: 'updateDate',
136
+        render: (x, row) => <><span>{row.updateDate != null ? `${moment(row.updateDate).format('YYYY-MM-DD HH:mm:ss')}` : null}</span></>,
137
+    },
137 138
   ]
138 139
   const { getFieldDecorator } = props.form
139 140
   return (

+ 1
- 1
src/pages/house/preSelect/edit/components/preselectionRecord.jsx View File

@@ -265,7 +265,7 @@ function PreselectionRecord(props) {
265 265
         </Form.Item>
266 266
       </Form>
267 267
       <AuthButton noRight={null}>
268
-        <Button type="primary" onClick={toDelBatch()}>批量删除</Button>
268
+        <Button style={{marginBottom:'20px', marginTop:'20px'}} type="primary" onClick={toDelBatch()}>批量删除</Button>
269 269
       </AuthButton>
270 270
       <Table rowSelection={rowSelection} dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
271 271
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>

+ 12
- 6
src/pages/house/raise/add/index.jsx View File

@@ -124,7 +124,7 @@ const header = props => {
124 124
             rules: [{ required: true, message: ' 请输入销售批次' }], onChange: onChangeValue
125 125
           })(<SalesBatch type='true' buildingId={props.form.getFieldValue('buildingId')}/>)}
126 126
         </Form.Item>
127
-        <Form.Item label="认筹开始时间">
127
+        <Form.Item style={{marginTop:'20px'}} label="认筹开始时间">
128 128
         {getFieldDecorator('raiseStartTime', {
129 129
           rules: [
130 130
             {
@@ -152,12 +152,12 @@ const header = props => {
152 152
             <Option value="manual">手动锁房</Option>
153 153
           </Select>)}
154 154
         </Form.Item>
155
-        <Form.Item label="认筹金额" help="最高50000元(需要微信商户号配置的行业为房地产行业:房地产开发,物业,房产中介。若微信商户号配置为其他行业则为3000元若不确定请联系平台相关运营人员。">
155
+        <Form.Item style={{marginTop:'20px'}} label="认筹金额" help="最高50000元(需要微信商户号配置的行业为房地产行业:房地产开发,物业,房产中介。若微信商户号配置为其他行业则为3000元若不确定请联系平台相关运营人员。">
156 156
           {getFieldDecorator('raisePrice', {
157 157
             rules: [{ required: true, message: '请输入认筹金额' }],
158 158
           })(<InputNumber min={0.01} max={50000} step={0.01} placeholder="认筹缴费金额" style={{width:'200px'}} />)}<span>元</span>
159 159
         </Form.Item>
160
-        <Form.Item label="认筹需预选" help="设置是否需要客户之前预选了房源才能认筹。">
160
+        <Form.Item style={{marginTop:'20px'}} label="认筹需预选" help="设置是否需要客户之前预选了房源才能认筹。">
161 161
           {getFieldDecorator('needPreselection', {initialValue:preSelectFlag === true?'true':'false',
162 162
               rules: [{ required: true, message: '请选择认筹需预选' }],
163 163
             })(<Select placeholder="预选方式" style={{ width: '300px' }} disabled={preSelectFlag?false:true}>
@@ -165,7 +165,7 @@ const header = props => {
165 165
             <Option value="true">是</Option>
166 166
           </Select>)}
167 167
         </Form.Item>
168
-        <Form.Item label="缴费方式" help="锁房方式为自动锁房,缴费方式仅支持线上缴费。锁房方式为手动锁房,缴费方式可多选,线上缴费使用微信支付,线下缴费客户可提交后去线下缴费。">
168
+        <Form.Item style={{marginTop:'20px'}} label="缴费方式" help="锁房方式为自动锁房,缴费方式仅支持线上缴费。锁房方式为手动锁房,缴费方式可多选,线上缴费使用微信支付,线下缴费客户可提交后去线下缴费。">
169 169
           {getFieldDecorator('payType', {
170 170
             initialValue: houseLockingType,
171 171
           })(
@@ -177,7 +177,7 @@ const header = props => {
177 177
             </Checkbox.Group>,
178 178
           )}
179 179
         </Form.Item>
180
-        <Form.Item label="线上缴费说明">
180
+        <Form.Item style={{marginTop:'20px'}} label="线上缴费说明">
181 181
           {getFieldDecorator('payDescriptionOnline')(<TextArea placeholder="向客户说明线上缴费相关业务需求" style={{height:'300px'}}></TextArea>)}
182 182
         </Form.Item>
183 183
         <Form.Item label="线下缴费说明">
@@ -186,7 +186,13 @@ const header = props => {
186 186
         <Form.Item label="认筹单注意事项">
187 187
           {getFieldDecorator('raisePrecautions')(<Input maxLength={100} placeholder="客户提交认筹单后的注意事项"/>)}
188 188
         </Form.Item>
189
-        <Form.Item label="选房协议">
189
+        <Form.Item label="选房协议" help="若想在协议中自动引用客户信息生成带客户信息的协议,请在选房协议中按如下格式引用:
190
+                                         ${name}其中name代表客户姓名,
191
+                                         ${idcard}其中idcard代表身份证号,
192
+                                         ${phone}其中phone代表手号,
193
+                                         ${date}其中date代表日期(如2020/03/10),
194
+                                         举例,若想在协议中“乙方:”后显示当前客户姓名,在“乙方:”后输入${name}即可。
195
+                                         注意,在提交认筹单后在认筹单详情中查看协议才能看到这些引用的具体信息,在认筹过程中,因阅读协议在填写个人信息之前,这些信息会为空白。">
190 196
         {getFieldDecorator('payProtocol',{
191 197
             rules: [{ required: true, message: '请输入选房协议' }],
192 198
           })(<Wangedit />)}

+ 1
- 1
src/pages/house/raise/edit/components/HouseListInfo/index.jsx View File

@@ -108,7 +108,7 @@ const HouseListInfo = props => {
108 108
 
109 109
   return (
110 110
     <>
111
-      <Modal footer={null} title="批量作废" visible={props.visible} onCancel={props.onCancel} width={600}>
111
+      <Modal footer={null} title="添加房源" visible={props.visible} onCancel={props.onCancel} width={600}>
112 112
         <span>可选房源仅包括当前销售批次中已发布且未被锁定的房源</span>
113 113
         <Form layout="inline" onSubmit={handleSubmit}>
114 114
             <Form.Item>

+ 14
- 12
src/pages/house/raise/edit/components/IdentifyingChips.jsx View File

@@ -39,9 +39,11 @@ function PreselectionRecord(props) {
39 39
   const salesBatchId = props.salesBatchId
40 40
   const buildingId = props.buildingId
41 41
   const raiseRecordId = props.raiseRecordId
42
+  const houseId = props.houseId
42 43
 
43 44
   useEffect(() => {
44
-    getList()
45
+    console.log('houseIdhouseIdhouseIdhouseId', houseId)
46
+    getList({houseId:houseId.toString()})
45 47
   }, [])
46 48
 
47 49
   function openNotificationWithIcon(type, message) {
@@ -54,6 +56,7 @@ function PreselectionRecord(props) {
54 56
 
55 57
   function getList(params) {
56 58
     // 网路请求
59
+    console.log(params,'params')
57 60
     request({ ...apis.house.houseRaiseRecord, params: { ...params, salesBatchId: salesBatchId, raiseId: raiseId } }).then(res => {
58 61
       setData(res)
59 62
     }).catch(err => {
@@ -85,10 +88,10 @@ function PreselectionRecord(props) {
85 88
     props.form.validateFields((err, values) => {
86 89
       if (!err) {
87 90
         let {liveTime, ...submitValue} = values
88
-        if (submitValue.payStartTime != null){
91
+        if (submitValue.startTime != null){
89 92
           submitValue.startTime = moment(submitValue.startTime).format('YYYY-MM-DD HH:mm:ss')
90 93
         }
91
-        if (submitValue.payEndTime != null){
94
+        if (submitValue.endTime != null){
92 95
           submitValue.endTime = moment(submitValue.endTime).format('YYYY-MM-DD HH:mm:ss')
93 96
         }
94 97
         console.log('提交数据: ', values)
@@ -197,9 +200,9 @@ function PreselectionRecord(props) {
197 200
       render: (text, record) => (<><span>{record.houseLockingStatus == 'unlocked' ? '未锁定':'已锁定'}</span></>),
198 201
     },
199 202
     {
200
-      title: '账户手机号',
201
-      dataIndex: 'personTel',
202
-      key: 'personTel',
203
+      title: '认筹人姓名',
204
+      dataIndex: 'name',
205
+      key: 'name',
203 206
       // render: unitName => <><span>{unitName}单元</span></>,
204 207
     },
205 208
     {
@@ -333,8 +336,8 @@ function PreselectionRecord(props) {
333 336
           )}
334 337
         </Form.Item>
335 338
         <Form.Item>
336
-          {getFieldDecorator('tel')(
337
-            <Input placeholder="账户手机号"/>,
339
+          {getFieldDecorator('personName')(
340
+            <Input placeholder="认筹人姓名"/>,
338 341
           )}
339 342
         </Form.Item>
340 343
         <Form.Item>
@@ -399,12 +402,12 @@ function PreselectionRecord(props) {
399 402
         </Form.Item>    */}
400 403
         <Form.Item>
401 404
           {getFieldDecorator('startTime')(
402
-            <DatePicker placeholder="认筹开始时间"/>,
405
+            <DatePicker showTime={{ format: 'HH:mm:ss' }} placeholder="认筹提交时间从"/>,
403 406
           )}
404 407
         </Form.Item>
405 408
         <Form.Item>
406 409
           {getFieldDecorator('endTime')(
407
-            <DatePicker placeholder="认筹结束时间"/>,
410
+            <DatePicker showTime={{ format: 'HH:mm:ss' }} placeholder="认筹提交时间到"/>,
408 411
           )}
409 412
         </Form.Item>  
410 413
         <Form.Item>
@@ -427,8 +430,7 @@ function PreselectionRecord(props) {
427 430
       <BatchPay visible={pay.visable} houseIds={pay.houseIds} onCancel={() => showPay(false)} onSuccess={() => showPay(false)} />
428 431
       <BatchRefund visible={refund.visable} houseIds={refund.houseIds} onCancel={() => setRefund(false)} onSuccess={() => showRefund(false)}/>
429 432
       <Refund visible={singleRefund.visable} raiseRecordId={singleRefund.raiseRecordId} onCancel={() => raiseRefund({visable:false, raiseRecordId:''})} onSuccess={() => raiseRefund({visable:false, raiseRecordId:''})}></Refund>
430
-      <br/>
431
-      <span>共筛选出{data.total}条数据</span>      
433
+      <div style={{marginTop:'20px', marginBottom:'20px'}}><span>共筛选出{data.total}条数据</span></div>
432 434
       <Table rowSelection={rowSelection} dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
433 435
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
434 436
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>

+ 1
- 2
src/pages/house/raise/edit/components/PaymentChips.jsx View File

@@ -216,8 +216,7 @@ const handleSubmit = (e, values) => {
216 216
             </Button>
217 217
         </Form.Item>
218 218
       </Form>
219
-      <br/>
220
-      <span>共筛选出{data.total}条数据</span>     
219
+      <div style={{marginTop:'20px', marginBottom:'20px'}}><span>共筛选出{data.total}条数据</span></div>  
221 220
       <Table dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
222 221
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
223 222
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>

+ 6
- 2
src/pages/house/raise/edit/components/RaiseHouse.jsx View File

@@ -54,6 +54,10 @@ function RaiseHouse(props) {
54 54
       getList({ pageNumber: 1, pageSize: 10 })
55 55
     }
56 56
 
57
+    function showEdi(e) {
58
+      props.onSuccess(e);
59
+    }
60
+    
57 61
   // 分页
58 62
   const changePageNum = (pageNumber) => {
59 63
     getList({ pageNumber: pageNumber, pageSize: 10,raiseId:raiseId, salesBatchId: salesBatchId, buildingId: buildingId, ...props.form.getFieldsValue() })
@@ -121,6 +125,7 @@ function RaiseHouse(props) {
121 125
         title: '认筹实际热度',
122 126
         dataIndex: 'raiseRealHeat',
123 127
         key: 'raiseRealHeat',
128
+        render:  (x, row) => <><span style={{color: 'blue',cursor: 'pointer'}} onClick={() => showEdi({type: "identifyingChips",houseId: row.houseId})}>{row.raiseRealHeat}</span></>,
124 129
     },
125 130
     {
126 131
       title: '锁定状态',
@@ -211,8 +216,7 @@ function RaiseHouse(props) {
211 216
 
212 217
       </Form>
213 218
       <Button type="primary" onClick={() => showBaseModal({visable:true, houseId: houseId, salesBatchId:salesBatchId})} style={{ marginTop: '20px', marginRight:'20px'}}>批量修改基础热度</Button>
214
-      <br/>
215
-      <span>共筛选出{data.total}条数据</span>
219
+      <div style={{marginTop:'20px', marginBottom:'20px'}}><span>共筛选出{data.total}条数据</span></div>
216 220
       <Table rowSelection={rowSelection} dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
217 221
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
218 222
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>

+ 1
- 2
src/pages/house/raise/edit/components/Refund.jsx View File

@@ -228,8 +228,7 @@ const handleSubmit = (e, props) => {
228 228
             </Button>
229 229
         </Form.Item>
230 230
       </Form>
231
-      <br/>
232
-      <span>共筛选出{data.total}条数据</span>     
231
+      <div style={{marginTop:'20px', marginBottom:'20px'}}><span>共筛选出{data.total}条数据</span></div>  
233 232
       <Table dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
234 233
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
235 234
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>

+ 4
- 4
src/pages/house/raise/edit/components/base.jsx View File

@@ -184,12 +184,12 @@ const Base = props => {
184 184
             <Option value="manual">手动锁房</Option>
185 185
           </Select>)}
186 186
         </Form.Item>
187
-        <Form.Item label="认筹金额" help="最高50000元(需要微信商户号配置的行业为房地产行业:房地产开发,物业,房产中介。若微信商户号配置为其他行业则为3000元若不确定请联系平台相关运营人员。">
187
+        <Form.Item style={{marginTop:'20px'}} label="认筹金额" help="最高50000元(需要微信商户号配置的行业为房地产行业:房地产开发,物业,房产中介。若微信商户号配置为其他行业则为3000元若不确定请联系平台相关运营人员。">
188 188
           {getFieldDecorator('raisePrice', {initialValue:regFenToYuan(saleBatchData.raisePrice),
189 189
             rules: [{ required: true, message: '请输入认筹金额' }],
190 190
           })(<InputNumber max={50000} min={0.01} step={0.01} placeholder="认筹缴费金额" style={{width:'200px'}} />)}<span>元</span>
191 191
         </Form.Item>
192
-        <Form.Item label="认筹需预选" help="设置是否需要客户之前预选了房源才能认筹。">
192
+        <Form.Item style={{marginTop:'20px'}} label="认筹需预选" help="设置是否需要客户之前预选了房源才能认筹。">
193 193
           {getFieldDecorator('needPreselection', {initialValue:saleBatchData.needPreselection === false?'false':'true',
194 194
               rules: [{ required: true, message: '请选择认筹需预选' }],
195 195
             })(<Select placeholder="预选方式" style={{ width: '300px' }} disabled={preSelectFlag?false:true}>
@@ -197,7 +197,7 @@ const Base = props => {
197 197
             <Option value="true">是</Option>
198 198
           </Select>)}
199 199
         </Form.Item>
200
-        <Form.Item label="缴费方式" help="锁房方式为自动锁房,缴费方式仅支持线上缴费。锁房方式为手动锁房,缴费方式可多选,线上缴费使用微信支付,线下缴费客户可提交后去线下缴费。">
200
+        <Form.Item style={{marginTop:'20px'}} label="缴费方式" help="锁房方式为自动锁房,缴费方式仅支持线上缴费。锁房方式为手动锁房,缴费方式可多选,线上缴费使用微信支付,线下缴费客户可提交后去线下缴费。">
201 201
           {getFieldDecorator('payType', {rules: [{ required: true, message: '请选择缴费方式' }],
202 202
             initialValue: saleBatchData.payType === 'onLine'?'onLine':saleBatchData.payType === 'offLine'?"offLine":['offLine','onLine'] ,
203 203
           })(
@@ -209,7 +209,7 @@ const Base = props => {
209 209
             </Checkbox.Group>,
210 210
           )}
211 211
         </Form.Item>
212
-        <Form.Item label="线上缴费说明">
212
+        <Form.Item style={{marginTop:'20px'}} label="线上缴费说明">
213 213
           {getFieldDecorator('payDescriptionOnline', {initialValue:saleBatchData.payDescriptionOnline})(<TextArea placeholder="向客户说明线上缴费相关业务需求" style={{height:'300px'}}></TextArea>)}
214 214
         </Form.Item>
215 215
         <Form.Item label="线下缴费说明">

+ 1
- 1
src/pages/house/raise/edit/index.jsx View File

@@ -52,7 +52,7 @@ function EditHouse(props) {
52 52
 
53 53
   function housTabChange(e) {
54 54
     setHouseId(e.houseId)
55
-    setTab('preselectionRecord')
55
+    setTab('identifyingChips')
56 56
   }
57 57
 
58 58
   const raiseId = raiseData.raiseId || (props.location.query && props.location.query.id)