Browse Source

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

test_user 1 year ago
parent
commit
97852d0ff1

+ 15 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue View File

3
     <div class="dialysis-print-order">
3
     <div class="dialysis-print-order">
4
       <div class="order-yy-name">{{ orgname }}</div>
4
       <div class="order-yy-name">{{ orgname }}</div>
5
       <div class="order-title">血液透析(滤过)记录表单</div>
5
       <div class="order-title">血液透析(滤过)记录表单</div>
6
-      <div class="order-name">姓 名:&nbsp;{{ patientInfo.name }}</div>
6
+      <div style="display:flex;justify-content: space-between;">
7
+        <div class="order-name" style="margin: 0;">姓 名:&nbsp;{{ patientInfo.name }}</div>
8
+            <div class="order-name" style="margin: 0;">门诊/住院号:&nbsp;
9
+            <span v-if="receiverTreatmentAccess.admission_number">
10
+              {{ receiverTreatmentAccess.admission_number }}
11
+            </span>
12
+            <span v-else-if="patientInfo.admission_number">
13
+              {{ patientInfo.admission_number }}
14
+            </span>
15
+            <span v-else>
16
+              {{ "/" }}
17
+            </span>
18
+            </div>
19
+          </div>
20
+      
7
       <table class="print-table" border="1">
21
       <table class="print-table" border="1">
8
         <tbody>
22
         <tbody>
9
           <tr>
23
           <tr>

+ 0 - 24
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

100
                       class="under_line"
100
                       class="under_line"
101
                       style="width: 50px; text-align: center"
101
                       style="width: 50px; text-align: center"
102
                     >
102
                     >
103
-                      <!-- <span>{{
104
-                        (dialysisOrder &&
105
-                          dialysisOrder != null &&
106
-                          dialysisOrder.DeviceNumber &&
107
-                          dialysisOrder.DeviceNumber.number.length > 0) ||
108
-                        (dialysisOrder &&
109
-                          dialysisOrder != null &&
110
-                          receiverTreatmentAccess.condition &&
111
-                          receiverTreatmentAccess.condition != 1)
112
-                          ? patientInfo.DialysisSchedule.device_number.number
113
-                          : dialysisOrder.DeviceNumber.number
114
-                      }}</span> -->
115
-
116
                       <span
103
                       <span
117
                         v-if="
104
                         v-if="
118
                           dialysisOrder == null ||
105
                           dialysisOrder == null ||
1424
                                 </td>
1411
                                 </td>
1425
                                 <td width="200">病情变化及处理</td>
1412
                                 <td width="200">病情变化及处理</td>
1426
 
1413
 
1427
-                                <!-- <td width="100">时间</td>
1428
-                    <td width="30">T<br>C°</td>
1429
-                    <td width="30">P<br/>次/分</td>
1430
-                    <td width="30">R<br/>次/分</td>
1431
-                    <td width="100">BP<br/>mmHg</td>
1432
-                    <td width="60">静脉压/动脉压<br/>mmHg</td>
1433
-                    <td width="80">血流量<br/>ml/min</td>
1434
-                    <td width="90">超滤量累计L</td>
1435
-                    <td width="80">钠浓度<br/>mmol/L</td>
1436
-                    <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
1437
-                    <td  width="100">护士签名</td> -->
1438
                               </tr>
1414
                               </tr>
1439
 
1415
 
1440
                               <tr
1416
                               <tr

+ 24 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue View File

586
                         </td>
586
                         </td>
587
                         <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
587
                         <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
588
                           <span v-if="advice.parent_id > 0">---></span>
588
                           <span v-if="advice.parent_id > 0">---></span>
589
-                          <span>{{ advice.advice_name }}</span>
589
+                          
590
+                          <span v-if="advice.project&&advice.project.project_name">{{ advice.project.project_name }}</span>
591
+                          <span v-else>{{ advice.advice_name }}</span>
592
+                          <span v-if="advice.project&&advice.count">{{ advice.count }}{{ advice.unit }}</span>
590
                           <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
593
                           <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
591
                           <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
594
                           <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
592
-                          <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
595
+                          <span v-if="advice.single_dose != 0&&!advice.project">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
593
                           <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
596
                           <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
594
                           <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
597
                           <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
595
                           <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
598
                           <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
1398
           ].name
1401
           ].name
1399
           this.AlPanel = this.anticoagulantsConfit[thisALID]
1402
           this.AlPanel = this.anticoagulantsConfit[thisALID]
1400
         }
1403
         }
1401
-
1404
+        // this.advices = response.data.data.projects
1402
         this.advices = response.data.data.advices
1405
         this.advices = response.data.data.advices
1403
         console.log("医嘱数据2222222222",this.advices)
1406
         console.log("医嘱数据2222222222",this.advices)
