Selaa lähdekoodia

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

csx 2 vuotta sitten
vanhempi
commit
1801bf6911

+ 2 - 2
src/xt_pages/outpatientTool/components/drugDetail.vue Näytä tiedosto

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

+ 8 - 1
src/xt_pages/stock/drugs/query.vue Näytä tiedosto

@@ -319,6 +319,7 @@ import { min } from 'moment'
319 319
         }
320 320
         getDrugStockList(params).then(response=>{
321 321
           if(response.data.state == 1){
322
+            
322 323
              var list = response.data.data.list
323 324
            
324 325
              for(let i=0;i<list.length;i++){
@@ -340,7 +341,13 @@ import { min } from 'moment'
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 351
              var total = response.data.data.total
345 352
              this.total = total
346 353
              this.manufacturerList = response.data.data.manufacturerList

+ 11 - 9
src/xt_pages/stock/stockQuery.vue Näytä tiedosto

@@ -96,7 +96,6 @@
96 96
         :class="signAndWeighBoxPatients"
97 97
         border
98 98
         v-loading="WarehouseInfo.loading"
99
-        :span-method="objectOneMethod"
100 99
       >
101 100
         <el-table-column label="耗材类型" align="center">
102 101
           <template slot-scope="scope">
@@ -520,7 +519,14 @@ export default {
520 519
     getAllStockList(params).then(response=>{
521 520
       if(response.data.state == 1){
522 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 530
           var total = response.data.data.total
525 531
           this.total = total
526 532
           var manufacturerList = response.data.data.manufacturerList
@@ -691,9 +697,9 @@ export default {
691 697
      return storehouse_name
692 698
    },
693 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 703
     //  if(columnIndex === 1){
698 704
     //    if(rowIndex === 1){
699 705
     //      return {
@@ -753,10 +759,6 @@ export default {
753 759
     this.getlist()
754 760
    },
755 761
    arraySpanMethod({ row, column, rowIndex, columnIndex }) {
756
-     console.log("当前行",row)
757
-     console.log("当前列",column)
758
-     console.log("当前行号",rowIndex)
759
-     console.log("当前列号",columnIndex)
760 762
      if(rowIndex == 1 && columnIndex === 4){
761 763
        return {
762 764
         rowspan: 2,