浏览代码

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

csx 4 年前
父节点
当前提交
138d8b0806

+ 229 - 229
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -372,7 +372,7 @@
372 372
           </el-table-column>
373 373
 
374 374
 
375
-          
375
+
376 376
 
377 377
           <el-table-column
378 378
             prop="heparin"
@@ -387,12 +387,12 @@
387 387
           <el-table-column
388 388
             prop="heparin"
389 389
             align="center"
390
-            label="抗凝剂" 
390
+            label="抗凝剂"
391 391
             width="140"
392 392
             v-if="isShow('抗凝剂')"
393 393
           >
394 394
             <template slot-scope="scope">
395
-             <span v-if="scope.row.monitor_anticoagulant == 1">无肝素</span> 
395
+             <span v-if="scope.row.monitor_anticoagulant == 1">无肝素</span>
396 396
              <span v-if="scope.row.monitor_anticoagulant == 2">普通肝素</span>
397 397
              <span v-if="scope.row.monitor_anticoagulant == 3">低分子肝素</span>
398 398
              <span v-if="scope.row.monitor_anticoagulant == 4">阿加曲班</span>
@@ -402,7 +402,7 @@
402 402
              <span v-if="scope.row.monitor_anticoagulant == 8">依诺肝素</span>
403 403
              <span v-if="scope.row.monitor_anticoagulant == 9">达肝素</span>
404 404
              <span v-if="scope.row.monitor_anticoagulant_value!=''">({{ scope.row.monitor_anticoagulant_value ? scope.row.monitor_anticoagulant_value : ""  }})</span>
405
-             
405
+
406 406
             </template>
407 407
           </el-table-column>
408 408
 
@@ -453,7 +453,7 @@
453 453
             v-if="isShow('病情变化')"
454 454
           >
455 455
           </el-table-column>
456
-          
456
+
457 457
           <el-table-column
458 458
             prop="dispose"
459 459
             align="center"
@@ -684,7 +684,7 @@
684 684
                 </div>
685 685
             </el-form-item>
686 686
           </el-col>
687
-        
687
+
688 688
          <el-col :span="8" v-if="isShow('血压监测部位')">
689 689
             <el-form-item label="血压监测部位:">
690 690
               <div style="display:flex;">
@@ -706,8 +706,8 @@
706 706
             </el-form-item>
707 707
          </el-col>
708 708
 
709
-        
710
-      
709
+
710
+
711 711
           <!-- </el-row>
712 712
 
713 713
           <el-row :gutter="20"> -->
@@ -894,7 +894,7 @@ export default {
894 894
         dispose: '', // 处理
895 895
         result: '', // 结果,
896 896
         blood_oxygen_saturation: '',
897
-        urr:'', 
897
+        urr:'',
898 898
         blood_sugar:'',//血糖
899 899
         monitor_anticoagulant:'',
900 900
         monitor_anticoagulant_value:"",
@@ -929,21 +929,21 @@ export default {
929 929
     }
930 930
   },
931 931
   created() {
932
-    this.template_id = this.$store.getters.xt_user.template_info.template_id
933
-    this.org_id = this.$store.getters.xt_user.template_info.org_id
934
-    var date = this.$route.query.date
935
-    var patient_id = this.$route.query.patient_id
936
-    this.patient_id = patient_id
937
-    this.schedule_date = date
938
-    this.form.monitoring_date = date
932
+    this.template_id = this.$store.getters.xt_user.template_info.template_id;
933
+    this.org_id = this.$store.getters.xt_user.template_info.org_id;
934
+    var date = this.$route.query.date;
935
+    var patient_id = this.$route.query.patient_id;
936
+    this.patient_id = patient_id;
937
+    this.schedule_date = date;
938
+    this.form.monitoring_date = date;
939 939
     // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
940 940
     // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
941
-    this.form.operate_time = new Date().getTime()
942
-    var symptoms = getDataConfig('hemodialysis', 'symptoms')
943
-    console.log("sysmptoms3333333333",symptoms)
944
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
945
-    console.log("抗凝剂",this.anticoagulantsConfit)
946
-    this.bloodPressureMmonitoringSite = getDataConfig('hemodialysis','blood_pressure_monitoring_site')
941
+    this.form.operate_time = new Date().getTime();
942
+    var symptoms = getDataConfig('hemodialysis', 'symptoms');
943
+    console.log("sysmptoms3333333333",symptoms);
944
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
945
+    //console.log("抗凝剂",this.anticoagulantsConfit)
946
+    this.bloodPressureMmonitoringSite = getDataConfig('hemodialysis','blood_pressure_monitoring_site');
947 947
     this.complicationList = getDataConfig('hemodialysis','complication')
948 948
 
949 949
   },
@@ -1029,7 +1029,7 @@ export default {
1029 1029
     },
1030 1030
 
