Browse Source

提交代码

陈少旭 1 year ago
parent
commit
93a67e48e4

+ 2 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

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