invoiceApplyListQuery.jsx 29 KB

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