invoice_application.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. import React, {Component} from 'react';
  2. import {Text, TextInput, TouchableOpacity, View} from 'react-native';
  3. import Spinner from 'react-native-loading-spinner-overlay';
  4. import loading_css from '../../source/css/loading_css';
  5. import login_css from '../login/login_css';
  6. import public_css from '../../source/css/public_css';
  7. export default class invoice_application extends Component {
  8. constructor(props) {
  9. super(props);
  10. this.props.navigation.dangerouslyGetParent().setOptions({
  11. tabBarVisible: false,
  12. });
  13. this.state = {
  14. listData: [],
  15. product_number_total: 0,
  16. amount_total: 0.0,
  17. tax_rate_total: 0.0,
  18. };
  19. }
  20. render() {
  21. return (
  22. <View style={public_css.body}>
  23. <View style={login_css.inputView}>
  24. <View style={[public_css.view, public_css.lineTopBottom]}>
  25. <Text style={public_css.text}>发票类型:</Text>
  26. <TextInput
  27. style={public_css.textInputStyle}
  28. placeholder="请输入上级编码"
  29. clearButtonMode="while-editing"
  30. secureTextEntry={false}
  31. onChangeText={text => {
  32. this.setState({
  33. parent_code: text,
  34. });
  35. }}
  36. />
  37. </View>
  38. <View style={[public_css.view, public_css.lineTopBottom]}>
  39. <Text style={public_css.text}>申领的企业:</Text>
  40. <TextInput
  41. style={public_css.textInputStyle}
  42. placeholder="请输入客户名称"
  43. clearButtonMode="while-editing"
  44. secureTextEntry={false}
  45. onChangeText={text => {
  46. this.setState({
  47. customer_name: text,
  48. });
  49. }}
  50. />
  51. </View>
  52. <View style={[public_css.view, public_css.lineTopBottom]}>
  53. <Text style={public_css.text}>申领的份数:</Text>
  54. <TextInput
  55. style={public_css.textInputStyle}
  56. placeholder="请输入客户编码"
  57. clearButtonMode="while-editing"
  58. secureTextEntry={false}
  59. onChangeText={text => {
  60. this.setState({
  61. customer_code: text,
  62. });
  63. }}
  64. />
  65. </View>
  66. <View style={[public_css.view, public_css.lineTopBottom]}>
  67. <Text style={public_css.text}>发票申领人姓名:</Text>
  68. <TextInput
  69. style={public_css.textInputStyle}
  70. placeholder="请输入客户企业税号"
  71. clearButtonMode="while-editing"
  72. secureTextEntry={false}
  73. onChangeText={text => {
  74. this.setState({
  75. ent_tax_id: text,
  76. });
  77. }}
  78. />
  79. </View>
  80. <View style={[public_css.view, public_css.lineTopBottom]}>
  81. <Text style={public_css.text}>发票申领人的证件类型:</Text>
  82. <TextInput
  83. style={public_css.textInputStyle}
  84. placeholder="请输入简码"
  85. clearButtonMode="while-editing"
  86. secureTextEntry={false}
  87. onChangeText={text => {
  88. this.setState({
  89. short_code: text,
  90. });
  91. }}
  92. />
  93. </View>
  94. <View style={[public_css.view, public_css.lineTopBottom]}>
  95. <Text style={public_css.text}>发票申领人证件号码:</Text>
  96. <TextInput
  97. style={public_css.textInputStyle}
  98. placeholder="请输入联系电话"
  99. clearButtonMode="while-editing"
  100. secureTextEntry={false}
  101. onChangeText={text => {
  102. this.setState({
  103. contact_phone: text,
  104. });
  105. }}
  106. />
  107. </View>
  108. <View style={[public_css.view, public_css.lineTopBottom]}>
  109. <Text style={public_css.text}>领票方式:</Text>
  110. <TextInput
  111. style={public_css.textInputStyle}
  112. placeholder="请输入邮件"
  113. clearButtonMode="while-editing"
  114. secureTextEntry={false}
  115. onChangeText={text => {
  116. this.setState({
  117. email: text,
  118. });
  119. }}
  120. />
  121. </View>
  122. <View style={[public_css.view, public_css.lineTopBottom]}>
  123. <Text style={public_css.text}>备注:</Text>
  124. <TextInput
  125. style={public_css.textInputStyle}
  126. placeholder="请输入地址"
  127. clearButtonMode="while-editing"
  128. secureTextEntry={false}
  129. onChangeText={text => {
  130. this.setState({
  131. address: text,
  132. });
  133. }}
  134. />
  135. </View>
  136. </View>
  137. </View>
  138. );
  139. }
  140. }