魏超 преди 5 години
родител
ревизия
7e33041adb

+ 3
- 3
src/pages/house/house/list/index.jsx Целия файл

156
       key: '',
156
       key: '',
157
       align: 'center',
157
       align: 'center',
158
       render: (text, record) => (
158
       render: (text, record) => (
159
-        <AuthButton name="admin.salesBatch.detail.get" noRight={null}>
159
+        <AuthButton name="admin.house.detail.get" noRight={null}>
160
           <a style={{ color: '#66B3FF' }} onClick={toAddHouse(record)} >查看详情</a>
160
           <a style={{ color: '#66B3FF' }} onClick={toAddHouse(record)} >查看详情</a>
161
         </AuthButton>
161
         </AuthButton>
162
       ),
162
       ),
252
             </Button>
252
             </Button>
253
         </Form.Item>
253
         </Form.Item>
254
       </Form>
254
       </Form>
255
-      <AuthButton name="admin.salesBatch.add.post" noRight={null}>
255
+      <AuthButton name="admin.house.add.post" noRight={null}>
256
         <Button type="danger" className={styles.addBtn} onClick={toAddHouse()}>新增</Button>
256
         <Button type="danger" className={styles.addBtn} onClick={toAddHouse()}>新增</Button>
257
       </AuthButton>
257
       </AuthButton>
258
-      <AuthButton name="admin.salesBatch.del" noRight={null}>
258
+      <AuthButton name="admin.house.del" noRight={null}>
259
         <Button type="primary" className={styles.addBtn} onClick={toDelBatch()} style={{marginLeft:'30px'}}>删除</Button>
259
         <Button type="primary" className={styles.addBtn} onClick={toDelBatch()} style={{marginLeft:'30px'}}>删除</Button>
260
       </AuthButton>
260
       </AuthButton>
261
       <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00', marginLeft:'30px'}} onClick={() => setShowHelp(true)} />
261
       <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00', marginLeft:'30px'}} onClick={() => setShowHelp(true)} />

+ 3
- 3
src/pages/house/preSelect/list/index.jsx Целия файл

165
       key: '',
165
       key: '',
166
       align: 'center',
166
       align: 'center',
167
       render: (text, record) => (
167
       render: (text, record) => (
168
-        <AuthButton name="admin.salesBatch.detail.get" noRight={null}>
168
+        <AuthButton name="admin.preselection.detail.get" noRight={null}>
169
           <a style={{ color: '#66B3FF' }} onClick={toAddHouse(record)} >查看详情</a>
169
           <a style={{ color: '#66B3FF' }} onClick={toAddHouse(record)} >查看详情</a>
170
         </AuthButton>
170
         </AuthButton>
171
       ),
171
       ),
253
             </Button>
253
             </Button>
254
         </Form.Item>
254
         </Form.Item>
255
       </Form>
255
       </Form>
256
-      <AuthButton name="admin.salesBatch.add.post" noRight={null}>
256
+      <AuthButton name="admin.preselection.add.post" noRight={null}>
257
         <Button type="danger" className={styles.addBtn} onClick={toAddHouse()}>新增</Button>
257
         <Button type="danger" className={styles.addBtn} onClick={toAddHouse()}>新增</Button>
258
       </AuthButton>
258
       </AuthButton>
259
-      <AuthButton name="admin.salesBatch.del" noRight={null}>
259
+      <AuthButton name="admin.preselection.del" noRight={null}>
260
         <Button type="primary" className={styles.addBtn} onClick={toDelBatch()} style={{marginLeft:'30px'}}>删除</Button>
260
         <Button type="primary" className={styles.addBtn} onClick={toDelBatch()} style={{marginLeft:'30px'}}>删除</Button>
261
       </AuthButton>
261
       </AuthButton>
262
       <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00', marginLeft:'30px'}} onClick={() => setShowHelp(true)} />
