see999 3 лет назад
Родитель
Сommit
cb02faa552

+ 22 - 22
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue Просмотреть файл

@@ -77,7 +77,7 @@
77 77
           <tbody>
78 78
             <tr>
79 79
               <td colspan="1" style="width:50%;padding:0px 0px 5px">
80
-                <div style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;border-bottom:1px solid #000;">
80
+                <div style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;border-bottom:1px solid #000;">
81 81
                   透析前评估
82 82
                 </div>
83 83
                 <div class="row" style="padding:5px 8px;">
@@ -297,7 +297,7 @@
297 297
               </td>
298 298
             </tr>
299 299
             <tr>
300
-              <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
300
+              <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
301 301
                 透析处方
302 302
               </td>
303 303
             </tr>
@@ -504,7 +504,7 @@
504 504
                 <table class="inside_table">
505 505
                   <tbody>
506 506
                     <tr style="line-height:35px;padding:8px 5px;">
507
-                      <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
507
+                      <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
508 508
                         医嘱内容
509 509
                       </td>
510 510
                     </tr>
@@ -512,7 +512,7 @@
512 512
                   <td colspan="4" style="font-size: 16px">开医嘱</td>
513 513
                   <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
514 514
                 </tr> -->
515
-                    <tr style="line-height:35px;padding:8px 5px;">
515
+                    <tr style="line-height:30px;padding:0 5px;">
516 516
                       <td style="font-size: 16px" width="10%">时间</td>
517 517
                       <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
518 518
                       <td style="font-size: 16px" width="10%">医生签名</td>
@@ -523,13 +523,13 @@
523 523
                     <!-- <template v-for="group in doctor_advices" > -->
524 524
 
525 525
                     <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
526
-                      <td height="32px">
526
+                      <td height="30px" style="padding:4px 5px;">
527 527
                         <span v-if="advice.start_time">
528 528
                           {{ getTime(advice.start_time, "{h}:{i}") }}
529 529
                         </span>
530 530
                         <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
531 531
                       </td>
532
-                      <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
532
+                      <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
533 533
                         <span v-if="advice.parent_id > 0">---></span>
534 534
                         <span>{{ advice.advice_name }}</span>
535 535
                         <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
@@ -545,21 +545,21 @@
545 545
                     <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
546 546
                   </td> -->
547 547
                       <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
548
-                      <td height="32px">
548
+                      <td height="30px" style="padding:4px 5px;">
549 549
                         <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
550 550
                         <img style="height:30px" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else />
551 551
                       </td>
552 552
                       
553
-                      <td height="32px">
553
+                      <td height="30px" style="padding:4px 5px;">
554 554
                         <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
555 555
                       </td>
556
-                      <td height="32px">
556
+                      <td height="30px" style="padding:4px 5px;">
557 557
                         <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
558 558
                         <img style="height:30px" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
559 559
                       </td>
560
-                      <td height="35px">
560
+                      <td height="30px" style="padding:4px 5px;">
561 561
                         <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
562
-                        <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
562
+                        <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
563 563
                       </td>
564 564
                     </tr>
565 565
                     <!-- </template> -->
@@ -573,7 +573,7 @@
573 573
                 <table class="inside_table">
574 574
                   <tbody>
575 575
                     <tr>
576
-                      <td colspan="9" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
576
+                      <td colspan="9" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
577 577
                         监测记录
578 578
                       </td>
579 579
                     </tr>
@@ -590,17 +590,17 @@
590 590
                     </tr>
591 591
 
592 592
                     <tr v-for="(monitor, monindex) in monitors" :key="monindex">
