XMLWAN 2 gadus atpakaļ
vecāks
revīzija
aa5fbbcad5

+ 8 - 0
src/api/drug/drug.js Parādīt failu

627
     params: params
627
     params: params
628
   })
628
   })
629
 }
629
 }
630
+
631
+export function getDrugInventoryWarehouseInfoList(params) {
632
+  return request({
633
+    url: '/api/stock/getdruginfolist',
634
+    method: 'Get',
635
+    params: params
636
+  })
637
+}

+ 8 - 0
src/api/stock.js Parādīt failu

1064
     params: params
1064
     params: params
1065
   })
1065
   })
1066
 }
1066
 }
1067
+
1068
+export function getwarehouseinfolist(params) {
1069
+  return request({
1070
+    url: '/api/stock/getwarehouseinfolist',
1071
+    method: 'get',
1072
+    params: params
1073
+  })
1074
+}

+ 102 - 62
src/xt_pages/dialysis/details/consumable/dialysisDrug.vue Parādīt failu

83
 
83
 
84
         <el-table-column label="推送医嘱" align="center" width="1280">
84
         <el-table-column label="推送医嘱" align="center" width="1280">
85
            <template slot-scope="scope">
85
            <template slot-scope="scope">
86
-             {{getAdviceContent(scope.row.patient_id)}}
87
-             {{getHisAdviceContent(scope.row.patient_id)}}
86
+             <span v-if="config.is_open !=1">{{getAdviceContent(scope.row.patient_id)}}</span> 
87
+            <span v-if="config.is_open == 1"> {{getHisAdviceContent(scope.row.patient_id)}}</span>
88
            </template>
88
            </template>
89
         </el-table-column>
89
         </el-table-column>
90
      
90
      
233
         adviceList:[],
233
         adviceList:[],
234
         templateList:[],
234
         templateList:[],
235
         startdialogVisible:false,
235
         startdialogVisible:false,
236
-        schedule_type:"",
237
-        partion_type:"",
236
+        schedule_type:0,
237
+        partion_type:0,
238
         druglist:[],
238
         druglist:[],
239
         tableList:[],
239
         tableList:[],
240
+        config:{},
240
       }
241
       }
241
     },
242
     },
242
     created() {
243
     created() {
257
       this.getlist()
258
       this.getlist()
258
     },
259
     },
