import { Tooltip } from 'antd';
import React from 'react';
import {getProjectName} from '@/tools';
// 高新
const highTechColumns =[
{
title: "序号",
dataIndex: "key",
key: "key",
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime"
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName"
},
{
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: "techDepName",
key: "techDepName"
},
{
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: "declarationBatch",
key: "declarationBatch"
},
{
title: "项目金额",
dataIndex: "commodityPrice",
key: "commodityPrice"
},
//0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
{
title: "项目状态",
dataIndex: "projectStatus",
key: "projectStatus",
render:(value)=>(
getProjectName(value)
)
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
render: (v) => (
{v}
)
},
];
// 双软
const doubleSoft = [
{
title: "序号",
dataIndex: "key",
key: "key",
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime"
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName"
},
{
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: "techDepName",
key: "techDepName"
},
{
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)=>(
getProjectName(value)
)
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
render: (v) => (
{v}
)
},
];
// 软著
const softWriting = [
{
title: "序号",
dataIndex: "key",
key: "key",
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime"
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName"
},
{
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: "techDepName",
key: "techDepName"
},
{
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)=>(
getProjectName(value)
)
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
render: (v) => (
{v}
)
},
];
// 专利
const patent =[
{
title: "序号",
dataIndex: "key",
key: "key",
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime"
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName"
},
{
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: "techDepName",
key: "techDepName"
},
{
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)=>(
getProjectName(value)
)
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
render: (v) => (
{v}
)
}
];
// 通用表
const currency = [
{
title: "序号",
dataIndex: "key",
key: "key",
},
{
title: "派单时间",
dataIndex: "distributionTime",
key: "distributionTime"
},
{
title: "派单省份",
dataIndex: "province",
key: "province"
},
{
title: "订单部门",
dataIndex: "depName",
key: "depName"
},
{
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: "techDepName",
key: "techDepName"
},
{
title: "咨询师/咨询经理",
dataIndex: "techName",
key: "techName"
},
//0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单
{
title: "项目状态",
dataIndex: "projectStatus",
key: "projectStatus",
render:(value)=>(
getProjectName(value)
)
},
{
title: "项目金额",
dataIndex: "commodityPrice",
key: "commodityPrice"
},
{
title: "特别说明",
dataIndex: "specialComment",
key: "specialComment",
render: (v) => (
{v}
)
},
];
export {
highTechColumns,
doubleSoft,
softWriting,
patent,
currency,
}