XMLWAN 2 лет назад
Родитель
Сommit
8f5969fa1a

+ 5 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue Просмотреть файл

@@ -2984,8 +2984,9 @@ export default {
2984 2984
     }, changeAllGoodInfoTableDataTwo(row) {
2985 2985
       this.teamList = row
2986 2986
     },
2987
-         selectChange(selection, row) {
2988
-        if(row.sum_count <=0){
2987
+    selectChange(selection, row) {
2988
+       if(row.type == 3){
2989
+         if(row.sum_count <=0){
2989 2990
           if(selection){
2990 2991
               selection.forEach(row => {
2991 2992
                 if (row.sum_count <= 0) {
@@ -2998,6 +2999,8 @@ export default {
2998 2999
               })
2999 3000
           }
3000 3001
         }
3002
+       }
3003
+      
3001 3004
         // if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278){
3002 3005
         //    if (row.stock_count <= 0) {
3003 3006
         //     if (row.type == 3) {

+ 14 - 11
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Просмотреть файл

@@ -2998,19 +2998,22 @@
2998 2998
         this.teamList = row
2999 2999
       },
3000 3000
       selectChange(selection, row) {
3001
-        if(row.sum_count <=0){
3002
-          if(selection){
3003
-              selection.forEach(row => {
3004
-                if (row.sum_count <= 0) {
3005
-                  this.$refs.tables.toggleRowSelection(row)
3006
-                }else{
3007
-                  this.$refs.tables.clearSelection()
3008
-                }
3009
-                this.$message.error(row.project_name + '库存不足')
3010
-                return
3011
-              })
3001
+        if(row.type == 3){
3002
+          if(row.sum_count <=0){
3003
+            if(selection){
3004
+                selection.forEach(row => {
3005
+                  if (row.sum_count <= 0) {
3006
+                    this.$refs.tables.toggleRowSelection(row)
3007
+                  }else{
3008
+                    this.$refs.tables.clearSelection()
3009
+                  }
3010
+                  this.$message.error(row.project_name + '库存不足')
3011
+                  return
3012
+                })
3013
+            }
3012 3014
           }
3013 3015
         }
3016
+       
3014 3017
         // if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278){
3015 3018
         //    if (row.stock_count <= 0) {
3016 3019
         //     if (row.type == 3) {

+ 1 - 1
src/xt_pages/outpatientTool/components/drugDetail.vue Просмотреть файл

@@ -207,7 +207,7 @@ import { min } from 'moment'
207 207
                }
208 208
              }
209 209
             }
210
-           
210
+            console.log("tabl2323323232",this.tableData)
211 211
           }
212 212
         })  
213 213
       },

+ 4 - 1
src/xt_pages/outpatientTool/components/goodDetail.vue Просмотреть файл

@@ -3,7 +3,6 @@
3 3
         <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
4 4
             <div>
5 5
                 <el-input size="small" style="width:150px;" v-model="keywords" 
6
-                          @keyup.enter.native='searchAction'
7 6
                           placeholder="请输入耗材名称"
8 7
                           class="filter-item"/>
9 8
                  <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
@@ -182,6 +181,7 @@ import {getGoodDetailSummary} from "@/api/stock"
182 181
             }
183 182
            }
184 183
            this.patients = response.data.data.patients
184
+           console.log("@33232322332",this.tableData)
185 185
          }
186 186
        })   
187 187
      },
@@ -257,6 +257,9 @@ import {getGoodDetailSummary} from "@/api/stock"
257 257
           }
258 258
         }
259 259
         return packing_unit
260
+      },
261
+      searchAction(){
262
+        this.getlist()
260 263
       }
261 264
     },
262 265
     created() {