Pārlūkot izejas kodu

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

csx 2 gadus atpakaļ
vecāks
revīzija
22f90fb2d9

+ 125 - 16
src/xt_pages/Pharmacy/DrugDispensing.vue Parādīt failu

@@ -177,7 +177,8 @@
177 177
             ref="table_01"
178 178
             :height="tableHeight"
179 179
             :data="tableData"
180
-            
180
+            :summary-method="getSummaries_t1"
181
+            show-summary
181 182
             border
182 183
             highlight-current-row
183 184
             style="width: 100%"
@@ -275,7 +276,8 @@
275 276
             ref="table_01"
276 277
             :height="tableHeight"
277 278
             :data="tableData"
278
-           
279
+            :summary-method="getSummaries_t2"
280
+            show-summary
279 281
             border
280 282
             highlight-current-row
281 283
             style="width: 100%"
@@ -377,10 +379,11 @@
377 379
             </el-table-column>
378 380
           </el-table>
379 381
         </div>
382
+
380 383
         <!-- <div style="background-color: #f5f7fa;display:flex;padding: 10px;justify-content:space-around;position:absolute;width:75.6%;margin-top: 27.5%;
381 384
 "><div style="width: 40%;padding-left:3%">合计 </div> <div style="width: 40%;display: flex;justify-content:center;padding-left: 37%">{{total}}</div></div> -->
382
-        <div style="margin-top: 25px" v-if="state == 1">
383
-          领药人:
385
+        <div style="margin-top: 25px; display: flex" v-if="state == 1">
386
+          <span style="line-height: 36px;">领药人:</span> 
384 387
           <el-select v-model="admin_user_id" placeholder="请选择">
385 388
             <el-option
386 389
               v-for="item in doctorList"
@@ -390,6 +393,11 @@
390 393
             >
391 394
             </el-option>
392 395
           </el-select>
396
+
397
+          <span
398
+            style="display: inline-block;padding-left: 30px;line-height: 36px;}"
399
+            >选中: {{ select_total }}</span
400
+          >
393 401
         </div>
394 402
       </div>
395 403
 
@@ -493,6 +501,7 @@ export default {
493 501
       routeofadministration: [],
494 502
       deliveryway: "全部", //给药途径
495 503
       total: "", //合计
504
+      select_total: "",
496 505
     };
497 506
   },
498 507
 
@@ -524,16 +533,51 @@ export default {
524 533
         }
525 534
       });
526 535
     },
