|
@@ -232,6 +232,7 @@ import {
|
|
|
splitString,
|
|
|
toUpperCase,
|
|
|
findCellKeyByFactor,
|
|
|
+ isNumberVal,
|
|
|
transValueFormat
|
|
|
} from "../common/customTable";
|
|
|
import * as sheetInterface from "@/api/modules/sheetApi.js";
|
|
@@ -568,6 +569,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /* 不是数字类型,清除原来设置的格式 */
|
|
|
+ if(!isNumberVal(value)) cell.ShowStyle = '';
|
|
|
+
|
|
|
//判断是否是有插入值的依赖单元格 更新值或重置关系
|
|
|
this.checkCellRelation(cell)
|
|
|
},
|
|
@@ -642,6 +646,7 @@ export default {
|
|
|
cell.DataTime = '';
|
|
|
cell.ShowValue = '';
|
|
|
cell.Value = '';
|
|
|
+ cell.ShowStyle = ''
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -817,6 +822,8 @@ export default {
|
|
|
this.selectCell.DataTime = '';
|
|
|
this.selectCell.DataTimeType = 0;
|
|
|
this.selectCell.EdbInfoId = 0;
|
|
|
+ this.selectCell.ShowStyle = '';
|
|
|
+ this.selectCell.ShowFormatValue = '';
|
|
|
|
|
|
this.checkCellRelation(this.selectCell)
|
|
|
},
|
|
@@ -1062,6 +1069,8 @@ export default {
|
|
|
this.config.data = new Array(8).fill("").map((_,_rindex) => {
|
|
|
return new Array(5).fill("").map((cell,_cindex) => ({
|
|
|
ShowValue: "",
|
|
|
+ ShowStyle: '',
|
|
|
+ ShowFormatValue: '',
|
|
|
Value: "",
|
|
|
DataType: 3,
|
|
|
DataTimeType: 0,
|
|
@@ -1104,10 +1113,14 @@ export default {
|
|
|
cell.Value = this.copyCellItem.Value;
|
|
|
cell.DataTime = this.copyCellItem.DataTime;
|
|
|
cell.EdbInfoId = this.copyCellItem.EdbInfoId;
|
|
|
+ cell.ShowStyle = this.copyCellItem.ShowStyle;
|
|
|
+ cell.ShowFormatValue = this.copyCellItem.ShowFormatValue;
|
|
|
}else {
|
|
|
cell.DataType = 3;
|
|
|
cell.ShowValue = this.copyCellItem.ShowValue;
|
|
|
cell.Value = this.copyCellItem.ShowValue;
|
|
|
+ cell.ShowStyle = this.copyCellItem.ShowStyle;
|
|
|
+ cell.ShowFormatValue = this.copyCellItem.ShowFormatValue;
|
|
|
cell.DataTime = '';
|
|
|
cell.EdbInfoId = 0;
|
|
|
}
|