import React, {Component} from 'react'; import { View, Text, StatusBar, ScrollView, DeviceEventEmitter, } from 'react-native'; import { Provider, Button, List, Modal, } from '@ant-design/react-native'; import {connect} from 'react-redux'; import CallPhone from '../../components/CallPhone'; import ComponentsStyles from '../../components/ComponentsStyles'; @connect(customer => ({...customer})) class ReportCustomerDetail extends Component { // 报备客户详情 constructor(props) { super(props); }; onSignRepeat = (item) => { Modal.alert('提醒', '确定要标记为撞单客户吗?', [ { text: '取消', style: 'cancel', }, { text: '确定', onPress: () => this.props.dispatch({ type: 'customer/signRepeat', payload: {id: item.id}, callback: () => { DeviceEventEmitter.emit('backRefesh'); this.props.navigation.goBack(); }, }), }, ]); }; render() { const item = this.props.navigation.state.params.item; return ( {item.name}} arrow="empty"> 姓名 {item.gender_text}} arrow="empty"> 性别 电话 {'\ue61a'} CallPhone(item.tel, 1)}> {item.tel} {item.village}} arrow="empty"> 小区 {item.address}} arrow="empty"> 地址 {item.source_text}} arrow="empty"> 来源 {item.project_text}} arrow="empty"> 项目 {item.report_status_text}} arrow="empty"> 报备状态 {item.create_time_f}} arrow="empty"> 报备时间 {item.create_user_text}} arrow="empty"> 报备人 {item.check_time_f}} arrow="empty"> 审核时间 {item.check_user_text}} arrow="empty"> 审核人 {item.notes}} arrow="empty"> 备注 {item.report_status === 0 && } ); } } export default ReportCustomerDetail;