|
@@ -296,7 +296,7 @@ function recursiveGetTenderNodeHtml (node, arr, pid) {
|
|
|
const html = [];
|
|
|
html.push('<tr pid="' + pid + '">');
|
|
|
// 名称
|
|
|
- html.push('<td style="width: 23%" class="in-' + node.level + '">');
|
|
|
+ html.push('<td style="width: 20%" class="in-' + node.level + '">');
|
|
|
if (node.cid) {
|
|
|
html.push('<span onselectstart="return false" style="{-moz-user-select:none}" class="fold-switch mr-1" title="收起" cid="'+ node.sort_id +'"><i class="fa fa-minus-square-o"></i></span> <i class="fa fa-folder-o"></i> ', node.name);
|
|
|
} else {
|
|
@@ -308,55 +308,63 @@ function recursiveGetTenderNodeHtml (node, arr, pid) {
|
|
|
}
|
|
|
html.push('</td>');
|
|
|
// 计量模式
|
|
|
- html.push('<td style="width: 7%" class="text-center">');
|
|
|
+ html.push('<td style="width: 6%" class="text-center">');
|
|
|
if (node.measure_type) {
|
|
|
html.push(node.measure_type === measureType.tz.value ? '0号台账' : '工程量清单');
|
|
|
}
|
|
|
html.push('</td>');
|
|
|
- // 计量期数
|
|
|
- html.push('<td style="width: 7%" class="text-center">');
|
|
|
- if (!node.cid) {
|
|
|
- html.push(node.lastStage ? '第' + node.lastStage.order + '期' : '台账');
|
|
|
+ // 计量进度
|
|
|
+ html.push('<td style="width: 6%">');
|
|
|
+ if (!node.cid && node.cur_flow) {
|
|
|
+ html.push(node.cur_flow.title + ' (' + '<span class="' + node.cur_flow.status_class +'">' + node.cur_flow.status + '</span>' + ')');
|
|
|
}
|
|
|
html.push('</td>');
|
|
|
- // 审批状态
|
|
|
- html.push('<td style="width: 7%">');
|
|
|
- html.push(node.lastStage ? auditConst.stage.statusString[node.lastStage.status] : auditConst.ledger.statusString[node.ledger_status]);
|
|
|
+ // 当前流程
|
|
|
+ html.push('<td style="width: 6%">');
|
|
|
+ if (!node.cid && node.cur_flow) {
|
|
|
+ html.push(node.cur_flow.name + ' ' + '<span class="' + node.cur_flow.status_class +'">' + node.cur_flow.status + '</span>');
|
|
|
+ }
|
|
|
+ html.push('</td>');
|
|
|
+ // 上一流程审批时间
|
|
|
+ html.push('<td style="width: 8%">');
|
|
|
+ if (!node.cid && node.pre_flow) {
|
|
|
+ html.push(node.pre_flow.name + ' ' + moment(node.pre_flow.time).format('YYYY-MM-DD'));
|
|
|
+ }
|
|
|
html.push('</td>');
|
|
|
// 0号台账合同
|
|
|
- html.push('<td style="width: 7%" class="text-right">');
|
|
|
+ html.push('<td style="width: 6%" class="text-right">');
|
|
|
html.push(node.total_price);
|
|
|
html.push('</td>');
|
|
|
// 本期完成
|
|
|
- html.push('<td style="width: 7%" class="text-right">');
|
|
|
+ html.push('<td style="width: 6%" class="text-right">');
|
|
|
html.push(node.gather_tp);
|
|
|
html.push('</td>');
|
|
|
// 截止本期合同
|
|
|
- html.push('<td style="width: 7%" class="text-right">');
|
|
|
+ html.push('<td style="width: 6%" class="text-right">');
|
|
|
html.push(node.end_contract_tp);
|
|
|
html.push('</td>');
|
|
|
// 截止本期变更
|
|
|
- html.push('<td style="width: 7%" class="text-right">');
|
|
|
+ html.push('<td style="width: 6%" class="text-right">');
|
|
|
html.push(node.end_qc_tp);
|
|
|
html.push('</td>');
|
|
|
// 截止本期完成
|
|
|
- html.push('<td style="width: 7%" class="text-right">');
|
|
|
+ html.push('<td style="width: 6%" class="text-right">');
|
|
|
html.push(node.end_gather_tp);
|
|
|
html.push('</td>');
|
|
|
// 截止上期完成
|
|
|
- html.push('<td style="width: 7%" class="text-right">');
|
|
|
+ html.push('<td style="width: 6%" class="text-right">');
|
|
|
html.push(node.pre_gather_tp);
|
|
|
html.push('</td>');
|
|
|
// 预付款
|
|
|
- html.push('<td style="width: 7%" class="text-right">');
|
|
|
+ html.push('<td style="width: 6%" class="text-right">');
|
|
|
html.push(node.advance_tp);
|
|
|
html.push('</td>');
|
|
|
// 本期应付
|
|
|
- html.push('<td style="width: 7%" class="text-right">');
|
|
|
+ html.push('<td style="width: 6%" class="text-right">');
|
|
|
html.push(node.yf_tp);
|
|
|
html.push('</td>');
|
|
|
// 截止本期应付
|
|
|
- html.push('<td style="width: 7%" class="text-right">');
|
|
|
+ html.push('<td style="width: 6%" class="text-right">');
|
|
|
html.push(node.end_yf_tp);
|
|
|
html.push('</td>');
|
|
|
html.push('</tr>');
|
|
@@ -373,19 +381,20 @@ function getTenderTreeHtml () {
|
|
|
const html = [];
|
|
|
html.push('<table class="table table-hover table-bordered">');
|
|
|
html.push('<thead style="position: fixed;left:56px;top: 34px;">', '<tr>');
|
|
|
- html.push('<th class="text-center" style="width: 23%">', '标段名称', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '计量模式', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '计量期数', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '审批状态', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '0号台帐', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '本期完成', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '截止本期合同', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '截止本期变更', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '截止本期完成', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '截止上期完成', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '预付款', '<i class="fa fa-question-circle text-primary" data-placement="bottom" data-toggle="tooltip" data-original-title="预付款流程中截止本期金额"></i>', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '本期应付', '</th>');
|
|
|
- html.push('<th class="text-center" style="width: 7%">', '截止本期应付', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 20%">', '标段名称', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '计量模式', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '计量进度', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '当前流程', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 8%">', '上一流程审批时间', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '0号台帐', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '本期完成', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '截止本期合同', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '截止本期变更', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '截止本期完成', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '截止上期完成', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '预付款', '<i class="fa fa-question-circle text-primary" data-placement="bottom" data-toggle="tooltip" data-original-title="预付款流程中截止本期金额"></i>', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '本期应付', '</th>');
|
|
|
+ html.push('<th class="text-center" style="width: 6%">', '截止本期应付', '</th>');
|
|
|
html.push('</tr>', '</thead>');
|
|
|
parentId = 0;
|
|
|
for (const t of tenderTree) {
|