projectvip.jsx 24 KB

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