Просмотр исходного кода

定额模板关联,自动大写

zhongzewei 7 лет назад
Родитель
Сommit
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') {