259
     methods: {
260
     methods: {
261
+      open(){
262
+
263
+      },
260
       getlist(){
264
       getlist(){
261
         getDialysisAdviceTemplateList(this.query).then(response=>{
265
         getDialysisAdviceTemplateList(this.query).then(response=>{
262
           if(response.data.state == 1){
266
           if(response.data.state == 1){
267
             var adviceList = response.data.data.adviceList
271
             var adviceList = response.data.data.adviceList
268
             this.adviceList = adviceList
272
             this.adviceList = adviceList
269
             var templateList = response.data.data.templateList
273
             var templateList = response.data.data.templateList
274
+            var druglist = response.data.data.drugList
275
+            for(let i=0;i<templateList.length;i++){
276
+              templateList[i].advice_desc = ""
277
+             for(let j=0;j<druglist.length;j++){
278
+               if(templateList[i].drug_id == druglist[j].id){
279
+                 templateList[i].advice_desc = druglist[j].dose + druglist[j].dose_unit +"*"+druglist[j].min_unit +druglist[j].min_number+"/"+druglist[j].max_unit
280
+               }
281
+             }
282
+            }
283
+            console.log("医嘱模版",templateList)
270
             this.templateList = templateList
284
             this.templateList = templateList
285
+           
286
+            this.config = response.data.data.config
287
+            
271
           }
288
           }
272
         })
289
         })
273
       },
290
       },
355
              console.log("listwo222222",list)
372
              console.log("listwo222222",list)
356
              var adviceList = response.data.data.adviceList
373
              var adviceList = response.data.data.adviceList
357
              console.log("adviceList",adviceList)
374
              console.log("adviceList",adviceList)
358
-             if(adviceList!=null && adviceList.length > 0){
359
-               let dataInfo = {}
360
-                adviceList.forEach((item, index) => {
361
-                let { advice_name } = item
362
-                if (!dataInfo[advice_name]) {
363
-                  dataInfo[advice_name] = {
364
-                    advice_name:item.advice_name,
365
-                    child: [],
366
-                    count:0,
367
-                    drug_id:item.drug_id,
368
-                    specification_name:item.advice_desc,
375
+             var config = response.data.data.config
376
+             console.log("config",config)
377
+             if(config.is_open!=1){
378
+               if(adviceList!=null && adviceList.length > 0){
379
+                let dataInfo = {}
380
+                  adviceList.forEach((item, index) => {
381
+                  let { advice_name } = item
382
+                  if (!dataInfo[advice_name]) {
383
+                    dataInfo[advice_name] = {
384
+                      advice_name:item.advice_name,
385
+                      child: [],
386
+                      count:0,
387
+                      drug_id:item.drug_id,
388
+                      specification_name:item.advice_desc,
389
+                      patient_id:item.patient_id,
390
+                    }
391
+                  }
392
+                })
393
+                let arr = Object.values(dataInfo)
394
+                if(arr.length > 0){
395
+                  for(let i=0;i<adviceList.length;i++){
396
+                    for(let j=0;j<arr.length;j++){
397
+                      if(adviceList[i].advice_name == arr[j].advice_name){
398
+                          arr[j].child.push(adviceList[i])
399
+                      }
400
+                    }
369
                   }
401
                   }
370
                 }
402
                 }
371
-              })
372
-              let arr = Object.values(dataInfo)
373
-               if(arr.length > 0){
374
-                 for(let i=0;i<adviceList.length;i++){
403
+               
404
+                this.tableList = []
405
+                for(let i=0;i<list.length;i++){
375
                   for(let j=0;j<arr.length;j++){
406
                   for(let j=0;j<arr.length;j++){
376
-                     if(adviceList[i].advice_name == arr[j].advice_name){
377
-                        arr[j].child.push(adviceList[i])
378
-                     }
407
+                    if(list[i].patient_id == arr[j].patient_id){
408
+                      this.tableList.push(arr[j])
409
+                    }
379
                   }
410
                   }
380
-                 }
381
-               }
382
-              console.log("xinar232323232",arr)
383
-              this.tableList = []
384
-              this.tableList = arr
411
+                }
412
+               
413
+              }
385
              }
414
              }
415
+          
386
            
416
            
387
 
417
 
388
 
418
 
389
              var templateList = response.data.data.templateList
419
              var templateList = response.data.data.templateList
390
-           
391
-              console.log("templateList",templateList)
392
-             if(templateList!=null && templateList.length > 0){
393
-                let dataInfoOne = {}
394
-                adviceList.forEach((item, index) => {
395
-                let { advice_name } = item
396
-                if (!dataInfoOne[advice_name]) {
397
-                  dataInfoOne[advice_name] = {
398
-                    advice_name:item.advice_name,
399
-                    child: [],
400
-                    count:0,
401
-                    specification_name:this.getSpecification(item.drug_id),
402
-                    drug_id:item.drug_id,
420
+             console.log("templatelist",templateList)
421
+             if(config.is_open == 1){
422
+               if(templateList!=null && templateList.length > 0){
423
+                  let dataInfoOne = {}
424
+                  templateList.forEach((item, index) => {
425
+                  let { advice_name } = item
426
+                  if (!dataInfoOne[advice_name]) {
427
+                    dataInfoOne[advice_name] = {
428
+                      advice_name:item.advice_name,
429
+                      child: [],
430
+                      count:0,
431
+                      specification_name:this.getSpecification(item.drug_id),
432
+                      drug_id:item.drug_id,
433
+                      patient_id:item.patient_id,
434
+                    }
435
+                  }
436
+                })
437
+                let hisarr = Object.values(dataInfoOne)
438
+                if(hisarr.length > 0){
439
+                  for(let i=0;i<templateList.length;i++){
440
+                    for(let j=0;j<hisarr.length;j++){
441
+                      if(templateList[i].drug_id == hisarr[j].drug_id){
442
+                          hisarr[j].child.push(templateList[i])
443
+                      }
444
+                    }
403
                   }
445
                   }
404
                 }
446
                 }
405
-              })
406
-              let hisarr = Object.values(dataInfoOne)
407
-               if(hisarr.length > 0){
408
-                 for(let i=0;i<templateList.length;i++){
447
+                console.log("hisarr",hisarr)
448
+                this.tableList = []
449
+                 for(let i=0;i<list.length;i++){
409
                   for(let j=0;j<hisarr.length;j++){
450
                   for(let j=0;j<hisarr.length;j++){
410
-                     if(templateList[i].advice_name == hisarr[j].advice_name){
411
-                        hisarr[j].child.push(templateList[i])
412
-                     }
451
+                    if(list[i].patient_id == hisarr[j].patient_id){
452
+                      this.tableList.push(hisarr[j])
453
+                    }
413
                   }
454
                   }
414
-                 }
415
-               }
416
-              this.tableList = []
417
-              console.log("hisarrw22222222",hisarr)
418
-              this.tableList = hisarr
455
+                }
456
+              }
419
              }
457
              }
458
+     
420
            
459
            
421
            
460
            
422
             
461
             
465
       formatJson(filterVal, jsonData) {
504
       formatJson(filterVal, jsonData) {
466
         return jsonData.map(v => filterVal.map(j => v[j]));
505
         return jsonData.map(v => filterVal.map(j => v[j]));
467
       },
506
       },
507
+   
468
       getAdviceContent(patient_id){
508
       getAdviceContent(patient_id){
469
         var newArr = []
509
         var newArr = []
470
         var his_str = ""
510
         var his_str = ""
471
-        if(this.templateList!=null && this.templateList.length > 0){
472
-          for(let i=0;i<this.templateList.length;i++){
473
-            if(patient_id == this.templateList[i].patient_id){
474
-              newArr.push(this.templateList[i])
511
+        if(this.adviceList!=null && this.adviceList.length > 0){
512
+          for(let i=0;i<this.adviceList.length;i++){
513
+            if(patient_id == this.adviceList[i].patient_id){
514
+              newArr.push(this.adviceList[i])
475
             }
515
             }
476
           }
516
           }
477
         }
517
         }
478
         if(newArr!=null && newArr.length > 0){
518
         if(newArr!=null && newArr.length > 0){
479
           for(let i=0;i<newArr.length;i++){
519
           for(let i=0;i<newArr.length;i++){
480
-            his_str += newArr[i].advice_name +''+newArr[i].advice_desc +''+ newArr[i].prescribing_number +''+newArr[i].prescribing_number_unit + "。"
520
+            his_str += newArr[i].advice_name +' '+newArr[i].advice_desc +' '+ newArr[i].prescribing_number +' '+newArr[i].prescribing_number_unit + "。"
481
           }
521
           }
482
         }
522
         }
483
         return his_str
523
         return his_str
484
       },
524
       },
485
       getHisAdviceContent(patient_id){
525
       getHisAdviceContent(patient_id){
486
         var arr = []
526
         var arr = []
487
-        for(let i=0;i<this.adviceList.length;i++){
488
-          if(patient_id == this.adviceList[i].patient_id){
489
-             arr.push(this.adviceList[i])
527
+        for(let i=0;i<this.templateList.length;i++){
528
+          if(patient_id == this.templateList[i].patient_id){
529
+             arr.push(this.templateList[i])
490
           }
530
           }
491
         } 
531
         } 
492
         var str = ""
532
         var str = ""
493
         if(arr!=null && arr.length > 0){
533
         if(arr!=null && arr.length > 0){
494
           for(let i=0;i<arr.length;i++){
534
           for(let i=0;i<arr.length;i++){
495
-            str += arr[i].advice_name +''+ arr[i].advice_desc+'' + arr[i].prescribing_number+'' + arr[i].prescribing_number_unit +  "。"
535
+            str += arr[i].advice_name +' '+ arr[i].advice_desc+' ' + arr[i].prescribing_number+' ' + arr[i].prescribing_number_unit +  "。"
496
           }
536
           }
497
         }
537
         }
498
         return str 
538
         return str 
501
         var specification_name = ""
541
         var specification_name = ""
502
         for(let i=0;i<this.druglist.length;i++){
542
         for(let i=0;i<this.druglist.length;i++){
503
           if(id == this.druglist[i].id){
543
           if(id == this.druglist[i].id){
504
-            specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_nubmer +this.druglist[i].min_unit +"/"+this.druglist[i].max_unt
544
+            specification_name = this.druglist[i].dose+this.druglist[i].dose_unit +"*"+this.druglist[i].min_number+this.druglist[i].min_unit +"/"+this.druglist[i].max_unit
505
           }
545
           }
506
         }
546
         }
507
         return specification_name
547
         return specification_name

+ 52 - 24
src/xt_pages/dialysis/details/consumable/dialysisGood.vue Parādīt failu

43
         </div>
43
         </div>
44
       </div>
44
       </div>
45
       <div>
45
       <div>
46
+        <el-button size="small" icon="el-icon-printer" @click="exportList" type="primary">打印</el-button>
46
         <el-button size="small" icon="el-icon-printer" @click="exportList" type="primary">导出</el-button>
47
         <el-button size="small" icon="el-icon-printer" @click="exportList" type="primary">导出</el-button>
47
         <el-button size="small" type="primary" @click="statistics">统计表</el-button>
48
         <el-button size="small" type="primary" @click="statistics">统计表</el-button>
48
       </div>
49
       </div>
279
       }
280
       }
280
     },
281
     },
