|
@@ -150,6 +150,15 @@ const TableList = props => {
|
150
|
150
|
>
|
151
|
151
|
<Button type="link" size="small">删除</Button>
|
152
|
152
|
</Popconfirm>
|
|
153
|
+ <Divider type="vertical" />
|
|
154
|
+ <Popconfirm
|
|
155
|
+ title="确认催缴当前记录?"
|
|
156
|
+ onConfirm={() => props.onCollection(row)}
|
|
157
|
+ okText="Yes"
|
|
158
|
+ cancelText="No"
|
|
159
|
+ >
|
|
160
|
+ <Button type="link" size="small">{row.billStatus == 0 ? "催缴" : ""}</Button>
|
|
161
|
+ </Popconfirm>
|
153
|
162
|
</span>
|
154
|
163
|
)
|
155
|
164
|
}
|
|
@@ -167,6 +176,7 @@ const TableList = props => {
|
167
|
176
|
|
168
|
177
|
const FetchBillList = fetchList(apis.bill.fetchBillList)
|
169
|
178
|
const deleteBillBeach = fetch(apis.bill.deleteBillBeach)
|
|
179
|
+const collectionBillList = fetch(apis.bill.collectionBill)
|
170
|
180
|
|
171
|
181
|
export default props => {
|
172
|
182
|
const [loading, setLoading] = useState(false)
|
|
@@ -199,6 +209,13 @@ export default props => {
|
199
|
209
|
}
|
200
|
210
|
}
|
201
|
211
|
|
|
212
|
+ const collectionBill = row => {
|
|
213
|
+ console.log(row,"-----------")
|
|
214
|
+ collectionBillList({ data: {billId: row.id}}).then(res => {
|
|
215
|
+ console.log(res,"222222")
|
|
216
|
+ })
|
|
217
|
+ }
|
|
218
|
+
|
202
|
219
|
const handleDeleteRow = row => {
|
203
|
220
|
setLoading(true)
|
204
|
221
|
deleteBillBeach({ data: [row.id] }).then(res => {
|
|
@@ -233,6 +250,7 @@ export default props => {
|
233
|
250
|
pagination={pagination}
|
234
|
251
|
onPageChange={handlePageChange}
|
235
|
252
|
onDetail={handleDetail}
|
|
253
|
+ onCollection={collectionBill}
|
236
|
254
|
onDeleteRow={handleDeleteRow}
|
237
|
255
|
/>
|
238
|
256
|
</Spin>
|