Browse Source

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

zhoulisen 4 years ago
parent
commit
459b9ea9be

+ 21
- 0
src/pages/fundManagement/AccountManagement.jsx View File

@@ -121,6 +121,24 @@ function header(props) {
121 121
         getList({ pageNum: 1, pageSize: 10 })
122 122
     }
123 123
 
124
+    // 导出
125
+    const exportList = () => {
126
+        let { LocalDate, ...submitValue } = props.form.getFieldsValue()
127
+        
128
+        request({ ...apis.fund.accountExport, params: { ...submitValue } }).then(data => {
129
+            if (!data) {
130
+                return
131
+            }
132
+            const url = window.URL.createObjectURL(new Blob([data]))
133
+            const link = document.createElement('a')
134
+            link.style.display = 'none'
135
+            link.href = url
136
+            link.setAttribute('download', '账户列表.xlsx')
137
+            document.body.append(link)
138
+            link.click()
139
+        }).catch()
140
+    }
141
+
124 142
     const toDeatil = (row) => {
125 143
         router.push({
126 144
             pathname: '/fundManagement/AccountDetail',
@@ -153,6 +171,9 @@ function header(props) {
153 171
                     </Button>
154 172
                 </Form.Item>
155 173
             </Form>
174
+            <div>
175
+                <Button type="danger" style={{ float: 'right', marginBottom: '20px', zIndex: 1 }} onClick={() => exportList()} >导出</Button>
176
+            </div>
156 177
             <Table rowKey={r => r.accountId} dataSource={data.records} columns={columns} pagination={false} />
157 178
             <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
158 179
                 <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current} />

+ 1
- 0
src/pages/fundManagement/ConsumeOrder.jsx View File

@@ -96,6 +96,7 @@ function header(props) {
96 96
             dataIndex: 'consumeType',
97 97
             key: 'consumeType',
98 98
             align: 'center',
99
+            render: (x, row) => <><span>{row.consumeType == 'RedPacket' ? '红包' : ''}</span></>
99 100
         },
100 101
         {
101 102
             title: '活动名称',

+ 1
- 1
src/pages/fundManagement/Finance.jsx View File

@@ -23,7 +23,7 @@ function header(props) {
23 23
 
24 24
     // 查询列表
25 25
     const getList = (params) => {
26
-        request({ ...apis.fund.contactList, params: { ...params } }).then((data) => {
26
+        request({ ...apis.fund.contactList, params: { ...params, contentType: 'finance' } }).then((data) => {
27 27
             console.log(data)
28 28
             setData(data)
29 29
         })

+ 3
- 3
src/pages/fundManagement/components/SelectContact.jsx View File

@@ -105,8 +105,8 @@ const SelectContact = props => {
105 105
         },
106 106
         {
107 107
             title: '对外头衔',
108
-            dataIndex: 'job',
109
-            key: 'job',
108
+            dataIndex: 'appellation',
109
+            key: 'appellation',
110 110
             align: 'center',
111 111
             ellipsis: true,
112 112
         },
@@ -162,7 +162,7 @@ const SelectContact = props => {
162 162
                         )}
163 163
                     </Form.Item>
164 164
                     <Form.Item>
165
-                        {getFieldDecorator('job')(
165
+                        {getFieldDecorator('appellation')(
166 166
                             <Input
167 167
                                 prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
168 168
                                 placeholder="对外头衔"

+ 5
- 0
src/services/apis.js View File

@@ -268,6 +268,11 @@ const apis = {
268 268
       method: 'GET',
269 269
       action: 'channel',
270 270
     },
271
+    accountExport: {
272
+      url: `${prefix}/taOrgAccount/taOrgAccountListExport`,
273
+      method: 'GET',
274
+      action: 'channel',
275
+    },
271 276
   },
272 277
   relatedOrganization: {
273 278
     get: {