invoiceApplyListQuery.jsx 29 KB

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