Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 2 years ago
parent
commit
1801bf6911

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

262
        return type_name
262
        return type_name
263
      },
263
      },
264
      getCount(val,min_number,max_unit,min_unit){
264
      getCount(val,min_number,max_unit,min_unit){
265
-      
265
+    
266
        var total = 0
266
        var total = 0
267
        var min_str = ""
267
        var min_str = ""
268
        var max_str = ""
268
        var max_str = ""
271
            total += parseInt(val[i].prescribing_number)
271
            total += parseInt(val[i].prescribing_number)
272
          }
272
          }
273
        }
273
        }
274
-    
275
         if (total < min_number){
274
         if (total < min_number){
276
           min_str = total + min_unit
275
           min_str = total + min_unit
277
         }
276
         }
279
           min_str = ""
278
           min_str = ""
280
           max_str = ""
279
           max_str = ""
281
         }
280
         }
281
+       
282
         if (total >=min_number) {
282
         if (total >=min_number) {
283
            if(parseInt(total/min_number)!=0){
283
            if(parseInt(total/min_number)!=0){
284
               max_str = parseInt(total/min_number) + max_unit
284
               max_str = parseInt(total/min_number) + max_unit

+ 8 - 1
src/xt_pages/stock/drugs/query.vue View File

319
         }
319
         }
320
         getDrugStockList(params).then(response=>{
320
         getDrugStockList(params).then(response=>{
321
           if(response.data.state == 1){
321
           if(response.data.state == 1){
322
+            
322
              var list = response.data.data.list
323
              var list = response.data.data.list
323
            
324
            
324
              for(let i=0;i<list.length;i++){
325
              for(let i=0;i<list.length;i++){
340
                  }
341
                  }
341
                }
342
                }
342
              }
343
              }
343
-             this.tableList = list
344
+            var arr = []
345
+             for(let i=0;i<list.length;i++){
346
+               if(list[i].drug_warehouse_info.length > 0){
347
+                  arr.push(list[i]) 
348
+               }
349
+             }
350
+             this.tableList = arr
344
              var total = response.data.data.total
351
              var total = response.data.data.total
345
              this.total = total
352
              this.total = total
346
              this.manufacturerList = response.data.data.manufacturerList
353
              this.manufacturerList = response.data.data.manufacturerList

+ 11 - 9
src/xt_pages/stock/stockQuery.vue View File

96
         :class="signAndWeighBoxPatients"
96
         :class="signAndWeighBoxPatients"
97
         border
97
         border
98
         v-loading="WarehouseInfo.loading"
98
         v-loading="WarehouseInfo.loading"
99
-        :span-method="objectOneMethod"
100
       >
99
       >
101
         <el-table-column label="耗材类型" align="center">
100
         <el-table-column label="耗材类型" align="center">
102
           <template slot-scope="scope">
101
           <template slot-scope="scope">
520
     getAllStockList(params).then(response=>{
519
     getAllStockList(params).then(response=>{
521
       if(response.data.state == 1){
520
       if(response.data.state == 1){
522
           var list = response.data.data.list
521
           var list = response.data.data.list
523
-          this.tableList = list
522
+          var arr = []
523
+          for(let i=0;i<list.length;i++){
524
+            if(list[i].warehouse_info.length > 0 ){
525
+              arr.push(list[i])
526
+            }
527
+          }
528
+         this.tableList = arr
529
+        
524
           var total = response.data.data.total
530
           var total = response.data.data.total
525
           this.total = total
531
           this.total = total
526
           var manufacturerList = response.data.data.manufacturerList
532
           var manufacturerList = response.data.data.manufacturerList
691
      return storehouse_name
697
      return storehouse_name
692
    },
698
    },
693
    objectOneMethod({ row, column, rowIndex, columnIndex }) {
699
    objectOneMethod({ row, column, rowIndex, columnIndex }) {
694
-     console.log("column",column)
695
-     console.log("rowindex",rowIndex)
696
-     console.log("columnninex",columnIndex)
700
+    //  console.log("column",column)
701
+    //  console.log("rowindex",rowIndex)
702
+    //  console.log("columnninex",columnIndex)
697
     //  if(columnIndex === 1){
703
     //  if(columnIndex === 1){
698
     //    if(rowIndex === 1){
704
     //    if(rowIndex === 1){
699
     //      return {
705
     //      return {
753
     this.getlist()
759
     this.getlist()
754
    },
760
    },
755
    arraySpanMethod({ row, column, rowIndex, columnIndex }) {
761
    arraySpanMethod({ row, column, rowIndex, columnIndex }) {
756
-     console.log("当前行",row)
757
-     console.log("当前列",column)
758
-     console.log("当前行号",rowIndex)
759
-     console.log("当前列号",columnIndex)
760
      if(rowIndex == 1 && columnIndex === 4){
762
      if(rowIndex == 1 && columnIndex === 4){
761
        return {
763
        return {
762
         rowspan: 2,
764
         rowspan: 2,