Pārlūkot izejas kodu

Merge branch 'hotfix/20250223-02'

cc12458 1 gadu atpakaļ
vecāks
revīzija
46192a9ebe

+ 2 - 0
src/components/ChineseMedicine.vue

@@ -1327,6 +1327,8 @@ export default {
     },
     doseBlur(scope) {
       let parent = this.$parent;
+      if (!+scope.row.dose) scope.row.dose = '';
+      if (typeof scope.row.dose === 'string') scope.row.dose = scope.row.dose.trim();
       if (scope.row.dose === "") {
         this.$message.error("请输入剂量");
 

+ 1 - 1
src/views/diagnosis/Prescribing.vue

@@ -1723,7 +1723,7 @@ export default {
           if (item1.color == "red") {
             noFull = true;
           }
-          if (!item1.dose && item1.name) {
+          if (!+item1.dose && item1.name) {
             hasDoseNum = false;
           }
         });