import { Tooltip } from 'antd'; import React from 'react'; import { getProjectName } from '@/tools'; // 高新会员服务 const member = [ { title: "序号", dataIndex: "key", key: "key", isNoD: true, }, { 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) => ( getProjectName(value) ) }, { title: "项目金额", dataIndex: "commodityPrice", key: "commodityPrice" }, { title: "总年限", dataIndex: "yearsum", key: "yearsum", render: (text, record) => { return ( <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div> ); } }, { title: "年限", dataIndex: "serviceLife", key: "serviceLife", render: (text, record) => { return ( <div>{!!text && JSON.parse(text).toString()}</div> ); } }, { 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] : <div> <div>{data[0]}</div> <div style={{ textAlign: "center" }}>至</div> <div>{data[1]}</div> </div> ); } }, { title: "项目说明", dataIndex: "taskComment", key: "taskComment", width: 250, }, { title: "特别说明", dataIndex: "specialComment", key: "specialComment", isNoD: true, }, { title: "订单说明", dataIndex: "orderRemarks", key: "orderRemarks", isNoD: true, } ]; // 高新 const highTechColumns = [ { title: "序号", dataIndex: "key", key: "key", isNoD: true, }, { 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) => ( getProjectName(value) ) }, { title: "项目说明", dataIndex: "taskComment", key: "taskComment", width: 250, // render: (v) => ( // <Tooltip placement="topRight" title={v} overlayStyle={{ // wordBreak: 'break-all' // }}> // <div style={{ // maxWidth: '120px', // overflow: "hidden", // textOverflow: "ellipsis", // whiteSpace: "nowrap", // }}>{v}</div> // </Tooltip> // ) }, { title: "特别说明", dataIndex: "specialComment", key: "specialComment", isNoD: true, }, { title: "订单说明", dataIndex: "orderRemarks", key: "orderRemarks", isNoD: true, } ]; // 双软 const doubleSoft = [ { title: "序号", dataIndex: "key", key: "key", isNoD: true, }, { 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) => ( <div style={{ width: '80px' }}>{value}</div> ) }, { title: "项目金额", dataIndex: "commodityPrice", key: "commodityPrice" }, //0未开始 1已开始 2已暂停 3已驳回 4已完成 5未完成退单 6已完成退单 { title: "项目状态", dataIndex: "projectStatus", key: "projectStatus", render: (value) => ( getProjectName(value) ) }, { title: "项目说明", dataIndex: "taskComment", key: "taskComment", width: 250, // render: (v) => ( // <Tooltip placement="topRight" title={v} overlayStyle={{ // wordBreak: 'break-all' // }}> // <div style={{ // maxWidth: '120px', // overflow: "hidden", // textOverflow: "ellipsis", // whiteSpace: "nowrap", // }}>{v}</div> // </Tooltip> // ) }, { title: "特别说明", dataIndex: "specialComment", key: "specialComment", isNoD: true, }, { title: "订单说明", dataIndex: "orderRemarks", key: "orderRemarks", isNoD: true, } ]; // 软著 const softWriting = [ { title: "序号", dataIndex: "key", key: "key", isNoD: true, }, { 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) => ( <div style={{ width: '80px' }}>{value}</div> ) }, { 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: "taskComment", key: "taskComment", width: 250, // render: (v) => ( // <Tooltip placement="topRight" title={v} overlayStyle={{ // wordBreak: 'break-all' // }}> // <div style={{ // maxWidth: '120px', // overflow: "hidden", // textOverflow: "ellipsis", // whiteSpace: "nowrap", // }}>{v}</div> // </Tooltip> // ) }, { title: "特别说明", dataIndex: "specialComment", key: "specialComment", isNoD: true, }, { title: "订单说明", dataIndex: "orderRemarks", key: "orderRemarks", isNoD: true, } ]; // 专利 const patent = [ { title: "序号", dataIndex: "key", key: "key", isNoD: true, }, { 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) => ( <div style={{ width: '80px' }}>{value}</div> ) }, { 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: "taskComment", key: "taskComment", width: 250, // render: (v) => ( // <Tooltip placement="topRight" title={v} overlayStyle={{ // wordBreak: 'break-all' // }}> // <div style={{ // maxWidth: '120px', // overflow: "hidden", // textOverflow: "ellipsis", // whiteSpace: "nowrap", // }}>{v}</div> // </Tooltip> // ) }, { title: "特别说明", dataIndex: "specialComment", key: "specialComment", isNoD: true, }, { title: "订单说明", dataIndex: "orderRemarks", key: "orderRemarks", isNoD: true, } ]; // 审计 const audit = [ { title: "序号", dataIndex: "key", key: "key", isNoD: true, }, { 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 ( <div> {value} {record.lastYear && <div>{"(" + record.lastYear + "年)"}</div>} </div> ) } }, { title: "上年度总收入(万元)", dataIndex: "lastYearIncome", key: "lastYearIncome", width: 70, render: (value, record) => { return ( <div> {value} {record.lastYear && <div>{"(" + record.lastYear + "年)"}</div>} </div> ) } }, { 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) => ( getProjectName(value) ) }, { title: "项目金额", dataIndex: "commodityPrice", key: "commodityPrice" }, // { // title: "服务年限", // dataIndex: "serviceLife", // key: "serviceLife", // render: (text, record) => { // return ( // <div>{!!text && JSON.parse(text).toString()}</div> // ); // } // }, { title: "项目说明", dataIndex: "taskComment", key: "taskComment", width: 250, // render: (v) => ( // <Tooltip placement="topRight" title={v} overlayStyle={{ // wordBreak: 'break-all' // }}> // <div style={{ // maxWidth: '120px', // overflow: "hidden", // textOverflow: "ellipsis", // whiteSpace: "nowrap", // }}>{v}</div> // </Tooltip> // ) }, { title: "特别说明", dataIndex: "specialComment", key: "specialComment", isNoD: true, }, { title: "订单说明", dataIndex: "orderRemarks", key: "orderRemarks", isNoD: true, } ]; // 通用表 const currency = [ { title: "序号", dataIndex: "key", key: "key", isNoD: true, }, { 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) => ( getProjectName(value) ) }, { title: "项目金额", dataIndex: "commodityPrice", key: "commodityPrice" }, // { // title: "服务年限", // dataIndex: "serviceLife", // key: "serviceLife", // render: (text, record) => { // return ( // <div>{!!text && JSON.parse(text).toString()}</div> // ); // } // }, { title: "项目说明", dataIndex: "taskComment", key: "taskComment", width: 250, // render: (v) => ( // <Tooltip placement="topRight" title={v} overlayStyle={{ // wordBreak: 'break-all' // }}> // <div style={{ // maxWidth: '120px', // overflow: "hidden", // textOverflow: "ellipsis", // whiteSpace: "nowrap", // }}>{v}</div> // </Tooltip> // ) }, { title: "特别说明", dataIndex: "specialComment", key: "specialComment", isNoD: true, }, { title: "订单说明", dataIndex: "orderRemarks", key: "orderRemarks", isNoD: true, } ]; export { member, highTechColumns, doubleSoft, softWriting, patent, audit, currency, }