|
|
@@ -530,6 +530,16 @@ var projectObj = {
|
|
|
gljOprObj.showRationGLJSheetData();
|
|
|
}
|
|
|
else {//不涉及计算的,只改updateData的值就好了
|
|
|
+ if (node.sourceType === project.Bills.getSourceType()) {
|
|
|
+ if(fieldName === "maxPrice" || fieldName === 'minPrice'){
|
|
|
+ if(value == null){
|
|
|
+ value = "";
|
|
|
+ }else {
|
|
|
+ value = scMathUtil.roundToString(value,getDecimal("unitPrice", node))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ project.Bills.updateField(node.source, fieldName, value, false);
|
|
|
+ }
|
|
|
node.updateData[fieldName] = value;
|
|
|
node.changed = true;
|
|
|
if (colSetting.data.wordWrap) {
|
|
|
@@ -811,8 +821,6 @@ var projectObj = {
|
|
|
//提前处理
|
|
|
if (fieldName === 'code' || fieldName === 'name' || fieldName === 'unit') {
|
|
|
info.editingText = info.editingText ? info.editingText.toString().replace(new RegExp(/[\r,\n]/g), '') : info.editingText;
|
|
|
- } else if (info.editingText === null && (fieldName === 'maxPrice' || fieldName === 'minPrice')) {
|
|
|
- info.editingText = '';
|
|
|
}
|
|
|
// 检查输入类型等
|
|
|
let value = projectObj.checkSpreadEditingText(info.editingText, colSetting);
|