import React, { Component } from "react";
import { Form, Upload, Modal, Button, Table, Col, message, Tag } from "antd";
import {
splitUrl,
getProcessStatus,
getjiedian,
getLiquidationStatus,
getboutique,
getCuikuan,
getApprovedState,
getProjectStatus
} from "@/tools.js";
import img from "./img.png"
import ResolutionDetail from "@/resolutionDetail";
const FormItem = Form.Item;
class OrderDetail extends Component {
constructor(props) {
super(props);
this.state = {
newContactsLists: [
{
title: "项目名称",
dataIndex: "commodityName",
key: "commodityName",
render: text => {
return {text};
}
},
{
title: "项目分类",
dataIndex: "projectType",
key: "projectType",
render: text => {
let arr = this.props.dataSourceX || [];
let str = "";
for (let i = 0; i < arr.length; i++) {
if (this.props.dataSourceX[i].sort == text) {
str = this.props.dataSourceX[i].cname;
return {str};
}
}
}
},
{
title: "催款科目",
dataIndex: "dunTypeName",
key: "dunTypeName",
render: text => {
return {text};
}
},
{
title: "时间",
dataIndex: "waitDay",
key: "waitDay",
render: (text, record) => {
if (record.dunTypeName) {
return {text};
}
}
},
{
title: "金额(万元)",
dataIndex: "money",
key: "money",
render: (text, record) => {
if (record.dunTypeName) {
if (record.appropriationRatio && !record.money) {
return {record.appropriationRatio}(拨款比例);
} else if (record.appropriationRatio && record.money) {
return (
{text}(比例:{record.appropriationRatio})
);
} else {
return {text};
}
}
}
},
{
title: "服务年限",
dataIndex: "startDate",
key: "startDate",
render: (text, record) => {
if (record.dunTypeName) {
return {text};
}
}
},
{
title: "催款状态",
dataIndex: "status",
key: "status",
render: text => {
return {text == 1 ? "已启动" : "未启动"};
}
}
],
ContactsLists: [
{
title: "催款科目",
dataIndex: "dunSubject",
key: "dunSubject",
render: text => {
return getjiedian(text);
}
},
{
title: "金额(万元)",
dataIndex: "money",
key: "money"
},
{
title: "催款状态",
dataIndex: "dunStatus",
key: "dunStatus",
render: text => {
return getCuikuan(text);
}
}
],
resVisible: false,
columnsX: [
{
title: "业务项目名称",
dataIndex: "commodityName",
key: "commodityName"
},
{
title: "项目类别",
dataIndex: "cname",
key: "cname"
},
{
title: "项目数量",
dataIndex: "commodityQuantity",
key: "commodityQuantity",
render: (text, record) => {
if (record.splitStatus == 1) {
return (
{text}{" "}
{data.orderRemarks}