Browse Source

Merge tag '20250223-02' into develop

cc12458 1 year ago
parent
commit
c98de923dc
2 changed files with 3 additions and 1 deletions
  1. 2 0
      src/components/ChineseMedicine.vue
  2. 1 1
      src/views/diagnosis/Prescribing.vue

+ 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;
           }
         });