const tenderListSpec = (function(){ function getTenderTreeHeaderHtml() { const html = []; html.push('
', '标段名称', tenderListOrder.getOrderButton('name'), ' | '); html.push('', '计量模式', ' | '); html.push('', '创建人', ' | '); html.push('', '游客', ' | '); html.push('', '创建时间', tenderListOrder.getOrderButton('create_time'), ' | '); html.push('', '计量期数', ' | '); html.push('', '审批状态', ' | '); html.push('|
---|---|---|---|---|---|---|---|
'); if (node.cid) { html.push(' '); html.push((node.level === 1 ? '' : ''), node.name, (node.level === 1 ? '' : '')); } else { html.push(''); html.push(arr.indexOf(node) === arr.length - 1 ? '└' : '├'); html.push(''); //html.push('', node[c.field], ''); html.push('', node.name, ''); } html.push(' | '); // 计量模式 html.push(''); if (node.measure_type) { html.push(node.measure_type === measureType.tz.value ? '0号台账' : '工程量清单'); } html.push(' | '); // 创建人 html.push('', node.user_name ? node.user_name : '', ' | '); // 游客 const visitor = node.visitor && node.visitor.length > 0 ? `${node.visitor.length}` : ''; html.push('', visitor, ' | '); // 创建时间 html.push('', node.create_time ? moment(node.create_time).format('YYYY-MM-DD HH:mm:ss') : '', ' | '); // 计量模式 // html.push(''); // if (node.measure_type) { // html.push(node.measure_type === measureType.tz.value ? '0号台账' : '工程量清单'); // } // html.push(' | '); // 计量期数 html.push(''); if (!node.cid) { if (node.progress) { html.push(node.progress.title === '台账' ? '' : node.progress.title); } else { html.push(node.lastStage ? '第' + node.lastStage.order + '期' : '台账'); } } html.push(' | '); // 审批状态 html.push(''); if (!node.cid && node.cur_flow) { if (node.stage_status !== undefined) { if (node.cur_flow instanceof Array && node.cur_flow[0].audit_type && node.cur_flow[0].audit_type !== auditType.key.common) { html.push(`${node.progress.status}(${transFormToChinese(node.cur_flow[0].audit_order)}审)`); } else { html.push(`${node.progress.status}(${node.cur_flow instanceof Array ? node.cur_flow[0].name : node.cur_flow.name })`); } } else { html.push(``); html.push(node.lastStage ? auditConst.stage.statusString[node.lastStage.status] : auditConst.ledger.statusString[node.ledger_status]); html.push(''); html.push(node.status_users ? '(' + node.status_users + ')' : ''); } } html.push(' | '); html.push('