Explorar o código

定额模板关联,自动大写

zhongzewei %!s(int64=7) %!d(string=hai) anos
pai
achega
2ff732036e
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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') {