瀏覽代碼

定额模板关联,自动大写

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);
                 text = validateData(dataCode, text);
                 if (text !== '') {
                 if (text !== '') {
                     rowExistData = true;
                     rowExistData = true;
+                    if (dataCode === 'code') {//编码没有小写,自动转化为大写
+                        text = text.toString().toUpperCase();
+                    }
                     rowData[dataCode] = text;
                     rowData[dataCode] = text;
                 } else {
                 } else {
                     if (dataCode === 'code') {
                     if (dataCode === 'code') {