281
     created() {
282
     created() {
282
-      this.dialysate_formulation =  getDataConfig(  
283
-          'hemodialysis',
284
-          'dialysate_formulation'
285
-      )
286
-      this.body_fluid_option = this.$store.getters.body_fluid
287
-      this.displace_liqui_part_option = this.$store.getters.displace_liqui
288
-      this.blood_access_option = this.$store.getters.blood_access
289
-      this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
290
-      this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
291
-      var filedList = this.$store.getters.xt_user.fileds
292
-      for (let i = 0; i < filedList.length; i++) {
293
-        if ( filedList[i].module == 1 && filedList[i].is_show == 1 && (filedList[i].filed_name_cn == '透析器/灌流器' || filedList[i].filed_name_cn == '透析器' || filedList[i].filed_name_cn == '灌流器'  || filedList[i].filed_name_cn == '钾' || filedList[i].filed_name_cn == '钠' || filedList[i].filed_name_cn == '钙' || filedList[i].filed_name_cn == '葡萄糖'  || filedList[i].filed_name_cn == '穿刺针'  || filedList[i].filed_name_cn == '穿刺针支数')) {
294
-          this.rowList.push(filedList[i])
295
-        }
296
-      }
297
-      console.log("行33333333333333",this.rowList)
298
-      this.getAllZone()
299
       let date = uParseTime(new Date(), "{y}-{m}-{d}")
283
       let date = uParseTime(new Date(), "{y}-{m}-{d}")
300
       var newDate = new Date();
284
       var newDate = new Date();
301
       var y = newDate.getFullYear();
285
       var y = newDate.getFullYear();
309
       this.query.schedule_type = 0
293
       this.query.schedule_type = 0
310
       this.query.partition_id = 0
294
       this.query.partition_id = 0
311
       this.query.page = 1
295
       this.query.page = 1
296
+      this.getAllZone()
297
+      this.dialysate_formulation =  getDataConfig(  
298
+            'hemodialysis',
299
+            'dialysate_formulation'
300
+      )
301
+      this.body_fluid_option = this.$store.getters.body_fluid
302
+      this.displace_liqui_part_option = this.$store.getters.displace_liqui
303
+      this.blood_access_option = this.$store.getters.blood_access
304
+      this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
305
+      this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
306
+      var filedList = this.$store.getters.xt_user.fileds
307
+      for (let i = 0; i < filedList.length; i++) {
308
+        if ( filedList[i].module == 1 && filedList[i].is_show == 1 && (filedList[i].filed_name_cn == '透析器/灌流器' || filedList[i].filed_name_cn == '透析器' || filedList[i].filed_name_cn == '灌流器'  || filedList[i].filed_name_cn == '钾' || filedList[i].filed_name_cn == '钠' || filedList[i].filed_name_cn == '钙' || filedList[i].filed_name_cn == '葡萄糖'  || filedList[i].filed_name_cn == '穿刺针'  || filedList[i].filed_name_cn == '穿刺针支数')) {
309
+          this.rowList.push(filedList[i])
310
+        }
311
+      }
312
       this.getlist()
312
       this.getlist()
313
     },
313
     },
