Browse Source

定额模板关联,自动大写

zhongzewei 7 năm trước cách đây
mục cha
commit
2ff732036e

+ 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') {