import { Tooltip } from 'antd';
import React from 'react';
import { getProjectName, getFormRetrieves, getApprovedType } from '@/tools';
import { Button, Modal } from 'antd';
// 高新会员服务
const member = (onCellClick) => [
{
title: "序号",
dataIndex: "key",
key: "key",
isNoD: true,
},
{
title: "特批类型",
dataIndex: "type",
key: "type",
width: 110,
render: (text, record) => {
return (
{getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
);
},
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime",
width: 80,
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName",
isNoD: true,
},
{
title: "营销员",
dataIndex: "salesmanName",
key: "salesmanName"
},
{
title: "合同编号",
dataIndex: "contractNo",
key: "contractNo"
},
{
title: "订单编号",
dataIndex: "orderNo",
key: "orderNo",
isNoD: true,
},
{
title: "签单客户",
dataIndex: "userName",
key: "userName"
},
{
title: "项目类型",
dataIndex: "cname",
key: "cname"
},
{
title: "项目名称",
dataIndex: "pname",
key: "pname"
},
{
title: "数量",
dataIndex: "commodityQuantity",
key: "commodityQuantity"
},
{
title: "服务类型",
dataIndex: "serviceType",
key: "aserviceType",
width: 150,
},
{
title: "服务项目",
dataIndex: "serviceProject",
key: "serviceProject",
width: 200,
isNoD: true,
},
{
title: "负责部门",
dataIndex: "techDepName",
key: "techDepName",
isNoD: true,
},
{
title: "咨询师/咨询经理",
dataIndex: "techName",
key: "techName"
},
//0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
{
title: "项目状态",
dataIndex: "projectStatus",
key: "projectStatus",
render: (value, record) => {
return (
{getProjectName(value)}
);
}
// render: (value) => (
// getProjectName(value)
// )
},
{
title: "项目金额",
dataIndex: "commodityPrice",
key: "commodityPrice"
},
{
title: "总年限",
dataIndex: "yearsum",
key: "yearsum",
render: (text, record) => {
return (
{["", "一年", "二年", "三年", "四年", "五年"][text]}
);
}
},
{
title: "年限",
dataIndex: "serviceLife",
key: "serviceLife",
render: (text, record) => {
return (
{!!text && JSON.parse(text).toString()}
);
}
},
{
title: "本次派单",
dataIndex: "serviceYear",
key: "serviceYear"
},
{
title: "合同期",
dataIndex: "contractTerm",
key: "contractTerm",
width: 80,
render: (text, record) => {
let data = !!text ? JSON.parse(text) : [""]
return (
data.length <= 1
? data[0]
:
);
}
},
{
title: "项目说明",
dataIndex: "taskComment",
key: "taskComment",
width: 250,
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
isNoD: true,
},
{
title: "订单说明",
dataIndex: "orderRemarks",
key: "orderRemarks",
isNoD: true,
},
{
title: "评分及时间",
dataIndex: "scoreNumber",
key: "scoreNumber",
width: 80,
onCellClick: (record, e) => {
e.stopPropagation();
onCellClick(record)
},
render: (value, record) => {
return (
{value}分
{record.scoreTime}
);
}
},
{
title: "满意度调查表",
dataIndex: "formRetrieve",
key: "formRetrieve",
render: (value, record) => {
return (
{getFormRetrieves(value, record.satisfactionDegree)}
{(value == 0 || value == 1) && }
);
}
},
];
// 高新
const highTechColumns = (onCellClick) => [
{
title: "序号",
dataIndex: "key",
key: "key",
isNoD: true,
},
{
title: "特批类型",
dataIndex: "type",
key: "type",
width: 110,
render: (text, record) => {
return (
{getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
);
},
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime"
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName",
isNoD: true,
},
{
title: "营销员",
dataIndex: "salesmanName",
key: "salesmanName"
},
{
title: "合同编号",
dataIndex: "contractNo",
key: "contractNo"
},
{
title: "订单编号",
dataIndex: "orderNo",
key: "orderNo"
},
{
title: "签单客户",
dataIndex: "userName",
key: "userName"
},
{
title: "项目类型",
dataIndex: "cname",
key: "cname"
},
{
title: "项目名称",
dataIndex: "pname",
key: "pname"
},
{
title: "数量",
dataIndex: "commodityQuantity",
key: "commodityQuantity"
},
{
title: "服务类型",
dataIndex: "serviceType",
key: "aserviceType",
width: 150,
},
{
title: "服务项目",
dataIndex: "serviceProject",
key: "serviceProject",
width: 200,
isNoD: true,
},
{
title: "负责部门",
dataIndex: "techDepName",
key: "techDepName",
isNoD: true,
},
{
title: "咨询师/咨询经理",
dataIndex: "techName",
key: "techName"
},
{
title: "是否立项/时间",
dataIndex: "setUpStatus",
key: "setUpStatus",
render: (value, record) => (
value === 1 ? '是' + '/' + record.setUpTime : value === 0 ? '否' : ''
)
},
{
title: "是否抽查",
dataIndex: "spotCheckStatus",
key: "spotCheckStatus",
render: (value) => (
value === 1 ? '是' : value === 0 ? '否' : ''
)
},
{
title: "联系人电话",
dataIndex: "contactMobile",
key: "contactMobile"
},
{
title: "法人电话",
dataIndex: "legalPersonTel",
key: "legalPersonTel"
},
{
title: "证书编号",
dataIndex: "certificateNumber",
key: "certificateNumber"
},
{
title: "申报年份",
dataIndex: "serviceYear",
key: "serviceYear"
},
{
title: "申报批次",
dataIndex: "declarationBatch",
key: "declarationBatch"
},
{
title: "项目金额",
dataIndex: "commodityPrice",
key: "commodityPrice"
},
//0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
{
title: "项目状态",
dataIndex: "projectStatus",
key: "projectStatus",
render: (value, record) => {
return (
{getProjectName(value)}
);
}
},
{
title: "项目说明",
dataIndex: "taskComment",
key: "taskComment",
width: 250,
// render: (v) => (
//
// {v}
//
// )
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
isNoD: true,
},
{
title: "订单说明",
dataIndex: "orderRemarks",
key: "orderRemarks",
isNoD: true,
},
{
title: "评分及时间",
dataIndex: "scoreNumber",
key: "scoreNumber",
width: 80,
onCellClick: (record, e) => {
e.stopPropagation();
onCellClick(record)
},
render: (value, record) => {
return (
{value}分
{record.scoreTime}
);
}
},
{
title: "满意度调查表",
dataIndex: "formRetrieve",
key: "formRetrieve",
render: (value, record) => {
return (
{getFormRetrieves(value, record.satisfactionDegree)}
{(value == 0 || value == 1) && }
);
}
},
];
// 双软
const doubleSoft = (onCellClick) => [
{
title: "序号",
dataIndex: "key",
key: "key",
isNoD: true,
},
{
title: "特批类型",
dataIndex: "type",
key: "type",
width: 110,
render: (text, record) => {
return (
{getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
);
},
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime"
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName",
isNoD: true,
},
{
title: "营销员",
dataIndex: "salesmanName",
key: "salesmanName"
},
{
title: "合同编号",
dataIndex: "contractNo",
key: "contractNo"
},
{
title: "订单编号",
dataIndex: "orderNo",
key: "orderNo"
},
{
title: "签单客户",
dataIndex: "userName",
key: "userName"
},
{
title: "项目类型",
dataIndex: "cname",
key: "cname"
},
{
title: "项目名称",
dataIndex: "pname",
key: "pname"
},
{
title: "数量",
dataIndex: "commodityQuantity",
key: "commodityQuantity"
},
{
title: "服务类型",
dataIndex: "serviceType",
key: "aserviceType",
width: 150,
},
{
title: "服务项目",
dataIndex: "serviceProject",
key: "serviceProject",
width: 200,
isNoD: true,
},
{
title: "负责部门",
dataIndex: "techDepName",
key: "techDepName",
isNoD: true,
},
{
title: "咨询师/咨询经理",
dataIndex: "techName",
key: "techName"
},
{
title: "下证时间",
dataIndex: "licenceTime",
key: "licenceTime",
render: (value) => (
{value}
)
},
{
title: "项目金额",
dataIndex: "commodityPrice",
key: "commodityPrice"
},
//0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
{
title: "项目状态",
dataIndex: "projectStatus",
key: "projectStatus",
render: (value, record) => {
return (
{getProjectName(value)}
);
}
},
{
title: "项目说明",
dataIndex: "taskComment",
key: "taskComment",
width: 250,
// render: (v) => (
//
// {v}
//
// )
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
isNoD: true,
},
{
title: "订单说明",
dataIndex: "orderRemarks",
key: "orderRemarks",
isNoD: true,
},
{
title: "评分及时间",
dataIndex: "scoreNumber",
key: "scoreNumber",
width: 80,
onCellClick: (record, e) => {
e.stopPropagation();
onCellClick(record)
},
render: (value, record) => {
return (
{value}分
{record.scoreTime}
);
}
},
{
title: "满意度调查表",
dataIndex: "formRetrieve",
key: "formRetrieve",
render: (value, record) => {
return (
{getFormRetrieves(value, record.satisfactionDegree)}
{(value == 0 || value == 1) && }
);
}
},
];
// 软著
const softWriting = (onCellClick) => [
{
title: "序号",
dataIndex: "key",
key: "key",
isNoD: true,
},
{
title: "特批类型",
dataIndex: "type",
key: "type",
width: 110,
render: (text, record) => {
return (
{getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
);
},
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime"
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName",
isNoD: true,
},
{
title: "营销员",
dataIndex: "salesmanName",
key: "salesmanName"
},
{
title: "合同编号",
dataIndex: "contractNo",
key: "contractNo"
},
{
title: "订单编号",
dataIndex: "orderNo",
key: "orderNo"
},
{
title: "签单客户",
dataIndex: "userName",
key: "userName"
},
{
title: "项目类型",
dataIndex: "cname",
key: "cname"
},
{
title: "项目名称",
dataIndex: "pname",
key: "pname"
},
{
title: "数量",
dataIndex: "commodityQuantity",
key: "commodityQuantity"
},
{
title: "服务类型",
dataIndex: "serviceType",
key: "aserviceType",
width: 150,
},
{
title: "服务项目",
dataIndex: "serviceProject",
key: "serviceProject",
width: 200,
isNoD: true,
},
{
title: "负责部门",
dataIndex: "techDepName",
key: "techDepName",
isNoD: true,
},
{
title: "咨询师/咨询经理",
dataIndex: "techName",
key: "techName"
},
{
title: "项目数量/下证数",
dataIndex: "commodityQuantity",
key: "commodityQuantity",
render: (value, record) => (
value + '/' + record.certificatesCount
)
},
{
title: "有无方案",
dataIndex: "ifMaterial",
key: "ifMaterial",
render: (value) => (
value === 1 ? '有' : value === 0 ? '无' : ''
)
},
{
title: "加急天数",
dataIndex: "urgentDay",
key: "urgentDay",
render: (value) => (
value === 1 ? '有' : value === 0 ? '无' : ''
)
},
{
title: "下证时间",
dataIndex: "licenceTime",
key: "licenceTime",
render: (value) => (
{value}
)
},
{
title: "证书编号",
dataIndex: "certificateNumber",
key: "certificateNumber"
},
{
title: "项目金额",
dataIndex: "commodityPrice",
key: "commodityPrice"
},
{
title: "成本金额",
dataIndex: "costAmount",
key: "costAmount"
},
{
title: "利润金额",
dataIndex: "profit",
key: "profit"
},
//0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
{
title: "项目状态",
dataIndex: "projectStatus",
key: "projectStatus",
render: (value, record) => {
return (
{getProjectName(value)}
);
}
},
{
title: "项目说明",
dataIndex: "taskComment",
key: "taskComment",
width: 250,
// render: (v) => (
//
// {v}
//
// )
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
isNoD: true,
},
{
title: "订单说明",
dataIndex: "orderRemarks",
key: "orderRemarks",
isNoD: true,
},
{
title: "评分及时间",
dataIndex: "scoreNumber",
key: "scoreNumber",
width: 80,
onCellClick: (record, e) => {
e.stopPropagation();
onCellClick(record)
},
render: (value, record) => {
return (
{value}分
{record.scoreTime}
);
}
},
{
title: "满意度调查表",
dataIndex: "formRetrieve",
key: "formRetrieve",
render: (value, record) => {
return (
{getFormRetrieves(value, record.satisfactionDegree)}
{(value == 0 || value == 1) && }
);
}
},
];
// 专利
const patent = (onCellClick) => [
{
title: "序号",
dataIndex: "key",
key: "key",
isNoD: true,
},
{
title: "特批类型",
dataIndex: "type",
key: "type",
width: 110,
render: (text, record) => {
return (
{getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
);
},
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime"
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName",
isNoD: true,
},
{
title: "营销员",
dataIndex: "salesmanName",
key: "salesmanName"
},
{
title: "合同编号",
dataIndex: "contractNo",
key: "contractNo"
},
{
title: "订单编号",
dataIndex: "orderNo",
key: "orderNo"
},
{
title: "签单客户",
dataIndex: "userName",
key: "userName"
},
{
title: "项目类型",
dataIndex: "cname",
key: "cname"
},
{
title: "项目名称",
dataIndex: "pname",
key: "pname"
},
{
title: "数量",
dataIndex: "commodityQuantity",
key: "commodityQuantity"
},
{
title: "服务类型",
dataIndex: "serviceType",
key: "aserviceType",
width: 150,
},
{
title: "服务项目",
dataIndex: "serviceProject",
key: "serviceProject",
width: 200,
isNoD: true,
},
{
title: "负责部门",
dataIndex: "techDepName",
key: "techDepName",
isNoD: true,
},
{
title: "咨询师/咨询经理",
dataIndex: "techName",
key: "techName"
},
{
title: "项目数量/下证数",
dataIndex: "commodityQuantity",
key: "commodityQuantity",
render: (value, record) => (
value + '/' + record.certificatesCount
)
},
{
title: "是否高新",
dataIndex: "highTechstatus",
key: "highTechstatus",
render: (value) => (
value === 1 ? '是' : value === 0 ? '否' : ''
)
},
{
title: "驳回数",
dataIndex: "rejectCount",
key: "rejectCount"
},
{
title: "专利号",
dataIndex: "patentNo",
key: "patentNo"
},
{
title: "专利名称",
dataIndex: "patentName",
key: "patentName"
},
{
title: "受理时间",
dataIndex: "acceptTime",
key: "acceptTime"
},
// {
// title: "授权时间",
// dataIndex: "orderNo",
// key: "orderNo"
// },
{
title: "下证时间",
dataIndex: "licenceTime",
key: "licenceTime",
render: (value) => (
{value}
)
},
{
title: "项目金额",
dataIndex: "commodityPrice",
key: "commodityPrice"
},
{
title: "成本金额",
dataIndex: "costAmount",
key: "costAmount"
},
{
title: "利润金额",
dataIndex: "profit",
key: "profit"
},
//0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
{
title: "项目状态",
dataIndex: "projectStatus",
key: "projectStatus",
render: (value, record) => {
return (
{getProjectName(value)}
);
}
},
{
title: "项目说明",
dataIndex: "taskComment",
key: "taskComment",
width: 250,
// render: (v) => (
//
// {v}
//
// )
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
isNoD: true,
},
{
title: "订单说明",
dataIndex: "orderRemarks",
key: "orderRemarks",
isNoD: true,
},
{
title: "评分及时间",
dataIndex: "scoreNumber",
key: "scoreNumber",
width: 80,
onCellClick: (record, e) => {
e.stopPropagation();
onCellClick(record)
},
render: (value, record) => {
return (
{value}分
{record.scoreTime}
);
}
},
{
title: "满意度调查表",
dataIndex: "formRetrieve",
key: "formRetrieve",
render: (value, record) => {
return (
{getFormRetrieves(value, record.satisfactionDegree)}
{(value == 0 || value == 1) && }
);
}
},
];
// 审计
const audit = (onCellClick) => [
{
title: "序号",
dataIndex: "key",
key: "key",
isNoD: true,
},
{
title: "特批类型",
dataIndex: "type",
key: "type",
width: 110,
render: (text, record) => {
return (
{getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
);
},
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime",
width: 80,
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName",
isNoD: true,
},
{
title: "营销员",
dataIndex: "salesmanName",
key: "salesmanName"
},
{
title: "合同编号",
dataIndex: "contractNo",
key: "contractNo"
},
{
title: "订单编号",
dataIndex: "orderNo",
key: "orderNo"
},
{
title: "签单客户",
dataIndex: "userName",
key: "userName"
},
{
title: "项目类型",
dataIndex: "cname",
key: "cname"
},
{
title: "项目名称",
dataIndex: "pname",
key: "pname"
},
{
title: "数量",
dataIndex: "commodityQuantity",
key: "commodityQuantity"
},
{
title: "服务类型",
dataIndex: "serviceType",
key: "aserviceType",
width: 150,
},
{
title: "服务项目",
dataIndex: "serviceProject",
key: "serviceProject",
width: 200,
isNoD: true,
},
{
title: "上年度总资产(万元)",
dataIndex: "lastYearCapital",
key: "lastYearCapital",
width: 70,
render: (value, record) => {
return (
{value}
{record.lastYear &&
{"(" + record.lastYear + "年)"}
}
)
}
},
{
title: "上年度总收入(万元)",
dataIndex: "lastYearIncome",
key: "lastYearIncome",
width: 70,
render: (value, record) => {
return (
{value}
{record.lastYear &&
{"(" + record.lastYear + "年)"}
}
)
}
},
{
title: "负责部门",
dataIndex: "techDepName",
key: "techDepName",
isNoD: true,
},
{
title: "咨询师/咨询经理",
dataIndex: "techName",
key: "techName"
},
//0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
{
title: "项目状态",
dataIndex: "projectStatus",
key: "projectStatus",
render: (value, record) => {
return (
{getProjectName(value)}
);
}
},
{
title: "项目金额",
dataIndex: "commodityPrice",
key: "commodityPrice"
},
// {
// title: "服务年限",
// dataIndex: "serviceLife",
// key: "serviceLife",
// render: (text, record) => {
// return (
// {!!text && JSON.parse(text).toString()}
// );
// }
// },
{
title: "项目说明",
dataIndex: "taskComment",
key: "taskComment",
width: 250,
// render: (v) => (
//
// {v}
//
// )
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
isNoD: true,
},
{
title: "订单说明",
dataIndex: "orderRemarks",
key: "orderRemarks",
isNoD: true,
},
{
title: "评分及时间",
dataIndex: "scoreNumber",
key: "scoreNumber",
width: 80,
onCellClick: (record, e) => {
e.stopPropagation();
onCellClick(record)
},
render: (value, record) => {
return (
{value}分
{record.scoreTime}
);
}
},
{
title: "满意度调查表",
dataIndex: "formRetrieve",
key: "formRetrieve",
render: (value, record) => {
return (
{getFormRetrieves(value, record.satisfactionDegree)}
{(value == 0 || value == 1) && }
);
}
},
];
// 通用表
const currency = (onCellClick) => [
{
title: "序号",
dataIndex: "key",
key: "key",
isNoD: true,
},
{
title: "特批类型",
dataIndex: "type",
key: "type",
width: 110,
render: (text, record) => {
return (
{getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
);
},
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime",
width: 80,
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName",
isNoD: true,
},
{
title: "营销员",
dataIndex: "salesmanName",
key: "salesmanName"
},
{
title: "合同编号",
dataIndex: "contractNo",
key: "contractNo"
},
{
title: "订单编号",
dataIndex: "orderNo",
key: "orderNo"
},
{
title: "签单客户",
dataIndex: "userName",
key: "userName"
},
{
title: "项目类型",
dataIndex: "cname",
key: "cname"
},
{
title: "项目名称",
dataIndex: "pname",
key: "pname"
},
{
title: "数量",
dataIndex: "commodityQuantity",
key: "commodityQuantity"
},
{
title: "服务类型",
dataIndex: "serviceType",
key: "aserviceType",
width: 150,
},
{
title: "服务项目",
dataIndex: "serviceProject",
key: "serviceProject",
width: 200,
isNoD: true,
},
{
title: "负责部门",
dataIndex: "techDepName",
key: "techDepName",
isNoD: true,
},
{
title: "咨询师/咨询经理",
dataIndex: "techName",
key: "techName"
},
//0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
{
title: "项目状态",
dataIndex: "projectStatus",
key: "projectStatus",
render: (value, record) => {
return (
{getProjectName(value)}
);
}
},
{
title: "项目金额",
dataIndex: "commodityPrice",
key: "commodityPrice"
},
// {
// title: "服务年限",
// dataIndex: "serviceLife",
// key: "serviceLife",
// render: (text, record) => {
// return (
// {!!text && JSON.parse(text).toString()}
// );
// }
// },
{
title: "项目说明",
dataIndex: "taskComment",
key: "taskComment",
width: 250,
// render: (v) => (
//
// {v}
//
// )
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
isNoD: true,
},
{
title: "订单说明",
dataIndex: "orderRemarks",
key: "orderRemarks",
isNoD: true,
},
{
title: "评分及时间",
dataIndex: "scoreNumber",
key: "scoreNumber",
width: 80,
onCellClick: (record, e) => {
e.stopPropagation();
onCellClick(record)
},
render: (value, record) => {
return (
{value}分
{record.scoreTime}
);
}
},
{
title: "满意度调查表",
dataIndex: "formRetrieve",
key: "formRetrieve",
render: (value, record) => {
return (
{getFormRetrieves(value, record.satisfactionDegree)}
{(value == 0 || value == 1) && }
);
}
},
];
export {
member,
highTechColumns,
doubleSoft,
softWriting,
patent,
audit,
currency,
}