outInvoiceQuery.jsx 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990
  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. const FormItem = Form.Item;
  34. const { TabPane } = Tabs
  35. const outInvoiceQuery = React.createClass({
  36. loadData(pageNo) {
  37. this.state.data = [];
  38. this.setState({
  39. loading: 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: 1,
  56. approval: this.state.processStatus,
  57. all:1,
  58. },
  59. success: function (data) {
  60. ShowModal(this);
  61. let theArr = [];
  62. if (!data.data || !data.data.list) {
  63. if (data.error && data.error.length) {
  64. message.warning(data.error[0].message);
  65. }
  66. } else {
  67. for (let i = 0; i < data.data.list.length; i++) {
  68. let thisdata = data.data.list[i];
  69. theArr.push({
  70. key: i,
  71. id: thisdata.id,
  72. status: thisdata.status,
  73. unitName: thisdata.unitName,
  74. orderno: thisdata.orderno,
  75. name: thisdata.name,
  76. projectStatus: thisdata.projectStatus,
  77. processStatus: thisdata.processStatus,
  78. amount: thisdata.amount,
  79. sumAmount: thisdata.sumAmount,
  80. createTime: thisdata.createTime
  81. ? new Date(thisdata.createTime).toLocaleString()
  82. : "",
  83. settlementAmount: thisdata.settlementAmount,
  84. notAmount: thisdata.notAmount,
  85. approval: thisdata.approval
  86. });
  87. }
  88. }
  89. this.state.pagination.current = data.data.pageNo;
  90. this.state.pagination.total = data.data.totalCount;
  91. if (data.data && data.data.list && !data.data.list.length) {
  92. this.state.pagination.current = 0;
  93. this.state.pagination.total = 0;
  94. }
  95. this.setState({
  96. totalPage: data.data.totalPage,
  97. dataSource: theArr,
  98. pagination: this.state.pagination
  99. });
  100. }.bind(this)
  101. }).always(
  102. function () {
  103. this.setState({
  104. loading: false
  105. });
  106. }.bind(this)
  107. );
  108. },
  109. invoiceData() {
  110. this.setState({
  111. loading: true
  112. });
  113. $.ajax({
  114. method: "get",
  115. dataType: "json",
  116. crossDomain: false,
  117. url:
  118. globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
  119. data: {
  120. id: this.state.id
  121. },
  122. success: function (data) {
  123. let thisdata = data.data;
  124. this.setState({
  125. orderNo: thisdata.orderNo,
  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. contractNo: thisdata.contractNo,
  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. selectedRows: [],
  173. contractNo: "",
  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. },
  195. {
  196. title: "客户",
  197. dataIndex: "unitName",
  198. key: "unitName",
  199. width:100,
  200. render: text => {
  201. return (
  202. <Tooltip title={text}>
  203. <div style={{
  204. maxWidth:'100px',
  205. overflow:'hidden',
  206. textOverflow: "ellipsis",
  207. whiteSpace:'nowrap',
  208. }}>{text}</div>
  209. </Tooltip>
  210. )
  211. }
  212. },
  213. {
  214. title: "跟单人/签单人",
  215. dataIndex: "name",
  216. key: "name"
  217. },
  218. {
  219. title: "开票状态",
  220. dataIndex: "status",
  221. key: "status",
  222. render: (text,record) => {
  223. // return getStatus(text);
  224. return getInvoiceStatus(text, record);
  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. {
  303. <Button
  304. type="primary"
  305. style={{
  306. marginLeft: "10px",
  307. background: "orangered",
  308. border: "none"
  309. }}
  310. onClick={e => {
  311. e.stopPropagation(), this.inRecord(record, index);
  312. }}
  313. >
  314. 开票记录
  315. </Button>
  316. }
  317. </div>
  318. );
  319. }
  320. }
  321. ],
  322. columnsDate: [
  323. {
  324. title: "编号",
  325. dataIndex: "id",
  326. key: "id"
  327. },
  328. {
  329. title: "订单编号",
  330. dataIndex: "orderno",
  331. key: "orderno"
  332. },
  333. {
  334. title: "开票金额(万元)",
  335. dataIndex: "amount",
  336. key: "amount"
  337. },
  338. {
  339. title: "申请时间",
  340. dataIndex: "createTime",
  341. key: "createTime"
  342. },
  343. {
  344. title: "开票状态",
  345. dataIndex: "status",
  346. key: "status",
  347. // render: text => {
  348. // return getInvoiceStatus(text, {
  349. // approval: 0
  350. // });
  351. // }
  352. render: (text, record) => {
  353. return <div>{getInvoiceStatus(text, record)} <LogPopup id={record.id} /></div>;
  354. },
  355. }
  356. ],
  357. dataSource: [],
  358. searchTime: [,]
  359. };
  360. },
  361. loadSend(record) {
  362. this.setState({
  363. loading: true
  364. });
  365. if (this.state.examine === 3 && this.state.reason === "") {
  366. message.warning("拒绝理由不能为空!");
  367. return;
  368. }
  369. $.ajax({
  370. method: "post",
  371. dataType: "json",
  372. crossDomain: false,
  373. url: globalConfig.context + "/api/admin/orderInvoice/approvalExamine",
  374. data: {
  375. id: this.state.examine === 2 ? record.id : this.state.id,
  376. examine: this.state.examine,
  377. reason: this.state.reason
  378. },
  379. success: function () { }.bind(this)
  380. }).done(
  381. function () {
  382. this.setState({
  383. loading: false
  384. });
  385. if (this.state.examine === 2) {
  386. message.success("通过成功!");
  387. this.loadData();
  388. } else {
  389. message.success("拒绝成功!");
  390. this.resetReason();
  391. this.rejectCancels();
  392. this.loadData();
  393. }
  394. }.bind(this)
  395. );
  396. },
  397. //重置拒绝理由
  398. resetReason() {
  399. this.setState({
  400. reason: ""
  401. });
  402. },
  403. sende(record) {
  404. this.loadSend(record);
  405. },
  406. commit() {
  407. this.loadSend();
  408. this.setState({
  409. avisible: false
  410. });
  411. },
  412. visit(index) {
  413. this.setState(
  414. {
  415. id: this.state.dataSource[index].id,
  416. avisible: true
  417. },
  418. () => {
  419. this.invoiceData();
  420. }
  421. );
  422. },
  423. visitCancels() {
  424. this.setState({
  425. avisible: false
  426. });
  427. },
  428. reject(record) {
  429. this.setState({
  430. visibleR: true,
  431. id: record.id
  432. });
  433. },
  434. rejectCancels() {
  435. this.setState({
  436. visibleR: false
  437. });
  438. },
  439. inRecordData() {
  440. this.setState({
  441. loading: true
  442. });
  443. $.ajax({
  444. method: "get",
  445. dataType: "json",
  446. crossDomain: false,
  447. url:
  448. globalConfig.context +
  449. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  450. data: {
  451. orderNo: this.state.orderNo2
  452. },
  453. success: function (data) {
  454. let theArr = [];
  455. let sum = 0;
  456. if (!data.data) {
  457. if (data.error && data.error.length) {
  458. message.warning(data.error[0].message);
  459. }
  460. } else {
  461. for (let i = 0; i < data.data.list.length; i++) {
  462. let thisdata = data.data.list[i];
  463. sum += parseFloat(thisdata.amount);
  464. theArr.push({
  465. id: thisdata.id,
  466. orderno: thisdata.orderno, //订单编号
  467. amount: thisdata.amount, //签单金额
  468. createTime: thisdata.createTime, //流程状态
  469. status: thisdata.status, //结算状态
  470. rejectReason: thisdata.rejectReason,
  471. approval:thisdata.approval,//0非特批 1待审核 2审核通过
  472. });
  473. }
  474. }
  475. this.setState({
  476. recordData: theArr,
  477. sum: sum.toFixed(6)
  478. });
  479. }.bind(this)
  480. }).done(
  481. function () {
  482. this.setState({
  483. loading: false
  484. });
  485. }.bind(this)
  486. );
  487. },
  488. inRecord(record) {
  489. this.setState(
  490. {
  491. bvisible: true,
  492. orderNo2: record.orderno
  493. },
  494. () => {
  495. this.inRecordData();
  496. }
  497. );
  498. },
  499. inRecordCanl() {
  500. this.setState({
  501. bvisible: false
  502. });
  503. },
  504. changeList(arr) {
  505. const newArr = [];
  506. this.state.columns.forEach(item => {
  507. arr.forEach(val => {
  508. if (val === item.title) {
  509. newArr.push(item);
  510. }
  511. });
  512. });
  513. this.setState({
  514. changeList: newArr
  515. });
  516. },
  517. search() {
  518. this.loadData();
  519. },
  520. componentWillMount() {
  521. this.loadData();
  522. },
  523. reset() {
  524. this.state.nameSearch = "";
  525. this.state.releaseDate = [];
  526. this.state.orderNoSearch = "";
  527. this.state.processStatus = [];
  528. this.state.departmenttList = [];
  529. this.state.statusSearch = [];
  530. this.loadData();
  531. },
  532. render() {
  533. const formItemLayout = {
  534. labelCol: { span: 8 },
  535. wrapperCol: { span: 14 }
  536. };
  537. return (
  538. <div className="user-content">
  539. <ShowModalDiv ShowModal={this.state.showModal} />
  540. <div className="content-title" style={{ marginBottom: 10 }}>
  541. <span style={{ fontWeight: 900, fontSize: 16 }}>省外开票查询</span>
  542. </div>
  543. <Tabs
  544. defaultActiveKey="1"
  545. onChange={this.callback}
  546. className="test">
  547. <TabPane tab="搜索" key="1">
  548. <div className="user-search">
  549. <Input
  550. placeholder="营销员名称"
  551. value={this.state.nameSearch}
  552. style={{ marginLeft: 10 }}
  553. onChange={e => {
  554. this.setState({ nameSearch: e.target.value });
  555. }}
  556. />
  557. <Input
  558. placeholder="订单编号"
  559. value={this.state.orderNoSearch}
  560. onChange={e => {
  561. this.setState({ orderNoSearch: e.target.value });
  562. }}
  563. />
  564. <DepartmentList
  565. value={this.state.departmenttList}
  566. onChange={e => {
  567. this.setState({ departmenttList: e });
  568. }}/>
  569. {/* <Select
  570. placeholder="特批状态"
  571. onChange={e => {
  572. this.setState({ processStatus: e });
  573. }}
  574. style={{ width: 160, marginRight: 5 }}
  575. value={this.state.processStatus}
  576. >
  577. <Option value="1">特批未审核</Option>
  578. <Option value="2">特批已审核</Option>
  579. </Select>
  580. <Select
  581. placeholder="审核状态"
  582. onChange={e => {
  583. this.setState({ statusSearch: e });
  584. }}
  585. style={{ width: 160, marginRight: 5 }}
  586. value={this.state.statusSearch}
  587. >
  588. <Option value="1">待审核</Option>
  589. <Option value="2">审核通过</Option>
  590. </Select> */}
  591. <Button
  592. type="primary"
  593. onClick={this.search}
  594. style={{ marginLeft: 10 }}
  595. >
  596. 搜索
  597. </Button>
  598. <Button onClick={this.reset}>重置</Button>
  599. </div>
  600. </TabPane>
  601. <TabPane tab="更改表格显示数据" key="2">
  602. <div style={{ marginLeft: 10 }}>
  603. <ChooseList
  604. columns={this.state.columns}
  605. changeFn={this.changeList}
  606. changeList={this.state.changeList}
  607. top={55}
  608. margin={11}
  609. />
  610. </div>
  611. </TabPane>
  612. </Tabs>
  613. <div className="patent-table">
  614. <Spin spinning={this.state.loading}>
  615. <Table
  616. columns={
  617. this.state.changeList == undefined
  618. ? this.state.columns
  619. : this.state.changeList
  620. }
  621. scroll={{ x: 1500, y: 0 }}
  622. dataSource={this.state.dataSource}
  623. pagination={this.state.pagination}
  624. bordered
  625. size="small"
  626. />
  627. </Spin>
  628. </div>
  629. <Modal
  630. maskClosable={false}
  631. visible={this.state.visibleR}
  632. className="admin-desc-content"
  633. footer=""
  634. title="拒绝理由"
  635. width="400px"
  636. onCancel={this.rejectCancels}
  637. >
  638. <Input.TextArea
  639. placeholder="请输入拒绝理由"
  640. rows={4}
  641. value={this.state.reason}
  642. onChange={e => {
  643. this.setState({ reason: e.target.value });
  644. }}
  645. ></Input.TextArea>
  646. <div className="clearfix" style={{ marginTop: "20px" }}>
  647. <Button
  648. type="primary"
  649. onClick={e => {
  650. e.stopPropagation(), this.commit();
  651. }}
  652. style={{ float: "right" }}
  653. >
  654. 提交
  655. </Button>
  656. </div>
  657. </Modal>
  658. {this.state.avisible ? <Modal
  659. maskClosable={false}
  660. className="admin-desc-content"
  661. footer=""
  662. title="开具发票申请单"
  663. width="900px"
  664. visible={this.state.avisible}
  665. onOk={this.visitOks}
  666. onCancel={this.visitCancels}
  667. >
  668. <Form
  669. layout="horizontal"
  670. id="demand-form"
  671. style={{ paddingBottom: "40px" }}
  672. >
  673. <Spin spinning={this.state.loading}>
  674. <div className="clearfix">
  675. <div className="clearfix">
  676. <FormItem
  677. className="half-item"
  678. {...formItemLayout}
  679. label="合同编号"
  680. >
  681. <span>{this.state.contractNo}</span>
  682. </FormItem>
  683. <FormItem
  684. className="half-item"
  685. {...formItemLayout}
  686. label="备注"
  687. >
  688. <span>{this.state.remarks}</span>
  689. </FormItem>
  690. </div>
  691. <div className="clearfix">
  692. <FormItem
  693. className="half-item"
  694. {...formItemLayout}
  695. label={
  696. <span>
  697. <strong style={{ color: "#f00" }}>*</strong>省内/外
  698. </span>
  699. }
  700. >
  701. <span>{getProvinceA(this.state.type)}</span>
  702. </FormItem>
  703. </div>
  704. <hr
  705. style={{
  706. border: "1px dashed #aaa",
  707. width: "90%",
  708. margin: "auto"
  709. }}
  710. />
  711. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  712. <span style={{ fontSize: "14px" }}>发票内容</span>
  713. </div>
  714. <div className="clearfix">
  715. <FormItem
  716. className="half-item"
  717. {...formItemLayout}
  718. label={
  719. <span>
  720. <strong style={{ color: "#f00" }}>*</strong>发票类型
  721. </span>
  722. }
  723. >
  724. <span>
  725. {this.state.invoiceType === 0
  726. ? "增值税专用发票"
  727. : this.state.invoiceType === 1
  728. ? "增值税普通发票"
  729. : "其他"}
  730. </span>
  731. </FormItem>
  732. </div>
  733. <div className="clearfix">
  734. <FormItem
  735. className="half-item"
  736. {...formItemLayout}
  737. label={
  738. <span>
  739. <strong style={{ color: "#f00" }}>*</strong>单位名称
  740. </span>
  741. }
  742. >
  743. <span>{this.state.unitName}</span>
  744. </FormItem>
  745. <FormItem
  746. className="half-item"
  747. {...formItemLayout}
  748. label={
  749. <span>
  750. <strong style={{ color: "#f00" }}>*</strong>税号
  751. </span>
  752. }
  753. >
  754. <span>{this.state.taxNumber}</span>
  755. </FormItem>
  756. <FormItem
  757. className="half-item"
  758. {...formItemLayout}
  759. label={
  760. <span>
  761. <strong style={{ color: "#f00" }}>*</strong>
  762. 开票金额(万元)
  763. </span>
  764. }
  765. >
  766. <span>{this.state.amount}</span>
  767. </FormItem>
  768. <FormItem
  769. className="half-item"
  770. {...formItemLayout}
  771. label={
  772. <span>
  773. <strong style={{ color: "#f00" }}>*</strong>
  774. 开户行银行账号
  775. </span>
  776. }
  777. >
  778. <span>{this.state.banks}</span>
  779. </FormItem>
  780. <FormItem
  781. className="half-item"
  782. {...formItemLayout}
  783. label={
  784. <span>
  785. <strong style={{ color: "#f00" }}>*</strong>
  786. 开票内容及说明
  787. </span>
  788. }
  789. >
  790. <span>{this.state.content}</span>
  791. </FormItem>
  792. <FormItem
  793. className="half-item"
  794. {...formItemLayout}
  795. label={
  796. <span>
  797. <strong style={{ color: "#f00" }}>*</strong>单位地址
  798. </span>
  799. }
  800. >
  801. <span>{this.state.unitAddress}</span>
  802. </FormItem>
  803. <FormItem
  804. className="half-item"
  805. {...formItemLayout}
  806. label="备注"
  807. >
  808. <span>{this.state.invoiceRemarks}</span>
  809. </FormItem>
  810. <FormItem
  811. className="half-item"
  812. {...formItemLayout}
  813. label={
  814. <span>
  815. <strong style={{ color: "#f00" }}>*</strong>单位电话
  816. </span>
  817. }
  818. >
  819. <span>{this.state.unitMobile}</span>
  820. </FormItem>
  821. </div>
  822. <div className="clearfix">
  823. <FormItem
  824. labelCol={{ span: 4 }}
  825. wrapperCol={{ span: 18 }}
  826. label={
  827. <span>
  828. <strong style={{ color: "#f00" }}>*</strong>附件
  829. </span>
  830. }
  831. >
  832. {/*<Upload*/}
  833. {/* className="demandDetailShow-upload"*/}
  834. {/* listType="picture-card"*/}
  835. {/* fileList={this.state.orgCodeUrl}*/}
  836. {/* onPreview={file => {*/}
  837. {/* this.setState({*/}
  838. {/* previewImage: file.url || file.thumbUrl,*/}
  839. {/* previewVisible: true*/}
  840. {/* });*/}
  841. {/* }}*/}
  842. {/*/>*/}
  843. {this.state.avisible && this.state.orgCodeUrl ? <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  844. <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'}/>
  845. </div> : <div/>}
  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> : <div/>}
  937. <Modal
  938. maskClosable={false}
  939. visible={this.state.bvisible}
  940. footer=""
  941. title="开票历史记录"
  942. className="admin-desc-content"
  943. width="900px"
  944. onCancel={this.inRecordCanl}
  945. >
  946. <Spin spinning={this.state.loading}>
  947. <div className="patent-table">
  948. <Table
  949. columns={this.state.columnsDate}
  950. dataSource={this.state.recordData}
  951. pagination={false}
  952. bordered
  953. size="small"
  954. />
  955. <div className="clearfix" style={{ marginTop: "20px" }}>
  956. <FormItem
  957. className="half-item"
  958. {...formItemLayout}
  959. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  960. >
  961. <span>{this.state.sum}</span>
  962. </FormItem>
  963. </div>
  964. </div>
  965. </Spin>
  966. </Modal>
  967. </div>
  968. );
  969. }
  970. });
  971. export default outInvoiceQuery;