Explorar o código

标段概况,提交清单精度失败

MaiXinRong %!s(int64=5) %!d(string=hai) anos
pai
achega
faade30ea1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/public/js/tender.js

+ 2 - 1
app/public/js/tender.js

@@ -161,7 +161,7 @@ $(document).ready(function() {
 
         spread.bind(spreadNS.Events.EditEnded, function (e, info) {
             const value = _.toNumber(info.editingText);
-            if (_.isInteger(value)) {
+            if (!_.isInteger(value)) {
                 toast('请输入0-6的整数', 'warning');
                 sheet.setText(info.row, info.col, '0');
             } else if (value > 6) {
@@ -246,6 +246,7 @@ $(document).ready(function() {
             precision.zu.value = _.toNumber(sheet.getText(11, 2));
             precision.xitong.value = _.toNumber(sheet.getText(12, 2));
             precision.other.value = _.toNumber(sheet.getText(13, 2));
+            return precision;
         }
 
         return {loadPrecisonProperty, setReadOnly, getNewPrecisionData, };