|
@@ -244,14 +244,19 @@ function recursiveGetTenderNodeHtml (node, arr) {
|
|
|
html.push('</span>');
|
|
|
//html.push('<a href="/tender/' + node.id + '">', node[c.field], '</a>');
|
|
|
html.push('<a href="javascript: void(0)" id="' + node.id + '">', node.name, '</a>');
|
|
|
- if (node.measure_type) {
|
|
|
- html.push('<span class="small">', ' (', node.measure_type === measureType.tz.value ? '台账' : '清单', ')', '</span>');
|
|
|
- }
|
|
|
+ }
|
|
|
+ html.push('</td>');
|
|
|
+ // 计量模式
|
|
|
+ html.push('<td>');
|
|
|
+ if (node.measure_type) {
|
|
|
+ html.push(node.measure_type === measureType.tz.value ? '0号台账' : '工程量清单');
|
|
|
}
|
|
|
html.push('</td>');
|
|
|
// 计量期数
|
|
|
html.push('<td>');
|
|
|
- html.push(node.lastStage ? '第' + node.lastStage.order + '期' : '台账');
|
|
|
+ if (!node.cid) {
|
|
|
+ html.push(node.lastStage ? '第' + node.lastStage.order + '期' : '台账');
|
|
|
+ }
|
|
|
html.push('</td>');
|
|
|
// 审批状态
|
|
|
html.push('<td>');
|
|
@@ -299,9 +304,17 @@ function getTenderTreeHtml () {
|
|
|
const html = [];
|
|
|
html.push('<table class="table table-bordered">');
|
|
|
html.push('<thead>', '<tr>');
|
|
|
- for (const c of TenderTableCol) {
|
|
|
- html.push('<th>', c.title, '</th>');
|
|
|
- }
|
|
|
+ html.push('<th>', '名称', '</th>');
|
|
|
+ html.push('<th>', '计量模式', '</th>');
|
|
|
+ html.push('<th>', '计量期数', '</th>');
|
|
|
+ html.push('<th>', '审批状态', '</th>');
|
|
|
+ html.push('<th>', '0号台帐', '</th>');
|
|
|
+ html.push('<th>', '本期完成', '</th>');
|
|
|
+ html.push('<th>', '截止本期合同', '</th>');
|
|
|
+ html.push('<th>', '截止本期变更', '</th>');
|
|
|
+ html.push('<th>', '截止本期完成', '</th>');
|
|
|
+ html.push('<th>', '截止上期完成', '</th>');
|
|
|
+ html.push('<th>', '本期应付', '</th>');
|
|
|
html.push('</tr>', '</thead>');
|
|
|
for (const t of tenderTree) {
|
|
|
html.push(recursiveGetTenderNodeHtml(t, tenderTree));
|