魏超 5 лет назад
Родитель
Сommit
7e33041adb

+ 3
- 3
src/pages/house/house/list/index.jsx Просмотреть файл

@@ -156,7 +156,7 @@ const header = props => {
156 156
       key: '',
157 157
       align: 'center',
158 158
       render: (text, record) => (
159
-        <AuthButton name="admin.salesBatch.detail.get" noRight={null}>
159
+        <AuthButton name="admin.house.detail.get" noRight={null}>
160 160
           <a style={{ color: '#66B3FF' }} onClick={toAddHouse(record)} >查看详情</a>
161 161
         </AuthButton>
162 162
       ),
@@ -252,10 +252,10 @@ const header = props => {
252 252
             </Button>
253 253
         </Form.Item>
254 254
       </Form>
255
-      <AuthButton name="admin.salesBatch.add.post" noRight={null}>
255
+      <AuthButton name="admin.house.add.post" noRight={null}>
256 256
         <Button type="danger" className={styles.addBtn} onClick={toAddHouse()}>新增</Button>
257 257
       </AuthButton>
258
-      <AuthButton name="admin.salesBatch.del" noRight={null}>
258
+      <AuthButton name="admin.house.del" noRight={null}>
259 259
         <Button type="primary" className={styles.addBtn} onClick={toDelBatch()} style={{marginLeft:'30px'}}>删除</Button>
260 260
       </AuthButton>
261 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,7 +165,7 @@ const header = props => {
165 165
       key: '',
166 166
       align: 'center',
167 167
       render: (text, record) => (
168
-        <AuthButton name="admin.salesBatch.detail.get" noRight={null}>
168
+        <AuthButton name="admin.preselection.detail.get" noRight={null}>
169 169
           <a style={{ color: '#66B3FF' }} onClick={toAddHouse(record)} >查看详情</a>
170 170
         </AuthButton>
171 171
       ),
@@ -253,10 +253,10 @@ const header = props => {
253 253
             </Button>
254 254
         </Form.Item>
255 255
       </Form>
256
-      <AuthButton name="admin.salesBatch.add.post" noRight={null}>
256
+      <AuthButton name="admin.preselection.add.post" noRight={null}>
257 257
         <Button type="danger" className={styles.addBtn} onClick={toAddHouse()}>新增</Button>
258 258
       </AuthButton>
259
-      <AuthButton name="admin.salesBatch.del" noRight={null}>
259
+      <AuthButton name="admin.preselection.del" noRight={null}>
260 260
         <Button type="primary" className={styles.addBtn} onClick={toDelBatch()} style={{marginLeft:'30px'}}>删除</Button>
261 261
       </AuthButton>
262 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,7 +25,7 @@ import BatchRefund from './BatchRaise/BatchRefund';
25 25
  */
26 26
 function PreselectionRecord(props) {
27 27
   const [data, setData] = useState([])
28
-  const [userInfo, setUserInfo] = useState({visable:false, raiseId:'', raiseRecordId: ''})
28
+  const [userInfo, setUserInfo] = useState({visable:false, raiseId:'', raiseRecord: {}})
29 29
   const [houseInfo, setHouseInfo] = useState({visable:false, raiseRecordId:''})
30 30
   const [invalid, setInvalid] = useState({visable:false,houseIds:''})
31 31
   const [pay, setPay] = useState({visable:false,houseIds:''})
@@ -189,7 +189,7 @@ function PreselectionRecord(props) {
189 189
       dataIndex: 'tel',
190 190
       key: 'tel',
191 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,8 +210,8 @@ function PreselectionRecord(props) {
210 210
     },
211 211
     {
212 212
       title: '缴费状态',
213
-      dataIndex: 'payStatus1',
214
-      key: 'payStatus1',
213
+      // dataIndex: 'payStatus1',
214
+      // key: 'payStatus1',
215 215
       render: (text, record) => (<><span>{record.payStatus === 'paid' ? '已缴费':record.payStatus === 'unpaid'?'未缴费':record.payStatus === 'refunded'?'已退费':'正在支付'}</span></>),
216 216
     },
217 217
     {
@@ -222,14 +222,14 @@ function PreselectionRecord(props) {
222 222
     },
223 223
     {
224 224
       title: '缴费结果',
225
-      dataIndex: 'payStatus2',
226
-      key: 'payStatus2',
225
+      // dataIndex: 'payStatus2',
226
+      // key: 'payStatus2',
227 227
       render: (text, record) => (<><span>{record.payStatus === 'paid' ? '已缴费':record.payStatus === 'unpaid'?'未缴费':record.payStatus === 'refunded'?'已退费':'正在支付'}</span></>),
228 228
     },
229 229
     {
230 230
       title: '退费状态',
231
-      dataIndex: 'payStatus3',
232
-      key: 'payStatus3',
231
+      // dataIndex: 'payStatus3',
232
+      // key: 'payStatus3',
233 233
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
234 234
     },
235 235
     {
@@ -239,8 +239,8 @@ function PreselectionRecord(props) {
239 239
     },
240 240
     {
241 241
         title: '退费结果',
242
-        dataIndex: 'payStatus4',
243
-        key: 'payStatus4',
242
+        // dataIndex: 'payStatus4',
243
+        // key: 'payStatus4',
244 244
         render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
245 245
     },
246 246
     {
@@ -393,7 +393,7 @@ function PreselectionRecord(props) {
393 393
       <Button type="primary" onClick={() => toDelBatch({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量删除</Button>
394 394
       <Button type="primary" onClick={() => showPay({visable:true, houseIds: taRaiseRecords})} style={{ marginTop: '20px', marginRight:'20px'}}>批量线下缴费</Button>
395 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 397
       <HouseInfo visible={houseInfo.visable} salesBatchId={houseInfo.salesBatchId} raiseRecordId={houseInfo.raiseRecordId} buildingId={houseInfo.buildingId} onCancel={() => setHouseInfo({visable:false, raiseRecordId: houseInfo.raiseRecordId})} />
398 398
       <BatchInvalid visible={invalid.visable} houseIds={invalid.houseIds} onCancel={() => showInvalid(false)} onSuccess={() => showInvalid(false)}/>
399 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,15 +70,15 @@ const header = (props) => {
70 70
     },
71 71
     {
72 72
       title: '退费状态',
73
-      dataIndex: 'payStatus1',
74
-      key: 'payStatus1',
73
+      // dataIndex: 'payStatus1',
74
+      // key: 'payStatus1',
75 75
       align: 'center',
76 76
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
77 77
     },
78 78
     {
79 79
       title: '退费结果',
80
-      dataIndex: 'payStatus2',
81
-      key: 'payStatus2',
80
+      // dataIndex: 'payStatus2',
81
+      // key: 'payStatus2',
82 82
       align: 'center',
83 83
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
84 84
     },

+ 14
- 12
src/pages/house/raise/edit/components/Refund.jsx Просмотреть файл

@@ -33,15 +33,17 @@ const header = (props) => {
33 33
   const columns = [
34 34
     {
35 35
       title: '退费单编号',
36
-      dataIndex: 'orderId',
37
-      key: 'orderId',
36
+      // dataIndex: 'orderId',
37
+      // key: 'orderId',
38 38
       align: 'center',
39
+      render: (text, record) => (<><span>{record.orderId}</span></>),
39 40
     },
40 41
     {
41 42
       title: '缴费单编号',
42
-      dataIndex: 'orderId',
43
-      key: 'orderId',
43
+      // dataIndex: 'orderId',
44
+      // key: 'orderId',
44 45
       align: 'center',
46
+      render: (text, record) => (<><span>{record.orderId}</span></>),
45 47
     },
46 48
     {
47 49
       title: '认筹单编号',
@@ -63,15 +65,15 @@ const header = (props) => {
63 65
     },
64 66
     {
65 67
       title: '退费状态',
66
-      dataIndex: 'payStatus1',
67
-      key: 'payStatus1',
68
+      // dataIndex: 'payStatus',
69
+      // key: 'payStatus1',
68 70
       align: 'center',
69 71
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
70 72
     },
71 73
     {
72 74
       title: '退费结果',
73
-      dataIndex: 'payStatus2',
74
-      key: 'payStatus2',
75
+      // dataIndex: 'payStatus',
76
+      // key: 'payStatus2',
75 77
       align: 'center',
76 78
       render: (text, record) => (<><span>{record.payStatus === 'refunded' ? '已退费':'未退费'}</span></>),
77 79
     },
@@ -96,15 +98,15 @@ const header = (props) => {
96 98
     },
97 99
     {
98 100
       title: '退费成功时间',
99
-      dataIndex: 'updateDate',
100
-      key: 'updateDate',
101
+      // dataIndex: 'updateDate',
102
+      // key: 'updateDate',
101 103
       align: 'center',
102 104
       render: (x, row) => <><span>{`${moment(row.updateDate).format('YYYY-MM-DD HH:mm:ss')}`}</span></>,
103 105
     },
104 106
     {
105 107
       title: '退费失败时间',
106
-      dataIndex: 'updateDate',
107
-      key: 'updateDate',
108
+      // dataIndex: 'updateDate',
109
+      // key: 'updateDate',
108 110
       align: 'center',
109 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,41 +8,42 @@ import request from '../../../../../../utils/request';
8 8
 import apis from '../../../../../../services/apis';
9 9
 
10 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 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 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 37
       <div className={Style.cardBox}>
37 38
         <div className={Style.rightBox}>
38 39
           <div className={Style.flexBox}>
39
-            {/* <img className={Style.touxiang} src={data.avrtarurl} /> */}
40
+            <img className={Style.touxiang} src={raiseRecord.avatarurl} />
40 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 47
             </div>
47 48
           </div>
48 49
         </div>

+ 3
- 3
src/pages/house/raise/list/index.jsx Просмотреть файл

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