invoiceApplyListQuery.jsx 29 KB

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