Browse Source

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

huangyw 2 years ago
parent
commit
28faafad4f
27 changed files with 314 additions and 152 deletions
  1. 8 0
      src/api/drug/drug.js
  2. 8 0
      src/api/stock.js
  3. 3 3
      src/store/modules/globalConfig.js
  4. 2 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  5. 102 62
      src/xt_pages/dialysis/details/consumable/dialysisDrug.vue
  6. 99 33
      src/xt_pages/dialysis/details/consumable/dialysisGood.vue
  7. 1 0
      src/xt_pages/dialysis/details/consumable/dialysisParameter.vue
  8. 6 6
      src/xt_pages/dialysis/details/consumable/index.vue
  9. 1 1
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  10. 1 1
      src/xt_pages/hospitalStation/chargeDetailManagement.vue
  11. 1 0
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  12. 21 9
      src/xt_pages/hospitalStation/doctorDesk.vue
  13. 2 2
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  14. 3 0
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  15. 24 13
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  16. 3 1
      src/xt_pages/stock/drugs/components/drugQuery.vue
  17. 1 1
      src/xt_pages/stock/drugs/components/drugQueryPrint.vue
  18. 1 1
      src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue
  19. 1 1
      src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue
  20. 7 2
      src/xt_pages/stock/drugs/drugInventory.vue
  21. 2 2
      src/xt_pages/stock/drugs/drugNewQuery.vue
  22. 3 3
      src/xt_pages/stock/query/goodNewQuery.vue
  23. 1 1
      src/xt_pages/stock/query/goodNewQueryPrint.vue
  24. 2 2
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  25. 1 1
      src/xt_pages/stock/query/purchaseStockQuery.vue
  26. 8 3
      src/xt_pages/stock/stockInventory.vue
  27. 2 2
      src/xt_pages/stock/stockNewQuery.vue

+ 8 - 0
src/api/drug/drug.js View File

@@ -627,3 +627,11 @@ export function getDrugOverCount(params) {
627 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 View File

@@ -1064,3 +1064,11 @@ export function getPrintList(params) {
1064 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
+}

+ 3 - 3
src/store/modules/globalConfig.js View File

@@ -876,9 +876,9 @@ const global_config = {
876 876
         id: 13,
877 877
         name: '那屈肝素钙',
878 878
         type: 1,
879
-        shouji: 2,
880
-        weichi: 2,
881
-        zongliang: 2,
879
+        shouji: 1,
880
+        weichi: 1,
881
+        zongliang: 1,
882 882
         gaimingcheng: -1,
883 883
         gaijiliang: -1,
884 884
         shouji_unit: 'mg',

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -111,8 +111,8 @@
111 111
           <label>目标超滤量 : </label>
112 112
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
113 113
           
114
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10249"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
115
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10249" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
114
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45  && this.$store.getters.xt_user.template_info.template_id != 46  && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10345  && this.$store.getters.xt_user.template_info.org_id != 10346  && this.$store.getters.xt_user.template_info.org_id != 10395"  class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
115
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46  || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345  || this.$store.getters.xt_user.template_info.org_id == 10346  || this.$store.getters.xt_user.template_info.org_id == 10395" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
116 116
         </li>
117 117
 
118 118
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">

+ 102 - 62
src/xt_pages/dialysis/details/consumable/dialysisDrug.vue View File

@@ -83,8 +83,8 @@
83 83
 
84 84
         <el-table-column label="推送医嘱" align="center" width="1280">
85 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 88
            </template>
89 89
         </el-table-column>
90 90
      
@@ -233,10 +233,11 @@
233 233
         adviceList:[],
234 234
         templateList:[],
235 235
         startdialogVisible:false,
236
-        schedule_type:"",
237
-        partion_type:"",
236
+        schedule_type:0,
237
+        partion_type:0,
238 238
         druglist:[],
239 239
         tableList:[],
240
+        config:{},
240 241
       }
241 242
     },
242 243
     created() {
@@ -257,6 +258,9 @@
257 258
       this.getlist()
258 259
     },
