invoiceApplyListQuery.jsx 28 KB

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