Преглед изворни кода

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

huangyw пре 2 година
родитељ
комит
28faafad4f
27 измењених фајлова са 314 додато и 152 уклоњено
  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 Прегледај датотеку

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 Прегледај датотеку

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
+}

+ 3 - 3
src/store/modules/globalConfig.js Прегледај датотеку

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

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue Прегледај датотеку

111
           <label>目标超滤量 : </label>
111
           <label>目标超滤量 : </label>
112
           <span class="content">{{ target_ultrafiltration != "0" ? target_ultrafiltration : ""}}</span>
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
         </li>
116
         </li>
117
 
117
 
118
          <li v-if="isShow('目标超滤量') && this.$store.getters.xt_user.template_info.org_id == 10290">
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 Прегледај датотеку

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

+ 99 - 33
src/xt_pages/dialysis/details/consumable/dialysisGood.vue Прегледај датотеку

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>
109
           :label="item.filed_name_cn"
110
           :label="item.filed_name_cn"
110
         >
111
         >
111
           <template slot-scope="scope">
112
           <template slot-scope="scope">
112
-             <!-- <span>{{scope.row.good_type[index].name}}</span> -->
113
              {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}
113
              {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}
114
           </template>
114
           </template>
115
 
115
 
116
         </el-table-column>
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
       </el-table>
124
       </el-table>
119
     </div>
125
     </div>
120
 
126
 
269
         hemodialysisPipelinesOptions:[],
275
         hemodialysisPipelinesOptions:[],
270
         startDialogVisible:false,
276
         startDialogVisible:false,
271
         tableList:[],
277
         tableList:[],
272
-        schedule_type:"",
273
-        partion_type:"",
278
+        schedule_type:0,
279
+        partion_type:0,
274
       }
280
       }
275
     },
281
     },
276
     created() {
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
       let date = uParseTime(new Date(), "{y}-{m}-{d}")
283
       let date = uParseTime(new Date(), "{y}-{m}-{d}")
295
       var newDate = new Date();
284
       var newDate = new Date();
296
       var y = newDate.getFullYear();
285
       var y = newDate.getFullYear();
304
       this.query.schedule_type = 0
293
       this.query.schedule_type = 0
305
       this.query.partition_id = 0
294
       this.query.partition_id = 0
306
       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
+      }
307
       this.getlist()
312
       this.getlist()
308
     },
313
     },
