invoiceApplyListWai.jsx 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import "./public.less";
  4. import {
  5. Form,
  6. Button,
  7. Input,
  8. Select,
  9. Spin,
  10. Table,
  11. message,
  12. Modal,
  13. Upload,
  14. Tabs, Popconfirm
  15. } from "antd";
  16. import {
  17. getProjectStatus,
  18. getProvinceA,
  19. getInvoiceStatus,
  20. getProcessStatus,
  21. getprovince,
  22. getStatus,
  23. getPeople,
  24. splitUrl
  25. } from "@/tools";
  26. const FormItem = Form.Item;
  27. const {TabPane}= Tabs
  28. import OrderDesc from "../orderDetail/orderDesc";
  29. import {ChooseList} from "../../order/orderNew/chooseList";
  30. import {getProjectName} from "../../../tools";
  31. import DepartmentList from "../../../common/departmentList";
  32. const invoiceApplyListWai = React.createClass({
  33. loadData(pageNo) {
  34. this.state.data = [];
  35. this.setState({
  36. loading: true
  37. });
  38. $.ajax({
  39. method: "get",
  40. dataType: "json",
  41. crossDomain: false,
  42. url:
  43. globalConfig.context +
  44. "/api/admin/orderInvoice/financeOrderInvoiceList",
  45. data: {
  46. pageNo: pageNo || 1,
  47. pageSize: this.state.pagination.pageSize,
  48. name: this.state.nameSearch, //客户名称
  49. orderNo: this.state.orderNoSearch,
  50. orderDep: this.state.departmenttList,
  51. type: 1
  52. },
  53. success: function(data) {
  54. let theArr = [];
  55. if (!data.data || !data.data.list) {
  56. if (data.error && data.error.length) {
  57. message.warning(data.error[0].message);
  58. }
  59. } else {
  60. for (let i = 0; i < data.data.list.length; i++) {
  61. let thisdata = data.data.list[i];
  62. theArr.push({
  63. key: i,
  64. id: thisdata.id,
  65. status: thisdata.status,
  66. unitName: thisdata.unitName,
  67. orderNo: thisdata.orderno,
  68. name: thisdata.name,
  69. projectStatus: thisdata.projectStatus,
  70. processStatus: thisdata.processStatus,
  71. amount: thisdata.amount,
  72. sumAmount: thisdata.sumAmount,
  73. createTime: thisdata.createTime
  74. ? new Date(thisdata.createTime).toLocaleString()
  75. : "",
  76. settlementAmount: thisdata.settlementAmount,
  77. notAmount: thisdata.notAmount
  78. });
  79. }
  80. }
  81. this.state.pagination.current = data.data.pageNo;
  82. this.state.pagination.total = data.data.totalCount;
  83. if (data.data && data.data.list && !data.data.list.length) {
  84. this.state.pagination.current = 0;
  85. this.state.pagination.total = 0;
  86. }
  87. this.setState({
  88. totalPage: data.data.totalPage,
  89. dataSource: theArr,
  90. pagination: this.state.pagination
  91. });
  92. }.bind(this)
  93. }).always(
  94. function() {
  95. this.setState({
  96. loading: false
  97. });
  98. }.bind(this)
  99. );
  100. },
  101. tableRowClick(record) {
  102. this.state.RowData = record;
  103. this.setState({
  104. showDesc: true
  105. });
  106. },
  107. closeDesc(e, s) {
  108. this.state.showDesc = e;
  109. if (s) {
  110. this.loadData(this.state.page);
  111. }
  112. },
  113. invoiceData() {
  114. this.setState({
  115. loading: true
  116. });
  117. $.ajax({
  118. method: "get",
  119. dataType: "json",
  120. crossDomain: false,
  121. url:
  122. globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
  123. data: {
  124. id: this.state.id
  125. },
  126. success: function(data) {
  127. let thisdata = data.data;
  128. this.setState({
  129. contractNo: thisdata.contractNo,
  130. orderNo: thisdata.orderNo,
  131. approval: thisdata.approval,
  132. type: thisdata.type,
  133. status: thisdata.status,
  134. remarks: thisdata.remarks,
  135. invoiceType: thisdata.invoiceType,
  136. unitName: thisdata.unitName,
  137. taxNumber: thisdata.taxNumber,
  138. amount: thisdata.amount,
  139. banks: thisdata.banks,
  140. content: thisdata.content,
  141. unitAddress: thisdata.unitAddress,
  142. invoiceRemarks: thisdata.invoiceRemarks,
  143. unitMobile: thisdata.unitMobile,
  144. post: thisdata.post,
  145. addressee: thisdata.addressee,
  146. addresseeMobile: thisdata.addresseeMobile,
  147. addresseeProvince: thisdata.addresseeProvince,
  148. addresseeCity: thisdata.addresseeCity,
  149. addresseeArea: thisdata.addresseeArea,
  150. alreadyAmount: thisdata.alreadyAmount,
  151. recipientAddress: thisdata.recipientAddress,
  152. orgCodeUrl: thisdata.voucherUrl
  153. ? splitUrl(
  154. thisdata.voucherUrl,
  155. ",",
  156. globalConfig.avatarHost + "/upload"
  157. )
  158. : []
  159. });
  160. }.bind(this)
  161. }).done(
  162. function() {
  163. this.setState({
  164. loading: false
  165. });
  166. }.bind(this)
  167. );
  168. },
  169. getInitialState() {
  170. return {
  171. searchMore: true,
  172. assignVisible: false,
  173. releaseDate: [],
  174. totalPage: 0,
  175. boHuivisible: false,
  176. selectedRowKeys: [],
  177. selectedRows: [],
  178. loading: false,
  179. contractNo: "",
  180. reason: "",
  181. foo: 0,
  182. pagination: {
  183. defaultCurrent: 1,
  184. defaultPageSize: 10,
  185. showQuickJumper: true,
  186. pageSize: 10,
  187. onChange: function(page) {
  188. this.loadData(page);
  189. }.bind(this),
  190. showTotal: function(total) {
  191. return "共" + total + "条数据";
  192. }
  193. },
  194. columns: [
  195. {
  196. title: "编号",
  197. dataIndex: "id",
  198. key: "id",
  199. },
  200. {
  201. title: "客户",
  202. dataIndex: "unitName",
  203. key: "unitName"
  204. },
  205. {
  206. title: "跟单人/签单人",
  207. dataIndex: "name",
  208. key: "name"
  209. },
  210. {
  211. title: "开票状态",
  212. dataIndex: "status",
  213. key: "status",
  214. render: text => {
  215. return getStatus(text);
  216. }
  217. },
  218. {
  219. title: "流程状态",
  220. dataIndex: "processStatus",
  221. key: "processStatus",
  222. render: text => {
  223. return getProcessStatus(text);
  224. }
  225. },
  226. {
  227. title: "项目状态",
  228. dataIndex: "projectStatus",
  229. key: "projectStatus",
  230. render: text => {
  231. return getProjectName(text);
  232. }
  233. },
  234. {
  235. title: "申请开票(万)",
  236. dataIndex: "amount",
  237. key: "amount"
  238. },
  239. {
  240. title: "已开票(万)",
  241. dataIndex: "sumAmount",
  242. key: "sumAmount"
  243. },
  244. {
  245. title: "已收款",
  246. dataIndex: "settlementAmount",
  247. key: "settlementAmount"
  248. },
  249. {
  250. title: "未收款",
  251. dataIndex: "notAmount",
  252. key: "notAmount"
  253. },
  254. {
  255. title: "申请时间",
  256. dataIndex: "createTime",
  257. key: "createTime"
  258. },
  259. {
  260. title: "操作",
  261. dataIndex: "caozuo",
  262. key: "caouzo",
  263. render: (_text, record, index) => {
  264. return (
  265. <div>
  266. {
  267. <Button
  268. type="primary"
  269. onClick={e => {
  270. e.stopPropagation(), this.visit(index);
  271. }}
  272. style={{ background: "deepskyblue", border: "none" }}
  273. >
  274. 申请内容
  275. </Button>
  276. }
  277. {record.status !== 2 ? (
  278. <Popconfirm placement="top" title="确定要通过吗?" onConfirm={(e)=>{
  279. e.stopPropagation();
  280. this.setState({ examine: 2 }, () => {
  281. this.sende(record);
  282. });
  283. }} okText="确定" cancelText="取消">
  284. <Button
  285. type="primary"
  286. style={{ marginLeft: "10px" }}
  287. onClick={e => {
  288. e.stopPropagation();
  289. }}
  290. >
  291. 通过
  292. </Button>
  293. </Popconfirm>
  294. ) : (
  295. ""
  296. )}
  297. {record.status !== 2 ? (
  298. <Popconfirm placement="top" title="确定要拒绝吗?" onConfirm={(e)=>{
  299. e.stopPropagation();
  300. this.setState({ examine: 3 }, () => {
  301. this.reject(record);
  302. });
  303. }} okText="确定" cancelText="取消">
  304. <Button
  305. type="danger"
  306. onClick={e => {
  307. e.stopPropagation();
  308. }}
  309. style={{ marginLeft: "10px" }}
  310. >
  311. 拒绝
  312. </Button>
  313. </Popconfirm>
  314. ) : (
  315. ""
  316. )}
  317. {record.status === 2 ? (
  318. <Button
  319. style={{ marginLeft: "10px", color: "black" }}
  320. disabled={true}
  321. >
  322. 已通过
  323. </Button>
  324. ) : (
  325. ""
  326. )}
  327. {
  328. <Button
  329. type="primary"
  330. style={{
  331. marginLeft: "10px",
  332. background: "orangered",
  333. border: "none"
  334. }}
  335. onClick={e => {
  336. e.stopPropagation(), this.inRecord(record, index);
  337. }}
  338. >
  339. 开票记录
  340. </Button>
  341. }
  342. </div>
  343. );
  344. }
  345. }
  346. ],
  347. columnsDate: [
  348. {
  349. title: "编号",
  350. dataIndex: "id",
  351. key: "id"
  352. },
  353. {
  354. title: "订单编号",
  355. dataIndex: "orderno",
  356. key: "orderno"
  357. },
  358. {
  359. title: "开票金额(万元)",
  360. dataIndex: "amount",
  361. key: "amount"
  362. },
  363. {
  364. title: "申请时间",
  365. dataIndex: "createTime",
  366. key: "createTime"
  367. },
  368. {
  369. title: "开票状态",
  370. dataIndex: "status",
  371. key: "status",
  372. render: text => {
  373. return getInvoiceStatus(text);
  374. }
  375. }
  376. ],
  377. dataSource: [],
  378. searchTime: [,]
  379. };
  380. },
  381. loadSend(record) {
  382. this.setState({
  383. loading: true
  384. });
  385. if (this.state.examine === 3 && this.state.reason === "") {
  386. message.warning("拒绝理由不能为空!");
  387. return;
  388. }
  389. $.ajax({
  390. method: "post",
  391. dataType: "json",
  392. crossDomain: false,
  393. url: globalConfig.context + "/api/admin/orderInvoice/financeExamine",
  394. data: {
  395. id: this.state.examine === 2 ? record.id : this.state.id,
  396. examine: this.state.examine,
  397. reason: this.state.reason
  398. },
  399. success: function() {}.bind(this)
  400. }).done(
  401. function() {
  402. this.setState({
  403. loading: false
  404. });
  405. if (this.state.examine === 2) {
  406. message.success("通过成功!");
  407. this.loadData();
  408. } else {
  409. message.success("拒绝成功!");
  410. this.resetReason();
  411. this.rejectCancels();
  412. this.loadData();
  413. }
  414. }.bind(this)
  415. );
  416. },
  417. //重置拒绝理由
  418. resetReason() {
  419. this.setState({
  420. reason: ""
  421. });
  422. },
  423. sende(record) {
  424. this.loadSend(record);
  425. },
  426. commit() {
  427. this.loadSend();
  428. this.setState({
  429. avisible: false
  430. });
  431. },
  432. visit(index) {
  433. this.setState(
  434. {
  435. id: this.state.dataSource[index].id,
  436. avisible: true
  437. },
  438. () => {
  439. this.invoiceData();
  440. }
  441. );
  442. },
  443. visitCancels() {
  444. this.setState({
  445. avisible: false
  446. });
  447. },
  448. reject(record) {
  449. this.setState({
  450. visibleR: true,
  451. id: record.id
  452. });
  453. },
  454. rejectCancels() {
  455. this.setState({
  456. visibleR: false
  457. });
  458. },
  459. inRecordData() {
  460. this.setState({
  461. loading: true
  462. });
  463. $.ajax({
  464. method: "get",
  465. dataType: "json",
  466. crossDomain: false,
  467. url:
  468. globalConfig.context +
  469. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  470. data: {
  471. orderNo: this.state.orderNo2
  472. },
  473. success: function(data) {
  474. let theArr = [];
  475. let sum = 0;
  476. if (!data.data) {
  477. if (data.error && data.error.length) {
  478. message.warning(data.error[0].message);
  479. }
  480. } else {
  481. for (let i = 0; i < data.data.list.length; i++) {
  482. let thisdata = data.data.list[i];
  483. sum += parseFloat(thisdata.amount);
  484. theArr.push({
  485. id: thisdata.id,
  486. orderno: thisdata.orderno, //订单编号
  487. amount: thisdata.amount, //签单金额
  488. createTime: thisdata.createTime, //流程状态
  489. status: thisdata.status, //结算状态
  490. rejectReason: thisdata.rejectReason
  491. });
  492. }
  493. }
  494. this.setState({
  495. recordData: theArr,
  496. sum: sum.toFixed(6)
  497. });
  498. }.bind(this)
  499. }).done(
  500. function() {
  501. this.setState({
  502. loading: false
  503. });
  504. }.bind(this)
  505. );
  506. },
  507. inRecord(record) {
  508. this.setState(
  509. {
  510. bvisible: true,
  511. orderNo2: record.orderNo
  512. },
  513. () => {
  514. this.inRecordData();
  515. }
  516. );
  517. },
  518. inRecordCanl() {
  519. this.setState({
  520. bvisible: false
  521. });
  522. },
  523. search() {
  524. this.loadData();
  525. },
  526. componentWillMount() {
  527. this.loadData();
  528. },
  529. reset() {
  530. this.state.nameSearch = "";
  531. this.state.releaseDate = [];
  532. this.state.orderNoSearch = "";
  533. this.state.processStatus = [];
  534. this.state.departmenttList = [];
  535. this.loadData();
  536. },
  537. changeList(arr) {
  538. const newArr = [];
  539. this.state.columns.forEach(item => {
  540. arr.forEach(val => {
  541. if (val === item.title) {
  542. newArr.push(item);
  543. }
  544. });
  545. });
  546. this.setState({
  547. changeList: newArr
  548. });
  549. },
  550. render() {
  551. const formItemLayout = {
  552. labelCol: { span: 8 },
  553. wrapperCol: { span: 14 }
  554. };
  555. return (
  556. <div className="user-content">
  557. <div className="content-title">
  558. <span>省外开票审核</span>
  559. </div>
  560. <Tabs
  561. defaultActiveKey="1"
  562. onChange={this.callback}
  563. className="test">
  564. <TabPane tab="搜索" key="1">
  565. <div className="user-search">
  566. <Input
  567. placeholder="营销员名称"
  568. value={this.state.nameSearch}
  569. onChange={e => {
  570. this.setState({ nameSearch: e.target.value });
  571. }}
  572. />
  573. <Input
  574. placeholder="订单编号"
  575. value={this.state.orderNoSearch}
  576. onChange={e => {
  577. this.setState({ orderNoSearch: e.target.value });
  578. }}
  579. />
  580. <DepartmentList
  581. value={this.state.departmenttList}
  582. onChange={e => {
  583. this.setState({ departmenttList: e });
  584. }}/>
  585. <Button
  586. type="primary"
  587. onClick={this.search}
  588. style={{ marginLeft: 10 }}
  589. >
  590. 搜索
  591. </Button>
  592. <Button onClick={this.reset}>重置</Button>
  593. </div>
  594. </TabPane>
  595. <TabPane tab="更改表格显示数据" key="2">
  596. <div style={{ marginLeft: 10 }}>
  597. <ChooseList
  598. columns={this.state.columns}
  599. changeFn={this.changeList}
  600. changeList={this.state.changeList}
  601. top={55}
  602. margin={11}
  603. />
  604. </div>
  605. </TabPane>
  606. </Tabs>
  607. <div className="patent-table">
  608. <Spin spinning={this.state.loading}>
  609. <Table
  610. columns={
  611. this.state.changeList
  612. ? this.state.changeList
  613. : this.state.columns
  614. }
  615. scroll={{ x: 1500, y: 0 }}
  616. onRowClick={this.tableRowClick}
  617. dataSource={this.state.dataSource}
  618. pagination={this.state.pagination}
  619. bordered
  620. size="small"
  621. />
  622. </Spin>
  623. </div>
  624. <Modal
  625. visible={this.state.visibleR}
  626. className="admin-desc-content"
  627. footer=""
  628. title="拒绝理由"
  629. width="400px"
  630. onCancel={this.rejectCancels}
  631. >
  632. <Input.TextArea
  633. placeholder="请输入拒绝理由"
  634. rows={4}
  635. value={this.state.reason}
  636. onChange={e => {
  637. this.setState({ reason: e.target.value });
  638. }}
  639. />
  640. <div className="clearfix" style={{ marginTop: "20px" }}>
  641. <Button
  642. loading={this.state.loading}
  643. type="primary"
  644. onClick={e => {
  645. e.stopPropagation();
  646. this.commit();
  647. }}
  648. style={{ float: "right" }}
  649. >
  650. 提交
  651. </Button>
  652. </div>
  653. </Modal>
  654. <Modal
  655. className="admin-desc-content"
  656. footer=""
  657. title="开具发票申请单"
  658. width="900px"
  659. visible={this.state.avisible}
  660. onOk={this.visitOks}
  661. onCancel={this.visitCancels}
  662. >
  663. <Form
  664. layout="horizontal"
  665. id="demand-form"
  666. style={{ paddingBottom: "40px" }}
  667. >
  668. <Spin spinning={this.state.loading}>
  669. <div className="clearfix">
  670. <div className="clearfix">
  671. <FormItem
  672. className="half-item"
  673. {...formItemLayout}
  674. label="合同编号"
  675. >
  676. <span>{this.state.contractNo}</span>
  677. </FormItem>
  678. <FormItem
  679. className="half-item"
  680. {...formItemLayout}
  681. label="备注"
  682. >
  683. <span>{this.state.remarks}</span>
  684. </FormItem>
  685. </div>
  686. <div className="clearfix">
  687. <FormItem
  688. className="half-item"
  689. {...formItemLayout}
  690. label={
  691. <span>
  692. <strong style={{ color: "#f00" }}>*</strong>省内/外
  693. </span>
  694. }
  695. >
  696. <span>{getProvinceA(this.state.type)}</span>
  697. </FormItem>
  698. <FormItem
  699. className="half-item"
  700. {...formItemLayout}
  701. label={
  702. <span>
  703. <strong style={{ color: "#f00" }}>*</strong>特批
  704. </span>
  705. }
  706. >
  707. <span>{this.state.approval === 0 ? "否" : "是"}</span>
  708. </FormItem>
  709. </div>
  710. <hr
  711. style={{
  712. border: "1px dashed #aaa",
  713. width: "90%",
  714. margin: "auto"
  715. }}
  716. />
  717. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  718. <span style={{ fontSize: "14px" }}>发票内容</span>
  719. </div>
  720. <div className="clearfix">
  721. <FormItem
  722. className="half-item"
  723. {...formItemLayout}
  724. label={
  725. <span>
  726. <strong style={{ color: "#f00" }}>*</strong>发票类型
  727. </span>
  728. }
  729. >
  730. <span>
  731. {this.state.invoiceType === 0
  732. ? "增值税专用发票"
  733. : this.state.invoiceType === 1
  734. ? "增值税普通发票"
  735. : "其他"}
  736. </span>
  737. </FormItem>
  738. </div>
  739. <div className="clearfix">
  740. <FormItem
  741. className="half-item"
  742. {...formItemLayout}
  743. label={
  744. <span>
  745. <strong style={{ color: "#f00" }}>*</strong>单位名称
  746. </span>
  747. }
  748. >
  749. <span>{this.state.unitName}</span>
  750. </FormItem>
  751. <FormItem
  752. className="half-item"
  753. {...formItemLayout}
  754. label={
  755. <span>
  756. <strong style={{ color: "#f00" }}>*</strong>税号
  757. </span>
  758. }
  759. >
  760. <span>{this.state.taxNumber}</span>
  761. </FormItem>
  762. <FormItem
  763. className="half-item"
  764. {...formItemLayout}
  765. label={
  766. <span>
  767. <strong style={{ color: "#f00" }}>*</strong>
  768. 开票金额(万元)
  769. </span>
  770. }
  771. >
  772. <span>{this.state.amount}</span>
  773. </FormItem>
  774. <FormItem
  775. className="half-item"
  776. {...formItemLayout}
  777. label={
  778. <span>
  779. <strong style={{ color: "#f00" }}>*</strong>
  780. 开户行银行账号
  781. </span>
  782. }
  783. >
  784. <span>{this.state.banks}</span>
  785. </FormItem>
  786. <FormItem
  787. className="half-item"
  788. {...formItemLayout}
  789. label={
  790. <span>
  791. <strong style={{ color: "#f00" }}>*</strong>
  792. 开票内容及说明
  793. </span>
  794. }
  795. >
  796. <span>{this.state.content}</span>
  797. </FormItem>
  798. <FormItem
  799. className="half-item"
  800. {...formItemLayout}
  801. label={
  802. <span>
  803. <strong style={{ color: "#f00" }}>*</strong>单位地址
  804. </span>
  805. }
  806. >
  807. <span>{this.state.unitAddress}</span>
  808. </FormItem>
  809. <FormItem
  810. className="half-item"
  811. {...formItemLayout}
  812. label="备注"
  813. >
  814. <span>{this.state.invoiceRemarks}</span>
  815. </FormItem>
  816. <FormItem
  817. className="half-item"
  818. {...formItemLayout}
  819. label={
  820. <span>
  821. <strong style={{ color: "#f00" }}>*</strong>单位电话
  822. </span>
  823. }
  824. >
  825. <span>{this.state.unitMobile}</span>
  826. </FormItem>
  827. </div>
  828. <div className="clearfix">
  829. <FormItem
  830. labelCol={{ span: 4 }}
  831. wrapperCol={{ span: 18 }}
  832. label={
  833. <span>
  834. <strong style={{ color: "#f00" }}>*</strong>附件
  835. </span>
  836. }
  837. >
  838. <Upload
  839. className="demandDetailShow-upload"
  840. listType="picture-card"
  841. fileList={this.state.orgCodeUrl}
  842. onPreview={file => {
  843. this.setState({
  844. previewImage: file.url || file.thumbUrl,
  845. previewVisible: true
  846. });
  847. }}
  848. ></Upload>
  849. <Modal
  850. maskClosable={false}
  851. footer={null}
  852. visible={this.state.previewVisible}
  853. onCancel={() => {
  854. this.setState({ previewVisible: false });
  855. }}
  856. >
  857. <img
  858. alt=""
  859. style={{ width: "100%" }}
  860. src={this.state.previewImage || ""}
  861. />
  862. </Modal>
  863. </FormItem>
  864. </div>
  865. <hr
  866. style={{
  867. border: "1px dashed #aaa",
  868. width: "90%",
  869. margin: "auto"
  870. }}
  871. />
  872. <div className="clearfix" style={{ marginTop: "10px" }}>
  873. <FormItem
  874. className="half-item"
  875. {...formItemLayout}
  876. label="发票是否邮寄:"
  877. >
  878. <span>{this.state.post === 0 ? "是" : "否"}</span>
  879. </FormItem>
  880. </div>
  881. {this.state.post === 0 ? (
  882. <div>
  883. <div className="clearfix">
  884. <FormItem
  885. className="half-item"
  886. {...formItemLayout}
  887. label="收信人姓名"
  888. >
  889. <span>{this.state.addressee}</span>
  890. </FormItem>
  891. <FormItem
  892. className="half-item"
  893. {...formItemLayout}
  894. label="电话"
  895. >
  896. <span>{this.state.addresseeMobile}</span>
  897. </FormItem>
  898. </div>
  899. <div className="clearfix">
  900. <FormItem
  901. className="half-item"
  902. {...formItemLayout}
  903. label="省-市-区"
  904. >
  905. <span>
  906. {getprovince(this.state.addresseeProvince)}/
  907. {getprovince(this.state.addresseeCity)}/
  908. {getprovince(this.state.addresseeArea)}
  909. </span>
  910. </FormItem>
  911. </div>
  912. <div className="clearfix">
  913. <FormItem
  914. className="half-item"
  915. {...formItemLayout}
  916. label="详细地址"
  917. >
  918. <span>{this.state.recipientAddress}</span>
  919. </FormItem>
  920. </div>
  921. </div>
  922. ) : (
  923. ""
  924. )}
  925. <FormItem
  926. className="half-item"
  927. {...formItemLayout}
  928. label={
  929. <span>
  930. <strong style={{ color: "#f00" }}>*</strong>开票金额总计
  931. </span>
  932. }
  933. >
  934. <span>{this.state.alreadyAmount}万元</span>
  935. </FormItem>
  936. </div>
  937. </Spin>
  938. </Form>
  939. </Modal>
  940. <Modal
  941. visible={this.state.bvisible}
  942. footer=""
  943. title="开票历史记录"
  944. className="admin-desc-content"
  945. width="900px"
  946. onCancel={this.inRecordCanl}
  947. >
  948. <Spin spinning={this.state.loading}>
  949. <div className="patent-table">
  950. <Table
  951. columns={this.state.columnsDate}
  952. dataSource={this.state.recordData}
  953. pagination={false}
  954. bordered
  955. size="small"
  956. />
  957. <div className="clearfix" style={{ marginTop: "20px" }}>
  958. <FormItem
  959. className="half-item"
  960. {...formItemLayout}
  961. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  962. >
  963. <span>{this.state.sum + "(万元)"}</span>
  964. </FormItem>
  965. </div>
  966. </div>
  967. </Spin>
  968. </Modal>
  969. <OrderDesc
  970. data={this.state.RowData}
  971. showDesc={this.state.showDesc}
  972. closeDesc={this.closeDesc.bind(this)}
  973. />
  974. </div>
  975. );
  976. }
  977. });
  978. export default invoiceApplyListWai;