outSpecial.jsx 28 KB

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