陈少旭 il y a 10 mois
Parent
révision
93a67e48e4

+ 2 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Voir le fichier

@@ -3151,10 +3151,9 @@ export default {
3151 3151
         }
3152 3152
       }
3153 3153
     },judgmentsDrugStock(bby01, bbx01,name,count){
3154
-      console.log(count)
3155 3154
       for (let i = 0; i < this.zuobiao_drug.length; i++) {
3156 3155
           if (this.zuobiao_drug[i].bby01 == bby01) {
3157
-            if (this.zuobiao_drug[i].sysl < count){
3156
+            if (this.zuobiao_drug[i].sysl < parseInt(count)){
3158 3157
               this.$message.error(name + "库存不足,无法保存")
3159 3158
               return
3160 3159
             }
@@ -3164,7 +3163,7 @@ export default {
3164 3163
     },judgmentsGoodStock(bby01, bbx01,name,specification_name,count){
3165 3164
       for (let i = 0; i < this.zuobiao_project.length; i++) {
3166 3165
         if (this.zuobiao_project[i].bbx01 == bbx01 && this.zuobiao_project[i].bby06 == specification_name) {
3167
-          if (this.zuobiao_project[i].lsqty < count){
3166
+          if (this.zuobiao_project[i].lsqty < parseInt(count)){
3168 3167
             this.$message.error(name + "库存不足,无法保存")
3169 3168
             return
3170 3169
           }