536
+
537
+    // 单位去重
538
+    unique_unit(arr) {
539
+      return arr.filter(function (item, index, arr) {
540
+        //当前元素,在原始数组中的第一个索引==当前索引值,否则返回当前元素
541
+        return arr.indexOf(item, 0) === index;
542
+      });
543
+    },
544
+
527 545
     getSummaries_t1(param) {
528 546
       const { columns, data } = param;
529 547
       const sums = [];
548
+      let dose_unit = [];
549
+      let unit_1 = [];
550
+      let unit_2 = [];
530 551
       columns.forEach((column, index) => {
531 552
         if (index === 0) {
532 553
           sums[index] = "合计";
533 554
           return;
534 555
         }
535 556
         if (index === 7) {
536
-          sums[index] = this.total;
557
+          // 单位裁切
558
+          data.forEach((el, index) => {
559
+            dose_unit.push(el.total.substr(el.total.length - 1, 1));
560
+          });
561
+          dose_unit = this.unique_unit(dose_unit);
562
+          // 数据合计
563
+          data.forEach((el, index) => {
564
+            if (el.total.substr(el.total.length - 1, 1) === dose_unit[0]) {
565
+              unit_1.push(el.total.substr(0, el.total.length - 1));
566
+            }
567
+            if (el.total.substr(el.total.length - 1, 1) === dose_unit[1]) {
568
+              unit_2.push(el.total.substr(0, el.total.length - 1));
569
+            }
570
+          });
571
+          unit_1 = eval(unit_1.join("+"));
572
+          unit_2 = eval(unit_2.join("+"));
573
+
574
+          if (dose_unit[0] == undefined) {
575
+            sums[index] = "";
576
+          } else if (dose_unit[1] == undefined || unit_2 == undefined) {
577
+            sums[index] = `${unit_1}${dose_unit[0]}`;
578
+          } else {
579
+            sums[index] = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
580
+          }
537 581
           return;
538 582
         }
539 583
       });
@@ -544,13 +588,40 @@ export default {
544 588
     getSummaries_t2(param) {
545 589
       const { columns, data } = param;
546 590
       const sums = [];
591
+      let dose_unit = [];
592
+      let unit_1 = [];
593
+      let unit_2 = [];
547 594
       columns.forEach((column, index) => {
548 595
         if (index === 0) {
549 596
           sums[index] = "合计";
550 597
           return;
551 598
         }
552 599
         if (index === 6) {
553
-          sums[index] = this.total;
600
+          // 单位裁切
601
+          data.forEach((el, index) => {
602
+            dose_unit.push(el.total.substr(el.total.length - 1, 1));
603
+          });
604
+          dose_unit = this.unique_unit(dose_unit);
605
+          // 数据合计
606
+          data.forEach((el, index) => {
607
+            if (el.total.substr(el.total.length - 1, 1) === dose_unit[0]) {
608
+              unit_1.push(el.total.substr(0, el.total.length - 1));
609
+            }
610
+            if (el.total.substr(el.total.length - 1, 1) === dose_unit[1]) {
611
+              unit_2.push(el.total.substr(0, el.total.length - 1));
612
+            }
613
+          });
614
+          unit_1 = eval(unit_1.join("+"));
615
+          unit_2 = eval(unit_2.join("+"));
616
+
617
+          // sums[index] = unit_1+dose_unit[0]+ "+" +unit_2+dose_unit[1];
618
+          if (dose_unit[0] == undefined) {
619
+            sums[index] = "";
620
+          } else if (dose_unit[1] == undefined || unit_2 == undefined) {
621
+            sums[index] = `${unit_1}${dose_unit[0]}`;
622
+          } else {
623
+            sums[index] = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
624
+          }
554 625
           return;
555 626
         }
556 627
       });
@@ -765,9 +836,47 @@ export default {
765 836
     formatJson(filterVal, jsonData) {
766 837
       return jsonData.map((v) => filterVal.map((j) => v[j]));
767 838
     },
768
-    //列表选择
839
+    //列表选择与合计
769 840
     handleSelectionChange(val) {
770 841
       this.multipleSelection = val;
842
+
843
+      let coculate = val;
844
+      let sums = "";
845
+      let dose_unit = [];
846
+      let unit_1 = [];
847
+      let unit_2 = [];
848
+
849
+      coculate.forEach((el, index) => {
850
+        dose_unit.push(el.total.substr(el.total.length - 1, 1));
851
+      });
852
+      dose_unit = this.unique_unit(dose_unit);
853
+
854
+      // 数据合计
855
+      coculate.forEach((el, index) => {
856
+        if (el.total.substr(el.total.length - 1, 1) === dose_unit[0]) {
857
+          unit_1.push(el.total.substr(0, el.total.length - 1));
858
+        }
859
+      });
860
+
861
+      coculate.forEach((el, index) => {
862
+        if (el.total.substr(el.total.length - 1, 1) === dose_unit[1]) {
863
+          console.log(el, "oooel");
864
+          unit_2.push(el.total.substr(0, el.total.length - 1));
865
+        }
866
+      });
867
+
868
+      unit_1 = eval(unit_1.join("+"));
869
+      unit_2 = eval(unit_2.join("+"));
870
+
871
+      if (dose_unit[0] == undefined) {
872
+        sums = "";
873
+      } else if (dose_unit[1] == undefined) {
874
+        sums = `${unit_1}${dose_unit[0]}`;
875
+      } else {
876
+        sums = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
877
+      }
878
+      // sums = `${unit_1}${dose_unit[0]}+${unit_2}${dose_unit[1]}`;
879
+      this.select_total = sums;
771 880
     },
772 881
     //默认选中
773 882
     selectedbydefault() {
@@ -1033,15 +1142,15 @@ export default {
1033 1142
     this.getrouteofadministration();
1034 1143
     this.getgetpartitionlist();
1035 1144
   },
1036
-  // updated() {
1037
-  //   this.$nextTick(() => {
1038
-  //     if (this.$refs["table_01"]) {
1039
-  //       this.$refs["table_01"].doLayout();
1040
-  //     } else if (this.$refs["table_02"]) {
1041
-  //       this.$refs["table_02"].doLayout();
1042
-  //     }
1043
-  //   });
1044
-  // },
1145
+  updated() {
1146
+    this.$nextTick(() => {
1147
+      if (this.$refs["table_01"]) {
1148
+        this.$refs["table_01"].doLayout();
1149
+      } else if (this.$refs["table_02"]) {
1150
+        this.$refs["table_02"].doLayout();
1151
+      }
1152
+    });
1153
+  },
1045 1154
 };
1046 1155
 </script>
1047 1156
 

+ 1 - 1
src/xt_pages/data/druguseTemplate.vue Parādīt failu

@@ -889,7 +889,7 @@
889 889
                             v-for="item in unitsOption"
890 890
                             :key="item.id"
891 891
                             :label="item.name "
892
-                            :value="item.id"
892
+                            :value="item.name"
893 893
                           ></el-option>
894 894
                         </el-select>
895 895
                       </el-col>

+ 33 - 97
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Parādīt failu

@@ -1207,8 +1207,7 @@
1207 1207
                           <td width="60" v-if="org_id == 9836">体温(°C)</td>
1208 1208
                           <td
1209 1209
                             width="50"
1210
-                            v-if="
1211
-                              org_id != 10121 && org_id != 9675 && org_id != 0
1210
+                            v-if=" org_id != 9538 && org_id != 10121 && org_id != 9675 && org_id != 0
1212 1211
                             "
1213 1212
                           >
1214 1213
                             电导度<br />(ms/cm)
@@ -1232,141 +1231,79 @@
1232 1231
                           >
1233 1232
                             置换量<br />(ml)
1234 1233
                           </td>
1234
+
1235 1235
                           <td
1236 1236
                             width="50"
1237
-                            v-if="
1238
-                              org_id == 9919 || org_id == 9538 || org_id == 9675
1239
-                            "
1237
+                            v-if="org_id == 9919 || org_id == 9538 || org_id == 9675 || org_id == 9671 "
1240 1238
                           >
1241 1239
                             KT/V
1242 1240
                           </td>
1243 1241
                           <td
1244 1242
                             width="50"
1245
-                            v-if="org_id == 9538 || org_id == 9675"
1243
+                            v-if="org_id == 9538 || org_id == 9675 || org_id == 9671"
1246 1244
                           >
1247 1245
                             血容量<br />(L)
1248 1246
                           </td>
1247
+
1249 1248
                           <td width="200">病情变化及处理</td>
1250 1249
                         </tr>
1250
+
1251 1251
                         <tr
1252 1252
                           v-for="(monitor_record, j) in record.monitor_records"
1253 1253
                           :key="j"
1254 1254
                         >
1255 1255
                           <td>
1256
-                            {{
1257
-                              getTime(monitor_record.operate_time, "{h}:{i}")
1258
-                            }}
1256
+                            {{getTime(monitor_record.operate_time, "{h}:{i}")}}
1259 1257
                           </td>
1260 1258
                           <td>
1261
-                            {{
1262
-                              monitor_record.systolic_blood_pressure
1263
-                                ? monitor_record.systolic_blood_pressure + "/"
1264
-                                : ""
1265
-                            }}{{
1266
-                              monitor_record.diastolic_blood_pressure
1267
-                                ? monitor_record.diastolic_blood_pressure
1268
-                                : ""
1269
-                            }}
1259
+                            {{ monitor_record.systolic_blood_pressure? monitor_record.systolic_blood_pressure + "/": ""}}
1260
+                            {{ monitor_record.diastolic_blood_pressure? monitor_record.diastolic_blood_pressure: ""}}
1270 1261
                           </td>
1271 1262
                           <td>
1272
-                            {{
1273
-                              monitor_record.pulse_frequency
1274
-                                ? monitor_record.pulse_frequency
1275
-                                : ""
1276
-                            }}
1263
+                            {{monitor_record.pulse_frequency? monitor_record.pulse_frequency: ""}}
1277 1264
                           </td>
1278 1265
                           <td>
1279
-                            {{
1280
-                              monitor_record.breathing_rate
1281
-                                ? monitor_record.breathing_rate
1282
-                                : ""
1283
-                            }}
1266
+                            {{ monitor_record.breathing_rate ? monitor_record.breathing_rate: ""}}
1284 1267
                           </td>
1285 1268
                           <td>
1286
-                            {{
1287
-                              monitor_record.blood_flow_volume
1288
-                                ? monitor_record.blood_flow_volume
1289
-                                : ""
1290
-                            }}
1269
+                            {{monitor_record.blood_flow_volume? monitor_record.blood_flow_volume: ""}}
1291 1270
                           </td>
1292 1271
                           <td>
1293
-                            {{
1294
-                              monitor_record.venous_pressure
1295
-                                ? monitor_record.venous_pressure
1296
-                                : ""
1297
-                            }}
1272
+                            {{monitor_record.venous_pressure? monitor_record.venous_pressure: ""}}
1298 1273
                           </td>
1299 1274
                           <td>
1300
-                            {{
1301
-                              monitor_record.transmembrane_pressure
1302
-                                ? monitor_record.transmembrane_pressure
1303
-                                : ""
1304
-                            }}
1275
+                             {{monitor_record.transmembrane_pressure ? monitor_record.transmembrane_pressure: ""}}
1305 1276
                           </td>
1306 1277
                           <td v-if="org_id != 9836">
1307
-                            {{
1308
-                              monitor_record.dialysate_temperature
1309
-                                ? monitor_record.dialysate_temperature
1310
-                                : ""
1311
-                            }}
1278
+                            {{ monitor_record.dialysate_temperature? monitor_record.dialysate_temperature: ""}}
1312 1279
                           </td>
1313 1280
                           <td v-if="org_id == 9836">
1314
-                            {{
1315
-                              monitor_record.temperature
1316
-                                ? monitor_record.temperature
1317
-                                : ""
1318
-                            }}
1281
+                            {{monitor_record.temperature? monitor_record.temperature: ""}}
1319 1282
                           </td>
1320
-                          <td
1321
-                            v-if="
1322
-                              org_id != 10121 && org_id != 9675 && org_id != 0
1323
-                            "
1324
-                          >
1325
-                            {{
1326
-                              monitor_record.conductivity
1327
-                                ? monitor_record.conductivity
1328
-                                : ""
1329
-                            }}
1330
-                          </td>
1331
-                          <td
1332
-                            v-if="
1333
-                              org_id == 10121 || org_id == 9675 || org_id == 0
1334
-                            "
1335
-                          >
1336
-                            {{
1337
-                              monitor_record.blood_oxygen_saturation
1338
-                                ? monitor_record.blood_oxygen_saturation
1339
-                                : ""
1340
-                            }}
1341
-                          </td>
1342
-                          <td
1343
-                            v-if="
1344
-                              org_id != 9538 &&
1345
-                              org_id != 10121 &&
1346
-                              org_id != 9675 &&
1347
-                              org_id != 0
1348
-                            "
1349
-                          >
1283
+
1284
+                          <!-- <td v-if="org_id != 10121 && org_id != 9675 && org_id != 0">
1285
+                            {{monitor_record.conductivity? monitor_record.conductivity : ""}}
1286
+                          </td> -->
1287
+                         <td v-if=" org_id != 9538 &&org_id != 10121 && org_id != 9675 &&org_id != 0">
1350 1288
                             {{
1351 1289
                               monitor_record.conductivity ? monitor_record.conductivity : ""
1352 1290
                             }}
1353 1291
                           </td>
1354 1292
 
1293
+                          <td v-if="org_id == 10121 || org_id == 9675 || org_id == 0">
1294
+                            {{monitor_record.blood_oxygen_saturation? monitor_record.blood_oxygen_saturation: ""}}
1295
+                          </td>
1296
+
1297
+                        
1298
+
1355 1299
                           <td v-if="org_id == 9538">
1356
-                            {{
1357
-                              monitor_record.sodium_concentration
1358
-                                ? monitor_record.sodium_concentration
1359
-                                : ""
1360
-                            }}
1300
+                            {{ monitor_record.sodium_concentration? monitor_record.sodium_concentration: ""}}
1361 1301
                           </td>
1362 1302
 
1363 1303
                           <td>
1364
-                            <span v-if="monitor_record.operate_time">{{
1365
-                              monitor_record.ultrafiltration_volume
1366
-                                ? monitor_record.ultrafiltration_volume
1367
-                                : ""
1368
-                            }}</span>
1304
+                            <span>{{monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: ""}}</span>
1369 1305
                           </td>
1306
+
1370 1307
                           <td
1371 1308
                             v-if="
1372 1309
                               record.prescription.mode_id == 2 ||
@@ -1383,18 +1320,17 @@
1383 1320
                           </td>
1384 1321
                           <td
1385 1322
                             width="50"
1386
-                            v-if="
1387
-                              org_id == 9919 || org_id == 9538 || org_id == 9675
1388
-                            "
1323
+                            v-if="org_id == 9919 || org_id == 9538 || org_id == 9675  || org_id == 9671"
1389 1324
                           >
1390 1325
                             {{ monitor_record.ktv }}
1391 1326
                           </td>
1392 1327
                           <td
1393 1328
                             width="50"
1394
-                            v-if="org_id == 9538 || org_id == 9675"
1329
+                            v-if="org_id == 9538 || org_id == 9675 || org_id == 9671"
1395 1330
                           >
1396 1331
                             {{ monitor_record.accumulated_blood_volume }}
1397 1332
                           </td>
1333
+
1398 1334
                           <td style="line-height: 16px; padding: 0px">
1399 1335
                             <div
1400 1336
                               style="

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

@@ -333,7 +333,10 @@
333 333
                 
334 334
                 </div>
335 335
                 <div class="printCell" style="display:flex;justify-content: space-around;">
336
-                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}L</span>
336
+                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
337
+                    <span v-if="this.$store.getters.xt_user.org.id == 10278">ml</span> 
338
+                    <span v-else>L</span>
339
+                  </span>
337 340
                   <span style="display: block;width: 50%;">
338 341
                     总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
339 342
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">

+ 10 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue Parādīt failu

@@ -180,19 +180,19 @@
180 180
                 showValue="低分子肝素钠:"
181 181
               ></label-box>
182 182
 
183
-              &nbsp;&nbsp;{{
183
+              &nbsp;&nbsp;<span v-if="org_id!=10090">{{
184 184
                 prescription.anticoagulant_zongliang &&
185 185
                 (prescription.anticoagulant == 3 ||
186 186
                   prescription.anticoagulant == 6 ||
187 187
                   prescription.anticoagulant == 7)
188 188
                   ? prescription.anticoagulant_zongliang
189 189
                   : ""
190
-              }}U;&nbsp;&nbsp;
190
+              }}U;</span>&nbsp;&nbsp;
191 191
               <label-box
192 192
                 :isChecked="prescription.anticoagulant == 2 ? true : false"
193 193
                 showValue="普通肝素:"
194 194
               ></label-box
195
-              >首剂 &nbsp;&nbsp;<span
195
+              ><span v-if="org_id!=10090">首剂 &nbsp;&nbsp;<span
196 196
                 ><span style="width: 35px; display: inline-block">
197 197
                   {{
198 198
                     prescription.anticoagulant_shouji &&
@@ -203,19 +203,24 @@
203 203
                   }}
204 204
                 </span></span
205 205
               >
206
-              mg&nbsp;&nbsp;&nbsp; 追加&nbsp;&nbsp;<span>{{
206
+              mg&nbsp;&nbsp;&nbsp; </span> 
207
+              <span v-if="org_id!=10090"> 追加&nbsp;&nbsp;<span>{{
207 208
                 prescription.anticoagulant_weichi &&
208 209
                 prescription.anticoagulant == 2
209 210
                   ? prescription.anticoagulant_weichi
210 211
                   : ""
211 212
               }}</span
212
-              >&nbsp;&nbsp;mg/h&nbsp; 总量&nbsp;&nbsp;<span>{{
213
+              >&nbsp;&nbsp;mg/h&nbsp; </span>
214
+              <span v-if="org_id!=10090">
215
+                总量&nbsp;&nbsp;<span>{{
213 216
                 prescription.anticoagulant_zongliang &&
214 217
                 prescription.anticoagulant == 2
215 218
                   ? prescription.anticoagulant_zongliang
216 219
                   : ""
217 220
               }}</span
218 221
               >&nbsp;&nbsp;mg;
222
+              </span>
223
+             
219 224
               <label-box
220 225
                 :isChecked="prescription.anticoagulant == 1 ? true : false"
221 226
                 showValue="无肝素"

+ 20 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue Parādīt failu

@@ -1731,21 +1731,15 @@
1731 1731
                   >
1732 1732
                     <span v-if="advice.parent_id > 0">---></span>
1733 1733
                     <span>{{ advice.advice_name }}</span>
1734
+                    <span v-if="advice.project && advice.project.project_name">{{ advice.project.project_name }}</span>
1734 1735
                     <span v-if="advice && advice.advice_desc"
1735 1736
                       >({{ advice.advice_desc
1736 1737
                       }}{{ advice.drug_spec_unit }})</span
1737 1738
                     >
1738
-                    <span v-if="advice.prescribing_number"
1739
-                      >&nbsp;&nbsp; {{ advice.prescribing_number
1740
-                      }}{{ advice.prescribing_number_unit }}</span
1741
-                    >
1742
-                    <span v-if="advice.single_dose != 0"
1743
-                      >{{ advice.single_dose
1744
-                      }}{{ advice.single_dose_unit }}</span
1745
-                    >
1746
-                    <span v-if="advice.parent_id == 0">{{
1747
-                      advice.delivery_way
1748
-                    }}</span>
1739
+                    <span v-if="advice.prescribing_number" >&nbsp;&nbsp; {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}</span>
1740
+                    <span v-if="advice.single_dose != 0" >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
1741
+                     <span v-if="advice.project && advice.project.unit">{{ advice.project.unit }}</span>
1742
+                    <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
1749 1743
                     <span v-if="advice.parent_id == 0">{{
1750 1744
                       advice.execution_frequency
1751 1745
                     }}</span>
@@ -1771,6 +1765,16 @@
1771 1765
                       srcset=""
1772 1766
                       v-else
1773 1767
                     />
1768
+                    <span v-if="setAdminUserES(advice.doctor) == ''">{{
1769
+                      getAdminUser(advice.doctor)
1770
+                    }}</span>
1771
+                    <img
1772
+                      style="height: 30px"
1773
+                      :src="setAdminUserES(advice.doctor)"
1774
+                      alt=""
1775
+                      srcset=""
1776
+                      v-else
1777
+                    />
1774 1778
                   </td>
1775 1779
                   <!-- <td height="35px">
1776 1780
                   <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
@@ -3099,6 +3103,7 @@ export default {
3099 3103
         this.prescription = response.data.data.dialysisPrescription;
3100 3104
         console.log("透析处方", this.prescription);
3101 3105
         let project_arr = response.data.data.projects
3106
+        console.log("project_Arr2332323232",project_arr)
3102 3107
         project_arr.forEach(o => {
3103 3108
           if(o.project.project_name && o.project.project_name!=""){
3104 3109
             this.project.push(o)
@@ -3251,8 +3256,7 @@ export default {
3251 3256
           this.advices.push(item);
3252 3257
         }
3253 3258
         this.loading = false;
3254
-        this.doctor_advices =
3255
-          response.data.data.advices == null ? [] : response.data.data.advices.concat(this.project);
3259
+        this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices.concat(this.project);
3256 3260
           // .concat(this.project)
3257 3261
           console.log( this.doctor_advices,' this.doctor_advices this.doctor_advices')
3258 3262
         for (let index = 0; index < this.doctor_advices.length; index++) {
@@ -3337,6 +3341,7 @@ export default {
3337 3341
         //    this.advice_groups.push(group)
3338 3342
         //   }
3339 3343
         // }
3344
+        console.log("dotoreadvcie233232323223",this.doctor_advices)
3340 3345
         if (this.doctor_advices.length <= 6) {
3341 3346
           var nl = 6;
3342 3347
           this.print_length = 6;
@@ -3354,6 +3359,7 @@ export default {
3354 3359
         }
3355 3360
 
3356 3361
         this.totollength = this.doctor_advices.length + this.monitors.length;
3362
+        console.log(" this.totollength", this.totollength)
3357 3363
         if (this.totollength > 18) {
3358 3364
           var temp_advice_length = 17 - this.monitors.length;
3359 3365
           var doctor_advices_1 = [];
@@ -3370,6 +3376,7 @@ export default {
3370 3376
           this.doctor_advices_2 = doctor_advices_2;
3371 3377
         }
3372 3378
         console.log(this.doctor_advices,'doctor_advices');
3379
+        console.log(" this.doctor_advices_2",this.doctor_advices_2)
3373 3380
       } else {
3374 3381
         this.loading = false;
3375 3382
         this.$message.error("请求数据失败");

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Parādīt failu

@@ -1188,8 +1188,8 @@
1188 1188
                         </td>
1189 1189
                       </tr>
1190 1190
                       <tr>
1191
-                        <td width="60">时间</td>
1192
-                        <td width="60">血压<br />(mmHg)</td>
1191
+                        <td width="50">时间</td>
1192
+                        <td width="65">血压<br />(mmHg)</td>
1193 1193
                         <td width="50">脉搏<br />(次/分)</td>
1194 1194
                         <td width="50">呼吸<br />(次/分)</td>
1195 1195
                         <td width="50">血流量<br />(ml/min)</td>

+ 4 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Parādīt failu

@@ -437,7 +437,10 @@
437 437
                 
438 438
                 </div>
439 439
                 <div class="printCell" style="display:flex;justify-content: space-around;">
440
-                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}L</span>
440
+                  <span style="display: block;width: 50%;">处方脱水量:
441
+                    <span v-if="this.$store.getters.xt_user.org.id == 10278">ml</span> 
442
+                    <span v-else>L</span>
443
+                    </span>
441 444
                   <span style="display: block;width: 50%;">
442 445
                     总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
443 446
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">

+ 1 - 1
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue Parādīt failu

@@ -563,7 +563,7 @@ export default {
563 563
        console.log("hhh2323323232",this.DialysisData)
564 564
        import('@/vendor/Export2Excel').then(excel => {
565 565
         const tHeader = ['序号','姓名', '年龄', '透析号','HD','HDF','HD+HP','HP','HF','SCUF','IUF','HFHD','HFHD+HP','HFR','HDF+HP','CRRT','腹水回输','IUF+HD','UF','HD+','I-HDF','HD高通','CVVH','CVVHD','CVVHDF','PE','血浆胆红素吸附+HP','HPD','HDP','总数']
566
-        const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','IUF+HD','UF','HD+','I-HDF','HD高通','CVVH','CVVHD','CVVHDF','PE','XUEHP','HPD','HDP','total_count']
566
+        const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','IUF+HD','UF','HD+','I-HDF','HDGT','CVVH','CVVHD','CVVHDF','PE','XUEHP','HPD','HDP','total_count']
567 567
 
568 568
         const data = this.formatJson(filterVal, this.DialysisData)
569 569
 

+ 25 - 19
src/xt_pages/stock/drugs/query.vue Parādīt failu

@@ -708,9 +708,8 @@ export default {
708 708
           this.tableList[i].min_unit,
709 709
           this.tableList[i].min_number
710 710
         );
711
-        if (this.end_time == 0) {
712 711
           this.tableList[i].outCount = this.getWarehouseOutInfo(
713
-            this.tableList[i].drug_warehouse_out,
712
+            this.tableList[i].drug_warehouse_info,
714 713
             this.tableList[i].max_unit,
715 714
             this.tableList[i].min_unit,
716 715
             this.tableList[i].min_number
@@ -721,16 +720,16 @@ export default {
721 720
             this.tableList[i].min_unit,
722 721
             this.tableList[i].min_number
723 722
           );
724
-        }
725
-        if (this.end_time != 0) {
726
-          this.tableList[i].outCount =
727
-            this.getOutCount(this.tableList[i].id) +
728
-            this.getAutoCount(this.tableList[i].id);
729
-          this.tableList[i].overplusCount =
730
-            this.getWarehoseInfo(this.tableList[i].drug_warehouse_info) -
731
-            this.getOutCount(this.tableList[i].id) -
732
-            this.getAutoCount(this.tableList[i].id);
733
-        }
723
+      
724
+        // if (this.end_time != 0) {
725
+        //   this.tableList[i].outCount =
726
+        //     this.getOutCount(this.tableList[i].id) +
727
+        //     this.getAutoCount(this.tableList[i].id);
728
+        //   this.tableList[i].overplusCount =
729
+        //     this.getWarehoseInfo(this.tableList[i].drug_warehouse_info) -
730
+        //     this.getOutCount(this.tableList[i].id) -
731
+        //     this.getAutoCount(this.tableList[i].id);
732
+        // }
734 733
       }
735 734
       import("@/vendor/Export2Excel").then((excel) => {
736 735
         const tHeader = [
@@ -1087,10 +1086,9 @@ export default {
1087 1086
       var max_str = "";
1088 1087
       var min_str = "";
1089 1088
       var total = 0;
1090
-      var newarr = arr;
1091
-      if (newarr.length > 0) {
1092
-        for (let i = 0; i < newarr.length; i++) {
1093
-          total += newarr[i].stock_max_number + newarr[i].stock_min_number;
1089
+      if (arr!=null&&arr.length > 0) {
1090
+        for (let i = 0; i < arr.length; i++) {
1091
+          total += arr[i].stock_max_number + arr[i].stock_min_number;
1094 1092
         }
1095 1093
       }
1096 1094
       if (total < min_number) {
@@ -1113,13 +1111,21 @@ export default {
1113 1111
     getWarehouseOutInfo(arr, max_unit, min_unit, min_number) {
1114 1112
       var min_str = "";
1115 1113
       var max_str = "";
1116
-      var total = 0;
1117
-      if (arr.length > 0) {
1114
+      var total_one = 0;
1115
+      var total_two = 0
1116
+      var total =0 
1117
+      if (arr!=null&&arr.length > 0) {
1118
+        for (let i = 0; i < arr.length; i++) {
1119
+          total_one += parseInt(arr[i].warehousing_count);
1120
+        }
1121
+      }
1122
+      if (arr!=null&&arr.length > 0) {
1118 1123
         for (let i = 0; i < arr.length; i++) {
1119
-          total += parseInt(arr[i].count);
1124
+          total_two += parseInt(arr[i].stock_max_number)+ parseInt(arr[i].stock_min_number);
1120 1125
         }
1121 1126
       }
1122 1127
 
1128
+      total = total_one - total_two
1123 1129
       if (total < min_number) {
1124 1130
         min_str = total + min_unit;
1125 1131
       }

+ 1 - 1
src/xt_pages/user/components/PatientDetail.vue Parādīt failu

@@ -1000,7 +1000,7 @@
1000 1000
               <div class="proj">
1001 1001
                 <span class="proj_title">日期:</span>
1002 1002
                 <!-- {{ getTime(patientPrint.created_time) }} -->
1003
-                <span v-if="org_id == 3907 || org_id == 9671|| org_id == 10138|| org_id == 9675">{{
1003
+                <span v-if="org_id == 3907 || org_id == 9671|| org_id == 10138|| org_id == 9675 || org_id == 10394">{{
1004 1004
                   getTime(patientPrint.created_time)
1005 1005
                 }}</span>
1006 1006
                 <span v-else>{{ printDate }}</span>