Commit 24a25c0a authored by sherlock's avatar sherlock

key in chinese bugs

parent 8549a9a3
...@@ -884,7 +884,7 @@ public class ReportServiceImpl { ...@@ -884,7 +884,7 @@ public class ReportServiceImpl {
cellData.setCellTemplateId(Long.parseLong(data.getCellTemplateId())); cellData.setCellTemplateId(Long.parseLong(data.getCellTemplateId()));
cellData.setData(data.getAmount() == null ? null : data.getAmount().toString()); cellData.setData(data.getAmount() == null ? null : data.getAmount().toString());
cellData.setKeyinData(data.getKeyinData()); cellData.setKeyinData(data.getKeyinData());
cellData.setFormulaExp(data.getAmount() == null ? " " : data.getAmount().toString()); cellData.setFormulaExp(data.getAmount() == null ? "0.0" : data.getAmount().toString());
cellData.setCreateBy("admin"); cellData.setCreateBy("admin");
cellData.setCreateTime(new Date()); cellData.setCreateTime(new Date());
cellData.setUpdateBy("admin"); cellData.setUpdateBy("admin");
......
...@@ -176,10 +176,10 @@ ...@@ -176,10 +176,10 @@
function doConfirmEventHandler() { function doConfirmEventHandler() {
var r = /^00\d*|^\.\d+|\.$/; var r = /^00\d*|^\.\d+|\.$/;
if ($scope.detail.inputValue && parseFloat($scope.detail.inputValue).toFixed(2) > 9999999999999) { // if ($scope.detail.inputValue && parseFloat($scope.detail.inputValue).toFixed(2) > 9999999999999) {
SweetAlert.warning($translate.instant('CheckInputValueLength')); // SweetAlert.warning($translate.instant('CheckInputValueLength'));
return; // return;
} // }
if ($scope.detail.dataType === 5) { if ($scope.detail.dataType === 5) {
r = /^(-[1-9]\d*|[1-9]\d*|[0]{1,1})$/; r = /^(-[1-9]\d*|[1-9]\d*|[0]{1,1})$/;
if (!r.test($scope.detail.inputValue)) { if (!r.test($scope.detail.inputValue)) {
...@@ -200,7 +200,8 @@ ...@@ -200,7 +200,8 @@
if ($scope.detail.inputValue && (isNaN($scope.detail.inputValue) || r.test($scope.detail.inputValue))) { if ($scope.detail.inputValue && ((isNaN($scope.detail.inputValue) || r.test($scope.detail.inputValue))
||parseFloat($scope.detail.inputValue).toFixed(2) > 9999999999999)){
// $scope.detail.inputValue; // $scope.detail.inputValue;
$scope.detail.keyinData = $scope.detail.inputValue; $scope.detail.keyinData = $scope.detail.inputValue;
} else { } else {
......
...@@ -602,10 +602,6 @@ ...@@ -602,10 +602,6 @@
newVal = newVal.toFixed(4); newVal = newVal.toFixed(4);
} }
if(x.keyinData){
}
var oldVal = x.value; var oldVal = x.value;
oldVal = PWC.tryParseStringToNum(oldVal); oldVal = PWC.tryParseStringToNum(oldVal);
if (_.isBoolean(oldVal)) { if (_.isBoolean(oldVal)) {
......
...@@ -1168,6 +1168,10 @@ ...@@ -1168,6 +1168,10 @@
for (var i = 0; i < $scope.reportData.length; i++) { for (var i = 0; i < $scope.reportData.length; i++) {
var reportD = $scope.reportData[i]; var reportD = $scope.reportData[i];
if(manualData.keyinData && reportD.rowIndex === cellData.rowIndex
&& reportD.columnIndex === cellData.columnIndex){
reportD.keyinData = manualData.keyinData;
}
for (var j = 0; j < reportD.dataSourceList.length; j++) { for (var j = 0; j < reportD.dataSourceList.length; j++) {
if (reportD.dataSourceList[j].rowIndex === cellData.rowIndex if (reportD.dataSourceList[j].rowIndex === cellData.rowIndex
&& reportD.dataSourceList[j].columnIndex === cellData.columnIndex) { && reportD.dataSourceList[j].columnIndex === cellData.columnIndex) {
...@@ -1501,6 +1505,8 @@ ...@@ -1501,6 +1505,8 @@
//单元格详细信息点击确定时执行 //单元格详细信息点击确定时执行
$scope.confirm = function () { $scope.confirm = function () {
if(vatSessionService.month)
vatSessionService.project.period=vatSessionService.month;
vatApproveService.approvalStatus(vatSessionService.project.id,vatSessionService.project.period).success(function(result){ vatApproveService.approvalStatus(vatSessionService.project.id,vatSessionService.project.period).success(function(result){
if(result&&result=='committed'){ if(result&&result=='committed'){
SweetAlert.error('报表提审中!'); SweetAlert.error('报表提审中!');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment