outInvoiceQuery.jsx 29 KB

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