import st from "styled-components"; import $nModal from "../../../../utils/modal/nModal"; import PersonModal from "../commonComponents/PersonModal/index"; import TaskInfo from "../commonComponents/TaskInfo"; import ContractInfo from "../commonComponents/ContranctInfo"; import PlaceInfo from "../commonComponents/PlaceInfo"; const warnColor = "#F59A23"; const okColor = "#4B7902"; const errColor = "#D9001B"; export default function() { return [ { title: "序号", dataIndex: "number", key: "number", fixed: "left", width: 80 }, { title: "任务名称", dataIndex: "taskName", key: "taskName" }, { title: "任务状态", dataIndex: "taskStatusComment", key: "taskStatusComment", render: (value, record) => { return ( {value || "-"} ); } }, { title: "承保企业名称", dataIndex: "comName", key: "comName", render: value => value || "-" }, { title: "活动名称", dataIndex: "activityName", key: "activityName", render: value => value || "-" }, { title: "活动承办方", dataIndex: "activityCom", key: "activityCom", render: value => value || "-" }, { title: "共保企业名称", dataIndex: "shareComList", key: "shareComList", render: (text, record) => { if (text.length > 0) { return ( {text.map(item => { return

{item.comName}

; })}
); } else { return -; } } }, { title: "任务时间", dataIndex: "date", key: "date", render: (text, record) => { return ( {record.startDate}~{record.endDate} ); } }, { title: "驻勤人数", dataIndex: "rwrs", key: "rwrs", fixed: "right", width: 100, render: (text, record) => { if (record.taskStatusValue != 6) { return ( { $nModal({ width: 1000, title: record.taskName + "-人员管理", content: ( { this._updateTable(); }} comTempTaskId={record.comTempTaskId} readOnly={record.taskStatus === "7"}//已完成的状态,按钮不让编辑 noUpdate//共保页面的修改按钮一例不要 > ), footer:null, // onOk: close => { // close(); // } }); }} > {text}人 ); } else { if (text == "0") { return -; } else { return {text}人; } } } }, { title: "考勤点", dataIndex: "kqds", key: "kqds", fixed: "right", width: 100, render: (text, record) => { if (record.taskStatusValue != 6) { return ( { $nModal({ width: 1000, title: record.taskName + "-考勤点", content: ( this._updateTable()} readOnly /> ), footer:null, // onOk: close => { // close(); // } }); }} > {text}个 ); } else { if (text == "0") { return -; } else { return {text}个; } } } }, { title: "操作", dataIndex: "operation", key: "operation", fixed: "right", width: 220, render: (text, record) => { return ( { $nModal({ width: 1000, title: record.taskName + "-任务信息", content: , onOk: close => { close(); } }); }} > 查看 ); } } ]; } const Oper = st.div` a{ margin-left: 10px; &:first-child{ margin-left: 0; } } `;