593
-                      <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
594
-                      <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
595
-                      <td><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}/{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}</span></td>
596
-                      <td><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}/{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}</span></td>
597
-                      <td><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}/{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</span></td>
598
-                      <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
599
-                      <td>
593
+                      <td style="padding:1px 5px;" height="30px">{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
594
+                      <td style="padding:1px 5px;">{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
595
+                      <td style="padding:1px 5px;"><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}/{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}</span></td>
596
+                      <td style="padding:1px 5px;"><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}/{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}</span></td>
597
+                      <td style="padding:1px 5px;"><span v-if="getTime(monitor.operate_time, '{h}:{i}')">{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}/{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</span></td>
598
+                      <td style="padding:1px 5px;">{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
599
+                      <td style="padding:1px 5px;">
600 600
                         {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
601 601
                         {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
602 602
                       </td>
603
-                      <td>
603
+                      <td style="padding:1px 5px;" height="30px">
604 604
                         <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
605 605
                           {{ getAdminUser(monitor.monitoring_nurse) }}
606 606
                         </span>
@@ -609,7 +609,7 @@
609 609
                         </span>
610 610
                       </td>
611 611
                       <td style="line-height:16px;padding:0px;">
612
-                        <div style="min-height:35px;line-height:35px; overflow:hidden;">
612
+                        <div style="min-height:20px;line-height:20px; overflow:hidden;">
613 613
                           <span v-if="getTime(monitor.operate_time, '{h}:{i}')" style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
614 614
                             <template v-if="(dialysisOrder && monitor.operate_time == dialysisOrder.start_time)">【开始透析】引血100ml/min</template>
615 615
                             {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
@@ -627,7 +627,7 @@
627 627
               </td>
628 628
             </tr>
629 629
             <tr>
630
-              <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
630
+              <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
631 631
                 治疗小结
632 632
               </td>
633 633
             </tr>

+ 15 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Просмотреть файл

@@ -2520,6 +2520,21 @@
2520 2520
         this.$refs.additionalCharges.show()
2521 2521
       },
2522 2522
       selectDrugs(selection, row) {
2523
+        console.log('selection',selection)
2524
+        console.log('row',row)
2525
+        if(row.total <= 0){
2526
+          if (selection) {
2527
+            selection.forEach(row => {
2528
+              if(row.total <= 0){
2529
+                this.$refs.multipleTable.toggleRowSelection(row);
2530
+              }
2531
+            });
2532
+          } else {
2533
+            this.$refs.multipleTable.clearSelection();
2534
+          }
2535
+          this.$message.error(row.drug_name + '库存不足')
2536
+          return
2537
+        }
2523 2538
         this.curDrugs = selection
2524 2539
       },
2525 2540
 

+ 99 - 41
src/xt_pages/user/templateSummary.vue Просмотреть файл

@@ -50,34 +50,33 @@
50 50
             <el-col :span="14">
51 51
               <div class="record_content_panel">
52 52
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
53
-                <div>阶段小结时间:{{getTime(editObj.record_time)}}</div>  
54
-                <el-divider></el-divider>
55
-                <div>阶段小结概要:</div>  
56
-                <div>
57
-                  <span>干体重:{{editObj.drg_weight}}</span>
58
-                  <span>共透析:{{editObj.dialysis_count}}</span>
59
-                  <span>HD:{{editObj.hd_count}}</span>
53
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:{{getTime(editObj.record_time)}}</div>  
54
+                <!-- <el-divider></el-divider> -->
55
+                <div style="padding: 10px 10px 0;">阶段小结概要:</div>  
56
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
57
+                  <span style="margin-right:10px;line-height:20px;">干体重:{{editObj.drg_weight}}</span>
58
+                  <span style="margin-right:10px;line-height:20px;">共透析:{{editObj.dialysis_count}}</span>
59
+                  <span style="margin-right:10px;line-height:20px;">HD:{{editObj.hd_count}}</span>
60 60
                   <br>
61
-                  <span>HDF:{{editObj.hdf_count}}</span>
62
-                  <span>HP:{{editObj.hp_count}}</span>
63
-                  <span>其他:{{editObj.other_count}}</span>
61
+                  <span style="margin-right:10px;line-height:20px;">HDF:{{editObj.hdf_count}}</span>
62
+                  <span style="margin-right:10px;line-height:20px;">HP:{{editObj.hp_count}}</span>
63
+                  <span style="margin-right:10px;line-height:20px;">其他:{{editObj.other_count}}</span>
64 64
                    <br>
65
-                  <span>透析器:{{editObj.dialzer_apparatus}}</span>
66
-                  <span>抗凝剂:{{editObj.anticoagulant}}</span>
67
-                  <span>透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
65
+                  <span style="margin-right:10px;line-height:20px;">透析器:{{editObj.dialzer_apparatus}}</span>
66
+                  <span style="margin-right:10px;line-height:20px;">抗凝剂:{{editObj.anticoagulant}}</span>
67
+                  <span style="margin-right:10px;line-height:20px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
68 68
                   <br>
69
-                  <span>每次透析(小时):{{editObj.hour}}</span>
70
-                  <span>透前体重(kg):{{editObj.befor_weight}}</span>
71
-                  <span>透后体重(kg):{{editObj.after_weight}}</span>
69
+                  <span style="margin-right:10px;line-height:20px;">每次透析(小时):{{editObj.hour}}</span>
70
+                  <span style="margin-right:10px;line-height:20px;">透前体重(kg):{{editObj.befor_weight}}</span>
71
+                  <span style="margin-right:10px;line-height:20px;">透后体重(kg):{{editObj.after_weight}}</span>
72 72
                   <br>
73
-                  <span>透前血压(mmHg):{{editObj.befor_pressure}}</span>
74
-                  <span>透后血压(mmHg):{{editObj.after_pressure}}</span>
73
+                  <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
74
+                  <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
75 75
                 </div>
76
-                <el-divider></el-divider>
77
-                <div>阶段小结总结:{{editObj.template_inspection_content}}</div>  
78
-                <el-divider></el-divider>
79
-                <div>阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>  
80
-                <div></div>
76
+                <!-- <el-divider></el-divider> -->
77
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:{{editObj.template_inspection_content}}</div>  
78
+                <!-- <el-divider></el-divider> -->
79
+                <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
81 80
               </div>
82 81
             </el-col>
83 82
           </el-row>
@@ -269,7 +268,7 @@
269 268
                         :value="item.value">
270 269
                         </el-option>
271 270
                      </el-select>
272
-                     <el-input tyep="text" v-model="form.template_summary_content"></el-input>
271
+                     <el-input style="margin:10px 0;" type="text" v-model="form.template_summary_content"></el-input>
273 272
                   </el-row>
274 273
                   <el-row>
275 274
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
@@ -281,12 +280,22 @@
281 280
                         :value="item.value">
282 281
                         </el-option>
283 282
                      </el-select>
284
-                     <el-input tyep="text" v-model="form.template_plan_content"></el-input>
283
+                     <el-input style="margin:10px 0;" type="text" v-model="form.template_plan_content"></el-input>
285 284
                   </el-row>
286 285
                   <el-row>
287 286
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
288 287
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
289
-                     <el-input tyep="text" v-model="form.template_inspection_content"></el-input>
288
+                     <!-- <el-input style="margin:10px 0;" type="textarea" v-model="form.template_inspection_content"></el-input> -->
289
+                     <div class="borderBox">
290
+                       <div v-for="item in form.template_inspection_content">
291
+                        <p>{{ item.project_name }}</p>
292
+                        <div style="display:flex;flex-wrap: wrap;">
293
+                          <div v-for="it in item.arr" style="width:33%;">
294
+                            {{ it.item_name }} {{ it.inspect_value }}
295
+                          </div>
296
+                        </div>
297
+                      </div>
298
+                     </div>
290 299
                   </el-row>
291 300
                   <el-row>
292 301
                     <el-col :span="8">
@@ -509,7 +518,7 @@
509 518
                         :value="item.value">
510 519
                         </el-option>
511 520
                      </el-select>
512
-                     <el-input tyep="text" v-model="form.template_summary_content"></el-input>
521
+                     <el-input style="margin:10px 0;" type="text" v-model="form.template_summary_content"></el-input>
513 522
                   </el-row>
514 523
                   <el-row>
515 524
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
@@ -521,12 +530,22 @@
521 530
                         :value="item.value">
522 531
                         </el-option>
523 532
                      </el-select>
524
-                     <el-input tyep="text" v-model="form.template_plan_content"></el-input>
533
+                     <el-input style="margin:10px 0;" type="text" v-model="form.template_plan_content"></el-input>
525 534
                   </el-row>
526 535
                   <el-row>
527 536
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
528 537
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
529
-                     <el-input tyep="text" v-model="form.template_inspection_content"></el-input>
538
+                     <!-- <el-input style="margin:10px 0;" type="textarea" v-model="form.template_inspection_content"></el-input> -->
539
+                     <div class="borderBox">
540
+                       <div v-for="item in form.template_inspection_content">
541
+                        <p>{{ item.project_name }}</p>
542
+                        <div style="display:flex;flex-wrap: wrap;">
543
+                          <div v-for="it in item.arr" style="width:33%;">
544
+                            {{ it.item_name }} {{ it.inspect_value }}
545
+                          </div>
546
+                        </div>
547
+                      </div>
548
+                     </div>
530 549
                   </el-row>
531 550
                   <el-row>
532 551
                     <el-col :span="8">
@@ -1093,13 +1112,15 @@
1093 1112
         getInspectionItemList(params).then(response=>{
1094 1113
            if(response.data.state == 1){
1095 1114
              var list = response.data.data.list
1096
-             console.log("选择检验检查",list)
1097
-             var str = ""
1098
-             for(let i=0;i<list.length;i++){
1099
-               str += (list[i].item_name + ":" + list[i].inspect_value+"<br>")
1100
-             }
1115
+             
1116
+            //  var str = ""
1117
+            //  for(let i=0;i<list.length;i++){
1118
+            //    str += (list[i].item_name + ":" + list[i].inspect_value+"<br>")
1119
+            //  }
1120
+            let arr = this.unique(list,'project_name')
1121
+            console.log("选择检验检查",arr)
1101 1122
            
1102
-             this.form.template_inspection_content = str
1123
+            this.form.template_inspection_content = arr
1103 1124
             this.dialogVisibleInspection = false
1104 1125
             this.projectList = []
1105 1126
             this.inspectDataList = []
@@ -1212,7 +1233,7 @@
1212 1233
           return uParseTime(val, '{y}-{m}-{d}')
1213 1234
          }
1214 1235
       },
1215
-     showInnerDialog: function(val) {
1236
+      showInnerDialog: function(val) {
1216 1237
         this.InnerDialogProps.visibility = true
1217 1238
         switch (val) {
1218 1239
            case '7': // 透析器
@@ -1249,7 +1270,7 @@
1249 1270
           break
1250 1271
         }
1251 1272
       },
1252
-     innerDialogCancle: function() {
1273
+      innerDialogCancle: function() {
1253 1274
         this.InnerDialogProps.visibility = false
1254 1275
       },
1255 1276
       getCurrentRecordDetailOne(){
@@ -1304,14 +1325,14 @@
1304 1325
          }
1305 1326
        }
1306 1327
       },
1307
-     changeTempalte(){
1328
+      changeTempalte(){
1308 1329
        for(let i=0;i<this.planList.length;i++){
1309 1330
          if(this.form.template_plan_id == this.planList[i].value){
1310 1331
            this.form.template_plan_content = this.planList[i].content
1311 1332
          }
1312 1333
        }
1313
-     },
1314
-     editCreation(){
1334
+      },
1335
+      editCreation(){
1315 1336
         var params = {
1316 1337
             id:this.form.id,
1317 1338
             title:this.form.title,
@@ -1353,7 +1374,33 @@
1353 1374
             this.edit_show_dialog = false
1354 1375
           }
1355 1376
         })
1356
-     }
1377
+      },
1378
+      unique(data, key) {
1379
+        let lastData = [];
1380
+        data.forEach(item => {
1381
+          let status = lastData.some(project_name => project_name[key] == item[key]);
1382
+          console.log('status',status)
1383
+          if (!status) {
1384
+            // item.value0 = item.value;
1385
+            let obj = {
1386
+              project_name:'',
1387
+              arr:[]
1388
+            }
1389
+            obj.project_name = item.project_name
1390
+            obj.arr.push(item);
1391
+            lastData.push(obj);
1392
+            console.log('item',item)
1393
+          } else {
1394
+            lastData.forEach((project_name, index) => {
1395
+              if (project_name[key] === item[key]) {
1396
+                console.log('item222',item)
1397
+                project_name.arr.push(item);
1398
+              }
1399
+            });
1400
+          }
1401
+        });
1402
+        return lastData;
1403
+      }
1357 1404
     },
1358 1405
   //  watch: {
1359 1406
   //   inspectionList: function() {
@@ -1367,6 +1414,17 @@
1367 1414
 </script>
1368 1415
 
1369 1416
 <style rel="stylesheet/css" lang="scss" scoped>
1417
+  .borderBox{
1418
+    border: 1px solid #DCDFE6;
1419
+    padding: 10px;
1420
+    margin-top: 10px;
1421
+    border-radius: 4px;
1422
+    p{
1423
+      font-weight: bold;
1424
+      font-size: 20px;
1425
+      margin: 10px 0;
1426
+    }
1427
+  }
1370 1428
   .container {
1371 1429
     margin-left: 180px;
1372 1430
     padding: 20px;