import React, { Component } from 'react' import { StyleSheet, ScrollView, View, Image, ImageBackground, Text, Dimensions, StatusBar, TouchableOpacity, PixelRatio, FlatList, } from 'react-native' import { connect } from 'react-redux' import { Button } from '../../../components' import Icon from '../../../components/Iconfont/Iconfont' import { NavigationActions, createAction } from '../../../utils' import { ReturnDate } from '../../../utils/utils' import { HeaderView } from '../../common/HeaderView' const { width, height } = Dimensions.get('window') @connect(({ theme, mine_header }) => ({ ...theme, ...mine_header })) class CostDetail extends Component { constructor(props) { super(props) this.state = {} // console.disableYellowBox = true; } ViewList(itemLeft, itemRight) { return ( {itemLeft} {itemRight} ) } jobIdList(item) { return ( {item.customerOrderId} {ReturnDate(item.billDate, true)} {item.flushAmount} ) } render() { const { appTheme, castDetail } = this.props, { castData } = this.props.navigation.state.params return ( {HeaderView(this.props.dispatch, '费用余额')} {this.ViewList('单据号', castData.billCode)} {this.ViewList('单据状态', castData.billStatusName)} {this.ViewList('冲抵方式', castData.castTypeName)} {this.ViewList('销售组织', castData.saleOrgName)} {/* {this.ViewList("按销售组织冲抵", "是")} */} {/* {this.ViewList("产品线", "A产品线")} */} 备注 {castData.remark} 订货单编码 订单日期 冲抵金额 index} data={castDetail} renderItem={({ item, index }) => this.jobIdList(item, index)} // legacyImplementation={true} /> ) } } const styles = StyleSheet.create({ container: { flex: 1, }, pngstyle: { width: width, }, buttonStyle: { backgroundColor: 'transparent', flexDirection: 'column', alignItems: 'center', }, buttonText: { marginTop: 9, fontSize: 14, color: '#FFF', }, }) export default CostDetail