inSpecial.jsx 30 KB

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