1031 1031
     isShow(name) {
1032
-      var filedList = store.getters.xt_user.fileds
1032
+      var filedList = store.getters.xt_user.fileds;
1033 1033
       for (let i = 0; i < filedList.length; i++) {
1034 1034
         if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
1035 1035
           return true
@@ -1041,7 +1041,7 @@ export default {
1041 1041
       this.cancelEditAction()
1042 1042
     },
1043 1043
     show() {
1044
-      this.getPermission()
1044
+      this.getPermission();
1045 1045
       this.visible = true
1046 1046
     },
1047 1047
     hide() {
@@ -1052,67 +1052,67 @@ export default {
1052 1052
     },
1053 1053
 
1054 1054
     newRecordAction: function() {
1055
-      this.setEditMonitor(null)
1056
-      this.$refs.table.setCurrentRow(null)
1057
-      this.edit = true
1058
-      this.isAdd = true
1055
+      this.setEditMonitor(null);
1056
+      this.$refs.table.setCurrentRow(null);
1057
+      this.edit = true;
1058
+      this.isAdd = true;
1059 1059
       this.getLastRecordTody()
1060 1060
     },
1061 1061
     getLastRecordTody() {
1062 1062
       const params = {
1063 1063
         patient_id: this.patient_id
1064
-      }
1064
+      };
1065 1065
 
1066 1066
       getTodayMonitor(params).then(rs => {
1067
-        console.log("机构ID",this.org_id)
1068
-        
1069
-        var resp = rs.data.data
1070
-       
1071
-        this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date())
1072
-        this.form.temperature = '' // this.last_monitor_record.pulse_frequency;
1073
-
1074
-        this.form.pulse_frequency = '' // this.last_monitor_record.pulse_frequency;
1075
-        this.form.breathing_rated =  resp.monitor.breathing_rated ? resp.monitor.breathing_rated : ''
1076
-        this.form.systolic_bp = '' // this.last_monitor_record.systolic_blood_pressure;
1077
-        this.form.diastolic_bp = '' // this.last_monitor_record.diastolic_blood_pressure;
1078
-        this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : ''
1067
+        console.log("机构ID",this.org_id);
1068
+
1069
+        var resp = rs.data.data;
1070
+
1071
+        this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time + 3600) * 1000 : Date.parse(new Date());
1072
+        this.form.temperature = ''; // this.last_monitor_record.pulse_frequency;
1073
+
1074
+        this.form.pulse_frequency = ''; // this.last_monitor_record.pulse_frequency;
1075
+        this.form.breathing_rated =  resp.monitor.breathing_rated ? resp.monitor.breathing_rated : '';
1076
+        this.form.systolic_bp = ''; // this.last_monitor_record.systolic_blood_pressure;
1077
+        this.form.diastolic_bp = ''; // this.last_monitor_record.diastolic_blood_pressure;
1078
+        this.form.blood_flow_volume = resp.monitor.blood_flow_volume ? resp.monitor.blood_flow_volume : '';
1079 1079
         // 静脉压
1080 1080
         if(this.org_id == 10060){
1081 1081
           this.form.venous_pressure = resp.monitor.venous_pressure
1082 1082
         }else{
1083 1083
           this.form.venous_pressure = '' // this.last_monitor_record.venous_pressure;
1084 1084
         }
1085
-        
1086
-        this.form.venous_pressure_type = resp.monitor.venous_pressure_type ? resp.monitor.venous_pressure_type : 1
1087
-        this.form.arterial_pressure = resp.monitor.arterial_pressure ? resp.monitor.arterial_pressure : '' // this.last_monitor_record.arterial_pressure;
1088
-        this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type ? resp.monitor.arterial_pressure_type : 1
1085
+
1086
+        this.form.venous_pressure_type = resp.monitor.venous_pressure_type ? resp.monitor.venous_pressure_type : 1;
1087
+        this.form.arterial_pressure = resp.monitor.arterial_pressure ? resp.monitor.arterial_pressure : ''; // this.last_monitor_record.arterial_pressure;
1088
+        this.form.arterial_pressure_type = resp.monitor.arterial_pressure_type ? resp.monitor.arterial_pressure_type : 1;
1089 1089
         if(this.org_id == 10060){
1090 1090
           this.form.transmembrane_pressure = resp.monitor.transmembrane_pressure;
1091 1091
         }else{
1092 1092
           this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
1093 1093
         }
1094
-        this.form.transmembrane_pressure_type = resp.monitor.transmembrane_pressure_type ? resp.monitor.transmembrane_pressure_type : 1
1095
-        this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : ''
1096
-        this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : ''
1097
-        this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : ''
1098
-        this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : ''
1099
-        this.form.temperature =  resp.monitor.temperature ? resp.monitor.temperature : ''
1100
-        this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : ''
1101
-        this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : ''
1102
-        this.form.dialysate_flow = resp.monitor.dialysate_flow ? resp.monitor.dialysate_flow : ''
1103
-        this.form.displacement_quantity =  resp.monitor.displacement_quantity ? resp.monitor.displacement_quantity : '' // this.last_monitor_record.displacement_quantity;
1104
-        this.form.conductivity =   ''
1105
-        this.form.displacement_flow_quantity = resp.monitor.displacement_flow_quantity ? resp.monitor.displacement_flow_quantity : ''
1106
-        this.form.ktv =  resp.monitor.ktv ? resp.monitor.ktv : '' // this.last_monitor_record.ktv;
1107
-        this.form.symptom =  resp.monitor.symptom ? resp.monitor.symptom : '' // this.last_monitor_record.symptom;
1108
-        this.form.dispose =  resp.monitor.dispose ? resp.monitor.dispose : '' // this.last_monitor_record.dispose;
1109
-        this.form.result =  resp.monitor.result ? resp.monitor.result : '' // this.last_monitor_record.result;
1110
-        this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : ''
1111
-        this.form.urr = resp.monitor.urr?resp.monitor.urr:''
1112
-        this.form.blood_sugar = resp.monitor.blood_sugar?resp.monitor.blood_sugar:''
1113
-        this.form.sodium_concentration = resp.monitor.sodium_concentration?resp.monitor.sodium_concentration:''
1114
-        this.form.conductivity = resp.monitor.conductivity?resp.monitor.conductivity:''
1115
-        this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant?resp.monitor.monitor_anticoagulant:""
1094
+        this.form.transmembrane_pressure_type = resp.monitor.transmembrane_pressure_type ? resp.monitor.transmembrane_pressure_type : 1;
1095
+        this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate ? resp.monitor.ultrafiltration_rate : '';
1096
+        this.form.ultrafiltration_volume = resp.monitor.ultrafiltration_volume ? resp.monitor.ultrafiltration_volume : '';
1097
+        this.form.sodium_concentration = resp.monitor.sodium_concentration ? resp.monitor.sodium_concentration : '';
1098
+        this.form.dialysate_temperature = resp.monitor.dialysate_temperature ? resp.monitor.dialysate_temperature : '';
1099
+        this.form.temperature =  resp.monitor.temperature ? resp.monitor.temperature : '';
1100
+        this.form.replacement_rate = resp.monitor.replacement_rate ? resp.monitor.replacement_rate : '';
1101
+        this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : '';
1102
+        this.form.dialysate_flow = resp.monitor.dialysate_flow ? resp.monitor.dialysate_flow : '';
1103
+        this.form.displacement_quantity =  resp.monitor.displacement_quantity ? resp.monitor.displacement_quantity : ''; // this.last_monitor_record.displacement_quantity;
1104
+        this.form.conductivity =   '';
1105
+        this.form.displacement_flow_quantity = resp.monitor.displacement_flow_quantity ? resp.monitor.displacement_flow_quantity : '';
1106
+        this.form.ktv =  resp.monitor.ktv ? resp.monitor.ktv : ''; // this.last_monitor_record.ktv;
1107
+        this.form.symptom =  resp.monitor.symptom ? resp.monitor.symptom : ''; // this.last_monitor_record.symptom;
1108
+        this.form.dispose =  resp.monitor.dispose ? resp.monitor.dispose : ''; // this.last_monitor_record.dispose;
1109
+        this.form.result =  resp.monitor.result ? resp.monitor.result : ''; // this.last_monitor_record.result;
1110
+        this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : '';
1111
+        this.form.urr = resp.monitor.urr?resp.monitor.urr:'';
1112
+        this.form.blood_sugar = resp.monitor.blood_sugar?resp.monitor.blood_sugar:'';
1113
+        this.form.sodium_concentration = resp.monitor.sodium_concentration?resp.monitor.sodium_concentration:'';
1114
+        this.form.conductivity = resp.monitor.conductivity?resp.monitor.conductivity:'';
1115
+        this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant?resp.monitor.monitor_anticoagulant:"";
1116 1116
         this.form.monitor_anticoagulant_value = resp.monitor.monitor_anticoagulant_value?resp.monitor.monitor_anticoagulant_value:""
1117 1117
 
1118 1118
       })
@@ -1120,18 +1120,18 @@ export default {
1120 1120
 
1121 1121
     modifyRecordAction: function() {
1122 1122
       if (this.table_current_row == null) {
1123
-        this.$message.error('请选择一条监测记录')
1123
+        this.$message.error('请选择一条监测记录');
1124 1124
         return
1125 1125
       }
1126
-      this.creator = this.table_current_row.creator
1127
-      this.setEditMonitor(this.table_current_row)
1128
-      this.$refs.table.setCurrentRow(null)
1129
-      this.edit = true
1126
+      this.creator = this.table_current_row.creator;
1127
+      this.setEditMonitor(this.table_current_row);
1128
+      this.$refs.table.setCurrentRow(null);
1129
+      this.edit = true;
1130 1130
       this.isAdd = false
1131 1131
     },
1132 1132
     cancelEditAction: function() {
1133
-      this.setEditMonitor(null)
1134
-      this.$refs.table.setCurrentRow(null)
1133
+      this.setEditMonitor(null);
1134
+      this.$refs.table.setCurrentRow(null);
1135 1135
       this.edit = false
1136 1136
     },
1137 1137
     tableCurrentRowChange: function(currentRow) {
@@ -1141,142 +1141,142 @@ export default {
1141 1141
     },
1142 1142
     setEditMonitor: function(monitor) {
1143 1143
       if (monitor == null || monitor == undefined) {
1144
-        this.form.id = 0
1144
+        this.form.id = 0;
1145 1145
         // this.form.operate_date = parseInt((new Date()).getTime() / 1000)
1146 1146
         // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
1147
-        this.form.operate_time = new Date().getTime()
1148
-        this.form.systolic_bp = ''
1149
-        this.form.diastolic_bp = ''
1150
-        this.form.pulse_frequency = ''
1151
-        this.form.breathing_rated = ''
1152
-        this.form.blood_flow_volume = ''
1153
-        this.form.temperature = ''
1154
-        this.form.venous_pressure = ''
1155
-        this.form.venous_pressure_type = 1
1156
-        this.form.transmembrane_pressure = ''
1157
-        this.form.transmembrane_pressure_type = 1
1158
-        this.form.ultrafiltration_volume = ''
1159
-        this.form.ultrafiltration_rate = ''
1160
-        this.form.arterial_pressure = ''
1161
-        this.form.arterial_pressure_type = 1
1162
-        this.form.sodium_concentration = ''
1163
-        this.form.dialysate_temperature = ''
1164
-        this.form.replacement_rate = ''
1165
-        this.form.displacement_quantity = ''
1166
-        this.form.conductivity = ''
1167
-        this.form.displacement_flow_quantity = ''
1168
-        this.form.heparin = ''
1169
-        this.form.dialysate_flow = ''
1170
-        this.form.ktv = ''
1171
-        this.form.symptom = ''
1172
-        this.form.dispose = ''
1173
-        this.form.result = ''
1174
-        this.symptom_selecteds = []
1175
-        this.dispose_selecteds = []
1176
-        this.result_selecteds = []
1177
-        this.form.urr = ''
1178
-        this.form.blood_sugar = ''
1179
-        this.form.monitor_anticoagulant = ''
1147
+        this.form.operate_time = new Date().getTime();
1148
+        this.form.systolic_bp = '';
1149
+        this.form.diastolic_bp = '';
1150
+        this.form.pulse_frequency = '';
1151
+        this.form.breathing_rated = '';
1152
+        this.form.blood_flow_volume = '';
1153
+        this.form.temperature = '';
1154
+        this.form.venous_pressure = '';
1155
+        this.form.venous_pressure_type = 1;
1156
+        this.form.transmembrane_pressure = '';
1157
+        this.form.transmembrane_pressure_type = 1;
1158
+        this.form.ultrafiltration_volume = '';
1159
+        this.form.ultrafiltration_rate = '';
1160
+        this.form.arterial_pressure = '';
1161
+        this.form.arterial_pressure_type = 1;
1162
+        this.form.sodium_concentration = '';
1163
+        this.form.dialysate_temperature = '';
1164
+        this.form.replacement_rate = '';
1165
+        this.form.displacement_quantity = '';
1166
+        this.form.conductivity = '';
1167
+        this.form.displacement_flow_quantity = '';
1168
+        this.form.heparin = '';
1169
+        this.form.dialysate_flow = '';
1170
+        this.form.ktv = '';
1171
+        this.form.symptom = '';
1172
+        this.form.dispose = '';
1173
+        this.form.result = '';
1174
+        this.symptom_selecteds = [];
1175
+        this.dispose_selecteds = [];
1176
+        this.result_selecteds = [];
1177
+        this.form.urr = '';
1178
+        this.form.blood_sugar = '';
1179
+        this.form.monitor_anticoagulant = '';
1180 1180
         this.form.monitor_anticoagulant_value = ''
1181 1181
       } else {
1182 1182
         (this.form.id = monitor.id),
1183 1183
         // this.form.operate_date = monitor.operate_date
1184 1184
         // this.form.monitoring_time = monitor.monitoring_time
1185
-        (this.form.operate_time = monitor.operate_time * 1000)
1186
-        this.form.systolic_bp = monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : ''
1187
-        this.form.temperature = monitor.temperature ? monitor.temperature : ''
1188
-        this.form.diastolic_bp = monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : ''
1189
-        this.form.pulse_frequency = monitor.pulse_frequency ? monitor.pulse_frequency : ''
1190
-        this.form.breathing_rated = monitor.breathing_rate ? monitor.breathing_rate : ''
1191
-        this.form.blood_flow_volume = monitor.blood_flow_volume ? monitor.blood_flow_volume : ''
1192
-        this.form.venous_pressure = monitor.venous_pressure ? monitor.venous_pressure : ''
1193
-        this.form.venous_pressure_type = monitor.venous_pressure_type ? monitor.venous_pressure_type : ''
1194
-        this.form.transmembrane_pressure = monitor.transmembrane_pressure ? monitor.transmembrane_pressure : ''
1195
-        this.form.transmembrane_pressure_type = monitor.transmembrane_pressure_type ? monitor.transmembrane_pressure_type : ''
1196
-        this.form.ultrafiltration_volume = monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : ''
1197
-        this.form.ultrafiltration_rate = monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : ''
1198
-        this.form.arterial_pressure = monitor.arterial_pressure ? monitor.arterial_pressure : ''
1199
-        this.form.arterial_pressure_type = monitor.arterial_pressure_type ? monitor.arterial_pressure_type : ''
1200
-        this.form.sodium_concentration = monitor.sodium_concentration ? monitor.sodium_concentration : ''
1201
-        this.form.dialysate_temperature = monitor.dialysate_temperature ? monitor.dialysate_temperature : ''
1202
-        this.form.replacement_rate = monitor.replacement_rate ? monitor.replacement_rate : ''
1203
-        this.form.displacement_quantity = monitor.displacement_quantity ? monitor.displacement_quantity : ''
1204
-        this.form.conductivity = monitor.conductivity ? monitor.conductivity : ''
1205
-        this.form.displacement_flow_quantity = monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : ''
1206
-        this.form.heparin = monitor.heparin ? monitor.heparin : ''
1207
-        this.form.dialysate_flow = monitor.dialysate_flow ? monitor.dialysate_flow : ''
1208
-
1209
-        this.form.ktv = monitor.ktv ? monitor.ktv : ''
1210
-        this.form.symptom = monitor.symptom
1211
-        this.form.dispose = monitor.dispose
1212
-        this.form.result = monitor.result
1213
-        this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation
1214
-        this.form.urr = monitor.urr?monitor.urr:''
1215
-        this.form.blood_sugar = monitor.blood_sugar?monitor.blood_sugar:''
1216
-        this.form.monitor_anticoagulant = monitor.monitor_anticoagulant?monitor.monitor_anticoagulant:''
1217
-        this.form.monitor_anticoagulant_value = monitor.monitor_anticoagulant_value?monitor.monitor_anticoagulant_value:""
1185
+        (this.form.operate_time = monitor.operate_time * 1000);
1186
+        this.form.systolic_bp = monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : '';
1187
+        this.form.temperature = monitor.temperature ? monitor.temperature : '';
1188
+        this.form.diastolic_bp = monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : '';
1189
+        this.form.pulse_frequency = monitor.pulse_frequency ? monitor.pulse_frequency : '';
1190
+        this.form.breathing_rated = monitor.breathing_rate ? monitor.breathing_rate : '';
1191
+        this.form.blood_flow_volume = monitor.blood_flow_volume ? monitor.blood_flow_volume : '';
1192
+        this.form.venous_pressure = monitor.venous_pressure ? monitor.venous_pressure : '';
1193
+        this.form.venous_pressure_type = monitor.venous_pressure_type ? monitor.venous_pressure_type : '';
1194
+        this.form.transmembrane_pressure = monitor.transmembrane_pressure ? monitor.transmembrane_pressure : '';
1195
+        this.form.transmembrane_pressure_type = monitor.transmembrane_pressure_type ? monitor.transmembrane_pressure_type : '';
1196
+        this.form.ultrafiltration_volume = monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : '';
1197
+        this.form.ultrafiltration_rate = monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '';
1198
+        this.form.arterial_pressure = monitor.arterial_pressure ? monitor.arterial_pressure : '';
1199
+        this.form.arterial_pressure_type = monitor.arterial_pressure_type ? monitor.arterial_pressure_type : '';
1200
+        this.form.sodium_concentration = monitor.sodium_concentration ? monitor.sodium_concentration : '';
1201
+        this.form.dialysate_temperature = monitor.dialysate_temperature ? monitor.dialysate_temperature : '';
1202
+        this.form.replacement_rate = monitor.replacement_rate ? monitor.replacement_rate : '';
1203
+        this.form.displacement_quantity = monitor.displacement_quantity ? monitor.displacement_quantity : '';
1204
+        this.form.conductivity = monitor.conductivity ? monitor.conductivity : '';
1205
+        this.form.displacement_flow_quantity = monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : '';
1206
+        this.form.heparin = monitor.heparin ? monitor.heparin : '';
1207
+        this.form.dialysate_flow = monitor.dialysate_flow ? monitor.dialysate_flow : '';
1208
+
1209
+        this.form.ktv = monitor.ktv ? monitor.ktv : '';
1210
+        this.form.symptom = monitor.symptom;
1211
+        this.form.dispose = monitor.dispose;
1212
+        this.form.result = monitor.result;
1213
+        this.form.blood_oxygen_saturation = monitor.blood_oxygen_saturation;
1214
+        this.form.urr = monitor.urr?monitor.urr:'';
1215
+        this.form.blood_sugar = monitor.blood_sugar?monitor.blood_sugar:'';
1216
+        this.form.monitor_anticoagulant = monitor.monitor_anticoagulant?monitor.monitor_anticoagulant:'';
1217
+        this.form.monitor_anticoagulant_value = monitor.monitor_anticoagulant_value?monitor.monitor_anticoagulant_value:"";
1218 1218
         // 设置三个下拉框的值,直接调用事件偷懒
1219
-        this.symptomTextareaBlur()
1220
-        this.disposeTextareaBlur()
1219
+        this.symptomTextareaBlur();
1220
+        this.disposeTextareaBlur();
1221 1221
         this.resultTextareaBlur()
1222 1222
       }
1223 1223
     },
1224 1224
 
1225 1225
     submitAction: function() {
1226
-      
1226
+
1227 1227
       // TODO loading
1228
-      var is_new = this.form.id
1229
-      this.form.operate_time = parseInt(this.form.operate_time / 1000)
1230
-      this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp)
1231
-      this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp)
1232
-      this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature)
1233
-      this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency)
1234
-      this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
1235
-      this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
1236
-      this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure)
1237
-      this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type)
1238
-      this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure)
1239
-      this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type)
1240
-      this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
1241
-      this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
1242
-      this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure)
1243
-      this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type)
1244
-      this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
1245
-      this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
1246
-      this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)
1247
-      this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity)
1248
-      this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity)
1249
-      this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity)
1250
-      this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin)
1251
-      this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow)
1252
-      this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv)
1253
-      this.form.monitoring_date = parseInt(this.form.monitoring_date)
1254
-      this.form.urr = this.form.urr
1255
-      this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar)
1256
-      this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant)
1257
-      this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value
1258
-      this.form.blood_pressure_monitoring_site = parseInt(this.form.blood_pressure_monitoring_site)
1259
-      this.form.complication = parseInt(this.form.complication)
1260
-      let mode = '1'
1228
+      var is_new = this.form.id;
1229
+      this.form.operate_time = parseInt(this.form.operate_time / 1000);
1230
+      this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp);
1231
+      this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp);
1232
+      this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature);
1233
+      this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency);
1234
+      this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated);
1235
+      this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume);
1236
+      this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure);
1237
+      this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type);
1238
+      this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure);
1239
+      this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type);
1240
+      this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume);
1241
+      this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate);
1242
+      this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure);
1243
+      this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type);
1244
+      this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration);
1245
+      this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature);
1246
+      this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate);
1247
+      this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity);
1248
+      this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity);
1249
+      this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity);
1250
+      this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin);
1251
+      this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow);
1252
+      this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
1253
+      this.form.monitoring_date = parseInt(this.form.monitoring_date);
1254
+      this.form.urr = this.form.urr;
1255
+      this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar);
1256
+      this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant);
1257
+      this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value;
1258
+      this.form.blood_pressure_monitoring_site = parseInt(this.form.blood_pressure_monitoring_site);
1259
+      this.form.complication = parseInt(this.form.complication);
1260
+      let mode = '1';
1261 1261
       if (this.form.id > 0) {
1262
-        mode = '2'
1262
+        mode = '2';
1263 1263
         if (this.creator > 0 && this.creator != this.$store.getters.xt_user.user.id) {
1264 1264
           mode = '3'
1265 1265
         }
1266 1266
       }
