tax_navigation.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. import React, {Component} from 'react';
  2. import {Image, TouchableOpacity, View} from 'react-native';
  3. import {createStackNavigator} from '@react-navigation/stack';
  4. import tax_message from '../../page/tax_message/tax_message';
  5. import message_list from '../../page/tax_message/message_list';
  6. // import preview_pdf from '../onlinePreviewPDF/preview_pdf';
  7. // import invoice_application from '../../page/invoiceApplication/invoice_application';
  8. // import sweep_code_invoice from '../../page/sweepCodeInvoice/sweep_code_invoice';
  9. // import invoice_user from '../../page/invoice/invoice_user';
  10. const TaxStack = createStackNavigator();
  11. export default class tax_navigation extends Component {
  12. constructor(props) {
  13. super(props);
  14. }
  15. render() {
  16. return (
  17. <TaxStack.Navigator initialRouteName="message_list">
  18. <TaxStack.Screen
  19. name="message_list"
  20. component={message_list}
  21. options={{
  22. title: '系统公告',
  23. headerTitleAlign: 'center',
  24. headerStyle: {
  25. backgroundColor: '#1199EA',
  26. },
  27. headerTintColor: '#fff',
  28. }}
  29. />
  30. <TaxStack.Screen
  31. name="tax_message"
  32. component={tax_message}
  33. options={{
  34. title: '消息',
  35. headerTitleAlign: 'center',
  36. headerStyle: {
  37. backgroundColor: '#1199EA',
  38. },
  39. headerTintColor: '#fff',
  40. }}
  41. />
  42. {/*<TaxStack.Screen*/}
  43. {/* name={'invoice_customer_information'}*/}
  44. {/* component={invoice_customer_information}*/}
  45. {/* options={{*/}
  46. {/* title: '开票确认',*/}
  47. {/* headerTitleAlign: 'center',*/}
  48. {/* headerStyle: {*/}
  49. {/* backgroundColor: '#1199EA',*/}
  50. {/* },*/}
  51. {/* headerTintColor: '#fff',*/}
  52. {/* }}*/}
  53. {/*/>*/}
  54. {/*<TaxStack.Screen*/}
  55. {/* name={'invoice_product_number'}*/}
  56. {/* component={invoice_product_number}*/}
  57. {/* options={{*/}
  58. {/* title: '产品确认',*/}
  59. {/* headerTitleAlign: 'center',*/}
  60. {/* headerStyle: {*/}
  61. {/* backgroundColor: '#1199EA',*/}
  62. {/* },*/}
  63. {/* headerTintColor: '#fff',*/}
  64. {/* }}*/}
  65. {/*/>*/}
  66. {/*<TaxStack.Screen*/}
  67. {/* name={'invoice_product_list'}*/}
  68. {/* component={invoice_product_list}*/}
  69. {/* options={{*/}
  70. {/* headerTitle: '产品列表',*/}
  71. {/* headerTitleAlign: 'center',*/}
  72. {/* headerRight: () => (*/}
  73. {/* <View style={{marginRight: 20}}>*/}
  74. {/* <TouchableOpacity*/}
  75. {/* onPress={() => {*/}
  76. {/* this.props.navigation.navigate('invoice_product_list_add');*/}
  77. {/* }}>*/}
  78. {/* <Image*/}
  79. {/* source={require('../../source/img/add.png')}*/}
  80. {/* style={{height: 16, width: 16}}*/}
  81. {/* />*/}
  82. {/* </TouchableOpacity>*/}
  83. {/* </View>*/}
  84. {/* ),*/}
  85. {/* headerStyle: {*/}
  86. {/* backgroundColor: '#1199EA',*/}
  87. {/* },*/}
  88. {/* headerTintColor: '#fff',*/}
  89. {/* }}*/}
  90. {/*/>*/}
  91. {/*<TaxStack.Screen*/}
  92. {/* name={'invoice_product_list_add'}*/}
  93. {/* component={invoice_product_list_add}*/}
  94. {/* options={{*/}
  95. {/* title: '添加开票产品',*/}
  96. {/* headerTitleAlign: 'center',*/}
  97. {/* headerStyle: {*/}
  98. {/* backgroundColor: '#1199EA',*/}
  99. {/* },*/}
  100. {/* headerTintColor: '#fff',*/}
  101. {/* }}*/}
  102. {/*/>*/}
  103. {/*<TaxStack.Screen*/}
  104. {/* name={'invoice_select_customer'}*/}
  105. {/* component={invoice_select_customer}*/}
  106. {/* options={{*/}
  107. {/* title: '客户信息选择',*/}
  108. {/* headerTitleAlign: 'center',*/}
  109. {/* headerStyle: {*/}
  110. {/* backgroundColor: '#1199EA',*/}
  111. {/* },*/}
  112. {/* headerTintColor: '#fff',*/}
  113. {/* }}*/}
  114. {/*/>*/}
  115. {/*<TaxStack.Screen*/}
  116. {/* name={'preview_pdf'}*/}
  117. {/* component={preview_pdf}*/}
  118. {/* options={{*/}
  119. {/* title: '发票在线查看',*/}
  120. {/* headerTitleAlign: 'center',*/}
  121. {/* headerStyle: {*/}
  122. {/* backgroundColor: '#1199EA',*/}
  123. {/* },*/}
  124. {/* headerTintColor: '#fff',*/}
  125. {/* }}*/}
  126. {/*/>*/}
  127. {/*<TaxStack.Screen*/}
  128. {/* name={'invoice_application'}*/}
  129. {/* component={invoice_application}*/}
  130. {/* options={{*/}
  131. {/* title: '发票申领',*/}
  132. {/* headerTitleAlign: 'center',*/}
  133. {/* headerStyle: {*/}
  134. {/* backgroundColor: '#1199EA',*/}
  135. {/* },*/}
  136. {/* headerTintColor: '#fff',*/}
  137. {/* }}*/}
  138. {/*/>*/}
  139. {/*<TaxStack.Screen*/}
  140. {/* name={'sweep_code_invoice'}*/}
  141. {/* component={sweep_code_invoice}*/}
  142. {/* options={{*/}
  143. {/* title: '扫码开票',*/}
  144. {/* headerTitleAlign: 'center',*/}
  145. {/* headerStyle: {*/}
  146. {/* backgroundColor: '#1199EA',*/}
  147. {/* },*/}
  148. {/* headerTintColor: '#fff',*/}
  149. {/* }}*/}
  150. {/*/>*/}
  151. {/*<TaxStack.Screen*/}
  152. {/* name={'invoice_head'}*/}
  153. {/* component={invoice_head}*/}
  154. {/* options={{*/}
  155. {/* headerTitle: '待开抬头',*/}
  156. {/* headerTitleAlign: 'center',*/}
  157. {/* headerRight: () => (*/}
  158. {/* <View style={{marginRight: 20}}>*/}
  159. {/* <TouchableOpacity*/}
  160. {/* onPress={() => {*/}
  161. {/* this.props.navigation.navigate('invoice_head', {*/}
  162. {/* isShow: true,*/}
  163. {/* });*/}
  164. {/* }}>*/}
  165. {/* <Image*/}
  166. {/* source={require('../../source/img/search.png')}*/}
  167. {/* style={{height: 16, width: 16}}*/}
  168. {/* />*/}
  169. {/* </TouchableOpacity>*/}
  170. {/* </View>*/}
  171. {/* ),*/}
  172. {/* headerStyle: {*/}
  173. {/* backgroundColor: '#1199EA',*/}
  174. {/* },*/}
  175. {/* headerTintColor: '#fff',*/}
  176. {/* }}*/}
  177. {/*/>*/}
  178. {/*<TaxStack.Screen*/}
  179. {/* name={'invoice_head_product_list'}*/}
  180. {/* component={invoice_head_product_list}*/}
  181. {/* options={{*/}
  182. {/* headerTitle: '产品列表',*/}
  183. {/* headerTitleAlign: 'center',*/}
  184. {/* headerRight: () => (*/}
  185. {/* <View style={{marginRight: 20}}>*/}
  186. {/* <TouchableOpacity*/}
  187. {/* onPress={() => {*/}
  188. {/* this.props.navigation.navigate('invoice_head_product_add');*/}
  189. {/* }}>*/}
  190. {/* <Image*/}
  191. {/* source={require('../../source/img/add.png')}*/}
  192. {/* style={{height: 16, width: 16}}*/}
  193. {/* />*/}
  194. {/* </TouchableOpacity>*/}
  195. {/* </View>*/}
  196. {/* ),*/}
  197. {/* headerStyle: {*/}
  198. {/* backgroundColor: '#1199EA',*/}
  199. {/* },*/}
  200. {/* headerTintColor: '#fff',*/}
  201. {/* }}*/}
  202. {/*/>*/}
  203. {/*<TaxStack.Screen*/}
  204. {/* name={'invoice_head_product_add'}*/}
  205. {/* component={invoice_head_product_add}*/}
  206. {/* options={{*/}
  207. {/* title: '产品查询',*/}
  208. {/* headerTitleAlign: 'center',*/}
  209. {/* headerStyle: {*/}
  210. {/* backgroundColor: '#1199EA',*/}
  211. {/* },*/}
  212. {/* headerTintColor: '#fff',*/}
  213. {/* }}*/}
  214. {/*/>*/}
  215. {/*<TaxStack.Screen*/}
  216. {/* name={'invoice_head_product_number'}*/}
  217. {/* component={invoice_head_product_number}*/}
  218. {/* options={{*/}
  219. {/* title: '产品信息填写',*/}
  220. {/* headerTitleAlign: 'center',*/}
  221. {/* headerStyle: {*/}
  222. {/* backgroundColor: '#1199EA',*/}
  223. {/* },*/}
  224. {/* headerTintColor: '#fff',*/}
  225. {/* }}*/}
  226. {/*/>*/}
  227. {/*<TaxStack.Screen*/}
  228. {/* name={'invoice_head_information'}*/}
  229. {/* component={invoice_head_information}*/}
  230. {/* options={{*/}
  231. {/* title: '待开抬头开票信息',*/}
  232. {/* headerTitleAlign: 'center',*/}
  233. {/* headerStyle: {*/}
  234. {/* backgroundColor: '#1199EA',*/}
  235. {/* },*/}
  236. {/* headerTintColor: '#fff',*/}
  237. {/* }}*/}
  238. {/*/>*/}
  239. {/*<TaxStack.Screen*/}
  240. {/* name="customer_information"*/}
  241. {/* component={customer_information}*/}
  242. {/* options={{*/}
  243. {/* headerTitle: '客户信息',*/}
  244. {/* headerTitleAlign: 'center',*/}
  245. {/* headerRight: () => (*/}
  246. {/* <View style={{marginRight: 20}}>*/}
  247. {/* <TouchableOpacity*/}
  248. {/* onPress={() => {*/}
  249. {/* this.props.navigation.navigate('customer_add');*/}
  250. {/* }}>*/}
  251. {/* <Image*/}
  252. {/* source={require('../../source/img/add.png')}*/}
  253. {/* style={{height: 20, width: 20}}*/}
  254. {/* />*/}
  255. {/* </TouchableOpacity>*/}
  256. {/* </View>*/}
  257. {/* ),*/}
  258. {/* headerStyle: {*/}
  259. {/* backgroundColor: '#1199EA',*/}
  260. {/* },*/}
  261. {/* headerTintColor: '#fff',*/}
  262. {/* }}*/}
  263. {/*/>*/}
  264. {/*<TaxStack.Screen*/}
  265. {/* name="customer_add"*/}
  266. {/* component={customer_add}*/}
  267. {/* options={{*/}
  268. {/* title: '新增客户信息',*/}
  269. {/* headerTitleAlign: 'center',*/}
  270. {/* headerStyle: {*/}
  271. {/* backgroundColor: '#1199EA',*/}
  272. {/* },*/}
  273. {/* headerTintColor: '#fff',*/}
  274. {/* }}*/}
  275. {/*/>*/}
  276. {/*<TaxStack.Screen*/}
  277. {/* name="customer_edit"*/}
  278. {/* component={customer_edit}*/}
  279. {/* options={{*/}
  280. {/* title: '编辑客户信息',*/}
  281. {/* headerTitleAlign: 'center',*/}
  282. {/* headerStyle: {*/}
  283. {/* backgroundColor: '#1199EA',*/}
  284. {/* },*/}
  285. {/* headerTintColor: '#fff',*/}
  286. {/* }}*/}
  287. {/*/>*/}
  288. {/*<TaxStack.Screen*/}
  289. {/* name="customer_see"*/}
  290. {/* component={customer_see}*/}
  291. {/* options={{*/}
  292. {/* title: '客户信息',*/}
  293. {/* headerTitleAlign: 'center',*/}
  294. {/* headerStyle: {*/}
  295. {/* backgroundColor: '#1199EA',*/}
  296. {/* },*/}
  297. {/* headerTintColor: '#fff',*/}
  298. {/* }}*/}
  299. {/*/>*/}
  300. {/*<TaxStack.Screen*/}
  301. {/* name="login_head"*/}
  302. {/* component={login_head}*/}
  303. {/* options={{*/}
  304. {/* title: '登录',*/}
  305. {/* headerTitleAlign: 'center',*/}
  306. {/* headerStyle: {*/}
  307. {/* backgroundColor: '#1199EA',*/}
  308. {/* },*/}
  309. {/* headerTintColor: '#fff',*/}
  310. {/* }}*/}
  311. {/*/>*/}
  312. {/*<TaxStack.Screen*/}
  313. {/* name="forget_password"*/}
  314. {/* component={forget_password}*/}
  315. {/* options={{*/}
  316. {/* title: '密码修改',*/}
  317. {/* headerTitleAlign: 'center',*/}
  318. {/* headerStyle: {*/}
  319. {/* backgroundColor: '#1199EA',*/}
  320. {/* },*/}
  321. {/* headerTintColor: '#fff',*/}
  322. {/* }}*/}
  323. {/*/>*/}
  324. {/*<TaxStack.Screen*/}
  325. {/* name="invoice_qrcode_product_list"*/}
  326. {/* component={invoice_qrcode_product_list}*/}
  327. {/* options={{*/}
  328. {/* headerTitle: '产品列表',*/}
  329. {/* headerTitleAlign: 'center',*/}
  330. {/* headerRight: () => (*/}
  331. {/* <View style={{marginRight: 20}}>*/}
  332. {/* <TouchableOpacity*/}
  333. {/* onPress={() => {*/}
  334. {/* this.props.navigation.navigate(*/}
  335. {/* 'invoice_qrcode_product_list_add',*/}
  336. {/* );*/}
  337. {/* }}>*/}
  338. {/* <Image*/}
  339. {/* source={require('../../source/img/add.png')}*/}
  340. {/* style={{height: 16, width: 16}}*/}
  341. {/* />*/}
  342. {/* </TouchableOpacity>*/}
  343. {/* </View>*/}
  344. {/* ),*/}
  345. {/* headerStyle: {*/}
  346. {/* backgroundColor: '#1199EA',*/}
  347. {/* },*/}
  348. {/* headerTintColor: '#fff',*/}
  349. {/* }}*/}
  350. {/*/>*/}
  351. {/*<TaxStack.Screen*/}
  352. {/* name="invoice_qrcode_product_list_add"*/}
  353. {/* component={invoice_qrcode_product_list_add}*/}
  354. {/* options={{*/}
  355. {/* title: '添加产品',*/}
  356. {/* headerTitleAlign: 'center',*/}
  357. {/* headerStyle: {*/}
  358. {/* backgroundColor: '#1199EA',*/}
  359. {/* },*/}
  360. {/* headerTintColor: '#fff',*/}
  361. {/* }}*/}
  362. {/*/>*/}
  363. {/*<TaxStack.Screen*/}
  364. {/* name="invoice_qrcode_product_number"*/}
  365. {/* component={invoice_qrcode_product_number}*/}
  366. {/* options={{*/}
  367. {/* title: '产品信息',*/}
  368. {/* headerTitleAlign: 'center',*/}
  369. {/* headerStyle: {*/}
  370. {/* backgroundColor: '#1199EA',*/}
  371. {/* },*/}
  372. {/* headerTintColor: '#fff',*/}
  373. {/* }}*/}
  374. {/*/>*/}
  375. {/*<TaxStack.Screen*/}
  376. {/* name="invoice_qrcode"*/}
  377. {/* component={invoice_qrcode}*/}
  378. {/* options={{*/}
  379. {/* title: '扫码',*/}
  380. {/* headerTitleAlign: 'center',*/}
  381. {/* headerStyle: {*/}
  382. {/* backgroundColor: '#1199EA',*/}
  383. {/* },*/}
  384. {/* headerTintColor: '#fff',*/}
  385. {/* }}*/}
  386. {/*/>*/}
  387. {/*<TaxStack.Screen*/}
  388. {/* name="invoice_user"*/}
  389. {/* component={invoice_user}*/}
  390. {/* options={{*/}
  391. {/* title: '人员信息编辑',*/}
  392. {/* headerTitleAlign: 'center',*/}
  393. {/* headerStyle: {*/}
  394. {/* backgroundColor: '#1199EA',*/}
  395. {/* },*/}
  396. {/* headerTintColor: '#fff',*/}
  397. {/* }}*/}
  398. {/*/>*/}
  399. </TaxStack.Navigator>
  400. );
  401. }
  402. shouldComponentUpdate(
  403. nextProps: Readonly<P>,
  404. nextState: Readonly<S>,
  405. nextContext: any,
  406. ): boolean {
  407. if (nextProps.route.state.index === 0) {
  408. this.props.navigation.setOptions({
  409. tabBarVisible: true,
  410. });
  411. }
  412. return true;
  413. }
  414. }