262
       <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00', marginLeft:'30px'}} onClick={() => setShowHelp(true)} />

+ 11
- 11
src/pages/house/raise/edit/components/IdentifyingChips.jsx Целия файл

25
  */
25
  */
26
 function PreselectionRecord(props) {
26
 function PreselectionRecord(props) {
27
   const [data, setData] = useState([])
27
   const [data, setData] = useState([])
28
-  const [userInfo, setUserInfo] = useState({visable:false, raiseId:'', raiseRecordId: ''})
28
+  const [userInfo, setUserInfo] = useState({visable:false, raiseId:'', raiseRecord: {}})
29
   const [houseInfo, setHouseInfo] = useState({visable:false, raiseRecordId:''})
29
   const [houseInfo, setHouseInfo] = useState({visable:false, raiseRecordId:''})
30
   const [invalid, setInvalid] = useState({visable:false,houseIds:''})
30
   const [invalid, setInvalid] = useState({visable:false,houseIds:''})
31
   const [pay, setPay] = useState({visable:false,houseIds:''})
31
   const [pay, setPay] = useState({visable:false,houseIds:''})
189
       dataIndex: 'tel',
189
       dataIndex: 'tel',
190
       key: 'tel',
190
       key: 'tel',
191
       render: (text, record) => (
191
       render: (text, record) => (
192
-      <a style={{ color: '#66B3FF' }} onClick={() => showUserInfo({visable:true, raiseId:raiseId, raiseRecordId:record.raiseRecordId  })} >{record.tel}</a>
192
+      <a style={{ color: '#66B3FF' }} onClick={() => showUserInfo({visable:true, raiseId:raiseId, raiseRecord:record  })} >{record.tel}</a>
193
       ),
193
       ),
194
     },
194
     },
195
     {
195
     {
210
     },
210
     },
211
     {
211
     {
212
       title: '缴费状态',
212
       title: '缴费状态',
213
-      dataIndex: 'payStatus1',
214
-      key: 'payStatus1',
213
+      // dataIndex: 'payStatus1',
214
+      // key: 'payStatus1',
215
       render: (text, record) => (<><span>{record.payStatus === 'paid' ? '已缴费':record.payStatus === 'unpaid'?'未缴费':record.payStatus === 'refunded'?'已退费':'正在支付'}</span></>),
215
       render: (text, record) => (<><span>{record.payStatus === 'paid' ? '已缴费':record.payStatus === 'unpaid'?'未缴费':record.payStatus === 'refunded'?'已退费':'正在支付'}</span></>),
216
     },
216
     },
217
     {
217
     {
222
     },
222
     },
223
     {
223
     {
224
       title: '缴费结果',
224
       title: '缴费结果',
225
-      dataIndex: 'payStatus2',
226
-      key: 'payStatus2',
225
+      // dataIndex: 'payStatus2',
226
+      // key: 'payStatus2',
227
       render: (text, record) => (<><span>{record.payStatus === 'paid' ? '已缴费':record.payStatus === 'unpaid'?'未缴费':record.payStatus === 'refunded'?'已退费':'正在支付'}</span></>),
227
       render: (text, record) => (<><span>{record.payStatus === 'paid' ? '已缴费':record.payStatus === 'unpaid'?'未缴费':record.payStatus === 'refunded'?'已退费':'正在支付'}</span></>),
228
     },
228
     },
229
     {
229
     {
230
       title: '退费状态',
230
       title: '退费状态',
231
-      dataIndex: 'payStatus3',
232
-      key: 'payStatus3',
231
+      // dataIndex: 'payStatus3',
232
+      // key: 'payStatus3',
233
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
233
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
234
     },
234
     },
235
     {
235
     {
239
     },
239
     },
240
     {
240
     {
241
         title: '退费结果',
241
         title: '退费结果',
242
-        dataIndex: 'payStatus4',
243
-        key: 'payStatus4',
242
+        // dataIndex: 'payStatus4',
243
+        // key: 'payStatus4',
244
         render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
244
         render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
245
     },
245
     },
