d36573b4 by lxs Committed by lihua

数据定价更新

1 parent aa347f07
...@@ -730,7 +730,7 @@ const setSignatoryTableInfo = (row, isEdit = false) => { ...@@ -730,7 +730,7 @@ const setSignatoryTableInfo = (row, isEdit = false) => {
730 }, 730 },
731 { 731 {
732 label: "默认值", field: "defaultValue", width: 180, align: 'right', getName: (scope) => { 732 label: "默认值", field: "defaultValue", width: 180, align: 'right', getName: (scope) => {
733 return changeNum(scope.row.defaultValue, 2) || '-' 733 return scope.row.defaultValue !== null && scope.row.defaultValue !== '' ? changeNum(scope.row.defaultValue, 2) : '-'
734 } 734 }
735 }, 735 },
736 { 736 {
...@@ -842,11 +842,11 @@ const inputChange = (val, scope, field) => { ...@@ -842,11 +842,11 @@ const inputChange = (val, scope, field) => {
842 let strArr = val.split("."); 842 let strArr = val.split(".");
843 if (strArr.length > 1) { 843 if (strArr.length > 1) {
844 let right = strArr[1]; 844 let right = strArr[1];
845 if (right === "" || right.length < 2) { 845 if (right === "" || right.length < 3) {
846 row[field] = val = parseFloat(val || 0).toFixed(2); 846 row[field] = val = parseFloat(val || 0).toFixed(3);
847 } 847 }
848 } else { 848 } else {
849 row[field] = val = parseFloat(val || 0).toFixed(2); 849 row[field] = val = parseFloat(val || 0).toFixed(3);
850 } 850 }
851 } 851 }
852 852
...@@ -857,7 +857,7 @@ const inputEventChange = (val, scope, field) => { ...@@ -857,7 +857,7 @@ const inputEventChange = (val, scope, field) => {
857 row[field] = row[field].toString().replace(/\.{2,}/g, ".") 857 row[field] = row[field].toString().replace(/\.{2,}/g, ".")
858 row[field] = row[field].toString().replace(".", "$#$").replace(/\./g, "").replace("$#$", ".") 858 row[field] = row[field].toString().replace(".", "$#$").replace(/\./g, "").replace("$#$", ".")
859 row[field] = row[field].toString().replace(/^(\-)*(\d+)\.(\d\d\d\d\d\d).*$/, "$1$2.$3") 859 row[field] = row[field].toString().replace(/^(\-)*(\d+)\.(\d\d\d\d\d\d).*$/, "$1$2.$3")
860 row[field] = row[field].toString().replace(/^\D*(\d{0,12}(?:\.\d{0,2})?).*$/g, "$1") 860 row[field] = row[field].toString().replace(/^\D*(\d{0,12}(?:\.\d{0,3})?).*$/g, "$1")
861 } 861 }
862 862
863 // 设置表格合并下标 863 // 设置表格合并下标
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!