1404
-
1405
-        var doctorAdevieInfo = JSON.parse(JSON.stringify(response.data.data.advices))
1407
+        let doctorAdevieInfo = []
1408
+        let ad_arr = JSON.parse(JSON.stringify(response.data.data.projects))
1409
+        ad_arr.forEach(el => {
1410
+          if(el.project&&el.project.project_name!=""){
1411
+            doctorAdevieInfo.push(el)
1412
+          }
1413
+        });
1414
+        let ad_arr2= JSON.parse(JSON.stringify(response.data.data.advices))
1415
+        ad_arr2.forEach(el => {
1416
+          doctorAdevieInfo.push(el)
1417
+        });
1418
+        console.log(doctorAdevieInfo,'doctorAdevieInfo')
1419
+        // doctorAdevieInfo.push(JSON.parse(JSON.stringify(response.data.data.advices)))
1406
         this.tableAdvice = doctorAdevieInfo;
1420
         this.tableAdvice = doctorAdevieInfo;
1421
+        // console.log(this.tableAdvice,'this.tableAdvice')
1422
+        // if(!this.tableAdvice[0].advice_name){
1423
+        //   console.log("不存在")
1424
+        // }
1407
         if (this.tableAdvice.length < 7) {
1425
         if (this.tableAdvice.length < 7) {
1408
           var nl = 6 - this.tableAdvice.length;
1426
           var nl = 6 - this.tableAdvice.length;
1409
           for (let index = 0; index < nl; index++) {
1427
           for (let index = 0; index < nl; index++) {
1524
           this.doctor_advices[index]['isShow'] = 2
1542
           this.doctor_advices[index]['isShow'] = 2
1525
         }
1543
         }
1526
 
1544
 
1545
+
1527
         // if (this.doctor_advices.length > 0) {
1546
         // if (this.doctor_advices.length > 0) {
1528
         //   var group = this.newAdviceGroupObject()
1547
         //   var group = this.newAdviceGroupObject()
1529
         //   var initGroupBlock = function(group, advice) {
1548
         //   var initGroupBlock = function(group, advice) {

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue View File

872
             </td>
872
             </td>
873
           </tr>
873
           </tr>
874
 
874
 
875
-          <tr>
875
+          <!-- <tr>
876
             <td style="text-align: left" colspan="8">
876
             <td style="text-align: left" colspan="8">
877
               <span style="display: inline-block; margin-left: 15px"
877
               <span style="display: inline-block; margin-left: 15px"
878
                 >出血影响因素:</span
878
                 >出血影响因素:</span
925
               >其他:
925
               >其他:
926
               <span>{{ predialysis.hemorrhage_other }}</span>
926
               <span>{{ predialysis.hemorrhage_other }}</span>
927
             </td>
927
             </td>
928
-          </tr>
928
+          </tr> -->
929
         </table>
929
         </table>
930
 
930
 
931
         <table class="print-table" border="1" style="line-height: 30px">
931
         <table class="print-table" border="1" style="line-height: 30px">

+ 7 - 0
src/xt_pages/workforce/remind_print_setting_one.vue View File

491
         })
491
         })
492
       },
492
       },
493
       getNextScheduleWeekDay() {
493
       getNextScheduleWeekDay() {
494
+       const loading = this.$loading({
495
+          lock: true,
496
+          text: 'Loading',
497
+          spinner: 'el-icon-loading',
498
+          background: 'rgba(0, 0, 0, 0.7)'
499
+        })
494
         const start = moment().weekday(1).format('YYYY-MM-DD') // 本周一
500
         const start = moment().weekday(1).format('YYYY-MM-DD') // 本周一
495
         const end = moment().weekday(7).format('YYYY-MM-DD')
501
         const end = moment().weekday(7).format('YYYY-MM-DD')
496
         var zone = this.zone
502
         var zone = this.zone
532
         getNextScheduleWeekDayOne(params).then(response => {
538
         getNextScheduleWeekDayOne(params).then(response => {
533
           this.scheduleData = []
539
           this.scheduleData = []
534
           if (response.data.state == 1) {
540
           if (response.data.state == 1) {
541
+            loading.close()
535
             var scheduleData = response.data.data.schedule
542
             var scheduleData = response.data.data.schedule
536
 
543
 
537
             for (let i = 0; i < scheduleData.length; i++) {
544
             for (let i = 0; i < scheduleData.length; i++) {

+ 7 - 0
src/xt_pages/workforce/template.vue View File

4233
 
4233
 
4234
     },
4234
     },
4235
     submitAction() {
4235
     submitAction() {
4236
+     const loading = this.$loading({
4237
+        lock: true,
4238
+        text: 'Loading',
4239
+        spinner: 'el-icon-loading',
4240
+        background: 'rgba(0, 0, 0, 0.7)'
4241
+      })
4236
       var template
4242
       var template
4237
       if (this.form.firstWeek == 1) {
4243
       if (this.form.firstWeek == 1) {
4238
         template = this.first_template
4244
         template = this.first_template
4262
       }
4268
       }
4263
       synchroSchedule(params).then(response => {
4269
       synchroSchedule(params).then(response => {
4264
         if (response.data.state == 1) {
4270
         if (response.data.state == 1) {
4271
+          loading.close()
4265
           var msg = response.data.data.msg
4272
           var msg = response.data.data.msg
4266
           this.$message.success("同步成功!")
4273
           this.$message.success("同步成功!")
4267
           this.newVisible = false
4274
           this.newVisible = false