approvedvipproject.jsx 24 KB

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