changeDetailJsjl.js 29 KB

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