projectvipall.jsx 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import { AutoComplete, Button, Input, Spin, Table, Select, message, Tabs, Tag, Tooltip, Modal } from "antd";
  4. import OrderDesc from "../orderDetail/orderDesc";
  5. import ResolutionDetail from "@/resolutionDetail";
  6. import { ChooseList } from "../../order/orderNew/chooseList"
  7. import ReactToPrint from "react-to-print";
  8. import OrderItemStatus from "../../../common/orderItemStatus";
  9. import { salesList } from "@/dataDic.js";
  10. import ShowModalDiv from "@/showModal.jsx";
  11. import VipLogs from "../../../common/logPopup/viplogs";
  12. import { splitUrl } from "@/tools";
  13. import ImgList from "../../../common/imgList";
  14. import Cascaders from "../../../common/cascaders";
  15. const { TabPane } = Tabs;
  16. //财务总监会员项目查看
  17. const ProjectVipAll = React.createClass({
  18. //
  19. getInitialState() {
  20. return {
  21. dvisible: false,
  22. pageNo: 1,
  23. totalPage: 0,
  24. searchValues: {
  25. status: "5"
  26. },//查询条件
  27. loading: false,
  28. changeList: undefined,// 子组件改变的表格title数组
  29. pagination: {
  30. defaultCurrent: 1,
  31. defaultPageSize: 10,
  32. showQuickJumper: true,
  33. pageSize: 10,
  34. onChange: function (page) {
  35. this.setState({
  36. pageNo: page,
  37. });
  38. this.loadData(page);
  39. }.bind(this),
  40. showTotal: function (total) {
  41. return "共" + total + "条数据";
  42. },
  43. },
  44. columns: [
  45. {
  46. title: "销售类型",
  47. dataIndex: "salesType",
  48. key: "salesType",
  49. render: (text, record) => {
  50. return (
  51. <Tooltip
  52. title={salesList[text] + ((text == 3 || text == 4 || text == 5) ? (!record.other ? "" : "," + record.other) : "")}
  53. >
  54. <span>
  55. {salesList[text]}
  56. </span>
  57. </Tooltip>
  58. );
  59. },
  60. },
  61. {
  62. title: "合同编号",
  63. dataIndex: "contractNo",
  64. key: "contractNo",
  65. width: 160,
  66. render: (text, record) => {
  67. return (
  68. <Tooltip
  69. title={
  70. <Button
  71. type="primary"
  72. onClick={(e) => {
  73. e.stopPropagation();
  74. let input = document.getElementById("copyText");
  75. input.value = text;
  76. input.select();
  77. document.execCommand("copy");
  78. message.success("复制成功");
  79. }}
  80. >
  81. 复制
  82. </Button>
  83. }
  84. >
  85. <div>
  86. {text}
  87. <div style={{ display: "flex" }}>
  88. <OrderItemStatus deleteSign={record.deleteSign} />
  89. {
  90. record.approval == 1
  91. ? <Tag color="#faa755">特批待审</Tag> :
  92. record.approval == 2 && <Tag color="#ff0000">特批通过</Tag>
  93. }
  94. </div>
  95. </div>
  96. </Tooltip>
  97. );
  98. },
  99. },
  100. {
  101. title: "客户名称",
  102. dataIndex: "userName",
  103. key: "userName",
  104. width: 160,
  105. render: text => {
  106. return (
  107. <Tooltip title={text}>
  108. <div>{text}</div>
  109. </Tooltip>
  110. )
  111. }
  112. },
  113. {
  114. title: "订单编号",
  115. dataIndex: "orderNo",
  116. key: "orderNo",
  117. width: 140,
  118. render: (text, record) => {
  119. return (
  120. <Tooltip
  121. title={
  122. <Button
  123. type="primary"
  124. onClick={(e) => {
  125. e.stopPropagation();
  126. let input = document.getElementById("copyText");
  127. input.value = text;
  128. input.select();
  129. document.execCommand("copy");
  130. message.success("复制成功");
  131. }}
  132. >
  133. 复制
  134. </Button>
  135. }
  136. >
  137. <div>
  138. {text}
  139. <div>
  140. {record.totalAmount >= 10 && <Tag color="#ef7207">大客户</Tag>}
  141. {record.projectType == 1 && <Tag color="rgb(22, 155, 213)">会员</Tag>}
  142. </div>
  143. </div>
  144. </Tooltip>
  145. );
  146. },
  147. },
  148. {
  149. title: "订单部门",
  150. dataIndex: "depName",
  151. key: "depName",
  152. },
  153. {
  154. title: "订单负责人",
  155. dataIndex: "salesmanName",
  156. key: "salesmanName",
  157. },
  158. {
  159. title: "财务负责人",
  160. dataIndex: "financeName",
  161. key: "financeName",
  162. },
  163. {
  164. title: "会员项目",
  165. dataIndex: "projectName",
  166. key: "projectName",
  167. render: (text, record) => {
  168. return (
  169. <div>
  170. {text}
  171. {(record.memberType == 1 || record.memberType == 2) && <Tag color="#ff0000">特批项目</Tag>}
  172. </div>
  173. )
  174. }
  175. },
  176. {
  177. title: "数量",
  178. dataIndex: "commodityQuantity",
  179. key: "commodityQuantity",
  180. },
  181. {
  182. title: "总年限",
  183. dataIndex: "yearSum",
  184. key: "yearSum",
  185. render: (text, record) => {
  186. return (
  187. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  188. );
  189. }
  190. },
  191. {
  192. title: "年限",
  193. dataIndex: "serviceLife",
  194. key: "serviceLife",
  195. render: (text, record) => {
  196. return (
  197. <div>{!!text && JSON.parse(text).toString()}</div>
  198. );
  199. }
  200. },
  201. {
  202. title: "本次派单",
  203. dataIndex: "serviceYear",
  204. key: "serviceYear",
  205. render: (text, record) => {
  206. return (
  207. <div>{!text ? "" : text}</div>
  208. );
  209. }
  210. },
  211. {
  212. title: "项目说明",
  213. dataIndex: "taskComment",
  214. key: "taskComment",
  215. render: (text, record) => {
  216. return (
  217. <div style={{ maxWidth: 220 }}>{text}</div>
  218. );
  219. }
  220. },
  221. {
  222. title: "状态",
  223. dataIndex: "status",
  224. key: "status",
  225. render: (text) => {
  226. return (
  227. <div>
  228. {["", "财务审核", "特批审核", "通过", "驳回"][text]}
  229. </div>
  230. );
  231. }
  232. },
  233. {
  234. title: "操作",
  235. dataIndex: "pictureUrl",
  236. key: "pictureUrl",
  237. width: 110,
  238. render: (text, recard) => {
  239. return (
  240. <div>
  241. <Button
  242. type="primary"
  243. style={{ margin: 5 }}
  244. onClick={(e) => {
  245. e.stopPropagation();
  246. let arr = text || [];
  247. this.setState({
  248. pictureUrlArr: splitUrl(arr, ",", globalConfig.avatarHost + "/upload"),
  249. recard,
  250. }, () => {
  251. this.setState({
  252. imgListVisible: true,
  253. })
  254. })
  255. }}
  256. >
  257. 查看附件
  258. </Button>
  259. <VipLogs id={recard.id} />
  260. </div>
  261. );
  262. },
  263. },
  264. ],
  265. dataSource: [],
  266. fjlist: [],// 营销员列表
  267. checkOrderNo: "",//操作订单编号
  268. checkData: "",//操作描述
  269. checkVisible: "",//审核弹窗开关
  270. checkId: "",//会员项目编号
  271. result: -1,//1同意 0驳回
  272. imgListVisible: false,//附件弹窗
  273. pictureUrlArr: [],//附件
  274. };
  275. },
  276. componentWillMount() {
  277. this.loadData();
  278. // this.departmentList();
  279. },
  280. // 获取订单部门
  281. departmentList() {
  282. $.ajax({
  283. method: "get",
  284. dataType: "json",
  285. crossDomain: false,
  286. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  287. data: {},
  288. success: function (data) {
  289. let thedata = data.data;
  290. let theArr = [];
  291. if (!thedata) {
  292. if (data.error && data.error.length) {
  293. message.warning(data.error[0].message);
  294. }
  295. } else {
  296. thedata.map(function (item, index) {
  297. theArr.push({
  298. key: index,
  299. name: item.name,
  300. id: item.id,
  301. });
  302. });
  303. }
  304. this.setState({
  305. departmentArr: theArr,
  306. });
  307. }.bind(this),
  308. }).always(
  309. function () {
  310. }.bind(this)
  311. );
  312. },
  313. // 列表数据
  314. loadData(pageNo, pageSize) {
  315. const { searchValues, pagination } = this.state
  316. this.setState({
  317. loading: true,
  318. });
  319. let datas = Object.assign(searchValues, {
  320. pageNo: pageNo || 1,
  321. pageSize: pageSize || 10,
  322. shiroType: 0, //所有
  323. });
  324. $.ajax({
  325. method: "get",
  326. dataType: "json",
  327. crossDomain: false,
  328. url: globalConfig.context + "/api/admin/orderProject/memberList",
  329. data: datas,
  330. success: function (data) {
  331. this.setState({
  332. loading: false,
  333. });
  334. if (data.error && data.error.length === 0) {
  335. if (data.data.list) {
  336. pagination.current = data.data.pageNo;
  337. pagination.total = data.data.totalCount;
  338. if (data.data && data.data.list && !data.data.list.length) {
  339. pagination.current = 0;
  340. pagination.total = 0;
  341. }
  342. this.setState({
  343. dataSource: data.data.list,
  344. pagination: this.state.pagination,
  345. pageNo: data.data.pageNo,
  346. totalPage: data.data.totalPage,
  347. });
  348. } else {
  349. this.setState({
  350. dataSource: data.data,
  351. pagination: false,
  352. });
  353. }
  354. } else {
  355. message.warning(data.error[0].message);
  356. }
  357. }.bind(this),
  358. }).always(
  359. function () {
  360. this.setState({
  361. loading: false,
  362. });
  363. }.bind(this)
  364. );
  365. },
  366. // 点击行
  367. tableRowClick(record) {
  368. this.state.RowData = record;
  369. this.setState({
  370. showDesc: true,
  371. });
  372. },
  373. // 关闭
  374. closeDesc(e, s) {
  375. this.state.showDesc = e;
  376. if (s) {
  377. this.loadData(this.state.pageNo);
  378. }
  379. },
  380. // 搜索
  381. search() {
  382. this.setState({
  383. selectedRowKeys: []
  384. })
  385. this.loadData();
  386. },
  387. // 重置
  388. reset() {
  389. this.setState({
  390. searchValues: JSON.parse(JSON.stringify({})),
  391. }, () => {
  392. this.Cascaders.empty();
  393. this.loadData();
  394. })
  395. },
  396. // 更改表格显示数据
  397. changeList(arr) {
  398. const newArr = [];
  399. this.state.columns.forEach((item) => {
  400. arr.forEach((val) => {
  401. if (val === item.title) {
  402. newArr.push(item);
  403. }
  404. });
  405. });
  406. this.setState({
  407. changeList: newArr,
  408. });
  409. },
  410. // 导出当前列表
  411. exportAll() {
  412. message.config({
  413. duration: 20,
  414. });
  415. let loading = message.loading("下载中...");
  416. this.setState({
  417. exportPendingLoading: true,
  418. });
  419. let data = {
  420. shiroType: 0, //所有
  421. };
  422. let obj1 = JSON.parse(JSON.stringify(this.state.searchValues));
  423. data = Object.assign(data, obj1);
  424. $.ajax({
  425. method: "get",
  426. dataType: "json",
  427. crossDomain: false,
  428. url: "/api/admin/orderProject/memberList/export",
  429. data,
  430. success: function (data) {
  431. if (data.error.length === 0) {
  432. this.download(data.data);
  433. } else {
  434. message.warning(data.error[0].message);
  435. }
  436. }.bind(this),
  437. }).always(
  438. function () {
  439. loading();
  440. this.setState({
  441. exportPendingLoading: false,
  442. });
  443. }.bind(this)
  444. );
  445. },
  446. // 打印
  447. printAll() {
  448. this.setState({
  449. dvisible: true,
  450. });
  451. this.loadData(1, 9999999);
  452. },
  453. // 下载
  454. download(fileName) {
  455. window.location.href =
  456. globalConfig.context + "/open/download?fileName=" + fileName;
  457. },
  458. // 查询订单负责人列表
  459. followUp(e) {
  460. const { searchValues } = this.state;
  461. this.setState({
  462. searchValues: Object.assign(searchValues, {
  463. aname: e,
  464. }),
  465. });
  466. $.ajax({
  467. method: "get",
  468. dataType: "json",
  469. crossDomain: false,
  470. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  471. data: {
  472. adminName: e,
  473. },
  474. success: function (data) {
  475. let thedata = data.data;
  476. if (!thedata) {
  477. if (data.error && data.error.length) {
  478. message.warning(data.error[0].message);
  479. }
  480. thedata = {};
  481. }
  482. this.setState({
  483. fjlist: thedata,
  484. });
  485. }.bind(this),
  486. }).always(
  487. function () {
  488. this.setState({
  489. loading: false,
  490. });
  491. }.bind(this)
  492. );
  493. },
  494. // 选中订单负责人
  495. selectF(value) {
  496. const { searchValues, fjlist } = this.state;
  497. const newdataSources = JSON.stringify(fjlist) == "{}" ? [] : fjlist;
  498. this.setState({
  499. searchValues: Object.assign(searchValues, {
  500. salesmanId: newdataSources.find((item) => item.name == value).id,
  501. }),
  502. });
  503. },
  504. // 失去焦点
  505. blurChange(e) {
  506. let theType = "";
  507. let contactLists = this.state.customerArr || [];
  508. if (e) {
  509. contactLists.map(function (item) {
  510. if (item.name == e.toString()) {
  511. theType = item.id;
  512. }
  513. });
  514. }
  515. this.setState({
  516. theTypes: theType,
  517. });
  518. },
  519. // 删除数组最后一项(删除操作列)
  520. truncate(arr) {
  521. return arr.filter(function (v, i, ar) {
  522. return i !== ar.length - 1
  523. })
  524. },
  525. render() {
  526. const { TextArea } = Input
  527. const { searchValues, departmentArr = [] } = this.state
  528. const dataSources = this.state.fjlist || [];
  529. const options = dataSources.map((group) => (
  530. <Select.Option key={group.id} value={group.name}>
  531. {group.name}
  532. </Select.Option>
  533. ));
  534. return (
  535. <div className="user-content">
  536. <ShowModalDiv ShowModal={this.state.showModal} />
  537. <div className="content-title" style={{ marginBottom: 10 }}>
  538. <span style={{ fontWeight: 900, fontSize: 16 }}>会员项目(all)</span>
  539. </div>
  540. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  541. <TabPane tab="更改表格显示数据" key="1">
  542. <div style={{ marginLeft: 10 }}>
  543. <ChooseList
  544. columns={this.state.columns}
  545. changeFn={this.changeList}
  546. changeList={this.state.changeList}
  547. top={55}
  548. margin={11}
  549. />
  550. </div>
  551. </TabPane>
  552. <TabPane tab="搜索" key="2">
  553. <div className="user-search" style={{ marginLeft: 10 }}>
  554. <Input
  555. placeholder="订单编号"
  556. value={searchValues["orderNo"]
  557. ? searchValues["orderNo"]
  558. : ""}
  559. onChange={(e) => {
  560. searchValues["orderNo"] = e.target.value;
  561. this.setState({
  562. searchValues: searchValues,
  563. });
  564. }}
  565. />
  566. <Input
  567. placeholder="客户名称"
  568. value={searchValues["userName"]
  569. ? searchValues["userName"]
  570. : ""}
  571. onChange={(e) => {
  572. searchValues["userName"] = e.target.value;
  573. this.setState({
  574. searchValues: searchValues,
  575. });
  576. }}
  577. />
  578. <Cascaders
  579. ref={node => this.Cascaders = node}
  580. placeholder="订单部门"
  581. id="id"
  582. name="name"
  583. children="list"
  584. height={28}
  585. onSel={(e) => {
  586. searchValues["deps"] = JSON.stringify(e);
  587. this.setState({
  588. searchValues: searchValues,
  589. });
  590. }}
  591. />
  592. {/* <Select
  593. placeholder="订单部门"
  594. style={{ width: 190, marginRight: 10 }}
  595. value={searchValues["depId"]
  596. ? searchValues["depId"]
  597. : undefined}
  598. onChange={(e) => {
  599. searchValues["depId"] = e;
  600. this.setState({
  601. searchValues: searchValues,
  602. });
  603. }}
  604. >
  605. {departmentArr.map(function (item) {
  606. return (
  607. <Select.Option key={item.id}>{item.name}</Select.Option>
  608. );
  609. })}
  610. </Select> */}
  611. <Input
  612. placeholder="合同编号"
  613. value={searchValues["contractNo"]
  614. ? searchValues["contractNo"]
  615. : ""}
  616. onChange={(e) => {
  617. searchValues["contractNo"] = e.target.value;
  618. this.setState({
  619. searchValues: searchValues,
  620. });
  621. }}
  622. />
  623. <AutoComplete
  624. className="certain-category-search"
  625. dropdownClassName="certain-category-search-dropdown"
  626. dropdownMatchSelectWidth={false}
  627. style={{ width: "120px" }}
  628. dataSource={options}
  629. placeholder="订单负责人"
  630. value={searchValues.aname || undefined}
  631. onChange={this.followUp.bind(this)}
  632. filterOption={true}
  633. onSelect={this.selectF.bind(this)}
  634. >
  635. <Input />
  636. </AutoComplete>
  637. <Input
  638. placeholder="项目名称"
  639. value={searchValues["projectName"]
  640. ? searchValues["projectName"]
  641. : ""}
  642. onChange={(e) => {
  643. searchValues["projectName"] = e.target.value;
  644. this.setState({
  645. searchValues: searchValues,
  646. });
  647. }}
  648. />
  649. <Select
  650. style={{ width: 120 }}
  651. placeholder="签单金额"
  652. value={searchValues["amountStatus"]
  653. ? searchValues["amountStatus"]
  654. : undefined}
  655. onChange={(e) => {
  656. searchValues["amountStatus"] = e;
  657. this.setState({
  658. searchValues: searchValues,
  659. });
  660. }}
  661. >
  662. <Option value="0">10万元以下</Option>
  663. <Option value="1">10~20万元</Option>
  664. <Option value="2">20~30万元</Option>
  665. <Option value="3">30~40万元</Option>
  666. <Option value="4">40万元以上</Option>
  667. </Select>
  668. <Select
  669. style={{ width: 120 }}
  670. placeholder="特批状态"
  671. value={searchValues["approval"]
  672. ? searchValues["approval"]
  673. : undefined}
  674. onChange={(e) => {
  675. searchValues["approval"] = e;
  676. this.setState({
  677. searchValues: searchValues,
  678. });
  679. }}
  680. >
  681. <Option value="0">非特批</Option>
  682. <Option value="1">特批待审</Option>
  683. <Option value="2">特批通过</Option>
  684. <Option value="4">全部特批</Option>
  685. </Select>
  686. <Select
  687. style={{ width: 120 }}
  688. placeholder="审核状态"
  689. value={searchValues["status"]
  690. ? searchValues["status"]
  691. : undefined}
  692. onChange={(e) => {
  693. searchValues["status"] = e;
  694. this.setState({
  695. searchValues: searchValues,
  696. });
  697. }}
  698. >
  699. <Option value="1">财务审核</Option>
  700. <Option value="2">特批审核</Option>
  701. <Option value="3">通过</Option>
  702. <Option value="5">全部</Option>
  703. </Select>
  704. <Button
  705. type="primary"
  706. onClick={this.search}
  707. style={{ marginLeft: 10 }}
  708. disabled={this.state.loading ? true : false}
  709. >
  710. 搜索
  711. </Button>
  712. <Button onClick={this.reset}>重置</Button>
  713. </div>
  714. </TabPane>
  715. <TabPane tab="打印" key="3">
  716. <Button
  717. type="primary"
  718. style={{ margin: "11px 0px 10px 10px" }}
  719. onClick={this.printAll}
  720. >
  721. 打印当前列表
  722. </Button>
  723. </TabPane>
  724. <TabPane tab="导出Excel" key="4">
  725. <Button
  726. type="primary"
  727. style={{ margin: "11px 0px 10px 10px" }}
  728. onClick={this.exportAll}
  729. >
  730. 导出当前列表
  731. </Button>
  732. </TabPane>
  733. </Tabs>
  734. <div className="patent-table">
  735. <Spin spinning={this.state.loading}>
  736. <Table
  737. bordered
  738. columns={
  739. this.state.changeList == undefined
  740. ? this.state.columns
  741. : this.state.changeList
  742. }
  743. dataSource={this.state.dataSource}
  744. pagination={this.state.pagination}
  745. onRowDoubleClick={this.tableRowClick.bind(this)}
  746. size="small"
  747. />
  748. </Spin>
  749. </div>
  750. <textarea id="copyText" style={{ opacity: 0 }} />
  751. {/* 订单详情 */}
  752. <OrderDesc
  753. data={this.state.RowData}
  754. showDesc={this.state.showDesc}
  755. closeDesc={this.closeDesc.bind(this)}
  756. />
  757. {
  758. //打印预览
  759. this.state.dvisible &&
  760. <Modal
  761. visible={this.state.dvisible}
  762. footer=""
  763. title="所有列表信息"
  764. className="admin-desc-content"
  765. width="1300px"
  766. onCancel={() => {
  767. this.loadData();
  768. this.setState({
  769. dvisible: false,
  770. });
  771. }}
  772. >
  773. <Spin spinning={this.state.loading}>
  774. <div
  775. className="patent-table"
  776. style={{
  777. padding: "25px 0 30px 30px",
  778. }}
  779. ref={(e) => {
  780. this.refs.all = e;
  781. }}
  782. >
  783. <Table
  784. columns={this.truncate(this.state.columns)}
  785. dataSource={this.state.dataSource}
  786. pagination={false}
  787. bordered
  788. size="small"
  789. />
  790. </div>
  791. </Spin>
  792. <ReactToPrint
  793. trigger={() => (
  794. <Button
  795. type="primary"
  796. style={{
  797. float: "right",
  798. marginTop: 10,
  799. position: "absolute",
  800. top: 0,
  801. right: 30,
  802. }}
  803. >
  804. 打印
  805. </Button>
  806. )}
  807. content={() => this.refs.all}
  808. />
  809. </Modal>
  810. }
  811. {
  812. //查看附件
  813. this.state.imgListVisible &&
  814. <Modal
  815. maskClosable={false}
  816. visible={this.state.imgListVisible}
  817. onOk={() => {
  818. this.setState({
  819. imgListVisible: false,
  820. });
  821. }}
  822. onCancel={() => {
  823. this.setState({
  824. imgListVisible: false,
  825. });
  826. }}
  827. width="600px"
  828. title="附件"
  829. footer=""
  830. >
  831. <div style={{ marginBottom: 20 }}>
  832. 付款情况:
  833. {this.state.recard.memberType == "0"
  834. ? "已付会员节点全款" : this.state.recard.memberType == "1"
  835. ? "已付部分期款,需特批" : this.state.recard.memberType == "2"
  836. ? "未付款,需特批" : ""}
  837. </div>
  838. <div>附件:</div>
  839. <div>
  840. <ImgList
  841. fileList={this.state.pictureUrlArr}
  842. domId="publicStatistics"
  843. />
  844. </div>
  845. </Modal>
  846. }
  847. </div>
  848. );
  849. },
  850. });
  851. export default ProjectVipAll;