259 260
     methods: {
261
+      open(){
262
+
263
+      },
260 264
       getlist(){
261 265
         getDialysisAdviceTemplateList(this.query).then(response=>{
262 266
           if(response.data.state == 1){
@@ -267,7 +271,20 @@
267 271
             var adviceList = response.data.data.adviceList
268 272
             this.adviceList = adviceList
269 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 284
             this.templateList = templateList
285
+           
286
+            this.config = response.data.data.config
287
+            
271 288
           }
272 289
         })
273 290
       },
@@ -355,68 +372,90 @@
355 372
              console.log("listwo222222",list)
356 373
              var adviceList = response.data.data.adviceList
357 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 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 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 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,34 +504,35 @@
465 504
       formatJson(filterVal, jsonData) {
466 505
         return jsonData.map(v => filterVal.map(j => v[j]));
467 506
       },
507
+   
468 508
       getAdviceContent(patient_id){
469 509
         var newArr = []
470 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 518
         if(newArr!=null && newArr.length > 0){
479 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 523
         return his_str
484 524
       },
485 525
       getHisAdviceContent(patient_id){
486 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 532
         var str = ""
493 533
         if(arr!=null && arr.length > 0){
494 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 538
         return str 
@@ -501,7 +541,7 @@
501 541
         var specification_name = ""
502 542
         for(let i=0;i<this.druglist.length;i++){
503 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 547
         return specification_name

+ 99 - 33
src/xt_pages/dialysis/details/consumable/dialysisGood.vue View File

@@ -43,6 +43,7 @@
43 43
         </div>
44 44
       </div>
45 45
       <div>
46
+        <el-button size="small" icon="el-icon-printer" @click="exportList" type="primary">打印</el-button>
46 47
         <el-button size="small" icon="el-icon-printer" @click="exportList" type="primary">导出</el-button>
47 48
         <el-button size="small" type="primary" @click="statistics">统计表</el-button>
48 49
       </div>
@@ -109,12 +110,17 @@
109 110
           :label="item.filed_name_cn"
110 111
         >
111 112
           <template slot-scope="scope">
112
-             <!-- <span>{{scope.row.good_type[index].name}}</span> -->
113 113
              {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}
114 114
           </template>
115 115
 
116 116
         </el-table-column>
117 117
 
118
+       <el-table-column  align="center"  width="100" label="备注">
119
+           <template slot-scope="scope">
120
+            {{scope.row.dialysis_solution.remark}}
121
+           </template>
122
+        </el-table-column>
123
+
118 124
       </el-table>
119 125
     </div>
120 126
 
@@ -269,28 +275,11 @@
269 275
         hemodialysisPipelinesOptions:[],
270 276
         startDialogVisible:false,
271 277
         tableList:[],
272
-        schedule_type:"",
273
-        partion_type:"",
278
+        schedule_type:0,
279
+        partion_type:0,
274 280
       }
275 281
     },
276 282
     created() {
277
-      this.dialysate_formulation =  getDataConfig(  
278
-          'hemodialysis',
279
-          'dialysate_formulation'
280
-      )
281
-      this.body_fluid_option = this.$store.getters.body_fluid
282
-      this.displace_liqui_part_option = this.$store.getters.displace_liqui
283
-      this.blood_access_option = this.$store.getters.blood_access
284
-      this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
285
-      this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
286
-      var filedList = this.$store.getters.xt_user.fileds
287
-      for (let i = 0; i < filedList.length; i++) {
288
-        if ( filedList[i].module == 1 && filedList[i].is_show == 1) {
289
-          this.rowList.push(filedList[i])
290
-        }
291
-      }
292
-      console.log("行33333333333333",this.rowList)
293
-      this.getAllZone()
294 283
       let date = uParseTime(new Date(), "{y}-{m}-{d}")
295 284
       var newDate = new Date();
296 285
       var y = newDate.getFullYear();
@@ -304,22 +293,39 @@
304 293
       this.query.schedule_type = 0
305 294
       this.query.partition_id = 0
306 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
+      }
307 312
       this.getlist()
308 313
     },
309 314
     methods: {
315
+      open(){
316
+       this.getlist()
317
+      },
310 318
       getlist(){
311 319
         getPatientDialysisSolutionGroupList(this.query).then(response=>{
312 320
            if(response.data.state == 1){
313 321
              var list = response.data.data.list
314
-             console.log("list23322323ow",list)
315
-             console.log("rowlist22222wode",this.rowList)
316 322
              if(list!=null){
317 323
                for(let i=0;i<list.length;i++){
318 324
                  list[i].rowList = []
319 325
                  list[i].rowList = this.rowList
320 326
                }
321 327
              }
322
-             console.log("h哈哈哈哈哈哈哈",list)
328
+             this.list= []
323 329
              this.list = list
324 330
              var total = response.data.data.total
325 331
              this.total = total
@@ -388,39 +394,56 @@
388 394
         })
389 395
       },
390 396
       statistics() {
397
+        
391 398
         var params = {
392 399
           schedule_type:this.schedule_type,
393 400
           partion_type:this.partion_type,
394 401
           selected_date:this.query.schedule_date,
395 402
         }
396
-        console.log("params2332232wo",params)
403
+        // console.log("params2332232wo",params)
397 404
        getDialysisGoodTotalCount(params).then(response=>{
398 405
           if(response.data.state == 1){
399 406
             this.startDialogVisible = true
400 407
             var list = response.data.data.list
408
+            var kaliumCount = 0
409
+            var sodiumCount = 0
410
+            var calciumCount = 0
411
+            var glucoseCount = 0
412
+            var punctureNeedleCount = 0
401 413
             console.log("list232323223222wid",list)
402 414
             if(list!=null && list.length>0){
403 415
               for(let i=0;i<list.length;i++){
404 416
                  list[i].dialysis_dialyszers_arr = []
405 417
                  list[i].dialyzer_perfusion_apparatus_arr = []
406 418
                  list[i].dialysis_irrigation_arr = []
407
-                 if(list[i].dialysis_prescription.dialysis_dialyszers!=""){
408
-                   list[i].dialysis_dialyszers_arr = list[i].dialysis_prescription.dialysis_dialyszers.split(",")
419
+                 list[i].puncture_needle_arr = []
420
+                 if(list[i].dialysis_solution.dialysis_dialyszers!=""){
421
+                   list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
409 422
                  }
410
-                 if(list[i].dialysis_prescription.dialyzer_perfusion_apparatus!=""){
411
-                   list[i].dialyzer_perfusion_apparatus_arr = list[i].dialysis_prescription.dialyzer_perfusion_apparatus.split(",")
423
+                 if(list[i].dialysis_solution.dialyzer_perfusion_apparatus!=""){
424
+                   list[i].dialyzer_perfusion_apparatus_arr = list[i].dialysis_solution.dialyzer_perfusion_apparatus.split(",")
412 425
                  }
413
-                 if(list[i].dialysis_prescription.dialysis_irrigation!=""){
414
-                   list[i].dialysis_irrigation_arr = list[i].dialysis_prescription.dialysis_irrigation.split(",")
426
+                 if(list[i].dialysis_solution.dialysis_irrigation!=""){
427
+                   list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
415 428
                  }
429
+                 if(list[i].dialysis_solution.puncture_needle!="" ){
430
+                    list[i].puncture_needle_arr = list[i].dialysis_solution.puncture_needle.split(",")
431
+                 }
432
+                 kaliumCount += parseInt(list[i].dialysis_solution.kalium) 
433
+                 sodiumCount += parseInt(list[i].dialysis_solution.sodium)
434
+                 calciumCount +=parseInt(list[i].dialysis_solution.calcium)
435
+                 glucoseCount += parseInt(list[i].dialysis_solution.glucose)
436
+                 punctureNeedleCount += parseInt(list[i].dialysis_solution.puncture_needle_count)
437
+
416 438
               }
417 439
             }
418 440
             var dialysisDialyszersArr = []
419 441
             var dialyzerPerfusionApparaArr = []
420 442
             var dialysisIrrigationArr = []
443
+            var punctureNeedleArr = []
421 444
             for(let i=0;i<list.length;i++){
422 445
              for(let j=0;j<list[i].dialysis_dialyszers_arr.length;j++){
423
-              console.log("list23323232",list[i].dialysis_dialyszers_arr[j])
446
+             
424 447
                dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])  
425 448
              }
426 449
              for(let z=0;z<list[i].dialyzer_perfusion_apparatus_arr.length;z++){
@@ -429,14 +452,18 @@
429 452
              for(let y=0;y<list[i].dialysis_irrigation_arr.length;y++){
430 453
               dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
431 454
              }
455
+             for(let h=0;h<list[i].puncture_needle_arr.length;h++){
456
+               punctureNeedleArr.push(list[i].puncture_needle_arr[h])   
457
+             }
432 458
             }
433 459
             console.log("透析器",dialysisDialyszersArr)
434 460
             console.log("透析器/灌流器",dialyzerPerfusionApparaArr)
435 461
             console.log("灌流器",dialysisIrrigationArr)
436
-             
462
+            console.log("穿刺针",punctureNeedleArr)  
437 463
            let obj = {}
438 464
            let objOne = {}
439 465
            let objTwo = {}
466
+           let objThree = {}
440 467
            for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
441 468
             if(obj[dialysisDialyszersArr[i]]){
442 469
                obj[dialysisDialyszersArr[i]] +=1
@@ -488,7 +515,46 @@
488 515
               Arr.push(a);
489 516
             }
490 517
             console.log("newa",Arr)
491
-            this.tableList = 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
+
536
+           var objfive = {name:"钾(mmol/L)",specification_name:"2.0",count:""}
537
+           var objsix =  {name:"钠(mmol/L)",specification_name:"1.25",count:""}
538
+           var objseven = {name:"钙(mmol/L)",specification_name:"1.5",count:""}
539
+           var objeight = {name:"葡萄糖(mmol/L)",specification_name:"无糖",count:""}
540
+           var objten = {name:"穿刺针支数",specification_name:"穿刺针支数",count:""}
541
+           
542
+            objfive.count = kaliumCount
543
+            objsix.count = sodiumCount
544
+            objseven.count = calciumCount
545
+            objeight.count = glucoseCount
546
+            objten.count = punctureNeedleCount
547
+            this.tableList.push(objfive)
548
+            this.tableList.push(objsix)
549
+            this.tableList.push(objseven)
550
+            this.tableList.push(objeight)
551
+            this.tableList.push(objten)
552
+            for(let i=0;i<Arr.length;i++){
553
+
554
+              this.tableList.push(Arr[i])
555
+            }
556
+            
557
+           
492 558
           }
493 559
        })
494 560
         

+ 1 - 0
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue View File

@@ -396,6 +396,7 @@
396 396
         startdialogVisible:false,
397 397
         schedule_type:"",
398 398
         partion_type:"",
399
+        tableList:[],
399 400
       }
400 401
     },
401 402
     created() {

+ 6 - 6
src/xt_pages/dialysis/details/consumable/index.vue View File

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

+ 1 - 1
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

@@ -290,7 +290,7 @@
290 290
           </template>
291 291
         </el-table-column>
292 292
         <el-table-column
293
-          v-if="template_id != 6"
293
+          v-if="template_id != 6 && org_id!=10223"
294 294
           prop="checker"
295 295
           min-width="30px"
296 296
           align="center"

+ 1 - 1
src/xt_pages/hospitalStation/chargeDetailManagement.vue View File

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

+ 1 - 0
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

@@ -2364,6 +2364,7 @@ export default {
2364 2364
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2365 2365
                   this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2366 2366
                   this.prescriptions[i].project[b].single_dose = this.prescriptions[i].project[b].single_dose.toString()
2367
+                  
2367 2368
 
2368 2369
                 }
2369 2370
 

+ 21 - 9
src/xt_pages/hospitalStation/doctorDesk.vue View File

@@ -1232,7 +1232,8 @@
1232 1232
                     remark: prescription.project[b].remark,
1233 1233
                     medical_code: prescription.project[b].project.medical_code,
1234 1234
                     unit: prescription.project[b].unit,
1235
-                    type: prescription.project[b].type
1235
+                    type: prescription.project[b].type,
1236
+                    
1236 1237
 
1237 1238
                   }
1238 1239
 
@@ -1243,6 +1244,7 @@
1243 1244
                     obj['medical_code'] = prescription.project[b].project.medical_code
1244 1245
                     obj['project_name'] = prescription.project[b].project.project_name
1245 1246
                     obj['project'] = prescription.project[b].project
1247
+                  
1246 1248
 
1247 1249
                   } else if (prescription.project[b].type == 3) {
1248 1250
                     if(prescription.project[b].team_id > 0){
@@ -1252,6 +1254,7 @@
1252 1254
                     obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1253 1255
                     obj['project_name'] = prescription.project[b].good_info.good_name
1254 1256
                     obj['good_info'] = prescription.project[b].good_info
1257
+                  
1255 1258
 
1256 1259
                   }
1257 1260
                   tempProject.push(obj)
@@ -1372,7 +1375,8 @@
1372 1375
                       remark: prescription.project[b].remark,
1373 1376
                       medical_code: prescription.project[b].project.medical_code,
1374 1377
                       unit: prescription.project[b].unit,
1375
-                      type: prescription.project[b].type
1378
+                      type: prescription.project[b].type,
1379
+                      
1376 1380
 
1377 1381
                     }
1378 1382
 
@@ -1382,6 +1386,7 @@
1382 1386
                       obj['project_name'] = prescription.project[b].project.project_name
1383 1387
                       obj['price'] = prescription.project[b].project.price
1384 1388
                       obj['project'] = prescription.project[b].project
1389
+                      
1385 1390
 
1386 1391
                     } else if (prescription.project[b].type == 3) {
1387 1392
                       obj['statistical_classification'] = ''
@@ -1389,6 +1394,7 @@
1389 1394
                       obj['project_name'] = prescription.project[b].good_info.good_name
1390 1395
                       obj['price'] = prescription.project[b].good_info.packing_price
1391 1396
                       obj['good_info'] = prescription.project[b].good_info
1397
+                     
1392 1398
                     }
1393 1399
                     tempProject.push(obj)
1394 1400
                   }
@@ -1645,7 +1651,8 @@
1645 1651
                           remark: prescription.project[b].remark,
1646 1652
                           medical_code: prescription.project[b].project.medical_code,
1647 1653
                           unit: prescription.project[b].unit,
1648
-                          type: prescription.project[b].type
1654
+                          type: prescription.project[b].type,
1655
+                         
1649 1656
                         }
1650 1657
 
1651 1658
                         if (prescription.project[b].type == 2) {
@@ -1784,8 +1791,8 @@
1784 1791
                             remark: prescription.project[b].remark,
1785 1792
                             medical_code: prescription.project[b].project.medical_code,
1786 1793
                             unit: prescription.project[b].unit,
1787
-                            type: prescription.project[b].type
1788
-
1794
+                            type: prescription.project[b].type,
1795
+                           
1789 1796
                           }
1790 1797
 
1791 1798
                           if (prescription.project[b].type == 2) {
@@ -2136,7 +2143,9 @@
2136 2143
                           remark: prescription.project[b].remark,
2137 2144
                           medical_code: prescription.project[b].project.medical_code,
2138 2145
                           unit: prescription.project[b].unit,
2139
-                          type: prescription.project[b].type
2146
+                          type: prescription.project[b].type,
2147
+                         
2148
+                  
2140 2149
                         }
2141 2150
 
2142 2151
                         if (prescription.project[b].type == 2) {
@@ -2266,7 +2275,8 @@
2266 2275
                             remark: prescription.project[b].remark,
2267 2276
                             medical_code: prescription.project[b].project.medical_code,
2268 2277
                             unit: prescription.project[b].unit,
2269
-                            type: prescription.project[b].type
2278
+                            type: prescription.project[b].type,
2279
+                           
2270 2280
                           }
2271 2281
 
2272 2282
                           if (prescription.project[b].type == 2) {
@@ -2608,7 +2618,8 @@
2608 2618
                         remark: prescription.project[b].remark,
2609 2619
                         medical_code: prescription.project[b].project.medical_code,
2610 2620
                         unit: prescription.project[b].unit,
2611
-                        type: prescription.project[b].type
2621
+                        type: prescription.project[b].type,
2622
+                        
2612 2623
                       }
2613 2624
 
2614 2625
                       if (prescription.project[b].type == 2) {
@@ -2737,7 +2748,8 @@
2737 2748
                           remark: prescription.project[b].remark,
2738 2749
                           medical_code: prescription.project[b].project.medical_code,
2739 2750
                           unit: prescription.project[b].unit,
2740
-                          type: prescription.project[b].type
2751
+                          type: prescription.project[b].type,
2752
+                         
2741 2753
                         }
2742 2754
 
2743 2755
                         if (prescription.project[b].type == 2) {

+ 2 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -91,7 +91,7 @@
91 91
                         </el-button>
92 92
           </div>
93 93
 
94
-          <div  v-if="org_id != 10340 || org_id != 0">
94
+          <div  v-if="org_id != 10340 && org_id != 0">
95 95
 <!--            <el-button size="small"-->
96 96
 <!--                       @click="openZb(1)"-->
97 97
 <!--                       type="primary">登记-->
@@ -2883,7 +2883,7 @@ export default {
2883 2883
             obj['settle_accounts_type'] = 2
2884 2884
           }
2885 2885
           var that = this
2886
-          axios.get(process.env.BASE_API  + '/coordinate/settleAccount', {
2886
+          axios.get("http://127.0.0.1:9532"  + '/coordinate/settleAccount', {
2887 2887
             params: obj
2888 2888
           })
2889 2889
               .then(function(response) {

+ 3 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2366,6 +2366,7 @@
2366 2366
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2367 2367
                   this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2368 2368
                   this.prescriptions[i].project[b].single_dose = this.prescriptions[i].project[b].single_dose.toString()
2369
+                 
2369 2370
 
2370 2371
                 }
2371 2372
 
@@ -2633,6 +2634,8 @@
2633 2634
                   month_prescriptions[i].project[b].total = month_prescriptions[i].project[b].total.toString()
2634 2635
                   month_prescriptions[i].project[b].delivery_way = month_prescriptions[i].project[b].delivery_way.toString()
2635 2636
 
2637
+                  
2638
+
2636 2639
                 }
2637 2640
 
2638 2641
                 for (let b = 0; b < month_prescriptions[i].addition.length; b++) {

+ 24 - 13
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -1704,7 +1704,7 @@ export default {
1704 1704
                   unit: prescription.project[b].unit,
1705 1705
                   type: prescription.project[b].type,
1706 1706
                   execution_state: prescription.project[b].execution_state,
1707
-
1707
+                
1708 1708
 
1709 1709
                 }
1710 1710
 
@@ -1713,12 +1713,14 @@ export default {
1713 1713
                   obj['medical_code'] = prescription.project[b].project.medical_code
1714 1714
                   obj['project_name'] = prescription.project[b].project.project_name
1715 1715
                   obj['project'] = prescription.project[b].project
1716
+                 
1716 1717
 
1717 1718
                 } else if (prescription.project[b].type == 3) {
1718 1719
                   obj['statistical_classification'] = ''
1719 1720
                   obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1720 1721
                   obj['project_name'] = prescription.project[b].good_info.good_name
1721 1722
                   obj['good_info'] = prescription.project[b].good_info
1723
+                
1722 1724
 
1723 1725
                 }
1724 1726
                 tempProject.push(obj)
@@ -1864,6 +1866,7 @@ export default {
1864 1866
                     unit: prescription.project[b].unit,
1865 1867
                     type: prescription.project[b].type,
1866 1868
                     execution_state: 2,
1869
+                    
1867 1870
 
1868 1871
                   }
1869 1872
 
@@ -1873,6 +1876,7 @@ export default {
1873 1876
                     obj['project_name'] = prescription.project[b].project.project_name
1874 1877
                     obj['price'] = prescription.project[b].project.price
1875 1878
                     obj['project'] = prescription.project[b].project
1879
+                    
1876 1880
 
1877 1881
                   } else if (prescription.project[b].type == 3) {
1878 1882
                     obj['statistical_classification'] = ''
@@ -1880,6 +1884,7 @@ export default {
1880 1884
                     obj['project_name'] = prescription.project[b].good_info.good_name
1881 1885
                     obj['price'] = prescription.project[b].good_info.packing_price
1882 1886
                     obj['good_info'] = prescription.project[b].good_info
1887
+                  
1883 1888
                   }
1884 1889
                   tempProject.push(obj)
1885 1890
                 }
@@ -1935,7 +1940,7 @@ export default {
1935 1940
 
1936 1941
             }
1937 1942
           }
1938
-          console.log('~~~~~00000222222')
1943
+          console.log('~~~~~00000222222',this.prescriptions)
1939 1944
           this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info, this.sick, this.diagnosis)
1940 1945
         }
1941 1946
       })
