invoiceApplyListQuery.jsx 29 KB

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