outSpecial.jsx 29 KB

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