|
@@ -74,7 +74,7 @@ DatePickerCellType.prototype.updateEditor = function (editorContext, cellStyle,
|
|
function resetTpTable() {
|
|
function resetTpTable() {
|
|
const rate = $('#changeRate').val();
|
|
const rate = $('#changeRate').val();
|
|
const bqhs = ZhCalc.round(ZhCalc.mul(m_tp, 1+rate/100), 2);
|
|
const bqhs = ZhCalc.round(ZhCalc.mul(m_tp, 1+rate/100), 2);
|
|
- const jzbqhs = ZhCalc.round(ZhCalc.mul(ZhCalc.add(pre_tp, m_tp), 1+rate/100), 2);
|
|
|
|
|
|
+ const jzbqhs = ZhCalc.round(ZhCalc.add(pre_tp_hs, bqhs), 2);
|
|
$('#tp_set').find('td').eq(1).text(ZhCalc.round(m_tp, 2));
|
|
$('#tp_set').find('td').eq(1).text(ZhCalc.round(m_tp, 2));
|
|
$('#tp_set').find('td').eq(2).text(ZhCalc.round(ZhCalc.add(pre_tp, m_tp), 2));
|
|
$('#tp_set').find('td').eq(2).text(ZhCalc.round(ZhCalc.add(pre_tp, m_tp), 2));
|
|
$('#rate_set').find('td').eq(1).text(bqhs !== 0 ? bqhs : '');
|
|
$('#rate_set').find('td').eq(1).text(bqhs !== 0 ? bqhs : '');
|
|
@@ -334,8 +334,6 @@ $(document).ready(() => {
|
|
select.m_spread = materialCol.getValue.m_spread(select);
|
|
select.m_spread = materialCol.getValue.m_spread(select);
|
|
select.m_tp = materialCol.getValue.m_tp(select);
|
|
select.m_tp = materialCol.getValue.m_tp(select);
|
|
|
|
|
|
- console.log(select);
|
|
|
|
-
|
|
|
|
// 更新至服务器
|
|
// 更新至服务器
|
|
postData(window.location.pathname + '/save', { type:'update', updateData: select }, function (result) {
|
|
postData(window.location.pathname + '/save', { type:'update', updateData: select }, function (result) {
|
|
m_tp = result.m_tp;
|
|
m_tp = result.m_tp;
|