invoiceApplyListQuery.jsx 28 KB

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