Ver código fonte

提交代码

陈少旭 10 meses atrás
pai
commit
20500b3001

+ 7 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Ver arquivo

@@ -2601,7 +2601,7 @@ export default {
2601 2601
               for(let i = 0; i < this.prescriptions.length; i++){
2602 2602
                   for(let b = 0; b < this.prescriptions[i].advices.length; b++){
2603 2603
                     if(this.prescriptions[i].advices[b].advice_id == 0) {
2604
-                      this.judgmentsDrugStock(this.prescriptions[i].advices[b].drug.bby01, this.prescriptions[i].advices[b].drug.bbx01,this.prescriptions[i].advices[b].drug_name,this.prescriptions[i].advices[b].prescribing_number)
2604
+                      this.judgmentsDrugStock(this.prescriptions[i].advices[b].drug.bby01, this.prescriptions[i].advices[b].drug.bbx01,this.prescriptions[i].advices[b].drug_name,this.prescriptions[i].advices[b].prescribing_number,isLoading)
2605 2605
                     }
2606 2606
                   }
2607 2607
               }
@@ -2611,7 +2611,7 @@ export default {
2611 2611
                   for(let b = 0; b < this.prescriptions[i].project.length; b++){
2612 2612
                     if(this.prescriptions[i].project[b].type == 3){
2613 2613
                       if(this.prescriptions[i].project[b].id == 0) {
2614
-                        this.judgmentsGoodStock(this.prescriptions[i].project[b].good_info.bby01, this.prescriptions[i].project[b].good_info.bbx01,this.prescriptions[i].project[b].good_info.good_name,this.prescriptions[i].project[b].good_info.specification_name,this.prescriptions[i].project[b].total)
2614
+                        this.judgmentsGoodStock(this.prescriptions[i].project[b].good_info.bby01, this.prescriptions[i].project[b].good_info.bbx01,this.prescriptions[i].project[b].good_info.good_name,this.prescriptions[i].project[b].good_info.specification_name,this.prescriptions[i].project[b].total,isLoading)
2615 2615
                       }
2616 2616
                     }
2617 2617
                   }
@@ -3149,21 +3149,24 @@ export default {
3149 3149
           }
3150 3150
         }
3151 3151
       }
3152
-    },judgmentsDrugStock(bby01, bbx01,name,count){
3152
+    },judgmentsDrugStock(bby01, bbx01,name,count,isLoading){
3153 3153
       for (let i = 0; i < this.zuobiao_drug.length; i++) {
3154 3154
           if (this.zuobiao_drug[i].bby01 == bby01) {
3155 3155
             if (this.zuobiao_drug[i].sysl < parseInt(count)){
3156 3156
               this.$message.error(name + "库存不足,无法保存")
3157
+              isLoading = false
3157 3158
               return
3158 3159
             }
3159 3160
           }
3160 3161
       }
3161 3162
 
3162
-    },judgmentsGoodStock(bby01, bbx01,name,specification_name,count){
3163
+    },judgmentsGoodStock(bby01, bbx01,name,specification_name,count,isLoading){
3163 3164
       for (let i = 0; i < this.zuobiao_project.length; i++) {
3164 3165
         if (this.zuobiao_project[i].bbx01 == bbx01 && this.zuobiao_project[i].bby06 == specification_name) {
3165 3166
           if (this.zuobiao_project[i].lsqty < parseInt(count)){
3166 3167
             this.$message.error(name + "库存不足,无法保存")
3168
+            isLoading = false
3169
+
3167 3170
             return
3168 3171
           }
3169 3172
         }