outInvoiceQuery.jsx 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991
  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. loading={this.state.loading}
  650. onClick={e => {
  651. e.stopPropagation(), this.commit();
  652. }}
  653. style={{ float: "right" }}
  654. >
  655. 提交
  656. </Button>
  657. </div>
  658. </Modal>
  659. {this.state.avisible ? <Modal
  660. maskClosable={false}
  661. className="admin-desc-content"
  662. footer=""
  663. title="开具发票申请单"
  664. width="900px"
  665. visible={this.state.avisible}
  666. onOk={this.visitOks}
  667. onCancel={this.visitCancels}
  668. >
  669. <Form
  670. layout="horizontal"
  671. id="demand-form"
  672. style={{ paddingBottom: "40px" }}
  673. >
  674. <Spin spinning={this.state.loading}>
  675. <div className="clearfix">
  676. <div className="clearfix">
  677. <FormItem
  678. className="half-item"
  679. {...formItemLayout}
  680. label="合同编号"
  681. >
  682. <span>{this.state.contractNo}</span>
  683. </FormItem>
  684. <FormItem
  685. className="half-item"
  686. {...formItemLayout}
  687. label="备注"
  688. >
  689. <span>{this.state.remarks}</span>
  690. </FormItem>
  691. </div>
  692. <div className="clearfix">
  693. <FormItem
  694. className="half-item"
  695. {...formItemLayout}
  696. label={
  697. <span>
  698. <strong style={{ color: "#f00" }}>*</strong>省内/外
  699. </span>
  700. }
  701. >
  702. <span>{getProvinceA(this.state.type)}</span>
  703. </FormItem>
  704. </div>
  705. <hr
  706. style={{
  707. border: "1px dashed #aaa",
  708. width: "90%",
  709. margin: "auto"
  710. }}
  711. />
  712. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  713. <span style={{ fontSize: "14px" }}>发票内容</span>
  714. </div>
  715. <div className="clearfix">
  716. <FormItem
  717. className="half-item"
  718. {...formItemLayout}
  719. label={
  720. <span>
  721. <strong style={{ color: "#f00" }}>*</strong>发票类型
  722. </span>
  723. }
  724. >
  725. <span>
  726. {this.state.invoiceType === 0
  727. ? "增值税专用发票"
  728. : this.state.invoiceType === 1
  729. ? "增值税普通发票"
  730. : "其他"}
  731. </span>
  732. </FormItem>
  733. </div>
  734. <div className="clearfix">
  735. <FormItem
  736. className="half-item"
  737. {...formItemLayout}
  738. label={
  739. <span>
  740. <strong style={{ color: "#f00" }}>*</strong>单位名称
  741. </span>
  742. }
  743. >
  744. <span>{this.state.unitName}</span>
  745. </FormItem>
  746. <FormItem
  747. className="half-item"
  748. {...formItemLayout}
  749. label={
  750. <span>
  751. <strong style={{ color: "#f00" }}>*</strong>税号
  752. </span>
  753. }
  754. >
  755. <span>{this.state.taxNumber}</span>
  756. </FormItem>
  757. <FormItem
  758. className="half-item"
  759. {...formItemLayout}
  760. label={
  761. <span>
  762. <strong style={{ color: "#f00" }}>*</strong>
  763. 开票金额(万元)
  764. </span>
  765. }
  766. >
  767. <span>{this.state.amount}</span>
  768. </FormItem>
  769. <FormItem
  770. className="half-item"
  771. {...formItemLayout}
  772. label={
  773. <span>
  774. <strong style={{ color: "#f00" }}>*</strong>
  775. 开户行银行账号
  776. </span>
  777. }
  778. >
  779. <span>{this.state.banks}</span>
  780. </FormItem>
  781. <FormItem
  782. className="half-item"
  783. {...formItemLayout}
  784. label={
  785. <span>
  786. <strong style={{ color: "#f00" }}>*</strong>
  787. 开票内容及说明
  788. </span>
  789. }
  790. >
  791. <span>{this.state.content}</span>
  792. </FormItem>
  793. <FormItem
  794. className="half-item"
  795. {...formItemLayout}
  796. label={
  797. <span>
  798. <strong style={{ color: "#f00" }}>*</strong>单位地址
  799. </span>
  800. }
  801. >
  802. <span>{this.state.unitAddress}</span>
  803. </FormItem>
  804. <FormItem
  805. className="half-item"
  806. {...formItemLayout}
  807. label="备注"
  808. >
  809. <span>{this.state.invoiceRemarks}</span>
  810. </FormItem>
  811. <FormItem
  812. className="half-item"
  813. {...formItemLayout}
  814. label={
  815. <span>
  816. <strong style={{ color: "#f00" }}>*</strong>单位电话
  817. </span>
  818. }
  819. >
  820. <span>{this.state.unitMobile}</span>
  821. </FormItem>
  822. </div>
  823. <div className="clearfix">
  824. <FormItem
  825. labelCol={{ span: 4 }}
  826. wrapperCol={{ span: 18 }}
  827. label={
  828. <span>
  829. <strong style={{ color: "#f00" }}>*</strong>附件
  830. </span>
  831. }
  832. >
  833. {/*<Upload*/}
  834. {/* className="demandDetailShow-upload"*/}
  835. {/* listType="picture-card"*/}
  836. {/* fileList={this.state.orgCodeUrl}*/}
  837. {/* onPreview={file => {*/}
  838. {/* this.setState({*/}
  839. {/* previewImage: file.url || file.thumbUrl,*/}
  840. {/* previewVisible: true*/}
  841. {/* });*/}
  842. {/* }}*/}
  843. {/*/>*/}
  844. {this.state.avisible && this.state.orgCodeUrl ? <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  845. <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'}/>
  846. </div> : <div/>}
  847. <Modal
  848. maskClosable={false}
  849. footer={null}
  850. visible={this.state.previewVisible}
  851. onCancel={() => {
  852. this.setState({ previewVisible: false });
  853. }}
  854. >
  855. <img
  856. alt=""
  857. style={{ width: "100%" }}
  858. src={this.state.previewImage || ""}
  859. />
  860. </Modal>
  861. </FormItem>
  862. </div>
  863. <hr
  864. style={{
  865. border: "1px dashed #aaa",
  866. width: "90%",
  867. margin: "auto"
  868. }}
  869. />
  870. <div className="clearfix" style={{ marginTop: "10px" }}>
  871. <FormItem
  872. className="half-item"
  873. {...formItemLayout}
  874. label="发票是否邮寄:"
  875. >
  876. <span>{this.state.post === 0 ? "是" : "否"}</span>
  877. </FormItem>
  878. </div>
  879. {this.state.post === 0 ? (
  880. <div>
  881. <div className="clearfix">
  882. <FormItem
  883. className="half-item"
  884. {...formItemLayout}
  885. label="收信人姓名"
  886. >
  887. <span>{this.state.addressee}</span>
  888. </FormItem>
  889. <FormItem
  890. className="half-item"
  891. {...formItemLayout}
  892. label="电话"
  893. >
  894. <span>{this.state.addresseeMobile}</span>
  895. </FormItem>
  896. </div>
  897. <div className="clearfix">
  898. <FormItem
  899. className="half-item"
  900. {...formItemLayout}
  901. label="省-市-区"
  902. >
  903. <span>
  904. {getprovince(this.state.addresseeProvince)}/
  905. {getprovince(this.state.addresseeCity)}/
  906. {getprovince(this.state.addresseeArea)}
  907. </span>
  908. </FormItem>
  909. </div>
  910. <div className="clearfix">
  911. <FormItem
  912. className="half-item"
  913. {...formItemLayout}
  914. label="详细地址"
  915. >
  916. <span>{this.state.recipientAddress}</span>
  917. </FormItem>
  918. </div>
  919. </div>
  920. ) : (
  921. ""
  922. )}
  923. {/* <FormItem
  924. className="half-item"
  925. {...formItemLayout}
  926. label={
  927. <span>
  928. <strong style={{ color: "#f00" }}>*</strong>开票金额总计
  929. </span>
  930. }
  931. >
  932. <span>{this.state.alreadyAmount}万元</span>
  933. </FormItem> */}
  934. </div>
  935. </Spin>
  936. </Form>
  937. </Modal> : <div/>}
  938. <Modal
  939. maskClosable={false}
  940. visible={this.state.bvisible}
  941. footer=""
  942. title="开票历史记录"
  943. className="admin-desc-content"
  944. width="900px"
  945. onCancel={this.inRecordCanl}
  946. >
  947. <Spin spinning={this.state.loading}>
  948. <div className="patent-table">
  949. <Table
  950. columns={this.state.columnsDate}
  951. dataSource={this.state.recordData}
  952. pagination={false}
  953. bordered
  954. size="small"
  955. />
  956. <div className="clearfix" style={{ marginTop: "20px" }}>
  957. <FormItem
  958. className="half-item"
  959. {...formItemLayout}
  960. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  961. >
  962. <span>{this.state.sum}</span>
  963. </FormItem>
  964. </div>
  965. </div>
  966. </Spin>
  967. </Modal>
  968. </div>
  969. );
  970. }
  971. });
  972. export default outInvoiceQuery;