ソースを参照

Merge branch 'master' of http://git.ycjcjy.com/estateagents/pc-channel

zhoulisen 5 年 前
コミット
d80de20337
共有5 個のファイルを変更した34 個の追加29 個の削除を含む
  1. 1
    1
      config/config.js
  2. 2
    1
      src/pages/eContract/seal/components/AuthRes.jsx
  3. 7
    1
      src/pages/eContract/seal/components/Authorize.jsx
  4. 16
    24
      src/pages/eContract/seal/list.jsx
  5. 8
    2
      src/services/apis.js

+ 1
- 1
config/config.js ファイルの表示

@@ -133,7 +133,7 @@ export default {
133 133
 
134 134
   proxy: {
135 135
     '/api': {
136
-      target: 'http://192.168.2.51:8080/',
136
+      target: 'http://127.0.0.1:8080/',
137 137
       changeOrigin: true,
138 138
       // pathRewrite: { '^/server': '' },
139 139
     },

+ 2
- 1
src/pages/eContract/seal/components/AuthRes.jsx ファイルの表示

@@ -6,6 +6,7 @@ import apis from '../../../../services/apis';
6 6
 
7 7
 const AuthRes = props => {
8 8
   const authRes = props.authInfo
9
+  console.log(authRes, 'authRes')
9 10
 
10 11
   return (
11 12
     <Modal footer={null} title="授权信息" visible={props.visable} onCancel={props.onCancel} width={800}>
@@ -14,7 +15,7 @@ const AuthRes = props => {
14 15
           <span>{authRes.status === 1 ? '已授权':'未授权'}</span>
15 16
         </Form.Item>
16 17
         <Form.Item label="授权类型">
17
-          <span>{authRes.authType === 'onLine' ? '接口线上授权': authRes.authType === 'offLine' ? '线下管理员授权' : ''}</span>
18
+          <span>{authRes.authType === 1 ? '接口线上授权': authRes.authType === 2 ? '线下管理员授权' : ''}</span>
18 19
         </Form.Item>
19 20
         <Form.Item label="授权流水号">
20 21
         <span>{authRes.transactionId}</span>

+ 7
- 1
src/pages/eContract/seal/components/Authorize.jsx ファイルの表示

@@ -42,6 +42,12 @@ const header = props => {
42 42
       })
43 43
     }
44 44
 
45
+     //打开新页面
46
+   const openIndexImg = (e) => {
47
+    const newWin=window.open('about:blank');
48
+    newWin.location.href = e
49
+  }
50
+  
45 51
     const openFddUrl = (data) => {
46 52
       window.open(data)
47 53
     }
@@ -79,7 +85,7 @@ const header = props => {
79 85
           <span>{data.authorizeTransactionId}</span>
80 86
         </Form.Item>
81 87
         <Form.Item label="授权签署地址">
82
-        <span>{data.authorizeAddress}</span>
88
+        <span><a onClick={(e) => openIndexImg(data.authorizeAddress)} style={{ color: 'blue' }}> {data.authorizeAddress}</a></span>
83 89
         </Form.Item>
84 90
         <Form.Item label="合同编号">
85 91
         <span>{data.contractId}</span>

+ 16
- 24
src/pages/eContract/seal/list.jsx ファイルの表示

@@ -23,7 +23,7 @@ function header(props) {
23 23
 
24 24
   // 查询列表
25 25
   const getList = (params) => {
26
-    request({ ...apis.company.list, params: { ...params } }).then((data) => {
26
+    request({ ...apis.company.taCompanyList, params: { ...params } }).then((data) => {
27 27
         console.log(data)
28 28
         setData(data)
29 29
     })
@@ -115,12 +115,11 @@ function header(props) {
115 115
     },
116 116
     {
117 117
       title: '实名认证状态',
118
-      dataIndex: 'certifiedStatus',
119
-      key: 'certifiedStatus',
118
+      dataIndex: 'status',
119
+      key: 'status',
120 120
       align: 'center',
121
-      render: (x, row) => {
122
-        if(row.certifiedStatus === 'certification'){return '审核通过'}
123
-      },
121
+      render: (status) => <span>{status === 0 ? '未认证' : status === 1 ? "管理员资料已提交" : status === 2 ? "企业基本资料(没有申请表)已提交" : status === 3 ? "已提交待审核" : 
122
+      status === 4 ? '审核通过' : status === 5 ? "审核不通过" : status === 6 ? "人工初审通过" : "" }</span>,
124 123
     },
125 124
     {
126 125
       title: '印章数',
@@ -133,9 +132,7 @@ function header(props) {
133 132
       dataIndex: 'authorizeStatus',
134 133
       key: 'authorizeStatus',
135 134
       align: 'center',
136
-      render: (x, row) => {
137
-        if(row.authorizeStatus === 'certification'){return '审核通过'}
138
-      },
135
+      render: (authorizeStatus) => <span>{authorizeStatus === '3000' ? '已授权' : '未授权' }</span>,
139 136
     },
140 137
     {
141 138
       title: '操作',
@@ -176,28 +173,23 @@ function header(props) {
176 173
           )}
177 174
         </Form.Item>
178 175
         <Form.Item>
179
-          {getFieldDecorator('certifiedStatus')(
176
+          {getFieldDecorator('status')(
180 177
             <Select style={{ width: '180px' }} placeholder="实名认证状态">
181
-              <Select.Option value="1">未认证</Select.Option>
182
-              <Select.Option value="2">管理员资料已提交</Select.Option>
183
-              <Select.Option value="3">企业基本资料(没有申请表)已提交</Select.Option>
184
-              <Select.Option value="4">已提交待审核</Select.Option>
185
-              <Select.Option value="5">审核通过</Select.Option>
186
-              <Select.Option value="6">审核不通过</Select.Option>
187
-              <Select.Option value="7">人工初审通过</Select.Option>
178
+              <Select.Option value="0">未认证</Select.Option>
179
+              <Select.Option value="1">管理员资料已提交</Select.Option>
180
+              <Select.Option value="2">企业基本资料(没有申请表)已提交</Select.Option>
181
+              <Select.Option value="3">已提交待审核</Select.Option>
182
+              <Select.Option value="4">审核通过</Select.Option>
183
+              <Select.Option value="5">审核不通过</Select.Option>
184
+              <Select.Option value="6">人工初审通过</Select.Option>
188 185
             </Select>,
189 186
           )}
190 187
         </Form.Item>
191 188
         <Form.Item>
192 189
           {getFieldDecorator('authorizeStatus')(
193 190
             <Select style={{ width: '180px' }} placeholder="自动签章授权状态">
194
-              <Select.Option value="1">未认证</Select.Option>
195
-              <Select.Option value="2">管理员资料已提交</Select.Option>
196
-              <Select.Option value="3">企业基本资料(没有申请表)已提交</Select.Option>
197
-              <Select.Option value="4">已提交待审核</Select.Option>
198
-              <Select.Option value="5">审核通过</Select.Option>
199
-              <Select.Option value="6">审核不通过</Select.Option>
200
-              <Select.Option value="7">人工初审通过</Select.Option>
191
+              <Select.Option value="3000">已授权</Select.Option>
192
+              <Select.Option value="3001">未授权</Select.Option>
201 193
             </Select>,
202 194
           )}
203 195
         </Form.Item>

+ 8
- 2
src/services/apis.js ファイルの表示

@@ -274,6 +274,11 @@ const apis = {
274 274
       url: `${prefix}/company/getAuthStatus/:id`,
275 275
       method: 'GET',
276 276
       action: 'channel',
277
+    },
278
+    taCompanyList: {
279
+      url: `${prefix}/taCompanyList`,
280
+      method: 'GET',
281
+      action: 'channel',
277 282
     }
278 283
   },
279 284
 
@@ -299,8 +304,10 @@ const apis = {
299 304
       action: 'channel',
300 305
     },
301 306
     delSealById: {
302
-      url: `${prefix}/delCompanySeal/:id`,
307
+      url: `${prefix}/deleteCompanySeal/:id`,
303 308
       method: 'PUT',
309
+      action: 'channel',
310
+    },
304 311
     refresh: {
305 312
       url: `${prefix}/company/fdd/:id`,
306 313
       method: 'GET',
@@ -311,7 +318,6 @@ const apis = {
311 318
       method: 'DELETE',
312 319
       action: 'channel',
313 320
     }
314
-  }
315 321
   }  
316 322
 }
317 323