outInvoiceQuery.jsx 29 KB

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