@@ -2161,6 +2166,7 @@ export default {
2161 2166
                         unit: prescription.project[b].unit,
2162 2167
                         type: prescription.project[b].type,
2163 2168
                         execution_state: prescription.project[b].execution_state,
2169
+                       
2164 2170
                       }
2165 2171
 
2166 2172
                       if (prescription.project[b].type == 2) {
@@ -2319,6 +2325,7 @@ export default {
2319 2325
                           unit: prescription.project[b].unit,
2320 2326
                           type: prescription.project[b].type,
2321 2327
                           execution_state: 2,
2328
+                         
2322 2329
 
2323 2330
                         }
2324 2331
 
@@ -2703,7 +2710,7 @@ export default {
2703 2710
                         unit: prescription.project[b].unit,
2704 2711
                         type: prescription.project[b].type,
2705 2712
                         execution_state: prescription.project[b].execution_state,
2706
-
2713
+                       
2707 2714
                       }
2708 2715
 
2709 2716
                       if (prescription.project[b].type == 2) {
@@ -2853,7 +2860,7 @@ export default {
2853 2860
                           unit: prescription.project[b].unit,
2854 2861
                           type: prescription.project[b].type,
2855 2862
                           execution_state: 2,
2856
-
2863
+                         
2857 2864
                         }
2858 2865
 
2859 2866
                         if (prescription.project[b].type == 2) {
@@ -3216,8 +3223,8 @@ export default {
3216 3223
                       medical_code: prescription.project[b].project.medical_code,
3217 3224
                       unit: prescription.project[b].unit,
3218 3225
                       type: prescription.project[b].type,
3219
-                      execution_state: prescription.project[b].execution_state
3220
-
3226
+                      execution_state: prescription.project[b].execution_state,
3227
+                  
3221 3228
                     }
3222 3229
 
3223 3230
                     if (prescription.project[b].type == 2) {
@@ -3366,7 +3373,8 @@ export default {
3366 3373
                         medical_code: prescription.project[b].project.medical_code,
3367 3374
                         unit: prescription.project[b].unit,
3368 3375
                         type: prescription.project[b].type,
3369
-                        execution_state: 2
3376
+                        execution_state: 2,
3377
+                       
3370 3378
 
3371 3379
                       }
3372 3380
 
@@ -3809,8 +3817,8 @@ export default {
3809 3817
                         medical_code: prescription.project[b].project.medical_code,
3810 3818
                         unit: prescription.project[b].unit,
3811 3819
                         type: prescription.project[b].type,
3812
-                        execution_state: prescription.project[b].execution_state
3813
-
3820
+                        execution_state: prescription.project[b].execution_state,
3821
+                       
3814 3822
                       }
3815 3823
 
3816 3824
                       if (prescription.project[b].type == 2) {
@@ -3818,6 +3826,7 @@ export default {
3818 3826
                         obj['medical_code'] = prescription.project[b].project.medical_code
3819 3827
                         obj['project_name'] = prescription.project[b].project.project_name
3820 3828
                         obj['project'] = prescription.project[b].project
3829
+                      
3821 3830
 
3822 3831
                       } else if (prescription.project[b].type == 3) {
3823 3832
                         if (prescription.project[b].team_id > 0) {
@@ -3826,6 +3835,7 @@ export default {
3826 3835
                         obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3827 3836
                         obj['project_name'] = prescription.project[b].good_info.good_name
3828 3837
                         obj['good_info'] = prescription.project[b].good_info
3838
+                       
3829 3839
 
3830 3840
                       }
3831 3841
                       tempProject.push(obj)
@@ -3969,6 +3979,7 @@ export default {
3969 3979
                           unit: prescription.project[b].unit,
3970 3980
                           type: prescription.project[b].type,
3971 3981
                           execution_state: 2,
3982
+                          
3972 3983
                         }
3973 3984
 
3974 3985
                         if (prescription.project[b].type == 2) {
@@ -4436,8 +4447,8 @@ export default {
4436 4447
                         medical_code: prescription.project[b].project.medical_code,
4437 4448
                         unit: prescription.project[b].unit,
4438 4449
                         type: prescription.project[b].type,
4439
-                        execution_state: prescription.project[b].execution_state
4440
-
4450
+                        execution_state: prescription.project[b].execution_state,
4451
+                       
4441 4452
                       }
4442 4453
 
4443 4454
                       if (prescription.project[b].type == 2) {
@@ -4596,8 +4607,8 @@ export default {
4596 4607
                           medical_code: prescription.project[b].project.medical_code,
4597 4608
                           unit: prescription.project[b].unit,
4598 4609
                           type: prescription.project[b].type,
4599
-                          execution_state: 2
4600
-
4610
+                          execution_state: 2,
4611
+                         
4601 4612
                         }
4602 4613
 
4603 4614
                         if (prescription.project[b].type == 2) {

+ 3 - 1
src/xt_pages/stock/drugs/components/drugQuery.vue View File

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

+ 1 - 1
src/xt_pages/stock/drugs/components/drugQueryPrint.vue View File

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

+ 1 - 1
src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue View File

@@ -1005,7 +1005,7 @@ export default {
1005 1005
   },
1006 1006
    open(){
1007 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 1009
     this.houseList= []
1010 1010
     this.drugTypeList = []
1011 1011
     this.getStorehouseList()

+ 1 - 1
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue View File

@@ -1017,7 +1017,7 @@ export default {
1017 1017
    open(){
1018 1018
    
1019 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 1021
     this.houseList= []
1022 1022
     this.drugTypeList = []
1023 1023
     this.getStorehouseList()

+ 7 - 2
src/xt_pages/stock/drugs/drugInventory.vue View File

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

+ 2 - 2
src/xt_pages/stock/drugs/drugNewQuery.vue View File

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

+ 3 - 3
src/xt_pages/stock/query/goodNewQuery.vue View File

@@ -70,7 +70,7 @@
70 70
             </el-table-column>
71 71
             <el-table-column label="批准文号" align="center">
72 72
               <template slot-scope="scope">
73
-                  {{getManufacturName(scope.row.manufacturer)}}
73
+                 {{scope.row.number}}
74 74
               </template>
75 75
             </el-table-column>
76 76
             <el-table-column label="国家编码" align="center">
@@ -790,8 +790,8 @@ export default {
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 796
          const data = this.formatJson(filterVal, this.tableList)
797 797
          excel.export_json_to_excel({

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

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

+ 2 - 2
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

@@ -268,7 +268,7 @@ export default {
268 268
               // list[i].stockOutprice = this.stockOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
269 269
               // list[i].saleOutMoney = this.getSaleStockMony(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
270 270
               list[i].stockOutprice = "/"
271
-              list[i].saleOutprice = "/"
271
+              list[i].saleOutMoney = "/"
272 272
               // list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
273 273
               // list[i].overPrice= this.getEndOverPrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
274 274
               // list[i].overMoney = this.getEndSalePrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
@@ -683,7 +683,7 @@ export default {
683 683
    },
684 684
    open(){
685 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 687
     this.houseList = []
688 688
     this.goodTypeList= []
689 689
     this.getStorehouseList()

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

@@ -673,7 +673,7 @@ export default {
673 673
    },
674 674
    open(){
675 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 677
     this.houseList = []
678 678
     this.goodTypeList= []
679 679
     this.getStorehouseList()

+ 8 - 3
src/xt_pages/stock/stockInventory.vue View File

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

+ 2 - 2
src/xt_pages/stock/stockNewQuery.vue View File

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