inSpecial.jsx 30 KB

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