invoiceApplyListWai.jsx 29 KB

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