outSpecial.jsx 30 KB

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