'use strict';
/**
*
*
* @author Mai
* @date 2018/10/11
* @version
*/
const EmptyTenderHtml = [
'
');
// 名称
html.push('');
if (node.cid) {
html.push(' ', node.name);
} 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('');
if (!node.cid) {
html.push(node.lastStage ? '第' + node.lastStage.order + '期' : '台账');
}
html.push(' | ');
// 审批状态
html.push('');
html.push(node.lastStage ? auditConst.stage.statusString[node.lastStage.status] : auditConst.ledger.statusString[node.ledger_status]);
html.push(' | ');
// 0号台账合同
html.push('');
//html.push(node[c.field] ? node[c.field] : '');
html.push(' | ');
// 本期完成
html.push('');
//html.push(node[c.field] ? node[c.field] : '');
html.push(' | ');
// 截止本期合同
html.push('');
//html.push(node[c.field] ? node[c.field] : '');
html.push(' | ');
// 截止本期变更
html.push('');
//html.push(node[c.field] ? node[c.field] : '');
html.push(' | ');
// 截止本期完成
html.push('');
//html.push(node[c.field] ? node[c.field] : '');
html.push(' | ');
// 截止上期完成
html.push('');
//html.push(node[c.field] ? node[c.field] : '');
html.push(' | ');
// 本期应付
html.push('');
//html.push(node[c.field] ? node[c.field] : '');
html.push(' | ');
html.push('
');
if (node.children) {
for (const c of node.children) {
html.push(recursiveGetTenderNodeHtml(c, node.children));
}
}
return html.join('');
}
// 根据TenderTree数据获取Html代码
function getTenderTreeHtml () {
if (tenderTree.length > 0) {
const html = [];
html.push('