ソースを参照

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

csx 2 年 前
コミット
246a56c415
共有31 個のファイルを変更した497 個の追加179 個の削除を含む
  1. 5 3
      src/xt_pages/data/components/addDrugs.vue
  2. 4 3
      src/xt_pages/data/components/drugs.vue
  3. 1 1
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue
  4. 3 2
      src/xt_pages/dialysis/bloodPresssWatch.vue
  5. 1 1
      src/xt_pages/dialysis/details/NavIgation.vue
  6. 1 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  7. 7 1
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  8. 91 11
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  9. 18 19
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  10. 4 3
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  11. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  12. 14 2
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  13. 2 2
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  14. 26 14
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  15. 20 8
      src/xt_pages/hospitalStation/components/prescriptionTable.vue
  16. 24 16
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  17. 19 6
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue
  18. 17 4
      src/xt_pages/outpatientTool/components/detailStatistics.vue
  19. 31 18
      src/xt_pages/outpatientTool/detailPrint.vue
  20. 36 10
      src/xt_pages/outpatientTool/gatherPrint.vue
  21. 18 8
      src/xt_pages/qcd/officesControlAnalysis/time.vue
  22. 5 2
      src/xt_pages/stock/detail/stockOutDetail.vue
  23. 7 3
      src/xt_pages/stock/drugs/components/drugOutDetail.vue
  24. 5 0
      src/xt_pages/stock/drugs/drugBatchNumber.vue
  25. 1 0
      src/xt_pages/stock/drugs/drugDamaged.vue
  26. 6 2
      src/xt_pages/stock/drugs/drugStockOutOrder.vue
  27. 100 23
      src/xt_pages/stock/drugs/print.vue
  28. 1 1
      src/xt_pages/stock/inventoryDetails.vue
  29. 14 12
      src/xt_pages/stock/print_all.vue
  30. 5 0
      src/xt_pages/stock/stockBatchNumber.vue
  31. 10 2
      src/xt_pages/stock/stockOutOrder.vue

+ 5 - 3
src/xt_pages/data/components/addDrugs.vue ファイルの表示

@@ -606,6 +606,8 @@
606 606
           total:"",
607 607
           specification_name:"",
608 608
           is_user:"2",
609
+          sum_count:"",
610
+          sum_in_count:"",
609 611
         },
610 612
 
611 613
         rules: {
@@ -721,6 +723,7 @@
721 723
         this.form.intro = ''
722 724
       },
723 725
       show(id, obj) {
726
+        console.log("obj3223323232332",obj)
724 727
         this.unitList = []
725 728
         this.packingUnit = []
726 729
         var arr =  getDataConfig('hemodialysis','units')
@@ -889,9 +892,6 @@
889 892
         form['drug_dose_unit'] = this.form.drug_dose_unit
890 893
         form['medical_insurance_number'] = this.form.medical_insurance_number
891 894
         form['provinces_code'] = this.form.provinces_code
892
-
893
-
894
-
895 895
         form['manufacturer'] = this.form.manufacturer
896 896
         form['pharmacology_category'] = this.form.pharmacology_category
897 897
         form['statistics_category'] = this.form.statistics_category
@@ -930,6 +930,8 @@
930 930
         form['prescribing_number_unit'] = this.form.prescribing_number_unit
931 931
         form['specification_name'] = this.form.specification_name
932 932
         form['is_user'] = this.form.is_user
933
+        form['sum_count'] = this.form.sum_count
934
+        form['sum_in_count'] = this.form.sum_in_count
933 935
         return form
934 936
       },