1267 1267
       editMonitor(this.patient_id, this.schedule_date, this.form, mode).then(
1268
-        
1268
+
1269 1269
         rs => {
1270
-          var resp = rs.data
1270
+          var resp = rs.data;
1271 1271
           if (resp.state == 1) {
1272
-            var monitor = resp.data.monitor
1272
+            var monitor = resp.data.monitor;
1273 1273
             if (this.isAdd) {
1274
-              this.monitors.unshift(monitor)
1275
-              this.monitors.sort((a, b) => b.operate_time - a.operate_time)
1274
+              this.monitors.unshift(monitor);
1275
+              this.monitors.sort((a, b) => b.operate_time - a.operate_time);
1276 1276
               this.monitors.reverse()
1277 1277
             } else {
1278 1278
               for (let index = 0; index < this.monitors.length; index++) {
1279
-                const m = this.monitors[index]
1279
+                const m = this.monitors[index];
1280 1280
                 if (m.id == monitor.id) {
1281 1281
                   for (const key in monitor) {
1282 1282
                     m[key] = monitor[key]
@@ -1287,36 +1287,36 @@ export default {
1287 1287
             }
1288 1288
             this.reset()
1289 1289
           } else {
1290
-            this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp)
1291
-            this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp)
1292
-            this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature)
1293
-            this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency)
1294
-            this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated)
1295
-            this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume)
1296
-            this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure)
1297
-            this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type)
1298
-            this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure)
1299
-            this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type)
1300
-            this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume)
1301
-            this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate)
1302
-            this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure)
1303
-            this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type)
1304
-            this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration)
1305
-            this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature)
1306
-            this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate)
1307
-            this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity)
1308
-            this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity)
1309
-            this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity)
1310
-            this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin)
1311
-            this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow)
1312
-
1313
-            this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv)
1314
-            this.form.urr = this.form.urr
1315
-            this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar)
1316
-            this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant)
1317
-            this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value
1318
-            this.form.blood_pressure_monitoring_site = this.form.blood_pressure_monitoring_site
1319
-            this.form.complication = this.form.complication
1290
+            this.form.systolic_bp = parseFloat(this.form.systolic_bp) == NaN ? 0 : parseFloat(this.form.systolic_bp);
1291
+            this.form.diastolic_bp = parseFloat(this.form.diastolic_bp) == NaN ? 0 : parseFloat(this.form.diastolic_bp);
1292
+            this.form.temperature = parseFloat(this.form.temperature) == NaN ? 0 : parseFloat(this.form.temperature);
1293
+            this.form.pulse_frequency = parseFloat(this.form.pulse_frequency) == NaN ? 0 : parseFloat(this.form.pulse_frequency);
1294
+            this.form.breathing_rated = parseFloat(this.form.breathing_rated) == NaN ? 0 : parseFloat(this.form.breathing_rated);
1295
+            this.form.blood_flow_volume = parseFloat(this.form.blood_flow_volume) == NaN ? 0 : parseFloat(this.form.blood_flow_volume);
1296
+            this.form.venous_pressure = parseFloat(this.form.venous_pressure) == NaN ? 0 : parseFloat(this.form.venous_pressure);
1297
+            this.form.venous_pressure_type = parseFloat(this.form.venous_pressure_type) == NaN ? 1 : parseFloat(this.form.venous_pressure_type);
1298
+            this.form.transmembrane_pressure = parseFloat(this.form.transmembrane_pressure) == NaN ? 0 : parseFloat(this.form.transmembrane_pressure);
1299
+            this.form.transmembrane_pressure_type = parseFloat(this.form.transmembrane_pressure_type) == NaN ? 1 : parseFloat(this.form.transmembrane_pressure_type);
1300
+            this.form.ultrafiltration_volume = parseFloat(this.form.ultrafiltration_volume) == NaN ? 0 : parseFloat(this.form.ultrafiltration_volume);
1301
+            this.form.ultrafiltration_rate = parseFloat(this.form.ultrafiltration_rate) == NaN ? 0 : parseFloat(this.form.ultrafiltration_rate);
1302
+            this.form.arterial_pressure = parseFloat(this.form.arterial_pressure) == NaN ? 0 : parseFloat(this.form.arterial_pressure);
1303
+            this.form.arterial_pressure_type = parseFloat(this.form.arterial_pressure_type) == NaN ? 1 : parseFloat(this.form.arterial_pressure_type);
1304
+            this.form.sodium_concentration = parseFloat(this.form.sodium_concentration) == NaN ? 0 : parseFloat(this.form.sodium_concentration);
1305
+            this.form.dialysate_temperature = parseFloat(this.form.dialysate_temperature) == NaN ? 0 : parseFloat(this.form.dialysate_temperature);
1306
+            this.form.replacement_rate = parseFloat(this.form.replacement_rate) == NaN ? 0 : parseFloat(this.form.replacement_rate);
1307
+            this.form.displacement_quantity = parseFloat(this.form.displacement_quantity) == NaN ? 0 : parseFloat(this.form.displacement_quantity);
1308
+            this.form.conductivity = parseFloat(this.form.conductivity) == NaN ? 0 : parseFloat(this.form.conductivity);
1309
+            this.form.displacement_flow_quantity = parseFloat(this.form.displacement_flow_quantity) == NaN ? 0 : parseFloat(this.form.displacement_flow_quantity);
1310
+            this.form.heparin = parseFloat(this.form.heparin) == NaN ? 0 : parseFloat(this.form.heparin);
1311
+            this.form.dialysate_flow = parseFloat(this.form.dialysate_flow) == NaN ? 0 : parseFloat(this.form.dialysate_flow);
1312
+
1313
+            this.form.ktv = parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
1314
+            this.form.urr = this.form.urr;
1315
+            this.form.blood_sugar = parseFloat(this.form.blood_sugar) == NaN ? 0 : parseFloat(this.form.blood_sugar);
1316
+            this.form.monitor_anticoagulant = parseInt(this.form.monitor_anticoagulant);
1317
+            this.form.monitor_anticoagulant_value = this.form.monitor_anticoagulant_value;
1318
+            this.form.blood_pressure_monitoring_site = this.form.blood_pressure_monitoring_site;
1319
+            this.form.complication = this.form.complication;
1320 1320
             this.$message.error(resp.msg)
