outInvoiceQuery.jsx 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007
  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. examineName: thisdata.examineName,
  79. processStatus: thisdata.processStatus,
  80. amount: thisdata.amount,
  81. sumAmount: thisdata.sumAmount,
  82. createTime: thisdata.createTime
  83. ? new Date(thisdata.createTime).toLocaleString()
  84. : "",
  85. settlementAmount: thisdata.settlementAmount,
  86. notAmount: thisdata.notAmount,
  87. approval: thisdata.approval
  88. });
  89. }
  90. }
  91. this.state.pagination.current = data.data.pageNo;
  92. this.state.pagination.total = data.data.totalCount;
  93. if (data.data && data.data.list && !data.data.list.length) {
  94. this.state.pagination.current = 0;
  95. this.state.pagination.total = 0;
  96. }
  97. this.setState({
  98. totalPage: data.data.totalPage,
  99. dataSource: theArr,
  100. pagination: this.state.pagination
  101. });
  102. }.bind(this)
  103. }).always(
  104. function () {
  105. this.setState({
  106. loading: false
  107. });
  108. }.bind(this)
  109. );
  110. },
  111. invoiceData() {
  112. this.setState({
  113. loading: true
  114. });
  115. $.ajax({
  116. method: "get",
  117. dataType: "json",
  118. crossDomain: false,
  119. url:
  120. globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
  121. data: {
  122. id: this.state.id
  123. },
  124. success: function (data) {
  125. let thisdata = data.data;
  126. this.setState({
  127. orderNo: thisdata.orderNo,
  128. type: thisdata.type,
  129. status: thisdata.status,
  130. remarks: thisdata.remarks,
  131. invoiceType: thisdata.invoiceType,
  132. unitName: thisdata.unitName,
  133. taxNumber: thisdata.taxNumber,
  134. amount: thisdata.amount,
  135. banks: thisdata.banks,
  136. content: thisdata.content,
  137. unitAddress: thisdata.unitAddress,
  138. invoiceRemarks: thisdata.invoiceRemarks,
  139. unitMobile: thisdata.unitMobile,
  140. contractNo: thisdata.contractNo,
  141. post: thisdata.post,
  142. addressee: thisdata.addressee,
  143. addresseeMobile: thisdata.addresseeMobile,
  144. addresseeProvince: thisdata.addresseeProvince,
  145. addresseeCity: thisdata.addresseeCity,
  146. addresseeArea: thisdata.addresseeArea,
  147. alreadyAmount: thisdata.alreadyAmount,
  148. recipientAddress: thisdata.recipientAddress,
  149. orgCodeUrl: thisdata.voucherUrl
  150. ? splitUrl(
  151. thisdata.voucherUrl,
  152. ",",
  153. globalConfig.avatarHost + "/upload"
  154. )
  155. : []
  156. });
  157. }.bind(this)
  158. }).done(
  159. function () {
  160. this.setState({
  161. loading: false
  162. });
  163. }.bind(this)
  164. );
  165. },
  166. getInitialState() {
  167. return {
  168. searchMore: true,
  169. assignVisible: false,
  170. releaseDate: [],
  171. totalPage: 0,
  172. boHuivisible: false,
  173. selectedRowKeys: [],
  174. selectedRows: [],
  175. contractNo: "",
  176. loading: false,
  177. reason: "",
  178. foo: 0,
  179. pagination: {
  180. defaultCurrent: 1,
  181. defaultPageSize: 10,
  182. showQuickJumper: true,
  183. pageSize: 10,
  184. onChange: function (page) {
  185. this.loadData(page);
  186. }.bind(this),
  187. showTotal: function (total) {
  188. return "共" + total + "条数据";
  189. }
  190. },
  191. columns: [
  192. {
  193. title: "编号",
  194. dataIndex: "id",
  195. key: "id",
  196. },
  197. {
  198. title: "客户",
  199. dataIndex: "unitName",
  200. key: "unitName",
  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, record) => {
  233. return getProcessStatus(text, record.examineName, record.approval);
  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. examineName: thisdata.examineName,
  474. });
  475. }
  476. }
  477. this.setState({
  478. recordData: theArr,
  479. sum: sum.toFixed(6)
  480. });
  481. }.bind(this)
  482. }).done(
  483. function () {
  484. this.setState({
  485. loading: false
  486. });
  487. }.bind(this)
  488. );
  489. },
  490. inRecord(record) {
  491. this.setState(
  492. {
  493. bvisible: true,
  494. orderNo2: record.orderno
  495. },
  496. () => {
  497. this.inRecordData();
  498. }
  499. );
  500. },
  501. inRecordCanl() {
  502. this.setState({
  503. bvisible: false
  504. });
  505. },
  506. changeList(arr) {
  507. const newArr = [];
  508. this.state.columns.forEach(item => {
  509. arr.forEach(val => {
  510. if (val === item.title) {
  511. newArr.push(item);
  512. }
  513. });
  514. });
  515. this.setState({
  516. changeList: newArr
  517. });
  518. },
  519. search() {
  520. this.loadData();
  521. },
  522. componentWillMount() {
  523. this.loadData();
  524. },
  525. reset() {
  526. this.state.nameSearch = "";
  527. this.state.releaseDate = [];
  528. this.state.orderNoSearch = "";
  529. this.state.processStatus = [];
  530. this.state.departmenttList = undefined;
  531. this.state.statusSearch = [];
  532. this.Cascaders.empty();
  533. this.loadData();
  534. },
  535. render() {
  536. const formItemLayout = {
  537. labelCol: { span: 8 },
  538. wrapperCol: { span: 14 }
  539. };
  540. return (
  541. <div className="user-content">
  542. <ShowModalDiv ShowModal={this.state.showModal} />
  543. <div className="content-title" style={{ marginBottom: 10 }}>
  544. <span style={{ fontWeight: 900, fontSize: 16 }}>省外开票查询</span>
  545. </div>
  546. <Tabs
  547. defaultActiveKey="1"
  548. onChange={this.callback}
  549. className="test">
  550. <TabPane tab="搜索" key="1">
  551. <div className="user-search">
  552. <Input
  553. placeholder="订单编号"
  554. value={this.state.orderNoSearch}
  555. onChange={e => {
  556. this.setState({ orderNoSearch: e.target.value });
  557. }}
  558. />
  559. <Input
  560. placeholder="营销员名称"
  561. value={this.state.nameSearch}
  562. style={{ marginLeft: 10 }}
  563. onChange={e => {
  564. this.setState({ nameSearch: e.target.value });
  565. }}
  566. />
  567. <Cascaders
  568. ref={node => this.Cascaders = node}
  569. placeholder="订单部门"
  570. id="id"
  571. name="name"
  572. children="list"
  573. height={28}
  574. onSel={(e) => {
  575. this.setState({
  576. departmenttList: JSON.stringify(e),
  577. });
  578. }}
  579. />
  580. {/* <DepartmentList
  581. value={this.state.departmenttList}
  582. onChange={e => {
  583. this.setState({ departmenttList: e });
  584. }}/> */}
  585. {/* <Select
  586. placeholder="特批状态"
  587. onChange={e => {
  588. this.setState({ processStatus: e });
  589. }}
  590. style={{ width: 160, marginRight: 5 }}
  591. value={this.state.processStatus}
  592. >
  593. <Option value="1">特批未审核</Option>
  594. <Option value="2">特批已审核</Option>
  595. </Select>
  596. <Select
  597. placeholder="审核状态"
  598. onChange={e => {
  599. this.setState({ statusSearch: e });
  600. }}
  601. style={{ width: 160, marginRight: 5 }}
  602. value={this.state.statusSearch}
  603. >
  604. <Option value="1">待审核</Option>
  605. <Option value="2">审核通过</Option>
  606. </Select> */}
  607. <Button
  608. type="primary"
  609. onClick={this.search}
  610. style={{ marginLeft: 10 }}
  611. >
  612. 搜索
  613. </Button>
  614. <Button onClick={this.reset}>重置</Button>
  615. </div>
  616. </TabPane>
  617. <TabPane tab="更改表格显示数据" key="2">
  618. <div style={{ marginLeft: 10 }}>
  619. <ChooseList
  620. columns={this.state.columns}
  621. changeFn={this.changeList}
  622. changeList={this.state.changeList}
  623. top={55}
  624. margin={11}
  625. />
  626. </div>
  627. </TabPane>
  628. </Tabs>
  629. <div className="patent-table">
  630. <Spin spinning={this.state.loading}>
  631. <Table
  632. columns={
  633. this.state.changeList == undefined
  634. ? this.state.columns
  635. : this.state.changeList
  636. }
  637. scroll={{ x: 1500, y: 0 }}
  638. dataSource={this.state.dataSource}
  639. pagination={this.state.pagination}
  640. bordered
  641. size="small"
  642. />
  643. </Spin>
  644. </div>
  645. <Modal
  646. maskClosable={false}
  647. visible={this.state.visibleR}
  648. className="admin-desc-content"
  649. footer=""
  650. title="拒绝理由"
  651. width="400px"
  652. onCancel={this.rejectCancels}
  653. >
  654. <Input.TextArea
  655. placeholder="请输入拒绝理由"
  656. rows={4}
  657. value={this.state.reason}
  658. onChange={e => {
  659. this.setState({ reason: e.target.value });
  660. }}
  661. ></Input.TextArea>
  662. <div className="clearfix" style={{ marginTop: "20px" }}>
  663. <Button
  664. type="primary"
  665. loading={this.state.loading}
  666. onClick={e => {
  667. e.stopPropagation(), this.commit();
  668. }}
  669. style={{ float: "right" }}
  670. >
  671. 提交
  672. </Button>
  673. </div>
  674. </Modal>
  675. {this.state.avisible ? <Modal
  676. maskClosable={false}
  677. className="admin-desc-content"
  678. footer=""
  679. title="开具发票申请单"
  680. width="1200px"
  681. visible={this.state.avisible}
  682. onOk={this.visitOks}
  683. onCancel={this.visitCancels}
  684. >
  685. <Form
  686. layout="horizontal"
  687. id="demand-form"
  688. style={{ paddingBottom: "40px" }}
  689. >
  690. <Spin spinning={this.state.loading}>
  691. <div className="clearfix">
  692. <div className="clearfix">
  693. <FormItem
  694. className="half-item"
  695. {...formItemLayout}
  696. label="合同编号"
  697. >
  698. <span>{this.state.contractNo}</span>
  699. </FormItem>
  700. <FormItem
  701. className="half-item"
  702. {...formItemLayout}
  703. label="备注"
  704. >
  705. <span>{this.state.remarks}</span>
  706. </FormItem>
  707. </div>
  708. <div className="clearfix">
  709. <FormItem
  710. className="half-item"
  711. {...formItemLayout}
  712. label={
  713. <span>
  714. <strong style={{ color: "#f00" }}>*</strong>省内/外
  715. </span>
  716. }
  717. >
  718. <span>{getProvinceA(this.state.type)}</span>
  719. </FormItem>
  720. </div>
  721. <hr
  722. style={{
  723. border: "1px dashed #aaa",
  724. width: "90%",
  725. margin: "auto"
  726. }}
  727. />
  728. <div style={{ marginTop: "13px", marginLeft: "16px" }}>
  729. <span style={{ fontSize: "14px" }}>发票内容</span>
  730. </div>
  731. <div className="clearfix">
  732. <FormItem
  733. className="half-item"
  734. {...formItemLayout}
  735. label={
  736. <span>
  737. <strong style={{ color: "#f00" }}>*</strong>发票类型
  738. </span>
  739. }
  740. >
  741. <span>
  742. {this.state.invoiceType === 0
  743. ? "增值税专用发票"
  744. : this.state.invoiceType === 1
  745. ? "增值税普通发票"
  746. : "其他"}
  747. </span>
  748. </FormItem>
  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>{this.state.unitName}</span>
  761. </FormItem>
  762. <FormItem
  763. className="half-item"
  764. {...formItemLayout}
  765. label={
  766. <span>
  767. <strong style={{ color: "#f00" }}>*</strong>税号
  768. </span>
  769. }
  770. >
  771. <span>{this.state.taxNumber}</span>
  772. </FormItem>
  773. <FormItem
  774. className="half-item"
  775. {...formItemLayout}
  776. label={
  777. <span>
  778. <strong style={{ color: "#f00" }}>*</strong>
  779. 开票金额(万元)
  780. </span>
  781. }
  782. >
  783. <span>{this.state.amount}</span>
  784. </FormItem>
  785. <FormItem
  786. className="half-item"
  787. {...formItemLayout}
  788. label={
  789. <span>
  790. <strong style={{ color: "#f00" }}>*</strong>
  791. 开户行银行账号
  792. </span>
  793. }
  794. >
  795. <span>{this.state.banks}</span>
  796. </FormItem>
  797. <FormItem
  798. className="half-item"
  799. {...formItemLayout}
  800. label={
  801. <span>
  802. <strong style={{ color: "#f00" }}>*</strong>
  803. 开票内容及说明
  804. </span>
  805. }
  806. >
  807. <span>{this.state.content}</span>
  808. </FormItem>
  809. <FormItem
  810. className="half-item"
  811. {...formItemLayout}
  812. label={
  813. <span>
  814. <strong style={{ color: "#f00" }}>*</strong>单位地址
  815. </span>
  816. }
  817. >
  818. <span>{this.state.unitAddress}</span>
  819. </FormItem>
  820. <FormItem
  821. className="half-item"
  822. {...formItemLayout}
  823. label="备注"
  824. >
  825. <span>{this.state.invoiceRemarks}</span>
  826. </FormItem>
  827. <FormItem
  828. className="half-item"
  829. {...formItemLayout}
  830. label={
  831. <span>
  832. <strong style={{ color: "#f00" }}>*</strong>单位电话
  833. </span>
  834. }
  835. >
  836. <span>{this.state.unitMobile}</span>
  837. </FormItem>
  838. </div>
  839. <div className="clearfix">
  840. <FormItem
  841. labelCol={{ span: 4 }}
  842. wrapperCol={{ span: 18 }}
  843. label={
  844. <span>
  845. <strong style={{ color: "#f00" }}>*</strong>附件
  846. </span>
  847. }
  848. >
  849. {/*<Upload*/}
  850. {/* className="demandDetailShow-upload"*/}
  851. {/* listType="picture-card"*/}
  852. {/* fileList={this.state.orgCodeUrl}*/}
  853. {/* onPreview={file => {*/}
  854. {/* this.setState({*/}
  855. {/* previewImage: file.url || file.thumbUrl,*/}
  856. {/* previewVisible: true*/}
  857. {/* });*/}
  858. {/* }}*/}
  859. {/*/>*/}
  860. {this.state.avisible && this.state.orgCodeUrl ? <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  861. <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'} />
  862. </div> : <div />}
  863. <Modal
  864. maskClosable={false}
  865. footer={null}
  866. visible={this.state.previewVisible}
  867. onCancel={() => {
  868. this.setState({ previewVisible: false });
  869. }}
  870. >
  871. <img
  872. alt=""
  873. style={{ width: "100%" }}
  874. src={this.state.previewImage || ""}
  875. />
  876. </Modal>
  877. </FormItem>
  878. </div>
  879. <hr
  880. style={{
  881. border: "1px dashed #aaa",
  882. width: "90%",
  883. margin: "auto"
  884. }}
  885. />
  886. <div className="clearfix" style={{ marginTop: "10px" }}>
  887. <FormItem
  888. className="half-item"
  889. {...formItemLayout}
  890. label="发票是否邮寄:"
  891. >
  892. <span>{this.state.post === 0 ? "是" : "否"}</span>
  893. </FormItem>
  894. </div>
  895. {this.state.post === 0 ? (
  896. <div>
  897. <div className="clearfix">
  898. <FormItem
  899. className="half-item"
  900. {...formItemLayout}
  901. label="收信人姓名"
  902. >
  903. <span>{this.state.addressee}</span>
  904. </FormItem>
  905. <FormItem
  906. className="half-item"
  907. {...formItemLayout}
  908. label="电话"
  909. >
  910. <span>{this.state.addresseeMobile}</span>
  911. </FormItem>
  912. </div>
  913. <div className="clearfix">
  914. <FormItem
  915. className="half-item"
  916. {...formItemLayout}
  917. label="省-市-区"
  918. >
  919. <span>
  920. {getprovince(this.state.addresseeProvince)}/
  921. {getprovince(this.state.addresseeCity)}/
  922. {getprovince(this.state.addresseeArea)}
  923. </span>
  924. </FormItem>
  925. </div>
  926. <div className="clearfix">
  927. <FormItem
  928. className="half-item"
  929. {...formItemLayout}
  930. label="详细地址"
  931. >
  932. <span>{this.state.recipientAddress}</span>
  933. </FormItem>
  934. </div>
  935. </div>
  936. ) : (
  937. ""
  938. )}
  939. {/* <FormItem
  940. className="half-item"
  941. {...formItemLayout}
  942. label={
  943. <span>
  944. <strong style={{ color: "#f00" }}>*</strong>开票金额总计
  945. </span>
  946. }
  947. >
  948. <span>{this.state.alreadyAmount}万元</span>
  949. </FormItem> */}
  950. </div>
  951. </Spin>
  952. </Form>
  953. </Modal> : <div />}
  954. <Modal
  955. maskClosable={false}
  956. visible={this.state.bvisible}
  957. footer=""
  958. title="开票历史记录"
  959. className="admin-desc-content"
  960. width="1200px"
  961. onCancel={this.inRecordCanl}
  962. >
  963. <Spin spinning={this.state.loading}>
  964. <div className="patent-table">
  965. <Table
  966. columns={this.state.columnsDate}
  967. dataSource={this.state.recordData}
  968. pagination={false}
  969. bordered
  970. size="small"
  971. />
  972. <div className="clearfix" style={{ marginTop: "20px" }}>
  973. <FormItem
  974. className="half-item"
  975. {...formItemLayout}
  976. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  977. >
  978. <span>{this.state.sum}</span>
  979. </FormItem>
  980. </div>
  981. </div>
  982. </Spin>
  983. </Modal>
  984. </div>
  985. );
  986. }
  987. });
  988. export default outInvoiceQuery;