935 937
       getlist() {

+ 4 - 3
src/xt_pages/data/components/drugs.vue ファイルの表示

@@ -529,7 +529,8 @@
529 529
           val['id'] = this.current_id;
530 530
 
531 531
           val.min_number =  parseInt(val.min_number)
532
-
532
+          console.log("Val323323232",val)
533
+          
533 534
           editBaseDrugLib(val,untit).then(response => {
534 535
             if (response.data.state == 0) {
535 536
               this.$message.error(response.data.msg);
@@ -720,7 +721,7 @@
720 721
               if(this.formValue.drug_classify == 0){
721 722
                  this.formValue.drug_classify = ""
722 723
               }
723
-
724
+             
724 725
 
725 726
 
726 727
               this.$refs.addDrugs.show(id, this.formValue)
@@ -1198,7 +1199,7 @@
1198 1199
             if (results[i]['默认给药途径'] === undefined) {
1199 1200
                 obj['delivery_way'] = ''
1200 1201
               } else {
1201
-            if (key == '经销商') {
1202
+            if (key == '默认给药途径') {
1202 1203
                 obj['delivery_way'] = results[i][key].replace(/\s/g,"")
1203 1204
               }
1204 1205
            }

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue ファイルの表示

@@ -707,7 +707,7 @@
707 707
                                 <td width="80">钠浓度(ml/h)/<br />温度(°C)</td>
708 708
                                 <td width="50">脉搏<br />(次/分)</td>
709 709
                                 <td width="60">血压<br />(mmHg)</td>
710
-                                <td width="50">血容量</td>
710
+                                <td width="50">血容量<br />(L)</td>
711 711
                                 <td width="50">签名</td>
712 712
                                 <td width="200">病情变化及处理</td>
713 713
                                 </tr>

+ 3 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue ファイルの表示

@@ -2,6 +2,7 @@
2 2
   <div class="main-contain">
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    
5 6
       <template v-if="this.template_id == 1">
6 7
         <el-button
7 8
           size="small"
@@ -97,8 +98,7 @@
97 98
           :disabled="selecting_schs.length == 0"
98 99
           @click="batchPrintAction"
99 100
           type="primary"
100
-          >打印</el-button
101
-        >
101
+          >打印</el-button>
102 102
       </template>
103 103
       <template v-if="this.template_id == 7">
104 104
         <el-button
@@ -708,6 +708,7 @@ export default {
708 708
         } else {
709 709
           var template = response.data.data.template;
710 710
           this.template_id = template.template_id;
711
+          console.log("templage-i233232323232322323233232323223",this.template_id)
711 712
         }
712 713
       });
713 714
     },

+ 1 - 1
src/xt_pages/dialysis/details/NavIgation.vue ファイルの表示

@@ -555,7 +555,7 @@ export default {
555 555
   },
556 556
   methods: {
557 557
     getUnReadNum: function() {
558
-      console.log("医嘱中国23322222222222222222222222222",this.doctor_advices)
558
+     
559 559
       let doctorAdvice = [];
560 560
       for (let y = 0; y < this.doctor_advices.length; y++) {
561 561
         if (this.doctor_advices[y].execution_state == 2) {

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue ファイルの表示

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>

+ 7 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue ファイルの表示

@@ -791,8 +791,12 @@
791 791
         this.lastPredialysisEvaluation = last_predialysis_evaluation
792 792
        
793 793
        
794
-        console.log("获取上次数据",this.lastPredialysisEvaluation)
794
+        console.log("获取上次数据",this.lastPredialysisEvaluation, this.$store.getters.xt_user.org.id )
795 795
         if(this.lastPredialysisEvaluation != null) {
796
+        // if(this.lastPredialysisEvaluation.remark == "" && this.$store.getters.xt_user.org.id == 10307){
797
+        //     console.log("2o2o3232o23o2o3o23")
798
+        //     this.assessmentBeforeDislysis.remark = "患者已确认无发热,无流行病学接触史"
799
+        // } 
796 800
          if(this.lastPredialysisEvaluation.thromubus_type == 1){
797 801
           this.assessmentBeforeDislysis.thromubus_type = this.lastPredialysisEvaluation.thromubus_type.toString()
798 802
            this.thrombuShow = true
@@ -822,6 +826,7 @@
822 826
           if(this.lastPredialysisEvaluation.period == 2){
823 827
              this.lastPredialysisEvaluation.period = "2"
824 828
           }
829
+         
825 830
         }
826 831
 
827 832
 
@@ -1298,6 +1303,7 @@
1298 1303
       }
1299 1304
     },
1300 1305
     created() {
1306
+  
1301 1307
       this.last_dialysis_after = getDataConfig('hemodialysis', 'last_dialysis_after')
1302 1308
       this.dialysis_interphase = getDataConfig('hemodialysis', 'dialysis_duration')
1303 1309
       this.symptom_before_dialysis = getDataConfig('hemodialysis', 'dialysis_before')

+ 91 - 11
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue ファイルの表示

@@ -8,12 +8,8 @@
8 8
                 :append-to-body="true"
9 9
                 class="newDialog"
10 10
         >
11
-            <el-button
12
-                    style="position: absolute;left: 12%;top: 2%"
13
-                    @click="handlePatientInfo"
14
-            >{{ patient.name }}
15
-            </el-button
16
-            >
11
+            <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{ patient.name }}</el-button>
12
+            <!-- <el-button style="position: absolute;left: 20%;top: 2%" @click="handlePatientInfoOne">上机打印单 </el-button> -->
17 13
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
18 14
             <el-form
19 15
                     ref="dialysisPrescription"
@@ -956,6 +952,70 @@
956 952
       </span>
957 953
         </el-dialog>
958 954
 
955
+
956
+        <el-dialog
957
+                :title="patient.name"
958
+                :visible.sync="startVisibility"
959
+                :close-on-click-modal="false"
960
+                :close-on-press-escape="false"
961
+                :show-close="false"
962
+                width="30%"
963
+        >
964
+         <el-button
965
+            size="small"
966
+            icon="el-icon-printer"
967
+            type="primary"
968
+            @click="printAction"
969
+            style="float:right"
970
+            >打印</el-button
971
+          >
972
+       <div id="print_content">
973
+        <div class="print_main_content">
974
+          <div class="table_panel">
975
+              <div class="signPrint" style="font-size:16px;">
976
+                <div style="margin-left:50px;">姓名:
977
+                  <span>{{ patient.name }} </span>
978
+                  ({{patient.dialysis_no }},{{patient.age}}岁)
979
+                </div>
980
+                <div class="printCell">
981
+                  <span>
982
+                    床号:{{schedual.device_number.number}}
983
+                    <span style="width:auto;" v-if="schedual.schedule_type == 1">上午</span>
984
+                    <span style="width:auto;" v-if="schedual.schedule_type == 2">下午</span>
985
+                    <span style="width:auto;" v-if="schedual.schedule_type == 3">晚上</span>
986
+                  </span>
987
+                  <span> </span>
988
+                </div>
989
+                <div class="printCell">
990
+                  <span>干体重:{{getDryWeight()}}Kg</span>
991
+                  <span>抗凝剂:
992
+                     {{dialysisPrescription.anticoagulant}}
993
+                  </span>
994
+                </div>
995
+                <div class="printCell">
996
+                  <span>净重值:Kg</span>
997
+                  <span>首剂:{{dialysisPrescription.anticoagulant}}</span>
998
+                </div>
999
+                <div class="printCell">
1000
+                  <span>体重增加:Kg</span>
1001
+                  <span>维持:</span>
1002
+                </div>
1003
+                <div class="printCell">
1004
+                  <span>处方脱水量:{{dialysisPrescription.target_ultrafiltration}}</span>
1005
+                  <span>总量:</span>
1006
+                </div>
1007
+              </div>
1008
+         
1009
+          </div>
1010
+        </div>
1011
+      </div>
1012
+
1013
+            <span slot="footer" class="dialog-footer">
1014
+        <el-button @click="cancleMsgOne()">取 消</el-button>
1015
+        <el-button type="primary" @click="cancleMsgOne()">确 定</el-button>
1016
+      </span>
1017
+    </el-dialog>
1018
+
959 1019
         <multi-select-box
960 1020
                 :propsForm="InnerDialogProps"
961 1021
                 v-on:dialog-comfirm="innerDialogComfirm"
@@ -972,7 +1032,7 @@
972 1032
   import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
973 1033
   import store from '@/store'
974 1034
   import MsgTip from './MsgTip'
975
-
1035
+  import print from 'print-js'
976 1036
   import request from '@/utils/request'
977 1037
   import multiSelectBox from './MultiSelectBox'
978 1038
 
@@ -1239,7 +1299,7 @@
1239 1299
         blood_access_option: [],
1240 1300
         is_pre: 0,
1241 1301
         msgtip_visibility: false,
1242
-
1302
+        startVisibility:false,
1243 1303
         dialysisPrescription: {
1244 1304
           replacement_total: '',
1245 1305
           mode_id: '',
@@ -3406,10 +3466,18 @@
3406 3466
         this.isVisibility = false
3407 3467
         this.msgtip_visibility = true
3408 3468
       },
3469
+      handlePatientInfoOne(){
3470
+        this.isVisibility = false
3471
+        this.startVisibility = true
3472
+      },
3409 3473
       cancleMsg() {
3410 3474
         this.isVisibility = true
3411 3475
         this.msgtip_visibility = false
3412 3476
       },
3477
+      cancleMsgOne(){
3478
+       this.isVisibility = true
3479
+       this.startVisibility = false
3480
+      },
3413 3481
       getPermission() {
3414 3482
         request
3415 3483
           .get('/api/func_per/get', {
@@ -3454,7 +3522,18 @@
3454 3522
       unique(arr) {
3455 3523
         const res = new Map()
3456 3524
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
3457
-      }
3525
+      },
3526
+      printAction: function() {
3527
+        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
3528
+        const style1 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 170px;} @page {margin-top:10px;}}'
3529
+        printJS({
3530
+          printable: 'print_content',
3531
+          type: 'html',
3532
+          documentTitle: '  ',
3533
+          style: style1,
3534
+          scanStyles: false
3535
+        }) 
3536
+      },
3458 3537
 
3459 3538
     },
3460 3539
 
@@ -3963,10 +4042,11 @@
3963 4042
         this.irrigations = irrigation
3964 4043
         console.log('透析器', this.dialyzers)
3965 4044
         console.log('灌流器', this.irrigations)
3966
-      }
4045
+      },
4046
+   
3967 4047
     },
3968 4048
     created() {
3969
-
4049
+      console.log("schedual232323323232323232",this.schedual)
3970 4050
       this.illnessList = getDataConfig('hemodialysis', 'illness')
3971 4051
 
3972 4052
       this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')

+ 18 - 19
src/xt_pages/dialysis/dialysisDoctorAdvice.vue ファイルの表示

@@ -440,7 +440,6 @@ export default {
440 440
     this.getAllZone();
441 441
     this.getTemplateInfo();
442 442
     this.requestSchedualDoctors(this.time)
443
-    // this.template_id = this.$store.getters.xt_user.template_info.template_id;
444 443
     this.org_id = this.$store.getters.xt_user.template_info.org_id;
445 444
   },
446 445
   methods: {
@@ -470,13 +469,11 @@ export default {
470 469
 
471 470
       this.schedulType = scheduleType;
472 471
       this.listQuery.schedul_type = scheduleType;
473
-      console.log("班次",this.listQuery.schedul_type)
474 472
       this.requestSchedualDoctors(this.time);
475 473
     },
476 474
     selectPartitionType(partitionType) {
477 475
       this.partitionType = partitionType;
478 476
       this.listQuery.partition_type = partitionType;
479
-      console.log("分区",this.listQuery.partition_type)
480 477
       this.requestSchedualDoctors(this.time);
481 478
     },
482 479
 
@@ -522,23 +519,22 @@ export default {
522 519
          var schedule_type = this.listQuery.schedul_type
523 520
          var partition_type = this.listQuery.partition_type
524 521
 
525
-        console.log("班次",schedule_type,"分区",partition_type)
526 522
         getSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id}).then(rs => {
527 523
         var resp = rs.data
528 524
         if (resp.state == 1) {
529 525
             this.admin_users = resp.data.adminUser
530 526
             var schedules = resp.data.scheduals
531
-            console.log("列表数据",schedules)
527
+         
532 528
             var config = resp.data.config
533
-            console.log("config222222",config.is_open)
529
+           
534 530
             let project_config = resp.data.project_config
535
-            console.log('project_config',)
531
+            
536 532
             if(project_config.is_open == 1){
537 533
               this.project = resp.data.project
538 534
               console.log( this.project)
539 535
              
540 536
               let projectArr = []
541
-              if(this.org_id !=9671 && this.org_id!= 10318){
537
+              if(this.org_id!= 10318){
542 538
                 this.project.map(item => {
543 539
                   resp.data.hisAdvices.map(it => {
544 540
                     if(item.patient_id == it.patient_id){
@@ -546,14 +542,15 @@ export default {
546 542
                     }
547 543
                   })
548 544
                 })
549
-               
545
+                
550 546
                  resp.data.hisAdvices.map((item,index) => {
551 547
                   if(projectArr[index].project && projectArr[index].project.length > 0){
552
-                    projectArr[index].project.map(it => {
548
+                     projectArr[index].project.map(it => {
549
+                     
553 550
                       let obj = {
554 551
                         advice_doctor: it.doctor,
555 552
                         start_time:it.start_time,
556
-                        advice_name:it.team_id > 0 && it.is_check_team == 1 ? it.team.project_team : it.type == 2 ? it.project.project_name : it.good_info.good_name,
553
+                        advice_name:it.team_id > 0 && it.is_check_team == 1 ? it.team.project_team : it.type == 2 ? it.project.project_name+' '+it.count + it.project.unit : it.good_info.good_name +' '+it.count+ it.good_info.packing_unit,
557 554
                         execution_time:it.execution_time,
558 555
                         execution_state:it.execution_state,
559 556
                         execution_staff:it.execution_staff,
@@ -575,10 +572,10 @@ export default {
575 572
                 })
576 573
               }
577 574
             
578
-              console.log(projectArr)
575
+             
579 576
 
580 577
             }
581
-            console.log('resp.data.hisAdvices',resp.data.hisAdvices)
578
+           
582 579
            if(config.is_open == 0 || config.is_open == 2){
583 580
             this.show = true
584 581
             this.showOne = false
@@ -602,7 +599,7 @@ export default {
602 599
                     arr.push(it)
603 600
                 })
604 601
             })
605
-            console.log("班次3333333",this.schedulType)
602
+           
606 603
             if(this.schedulType == 0){
607 604
                 newSchedules = arr
608 605
             }else{
@@ -613,7 +610,7 @@ export default {
613 610
                 })
614 611
             }
615 612
 
616
-            console.log("分区",this.partitionType)
613
+           
617 614
             if(this.partitionType == 0){
618 615
                 this.scheduleMap = newSchedules
619 616
             }else {
@@ -625,7 +622,7 @@ export default {
625 622
                 })
626 623
                 this.scheduleMap = a
627 624
             }
628
-            console.log("列表22222",this.scheduleMap)
625
+
629 626
             this.scheduleMap.map(ele => {
630 627
                 let firstIndex = this.scheduleMap.findIndex(item => {
631 628
                   return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
@@ -642,10 +639,11 @@ export default {
642 639
             this.indexInfoList = newArr
643 640
            }
644 641
            if(config.is_open == 1){
642
+           
645 643
              this.show = false
646 644
              this.showOne  = true
647 645
             var schedules =  resp.data.hisAdvices
648
-            console.log("hhhhhhhh22323232323232",schedules)
646
+           
649 647
             let arr = []
650 648
             let newArr = []
651 649
             let newSchedules = []
@@ -688,7 +686,7 @@ export default {
688 686
                 })
689 687
                 this.scheduleMap = a
690 688
             }
691
-            console.log('333333344444',this.scheduleMap)
689
+ 
692 690
             this.scheduleMap.map(ele => {
693 691
                 let firstIndex = this.scheduleMap.findIndex(item => {
694 692
                   return item.patient_id === ele.patient_id   // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
@@ -705,8 +703,9 @@ export default {
705 703
             this.indexInfoList = newArr
706 704
            }
707 705
          }
708
-         console.log("列表22222",this.indexInfoList)
706
+         
709 707
         })
708
+        
710 709
     },
711 710
     getValue: function(val) {
712 711
       if (val != undefined) {

+ 4 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue ファイルの表示

@@ -839,15 +839,16 @@
839 839
               {{ monitor.temperature ? monitor.temperature : "" }}
840 840
             </span>
841 841
           </td>
842
+          
843
+
842 844
           <td>
843 845
             <span v-if="getTime(monitor.operate_time) != ''">
844
-              {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
846
+              {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
845 847
             </span>
846 848
           </td>
847
-
848 849
           <td>
849 850
             <span v-if="getTime(monitor.operate_time) != ''">
850
-              {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
851
+              {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
851 852
             </span>
852 853
           </td>
853 854
 

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue ファイルの表示

@@ -641,7 +641,7 @@
641 641
                         <td width="80">钠浓度(ml/h)/<br />温度(°C)</td>
642 642
                         <td width="50">脉搏<br />(次/分)</td>
643 643
                         <td width="60">血压<br />(mmHg)</td>
644
-                        <td width="50">血容量</td>
644
+                        <td width="50">血容量<br />L</td>
645 645
                         <td width="50">签名</td>
646 646
                         <td width="200">病情变化及处理</td>
647 647
                       </tr>

+ 14 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue ファイルの表示

@@ -1190,7 +1190,9 @@
1190 1190
                         </td>
1191 1191
                         <td width="60" v-if="org_id != 9836">透析液温度(°C)</td>
1192 1192
                         <td width="60" v-if="org_id == 9836">体温(°C)</td>
1193
-                        <td width="50">电导度<br />(ms/cm)</td>
1193
+
1194
+                        <td width="50" v-if="org_id != 10121 && org_id != 9675&& org_id != 0">电导度<br />(ms/cm)</td>
1195
+                        <td width="50" v-if="org_id == 10121|| org_id == 9675|| org_id == 0">SpO₂<br />(%)</td>
1194 1196
                         <td width="50">超滤量<br />(ml)</td>
1195 1197
                         <td
1196 1198
                           v-if="
@@ -1302,7 +1304,9 @@
1302 1304
                         <td v-if="org_id == 9836">
1303 1305
                           {{ monitor.temperature ? monitor.temperature : "" }}
1304 1306
                         </td>
1305
-                        <td v-if="org_id != 9538">
1307
+
1308
+
1309
+                        <td v-if="org_id != 9538 && org_id != 10121 && org_id != 9675&& org_id != 0">
1306 1310
                           {{ monitor.conductivity ? monitor.conductivity : "" }}
1307 1311
                         </td>
1308 1312
                         <td v-if="org_id == 9538">
@@ -1312,10 +1316,18 @@
1312 1316
                               : ""
1313 1317
                           }}
1314 1318
                         </td>
1319
+                        <td v-if="org_id == 10121|| org_id == 9675|| org_id == 0">
1320
+                          {{
1321
+                            monitor.blood_oxygen_saturation
1322
+                              ? monitor.blood_oxygen_saturation
1323
+                              : ""
1324
+                          }}
1325
+                        </td>
1315 1326
                         <td
1316 1327
                           v-if="
1317 1328
                             (dialysisOrder &&
1318 1329
                               monitor.operate_time > dialysisOrder.end_time) ||
1330
+
1319 1331
                             (dialysisOrder &&
1320 1332
                               monitor.operate_time < dialysisOrder.start_time)
1321 1333
                           "

+ 2 - 2
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue ファイルの表示

@@ -842,8 +842,8 @@
842 842
               <p style="height: 20px; line-height: 20px">ml</p>
843 843
             </th>
844 844
             <th style="width: 70px">
845
-              <p style="height: 20px; line-height: 20px">Kt/V</p>
846
-              <p style="height: 20px; line-height: 20px">ml</p>
845
+              <p style="height: 20px; line-height: 20px">KT/V</p>
846
+              <p style="height: 20px; line-height: 20px">&nbsp;</p>
847 847
             </th>
848 848
             <th style="width: 40px">
849 849
               <p style="height: 20px; line-height: 20px">T</p>

+ 26 - 14
src/xt_pages/hospitalStation/components/deskPrescription.vue ファイルの表示

@@ -2427,7 +2427,8 @@ export default {
2427 2427
                             child: [],
2428 2428
                             sum_count:item.drug.sum_count,
2429 2429
                             out_count:0,
2430
-                            str:item.drug.drug_name + " "+item.drug.dose + item.drug.dose_unit + "*" + item.drug.min_number + item.drug.min_unit+"/"+item.drug.max_unit
2430
+                            str:item.drug.drug_name + " "+item.drug.dose + item.drug.dose_unit + "*" + item.drug.min_number + item.drug.min_unit+"/"+item.drug.max_unit,
2431
+                            is_user:item.drug.is_user,
2431 2432
                           };
2432 2433
                         }
2433 2434
                       });
@@ -2455,12 +2456,15 @@ export default {
2455 2456
 
2456 2457
                       if(newArr.length > 0){
2457 2458
                         for(let i=0;i<newArr.length;i++){
2458
-                          if(newArr[i].out_count > newArr[i].sum_count){
2459
-                            this.$message.error(newArr[i].str + "库存不足,保存失败!")
2460
-                            isLoading = false
2461
-                            this.$emit('editKeepLoad', false)
2462
-                            return
2463
-                          }
2459
+                           if(newArr[i].is_user!=1){
2460
+                             if(newArr[i].out_count > newArr[i].sum_count){
2461
+                              this.$message.error(newArr[i].str + "库存不足,保存失败!")
2462
+                              isLoading = false
2463
+                              this.$emit('editKeepLoad', false)
2464
+                              return
2465
+                             }
2466
+                           }
2467
+                       
2464 2468
                         }
2465 2469
                       }
2466 2470
                       console.log("newArr",newArr )
@@ -2485,7 +2489,8 @@ export default {
2485 2489
                             child: [],
2486 2490
                             sum_count:item.drug.sum_count,
2487 2491
                             out_count:0,
2488
-                            str:item.drug.drug_name + " "+item.drug.dose + item.drug.dose_unit + "*" + item.drug.min_number + item.drug.min_unit+"/"+item.drug.max_unit
2492
+                            str:item.drug.drug_name + " "+item.drug.dose + item.drug.dose_unit + "*" + item.drug.min_number + item.drug.min_unit+"/"+item.drug.max_unit,
2493
+                            is_user:item.drug.is_user,
2489 2494
                           };
2490 2495
                         }
2491 2496
                       });
@@ -2525,12 +2530,15 @@ export default {
2525 2530
 
2526 2531
                       if(newArr.length > 0){
2527 2532
                         for(let i=0;i<newArr.length;i++){
2528
-                          if(newArr[i].out_count > newArr[i].sum_count){
2529
-                            this.$message.error(newArr[i].str + "库存不足,保存失败!")
2530
-                            isLoading = false
2531
-                            this.$emit('editKeepLoad', false)
2532
-                            return
2533
+                          if(newArr[i].is_user!=1){
2534
+                            if(newArr[i].out_count > newArr[i].sum_count){
2535
+                              this.$message.error(newArr[i].str + "库存不足,保存失败!")
2536
+                              isLoading = false
2537
+                              this.$emit('editKeepLoad', false)
2538
+                              return
2539
+                            }
2533 2540
                           }
2541
+                        
2534 2542
                         }
2535 2543
                       }
2536 2544
                       console.log("newArr",newArr )
@@ -2925,7 +2933,9 @@ export default {
2925 2933
       //     return
2926 2934
       //   }
2927 2935
       // }
2928
-       if (row.sum_count <= 0) {
2936
+    
2937
+      if(row.is_user!=1){
2938
+        if (row.sum_count <= 0) {
2929 2939
           if (selection) {
2930 2940
             selection.forEach(row => {
2931 2941
               if (row.sum_count <= 0) {
@@ -2938,6 +2948,8 @@ export default {
2938 2948
           this.$message.error(row.drug_name + '库存不足')
2939 2949
           return
2940 2950
        }
2951
+      }
2952
+
2941 2953
       this.curDrugs = selection
2942 2954
     },
2943 2955
 

+ 20 - 8
src/xt_pages/hospitalStation/components/prescriptionTable.vue ファイルの表示

@@ -466,13 +466,19 @@
466 466
         }
467 467
         if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
468 468
           // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
469
-          if (scope.row.prescribing_number > scope.row.drug.sum_count) {
470
-            this.$message.error(scope.row.drug_name + '库存不足')
469
+          if(scope.row.drug.is_user!=1){
470
+            if (scope.row.prescribing_number > scope.row.drug.sum_count) {
471
+              this.$message.error(scope.row.drug_name + '库存不足')
472
+            }
471 473
           }
474
+         
472 475
         } else {
473
-          if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
474
-            this.$message.error(scope.row.drug_name + '库存不足')
476
+          if(scope.row.drug.is_user!=1){
477
+            if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
478
+              this.$message.error(scope.row.drug_name + '库存不足')
479
+            }
475 480
           }
481
+        
476 482
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
477 483
         }
478 484
 
@@ -510,13 +516,19 @@
510 516
       },
511 517
       changePrescribingNumber(scope) {
512 518
         if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
513
-          if (parseInt(scope.row.prescribing_number) > scope.row.drug.sum_count) {
514
-            this.$message.error(scope.row.drug_name + '库存不足')
519
+          if(scope.row.drug.is_user!=1){
520
+           if (parseInt(scope.row.prescribing_number) > scope.row.drug.sum_count) {
521
+              this.$message.error(scope.row.drug_name + '库存不足')
522
+           }
515 523
           }
524
+        
516 525
         } else {
517
-          if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
518
-            this.$message.error(scope.row.drug_name + '库存不足')
526
+          if(scope.row.drug.is_user!=1){
527
+            if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
528
+              this.$message.error(scope.row.drug_name + '库存不足')
529
+            }
519 530
           }
531
+         
520 532
         }
521 533
       },
522 534
       getProjectSingleDose(scope) {

+ 24 - 16
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue ファイルの表示

@@ -2432,7 +2432,7 @@
2432 2432
                             sum_count:item.drug.sum_count,
2433 2433
                             out_count:0,
2434 2434
                             str:item.drug.drug_name + " "+item.drug.dose + item.drug.dose_unit + "*" + item.drug.min_number + item.drug.min_unit+"/"+item.drug.max_unit,
2435
-
2435
+                            is_user:item.drug.is_user,
2436 2436
                           };
2437 2437
                         }
2438 2438
                       });
@@ -2472,12 +2472,15 @@
2472 2472
 
2473 2473
                       if(newArr.length > 0){
2474 2474
                         for(let i=0;i<newArr.length;i++){
2475
-                          if(newArr[i].out_count > newArr[i].sum_count){
2476
-                            this.$message.error(newArr[i].str + "库存不足,保存失败!")
2477
-                            isLoading = false
2478
-                            this.$emit('editKeepLoad', false)
2479
-                            return
2475
+                          if(newArr[i].is_user!=1){
2476
+                            if(newArr[i].out_count > newArr[i].sum_count){
2477
+                              this.$message.error(newArr[i].str + "库存不足,保存失败!")
2478
+                              isLoading = false
2479
+                              this.$emit('editKeepLoad', false)
2480
+                              return
2481
+                            }
2480 2482
                           }
2483
+                         
2481 2484
                         }
2482 2485
                       }
2483 2486
                       console.log("newArr",newArr )
@@ -2502,7 +2505,8 @@
2502 2505
                             child: [],
2503 2506
                             sum_count:item.drug.sum_count,
2504 2507
                             out_count:0,
2505
-                            str:item.drug.drug_name + " "+item.drug.dose + item.drug.dose_unit + "*" + item.drug.min_number + item.drug.min_unit+"/"+item.drug.max_unit
2508
+                            str:item.drug.drug_name + " "+item.drug.dose + item.drug.dose_unit + "*" + item.drug.min_number + item.drug.min_unit+"/"+item.drug.max_unit,
2509
+                            is_user:item.drug.is_user,
2506 2510
                           };
2507 2511
                         }
2508 2512
                       });
@@ -2530,12 +2534,15 @@
2530 2534
                       console.log("new233223322323",newArr)
2531 2535
                       if(newArr.length > 0){
2532 2536
                         for(let i=0;i<newArr.length;i++){
2533
-                          if(newArr[i].out_count > newArr[i].sum_count){
2534
-                            this.$message.error(newArr[i].str + "库存不足,保存失败!")
2535
-                            isLoading = false
2536
-                            this.$emit('editKeepLoad', false)
2537
-                            return
2537
+                          if(newArr[i].is_user!=1){
2538
+                            if(newArr[i].out_count > newArr[i].sum_count){
2539
+                              this.$message.error(newArr[i].str + "库存不足,保存失败!")
2540
+                              isLoading = false
2541
+                              this.$emit('editKeepLoad', false)
2542
+                              return
2543
+                            }
2538 2544
                           }
2545
+                        
2539 2546
                         }
2540 2547
                       }
2541 2548
                       console.log("newArr",newArr )
@@ -2903,7 +2910,7 @@
2903 2910
         this.$refs.additionalCharges.show()
2904 2911
       },
2905 2912
       selectDrugs(selection, row) {
2906
-        //console.log("row233232233232",row)
2913
+        console.log("row233232233232",row)
2907 2914
         // if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
2908 2915
         //     if (row.count <= 0) {
2909 2916
         //       if (selection) {
@@ -2933,8 +2940,9 @@
2933 2940
         //       return
2934 2941
         //     }
2935 2942
         // }
2936
-
2937
-        if (row.sum_count <= 0) {
2943
+        
2944
+        if(row.is_user!=1){
2945
+          if (row.sum_count <= 0) {
2938 2946
           if (selection) {
2939 2947
             selection.forEach(row => {
2940 2948
               if (row.sum_count <= 0) {
@@ -2947,7 +2955,7 @@
2947 2955
           this.$message.error(row.drug_name + '库存不足')
2948 2956
           return
2949 2957
          }
2950
-
2958
+        }
2951 2959
         this.curDrugs = selection
2952 2960
       },
2953 2961
 

+ 19 - 6
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue ファイルの表示

@@ -436,6 +436,7 @@
436 436
 
437 437
       },
438 438
       getAllChange(scope) {
439
+        console.log("scope23322332233232",scope)
439 440
         // if (this.prescription.is_medicine_status){
440 441
         //   this.$message.error('该处方已经结算或记账,无法删除')
441 442
         //
@@ -500,13 +501,19 @@
500 501
         }
501 502
         if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
502 503
           // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
503
-          if (scope.row.prescribing_number > scope.row.drug.sum_count) {
504
+          if(scope.row.drug.is_user!=1){
505
+           if (scope.row.prescribing_number > scope.row.drug.sum_count) {
504 506
             this.$message.error(scope.row.drug_name + '库存不足')
507
+           }
505 508
           }
509
+
506 510
         } else {
507
-          if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
511
+          if(scope.row.drug.is_user!=1){
512
+           if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
508 513
             this.$message.error(scope.row.drug_name + '库存不足')
514
+           }
509 515
           }
516
+
510 517
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
511 518
         }
512 519
 
@@ -602,13 +609,19 @@
602 609
 
603 610
 
604 611
         if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
605
-          if (parseInt(scope.row.prescribing_number) > scope.row.drug.sum_count) {
606
-            this.$message.error(scope.row.drug_name + '库存不足')
612
+          if(scope.row.drug.is_user!=1){
613
+            if (parseInt(scope.row.prescribing_number) > scope.row.drug.sum_count) {
614
+              this.$message.error(scope.row.drug_name + '库存不足')
615
+            }
607 616
           }
617
+
608 618
         } else {
609
-          if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
610
-            this.$message.error(scope.row.drug_name + '库存不足')
619
+          if(scope.row.drug.is_user!=1){
620
+            if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
621
+              this.$message.error(scope.row.drug_name + '库存不足')
622
+            }
611 623
           }
624
+
612 625
         }
613 626
       },
614 627
       getProjectSingleDose(scope) {

+ 17 - 4
src/xt_pages/outpatientTool/components/detailStatistics.vue ファイルの表示

@@ -168,9 +168,9 @@
168 168
       <div>总费用:{{ getAllPice() }}</div>
169 169
       <div>
170 170
         个人支付: 
171
-       
172
-        <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
173
-        <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
171
+        {{getActPay()}}
172
+        <!-- <span v-if="his_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>  
173
+        <span v-if="his_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
174 174
       
175 175
       </div>
176 176
       <div>基金支付记账:{{ getFundPaySumamt() }}</div>
@@ -444,12 +444,25 @@ export default {
444 444
       return total_price.toFixed(2);
445 445
     },
446 446
     getActPay() {
447
+      var arrNew = []
447 448
       var act_pay = 0;
448 449
       for (let i = 0; i < this.list.length; i++) {
449 450
         for (let j = 0; j < this.list[i].orders.length; j++) {
450
-          act_pay += this.list[i].orders[j].psn_cash_pay;
451
+          //个人支付
452
+          console.log("is",this.list[i].orders[j])
453
+          if(this.list[i].orders[j].is_medicine_insurance == 0){
454
+             arrNew.push(this.list[i].orders[j])
455
+          }
456
+        }
457
+      }
458
+      if(arrNew.length > 0){
459
+        for(let i=0;i<arrNew.length;i++){
460
+           for(let j=0;j<arrNew[i].order_info.length;j++){
461
+             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
462
+           }
451 463
         }
452 464
       }
465
+      console.log("arrNew2332323223",arrNew)
453 466
       return act_pay.toFixed(2);
454 467
     },
455 468
     getFundPaySumamt() {

+ 31 - 18
src/xt_pages/outpatientTool/detailPrint.vue ファイルの表示

@@ -19,29 +19,27 @@
19 19
             <td>患者姓名:{{ patient.name }}</td>
20 20
             <td>性别:{{ patient.gender == 1 ? "男" : "女" }}</td>
21 21
             <td>结算类别:
22
-          <!-- {{ getType(his_patient.balance_accounts_type) }} -->
23
-          {{getType(his_record_patient.balance_accounts_type)}}</td>
22
+            <span v-if="his_patient!=null&&his_patient.balance_accounts_type >0"> {{ getType(his_patient.balance_accounts_type) }} </span>
23
+            <span v-if="his_record_patient!=null&&his_record_patient.balance_accounts_type >0">{{getType(his_record_patient.balance_accounts_type)}}</span></td>
24 24
             <td>发票号码:{{order.fa_piao_number}}</td>
25 25
           </tr>
26 26
           <tr>
27 27
             <td>住院/门诊号:
28
-          <!-- {{his_patient.number}} -->
29
-          {{his_record_patient.ipt_otp_no}}</td>
28
+          <span v-if="his_patient!=null && his_patient.number!=''">{{his_patient.number}}</span>
29
+          <span v-if="his_record_patient!=null && his_record_patient.ipt_otp_no!=''">{{his_record_patient.ipt_otp_no}}</span></td>
30 30
             <td>科室:
31
-          <!-- {{ getDepartment(his_patient.departments) }} -->
32
-          {{ getDepartment(his_record_patient.departments) }}</td>
31
+          <span v-if="his_patient!=null && his_patient.departments >0"> {{ getDepartment(his_patient.departments) }}</span> 
32
+          <span v-if="his_record_patient!=null && his_record_patient.departments > 0">{{ getDepartment(his_record_patient.departments) }}</span></td>
33 33
             <td>就诊流水号:
34
-          <!-- {{ his_patient.number }} -->
35
-          {{his_record_patient.number}}</td>
34
+          <span v-if="his_patient!=null && his_patient.number!=''"> {{ his_patient.number }}</span>
35
+          <span v-if="his_record_patient!=null && his_record_patient.number!=''">{{his_record_patient.number}}</span></td>
36 36
           </tr>
37 37
           <tr>
38 38
             <td>总费用:{{ getAllPice() }}</td>
39 39
             <td>个人支付:
40
-          <!-- <span v-if="this.$route.query.balance_accounts_type == 2 && his_patient.id >0">{{ getAllPice() }}</span>
41
-          <span v-if="this.$route.query.balance_accounts_type != 2 && his_patient.id >0">{{ getActPay() }}</span> -->
42
-          
43
-          <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
44
-          <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
40
+             {{getActPay()}}
41
+            <!-- <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
42
+            <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
45 43
             </td>
46 44
             <td>基金支付记账:{{ getFundPaySumamt() }}</td>
47 45
             <td>补充医疗支付记账:{{ getHifesPay() }}</td>
@@ -394,12 +392,27 @@ export default {
394 392
       }
395 393
       return total_price;
396 394
     },
397
-    getActPay(){
398
-      var act_pay = 0
399
-      for(let i=0;i<this.orderList.length;i++){
400
-         act_pay += this.orderList[i].psn_part_amt
395
+    getActPay() {
396
+      var arrNew = []
397
+      var act_pay = 0;
398
+      for (let i = 0; i < this.list.length; i++) {
399
+        for (let j = 0; j < this.list[i].orders.length; j++) {
400
+          //个人支付
401
+          console.log("is",this.list[i].orders[j])
402
+          if(this.list[i].orders[j].is_medicine_insurance == 0){
403
+             arrNew.push(this.list[i].orders[j])
404
+          }
405
+        }
406
+      }
407
+      if(arrNew.length > 0){
408
+        for(let i=0;i<arrNew.length;i++){
409
+           for(let j=0;j<arrNew[i].order_info.length;j++){
410
+             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
411
+           }
412
+        }
401 413
       }
402
-      return act_pay.toFixed(2)
414
+      console.log("arrNew2332323223",arrNew)
415
+      return act_pay.toFixed(2);
403 416
     },
404 417
     getFundPaySumamt() {
405 418
       var fund_pay_sumamt = 0;

+ 36 - 10
src/xt_pages/outpatientTool/gatherPrint.vue ファイルの表示

@@ -53,7 +53,7 @@
53 53
         <div class="listInfo" style="margin-bottom: 20px;">
54 54
             <div>记账支付:{{getFundPaySumamt()}}</div>
55 55
             <div>个人账号:{{getAcctPay()}}</div>
56
-            <div>现金支付:{{getPsnCashPay()}}</div>
56
+            <div>现金支付:{{getActPay()}}</div>
57 57
         </div>
58 58
         <table class="listTable" border="1">
59 59
             <tr>
@@ -145,6 +145,7 @@
145 145
           his_record_patient:{},
146 146
           orderList:[],
147 147
           org_id:0,
148
+          list:[],
148 149
         }
149 150
     },
150 151
     methods:{
@@ -195,8 +196,9 @@
195 196
           this.drugTypeList =response.data.data.drugTypeList
196 197
           this.costClassifyList = response.data.data.costClassifyList 
197 198
           var list = response.data.data.list
199
+          this.list = list
198 200
           this.orderList = response.data.data.orderList
199
-
201
+          console.log("orderlist23323223",this.orderList)
200 202
           var new_arr = []
201 203
 
202 204
           for(let i=0;i<list.length;i++){
@@ -659,7 +661,7 @@
659 661
       if(total_price > 0){
660 662
         return total_price.toFixed(2)
661 663
       }else{
662
-        return total_price
664
+        return "0.00"
663 665
       }
664 666
      
665 667
     },
@@ -1080,38 +1082,62 @@
1080 1082
       }
1081 1083
     },
1082 1084
     getPsnCashPay(){
1083
-      var psn_cash_pay = 0
1085
+      var psn_cash_pay = 0.00
1084 1086
       for(let i=0;i<this.orderList.length;i++){
1085 1087
         psn_cash_pay += this.orderList[i].psn_cash_pay
1086 1088
       }
1087 1089
       if(psn_cash_pay > 0){
1088 1090
          return psn_cash_pay.toFixed(2)
1089 1091
       }else{
1090
-        return 0.00
1092
+        return "0.00"
1091 1093
       }
1092 1094
     },
1093 1095
     getAcctPay(){
1094
-      var acct_pay = 0
1096
+      var acct_pay = 0.00
1095 1097
       for(let i=0;i<this.orderList.length;i++){
1096 1098
          acct_pay +=this.orderList[i].acct_pay
1097 1099
       }
1098 1100
       if(acct_pay > 0){
1099 1101
         return acct_pay.toFixed(2)
1100 1102
       }else{
1101
-        return 0.00
1103
+        return "0.00"
1102 1104
       }
1103 1105
     },
1104 1106
     getFundPaySumamt(){
1105
-      var fund_pay_sumamt = 0
1107
+      var fund_pay_sumamt = 0.00
1106 1108
       for(let i=0;i<this.orderList.length;i++){
1107 1109
         fund_pay_sumamt +=this.orderList[i].fund_pay_sumamt
1108 1110
       }
1111
+     
1109 1112
       if(fund_pay_sumamt >0){
1110 1113
         return fund_pay_sumamt.toFixed(2)
1111 1114
       }else{
1112
-        return 0.00
1115
+      
1116
+        return "0.00"
1113 1117
       }
1114
-    }
1118
+    },
1119
+    getActPay() {
1120
+      var arrNew = []
1121
+      var act_pay = 0;
1122
+      for (let i = 0; i < this.list.length; i++) {
1123
+        for (let j = 0; j < this.list[i].orders.length; j++) {
1124
+          //个人支付
1125
+          console.log("is",this.list[i].orders[j])
1126
+          if(this.list[i].orders[j].is_medicine_insurance == 0){
1127
+             arrNew.push(this.list[i].orders[j])
1128
+          }
1129
+        }
1130
+      }
1131
+      if(arrNew.length > 0){
1132
+        for(let i=0;i<arrNew.length;i++){
1133
+           for(let j=0;j<arrNew[i].order_info.length;j++){
1134
+             act_pay += arrNew[i].order_info[j].cnt * arrNew[i].order_info[j].pric
1135
+           }
1136
+        }
1137
+      }
1138
+      console.log("arrNew2332323223",arrNew)
1139
+      return act_pay.toFixed(2);
1140
+    },
1115 1141
 
1116 1142
     },
1117 1143
     created(){

+ 18 - 8
src/xt_pages/qcd/officesControlAnalysis/time.vue ファイルの表示

@@ -177,7 +177,8 @@ export default {
177 177
         { value: 0, label: '全部', source: 0, lapseto: 0 },
178 178
         { value: 1, label: '转出', source: 0, lapseto: 2 },
179 179
         { value: 2, label: '留治', source: 0, lapseto: 1 }
180
-      ],originType:0,
180
+      ],
181
+      originType:0,
181 182
       originState: [
182 183
         { value: 0, label: '全部', source: 0},
183 184
         { value: 2, label: '住院', source: 2},
@@ -693,10 +694,10 @@ export default {
693 694
           var countwo = response.data.data.countwo
694 695
 
695 696
           var systolicTotal = response.data.data.systolicTotal
696
-          console.log('systolictotal', systolicTotal)
697
+          
697 698
           var sysstandTotal = 0
698 699
           var systolic = response.data.data.systolic
699
-          console.log('systolic', systolic)
700
+
700 701
           var sysarr = []
701 702
           for (let i = 0; i < systolic.length; i++) {
702 703
             if (systolic[i].systolic_blood_pressure >= this.sysmin && systolic[i].systolic_blood_pressure <= this.syslarge) {
@@ -704,20 +705,20 @@ export default {
704 705
             }
705 706
           }
706 707
           sysstandTotal = sysarr.length
707
-          console.log('sysarr', sysarr)
708
+       
708 709
 
709 710
           var diastotal = response.data.data.diastotal
710 711
           var diasstandtotal = 0
711 712
 
712 713
           var diastolic = response.data.data.diastolic
713
-          // console.log("diastolic",diastolic)
714
+          
714 715
           var diaArr = []
715 716
           for (let i = 0; i < diastolic.length; i++) {
716 717
             if (diastolic[i].diastolic_blood_pressure >= this.diamin && diastolic[i].diastolic_blood_pressure <= this.dialarge) {
717 718
               diaArr.push(diastolic[i])
718 719
             }
719 720
           }
720
-          // console.log("diaArr",diaArr)
721
+         
721 722
           diasstandtotal = diaArr.length
722 723
           var normData = response.data.data.normData
723 724
 
@@ -761,9 +762,10 @@ export default {
761 762
               }
762 763
             }
763 764
           }
764
-
765
+          console.log("count23322322332",count)
766
+          console.log("normdate23233323",normData)
765 767
           var arrtwo = this.arrayDate(count, normData)
766
-
768
+          console.log("23323332323232323223",arrtwo)
767 769
           for (let i = 0; i < arrtwo.length; i++) {
768 770
             this.$set(arrtwo[i], 'Count', 0)
769 771
           }
@@ -778,6 +780,8 @@ export default {
778 780
             arr.push(item)
779 781
           })
780 782
           arr.sort(this.compare('sort'))
783
+           console.log("wwowwoowwowo",this.normData)
784
+           console.log("arr23323323332",arr)
781 785
 
782 786
           for (const key in this.normData) {
783 787
             this.modesData.xAxis.push(this.normData[key].item_name)
@@ -787,6 +791,7 @@ export default {
787 791
               this.modesData.series.push(0)
788 792
             }
789 793
           }
794
+          
790 795
           this.chart.series[0].data = this.modesData.series
791 796
           this.chart.xAxis.data = this.modesData.xAxis
792 797
           this.getArrLength(this.chart.xAxis.data)
@@ -810,15 +815,20 @@ export default {
810 815
         var obj = array2[i]
811 816
         var num = obj.inspection_minor   //staff_id   就是要对比的key
812 817
         var isExist = false
818
+
813 819
         for (var j = 0; j < array1.length; j++) {
814 820
           var aj = array1[j]
821
+          
815 822
           var n = aj.item_id
823
+         
816 824
           if (n == num) {
817 825
             isExist = true
818 826
             break
819 827
           }
820 828
         }
829
+       
821 830
         if (!isExist) {
831
+          
822 832
           result.push(obj)
823 833
         }
824 834
       }

+ 5 - 2
src/xt_pages/stock/detail/stockOutDetail.vue ファイルの表示

@@ -768,11 +768,14 @@ export default {
768 768
       },
769 769
 
770 770
     exportList(){
771
+      console.log("shij232333",this.tableOut)
772
+     
771 773
        for(let i=0;i<this.tableOut.length;i++){
772 774
         this.tableOut[i].index = i+1
773 775
         this.tableOut[i].good_name = this.tableOut[i].good_name
774 776
         this.tableOut[i].specification_name = this.tableOut[i].specification_name
775 777
         this.tableOut[i].packing_unit = this.tableOut[i].packing_unit
778
+        this.tableOut[i].ctime = this.getTime(this.tableOut[i].ctime)
776 779
         if(this.orgId == 9919){
777 780
           this.tableOut[i].total_price = (this.tableOut[i].count * this.tableOut[i].buy_price).toFixed(2)
778 781
           this.tableOut[i].packing_price = this.tableOut[i].buy_price
@@ -809,9 +812,9 @@ export default {
809 812
         }
810 813
        }
811 814
        import('@/vendor/Export2Excel').then(excel => {
812
-       const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
815
+       const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','出库时间','备注']
813 816
 
814
-       const filterVal = ['index','good_name', 'specification_name', 'packing_unit','out_count','packing_price','total_price','remark']
817
+       const filterVal = ['index','good_name', 'specification_name', 'packing_unit','out_count','packing_price','total_price','ctime','remark']
815 818
 
816 819
        const data = this.formatJson(filterVal, this.tableOut)
817 820
 

+ 7 - 3
src/xt_pages/stock/drugs/components/drugOutDetail.vue ファイルの表示

@@ -570,9 +570,10 @@ export default {
570 570
     },
571 571
 
572 572
      exportList(){
573
-
573
+      
574 574
         for(let i=0;i<this.tablePrint.length;i++){
575 575
           this.tablePrint[i].index = i+1
576
+          this.tablePrint[i].ctime = this.getTime(this.tablePrint[i].ctime)
576 577
         }
577 578
         for(let i=0;i<this.tablePrint.length;i++){
578 579
            if(this.org_id == 9919){
@@ -591,8 +592,8 @@ export default {
591 592
 
592 593
 
593 594
        import('@/vendor/Export2Excel').then(excel => {
594
-       const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','备注']
595
-       const filterVal = ['index','drug_name', 'unit', 'min_unit','count','min_price','total_price','remark']
595
+       const tHeader = ['序号','药品名称', '规格型号', '单位','数量','单价','总价','出库时间','备注']
596
+       const filterVal = ['index','drug_name', 'unit', 'min_unit','count','min_price','total_price','ctime','remark']
596 597
        let obj = {'index':'合计','total_price':0.00}
597 598
        for(let i=0;i<this.tablePrint.length;i++){
598 599
          obj.total_price += this.tablePrint[i].total
@@ -701,6 +702,7 @@ export default {
701 702
      getDrugOutOrderPrint(params).then(response=>{
702 703
         if(response.data.state == 1){
703 704
             var list = response.data.data.list
705
+         
704 706
             let objInfo = {}
705 707
             if(this.org_id == 9919){
706 708
               list.forEach((item,index)=>{
@@ -721,6 +723,7 @@ export default {
721 723
                   min_number:item.XtBaseDrug.min_number,
722 724
                   max_unit:item.XtBaseDrug.max_unit,
723 725
                   min_price:item.XtBaseDrug.min_price,
726
+                  ctime:item.ctime,
724 727
                 }
725 728
               }
726 729
              })
@@ -743,6 +746,7 @@ export default {
743 746
                   min_number:item.XtBaseDrug.min_number,
744 747
                   max_unit:item.XtBaseDrug.max_unit,
745 748
                   min_price:item.XtBaseDrug.min_price,
749
+                  ctime:item.ctime,
746 750
                 }
747 751
               }
748 752
             })

+ 5 - 0
src/xt_pages/stock/drugs/drugBatchNumber.vue ファイルの表示

@@ -104,6 +104,11 @@
104 104
             {{ scope.row.price }}
105 105
           </template>
106 106
         </el-table-column>
107
+         <el-table-column prop="remake" label="备注" align="center">
108
+          <template slot-scope="scope">
109
+            {{ scope.row.remark }}
110
+          </template>
111
+        </el-table-column>
107 112
       </el-table>
108 113
 
109 114
       <el-pagination

+ 1 - 0
src/xt_pages/stock/drugs/drugDamaged.vue ファイルの表示

@@ -273,6 +273,7 @@ export default {
273 273
             min_price:0,
274 274
             drug_id:0,
275 275
             storehouse_id:0,
276
+            houseList:[],
276 277
         }
277 278
     },
278 279
     methods:{

+ 6 - 2
src/xt_pages/stock/drugs/drugStockOutOrder.vue ファイルの表示

@@ -1404,7 +1404,7 @@ export default {
1404 1404
       getExportOutOrderDrugList(params).then((response) => {
1405 1405
         if (response.data.state == 1) {
1406 1406
           var list = response.data.data.list;
1407
-          // console.log("list22222", list);
1407
+        
1408 1408
           this.exportList = list;
1409 1409
           this.manufacturerList = response.data.data.manufacturerList;
1410 1410
           this.dealerList = response.data.data.dealerList;
@@ -1412,11 +1412,12 @@ export default {
1412 1412
       });
1413 1413
     },
1414 1414
     toExport() {
1415
+     
1415 1416
       if (this.order_id == "") {
1416 1417
         this.$message.error("请勾选出库单");
1417 1418
         return;
1418 1419
       }
1419
-      // console.log("hh2323232322323", this.exportList);
1420
+     
1420 1421
       for (let i = 0; i < this.exportList.length; i++) {
1421 1422
         if (this.exportList[i].dealer == 0) {
1422 1423
           this.exportList[i].dealer = "";
@@ -1454,6 +1455,7 @@ export default {
1454 1455
             this.exportList[i].dealer = this.dealerList[z].dealer_name;
1455 1456
           }
1456 1457
         }
1458
+        this.exportList[i].ctime = this.getTime(this.exportList[i].ctime)
1457 1459
       }
1458 1460
 
1459 1461
       import("@/vendor/Export2Excel").then((excel) => {
@@ -1478,6 +1480,7 @@ export default {
1478 1480
           "有效日期",
1479 1481
           "经销商",
1480 1482
           "批准文号",
1483
+          "出库时间",
1481 1484
           "备注",
1482 1485
         ];
1483 1486
         const filterVal = [
@@ -1494,6 +1497,7 @@ export default {
1494 1497
           "expiry_date",
1495 1498
           "dealer",
1496 1499
           "number",
1500
+          "ctime",
1497 1501
           "remark",
1498 1502
         ];
1499 1503
 

+ 100 - 23
src/xt_pages/stock/drugs/print.vue ファイルの表示

@@ -37,11 +37,12 @@
37 37
                         <td>{{item.warehousing_unit}}</td>
38 38
                         <td>{{getNumber(item.id)}}</td>
39 39
                         <td>{{item.manufacturer}}</td>
40
-                        <td>{{item.storehouse_id}}</td>
40
+                        <td>{{getHouseName(item.storehouse_id)}}</td>
41 41
                         <td> 
42 42
                             <span v-if="item.stock_max_number>0">{{item.stock_max_number}}{{item.warehousing_unit}} </span>  
43 43
                             <span v-if="item.stock_min_number>0">{{item.stock_min_number}}{{item.min_unit}}</span>
44
-                            <span v-if="item.stock_max_number == 0 && item.stock_min_number == 0">0</span></td>
44
+                            <span v-if="item.stock_max_number == 0 && item.stock_min_number == 0">0</span>
45
+                        </td>
45 46
                         <td>
46 47
                             <span v-if="item.last_stock_max_number > 0">{{item.last_stock_max_number}}{{item.warehousing_unit}}</span>  
47 48
                             <span v-if="item.last_stock_min_number>0">{{item.last_stock_min_number}}{{item.min_unit}}</span>
@@ -52,7 +53,15 @@
52 53
                           <span v-if="item.inventory_type == 11">盘亏</span>  
53 54
                         </td>
54 55
                         <td>{{getPrice(item.id)}}</td>
55
-                        <td>{{getTotalPrice(item.last_stock_max_number,item.last_stock_min_number,item.min_number,item.id,item.stock_max_number,item.stock_min_number)}}</td>
56
+                      
57
+                        <td v-if="item.inventory_type ==11">
58
+                          <span>{{getCount(item.stock_max_number,item.stock_min_number,item.last_stock_max_number,item.last_stock_min_number,item.min_number,item.id)}}</span>
59
+                        </td>
60
+
61
+                        <td v-if="item.inventory_type ==10">
62
+                          <span>{{getCountOne(item.stock_max_number,item.stock_min_number,item.last_stock_max_number,item.last_stock_min_number,item.min_number,item.id)}}</span>
63
+                        </td>
64
+                        <td v-if="item.inventory_type!=10 && item.inventory_type!=11"></td>
56 65
                     </tr>
57 66
                     </tbody>
58 67
                 </table>
@@ -67,6 +76,7 @@ const moment = require('moment');
67 76
 import { uParseTime } from '@/utils/tools'
68 77
 import { getInventoryDetailList } from "@/api/drug/drug"
69 78
 import print from "print-js";
79
+import { min } from 'moment';
70 80
 export default {
71 81
     components:{
72 82
         BreadCrumb
@@ -120,7 +130,7 @@ export default {
120 130
               this.tableData = response.data.data.list
121 131
               this.houseList = response.data.data.houseList
122 132
               this.inventoryList = response.data.data.inventoryList
123
-              console.log("hhahhh2o2o233oo2332",this.inventoryList)
133
+              console.log("hhahhh2o2o233oo2332",this.tableData)
124 134
               
125 135
              }
126 136
           })   
@@ -144,34 +154,101 @@ export default {
144 154
           }
145 155
           return number
146 156
          },
147
-         getTotalPrice(last_stock_max_number,last_stock_min_number,min_number,id,stock_max_number,stock_min_number){
148
-           var retail_price = 0
149
-           var totail_price =0
157
+         getPrice(id){
158
+           var price = 0
150 159
            for(let i=0;i<this.inventoryList.length;i++){
151 160
             if(id == this.inventoryList[i].id){
152
-              retail_price = this.inventoryList[i].drug_warehouse_info.retail_price
161
+               price = this.inventoryList[i].drug_warehouse_info.price
153 162
             }
154 163
           }
155
-          var totail_price = (stock_max_number*min_number +stock_min_number - last_stock_max_number * min_number + last_stock_min_number) * retail_price
156
-        //  var totail_price = last_stock_max_number * min_number * retail_price + last_stock_min_number * retail_price 
157
-          if(totail_price > 0){
158
-             return totail_price.toFixed(4)
159
-          }else{
160
-            return ""
164
+          if(price > 0){
165
+          return price
161 166
           }
167
+          
162 168
          },
163
-         getPrice(id){
164
-           var retail_price = 0
165
-           for(let i=0;i<this.inventoryList.length;i++){
166
-            if(id == this.inventoryList[i].id){
167
-               retail_price = this.inventoryList[i].drug_warehouse_info.retail_price
168
-            }
169
+         getHouseName(id){
170
+         var storehouse_name = ""
171
+         for(let i=0;i<this.houseList.length;i++){
172
+           if(id == this.houseList[i].id){
173
+              storehouse_name = this.houseList[i].storehouse_name
174
+           }
175
+         }
176
+         if(storehouse_name == "全部"){
177
+           return ""
178
+         }else{
179
+           return storehouse_name
180
+         }
181
+       },
182
+       getCount(stock_max_number,stock_min_number,last_stock_max_number,last_stock_min_number,min_number,id){
183
+         
184
+         var cha_count = 0
185
+         var befor_total_count = 0
186
+         var after_total_count = 0
187
+         var befor_total_count = stock_max_number * min_number + stock_min_number
188
+         var after_total_count = last_stock_max_number * min_number + last_stock_min_number
189
+         var retail_price = 0
190
+         var price = 0
191
+         var max_count = 0
192
+         var min_count = 0
193
+         var total_price = 0
194
+        for(let i=0;i<this.inventoryList.length;i++){
195
+          if(id == this.inventoryList[i].id){
196
+            retail_price = this.inventoryList[i].drug_warehouse_info.retail_price
197
+            price = this.inventoryList[i].drug_warehouse_info.price
169 198
           }
170
-          if(retail_price > 0){
171
-          return retail_price
199
+        }
200
+
201
+         //如果透前数量大于透后数量 盘亏
202
+         if(befor_total_count  > after_total_count){
203
+           cha_count = befor_total_count - after_total_count
204
+         }
205
+         max_count = cha_count/min_number
206
+         min_count = cha_count%min_number
207
+         console.log("price",price/min_number)
208
+         console.log("max_count23323232",max_count)
209
+         console.log("min_count33333",min_count)
210
+         console.log("min_number2332233232",min_number)
211
+         
212
+         total_price = Math.floor(max_count) * price + min_count * (price/min_number)
213
+         
214
+         if(total_price > 0){
215
+            return total_price.toFixed(2)
216
+         }else{
217
+          return ""
218
+         }
219
+        return cha_count
220
+       },
221
+       getCountOne(stock_max_number,stock_min_number,last_stock_max_number,last_stock_min_number,min_number,id){
222
+         var cha_count = 0
223
+         var befor_total_count = 0
224
+         var after_total_count = 0
225
+         var befor_total_count = stock_max_number * min_number + stock_min_number
226
+         var after_total_count = last_stock_max_number * min_number + last_stock_min_number
227
+         var retail_price = 0
228
+         var price = 0
229
+         var max_count = 0
230
+         var min_count = 0
231
+         var total_price = 0
232
+          for(let i=0;i<this.inventoryList.length;i++){
233
+          if(id == this.inventoryList[i].id){
234
+            retail_price = this.inventoryList[i].drug_warehouse_info.retail_price
235
+            price = this.inventoryList[i].drug_warehouse_info.price
172 236
           }
173
-          
237
+        }
238
+         //如果透前数量大于透后数量 盘盈
239
+         if(befor_total_count  < after_total_count){
240
+           cha_count = after_total_count - befor_total_count
241
+         }
242
+         max_count = cha_count/min_number
243
+         min_count = cha_count%min_number
244
+         total_price =  Math.floor(max_count) *price + min_count * (price/min_number)
245
+         if(total_price > 0){
246
+            return total_price.toFixed(2)
247
+         }else{
248
+          return ""
174 249
          }
250
+        
251
+       }
175 252
     },
176 253
     created(){
177 254
 

+ 1 - 1
src/xt_pages/stock/inventoryDetails.vue ファイルの表示

@@ -26,7 +26,7 @@
26 26
                 @click="search">搜索</el-button>
27 27
             </div>
28 28
             <div>
29
-              <!-- <el-button type="primary" @click="toprint">打印</el-button> -->
29
+              <el-button type="primary" @click="toprint">打印</el-button>
30 30
               <el-button type="primary" @click="inventoryExportList">盘点模版打印</el-button>
31 31
             </div>
32 32
             <!-- <div>

+ 14 - 12
src/xt_pages/stock/print_all.vue ファイルの表示

@@ -31,7 +31,7 @@
31 31
                         <td width="60">总额</td>
32 32
                         
33 33
                     </tr>
34
-                    <tr v-for="(item,index) in tableData" :key="index">
34
+                    <tr v-for="(item,index) in tableList" :key="index">
35 35
                         <td>{{item.good_name}}</td>
36 36
                         <td>{{item.specification_name}}</td>
37 37
                         <td>{{item.packing_unit}}</td>
@@ -40,14 +40,15 @@
40 40
                         <td>{{getHouseName(item.storehouse_id)}}</td>
41 41
                         <td>{{item.stock_count}}</td>
42 42
                         <td>{{item.last_stock_count}}</td>
43
-                        <td>  
44
-                          <span v-if="item.stock_count > item.last_stock_count">盘亏</span>
45
-                          <span v-if="item.stock_count < item.last_stock_count">盘盈</span>
46
-                        </td>
47
-                        <td>{{item.buy_price}}</td>
48 43
                         <td>
49
-                          <span v-if="item.stock_count > item.last_stock_count">{{((item.stock_count - item.last_stock_count)  * item.buy_price).toFixed(2)}}</span> 
50
-                        </td>
44
+                          <span v-if="item.stock_count > item.last_stock_count">盘亏</span>
45
+                          <span v-if="item.stock_count < item.last_stock_count">盘盈</span></td>
46
+                        <td><span>{{item.buy_price}}</span></td>
47
+                         <td>
48
+                            <span v-if="item.stock_count > item.last_stock_count">{{((item.stock_count - item.last_stock_count)  * item.buy_price).toFixed(2)}}</span> 
49
+                            <span v-if="item.stock_count < item.last_stock_count">{{((item.last_stock_count - item.stock_count)  * item.buy_price).toFixed(2)}}</span> 
50
+                            <span v-if="item.stock_count == item.last_stock_count">0</span> 
51
+                         </td>
51 52
                     </tr>
52 53
                     </tbody>
53 54
                 </table>
@@ -75,7 +76,7 @@ export default {
75 76
           ],
76 77
           org_name: this.$store.getters.xt_user.org.org_name,
77 78
           ids:"",
78
-          tableData:[],
79
+          tableList:[],
79 80
           manufacturerList:[],
80 81
           houseList:[],
81 82
         }
@@ -110,9 +111,10 @@ export default {
110 111
           }
111 112
          getPrintList(params).then(response=>{
112 113
            if(response.data.state == 1){
113
-             var list =  response.data.data.list
114
-             console.log("list233233232323",list)
115
-             this.tableData = list
114
+             var list = response.data.data.list
115
+             console.log("list232332232323",response.data.data.list)
116
+             this.tableList = list
117
+             console.log("list233233232323",this.tableList)
116 118
              this.houseList = response.data.data.houseList
117 119
            }
118 120
          })

+ 5 - 0
src/xt_pages/stock/stockBatchNumber.vue ファイルの表示

@@ -92,6 +92,11 @@
92 92
              <span v-if="scope.row.packing_price > 0"> {{scope.row.packing_price}}</span>
93 93
            </template>
94 94
         </el-table-column>
95
+        <el-table-column prop="drug_name" label="备注" align="center">
96
+           <template slot-scope="scope">
97
+             <span>{{scope.row.remark}}</span>
98
+           </template>
99
+        </el-table-column>
95 100
        </el-table>
96 101
        
97 102
       <el-pagination

+ 10 - 2
src/xt_pages/stock/stockOutOrder.vue ファイルの表示

@@ -1284,6 +1284,7 @@ export default {
1284 1284
       }
1285 1285
     },
1286 1286
     select(selection) {
1287
+     
1287 1288
       var ids = [];
1288 1289
       for (let i = 0; i < selection.length; i++) {
1289 1290
         ids.push(selection[i].id);
@@ -1291,7 +1292,9 @@ export default {
1291 1292
 
1292 1293
       this.exportList = [];
1293 1294
       this.order_id = ids.join(",");
1294
-      this.warehouse_out_time = selection[0].warehouse_out_time;
1295
+      if(selection.length >0){
1296
+        this.warehouse_out_time = selection[0].warehouse_out_time;
1297
+      }
1295 1298
       this.selectedTableData = selection;
1296 1299
       this.getlist();
1297 1300
     },
@@ -1874,7 +1877,7 @@ export default {
1874 1877
         start_time: this.start_time,
1875 1878
         end_time: this.end_time,
1876 1879
       };
1877
-
1880
+      console.log("params2332323232de",params)
1878 1881
       getOutExportList(params).then((response) => {
1879 1882
         if (response.data.state == 1) {
1880 1883
           var list = response.data.data.list;
@@ -1920,6 +1923,8 @@ export default {
1920 1923
         this.$message.error("请勾选出库单");
1921 1924
         return;
1922 1925
       }
1926
+      console.log("时间",this.exportList)
1927
+      
1923 1928
       import("@/vendor/Export2Excel").then((excel) => {
1924 1929
         for (let i = 0; i < this.exportList.length; i++) {
1925 1930
           this.exportList[i].total_price =
@@ -1938,6 +1943,7 @@ export default {
1938 1943
           if (this.exportList[i].good_type_id == 0) {
1939 1944
             this.exportList[i].good_type_id = "";
1940 1945
           }
1946
+          this.exportList[i].ctime = this.getTime(this.exportList[i].ctime, "{y}-{m}-{d}")
1941 1947
         }
1942 1948
 
1943 1949
         const tHeader = [
@@ -1952,6 +1958,7 @@ export default {
1952 1958
           "生产日期",
1953 1959
           "有效期",
1954 1960
           "备注",
1961
+          "出库时间"
1955 1962
         ];
1956 1963
         const filterVal = [
1957 1964
           "good_name",
@@ -1965,6 +1972,7 @@ export default {
1965 1972
           "product_date",
1966 1973
           "expiry_date",
1967 1974
           "remark",
1975
+          "ctime",
1968 1976
         ];
1969 1977
 
1970 1978
         const data = this.formatJson(filterVal, this.exportList);