309
     methods: {
314
     methods: {
315
+      open(){
316
+       this.getlist()
317
+      },
310
       getlist(){
318
       getlist(){
311
         getPatientDialysisSolutionGroupList(this.query).then(response=>{
319
         getPatientDialysisSolutionGroupList(this.query).then(response=>{
312
            if(response.data.state == 1){
320
            if(response.data.state == 1){
313
              var list = response.data.data.list
321
              var list = response.data.data.list
314
-             console.log("list23322323ow",list)
315
-             console.log("rowlist22222wode",this.rowList)
316
              if(list!=null){
322
              if(list!=null){
317
                for(let i=0;i<list.length;i++){
323
                for(let i=0;i<list.length;i++){
318
                  list[i].rowList = []
324
                  list[i].rowList = []
319
                  list[i].rowList = this.rowList
325
                  list[i].rowList = this.rowList
320
                }
326
                }
321
              }
327
              }
322
-             console.log("h哈哈哈哈哈哈哈",list)
328
+             this.list= []
323
              this.list = list
329
              this.list = list
324
              var total = response.data.data.total
330
              var total = response.data.data.total
325
              this.total = total
331
              this.total = total
388
         })
394
         })
389
       },
395
       },
390
       statistics() {
396
       statistics() {
397
+        
391
         var params = {
398
         var params = {
392
           schedule_type:this.schedule_type,
399
           schedule_type:this.schedule_type,
393
           partion_type:this.partion_type,
400
           partion_type:this.partion_type,
394
           selected_date:this.query.schedule_date,
401
           selected_date:this.query.schedule_date,
395
         }
402
         }
396
-        console.log("params2332232wo",params)
403
+        // console.log("params2332232wo",params)
397
        getDialysisGoodTotalCount(params).then(response=>{
404
        getDialysisGoodTotalCount(params).then(response=>{
398
           if(response.data.state == 1){
405
           if(response.data.state == 1){
399
             this.startDialogVisible = true
406
             this.startDialogVisible = true
400
             var list = response.data.data.list
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
             console.log("list232323223222wid",list)
413
             console.log("list232323223222wid",list)
402
             if(list!=null && list.length>0){
414
             if(list!=null && list.length>0){
403
               for(let i=0;i<list.length;i++){
415
               for(let i=0;i<list.length;i++){
404
                  list[i].dialysis_dialyszers_arr = []
416
                  list[i].dialysis_dialyszers_arr = []
405
                  list[i].dialyzer_perfusion_apparatus_arr = []
417
                  list[i].dialyzer_perfusion_apparatus_arr = []
406
                  list[i].dialysis_irrigation_arr = []
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
             var dialysisDialyszersArr = []
440
             var dialysisDialyszersArr = []
419
             var dialyzerPerfusionApparaArr = []
441
             var dialyzerPerfusionApparaArr = []
420
             var dialysisIrrigationArr = []
442
             var dialysisIrrigationArr = []
443
+            var punctureNeedleArr = []
421
             for(let i=0;i<list.length;i++){
444
             for(let i=0;i<list.length;i++){
422
              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++){
423
-              console.log("list23323232",list[i].dialysis_dialyszers_arr[j])
446
+             
424
                dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])  
447
                dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])  
425
              }
448
              }
426
              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++){
429
              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++){
430
               dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
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
             console.log("透析器",dialysisDialyszersArr)
459
             console.log("透析器",dialysisDialyszersArr)
434
             console.log("透析器/灌流器",dialyzerPerfusionApparaArr)
460
             console.log("透析器/灌流器",dialyzerPerfusionApparaArr)
435
             console.log("灌流器",dialysisIrrigationArr)
461
             console.log("灌流器",dialysisIrrigationArr)
436
-             
462
+            console.log("穿刺针",punctureNeedleArr)  
437
            let obj = {}
463
            let obj = {}
438
            let objOne = {}
464
            let objOne = {}
439
            let objTwo = {}
465
            let objTwo = {}
466
+           let objThree = {}
440
            for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
467
            for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
441
             if(obj[dialysisDialyszersArr[i]]){
468
             if(obj[dialysisDialyszersArr[i]]){
442
                obj[dialysisDialyszersArr[i]] +=1
469
                obj[dialysisDialyszersArr[i]] +=1
488
               Arr.push(a);
515
               Arr.push(a);
489
             }
516
             }
490
             console.log("newa",Arr)
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 Прегледај датотеку

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

+ 6 - 6
src/xt_pages/dialysis/details/consumable/index.vue Прегледај датотеку

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/dialysis/details/dialog/DoctorAdviceDialog.vue Прегледај датотеку

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

+ 1 - 1
src/xt_pages/hospitalStation/chargeDetailManagement.vue Прегледај датотеку

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 - 0
src/xt_pages/hospitalStation/components/deskPrescription.vue Прегледај датотеку

2364
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2364
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2365
                   this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2365
                   this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2366
                   this.prescriptions[i].project[b].single_dose = this.prescriptions[i].project[b].single_dose.toString()
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 Прегледај датотеку

1232
                     remark: prescription.project[b].remark,
1232
                     remark: prescription.project[b].remark,
1233
                     medical_code: prescription.project[b].project.medical_code,
1233
                     medical_code: prescription.project[b].project.medical_code,
1234
                     unit: prescription.project[b].unit,
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
                     obj['medical_code'] = prescription.project[b].project.medical_code
1244
                     obj['medical_code'] = prescription.project[b].project.medical_code
1244
                     obj['project_name'] = prescription.project[b].project.project_name
1245
                     obj['project_name'] = prescription.project[b].project.project_name
1245
                     obj['project'] = prescription.project[b].project
1246
                     obj['project'] = prescription.project[b].project
1247
+                  
1246
 
1248
 
1247
                   } else if (prescription.project[b].type == 3) {
1249
                   } else if (prescription.project[b].type == 3) {
1248
                     if(prescription.project[b].team_id > 0){
1250
                     if(prescription.project[b].team_id > 0){
1252
                     obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1254
                     obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1253
                     obj['project_name'] = prescription.project[b].good_info.good_name
1255
                     obj['project_name'] = prescription.project[b].good_info.good_name
1254
                     obj['good_info'] = prescription.project[b].good_info
1256
                     obj['good_info'] = prescription.project[b].good_info
1257
+                  
1255
 
1258
 
1256
                   }
1259
                   }
1257
                   tempProject.push(obj)
1260
                   tempProject.push(obj)
1372
                       remark: prescription.project[b].remark,
1375
                       remark: prescription.project[b].remark,
1373
                       medical_code: prescription.project[b].project.medical_code,
1376
                       medical_code: prescription.project[b].project.medical_code,
1374
                       unit: prescription.project[b].unit,
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
                       obj['project_name'] = prescription.project[b].project.project_name
1386
                       obj['project_name'] = prescription.project[b].project.project_name
1383
                       obj['price'] = prescription.project[b].project.price
1387
                       obj['price'] = prescription.project[b].project.price
1384
                       obj['project'] = prescription.project[b].project
1388
                       obj['project'] = prescription.project[b].project
1389
+                      
1385
 
1390
 
1386
                     } else if (prescription.project[b].type == 3) {
1391
                     } else if (prescription.project[b].type == 3) {
1387
                       obj['statistical_classification'] = ''
1392
                       obj['statistical_classification'] = ''
1389
                       obj['project_name'] = prescription.project[b].good_info.good_name
1394
                       obj['project_name'] = prescription.project[b].good_info.good_name
1390
                       obj['price'] = prescription.project[b].good_info.packing_price
1395
                       obj['price'] = prescription.project[b].good_info.packing_price
1391
                       obj['good_info'] = prescription.project[b].good_info
1396
                       obj['good_info'] = prescription.project[b].good_info
1397
+                     
1392
                     }
1398
                     }
1393
                     tempProject.push(obj)
1399
                     tempProject.push(obj)
1394
                   }
1400
                   }
1645
                           remark: prescription.project[b].remark,
1651
                           remark: prescription.project[b].remark,
1646
                           medical_code: prescription.project[b].project.medical_code,
1652
                           medical_code: prescription.project[b].project.medical_code,
1647
                           unit: prescription.project[b].unit,
1653
                           unit: prescription.project[b].unit,
1648
-                          type: prescription.project[b].type
1654
+                          type: prescription.project[b].type,
1655
+                         
1649
                         }
1656
                         }
1650
 
1657
 
1651
                         if (prescription.project[b].type == 2) {
1658
                         if (prescription.project[b].type == 2) {
1784
                             remark: prescription.project[b].remark,
1791
                             remark: prescription.project[b].remark,
1785
                             medical_code: prescription.project[b].project.medical_code,
1792
                             medical_code: prescription.project[b].project.medical_code,
1786
                             unit: prescription.project[b].unit,
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
                           if (prescription.project[b].type == 2) {
1798
                           if (prescription.project[b].type == 2) {
2136
                           remark: prescription.project[b].remark,
2143
                           remark: prescription.project[b].remark,
2137
                           medical_code: prescription.project[b].project.medical_code,
2144
                           medical_code: prescription.project[b].project.medical_code,
2138
                           unit: prescription.project[b].unit,
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
                         if (prescription.project[b].type == 2) {
2151
                         if (prescription.project[b].type == 2) {
2266
                             remark: prescription.project[b].remark,
2275
                             remark: prescription.project[b].remark,
2267
                             medical_code: prescription.project[b].project.medical_code,
2276
                             medical_code: prescription.project[b].project.medical_code,
2268
                             unit: prescription.project[b].unit,
2277
                             unit: prescription.project[b].unit,
2269
-                            type: prescription.project[b].type
2278
+                            type: prescription.project[b].type,
2279
+                           
2270
                           }
2280
                           }
2271
 
2281
 
2272
                           if (prescription.project[b].type == 2) {
2282
                           if (prescription.project[b].type == 2) {
2608
                         remark: prescription.project[b].remark,
2618
                         remark: prescription.project[b].remark,
2609
                         medical_code: prescription.project[b].project.medical_code,
2619
                         medical_code: prescription.project[b].project.medical_code,
2610
                         unit: prescription.project[b].unit,
2620
                         unit: prescription.project[b].unit,
2611
-                        type: prescription.project[b].type
2621
+                        type: prescription.project[b].type,
2622
+                        
2612
                       }
2623
                       }
2613
 
2624
 
2614
                       if (prescription.project[b].type == 2) {
2625
                       if (prescription.project[b].type == 2) {
2737
                           remark: prescription.project[b].remark,
2748
                           remark: prescription.project[b].remark,
2738
                           medical_code: prescription.project[b].project.medical_code,
2749
                           medical_code: prescription.project[b].project.medical_code,
2739
                           unit: prescription.project[b].unit,
2750
                           unit: prescription.project[b].unit,
2740
-                          type: prescription.project[b].type
2751
+                          type: prescription.project[b].type,
2752
+                         
2741
                         }
2753
                         }
2742
 
2754
 
2743
                         if (prescription.project[b].type == 2) {
2755
                         if (prescription.project[b].type == 2) {

+ 2 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Прегледај датотеку

91
                         </el-button>
91
                         </el-button>
92
           </div>
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
 <!--            <el-button size="small"-->
95
 <!--            <el-button size="small"-->
96
 <!--                       @click="openZb(1)"-->
96
 <!--                       @click="openZb(1)"-->
97
 <!--                       type="primary">登记-->
97
 <!--                       type="primary">登记-->
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(process.env.BASE_API  + '/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 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Прегледај датотеку

2366
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2366
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
2367
                   this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2367
                   this.prescriptions[i].project[b].delivery_way = this.prescriptions[i].project[b].delivery_way.toString()
2368
                   this.prescriptions[i].project[b].single_dose = this.prescriptions[i].project[b].single_dose.toString()
2368
                   this.prescriptions[i].project[b].single_dose = this.prescriptions[i].project[b].single_dose.toString()
2369
+                 
2369
 
2370
 
2370
                 }
2371
                 }
2371
 
2372
 
2633
                   month_prescriptions[i].project[b].total = month_prescriptions[i].project[b].total.toString()
2634
                   month_prescriptions[i].project[b].total = month_prescriptions[i].project[b].total.toString()
2634
                   month_prescriptions[i].project[b].delivery_way = month_prescriptions[i].project[b].delivery_way.toString()
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
                 for (let b = 0; b < month_prescriptions[i].addition.length; b++) {
2641
                 for (let b = 0; b < month_prescriptions[i].addition.length; b++) {

+ 24 - 13
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Прегледај датотеку

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

+ 3 - 1
src/xt_pages/stock/drugs/components/drugQuery.vue Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

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 Прегледај датотеку

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