|
@@ -334,6 +334,8 @@ $(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;
|
|
@@ -439,6 +441,7 @@ $(document).ready(() => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
materialData[colSetting.field] = validText;
|
|
materialData[colSetting.field] = validText;
|
|
|
|
+ sortData[curRow][colSetting.field] = validText;
|
|
}
|
|
}
|
|
if (materialData.code === '' || materialData.code === null) {
|
|
if (materialData.code === '' || materialData.code === null) {
|
|
toastMessageUniq(getPasteHint(hint.codeEmpty, hintRow));
|
|
toastMessageUniq(getPasteHint(hint.codeEmpty, hintRow));
|
|
@@ -458,7 +461,7 @@ $(document).ready(() => {
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.cellRange.row, info.cellRange.rowCount);
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.cellRange.row, info.cellRange.rowCount);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- console.log(data);
|
|
|
|
|
|
+ // console.log(data);
|
|
// 更新至服务器
|
|
// 更新至服务器
|
|
postData(window.location.pathname + '/save', { type:'paste', updateData: data }, function (result) {
|
|
postData(window.location.pathname + '/save', { type:'paste', updateData: data }, function (result) {
|
|
materialBillsData = result.info;
|
|
materialBillsData = result.info;
|
|
@@ -534,7 +537,7 @@ $(document).ready(() => {
|
|
const rate = parseInt($(this).val());
|
|
const rate = parseInt($(this).val());
|
|
postData(window.location.pathname + '/save', { type:'rate', rate: rate }, function (result) {
|
|
postData(window.location.pathname + '/save', { type:'rate', rate: rate }, function (result) {
|
|
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);
|
|
$('#rate_set').find('td').eq(1).text(bqhs !== 0 ? bqhs : '');
|
|
$('#rate_set').find('td').eq(1).text(bqhs !== 0 ? bqhs : '');
|
|
$('#rate_set').find('td').eq(2).text(jzbqhs !== 0 ? jzbqhs : '');
|
|
$('#rate_set').find('td').eq(2).text(jzbqhs !== 0 ? jzbqhs : '');
|
|
});
|
|
});
|