Browse Source

518合并代码

XMLWAN 2 years ago
parent
commit
8f5969fa1a

+ 5 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

2984
     }, changeAllGoodInfoTableDataTwo(row) {
2984
     }, changeAllGoodInfoTableDataTwo(row) {
2985
       this.teamList = row
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
           if(selection){
2990
           if(selection){
2990
               selection.forEach(row => {
2991
               selection.forEach(row => {
2991
                 if (row.sum_count <= 0) {
2992
                 if (row.sum_count <= 0) {
2998
               })
2999
               })
2999
           }
3000
           }
3000
         }
3001
         }
3002
+       }
3003
+      
3001
         // 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){
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
         //    if (row.stock_count <= 0) {
3005
         //    if (row.stock_count <= 0) {
3003
         //     if (row.type == 3) {
3006
         //     if (row.type == 3) {

+ 14 - 11
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

2998
         this.teamList = row
2998
         this.teamList = row
2999
       },
2999
       },
3000
       selectChange(selection, row) {
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
         // 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){
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
         //    if (row.stock_count <= 0) {
3018
         //    if (row.stock_count <= 0) {
3016
         //     if (row.type == 3) {
3019
         //     if (row.type == 3) {

+ 1 - 1
src/xt_pages/outpatientTool/components/drugDetail.vue View File

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 View File

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