|
@@ -153,7 +153,7 @@ $(document).ready(function() {
|
|
|
};
|
|
};
|
|
|
const contractTree = createNewPathTree('revise', treeSetting);
|
|
const contractTree = createNewPathTree('revise', treeSetting);
|
|
|
|
|
|
|
|
- const contractDetail = ['c_code', 'name', 'price', 'supplement_price', 'pay_price', 'debit_price','yf_price', 'sf_price', 'party_a', 'party_a_user', 'party_b', 'party_b_user', 'sign_date', 'address', 'entity', 'bank', 'bank_account', 'remark', 'settle_code', 'tax', 'create_time'];
|
|
|
|
|
|
|
+ const contractDetail = ['c_code', 'name', 'price', 'supplement_price', 'total_price', 'pay_price', 'debit_price','yf_price', 'sf_price', 'party_a', 'party_a_user', 'party_b', 'party_b_user', 'sign_date', 'address', 'entity', 'bank', 'bank_account', 'remark', 'settle_code', 'tax', 'create_time'];
|
|
|
|
|
|
|
|
// 清单 相关方法&绑定spreadjs事件
|
|
// 清单 相关方法&绑定spreadjs事件
|
|
|
const contractTreeSpreadObj = {
|
|
const contractTreeSpreadObj = {
|
|
@@ -349,17 +349,6 @@ $(document).ready(function() {
|
|
|
} else if (c === 'sign_date') {
|
|
} else if (c === 'sign_date') {
|
|
|
$('#htdetail_' + c).text(node[c] ? moment(node[c]).format('YYYY-MM-DD') : '');
|
|
$('#htdetail_' + c).text(node[c] ? moment(node[c]).format('YYYY-MM-DD') : '');
|
|
|
continue;
|
|
continue;
|
|
|
- } else if (c === 'price') {
|
|
|
|
|
- $('#htdetail_' + c).text(node.total_price || '');
|
|
|
|
|
- continue;
|
|
|
|
|
- } else if (c === 'supplement_price') {
|
|
|
|
|
- if (node[c]) {
|
|
|
|
|
- $('#show-supplement-price').show();
|
|
|
|
|
- } else {
|
|
|
|
|
- $('#show-supplement-price').hide();
|
|
|
|
|
- }
|
|
|
|
|
- $('#show-supplement-price').attr('data-original-title', '含补充合同金额:' + node[c]);
|
|
|
|
|
- continue;
|
|
|
|
|
}
|
|
}
|
|
|
$('#htdetail_' + c).text(node[c] || '');
|
|
$('#htdetail_' + c).text(node[c] || '');
|
|
|
}
|
|
}
|
|
@@ -673,17 +662,6 @@ $(document).ready(function() {
|
|
|
} else if (c === 'sign_date') {
|
|
} else if (c === 'sign_date') {
|
|
|
$('#htdetail_' + c).text(node[c] ? moment(node[c]).format('YYYY-MM-DD') : '');
|
|
$('#htdetail_' + c).text(node[c] ? moment(node[c]).format('YYYY-MM-DD') : '');
|
|
|
continue;
|
|
continue;
|
|
|
- } else if (c === 'price') {
|
|
|
|
|
- $('#htdetail_' + c).text(node.total_price || '');
|
|
|
|
|
- continue;
|
|
|
|
|
- } else if (c === 'supplement_price') {
|
|
|
|
|
- if (node[c]) {
|
|
|
|
|
- $('#show-supplement-price').show();
|
|
|
|
|
- } else {
|
|
|
|
|
- $('#show-supplement-price').hide();
|
|
|
|
|
- }
|
|
|
|
|
- $('#show-supplement-price').attr('data-original-title', '含补充合同金额:' + node[c]);
|
|
|
|
|
- continue;
|
|
|
|
|
}
|
|
}
|
|
|
$('#htdetail_' + c).text(node[c] || '');
|
|
$('#htdetail_' + c).text(node[c] || '');
|
|
|
}
|
|
}
|
|
@@ -1871,8 +1849,6 @@ $(document).ready(function() {
|
|
|
} else if (c === 'tax') {
|
|
} else if (c === 'tax') {
|
|
|
$('#htdetail_' + c).html('<input type="number" min="0" max="100" step="1" class="form-control form-control-sm" value="' + (node[c] ? node[c] : '') + '">');
|
|
$('#htdetail_' + c).html('<input type="number" min="0" max="100" step="1" class="form-control form-control-sm" value="' + (node[c] ? node[c] : '') + '">');
|
|
|
continue;
|
|
continue;
|
|
|
- } else if (c === 'supplement_price') {
|
|
|
|
|
- continue;
|
|
|
|
|
}
|
|
}
|
|
|
$('#htdetail_' + c).html('<input type="text" class="form-control form-control-sm" value="' + node[c] + '">');
|
|
$('#htdetail_' + c).html('<input type="text" class="form-control form-control-sm" value="' + node[c] + '">');
|
|
|
}
|
|
}
|
|
@@ -1902,8 +1878,6 @@ $(document).ready(function() {
|
|
|
} else if (c === 'remark') {
|
|
} else if (c === 'remark') {
|
|
|
data[c] = $('#htdetail_' + c + ' textarea').val();
|
|
data[c] = $('#htdetail_' + c + ' textarea').val();
|
|
|
continue;
|
|
continue;
|
|
|
- } else if (c === 'supplement_price') {
|
|
|
|
|
- continue;
|
|
|
|
|
}
|
|
}
|
|
|
data[c] = $('#htdetail_' + c + ' input').val();
|
|
data[c] = $('#htdetail_' + c + ' input').val();
|
|
|
}
|
|
}
|
|
@@ -1987,10 +1961,6 @@ $(document).ready(function() {
|
|
|
if ($('#htdetail_' + c) && $('#htdetail_' + c).hasClass('change-input-td')) {
|
|
if ($('#htdetail_' + c) && $('#htdetail_' + c).hasClass('change-input-td')) {
|
|
|
if (c === 'sign_date') {
|
|
if (c === 'sign_date') {
|
|
|
$('#htdetail_' + c).text(node[c] ? moment(node[c]).format('YYYY-MM-DD') : '');
|
|
$('#htdetail_' + c).text(node[c] ? moment(node[c]).format('YYYY-MM-DD') : '');
|
|
|
- } else if (c === 'price') {
|
|
|
|
|
- $('#htdetail_' + c).text(node.total_price || '');
|
|
|
|
|
- } else if (c === 'supplement_price') {
|
|
|
|
|
- continue;
|
|
|
|
|
} else {
|
|
} else {
|
|
|
$('#htdetail_' + c).html(node[c]);
|
|
$('#htdetail_' + c).html(node[c]);
|
|
|
}
|
|
}
|