123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984 |
- import React, { Component } from "react";
- import { Form, Tooltip, Modal, Button, message, Table, Input, Popconfirm } from "antd";
- import AgreeButton from "./agreeButton.js";
- import Rizhi from "./rizhi.js";
- import { getProcessStatusNew, changeColor } from "@/tools.js";
- import { shenghePeo } from "@/tools.js";
- import { typeList } from '@/dataDic.js'
- import $ from "jquery/src/ajax";
- import tongguo from "../../../../../../image/tongguo.png";
- import quxiao from "../../../../../../image/quxiao.png";
- import ProAndCuiList from "./proAndCuiList.jsx";
- import Refund from "./refund.js"
- import PicturesWall from "./picturesWall";
- import ReactToPrint from "react-to-print";
- import ImgList from "../../../../common/imgList";
- import EnterpriseNameChange from "../../../../common/enterpriseNameChange";
- import FlowChart from '../../../../common/flowchart'; // 流程图
- const formItemLayout = {
- labelCol: { span: 8 },
- wrapperCol: { span: 14 }
- };
- const getChangeType = function (e) {
- if (e || e == 0) {
- let str = e.toString();
- let theType = "";
- typeList.map(function (item) {
- if (item.value == str) {
- theType = item.key;
- }
- });
- return theType;
- }
- };
- class Itemlist extends Component {
- constructor(props) {
- super(props);
- }
- render() {
- let pageData = this.props.pageData;
- return (
- <div className="clearfix" style={{ height: "30px", overflow: "hidden" }}>
- {pageData.labelA === '变更原因' ?
- <Form.Item
- label={pageData.labelA}
- {...pageData.formItemLayoutA}
- className="half-item"
- >
- <Tooltip placement="topLeft" title={pageData.dataA}>
- <div style={{
- width: '350px !important',
- whiteSpace: 'nowrap',
- wordBreak: 'break-all',
- overflow: 'hidden',
- textOverflow: 'ellipsis',
- }}>{pageData.dataA}</div>
- </Tooltip>
- </Form.Item> : <Form.Item
- label={pageData.labelA}
- {...pageData.formItemLayoutA}
- className="half-item"
- >
- <div>
- {pageData.dataA}
- {pageData.labelA === '客户名称' ?
- <EnterpriseNameChange
- type='journal'
- style={{ marginLeft: 10 }}
- enterpriseId={this.props.orderUid} /> : null
- }
- {pageData.labelA === '当前进度' &&
- <FlowChart
- id={this.props.id}
- />
- }
- </div>
- </Form.Item>}
- <Form.Item
- label={pageData.labelB}
- {...pageData.formItemLayoutB}
- className="half-item"
- >
- <span>{pageData.dataB}</span>
- </Form.Item>
- </div>
- );
- }
- }
- class ChangeDetail extends Component {
- constructor(props) {
- super(props);
- this.state = {
- rotateDeg: 0,
- voucherUrl: [],
- previewVisible: false,
- dataSource: [],
- // 累计回收退票
- refundInvoice: 0,
- // 退票数组
- contactList: [],
- rejectState: 0,
- // 收款信息
- proceedsData: [],
- proceedsTotal: this.props.proceedsTotal,
- // 开票信息
- invoiceData: [],
- invoiceTotal: this.props.invoiceTotal,
- cost: 10,
- refund: 8,
- // 测试添加退票
- contactList: this.props.contactList,
- ContactsLists: [
- {
- title: "金额(万元)",
- dataIndex: "amount",
- key: "amount",
- render: (text, record) => {
- return (
- <div>
- 实际回收退票(万元)
- <Input
- value={record.amount}
- placeholder="请输入金额(必填项)"
- disabled={record.load}
- key={record.id}
- required="required"
- onChange={e => {
- record.amount = e.target.value;
- this.setState({ contactList: this.state.contactList });
- }}
- style={{ width: "120px" }}
- />
- </div>
- );
- }
- },
- {
- title: "时间",
- dataIndex: "createTimes",
- key: "createTimes",
- render: (text, record) => {
- return <div>{record.createTimes}</div>;
- }
- }
- ]
- };
- this.getOrgCodeUrl = this.getOrgCodeUrl.bind(this);
- this.downImg = this.downImg.bind(this);
- this.upImg = this.upImg.bind(this);
- this.rotate = this.rotate.bind(this);
- this.moneyOld = this.moneyOld.bind(this);
- this.getVoucherUrl = this.getVoucherUrl.bind(this);
- this.OrderChange = this.OrderChange.bind(this)
- }
- getOrgCodeUrl(e) {
- this.setState({
- orgCodeUrl: e
- });
- }
- componentDidMount() { }
- // loadData() {
- // $.ajax({
- // method: "get",
- // dataType: "json",
- // async: false,
- // crossDomain: false,
- // url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
- // data: {
- // changeId: this.props.data.id
- // },
- // success: function(data) {
- // if (data.error.length || data.data.list == "") {
- // if (data.error && data.error.length) {
- // message.warning(data.error[0].message);
- // }
- // } else {
- // this.setState({
- // dataSource: data.data
- // });
- // }
- // }.bind(this)
- // });
- // }
- componentWillReceiveProps(nextProps) {
- this.setState({
- paymentTimes: nextProps.data.paymentTimes,
- paymentAmount: nextProps.data.paymentAmount,
- invoiceTimes: nextProps.data.invoiceTimes,
- invoiceAmount: nextProps.data.invoiceAmount,
- cwCost: nextProps.data.cwCost,
- refundableAmount: nextProps.data.refundableAmount,
- cwRemarks: nextProps.data.cwRemarks,
- contactList: nextProps.contactList,
- refundInvoice: nextProps.data.refundInvoice
- });
- }
- getVoucherUrl(e) {
- this.setState({
- voucherUrl: e
- });
- let url = ""
- e.forEach((item, index) => {
- if (item.response && item.response.data) {
- if (index < e.length - 1) {
- url += item.response.data + ","
- } else {
- url += item.response.data
- }
- }
- })
- this.setState({
- refundUrl: url
- })
- // console.log(this.state.refundUrl);
- }
- downImg() {
- let num = 0;
- for (let i = 0; i < this.props.pictureUrl.length; i++) {
- if (this.props.pictureUrl[i].url == this.state.previewImage) {
- num = i;
- }
- }
- if (num == this.props.pictureUrl.length - 1) {
- return message.warning("已经是最后一张了哦");
- }
- this.state.previewImage = this.props.pictureUrl[num + 1].url;
- this.setState({
- previewImage: this.state.previewImage,
- rotateDeg: 0
- });
- }
- upImg() {
- let num = 0;
- for (let i = 0; i < this.props.pictureUrl.length; i++) {
- if (this.props.pictureUrl[i].url == this.state.previewImage) {
- num = i;
- }
- }
- if (num == 0) {
- return message.warning("已经是第一张了哦");
- }
- this.state.previewImage = this.props.pictureUrl[num - 1].url;
- this.setState({
- previewImage: this.state.previewImage,
- rotateDeg: 0
- });
- }
- rotate() {
- let rotateDeg = this.state.rotateDeg + 90;
- this.setState({
- rotateDeg
- });
- }
- moneyOld(str, money) {
- if (money) {
- return (
- <span style={{ color: "red", fontWeight: 900, fontSize: 16 }}>
- {str}(原合同金额{money}万元)
- </span>
- );
- } else {
- return (
- <span style={{ color: "red", fontWeight: 900, fontSize: 16 }}>
- {str}
- </span>
- );
- }
- }
- OrderChange() {
- if (!this.state.refundUrl) {
- message.info("请上传凭证")
- return
- }
- this.setState({
- loading: true
- })
- $.ajax({
- url: globalConfig.context + "/api/admin/orderChange/completeOrderChange",
- method: "get",
- data: {
- orderNo: this.props.data.orderNo,
- type: this.props.data.type,
- id: this.props.id,
- attachmentUrl: this.state.refundUrl,
- },
- success: data => {
- if (data.data) {
- message.success("提交成功!");
- // window.location.reload();
- this.setState({
- loading: false
- })
- this.props.visitCancel()
- } else if (data.error && data.error.length) {
- message.warning(data.error[0].message)
- this.setState({
- loading: false
- });
- }
- }
- });
- }
- render() {
- // const loadData = [
- // {
- // labelA: "",
- // formItemLayoutA: formItemLayout,
- // dataA
- // }
- // ];
- const pageData = [
- {
- labelA: "客户名称",
- formItemLayoutA: formItemLayout,
- dataA: this.props.data.userName,
- labelB: "合同编号",
- formItemLayoutB: formItemLayout,
- dataB: this.props.data.contractNo
- },
- {
- labelA: "时间",
- formItemLayoutA: formItemLayout,
- dataA: this.props.data.createTimes,
- labelB: "发起人",
- formItemLayoutB: formItemLayout,
- dataB: this.props.data.applicant
- },
- {
- labelA: "当前进度",
- formItemLayoutA: formItemLayout,
- // 当前是咨询师以及咨询师经理时使用shenhePeo函数,其他流程正常显示
- dataA:
- this.props.data.processState == 3 || this.props.data.processState == 4
- ? shenghePeo(this.props.data.examineName, this.props.data.processState)
- : getProcessStatusNew(
- this.props.data.examineName,
- this.props.data.processState,
- this.props.data.status
- ),
- labelB: "变更类型",
- formItemLayoutB: formItemLayout,
- dataB: getChangeType(this.props.data.type)
- },
- {
- labelA: this.props.data.type == 0 ? "企业总经理姓名" : "",
- formItemLayoutA: formItemLayout,
- dataA: this.props.data.managerContacts,
- labelB: "企业总经理联系电话",
- formItemLayoutB: formItemLayout,
- dataB: this.props.data.managerContactMobile,
- },
- {
- labelA: this.props.data.type == 0 ? "企业联系人姓名" : "",
- formItemLayoutA: formItemLayout,
- dataA: this.props.data.contacts,
- labelB: "企业联系人联系方式",
- formItemLayoutB: formItemLayout,
- dataB: this.props.data.contactMobile,
- },
- {
- labelA: "合同额(万元)",
- formItemLayoutA: formItemLayout,
- dataA: this.moneyOld(this.props.data.totalAmount, this.props.money),
- labelB: "已收款(万元)",
- formItemLayoutB: formItemLayout,
- dataB: changeColor(this.props.data.settlementAmount)
- },
- {
- labelA: "欠款(万元)",
- formItemLayoutA: formItemLayout,
- dataA: changeColor(this.props.data.arrears),
- labelB: "申请退款(万元)",
- formItemLayoutB: formItemLayout,
- dataB: changeColor(this.props.data.changeAmount)
- },
- {
- labelA: "首付款(万元)",
- formItemLayoutA: formItemLayout,
- dataA: changeColor(this.props.data.firstAmount),
- },
- {
- labelA: "变更原因",
- formItemLayoutA: formItemLayout,
- dataA: this.props.data.remarks
- }
- ];
- const planData = [
- {
- labelA: "项目进度",
- formItemLayoutA: formItemLayout,
- dataA: this.props.data.projectState,
- labelB: "发生成本费用(万元)",
- formItemLayoutB: formItemLayout,
- dataB: this.props.data.zxsCost
- },
- {
- labelA: "备注",
- formItemLayoutA: formItemLayout,
- dataA: this.props.data.zxsRemarks
- }
- ];
- const financeData = [
- {
- labelA: "发生直接成本(万元)",
- formItemLayoutA: formItemLayout,
- dataA: this.props.data.cwCost,
- labelB: "发生间接成本(万元)",
- formItemLayoutB: formItemLayout,
- dataB: this.props.data.cwIndirectCost
- },
- {
- labelA: "应退金额(万元)",
- formItemLayoutA: formItemLayout,
- dataA: this.props.data.refundableAmount
- }
- ];
- const buttonData = [
- {
- name: "同意",
- title: "理由",
- placeholder: "请输入理由",
- type: "primary",
- status: 2,
- onChange: value => {
- this.setState({
- remarks: value
- });
- }
- },
- {
- name: "拒绝",
- title: "理由",
- placeholder: "请输入理由",
- type: "danger",
- status: 3,
- onChange: value => {
- this.setState({
- remarks: value
- });
- }
- }
- ];
- const orgCodeUrl = this.props.pictureUrl;
- const attachment = this.props.attachment
- return (
- <div className="clearfix changeDetail">
- <div
- className="clearfix"
- style={{ marginTop: 0 }}
- ref={(e) => {
- this.refs = e;
- }}
- >
- <div
- style={{
- borderRadius: "50%",
- width: 300,
- height: 300,
- position: "absolute",
- top: 230,
- left: 525,
- transform: "rotate(-5deg)",
- zIndex: 1,
- display:
- this.props.data.status == 4
- ? "block"
- : "none",
- }}
- >
- <img src={tongguo} style={{ width: "100%" }} />
- </div>
- <div
- style={{
- borderRadius: "50%",
- width: 300,
- height: 300,
- position: "absolute",
- top: 284,
- left: 586,
- transform: "rotate(-5deg)",
- zIndex: 1,
- display: this.props.data.status == 5 ? "block" : "none",
- }}
- >
- {/* <span
- style={{
- fontSize: 29,
- position: "absolute",
- left: "50%",
- top: "50%",
- transform: "translate(-50%,-50%)",
- color: "red"
- }}
- >
- 通过
- </span> */}
- <img src={quxiao} style={{ width: "63%" }} />
- </div>
- <h2 style={{ textAlign: "center", marginBottom: 10, marginTop: 20 }}>
- 合同变更记录
- </h2>
- {pageData.map((item, index) => {
- return !!item.labelA && <Itemlist key={index} pageData={item} orderUid={this.props.orderUid} id={this.props.id} />;
- })}
- <Form.Item
- label="变更凭证"
- labelCol={{ span: 4 }}
- wrapperCol={{ span: 18 }}
- >
- {orgCodeUrl ? <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
- <ImgList domId={this.props.domId ? this.props.domId + '1' : 'changeDetailYxy1'} fileList={orgCodeUrl} ItemWidth={'96px'} />
- </div> : <div />}
- <div style={{ marginLeft: '-60px' }}>
- <Rizhi changeId={this.props.id} />
- </div>
- </Form.Item>
- {/* {this.props.data.type === 0 && this.props.data.processState >= 2 ? (
- <div>
- <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
- 当前项目进度(咨询师经理填写)
- </h3>
- {planData.map((item, index) => {
- return <Itemlist key={index} pageData={item} />;
- })}
- </div>
- ) : (
- ""
- )} */}
- {/* <h2 style={{ textAlign: "center", marginBottom: 0 }}>变更日志</h2> */}
- {
- this.props.contractPictureUrl && this.props.contractPictureUrl.length != 0 &&
- <div className="clearfix">
- <Form.Item
- labelCol={{ span: 4 }}
- wrapperCol={{ span: 18 }}
- label="最新合同"
- >
- <div style={{ paddingTop: 10 }}>
- <ImgList
- domId={"zxht"}
- fileList={
- this.props.contractPictureUrl
- }
- ItemWidth={"96px"}
- />
- </div>
- </Form.Item>
- </div>
- }
- <ul
- style={{
- width: "868px",
- overflow: "hidden",
- paddingLeft: "90px",
- position: "relative",
- bottom: "20px",
- paddingTop: '28px'
- }}
- >
- {/* <span>操作人:</span> */}
- {this.props.dataSource.map((item, index) => {
- if (item.status == 0) {
- item.status = "发起";
- } else if (item.status == 1) {
- item.status = "审核中";
- } else if (item.status == 2) {
- item.status = "通过";
- } else if (item.status == 3) {
- item.status = "驳回";
- } else if (item.status == 4) {
- item.status = "完成";
- } else if (item.status == 5) {
- item.status = "撤销";
- }
- return (
- <li
- key={index}
- style={{
- width: "100%",
- height: "auto",
- wordBreak: "break-all",
- marginBottom: "10px",
- }}
- >
- {item.aname + ":" + "【" + item.status + "】" + item.remarks + "(" + item.createTimes + ")"}
- </li>
- );
- })}
- </ul>
- <ProAndCuiList id={this.props.id} />
- {/* 收款情况1 */}
- <div className="clearfix">
- <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
- 收款情况
- </h3>
- <div style={{ marginLeft: "90px" }}>
- <ul>
- {(this.props.proceedsData.bill || []).map((item, index) => (
- <li key={index}>
- {item.payTime +
- " " +
- item.aName +
- " 收款:" +
- item.transactionAmount +
- "万元"}
- </li>
- ))}
- </ul>
- <div>收款总计:{this.props.proceedsTotal}万元</div>
- </div>
- <br />
- <div style={{ marginLeft: "90px" }}>
- <ul>
- {(this.props.proceedsData.invoice || []).map((item, index) => (
- <li key={index}>
- {item.createTime + " " + " 开票:" + item.amount + "万元"}
- </li>
- ))}
- </ul>
- <div>开票总计:{this.props.invoiceTotal}万元</div>
- </div>
- <p style={{ marginLeft: "90px", color: "red" }}>
- 系统预估 产生成本(万元):
- {this.props.data.estimateCost
- ? this.props.data.estimateCost
- : "0"}{" "}
- 应退金额(万元):
- {this.props.data.estimateRefundable
- ? this.props.data.estimateRefundable
- : "0"}
- </p>
- </div>
- {/* {this.props.data.type === 0 ? (
- <div>
- <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
- 当前项目进度(咨询师经理填写)
- </h3>
- {planData.map((item, index) => {
- return <Itemlist key={index} pageData={item} />;
- })}
- </div>
- ) : (
- ""
- )} */}
- {/* 当前财务状态 */}
- <div
- style={{
- display: this.props.data.processState > 6 ? "block" : "none",
- marginTop: '10px'
- }}
- >
- <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
- 当前财务状态(财务填写)
- </h3>
- {financeData.map((item, index) => {
- return <Itemlist key={index} pageData={item} orderUid={this.props.orderUid} />;
- })}
- </div>
- {/* 回收退票3 */}
- <div
- style={{
- display:
- (this.props.data.processState == 9 ||
- this.props.data.processState == 8 ||
- this.props.data.processState == 10) &&
- (this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3 || this.props.data.status == 6)
- ? "block"
- : "none",
- marginTop: '10px'
- }}
- >
- <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
- 回收退票
- </h3>
- <Table
- size="middle"
- pagination={false}
- bordered
- columns={this.state.ContactsLists}
- dataSource={this.state.contactList}
- />
- </div>
- {/* 完成审核,上传附件 */}
- <div style={{
- position: "relative",
- display:
- (this.props.data.processState == 8 ||
- this.props.data.processState == 9 ||
- this.props.data.processState == 10) &&
- this.props.data.status == 2 || this.props.data.status == 4 || this.props.data.status == 3
- ? "block"
- : "none",
- marginTop: 10,
- }}
- >
- <hr
- style={{
- marginTop: 12,
- marginBottom: 10,
- backgroundColor: "black",
- height: 1,
- border: "none",
- }}
- />
- <h3
- style={{
- marginLeft: 20,
- fontWeight: 800,
- marginBottom: 10,
- display: "inline-block",
- }}
- >
- 完成审核,上传附件{" "}
- <span
- style={{ fontSize: 12, fontWeight: "normal", color: "red" }}
- >
- (注:由营销员上传变更后附件,全变更流程完成。)
- </span>
- </h3>
- <div>
- <Form.Item
- label="变更附件"
- labelCol={{ span: 4 }}
- wrapperCol={{ span: 18 }}
- >
- <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
- {attachment.length > 0 ? <ImgList domId={this.props.domId + 2 ? this.props.domId + 2 : 'hetongbiangenjiluyxy1'} fileList={attachment} ItemWidth={'96px'} /> : '无附件'}
- </div>
- <Modal
- maskClosable={false}
- footer={null}
- width={"50%"}
- visible={this.state.uploadVisible}
- onCancel={() => {
- this.setState({ uploadVisible: false, rotateDeg: 0 }, () => {
- // this.reset();
- });
- }}
- >
- <img
- alt=""
- style={{
- width: "100%",
- transform: `rotate(${this.state.rotateDeg}deg)`,
- }}
- src={this.state.previewImage || ""}
- />
- <Button
- onClick={this.rotate}
- style={{
- position: "relative",
- left: "50%",
- transform: "translateX(-50%)",
- }}
- >
- 旋转
- </Button>
- <Button
- onClick={this.upImg}
- style={{
- position: "absolute",
- left: -81,
- top: "50%",
- transform: "translateY(-50%)",
- }}
- >
- 上一张
- </Button>
- <Button
- onClick={this.downImg}
- style={{
- position: "absolute",
- right: -81,
- top: "50%",
- transform: "translateY(-50%)",
- }}
- >
- 下一张
- </Button>
- </Modal>
- {/* <Rizhi changeId={this.props.id} /> */}
- </Form.Item>
- </div>
- </div>
- {/* <div>
- 营销员变更
- </div> */}
- {/* 完成审核,上传附件 */}
- <div style={{
- position: "relative",
- display:
- (this.props.data.processState == 8 ||
- this.props.data.processState == 9 ||
- this.props.data.processState == 10) &&
- this.props.data.status == 6
- ? "block"
- : "none",
- marginTop: 10,
- }}
- >
- <hr
- style={{
- marginTop: 12,
- marginBottom: 10,
- backgroundColor: "black",
- height: 1,
- border: "none",
- }}
- />
- <h3
- style={{
- marginLeft: 20,
- fontWeight: 800,
- marginBottom: 10,
- display: "inline-block",
- }}
- >
- 完成审核,上传附件{" "}
- <span
- style={{ fontSize: 12, fontWeight: "normal", color: "red" }}
- >
- (注:由营销员上传变更后附件,全变更流程完成。)
- </span>
- </h3>
- <div>
- <h3 style={{ marginLeft: 20, fontWeight: 800, marginBottom: 10 }}>
- 变更附件:
- </h3>
- <div style={{ marginLeft: 20, display: 'inline-block' }}>
- <PicturesWall
- fileList={this.getVoucherUrl}
- pictureUrl={this.state.voucherUrl}
- url="/api/admin/orderChange/uploadChangeAttachment"
- sign="order_change_file"
- />
- </div>
- </div>
- </div>
- <div style={{ display: ' flex', justifyContent: 'center' }}>
- <Popconfirm
- title="确定提交附件,完成订单?"
- onConfirm={this.OrderChange}
- okText="确定"
- cancelText="取消">
- <Button
- type="primary"
- shape="round"
- size="large"
- style={{
- display:
- (this.props.data.processState == 8 ||
- this.props.data.processState == 9 ||
- this.props.data.processState == 10) &&
- this.props.data.status == 6
- ? "block"
- : "none",
- }}
- // onClick={this.OrderChange}
- >
- 提交附件,完成订单
- </Button>
- </Popconfirm>
- </div>
- {/* <ul>
- <span>备注</span>
- {this.state.dataSource.map((item, index) => (
- <li key={index}>{item.remarks}</li>
- ))}
- </ul> */}
- {/* {this.props.data.type === 0 ? (
- this.props.data.processState >= 5 ? (
- <div style={{ marginTop: "20px" }}>
- <h3
- style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}
- >
- 当前财务状态(财务填写)
- </h3>
- {financeData.map((item, index) => {
- return <Itemlist key={index} pageData={item} />;
- })}
- </div>
- ) : (
- ""
- )
- ) : this.props.data.status === 4 ? (
- <div>
- <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
- 当前财务状态(财务填写)
- </h3>
- {financeData.map((item, index) => {
- return <Itemlist key={index} pageData={item} />;
- })}
- </div>
- ) : (
- ""
- )} */}
- <div
- style={{
- display:
- (this.props.data.processState == 8 ||
- this.props.data.processState == 9 ||
- this.props.data.processState == 10) &&
- this.props.data.status == 4 &&
- this.props.data.refundStatus
- ? "block"
- : "none",
- }}
- >
- <Refund data={this.props.data} id={this.props.id} />
- </div>
- </div>
- {this.props.processState === this.props.data.processState &&
- this.props.data.status != 5 ? (
- <div
- className="clearfix"
- style={{ display: "flex", justifyContent: "space-around" }}
- >
- {buttonData.map((item, index) => {
- return (
- <AgreeButton
- data={item}
- key={index}
- backData={this.props.data}
- processState={this.props.processState}
- onCancel={this.props.onCancel}
- />
- );
- })}
- </div>
- ) : (
- ""
- )}
- <ReactToPrint
- trigger={() => (
- <Button
- type="primary"
- style={{
- float: "right",
- marginTop: 10,
- position: "absolute",
- top: 0,
- right: 30,
- display:
- (this.props.data.processState == 8 ||
- this.props.data.processState == 9 ||
- this.props.data.processState == 10) &&
- this.props.data.status == 4
- ? "block"
- : "block",
- }}
- >
- 打印
- </Button>
- )}
- content={() => this.refs}
- />
- </div>
- );
- }
- }
- export { ChangeDetail };
|