314
     methods: {
314
     methods: {
315
+      open(){
316
+       this.getlist()
317
+      },
315
       getlist(){
318
       getlist(){
316
         getPatientDialysisSolutionGroupList(this.query).then(response=>{
319
         getPatientDialysisSolutionGroupList(this.query).then(response=>{
317
            if(response.data.state == 1){
320
            if(response.data.state == 1){
318
              var list = response.data.data.list
321
              var list = response.data.data.list
319
-             console.log("list23322323ow",list)
320
-             console.log("rowlist22222wode",this.rowList)
321
              if(list!=null){
322
              if(list!=null){
322
                for(let i=0;i<list.length;i++){
323
                for(let i=0;i<list.length;i++){
323
                  list[i].rowList = []
324
                  list[i].rowList = []
324
                  list[i].rowList = this.rowList
325
                  list[i].rowList = this.rowList
325
                }
326
                }
326
              }
327
              }
327
-             console.log("h哈哈哈哈哈哈哈",list)
328
+             this.list= []
328
              this.list = list
329
              this.list = list
329
              var total = response.data.data.total
330
              var total = response.data.data.total
330
              this.total = total
331
              this.total = total
399
           partion_type:this.partion_type,
400
           partion_type:this.partion_type,
400
           selected_date:this.query.schedule_date,
401
           selected_date:this.query.schedule_date,
401
         }
402
         }
402
-        console.log("params2332232wo",params)
403
+        // console.log("params2332232wo",params)
403
        getDialysisGoodTotalCount(params).then(response=>{
404
        getDialysisGoodTotalCount(params).then(response=>{
404
           if(response.data.state == 1){
405
           if(response.data.state == 1){
405
             this.startDialogVisible = true
406
             this.startDialogVisible = true
415
                  list[i].dialysis_dialyszers_arr = []
416
                  list[i].dialysis_dialyszers_arr = []
416
                  list[i].dialyzer_perfusion_apparatus_arr = []
417
                  list[i].dialyzer_perfusion_apparatus_arr = []
417
                  list[i].dialysis_irrigation_arr = []
418
                  list[i].dialysis_irrigation_arr = []
419
+                 list[i].puncture_needle_arr = []
418
                  if(list[i].dialysis_solution.dialysis_dialyszers!=""){
420
                  if(list[i].dialysis_solution.dialysis_dialyszers!=""){
419
                    list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
421
                    list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
420
                  }
422
                  }
424
                  if(list[i].dialysis_solution.dialysis_irrigation!=""){
426
                  if(list[i].dialysis_solution.dialysis_irrigation!=""){
425
                    list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
427
                    list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
426
                  }
428
                  }
429
+                 if(list[i].dialysis_solution.puncture_needle!="" ){
430
+                    list[i].puncture_needle_arr = list[i].dialysis_solution.puncture_needle.split(",")
431
+                 }
427
                  kaliumCount += parseInt(list[i].dialysis_solution.kalium) 
432
                  kaliumCount += parseInt(list[i].dialysis_solution.kalium) 
428
                  sodiumCount += parseInt(list[i].dialysis_solution.sodium)
433
                  sodiumCount += parseInt(list[i].dialysis_solution.sodium)
429
                  calciumCount +=parseInt(list[i].dialysis_solution.calcium)
434
                  calciumCount +=parseInt(list[i].dialysis_solution.calcium)
435
             var dialysisDialyszersArr = []
440
             var dialysisDialyszersArr = []
436
             var dialyzerPerfusionApparaArr = []
441
             var dialyzerPerfusionApparaArr = []
437
             var dialysisIrrigationArr = []
442
             var dialysisIrrigationArr = []
443
+            var punctureNeedleArr = []
438
             for(let i=0;i<list.length;i++){
444
             for(let i=0;i<list.length;i++){
439
              for(let j=0;j<list[i].dialysis_dialyszers_arr.length;j++){
445
              for(let j=0;j<list[i].dialysis_dialyszers_arr.length;j++){
440
-              console.log("list23323232",list[i].dialysis_dialyszers_arr[j])
446
+             
441
                dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])  
447
                dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])  
442
              }
448
              }
443
              for(let z=0;z<list[i].dialyzer_perfusion_apparatus_arr.length;z++){
449
              for(let z=0;z<list[i].dialyzer_perfusion_apparatus_arr.length;z++){
446
              for(let y=0;y<list[i].dialysis_irrigation_arr.length;y++){
452
              for(let y=0;y<list[i].dialysis_irrigation_arr.length;y++){
447
               dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
453
               dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
448
              }
454
              }
455
+             for(let h=0;h<list[i].puncture_needle_arr.length;h++){
456
+               punctureNeedleArr.push(list[i].puncture_needle_arr[h])   
457
+             }
449
             }
458
             }
450
             console.log("透析器",dialysisDialyszersArr)
459
             console.log("透析器",dialysisDialyszersArr)
451
             console.log("透析器/灌流器",dialyzerPerfusionApparaArr)
460
             console.log("透析器/灌流器",dialyzerPerfusionApparaArr)
452
             console.log("灌流器",dialysisIrrigationArr)
461
             console.log("灌流器",dialysisIrrigationArr)
453
-             
462
+            console.log("穿刺针",punctureNeedleArr)  
454
            let obj = {}
463
            let obj = {}
455
            let objOne = {}
464
            let objOne = {}
456
            let objTwo = {}
465
            let objTwo = {}
466
+           let objThree = {}
457
            for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
467
            for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
458
             if(obj[dialysisDialyszersArr[i]]){
468
             if(obj[dialysisDialyszersArr[i]]){
459
                obj[dialysisDialyszersArr[i]] +=1
469
                obj[dialysisDialyszersArr[i]] +=1
505
               Arr.push(a);
515
               Arr.push(a);
506
             }
516
             }
507
             console.log("newa",Arr)
517
             console.log("newa",Arr)
518
+          
519
+          for(let i = 0 ; i < punctureNeedleArr.length; i++){
520
+            if(objThree[punctureNeedleArr[i]]){
521
+               objThree[punctureNeedleArr[i]] +=1
522
+            }else{
523
+              objThree[punctureNeedleArr[i]] = 1
524
+            }
525
+           }
526
+           for (let i in objThree) {
527
+              let a = {};
528
+              a[i] = objThree[i];
529
+              a.name = "穿刺针"
530
+              a.count = objThree[i]
531
+              a.specification_name = i
532
+              Arr.push(a);
533
+            }
534
+            
535
+
508
            var objfive = {name:"钾(mmol/L)",specification_name:"2.0",count:""}
536
            var objfive = {name:"钾(mmol/L)",specification_name:"2.0",count:""}
509
            var objsix =  {name:"钠(mmol/L)",specification_name:"1.25",count:""}
537
            var objsix =  {name:"钠(mmol/L)",specification_name:"1.25",count:""}
510
            var objseven = {name:"钙(mmol/L)",specification_name:"1.5",count:""}
538
            var objseven = {name:"钙(mmol/L)",specification_name:"1.5",count:""}
525
 
553
 
526
               this.tableList.push(Arr[i])
554
               this.tableList.push(Arr[i])
527
             }
555
             }
528
-            // this.tableList = Arr
556
+            
529
            
557
            
530
           }
558
           }
531
        })
559
        })

+ 6 - 6
src/xt_pages/dialysis/details/consumable/index.vue Parādīt failu

7
      <div class="app-container ">
7
      <div class="app-container ">
8
         <el-tabs v-model="activeName" @tab-click="handleClick">
8
         <el-tabs v-model="activeName" @tab-click="handleClick">
9
             <el-tab-pane label="透析耗材" name="first">
9
             <el-tab-pane label="透析耗材" name="first">
10
-              <DialysisGood></DialysisGood>
10
+              <DialysisGood ref="mychild"></DialysisGood>
11
             </el-tab-pane>
11
             </el-tab-pane>
12
             <el-tab-pane label="药品" name="second">
12
             <el-tab-pane label="药品" name="second">
13
-               <DialysisDrug ref="mychild"></DialysisDrug>
13
+               <DialysisDrug ref="mychildOne"></DialysisDrug>
14
            </el-tab-pane>
14
            </el-tab-pane>
15
             <el-tab-pane label="透析参数" name="third">
15
             <el-tab-pane label="透析参数" name="third">
16
-               <DialysisParameter ref="mychildOne"></DialysisParameter>
16
+               <DialysisParameter ref="mychildtwo"></DialysisParameter>
17
             </el-tab-pane>
17
             </el-tab-pane>
18
         
18
         
19
         </el-tabs>
19
         </el-tabs>
49
   },
49
   },
50
   methods:{
50
   methods:{
51
     handleClick(val){
51
     handleClick(val){
52
-      if(val.name == "second"){
52
+      if(val.name == "first"){
53
        this.$refs.mychild.open()
53
        this.$refs.mychild.open()
54
       }   
54
       }   
55
-      if(val.name == "third"){
55
+      if(val.name == "second"){
56
        this.$refs.mychildOne.open()
56
        this.$refs.mychildOne.open()
57
       }
57
       }
58
-      if(val.name == "fourth"){
58
+      if(val.name == "third"){
59
         this.$refs.mychildtwo.open()
59
         this.$refs.mychildtwo.open()
60
       }
60
       }
61
     }
61
     }

+ 1 - 1
src/xt_pages/hospitalStation/chargeDetailManagement.vue Parādīt failu

1345
                 price: prescription.project[b].price,
1345
                 price: prescription.project[b].price,
1346
                 remark: prescription.project[b].remark,
1346
                 remark: prescription.project[b].remark,
1347
                 // medical_code: prescription.project[b].project.medical_code,
1347
                 // medical_code: prescription.project[b].project.medical_code,
1348
-                unit: prescription.project[b].project.unit,
1348
+                unit: prescription.project[b].unit,
1349
                 type: prescription.project[b].type,
1349
                 type: prescription.project[b].type,
1350
                 det_item_fee_sumamt: prescription.project[b].order_info.det_item_fee_sumamt,
1350
                 det_item_fee_sumamt: prescription.project[b].order_info.det_item_fee_sumamt,
1351
                 fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,
1351
                 fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Parādīt failu

2883
             obj['settle_accounts_type'] = 2
2883
             obj['settle_accounts_type'] = 2
2884
           }
2884
           }
2885
           var that = this
2885
           var that = this
2886
-          axios.get("127.0.0.1:9532"  + '/coordinate/settleAccount', {
2886
+          axios.get("http://127.0.0.1:9532"  + '/coordinate/settleAccount', {
2887
             params: obj
2887
             params: obj
2888
           })
2888
           })
2889
               .then(function(response) {
2889
               .then(function(response) {

+ 3 - 1
src/xt_pages/stock/drugs/components/drugQuery.vue Parādīt failu

96
             </el-table-column>
96
             </el-table-column>
97
             <el-table-column label="批准文号" align="center">
97
             <el-table-column label="批准文号" align="center">
98
               <template slot-scope="scope">
98
               <template slot-scope="scope">
99
-                {{scope.row.medical_insurance_number}}
99
+                {{scope.row.number}}
100
               </template>
100
               </template>
101
             </el-table-column>
101
             </el-table-column>
102
             <el-table-column label="国家编码" align="center">
102
             <el-table-column label="国家编码" align="center">
1079
           "药品名称",
1079
           "药品名称",
1080
           "规格&单位",
1080
           "规格&单位",
1081
           "生产厂商",
1081
           "生产厂商",
1082
+          "批准文号",
1082
           "国家编码",
1083
           "国家编码",
1083
           "入库数量",
1084
           "入库数量",
1084
           "出库数量",
1085
           "出库数量",
1093
           "drug_name",
1094
           "drug_name",
1094
           "specification_name",
1095
           "specification_name",
1095
           "manufacturer_name",
1096
           "manufacturer_name",
1097
+          "number",
1096
           "medical_insurance_number",
1098
           "medical_insurance_number",
1097
           "stock_in_count",
1099
           "stock_in_count",
1098
           "stock_out_count",
1100
           "stock_out_count",

+ 1 - 1
src/xt_pages/stock/drugs/components/drugQueryPrint.vue Parādīt failu

60
                     {{ getManufacturName(item.manufacturer) }}
60
                     {{ getManufacturName(item.manufacturer) }}
61
                   </td>
61
                   </td>
62
                   <!-- 批准文号 -->
62
                   <!-- 批准文号 -->
63
-                   <td ></td>
63
+                   <td >{{item.number}}</td>
64
                   <td >{{ item.medical_insurance_number }}</td>
64
                   <td >{{ item.medical_insurance_number }}</td>
65
                   <!-- 仓库名称   -->
65
                   <!-- 仓库名称   -->
66
                   <td style="padding: 0;text-align:center;">
66
                   <td style="padding: 0;text-align:center;">

+ 1 - 1
src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue Parādīt failu

1005
   },
1005
   },
1006
    open(){
1006
    open(){
1007
     this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
1007
     this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
1008
-    this.end_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
1008
+    this.end_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1009
     this.houseList= []
1009
     this.houseList= []
1010
     this.drugTypeList = []
1010
     this.drugTypeList = []
1011
     this.getStorehouseList()
1011
     this.getStorehouseList()

+ 1 - 1
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue Parādīt failu

1017
    open(){
1017
    open(){
1018
    
1018
    
1019
     this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
1019
     this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
1020
-    this.end_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
1020
+    this.end_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
1021
     this.houseList= []
1021
     this.houseList= []
1022
     this.drugTypeList = []
1022
     this.drugTypeList = []
1023
     this.getStorehouseList()
1023
     this.getStorehouseList()

+ 7 - 2
src/xt_pages/stock/drugs/drugInventory.vue Parādīt failu

12
         style="height: 100%; display: flex; flex-direction: column"
12
         style="height: 100%; display: flex; flex-direction: column"
13
         @tab-click="handleClick"
13
         @tab-click="handleClick"
14
       >
14
       >
15
-        <el-tab-pane label="药品盘点" name="first" v-if="first">
15
+       <!-- <el-tab-pane label="药品盘点" name="first" v-if="first">
16
           <drug-inventory></drug-inventory>
16
           <drug-inventory></drug-inventory>
17
+        </el-tab-pane> -->
18
+         <el-tab-pane label="药品盘点" name="four">
19
+          <drug-new-inventory></drug-new-inventory>
17
         </el-tab-pane>
20
         </el-tab-pane>
18
         <el-tab-pane label="盘点列表" name="second" v-if="second">
21
         <el-tab-pane label="盘点列表" name="second" v-if="second">
19
           <inventory-details ref="child"></inventory-details>
22
           <inventory-details ref="child"></inventory-details>
30
 <script>
33
 <script>
31
 import BreadCrumb from "../../components/bread-crumb";
34
 import BreadCrumb from "../../components/bread-crumb";
32
 import drugInventory from "./inventory";
35
 import drugInventory from "./inventory";
36
+import drugNewInventory from "./newDrugInventory"
33
 import inventoryDetails from "./inventoryDetails";
37
 import inventoryDetails from "./inventoryDetails";
34
 import drugDamaged from "./drugDamaged.vue";
38
 import drugDamaged from "./drugDamaged.vue";
35
 export default {
39
 export default {
39
     drugInventory,
43
     drugInventory,
40
     inventoryDetails,
44
     inventoryDetails,
41
     drugDamaged,
45
     drugDamaged,
46
+    drugNewInventory,
42
   },
47
   },
43
   data() {
48
   data() {
44
     return {
49
     return {
47
         { path: false, name: "药品管理" },
52
         { path: false, name: "药品管理" },
48
         { path: false, name: "药品盘点" },
53
         { path: false, name: "药品盘点" },
49
       ],
54
       ],
50
-      activeName: "first",
55
+      activeName: "four",
51
       first: true,
56
       first: true,
52
       second: true,
57
       second: true,
53
       three: true,
58
       three: true,

+ 2 - 2
src/xt_pages/stock/drugs/drugNewQuery.vue Parādīt failu

10
               <DrugQuery></DrugQuery>
10
               <DrugQuery></DrugQuery>
11
             </el-tab-pane>
11
             </el-tab-pane>
12
           
12
           
13
-            <el-tab-pane label="进销存查询" name="second">
13
+           <el-tab-pane label="进销存查询" name="second">
14
               <PurchaseDrugQuery ref="mychild"></PurchaseDrugQuery>
14
               <PurchaseDrugQuery ref="mychild"></PurchaseDrugQuery>
15
-            </el-tab-pane>
15
+            </el-tab-pane> 
16
 
16
 
17
              <!-- <el-tab-pane label="进销存查询" name="five">
17
              <!-- <el-tab-pane label="进销存查询" name="five">
18
                <PurchaseNewDrugQuery ref="mychildfive"></PurchaseNewDrugQuery>
18
                <PurchaseNewDrugQuery ref="mychildfive"></PurchaseNewDrugQuery>

+ 3 - 3
src/xt_pages/stock/query/goodNewQuery.vue Parādīt failu

70
             </el-table-column>
70
             </el-table-column>
71
             <el-table-column label="批准文号" align="center">
71
             <el-table-column label="批准文号" align="center">
72
               <template slot-scope="scope">
72
               <template slot-scope="scope">
73
-                  {{getManufacturName(scope.row.manufacturer)}}
73
+                 {{scope.row.number}}
74
               </template>
74
               </template>
75
             </el-table-column>
75
             </el-table-column>
76
             <el-table-column label="国家编码" align="center">
76
             <el-table-column label="国家编码" align="center">
790
           }
790
           }
791
          }
791
          }
792
          
792
          
793
-         const tHeader = ['序号','耗材类型', '耗材名称', '规格&单位','生产厂商','国家编码','入库数量','出库数量','退库数量','实际出库','剩余库存','总库存']
794
-         const filterVal = ['index','type_name', 'good_name', 'spec','manufacturer_name','social_security_directory_code','stock_in_count','act_out_count','stock_cancel_count','stock_out_count','over_count','sum_count']
793
+         const tHeader = ['序号','耗材类型', '耗材名称', '规格&单位','生产厂商','批准文号','国家编码','入库数量','出库数量','退库数量','实际出库','剩余库存','总库存']
794
+         const filterVal = ['index','type_name', 'good_name', 'spec','manufacturer_name','number','social_security_directory_code','stock_in_count','act_out_count','stock_cancel_count','stock_out_count','over_count','sum_count']
795
         
795
         
796
          const data = this.formatJson(filterVal, this.tableList)
796
          const data = this.formatJson(filterVal, this.tableList)
797
          excel.export_json_to_excel({
797
          excel.export_json_to_excel({

+ 1 - 1
src/xt_pages/stock/query/goodNewQueryPrint.vue Parādīt failu

66
                   </td>
66
                   </td>
67
                    <!--  批准文号-->
67
                    <!--  批准文号-->
68
                   <td>
68
                   <td>
69
-                    {{ getManufacturName(item.manufacturer) }}
69
+                    {{item.number}}
70
                   </td>
70
                   </td>
71
                   <!-- 国家编码 -->
71
                   <!-- 国家编码 -->
72
                   <td>{{ item.social_security_directory_code }}</td>
72
                   <td>{{ item.social_security_directory_code }}</td>

+ 2 - 2
src/xt_pages/stock/query/purchaseNewStockQuery.vue Parādīt failu

268
               // list[i].stockOutprice = this.stockOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
268
               // list[i].stockOutprice = this.stockOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
269
               // list[i].saleOutMoney = this.getSaleStockMony(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
269
               // list[i].saleOutMoney = this.getSaleStockMony(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
270
               list[i].stockOutprice = "/"
270
               list[i].stockOutprice = "/"
271
-              list[i].saleOutprice = "/"
271
+              list[i].saleOutMoney = "/"
272
               // list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
272
               // list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
273
               // list[i].overPrice= this.getEndOverPrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
273
               // list[i].overPrice= this.getEndOverPrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
274
               // list[i].overMoney = this.getEndSalePrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
274
               // list[i].overMoney = this.getEndSalePrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
683
    },
683
    },
684
    open(){
684
    open(){
685
     this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
685
     this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
686
-    this.end_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
686
+    this.end_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
687
     this.houseList = []
687
     this.houseList = []
688
     this.goodTypeList= []
688
     this.goodTypeList= []
689
     this.getStorehouseList()
689
     this.getStorehouseList()

+ 1 - 1
src/xt_pages/stock/query/purchaseStockQuery.vue Parādīt failu

673
    },
673
    },
674
    open(){
674
    open(){
675
     this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
675
     this.start_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
676
-    this.end_time = moment().year(2022).month(10).date(1).format('YYYY-MM-DD')
676
+    this.end_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
677
     this.houseList = []
677
     this.houseList = []
678
     this.goodTypeList= []
678
     this.goodTypeList= []
679
     this.getStorehouseList()
679
     this.getStorehouseList()

+ 8 - 3
src/xt_pages/stock/stockInventory.vue Parādīt failu

5
     </div>
5
     </div>
6
     <div class="app-container">
6
     <div class="app-container">
7
         <el-tabs v-model="activeName" @tab-click="handleClick">
7
         <el-tabs v-model="activeName" @tab-click="handleClick">
8
-            <el-tab-pane label="耗材盘点" name="first">
8
+            <!-- <el-tab-pane label="耗材盘点" name="first">
9
                 <inventory></inventory>
9
                 <inventory></inventory>
10
+            </el-tab-pane> -->
11
+            <el-tab-pane label="耗材盘点" name="four">
12
+                <new-inventory></new-inventory>
10
             </el-tab-pane>
13
             </el-tab-pane>
11
             <el-tab-pane label="盘点列表" name="second">
14
             <el-tab-pane label="盘点列表" name="second">
12
                 <inventory-details ref="child"></inventory-details>
15
                 <inventory-details ref="child"></inventory-details>
25
 <script>
28
 <script>
26
 import BreadCrumb from "../components/bread-crumb";
29
 import BreadCrumb from "../components/bread-crumb";
27
 import inventory from './inventory.vue'
30
 import inventory from './inventory.vue'
31
+import newInventory from './newInventory.vue'
28
 import inventoryDetails from './inventoryDetails.vue'
32
 import inventoryDetails from './inventoryDetails.vue'
29
 import stockDamaged from "./stockDamaged.vue"
33
 import stockDamaged from "./stockDamaged.vue"
30
 export default {
34
 export default {
33
         BreadCrumb,
37
         BreadCrumb,
34
         inventory,
38
         inventory,
35
         inventoryDetails,
39
         inventoryDetails,
36
-        stockDamaged
40
+        stockDamaged,
41
+        newInventory
37
     },
42
     },
38
     data() {
43
     data() {
39
         return{
44
         return{
42
                 { path: false, name: "耗材管理" },
47
                 { path: false, name: "耗材管理" },
43
                 { path: false, name: "耗材盘点" }
48
                 { path: false, name: "耗材盘点" }
44
             ],
49
             ],
45
-            activeName:'first'
50
+            activeName:'four'
46
         }
51
         }
47
     },
52
     },
48
     methods:{
53
     methods:{

+ 2 - 2
src/xt_pages/stock/stockNewQuery.vue Parādīt failu

13
             <el-tab-pane label="进销存查询" name="second">
13
             <el-tab-pane label="进销存查询" name="second">
14
                <PurchaseStockQuery ref="mychild"></PurchaseStockQuery>
14
                <PurchaseStockQuery ref="mychild"></PurchaseStockQuery>
15
             </el-tab-pane>
15
             </el-tab-pane>
16
-
17
-             <!-- <el-tab-pane label="进销存查询" name="five">
16
+<!-- 
17
+             <el-tab-pane label="进销存查询" name="five">
18
                <PurchaseNewStockQuery ref="mychildfive"></PurchaseNewStockQuery>
18
                <PurchaseNewStockQuery ref="mychildfive"></PurchaseNewStockQuery>
19
             </el-tab-pane> -->
19
             </el-tab-pane> -->
20
          
20