changeDetailCwzj.js 32 KB

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