246
     {
246
     {
393
       <Button type="primary" onClick={() => toDelBatch({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量删除</Button>
393
       <Button type="primary" onClick={() => toDelBatch({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量删除</Button>
394
       <Button type="primary" onClick={() => showPay({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量线下缴费</Button>
394
       <Button type="primary" onClick={() => showPay({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量线下缴费</Button>
395
       <Button type="primary" onClick={() => showRefund({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量线下退费</Button>
395
       <Button type="primary" onClick={() => showRefund({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量线下退费</Button>
396
-      <UserInfo visible={userInfo.visable} raiseId={userInfo.raiseId} raiseRecordId={userInfo.raiseRecordId} onCancel={() => setUserInfo({visable:false, raiseId:userInfo.raiseId})} />
396
+      <UserInfo visible={userInfo.visable} raiseId={userInfo.raiseId} raiseRecordId={userInfo.raiseRecord} onCancel={e => setUserInfo(e)} />
397
       <HouseInfo visible={houseInfo.visable} salesBatchId={houseInfo.salesBatchId} raiseRecordId={houseInfo.raiseRecordId} buildingId={houseInfo.buildingId} onCancel={() => setHouseInfo({visable:false, raiseRecordId: houseInfo.raiseRecordId})} />
397
       <HouseInfo visible={houseInfo.visable} salesBatchId={houseInfo.salesBatchId} raiseRecordId={houseInfo.raiseRecordId} buildingId={houseInfo.buildingId} onCancel={() => setHouseInfo({visable:false, raiseRecordId: houseInfo.raiseRecordId})} />
398
       <BatchInvalid visible={invalid.visable} houseIds={invalid.houseIds} onCancel={() => showInvalid(false)} onSuccess={() => showInvalid(false)}/>
398
       <BatchInvalid visible={invalid.visable} houseIds={invalid.houseIds} onCancel={() => showInvalid(false)} onSuccess={() => showInvalid(false)}/>
399
       <BatchPay visible={pay.visable} houseIds={pay.houseIds} onCancel={() => showPay(false)} onSuccess={() => showPay(false)} />
399
       <BatchPay visible={pay.visable} houseIds={pay.houseIds} onCancel={() => showPay(false)} onSuccess={() => showPay(false)} />

+ 4
- 4
src/pages/house/raise/edit/components/PaymentChips.jsx Целия файл

70
     },
70
     },
71
     {
71
     {
72
       title: '退费状态',
72
       title: '退费状态',
73
-      dataIndex: 'payStatus1',
74
-      key: 'payStatus1',
73
+      // dataIndex: 'payStatus1',
74
+      // key: 'payStatus1',
75
       align: 'center',
75
       align: 'center',
76
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
76
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
77
     },
77
     },
78
     {
78
     {
79
       title: '退费结果',
79
       title: '退费结果',
80
-      dataIndex: 'payStatus2',
81
-      key: 'payStatus2',
80
+      // dataIndex: 'payStatus2',
81
+      // key: 'payStatus2',
82
       align: 'center',
82
       align: 'center',
83
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
83
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
84
     },
84
     },

+ 14
- 12
src/pages/house/raise/edit/components/Refund.jsx Целия файл

33
   const columns = [
33
   const columns = [
34
     {
34
     {
35
       title: '退费单编号',
35
       title: '退费单编号',
36
-      dataIndex: 'orderId',
37
-      key: 'orderId',
36
+      // dataIndex: 'orderId',
37
+      // key: 'orderId',
38
       align: 'center',
38
       align: 'center',
39
+      render: (text, record) => (<><span>{record.orderId}</span></>),
39
     },
40
     },
40
     {
41
     {
41
       title: '缴费单编号',
42
       title: '缴费单编号',
42
-      dataIndex: 'orderId',
43
-      key: 'orderId',
43
+      // dataIndex: 'orderId',
44
+      // key: 'orderId',
44
       align: 'center',
45
       align: 'center',
46
+      render: (text, record) => (<><span>{record.orderId}</span></>),
45
     },
47
     },
46
     {
48
     {
47
       title: '认筹单编号',
49
       title: '认筹单编号',
63
     },
65
     },
64
     {
66
     {
65
       title: '退费状态',
67
       title: '退费状态',
66
-      dataIndex: 'payStatus1',
67
-      key: 'payStatus1',
68
+      // dataIndex: 'payStatus',
69
+      // key: 'payStatus1',
68
       align: 'center',
70
       align: 'center',
69
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
71
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
70
     },
72
     },
71
     {
73
     {
72
       title: '退费结果',
74
       title: '退费结果',
73
-      dataIndex: 'payStatus2',
74
-      key: 'payStatus2',
75
+      // dataIndex: 'payStatus',
76
+      // key: 'payStatus2',
75
       align: 'center',
77
       align: 'center',
76
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
78
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
77
     },
79
     },
96
     },
98
     },
97
     {
99
     {
98
       title: '退费成功时间',
100
       title: '退费成功时间',
99
-      dataIndex: 'updateDate',
100
-      key: 'updateDate',
101
+      // dataIndex: 'updateDate',
102
+      // key: 'updateDate',
101
       align: 'center',
103
       align: 'center',
102
       render: (x, row) => <><span>{`${moment(row.updateDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
104
       render: (x, row) => <><span>{`${moment(row.updateDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
103
     },
105
     },
104
     {
106
     {
105
       title: '退费失败时间',
107
       title: '退费失败时间',
106
-      dataIndex: 'updateDate',
107
-      key: 'updateDate',
108
+      // dataIndex: 'updateDate',
109
+      // key: 'updateDate',
108
       align: 'center',
110
       align: 'center',
109
       render: (x, row) => <><span>{`${moment(row.updateDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
111
       render: (x, row) => <><span>{`${moment(row.updateDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
110
     },
112
     },

+ 27
- 26
src/pages/house/raise/edit/components/UserInfo/index.jsx Целия файл

8
 import apis from '../../../../../../services/apis';
8
 import apis from '../../../../../../services/apis';
9
 
9
 
10
 const UserInfo = props => {
10
 const UserInfo = props => {
11
-  const [data, setData] = useState({})
12
-  const raiseRecordId = props.raiseRecordId
11
+  // const [data, setData] = useState({})
12
+  const raiseRecord = props.raiseRecordId
13
   const raiseId = props.raiseId
13
   const raiseId = props.raiseId
14
 
14
 
15
-  useEffect(() => {
16
-    console.log('userInfoLog', raiseId)
17
-    getList({ pageNum: 1, pageSize: 10 });
18
-  }, [raiseRecordId])
19
-
20
-  function getList(params) {
21
-    // 网路请求
22
-    request({ ...apis.house.getUserInfo, params: { raiseRecordId:raiseRecordId} }).then(res => {
23
-      console.log(res,'adminData')
24
-      setData(res)
25
-      console.log(data)
26
-      if (data==null){
27
-        return
28
-      }
29
-    }).catch(err => {
30
-      message.info("出错了")
31
-    })
15
+  // useEffect(() => {
16
+  //   console.log('userInfoLog', raiseId)
17
+  //   getList({ pageNum: 1, pageSize: 10 });
18
+  // }, [raiseRecordId])
19
+
20
+  // function getList(params) {
21
+  //   // 网路请求
22
+  //   request({ ...apis.house.getUserInfo, params: { raiseRecordId:raiseRecordId} }).then(res => {
23
+  //     console.log(res,'adminData')
24
+  //     setData(res)
25
+  //   }).catch(err => {
26
+  //     message.info("出错了")
27
+  //   })
28
+  // }
29
+
30
+  function refreshList(e){
31
+    console.log('.....',e)
32
+    props.onCancel(e)
32
   }
33
   }
33
 
34
 
34
   return (
35
   return (
35
-    <Modal footer={null} title="个人信息" visible={props.visible} onCancel={props.onCancel} width={800}>
36
+    <Modal footer={null} title="个人信息" visible={props.visible} onCancel={() => refreshList({visable:false, raiseRecord:raiseRecord})} width={800}>
36
       <div className={Style.cardBox}>
37
       <div className={Style.cardBox}>
37
         <div className={Style.rightBox}>
38
         <div className={Style.rightBox}>
38
           <div className={Style.flexBox}>
39
           <div className={Style.flexBox}>
39
-            {/* <img className={Style.touxiang} src={data.avrtarurl} /> */}
40
+            <img className={Style.touxiang} src={raiseRecord.avatarurl} />
40
             <div className={Style.right}>
41
             <div className={Style.right}>
41
-  <p className={Style.rightItem}>昵称:{data}</p>
42
-              {/* <p className={Style.rightItem}>姓名:{data.name}</p>
43
-              <p className={Style.rightItem}>用户手机号:{data.tel}</p>
44
-              <p className={Style.rightItem}>身份证号:{data.idcard}</p>
45
-              <p className={Style.rightItem}>认筹手机号:{data.tel}</p> */}
42
+              <p className={Style.rightItem}>昵称:{raiseRecord.nickname}</p>
43
+              <p className={Style.rightItem}>姓名:{raiseRecord.name}</p>
44
+              <p className={Style.rightItem}>用户手机号:{raiseRecord.tel}</p>
45
+              <p className={Style.rightItem} style={{width:'400px'}}>身份证号:{raiseRecord.idcard}</p>
46
+              <p className={Style.rightItem}>认筹手机号:{raiseRecord.tel}</p> 
46
             </div>
47
             </div>
47
           </div>
48
           </div>
48
         </div>
49
         </div>

+ 3
- 3
src/pages/house/raise/list/index.jsx Целия файл

185
       key: '',
185
       key: '',
186
       align: 'center',
186
       align: 'center',
187
       render: (text, record) => (
187
       render: (text, record) => (
188
-        <AuthButton name="admin.salesBatch.detail.get" noRight={null}>
188
+        <AuthButton name="admin.raise.detail.get" noRight={null}>
189
           <a style={{ color: '#66B3FF' }} onClick={toAddHouse(record)} >查看详情</a>
189
           <a style={{ color: '#66B3FF' }} onClick={toAddHouse(record)} >查看详情</a>
190
         </AuthButton>
190
         </AuthButton>
191
       ),
191
       ),
281
             </Button>
281
             </Button>
282
         </Form.Item>
282
         </Form.Item>
283
       </Form>
283
       </Form>
284
-      <AuthButton name="admin.salesBatch.add.post" noRight={null}>
284
+      <AuthButton name="admin.raise.add.post" noRight={null}>
285
         <Button type="danger" className={styles.addBtn} onClick={toAddHouse()}>新增</Button>
285
         <Button type="danger" className={styles.addBtn} onClick={toAddHouse()}>新增</Button>
286
       </AuthButton>
286
       </AuthButton>
287
-      <AuthButton name="admin.salesBatch.del" noRight={null}>
287
+      <AuthButton name="admin.raise.del" noRight={null}>
288
         <Button type="primary" className={styles.addBtn} onClick={toDelBatch()} style={{marginLeft:'30px'}}>删除</Button>
288
         <Button type="primary" className={styles.addBtn} onClick={toDelBatch()} style={{marginLeft:'30px'}}>删除</Button>
289
       </AuthButton>
289
       </AuthButton>
290
       <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00', marginLeft:'30px'}} onClick={() => setShowHelp(true)} />
290
       <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00', marginLeft:'30px'}} onClick={() => setShowHelp(true)} />