changeDetailJsjl.js 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963
  1. import React, { Component } from "react";
  2. import { Form, Upload, Modal, Input, Button, message, Select, Table } from "antd";
  3. import AgreeButton from "./agreeButton.js";
  4. import Rizhi from "./rizhi.js";
  5. import { getProcessStatusNew, changeColor } from "@/tools.js";
  6. import { shenghePeo } from "@/tools.js";
  7. import { typeList } from '@/dataDic.js'
  8. import $ from "jquery/src/ajax";
  9. import tongguo from "../../../../../../image/tongguo.png";
  10. import quxiao from "../../../../../../image/quxiao.png";
  11. import ProAndCuiList from "./proAndCuiList.jsx";
  12. import "./xButton.less";
  13. import Refund from "./refund.js"
  14. import ImgList from "../../../../common/imgList";
  15. // import ReactToPrint from "react-to-print";
  16. const formItemLayout = {
  17. labelCol: { span: 8 },
  18. wrapperCol: { span: 14 }
  19. };
  20. const getChangeType = function (e) {
  21. if (e || e == 0) {
  22. let str = e.toString();
  23. let theType = "";
  24. typeList.map(function (item) {
  25. if (item.value == str) {
  26. theType = item.key;
  27. }
  28. });
  29. return theType;
  30. }
  31. };
  32. class Itemlist extends Component {
  33. constructor(props) {
  34. super(props);
  35. }
  36. render() {
  37. let pageData = this.props.pageData;
  38. return (
  39. <div className="clearfix">
  40. <Form.Item
  41. label={pageData.labelA}
  42. {...pageData.formItemLayoutA}
  43. className="half-item"
  44. >
  45. <p style={{ width: 350, wordWrap: "break-word" }}>{pageData.dataA}</p>
  46. </Form.Item>
  47. <Form.Item
  48. label={pageData.labelB}
  49. {...pageData.formItemLayoutB}
  50. className="half-item"
  51. >
  52. <span>{pageData.dataB}</span>
  53. </Form.Item>
  54. </div>
  55. );
  56. }
  57. }
  58. class ChangeDetail extends Component {
  59. constructor(props) {
  60. super(props);
  61. this.state = {
  62. rotateDeg: 0,
  63. previewVisible: false,
  64. buttonStatus: true,
  65. changeType: 1,
  66. dataSource: [],
  67. reason: "",
  68. // 累计回收退票
  69. refundInvoice: 0,
  70. // 退票数组
  71. contactList: [],
  72. rejectState: 0,
  73. // 收款信息
  74. proceedsData: [],
  75. proceedsTotal: this.props.proceedsTotal,
  76. // 开票信息
  77. invoiceData: [],
  78. invoiceTotal: this.props.invoiceTotal,
  79. cost: 10,
  80. refund: 8,
  81. // 测试添加退票
  82. contactList: this.props.contactList,
  83. ContactsLists: [
  84. {
  85. title: "金额(万元)",
  86. dataIndex: "amount",
  87. key: "amount",
  88. render: (text, record) => {
  89. return (
  90. <div>
  91. 实际回收退票(万元)
  92. <Input
  93. value={record.amount}
  94. placeholder="请输入金额(必填项)"
  95. disabled={record.load}
  96. key={record.id}
  97. required="required"
  98. onChange={(e) => {
  99. record.amount = e.target.value;
  100. this.setState({ contactList: this.state.contactList });
  101. }}
  102. style={{ width: "120px" }}
  103. />
  104. </div>
  105. );
  106. },
  107. },
  108. {
  109. title: "时间",
  110. dataIndex: "createTimes",
  111. key: "createTimes",
  112. render: (text, record) => {
  113. return <div>{record.createTimes}</div>;
  114. },
  115. },
  116. ],
  117. };
  118. this.getOrgCodeUrl = this.getOrgCodeUrl.bind(this);
  119. this.changeButtonStatus = this.changeButtonStatus.bind(this);
  120. this.moneyOld = this.moneyOld.bind(this);
  121. this.rotate = this.rotate.bind(this);
  122. this.downImg = this.downImg.bind(this);
  123. this.upImg = this.upImg.bind(this);
  124. }
  125. componentWillReceiveProps(nextProps) {
  126. this.setState({
  127. projectState: nextProps.data.projectState,
  128. zxsCost: nextProps.data.zxsCost,
  129. zxsRemarks: nextProps.data.zxsRemarks,
  130. paymentTimes: nextProps.data.paymentTimes,
  131. paymentAmount: nextProps.data.paymentAmount,
  132. invoiceTimes: nextProps.data.invoiceTimes,
  133. invoiceAmount: nextProps.data.invoiceAmount,
  134. cwCost: nextProps.data.cwCost,
  135. refundableAmount: nextProps.data.refundableAmount,
  136. cwRemarks: nextProps.data.cwRemarks,
  137. contactList: nextProps.contactList,
  138. refundInvoice: nextProps.data.refundInvoice,
  139. });
  140. }
  141. getOrgCodeUrl(e) {
  142. this.setState({
  143. orgCodeUrl: e,
  144. });
  145. }
  146. //同意拒绝按钮的有无
  147. changeButtonStatus() {
  148. this.setState({
  149. buttonStatus: !this.state.buttonStatus,
  150. });
  151. window.setTimeout(() => {
  152. this.setState({
  153. reason: "",
  154. });
  155. }, 100);
  156. }
  157. downImg() {
  158. let num = 0;
  159. for (let i = 0; i < this.props.pictureUrl.length; i++) {
  160. if (this.props.pictureUrl[i].url == this.state.previewImage) {
  161. num = i;
  162. }
  163. }
  164. if (num == this.props.pictureUrl.length - 1) {
  165. return message.warning("已经是最后一张了哦");
  166. }
  167. this.state.previewImage = this.props.pictureUrl[num + 1].url;
  168. this.setState({
  169. previewImage: this.state.previewImage,
  170. rotateDeg: 0,
  171. });
  172. }
  173. upImg() {
  174. let num = 0;
  175. for (let i = 0; i < this.props.pictureUrl.length; i++) {
  176. if (this.props.pictureUrl[i].url == this.state.previewImage) {
  177. num = i;
  178. }
  179. }
  180. if (num == 0) {
  181. return message.warning("已经是第一张了哦");
  182. }
  183. this.state.previewImage = this.props.pictureUrl[num - 1].url;
  184. this.setState({
  185. previewImage: this.state.previewImage,
  186. rotateDeg: 0,
  187. });
  188. }
  189. rotate() {
  190. let rotateDeg = this.state.rotateDeg + 90;
  191. this.setState({
  192. rotateDeg,
  193. });
  194. }
  195. moneyOld(str, money) {
  196. if (money) {
  197. return (
  198. <span style={{ color: "red", fontWeight: 900, fontSize: 16 }}>
  199. {str}(原合同金额{money}万元)
  200. </span>
  201. );
  202. } else {
  203. return (
  204. <span style={{ color: "red", fontWeight: 900, fontSize: 16 }}>
  205. {str}
  206. </span>
  207. );
  208. }
  209. }
  210. render() {
  211. const pageData = [
  212. {
  213. labelA: "客户名称",
  214. formItemLayoutA: formItemLayout,
  215. dataA: this.props.data.userName,
  216. labelB: "合同编号",
  217. formItemLayoutB: formItemLayout,
  218. dataB: this.props.data.contractNo,
  219. },
  220. {
  221. labelA: "时间",
  222. formItemLayoutA: formItemLayout,
  223. dataA: this.props.data.createTimes,
  224. labelB: "发起人",
  225. formItemLayoutB: formItemLayout,
  226. dataB: this.props.data.applicant,
  227. },
  228. {
  229. labelA: "当前进度",
  230. formItemLayoutA: formItemLayout,
  231. // 当前是咨询师以及咨询师经理时使用shenhePeo函数,其他流程正常显示
  232. dataA:
  233. this.props.data.processState == 2 || this.props.data.processState == 3
  234. ? shenghePeo(this.props.data.examineName, this.props.data.processState)
  235. : getProcessStatusNew(
  236. this.props.data.examineName,
  237. this.props.data.processState,
  238. this.props.data.status
  239. ),
  240. labelB: "变更类型",
  241. formItemLayoutB: formItemLayout,
  242. dataB: getChangeType(this.props.data.type),
  243. },
  244. {
  245. labelA: "合同额(万元)",
  246. formItemLayoutA: formItemLayout,
  247. dataA: this.moneyOld(this.props.data.totalAmount, this.props.money),
  248. labelB: "已收款(万元)",
  249. formItemLayoutB: formItemLayout,
  250. dataB: changeColor(this.props.data.settlementAmount),
  251. },
  252. {
  253. labelA: "欠款(万元)",
  254. formItemLayoutA: formItemLayout,
  255. dataA: changeColor(this.props.data.arrears),
  256. labelB: "申请退款(万元)",
  257. formItemLayoutB: formItemLayout,
  258. dataB: changeColor(this.props.data.changeAmount),
  259. },
  260. {
  261. labelA: "变更原因",
  262. formItemLayoutA: formItemLayout,
  263. dataA: this.props.data.remarks,
  264. },
  265. ];
  266. const planData = [
  267. {
  268. labelA: "项目进度",
  269. formItemLayoutA: formItemLayout,
  270. dataA: this.props.data.projectState,
  271. onChangeA: (value) => {
  272. this.setState({
  273. projectState: value,
  274. });
  275. },
  276. labelB: "发生成本费用(万元)",
  277. formItemLayoutB: formItemLayout,
  278. dataB: this.props.data.zxsCost,
  279. onChangeB: (value) => {
  280. this.setState({
  281. zxsCost: value,
  282. });
  283. },
  284. },
  285. {
  286. labelA: "备注",
  287. formItemLayoutA: formItemLayout,
  288. dataA: this.props.data.zxsRemarks,
  289. onChangeA: (value) => {
  290. this.setState({
  291. zxsRemarks: value,
  292. });
  293. },
  294. },
  295. ];
  296. const financeData = [
  297. {
  298. labelA: "发生成本(万元)",
  299. formItemLayoutA: formItemLayout,
  300. dataA: this.props.data.cwCost,
  301. labelB: "应退金额(万元)",
  302. formItemLayoutB: formItemLayout,
  303. dataB: this.props.data.refundableAmount,
  304. },
  305. ];
  306. const buttonData = [
  307. {
  308. name: "同意",
  309. title: "理由",
  310. placeholder: "请输入理由",
  311. type: "primary",
  312. status: 2,
  313. onChange: (value) => {
  314. this.setState({
  315. remarks: value,
  316. });
  317. },
  318. },
  319. {
  320. name: "拒绝",
  321. title: "理由",
  322. placeholder: "请输入理由",
  323. type: "danger",
  324. status: 3,
  325. onChange: (value) => {
  326. this.setState({
  327. remarks: value,
  328. });
  329. },
  330. },
  331. ];
  332. const orgCodeUrl = this.props.pictureUrl;
  333. const attachment = this.props.attachment
  334. return (
  335. <div className="clearfix changeDetail">
  336. <div
  337. className="clearfix"
  338. ref={(e) => {
  339. this.refs = e;
  340. }}
  341. >
  342. <div
  343. style={{
  344. borderRadius: "50%",
  345. width: 300,
  346. height: 300,
  347. position: "absolute",
  348. top: 230,
  349. left: 525,
  350. transform: "rotate(-5deg)",
  351. zIndex: 1,
  352. display:
  353. (this.props.data.processState == 7 ||
  354. this.props.data.processState == 8) &&
  355. this.props.data.status == 4
  356. ? "block"
  357. : "none",
  358. }}
  359. >
  360. {/* <span
  361. style={{
  362. fontSize: 29,
  363. position: "absolute",
  364. left: "50%",
  365. top: "50%",
  366. transform: "translate(-50%,-50%)",
  367. color: "red"
  368. }}
  369. >
  370. 通过
  371. </span> */}
  372. <img src={tongguo} style={{ width: "100%" }} />
  373. </div>
  374. <div
  375. style={{
  376. borderRadius: "50%",
  377. width: 300,
  378. height: 300,
  379. position: "absolute",
  380. top: 284,
  381. left: 586,
  382. transform: "rotate(-5deg)",
  383. zIndex: 1,
  384. display: this.props.data.status == 5 ? "block" : "none",
  385. }}
  386. >
  387. <img src={quxiao} style={{ width: "63%" }} />
  388. </div>
  389. <h2 style={{ textAlign: "center", marginBottom: 10 }}>
  390. 合同变更记录
  391. </h2>
  392. {pageData.map((item, index) => {
  393. return <Itemlist key={index} pageData={item} />;
  394. })}
  395. <Form.Item
  396. label="变更凭证"
  397. labelCol={{ span: 4 }}
  398. wrapperCol={{ span: 18 }}
  399. >
  400. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  401. <ImgList domId={this.props.domId ? this.props.domId + '1' : 'changeDetailJsjl1'} fileList={orgCodeUrl} ItemWidth={'96px'} />
  402. </div>
  403. <Modal
  404. maskClosable={false}
  405. footer={null}
  406. width={"50%"}
  407. visible={this.state.previewVisible}
  408. onCancel={() => {
  409. this.state.rotateDeg = 0;
  410. this.setState({
  411. previewVisible: false,
  412. rotateDeg: this.state.rotateDeg,
  413. });
  414. }}
  415. >
  416. <img
  417. alt=""
  418. style={{
  419. width: "100%",
  420. transform: `rotate(${this.state.rotateDeg}deg)`,
  421. }}
  422. src={this.state.previewImage || ""}
  423. />
  424. <Button
  425. onClick={this.rotate}
  426. style={{
  427. position: "relative",
  428. left: "50%",
  429. transform: "translateX(-50%)",
  430. }}
  431. >
  432. 旋转
  433. </Button>
  434. <Button
  435. onClick={this.upImg}
  436. style={{
  437. position: "absolute",
  438. left: -81,
  439. top: "50%",
  440. transform: "translateY(-50%)",
  441. }}
  442. >
  443. 上一张
  444. </Button>
  445. <Button
  446. onClick={this.downImg}
  447. style={{
  448. position: "absolute",
  449. right: -81,
  450. top: "50%",
  451. transform: "translateY(-50%)",
  452. }}
  453. >
  454. 下一张
  455. </Button>
  456. </Modal>
  457. <Rizhi changeId={this.props.id} />
  458. </Form.Item>
  459. {
  460. this.props.contractPictureUrl && this.props.contractPictureUrl.length != 0 &&
  461. <div className="clearfix">
  462. <Form.Item
  463. labelCol={{ span: 4 }}
  464. wrapperCol={{ span: 18 }}
  465. label="最新合同"
  466. >
  467. <div style={{ paddingTop: 10 }}>
  468. <ImgList
  469. fileList={
  470. this.props.contractPictureUrl
  471. }
  472. ItemWidth={"96px"}
  473. />
  474. </div>
  475. </Form.Item>
  476. </div>
  477. }
  478. <ul
  479. style={{
  480. width: "868px",
  481. overflow: "hidden",
  482. paddingLeft: "90px",
  483. position: "relative",
  484. bottom: "0px",
  485. }}
  486. >
  487. {/* <span>操作人:</span> */}
  488. {this.props.dataSource.map((item, index) => {
  489. if (item.status == 0) {
  490. item.status = "发起";
  491. } else if (item.status == 1) {
  492. item.status = "审核中";
  493. } else if (item.status == 2) {
  494. item.status = "通过";
  495. } else if (item.status == 3) {
  496. item.status = "驳回";
  497. } else if (item.status == 4) {
  498. item.status = "完成";
  499. }
  500. return (
  501. <li
  502. key={index}
  503. style={{
  504. width: "100%",
  505. height: "auto",
  506. wordBreak: "break-all",
  507. marginBottom: "10px",
  508. }}
  509. >
  510. {item.aname + ":" + "(" + item.status + ")" + item.remarks}
  511. </li>
  512. );
  513. })}
  514. </ul>
  515. <ProAndCuiList id={this.props.id} />
  516. <div className="clearfix">
  517. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  518. 收款情况
  519. </h3>
  520. <div style={{ marginLeft: "90px" }}>
  521. <ul>
  522. {(this.props.proceedsData.bill || []).map((item, index) => (
  523. <li key={index}>
  524. {item.payTime +
  525. " " +
  526. item.aName +
  527. " 收款:" +
  528. item.transactionAmount +
  529. "万元"}
  530. </li>
  531. ))}
  532. </ul>
  533. <div>收款总计:{this.props.proceedsTotal}万元</div>
  534. </div>
  535. <br />
  536. <div style={{ marginLeft: "90px" }}>
  537. <ul>
  538. {(this.props.proceedsData.invoice || []).map((item, index) => (
  539. <li key={index}>
  540. {item.createTime + " " + " 开票:" + item.amount + "万元"}
  541. </li>
  542. ))}
  543. </ul>
  544. <div>开票总计:{this.props.invoiceTotal}万元</div>
  545. </div>
  546. <p style={{ marginLeft: "90px", color: "red" }}>
  547. 系统预估 产生成本(万元):
  548. {this.props.data.estimateCost
  549. ? this.props.data.estimateCost
  550. : "0"}{" "}
  551. &nbsp;应退金额(万元):
  552. {this.props.data.estimateRefundable
  553. ? this.props.data.estimateRefundable
  554. : "0"}
  555. </p>
  556. </div>
  557. {/* 当前财务状态 */}
  558. <div
  559. style={{
  560. display: this.props.data.processState > 5 ? "block" : "none",
  561. marginTop: '10px'
  562. }}
  563. >
  564. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  565. 当前财务状态(财务填写)
  566. </h3>
  567. {financeData.map((item, index) => {
  568. return <Itemlist key={index} pageData={item} />;
  569. })}
  570. </div>
  571. {/* {this.props.data.type === 0 ? (
  572. <div>
  573. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  574. 当前项目进度(咨询师经理填写)
  575. </h3>
  576. {planData.map((item, index) => {
  577. return <Itemlist key={index} pageData={item} />;
  578. })}
  579. </div>
  580. ) : (
  581. ""
  582. )} */}
  583. {/* 回收退票 */}
  584. <div
  585. style={{
  586. display:
  587. (this.props.data.processState == 8 ||
  588. this.props.data.processState == 7) &&
  589. (this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3 || this.props.data.status == 6)
  590. ? "block"
  591. : "none",
  592. }}
  593. >
  594. <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
  595. 回收退票
  596. </h3>
  597. <Table
  598. size="middle"
  599. pagination={false}
  600. bordered
  601. columns={this.state.ContactsLists}
  602. dataSource={this.state.contactList}
  603. />
  604. </div>
  605. {/* 完成审核,上传附件 */}
  606. <div style={{
  607. position: "relative",
  608. display:
  609. (this.props.data.processState == 7 ||
  610. this.props.data.processState == 8) &&
  611. this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3 || this.props.data.status == 6
  612. ? "block"
  613. : "none",
  614. marginTop: 10,
  615. }}
  616. >
  617. <hr
  618. style={{
  619. marginTop: 12,
  620. marginBottom: 10,
  621. backgroundColor: "black",
  622. height: 1,
  623. border: "none",
  624. }}
  625. />
  626. <h3
  627. style={{
  628. marginLeft: 20,
  629. fontWeight: 800,
  630. marginBottom: 10,
  631. display: "inline-block",
  632. }}
  633. >
  634. 完成审核,上传附件{" "}
  635. <span
  636. style={{ fontSize: 12, fontWeight: "normal", color: "red" }}
  637. >
  638. (注:由营销员上传变更后附件,全变更流程完成。)
  639. </span>
  640. </h3>
  641. <div>
  642. <Form.Item
  643. label="变更附件"
  644. labelCol={{ span: 4 }}
  645. wrapperCol={{ span: 18 }}
  646. >
  647. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  648. {attachment.length > 0 ? <ImgList domId={this.props.domId + 2 ? this.props.domId + 2 : 'changeDetailJsjl2'} fileList={attachment} ItemWidth={'96px'} /> : '无附件'}
  649. </div>
  650. <Modal
  651. maskClosable={false}
  652. footer={null}
  653. width={"50%"}
  654. visible={this.state.previewVisible}
  655. onCancel={() => {
  656. this.setState({ previewVisible: false, rotateDeg: 0 }, () => {
  657. // this.reset();
  658. });
  659. }}
  660. >
  661. <img
  662. alt=""
  663. style={{
  664. width: "100%",
  665. transform: `rotate(${this.state.rotateDeg}deg)`,
  666. }}
  667. src={this.state.previewImage || ""}
  668. />
  669. <Button
  670. onClick={this.rotate}
  671. style={{
  672. position: "relative",
  673. left: "50%",
  674. transform: "translateX(-50%)",
  675. }}
  676. >
  677. 旋转
  678. </Button>
  679. <Button
  680. onClick={this.upImg}
  681. style={{
  682. position: "absolute",
  683. left: -81,
  684. top: "50%",
  685. transform: "translateY(-50%)",
  686. }}
  687. >
  688. 上一张
  689. </Button>
  690. <Button
  691. onClick={this.downImg}
  692. style={{
  693. position: "absolute",
  694. right: -81,
  695. top: "50%",
  696. transform: "translateY(-50%)",
  697. }}
  698. >
  699. 下一张
  700. </Button>
  701. </Modal>
  702. {/* <Rizhi changeId={this.props.id} /> */}
  703. </Form.Item>
  704. </div>
  705. </div>
  706. {/*
  707. (
  708. <div>
  709. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  710. 当前项目进度(咨询师经理填写)
  711. </h3>
  712. {planData.map((item, index) => {
  713. return <Itemlist key={index} pageData={item} />;
  714. })}
  715. </div>
  716. )
  717. */}
  718. {/* {this.props.data.processState >= 4 ? (
  719. ""
  720. ) : (
  721. <div style={{ marginBottom: 10 }}>
  722. <div className="clearfix">
  723. <h3
  724. style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}
  725. >
  726. 当前项目进度(咨询师经理填写)
  727. </h3>
  728. <Form.Item
  729. className="half-item"
  730. label="项目进度"
  731. labelCol={{ span: 8 }}
  732. wrapperCol={{ span: 14 }}
  733. >
  734. <Input
  735. style={{ width: 160 }}
  736. value={this.state.projectState}
  737. placeholder="请输入项目进度"
  738. onChange={e => {
  739. this.setState({
  740. projectState: e.target.value
  741. });
  742. }}
  743. />
  744. </Form.Item>
  745. <Form.Item
  746. className="half-item"
  747. label="发生成本费用(万元)"
  748. labelCol={{ span: 8 }}
  749. wrapperCol={{ span: 14 }}
  750. >
  751. <Input
  752. style={{ width: 160 }}
  753. value={this.state.zxsCost}
  754. placeholder="请输入发生成本费用"
  755. onChange={e => {
  756. this.setState({
  757. zxsCost: e.target.value
  758. });
  759. }}
  760. />
  761. </Form.Item>
  762. </div>
  763. </div>
  764. )} */}
  765. {/* {this.props.data.processState >= 5 ? (
  766. <div>
  767. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  768. 当前财务状态(财务填写)
  769. </h3>
  770. {financeData.map((item, index) => {
  771. return <Itemlist key={index} pageData={item} />;
  772. })}
  773. </div>
  774. ) : (
  775. ""
  776. )} */}
  777. <div
  778. style={{
  779. display:
  780. (this.props.data.processState == 7 ||
  781. this.props.data.processState == 8) &&
  782. this.props.data.status == 4 &&
  783. this.props.data.refundStatus
  784. ? "block"
  785. : "none",
  786. }}
  787. >
  788. <Refund data={this.props.data} id={this.props.id} />
  789. </div>
  790. </div>
  791. {this.props.processState == this.props.data.processState ? (
  792. 1 ? (
  793. <div
  794. style={{
  795. display: this.props.data.isExamine == 0 ? "block" : "none",
  796. }}
  797. >
  798. <div style={{ marginBottom: "10px" }}>
  799. <Form.Item
  800. label="备注"
  801. labelCol={{ span: 4 }}
  802. wrapperCol={{ span: 14 }}
  803. >
  804. <Input.TextArea
  805. value={this.state.reason}
  806. rows={4}
  807. placeholder="请输入备注"
  808. onChange={(e) => {
  809. let reason = e.target.value;
  810. this.setState({ reason });
  811. }}
  812. />
  813. </Form.Item>
  814. </div>
  815. <div
  816. className="clearfix"
  817. style={{ display: "flex", justifyContent: "space-around" }}
  818. >
  819. {buttonData.map((item, index) => {
  820. return (
  821. <AgreeButton
  822. data={item}
  823. key={index}
  824. backData={this.props.data}
  825. processState={this.props.processState}
  826. visible={this.changeButtonStatus}
  827. loadData={this.props.loadData}
  828. reason={this.state.reason}
  829. ajaxData={this.state}
  830. rejectState={this.state.rejectState}
  831. onCancel={this.props.onCancel}
  832. />
  833. );
  834. })}
  835. </div>
  836. <Select
  837. defaultValue="0"
  838. style={{
  839. width: 120,
  840. float: "left",
  841. position: "relative",
  842. bottom: "28px",
  843. right: "-600px",
  844. }}
  845. onChange={(val) => {
  846. this.setState({ rejectState: val });
  847. }}
  848. >
  849. <Option
  850. value="0"
  851. style={{
  852. display: this.props.processState >= 1 ? "block" : "none",
  853. }}
  854. >
  855. 营销员
  856. </Option>
  857. <Option
  858. value="1"
  859. style={{
  860. display: this.props.processState >= 2 ? "block" : "none",
  861. }}
  862. >
  863. 营销管理员
  864. </Option>
  865. <Option
  866. value="2"
  867. style={{
  868. display: this.props.processState >= 3 ? "block" : "none",
  869. }}
  870. >
  871. 咨询师
  872. </Option>
  873. <Option
  874. value="3"
  875. style={{
  876. display: this.props.processState >= 4 ? "block" : "none",
  877. }}
  878. >
  879. 咨询师经理
  880. </Option>
  881. <Option
  882. value="4"
  883. style={{
  884. display: this.props.processState >= 5 ? "block" : "none",
  885. }}
  886. >
  887. 咨询师总监
  888. </Option>
  889. <Option
  890. value="5"
  891. style={{
  892. display: this.props.processState >= 6 ? "block" : "none",
  893. }}
  894. >
  895. 财务专员(退单)
  896. </Option>
  897. <Option
  898. value="6"
  899. style={{
  900. display: this.props.processState >= 7 ? "block" : "none",
  901. }}
  902. >
  903. 财务总监
  904. </Option>
  905. <Option
  906. value="7"
  907. style={{
  908. display: this.props.processState >= 8 ? "block" : "none",
  909. }}
  910. >
  911. 总裁
  912. </Option>
  913. </Select>
  914. </div>
  915. ) : (
  916. ""
  917. )
  918. ) : (
  919. ""
  920. )}
  921. {/* <ReactToPrint
  922. trigger={() => (
  923. <div className="clearfix">
  924. <Button type="primary" style={{ float: "right", marginTop: 10 }}>
  925. 打印
  926. </Button>
  927. </div>
  928. )}
  929. content={() => this.refs}
  930. /> */}
  931. </div>
  932. );
  933. }
  934. }
  935. export { ChangeDetail };