Преглед изворни кода

定额模板关联,自动大写

zhongzewei пре 7 година
родитељ
комит
2ff732036e
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      web/maintain/ration_repository/js/ration_template.js

+ 3 - 0
web/maintain/ration_repository/js/ration_template.js

@@ -84,6 +84,9 @@ const RationTemplate = (function () {
                 text = validateData(dataCode, text);
                 if (text !== '') {
                     rowExistData = true;
+                    if (dataCode === 'code') {//编码没有小写,自动转化为大写
+                        text = text.toString().toUpperCase();
+                    }
                     rowData[dataCode] = text;
                 } else {
                     if (dataCode === 'code') {