outInvoiceQuery.jsx 28 KB

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