1321 1321
           }
1322 1322
         }
@@ -1370,7 +1370,7 @@ export default {
1370 1370
     },
1371 1371
     deleteRecordAction: function() {
1372 1372
       if (this.table_current_row == null) {
1373
-        this.$message.error('请选择一条监测记录')
1373
+        this.$message.error('请选择一条监测记录');
1374 1374
         return
1375 1375
       }
1376 1376
 
@@ -1380,7 +1380,7 @@ export default {
1380 1380
         type: 'warning'
1381 1381
       })
1382 1382
         .then(() => {
1383
-          let mode = '4'
1383
+          let mode = '4';
1384 1384
           if (
1385 1385
             this.table_current_row.creator > 0 &&
1386 1386
             this.table_current_row.creator !=
@@ -1393,14 +1393,14 @@ export default {
1393 1393
             patient_id: this.patient_id,
1394 1394
             record_id: this.table_current_row.id,
1395 1395
             mode: mode
1396
-          }
1396
+          };
1397 1397
 
1398 1398
           postDelMonitorInfo(params).then(response => {
1399 1399
             if (response.data.state == 0) {
1400
-              this.$message.error(response.data.msg)
1400
+              this.$message.error(response.data.msg);
1401 1401
               return false
1402 1402
             } else {
1403
-              const record_id = response.data.data.record_id
1403
+              const record_id = response.data.data.record_id;
1404 1404
               for (let i = 0; i < this.monitors.length; i++) {
1405 1405
                 if (this.monitors[i].id == record_id) {
1406 1406
                   this.monitors.splice(i, 1)
@@ -1425,23 +1425,23 @@ export default {
1425 1425
           }
1426 1426
         })
1427 1427
         .then(res => {
1428
-          console.log(res)
1428
+          console.log(res);
1429 1429
           if (res.data.state == 0) {
1430 1430
             this.hasPermission = false
1431 1431
           } else if (res.data.state == 1) {
1432
-            this.is_has_create = res.data.data.is_has_create
1433
-            this.is_has_exce = res.data.data.is_has_exce
1434
-            this.is_has_check = res.data.data.is_has_check
1435
-            this.is_has_modify = res.data.data.is_has_modify
1436
-            this.is_has_modify_other = res.data.data.is_has_modify_other
1437
-            this.is_has_modify_exce = res.data.data.is_has_modify_exce
1438
-            this.is_has_del = res.data.data.is_has_del
1432
+            this.is_has_create = res.data.data.is_has_create;
1433
+            this.is_has_exce = res.data.data.is_has_exce;
1434
+            this.is_has_check = res.data.data.is_has_check;
1435
+            this.is_has_modify = res.data.data.is_has_modify;
1436
+            this.is_has_modify_other = res.data.data.is_has_modify_other;
1437
+            this.is_has_modify_exce = res.data.data.is_has_modify_exce;
1438
+            this.is_has_del = res.data.data.is_has_del;
1439 1439
             this.is_has_del_other = res.data.data.is_has_del_other
1440 1440
           }
1441 1441
         })
1442 1442
     },
1443 1443
     getBloodPressure(id){
1444
-       var name = ""
1444
+       var name = "";
1445 1445
        for(let i=0;i<this.bloodPressureMmonitoringSite.length;i++){
1446 1446
          if(id == this.bloodPressureMmonitoringSite[i].id){
1447 1447
             name = this.bloodPressureMmonitoringSite[i].name
@@ -1450,7 +1450,7 @@ export default {
1450 1450
        return name
1451 1451
     },
1452 1452
     getComplication(id){
1453
-      var name = ""
1453
+      var name = "";
1454 1454
       for(let i=0;i<this.complicationList.length;i++){
1455 1455
          if(id == this.complicationList[i].id){
1456 1456
             name = this.complicationList[i].name

+ 15 - 0
src/xt_pages/hospitalStation/statementPrint.vue 查看文件

@@ -176,6 +176,21 @@ export default {
176 176
               that.info = response.data.data.info;
177 177
               console.log(that.info);
178 178
 
179
+              that.p_admin = response.data.data.printor_admin;
180
+              that.charge_admin = response.data.data.charge_admin;
181
+              that.order_infos = response.data.data;
182
+
183
+
184
+
185
+              that.info['p_admin'] =  that.p_admin;
186
+              that.info['charge_admin'] =  that.charge_admin;
187
+
188
+              that.info['date'] =  response.data.data.date;
189
+              that.info['number'] =  response.data.data.number;
190
+              that.info['order_infos'] =  response.data.data.order_infos;
191
+              that.info['diagnosis'] =  response.data.data.diagnosis;
192
+
193
+
179 194
               that.info['bed_cost_total'] = response.data.data.bedCostTotal;
180 195
               that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
181 196
               that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;

+ 161 - 53
src/xt_pages/outpatientCharges/listPrint.vue 查看文件

@@ -14,7 +14,8 @@
14 14
     </template>
15 15
 
16 16
     <div class='dialysisPage' style="padding-top:40px;">
17
-      <printOne :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
17
+      <printOne v-if="org_id != 10106" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
18
+      <printTwo v-if="org_id == 10106" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
18 19
     </div>
19 20
   </div>
20 21
 </template>
@@ -23,11 +24,14 @@
23 24
   import printOne from './listTemplate/printOne'
24 25
   import { getHisOrderDetail } from '@/api/his/his'
25 26
   import { uParseTime } from '@/utils/tools'
27
+  import printTwo from './statementTemplate/printTwo'
28
+  import axios from 'axios'
26 29
 
27 30
   export default {
28 31
     name: 'listPrint',
29 32
     components: {
30
-      printOne
33
+      printOne,
34
+      printTwo
31 35
     },
32 36
     props: {
33 37
       paramsObj: Object
@@ -38,10 +42,21 @@
38 42
         patient:{},
39 43
         order:{},
40 44
         admin:{},
45
+
46
+
47
+        info:null,
48
+        p_admin:{},
49
+        charge_admin:{},
50
+        org_id:''
41 51
       }
42 52
     },
43 53
     created() {
44
-      this.getInfo(this.paramsObj.id)
54
+      this.getInfo(this.paramsObj.id);
55
+      this.org_id = this.$store.getters.xt_user.org_id;
56
+      if(this.org_id == 10106){
57
+        this.getInfo10106(this.paramsObj.id)
58
+      }
59
+
45 60
     },
46 61
 
47 62
     methods: {
@@ -51,41 +66,41 @@
51 66
       getInfo(order_id) {
52 67
         let params = {
53 68
           id: order_id
54
-        }
69
+        };
55 70
         getHisOrderDetail(params).then(response => {
56 71
           if (response.data.state == 0) {
57
-            this.$message.error(response.data.msg)
72
+            this.$message.error(response.data.msg);
58 73
             return false
59 74
           } else {
60
-            this.order = response.data.data.order
61
-            this.patient = response.data.data.patient
62
-            console.log(this.patient)
63
-            this.admin = response.data.data.admin_info
75
+            this.order = response.data.data.order;
76
+            this.patient = response.data.data.patient;
77
+            console.log(this.patient);
78
+            this.admin = response.data.data.admin_info;
64 79
 
65 80
 
66 81
             for (let i = 0; i < response.data.data.order_info.length; i++) {
67
-              var infos = response.data.data.order_info[i]
82
+              var infos = response.data.data.order_info[i];
68 83
               let obj = {
69 84
                 med_chrgitm_type: this.getType(infos.med_chrgitm_type),
70 85
                 price: infos.pric,
71 86
                 count: infos.cnt
72
-              }
87
+              };
73 88
               if (infos.advice && infos.advice.id == 0 && infos.project && infos.project.id > 0) {
74
-                obj['p_time'] = this.getTimes(infos.project.prescription.ctime)
75
-                obj['name'] = infos.project.project.project_name
76
-                obj['spec'] = 1
89
+                obj['p_time'] = this.getTimes(infos.project.prescription.ctime);
90
+                obj['name'] = infos.project.project.project_name;
91
+                obj['spec'] = 1;
77 92
                 obj['unit'] = infos.project.project.unit
78 93
 
79 94
               }
80 95
 
81 96
               if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
82
-                obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
83
-                obj['name'] = infos.advice.advice_name
84
-                obj['spec'] = infos.advice.drug.drug_spec
97
+                obj['p_time'] = this.getTimes(infos.advice.prescription.ctime);
98
+                obj['name'] = infos.advice.advice_name;
99
+                obj['spec'] = infos.advice.drug.drug_spec;
85 100
                 obj['unit'] = infos.advice.drug.max_unit
86 101
 
87 102
               }
88
-              this.list.push(obj)
103
+              this.list.push(obj);
89 104
               this.list.sort(function(a, b) {
90 105
                 return b.p_time < a.p_time ? 1 : -1
91 106
               })
@@ -97,57 +112,57 @@
97 112
       getType(med_chrgitm_type) {
98 113
         switch (med_chrgitm_type) {
99 114
           case '01':
100
-            return '床位费'
101
-            break
115
+            return '床位费';
116
+            break;
102 117
           case '02':
103
-            return '诊察费'
118
+            return '诊察费';
104 119
 
105
-            break
120
+            break;
106 121
           case '03':
107
-            return '检查费'
122
+            return '检查费';
108 123
 
109
-            break
124
+            break;
110 125
           case '04':
111
-            return '化验费'
112
-            break
126
+            return '化验费';
127
+            break;
113 128
           case '05':
114
-            return '治疗费'
129
+            return '治疗费';
115 130
 
116
-            break
131
+            break;
117 132
           case '06':
118
-            return '手术费'
133
+            return '手术费';
119 134
 
120
-            break
135
+            break;
121 136
           case '07':
122
-            return '护理费'
137
+            return '护理费';
123 138
 
124
-            break
139
+            break;
125 140
           case '08':
126
-            return '材料费'
141
+            return '材料费';
127 142
 
128
-            break
143
+            break;
129 144
           case '09':
130
-            return '西药费'
145
+            return '西药费';
131 146
 
132
-            break
147
+            break;
133 148
           case '10':
134
-            return '中药饮片费'
149
+            return '中药饮片费';
135 150
 
136
-            break
151
+            break;
137 152
           case '11':
138
-            return '中成药费'
153
+            return '中成药费';
139 154
 
140
-            break
155
+            break;
141 156
           case '12':
142
-            return '一般诊疗费'
157
+            return '一般诊疗费';
143 158
 
144
-            break
159
+            break;
145 160
           case '13':
146
-            return '挂号费'
161
+            return '挂号费';
147 162
 
148
-            break
163
+            break;
149 164
           case '14':
150
-            return '其他费'
165
+            return '其他费';
151 166
 
152 167
             break
153 168
 
@@ -155,15 +170,26 @@
155 170
 
156 171
       },
157 172
       printThisPage() {
173
+        if(this.org_id != 10106){
174
+          const style =
175
+          '@media print {.listTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}';
176
+          printJS({
177
+            printable: 'list-print',
178
+            type: 'html',
179
+            style: style,
180
+            scanStyles: false
181
+          })
182
+        }else{
183
+          const style =
184
+          '@media print {#statement-print{font-size:12px;width:600px;margin:0 auto;}.statementTitle{font-size: 22px;text-align: center;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
185
+          printJS({
186
+            printable: "statement-print",
187
+            type: "html",
188
+            style: style,
189
+            scanStyles: false
190
+          });
191
+        }
158 192
 
159
-        const style =
160
-          '@media print {.listTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
161
-        printJS({
162
-          printable: 'list-print',
163
-          type: 'html',
164
-          style: style,
165
-          scanStyles: false
166
-        })
167 193
 
168 194
         // if (this.org_template_info.template_id == 1) {
169 195
         //   printJS({
@@ -173,6 +199,88 @@
173 199
         //     scanStyles: false
174 200
         //   });
175 201
         // }
202
+      },
203
+      getInfo10106(order_id) {
204
+        if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
205
+
206
+          var that = this;
207
+
208
+          axios.get('http://127.0.0.1:9532/api/settle/query', {
209
+            params: {
210
+              order_id: order_id,
211
+              admin_user_id:that.$store.getters.xt_user.user.id
212
+            }
213
+          })
214
+            .then(function (response) {
215
+              if (response.data.state == 0) {
216
+                this.$message.error(response.data.msg);
217
+                return false
218
+              } else {
219
+                console.log("logloglog");
220
+
221
+                console.log(response.data.data.info);
222
+                that.info = response.data.data.info;
223
+                that.p_admin = response.data.data.printor_admin;
224
+                that.charge_admin = response.data.data.charge_admin;
225
+                that.order_infos = response.data.data;
226
+
227
+
228
+
229
+                that.info['p_admin'] =  that.p_admin;
230
+                that.info['charge_admin'] =  that.charge_admin;
231
+
232
+                that.info['date'] =  response.data.data.date;
233
+                that.info['number'] =  response.data.data.number;
234
+                that.info['order_infos'] =  response.data.data.order_infos;
235
+                that.info['diagnosis'] =  response.data.data.diagnosis;
236
+
237
+
238
+                console.log(that.info);
239
+
240
+                that.info['bed_cost_total'] = response.data.data.bedCostTotal;
241
+                that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
242
+                that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
243
+
244
+                that.info['operation_cost_total'] = response.data.data.operationCostTotal;
245
+                that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal;
246
+                that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal;
247
+
248
+                that.info['other_cost_total'] = response.data.data.otherCostTotal;
249
+                that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal;
250
+                that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal;
251
+
252
+                that.info['material_cost_total'] = response.data.data.materialCostTotal;
253
+                that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal;
254
+                that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal;
255
+
256
+                that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal;
257
+                that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal;
258
+                that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal;
259
+
260
+                that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal;
261
+                that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal;
262
+                that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
263
+
264
+
265
+                that.info['check_cost_total'] = response.data.data.checkCostTotal;
266
+                that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal;
267
+                that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal;
268
+
269
+
270
+                that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal;
271
+                that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal;
272
+                that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal;
273
+
274
+                that.info['treat_cost_total'] = response.data.data.treatCostTotal;
275
+                that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
276
+                that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
277
+                console.log(this.info)
278
+              }
279
+            })
280
+            .catch(function (error) {
281
+
282
+            });
283
+        }
176 284
       }
177 285
     }
178 286
 

+ 61 - 51
src/xt_pages/outpatientCharges/newStatementPrint.vue 查看文件

@@ -90,7 +90,7 @@
90 90
             scanStyles: false
91 91
           });
92 92
         }
93
-        
93
+
94 94
 
95 95
         // if (this.org_template_info.template_id == 1) {
96 96
         //   printJS({
@@ -104,7 +104,7 @@
104 104
       getAllDoctorList(){
105 105
         getAllDoctorList().then(response=>{
106 106
           if(response.data.state == 1){
107
-            var doctor =  response.data.data.doctor
107
+            var doctor =  response.data.data.doctor;
108 108
 
109 109
             this.doctorList = doctor
110 110
           }
@@ -113,15 +113,15 @@
113 113
       getAllHisPatientList(){
114 114
         const params = {
115 115
           record_date:this.record_date
116
-        }
116
+        };
117 117
         getAllHisPatientList(params).then(response=>{
118 118
           if(response.data.state == 1){
119
-            this.patientTableData = response.data.data.list
120
-            this.patientTableDataTwo = response.data.data.list
119
+            this.patientTableData = response.data.data.list;
120
+            this.patientTableDataTwo = response.data.data.list;
121 121
 
122
-            console.log('222', this.patientTableData)
123
-            let cal_one = 0
124
-            let cal_two = 0
122
+            console.log('222', this.patientTableData);
123
+            let cal_one = 0;
124
+            let cal_two = 0;
125 125
             for (let i = 0; i < response.data.data.list.length; i++) {
126 126
               if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
127 127
                 cal_one = cal_one + 1
@@ -133,16 +133,16 @@
133 133
             // this.$refs.tab.setCurrentRow(this.patientTableData[0])
134 134
             // console.log(this.patientTableData[0])
135 135
             // this.choosePatient(this.patientTableData[0])
136
-            this.cal_one = cal_one
136
+            this.cal_one = cal_one;
137 137
             this.cal_two = cal_two
138 138
           }
139 139
         })
140 140
       },
141 141
 
142 142
       changePatient(row){
143
-        console.log("row",row)
144
-        this.patient_id = row.patient_id
145
-        this.record_date = this.record_date
143
+        console.log("row",row);
144
+        this.patient_id = row.patient_id;
145
+        this.record_date = this.record_date;
146 146
         this.prescription_id = this.prescription_id
147 147
         //   var params = {
148 148
         //     patient_id:row.patient_id,
@@ -171,7 +171,7 @@
171 171
       getInfo(order_id) {
172 172
         if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
173 173
 
174
-          var that = this
174
+          var that = this;
175 175
 
176 176
           axios.get('http://127.0.0.1:9532/api/settle/query', {
177 177
             params: {
@@ -181,57 +181,67 @@
181 181
           })
182 182
             .then(function (response) {
183 183
               if (response.data.state == 0) {
184
-                this.$message.error(response.data.msg)
184
+                this.$message.error(response.data.msg);
185 185
                 return false
186 186
               } else {
187
-                console.log("logloglog")
187
+                console.log("logloglog");
188
+
189
+                console.log(response.data.data.info);
190
+                that.info = response.data.data.info;
191
+                that.p_admin = response.data.data.printor_admin;
192
+                that.charge_admin = response.data.data.charge_admin;
193
+                that.order_infos = response.data.data;
194
+
188 195
 
189
-                console.log(response.data.data.info)
190
-                that.info = response.data.data.info
191
-                that.p_admin = response.data.data.printor_admin
192
-                that.charge_admin = response.data.data.charge_admin
193
-                that.order_infos = response.data.data
194 196
 
197
+                that.info['p_admin'] =  that.p_admin;
198
+                that.info['charge_admin'] =  that.charge_admin;
195 199
 
196
-                console.log(that.info)
200
+                that.info['date'] =  response.data.data.date;
201
+                that.info['number'] =  response.data.data.number;
202
+                that.info['order_infos'] =  response.data.data.order_infos;
203
+                that.info['diagnosis'] =  response.data.data.diagnosis;
197 204
 
198
-                that.info['bed_cost_total'] = response.data.data.bedCostTotal
199
-                that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
200
-                that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
201 205
 
202
-                that.info['operation_cost_total'] = response.data.data.operationCostTotal
203
-                that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
204
-                that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
206
+                console.log(that.info);
205 207
 
206
-                that.info['other_cost_total'] = response.data.data.otherCostTotal
207
-                that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
208
-                that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
208
+                that.info['bed_cost_total'] = response.data.data.bedCostTotal;
209
+                that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
210
+                that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
209 211
 
210
-                that.info['material_cost_total'] = response.data.data.materialCostTotal
211
-                that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
212
-                that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
212
+                that.info['operation_cost_total'] = response.data.data.operationCostTotal;
213
+                that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal;
214
+                that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal;
213 215
 
214
-                that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
215
-                that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
216
-                that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
216
+                that.info['other_cost_total'] = response.data.data.otherCostTotal;
217
+                that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal;
218
+                that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal;
217 219
 
218
-                that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
219
-                that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
220
-                that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
220
+                that.info['material_cost_total'] = response.data.data.materialCostTotal;
221
+                that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal;
222
+                that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal;
221 223
 
224
+                that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal;
225
+                that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal;
226
+                that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal;
222 227
 
223
-                that.info['check_cost_total'] = response.data.data.checkCostTotal
224
-                that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
225
-                that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
228
+                that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal;
229
+                that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal;
230
+                that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
226 231
 
227 232
 
228
-                that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
229
-                that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
230
-                that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
233
+                that.info['check_cost_total'] = response.data.data.checkCostTotal;
234
+                that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal;
235
+                that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal;
231 236
 
232
-                that.info['treat_cost_total'] = response.data.data.treatCostTotal
233
-                that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
234
-                that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
237
+
238
+                that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal;
239
+                that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal;
240
+                that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal;
241
+
242
+                that.info['treat_cost_total'] = response.data.data.treatCostTotal;
243
+                that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
244
+                that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
235 245
                 console.log(this.info)
236 246
               }
237 247
             })
@@ -244,14 +254,14 @@
244 254
     },
245 255
 
246 256
     created() {
247
-      this.org_id = this.$store.getters.xt_user.org_id
257
+      this.org_id = this.$store.getters.xt_user.org_id;
248 258
       this.getInfo(this.paramsObj.order_id)
249
-      
259
+
250 260
     },
251 261
     watch:{
252 262
       paramsObj:{//深度监听,可监听到对象、数组的变化
253 263
         handler(val, oldVal){
254
-          this.paramsObj = val
264
+          this.paramsObj = val;
255 265
           this.getInfo(this.paramsObj.order_id)
256 266
 
257 267
         },

+ 60 - 50
src/xt_pages/outpatientCharges/statementPrint.vue 查看文件

@@ -89,7 +89,7 @@ export default {
89 89
     getAllDoctorList(){
90 90
       getAllDoctorList().then(response=>{
91 91
         if(response.data.state == 1){
92
-               var doctor =  response.data.data.doctor
92
+               var doctor =  response.data.data.doctor;
93 93
 
94 94
                this.doctorList = doctor
95 95
              }
@@ -98,15 +98,15 @@ export default {
98 98
     getAllHisPatientList(){
99 99
          const params = {
100 100
            record_date:this.record_date
101
-         }
101
+         };
102 102
       getAllHisPatientList(params).then(response=>{
103 103
          if(response.data.state == 1){
104
-            this.patientTableData = response.data.data.list
105
-            this.patientTableDataTwo = response.data.data.list
104
+            this.patientTableData = response.data.data.list;
105
+            this.patientTableDataTwo = response.data.data.list;
106 106
 
107
-            console.log('222', this.patientTableData)
108
-            let cal_one = 0
109
-            let cal_two = 0
107
+            console.log('222', this.patientTableData);
108
+            let cal_one = 0;
109
+            let cal_two = 0;
110 110
             for (let i = 0; i < response.data.data.list.length; i++) {
111 111
               if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
112 112
                 cal_one = cal_one + 1
@@ -118,16 +118,16 @@ export default {
118 118
             // this.$refs.tab.setCurrentRow(this.patientTableData[0])
119 119
             // console.log(this.patientTableData[0])
120 120
             // this.choosePatient(this.patientTableData[0])
121
-            this.cal_one = cal_one
121
+            this.cal_one = cal_one;
122 122
             this.cal_two = cal_two
123 123
          }
124 124
       })
125 125
     },
126 126
 
127 127
     changePatient(row){
128
-      console.log("row",row)
129
-      this.patient_id = row.patient_id
130
-      this.record_date = this.record_date
128
+      console.log("row",row);
129
+      this.patient_id = row.patient_id;
130
+      this.record_date = this.record_date;
131 131
       this.prescription_id = this.prescription_id
132 132
       //   var params = {
133 133
       //     patient_id:row.patient_id,
@@ -156,7 +156,7 @@ export default {
156 156
     getInfo(order_id) {
157 157
       if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9990) {
158 158
 
159
-        var that = this
159
+        var that = this;
160 160
 
161 161
         axios.get('http://127.0.0.1:9532/api/settle/query', {
162 162
           params: {
@@ -167,55 +167,65 @@ export default {
167 167
         })
168 168
           .then(function (response) {
169 169
             if (response.data.state == 0) {
170
-              this.$message.error(response.data.msg)
170
+              this.$message.error(response.data.msg);
171 171
               return false
172 172
             } else {
173
-              console.log("logloglog")
173
+              console.log("logloglog");
174
+
175
+              console.log(response.data.data.info);
176
+              that.info = response.data.data.info;
177
+              console.log(that.info);
178
+
179
+
180
+              that.info['p_admin'] =  that.p_admin;
181
+              that.info['charge_admin'] =  that.charge_admin;
182
+
183
+              that.info['date'] =  response.data.data.date;
184
+              that.info['number'] =  response.data.data.number;
185
+              that.info['order_infos'] =  response.data.data.order_infos;
186
+              that.info['diagnosis'] =  response.data.data.diagnosis;
174 187
 
175
-              console.log(response.data.data.info)
176
-              that.info = response.data.data.info
177
-              console.log(that.info)
178 188
 
179
-              that.info['bed_cost_total'] = response.data.data.bedCostTotal
180
-              that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
181
-              that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
189
+              that.info['bed_cost_total'] = response.data.data.bedCostTotal;
190
+              that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal;
191
+              that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal;
182 192
 
183
-              that.info['operation_cost_total'] = response.data.data.operationCostTotal
184
-              that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
185
-              that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
193
+              that.info['operation_cost_total'] = response.data.data.operationCostTotal;
194
+              that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal;
195
+              that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal;
186 196
 
187
-              that.info['other_cost_total'] = response.data.data.otherCostTotal
188
-              that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
189
-              that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
197
+              that.info['other_cost_total'] = response.data.data.otherCostTotal;
198
+              that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal;
199
+              that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal;
190 200
 
191
-              that.info['material_cost_total'] = response.data.data.materialCostTotal
192
-              that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
193
-              that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
201
+              that.info['material_cost_total'] = response.data.data.materialCostTotal;
202
+              that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal;
203
+              that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal;
194 204
 
195
-              that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
196
-              that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
197
-              that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
205
+              that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal;
206
+              that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal;
207
+              that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal;
198 208
 
199
-              that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
200
-              that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
201
-              that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
209
+              that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal;
210
+              that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal;
211
+              that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
202 212
 
203 213
 
204
-              that.info['check_cost_total'] = response.data.data.checkCostTotal
205
-              that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
206
-              that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
214
+              that.info['check_cost_total'] = response.data.data.checkCostTotal;
215
+              that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal;
216
+              that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal;
207 217
 
208 218
 
209
-              that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
210
-              that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
211
-              that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
219
+              that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal;
220
+              that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal;
221
+              that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal;
212 222
 
213
-              that.info['treat_cost_total'] = response.data.data.treatCostTotal
214
-              that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
215
-              that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
216
-              that.info['date'] =  response.data.data.date
217
-              that.info['number'] =  response.data.data.number
218
-              that.info['order_infos'] =  response.data.data.order_infos
223
+              that.info['treat_cost_total'] = response.data.data.treatCostTotal;
224
+              that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal;
225
+              that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal;
226
+              that.info['date'] =  response.data.data.date;
227
+              that.info['number'] =  response.data.data.number;
228
+              that.info['order_infos'] =  response.data.data.order_infos;
219 229
               that.info['diagnosis'] =  response.data.data.diagnosis
220 230
 
221 231
             }
@@ -229,14 +239,14 @@ export default {
229 239
   },
230 240
 
231 241
   created() {
232
-    this.getInfo(this.paramsObj.order_id)
233
-    this.org_id = this.$store.getters.xt_user.org_id
242
+    this.getInfo(this.paramsObj.order_id);
243
+    this.org_id = this.$store.getters.xt_user.org_id;
234 244
     console.log("this.org_id",this.org_id)
235 245
   },
236 246
   watch:{
237 247
     paramsObj:{//深度监听,可监听到对象、数组的变化
238 248
       handler(val, oldVal){
239
-        this.paramsObj = val
249
+        this.paramsObj = val;
240 250
         this.getInfo(this.paramsObj.order_id)
241 251
 
242 252
       },

+ 40 - 37
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue 查看文件

@@ -10,25 +10,24 @@
10 10
         <div class="dialysis-print-order">
11 11
          <div class="order-yy-name">{{orgName}}</div>
12 12
           <div class="order-title">药品出库登记表</div>
13
-         
13
+
14 14
           <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
15 15
 
16 16
           <table class="print-table" border="1">
17 17
             <tbody>
18 18
             <tr>
19
-              <td style="line-height: 50px" width="50">序号</td>
20 19
               <td style="line-height: 50px" width="250">药品名称</td>
21 20
               <td style="line-height: 50px" width="250">规格型号</td>
22 21
               <td style="line-height: 50px" width="50">单位</td>
23
-              <td style="line-height: 50px" width="80">数量</td>
24
-              <td style="line-height:50px" width="80">单价</td>
22
+              <td style="line-height: 50px" width="80">出货数量</td>
23
+              <td style="line-height:50px" width="80">出库价格</td>
25 24
               <td style="line-height: 50px" width="">总价</td>
25
+              <td style="line-height: 50px" width="">批次</td>
26
+              <td style="line-height: 50px" width="">生产日期</td>
27
+              <td style="line-height: 50px" width="">有效日期</td>
26 28
             </tr>
27 29
 
28 30
             <tr v-for="(item,index) in warehousingOutInfo.warehousingOutData" :key="item.id">
29
-              <td style="line-height: 50px">&nbsp;
30
-                {{index+1}}
31
-              </td>
32 31
               <td style="line-height: 50px">
33 32
                 <span v-if="item.drug_id != 0">{{item.drug.drug_name}}</span>
34 33
               </td>
@@ -38,7 +37,7 @@
38 37
               <td style="line-height: 50px">
39 38
                 <span>{{getUnit(item.drug_id)}}</span>
40 39
               </td>
41
-            
40
+
42 41
               <td style="line-height: 50px">
43 42
                   {{item.count}}
44 43
               </td>
@@ -48,15 +47,18 @@
48 47
              <td  style="line-height:50px">
49 48
                 {{(item.count * item.price).toFixed(2)}}
50 49
              </td>
50
+             <td></td>
51
+             <td></td>
52
+             <td></td>
51 53
             </tr>
52 54
              <tr>
53 55
                <td style="line-height:50px">合计</td>
54
-               <td colspan="5"></td>
56
+               <td colspan="7"></td>
55 57
                <td>{{allPrice.toFixed(2)}}</td>
56 58
              </tr>
57 59
             </tbody>
58 60
           </table>
59
-        
61
+
60 62
 
61 63
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
62 64
             <div style="width:50px;">审批:</div><div style="width:100px;"></div>
@@ -66,6 +68,7 @@
66 68
             <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
67 69
           </div>
68 70
           <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
71
+            <div style="width:70px;">科室:</div><div style="width:100px;"></div>
69 72
             <div style="width:70px;">领料人:</div><div style="width:100px;"></div>
70 73
             <div style="width:80px;">审批:</div><div style="width:100px;"></div>
71 74
             <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
@@ -130,8 +133,8 @@
130 133
     },
131 134
     methods: {
132 135
       getDateTwo(){
133
-        var ptime = Math.round(new Date().getTime() / 1000)
134
-        return "打印日期:"+uParseTime(ptime, '{y}-{m}-{d}')
136
+        var ptime = Math.round(new Date().getTime() / 1000);
137
+        return "打印日期:"+uParseTime(ptime, '{y}-{m}-{d}')
135 138
       },
136 139
       getTime(value, temp) {
137 140
         if (value == 0) {
@@ -143,9 +146,9 @@
143 146
         return ''
144 147
       },
145 148
       printThisPage() {
146
-        var ptime = Math.round(new Date().getTime() / 1000)
147
-        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
148
-        const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
149
+        var ptime = Math.round(new Date().getTime() / 1000);
150
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}');
151
+        const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
149 152
         printJS({
150 153
           printable: 'dialysis-print-box',
151 154
           type: 'html',
@@ -153,9 +156,9 @@
153 156
           scanStyles: false
154 157
         })
155 158
       },
156
-   
159
+
157 160
       getUnit(id){
158
-        var name = ""
161
+        var name = "";
159 162
         for(let i=0;i<this.goodUnit.length;i++){
160 163
           if(this.goodUnit[i].id == id){
161 164
             name = this.goodUnit[i].name
@@ -166,22 +169,22 @@
166 169
     GetOrderDetail: function(order_id) {
167 170
             const params = {
168 171
             'id': order_id
169
-            }
172
+            };
170 173
             getDrugWarehouseOutInfo(params).then(response => {
171 174
             if (response.data.state == 0) {
172 175
 
173
-                this.$message.error(response.data.msg)
176
+                this.$message.error(response.data.msg);
174 177
                 return false
175 178
             } else {
176 179
               for (let i = 0; i < response.data.data.list.length; i++) {
177 180
                 this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
178 181
                }
179
-               var total_price = 0
182
+               var total_price = 0;
180 183
                for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
181 184
                  total_price += this.warehousingOutInfo.warehousingOutData[i].count * this.warehousingOutInfo.warehousingOutData[i].price
182 185
                }
183
-               this.allPrice = total_price
184
-               this.warehousingOutInfo.info = response.data.data.info
186
+               this.allPrice = total_price;
187
+               this.warehousingOutInfo.info = response.data.data.info;
185 188
                this.handleSpanTempArr()
186 189
             }
187 190
             })
@@ -194,14 +197,14 @@
194 197
           is_use: this.is_use,
195 198
           is_charge: this.is_charge,
196 199
           is_inject: this.is_inject
197
-        }
200
+        };
198 201
         getBaseDrugLibList(params).then(response => {
199 202
           if (response.data.state == 0) {
200
-            this.$message.error(response.data.msg)
203
+            this.$message.error(response.data.msg);
201 204
             return false
202 205
           } else {
203
-            this.total = response.data.data.total
204
-            this.list = []
206
+            this.total = response.data.data.total;
207
+            this.list = [];
205 208
             for (let i = 0; i < response.data.data.list.length; i++) {
206 209
               this.list.push(response.data.data.list[i])
207 210
             }
@@ -210,7 +213,7 @@
210 213
         })
211 214
       },
212 215
       getUnit(id){
213
-        var name = ""
216
+        var name = "";
214 217
         for(let i=0;i<this.list.length;i++){
215 218
           if(this.list[i].id == id){
216 219
             name = this.list[i].min_unit
@@ -219,46 +222,46 @@
219 222
         return name
220 223
       },
221 224
       handleSpanTempArr(){
222
-        this.tempArr = []
225
+        this.tempArr = [];
223 226
 
224 227
         for (let i = 0; i < this.warehousingOutInfo.warehousingOutData.length; i++) {
225 228
           if (i === 0) {
226
-            this.tempArr.push(1)
229
+            this.tempArr.push(1);
227 230
             this.pos = 0
228 231
           } else {
229 232
             // 判断当前元素与上一个元素是否相同
230 233
             if (this.warehousingOutInfo.warehousingOutData[i].drug_id === this.warehousingOutInfo.warehousingOutData[i - 1].drug_id) {
231
-              this.tempArr[this.pos] += 1
234
+              this.tempArr[this.pos] += 1;
232 235
               this.tempArr.push(0)
233 236
             } else {
234
-              this.tempArr.push(1)
237
+              this.tempArr.push(1);
235 238
               this.pos = i
236 239
             }
237 240
           }
238 241
         }
239 242
 
240
-        let sameRowArr = [], sIdx = 0
243
+        let sameRowArr = [], sIdx = 0;
241 244
         this.warehousingOutInfo.warehousingOutData.forEach((item, index) => {
242
-          item.index = index
245
+          item.index = index;
243 246
           if (index === 0) {
244 247
             sameRowArr.push([index])
245 248
           } else {
246 249
             if (item.drug_id === this.warehousingOutInfo.warehousingOutData[index - 1].drug_id) {
247 250
               sameRowArr[sIdx].push(index)
248 251
             } else {
249
-              sIdx = sIdx + 1
252
+              sIdx = sIdx + 1;
250 253
               sameRowArr.push([index])
251 254
             }
252 255
           }
253
-        })
256
+        });
254 257
         this.sameRowArr = sameRowArr
255 258
       },
256 259
     },
257 260
     created() {
258 261
       this.orgName = this.$store.getters.xt_user.org.org_name;
259
-      const order_id = this.$route.query.id
262
+      const order_id = this.$route.query.id;
260 263
       this.orgId = this.$store.getters.xt_user.org.id;
261
-      this.GetOrderDetail(order_id)
264
+      this.GetOrderDetail(order_id);
262 265
       this.getList()
263 266
     }
264 267
 

+ 47 - 40
src/xt_pages/stock/stockOutOrderDetailPrint.vue 查看文件

@@ -16,7 +16,7 @@
16 16
                         <span class="main_title">耗材出库登记单</span>
17 17
                     </div>
18 18
                     <div style="text-align:right;margin-bottom:1px;font-size: 18px;">
19
-                      打印时间:{{time_now}}
19
+                      打印日期:{{time_now}}
20 20
                     </div>
21 21
                     <div class="table_panel">
22 22
                         <table class="table">
@@ -25,9 +25,12 @@
25 25
                                     <td width="80">耗材名称</td>
26 26
                                     <td width="80">规格型号</td>
27 27
                                     <td width="80">单位</td>
28
-                                     <td width="80">出货价</td>
29
-                                    <td width="80">出库数量</td> 
28
+                                    <td width="80">出货数量</td>
29
+                                    <td width="80">出库价格</td>
30 30
                                     <td width="80">总价</td>
31
+                                    <td width="80">批号</td>
32
+                                    <td width="80">生产日期</td>
33
+                                    <td width="80">有效日期</td>
31 34
                                 </tr>
32 35
                             </thead>
33 36
                             <tbody>
@@ -35,13 +38,16 @@
35 38
                                     <td><span v-if="item.good_id != 0">{{getTypeNameOne(item.good_id)}}</span></td>
36 39
                                     <td><span v-if="item.good_id != 0">{{getSpecificationName(item.good_id)}}</span></td>
37 40
                                     <td><span v-if="item.good_id!=0">{{getUnit(item.good_id)}}</span></td>
41
+                                    <td>{{getOutStockCount(item.good_id) + getWarehouseOutInfoCount(item.warehouse_out_id,item.good_id)}}</td>
38 42
                                     <td>{{item.price}}</td>
39
-                                    <td>{{getOutStockCount(item.good_id) + getWarehouseOutInfoCount(item.warehouse_out_id,item.good_id)}}</td> 
40 43
                                     <td>{{((getOutStockCount(item.good_id) +getWarehouseOutInfoCount(item.warehouse_out_id,item.good_id))*item.price).toFixed(2)}}</td>
44
+                                    <td></td>
45
+                                    <td></td>
46
+                                    <td></td>
41 47
                                 </tr>
42 48
                                 <tr>
43 49
                                   <td>合计</td>
44
-                                  <td colspan="4"></td>
50
+                                  <td colspan="7"></td>
45 51
                                   <td>{{allPrice.toFixed(2)}}</td>
46 52
                                </tr>
47 53
                             </tbody>
@@ -55,6 +61,7 @@
55 61
                           <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
56 62
                         </div>
57 63
                         <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
64
+                          <div style="width:70px;">科室:</div><div style="width:100px;"></div>
58 65
                           <div style="width:70px;">领料人:</div><div style="width:100px;"></div>
59 66
                           <div style="width:80px;">审批:</div><div style="width:100px;"></div>
60 67
                           <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
@@ -72,7 +79,7 @@
72 79
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
73 80
 import { GetAllConfig,getWarehouseOutInfo,GetOutStockTotalCount,getGoodInfoList } from "@/api/stock";
74 81
 import print from 'print-js'
75
-const moment = require('moment')
82
+const moment = require('moment');
76 83
 export default {
77 84
     components:{
78 85
         BreadCrumb
@@ -114,7 +121,7 @@ export default {
114 121
     },
115 122
     methods:{
116 123
       printAction: function() {
117
-          const style = '@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: 16px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 16px; padding: 10px 5px; white-space: pre-line;} .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; } }'
124
+          const style = '@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: 16px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 16px; padding: 10px 5px; white-space: pre-line;} .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; } }';
118 125
           printJS({
119 126
           printable: 'print_content',
120 127
           type: 'html',
@@ -127,12 +134,12 @@ export default {
127 134
         GetConfigInfo() {
128 135
             GetAllConfig().then(response => {
129 136
             if (response.data.state == 0) {
130
-                this.$message.error(response.data.msg)
137
+                this.$message.error(response.data.msg);
131 138
                 return false
132 139
             } else {
133
-                this.manufacturer = response.data.data.manufacturer
134
-                this.dealer = response.data.data.dealer
135
-                this.goodInfo = response.data.data.goodInfo
140
+                this.manufacturer = response.data.data.manufacturer;
141
+                this.dealer = response.data.data.dealer;
142
+                this.goodInfo = response.data.data.goodInfo;
136 143
                 this.goodType = response.data.data.goodType
137 144
             }
138 145
             })
@@ -140,27 +147,27 @@ export default {
140 147
        GetOrderDetail: function(order_id) {
141 148
         const params = {
142 149
           'id': order_id
143
-        }
150
+        };
144 151
         getWarehouseOutInfo(params).then(response => {
145 152
           if (response.data.state == 0) {
146 153
 
147
-            this.$message.error(response.data.msg)
154
+            this.$message.error(response.data.msg);
148 155
             return false
149 156
           } else {
150
-           
157
+
151 158
             for (let i = 0; i < response.data.data.list.length; i++) {
152 159
               this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
153 160
             }
154
-            this.warehousingOutInfo.info = response.data.data.info
155
-            console.log("数据源头9999999999",this.warehousingOutInfo.warehousingOutData)
156
-            var total_price = 0
161
+            this.warehousingOutInfo.info = response.data.data.info;
162
+            console.log("数据源头9999999999",this.warehousingOutInfo.warehousingOutData);
163
+            var total_price = 0;
157 164
             for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
158 165
               total_price += this.getOutStockCount(this.warehousingOutInfo.warehousingOutData[i].good_id)*this.warehousingOutInfo.warehousingOutData[i].price
159 166
             }
160
-           this.allPrice = total_price
167
+           this.allPrice = total_price;
161 168
 
162
-           var wareoutList =  response.data.data.wareoutList
163
-           console.log("出库数据",wareoutList)
169
+           var wareoutList =  response.data.data.wareoutList;
170
+           console.log("出库数据",wareoutList);
164 171
            this.wareoutList = wareoutList
165 172
           }
166 173
         })
@@ -169,18 +176,18 @@ export default {
169 176
        GetTotalCount(time){
170 177
           var params = {
171 178
            warehouse_out_time:time
172
-          }
179
+          };
173 180
         GetOutStockTotalCount(params).then(response=>{
174 181
            if(response.data.state == 1){
175
-              var stockCount = response.data.data.stockCount
176
-              console.log("stockCount",stockCount)
182
+              var stockCount = response.data.data.stockCount;
183
+              console.log("stockCount",stockCount);
177 184
               this.stockCount = stockCount
178 185
            }
179 186
         })
180 187
       },
181
-      
188
+
182 189
        getSpecificationName: function(id) {
183
-        let name = ''
190
+        let name = '';
184 191
         for (let i = 0; i < this.goodInfo.length; i++) {
185 192
           if (this.goodInfo[i].id == id) {
186 193
             name = this.goodInfo[i].specification_name
@@ -189,7 +196,7 @@ export default {
189 196
         return name
190 197
       },
191 198
        getTypeName: function(id) {
192
-        let name = ''
199
+        let name = '';
193 200
         for (let i = 0; i < this.goodType.length; i++) {
194 201
           if (this.goodType[i].id == id) {
195 202
             name = this.goodType[i].type_name
@@ -198,7 +205,7 @@ export default {
198 205
         return name
199 206
       },
200 207
        getTypeNameOne: function(id) {
201
-        let name = ''
208
+        let name = '';
202 209
         for (let i = 0; i < this.goodInfo.length; i++) {
203 210
           if (this.goodInfo[i].id == id) {
204 211
             name = this.goodInfo[i].good_name
@@ -207,7 +214,7 @@ export default {
207 214
         return name
208 215
       },
209 216
       getOutStockCount(id){
210
-         var count = 0 
217
+         var count = 0;
211 218
          for(let i=0;i<this.stockCount.length;i++){
212 219
             if(id == this.stockCount[i].good_id){
213 220
               count = this.stockCount[i].count
@@ -216,7 +223,7 @@ export default {
216 223
          return count
217 224
       },
218 225
        getList() {
219
-        this.goodInfo.loading = true
226
+        this.goodInfo.loading = true;
220 227
         let params = {
221 228
           page: this.page,
222 229
           limit: this.limit,
@@ -224,13 +231,13 @@ export default {
224 231
           is_use:this.is_use,
225 232
           good_kind:this.good_kind,
226 233
           is_charge: this.is_charge,
227
-        }
234
+        };
228 235
         getGoodInfoList(params).then(response => {
229 236
           if (response.data.state == 0) {
230
-            this.$message.error(response.data.msg)
237
+            this.$message.error(response.data.msg);
231 238
             return false
232 239
           } else {
233
-            this.list = []
240
+            this.list = [];
234 241
             for (let i = 0; i < response.data.data.list.length; i++) {
235 242
               this.list.push(response.data.data.list[i])
236 243
             }
@@ -239,7 +246,7 @@ export default {
239 246
         })
240 247
       },
241 248
       getUnit(id){
242
-        var name = ""
249
+        var name = "";
243 250
         for(let i=0;i<this.list.length;i++){
244 251
           if(id == this.list[i].id){
245 252
              name = this.list[i].good_unit
@@ -258,7 +265,7 @@ export default {
258 265
       },
259 266
 
260 267
       getWarehouseOutInfoCount(warehouse_out_id,good_id){
261
-        var count = 0 
268
+        var count = 0;
262 269
          for(let i=0;i<this.wareoutList.length;i++){
263 270
             if(warehouse_out_id == this.wareoutList[i].warehouse_out_id && good_id == this.wareoutList[i].good_id){
264 271
                 count = this.wareoutList[i].count
@@ -266,16 +273,16 @@ export default {
266 273
          }
267 274
         return count
268 275
       }
269
-      
276
+
270 277
     },
271 278
     created(){
272 279
       this.orgName = this.$store.getters.xt_user.org.org_name;
273 280
       this.orgId = this.$store.getters.xt_user.org.id;
274 281
       const order_id = this.$route.query.id;
275
-      const warehouse_out_time = this.$route.query.warehouse_out_time
276
-      this.GetConfigInfo()
277
-      this.GetOrderDetail(order_id)
278
-      this.GetTotalCount(warehouse_out_time)
282
+      const warehouse_out_time = this.$route.query.warehouse_out_time;
283
+      this.GetConfigInfo();
284
+      this.GetOrderDetail(order_id);
285
+      this.GetTotalCount(warehouse_out_time);
279 286
       this.getList()
280 287
     }
281 288
 }
@@ -304,7 +311,7 @@ export default {
304 311
       border: 1px solid;
305 312
       border-collapse: collapse;
306 313
       padding: 2px;
307
-      
314
+
308 315
 
309 316
       thead {
310 317
         tr {