Bläddra i källkod

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 år sedan
förälder
incheckning
225edb75b9

+ 9 - 0
src/api/dialysis_record.js Visa fil

193
     params: params
193
     params: params
194
   })
194
   })
195
 }
195
 }
196
+
197
+export function getPatientDialysisRecordList(params){
198
+
199
+   return request({
200
+    url:"/api/getpatientdialysisrecordlist",
201
+    method:'get',
202
+    params:params,
203
+   })
204
+}

+ 2 - 1
src/xt_pages/data/druguse.vue Visa fil

875
       this.currentIndex = index;
875
       this.currentIndex = index;
876
       this.efForm = {
876
       this.efForm = {
877
         name: row.name,
877
         name: row.name,
878
-        id: row.id
878
+        id: row.id,
879
       };
879
       };
880
 
880
 
881
       this.efFormVisible = true;
881
       this.efFormVisible = true;
886
       this.$refs[formName].validate(valid => {
886
       this.$refs[formName].validate(valid => {
887
         if (valid) {
887
         if (valid) {
888
           if (this.isEdit) {
888
           if (this.isEdit) {
889
+            console.log("eeeeeeeeeeee",this.efForm)
889
             UpdateExecutionFrequency(this.efForm.id, this.efForm).then(
890
             UpdateExecutionFrequency(this.efForm.id, this.efForm).then(
890
               response => {
891
               response => {
891
                 if (response.data.state == 0) {
892
                 if (response.data.state == 0) {

+ 1 - 0
src/xt_pages/data/druguseTemplate.vue Visa fil

2118
               }else{
2118
               }else{
2119
                 this.efForm.count =1
2119
                 this.efForm.count =1
2120
               }
2120
               }
2121
+              console.log("this.efForm",this.efForm)
2121
               UpdateExecutionFrequency(this.efForm.id, this.efForm).then(
2122
               UpdateExecutionFrequency(this.efForm.id, this.efForm).then(
2122
                 response => {
2123
                 response => {
2123
                   if (response.data.state == 0) {
2124
                   if (response.data.state == 0) {

+ 30 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Visa fil

1300
                           }}
1300
                           }}
1301
                         </div>
1301
                         </div>
1302
                       </div>
1302
                       </div>
1303
+
1304
+                      
1305
+                      <div
1306
+                        class="row"
1307
+                        style="padding: 2px 0; line-height: 23px; display: flex"
1308
+                        v-if="org_id != 10223"
1309
+                      >
1310
+                        <div
1311
+                          class="inline_block"
1312
+                          style="flex: 1; display: inline-block"
1313
+                          v-if="org_id!=9675 && org_id!=10447"
1314
+                        >
1315
+                          备注:
1316
+                          <div
1317
+                            class="under_line"
1318
+                            style="
1319
+                              width: 860px;
1320
+                              line-height: 25px;
1321
+                              text-align: left;
1322
+                              margin-left: 2px;
1323
+                              display: inline-block;
1324
+                              white-space: normal;
1325
+                            "
1326
+                          >
1327
+                            {{ record.assessment_before_dislysis.remark ?record.assessment_before_dislysis.remark : "/" }}
1328
+                          </div>
1329
+                        </div>
1330
+                      </div>
1303
                     </div>
1331
                     </div>
1304
 
1332
 
1305
                     <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id == 3877">
1333
                     <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id == 3877">
1380
                           <td width="50">脉搏<br />(次/分)</td>
1408
                           <td width="50">脉搏<br />(次/分)</td>
1381
                           <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1409
                           <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1382
                           <td width="50">血流量<br />(ml/min)</td>
1410
                           <td width="50">血流量<br />(ml/min)</td>
1383
-                          <td width="50" v-if="org_id == 10478">动脉压<br />(mmHg)</td>
1411
+                          <td width="50" v-if="org_id == 10478 || org_id ==10510">动脉压<br />(mmHg)</td>
1384
                           <td width="50">静脉压<br />(mmHg)</td>
1412
                           <td width="50">静脉压<br />(mmHg)</td>
1385
                           <td width="50">跨膜压<br />(mmHg)</td>
1413
                           <td width="50">跨膜压<br />(mmHg)</td>
1386
                           <td width="60" v-if="org_id != 9836">
1414
                           <td width="60" v-if="org_id != 9836">
1521
                                 : ""
1549
                                 : ""
1522
                             }}
1550
                             }}
1523
                           </td>
1551
                           </td>
1524
-                          <td v-if="org_id == 10478">
1552
+                          <td v-if="org_id == 10478 || org_id ==10510">
1525
                             {{
1553
                             {{
1526
                               monitor_record.arterial_pressure
1554
                               monitor_record.arterial_pressure
1527
                                 ? monitor_record.arterial_pressure
1555
                                 ? monitor_record.arterial_pressure

+ 4 - 3
src/xt_pages/dialysis/details/index.vue Visa fil

19
           >下一位</el-button
19
           >下一位</el-button
20
         >   
20
         >   
21
 
21
 
22
-        <el-button
22
+        <!-- <el-button
23
           size="small"
23
           size="small"
24
           type="primary"
24
           type="primary"
25
           @click="history_click"
25
           @click="history_click"
26
           
26
           
27
-          >透析历史</el-button>
27
+          >透析历史</el-button> -->
28
 
28
 
29
         <el-button
29
         <el-button
30
           size="small"
30
           size="small"
1252
   getLongAdviceTwo,
1252
   getLongAdviceTwo,
1253
   getDialysisRecordInitData,
1253
   getDialysisRecordInitData,
1254
   getDialysisSchedules,
1254
   getDialysisSchedules,
1255
-  getInitPrintData
1255
+  getInitPrintData,
1256
+  getPatientDialysisRecordList
1256
 } from '@/api/dialysis_record'
1257
 } from '@/api/dialysis_record'
1257
 import { getDataConfig } from '@/utils/data'
1258
 import { getDataConfig } from '@/utils/data'
1258
 import { parseTime } from '@/utils'
1259
 import { parseTime } from '@/utils'

+ 6 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Visa fil

82
           <div class="inline_block" v-if="org_id!=10624">
82
           <div class="inline_block" v-if="org_id!=10624">
83
             病区:
83
             病区:
84
             <div class="under_line" style="width: 50px; text-align: center">
84
             <div class="under_line" style="width: 50px; text-align: center">
85
-              <span v-if="org_id == 10121||org_id == 10138||org_id == 10414 ||org_id == 10447  || org_id ==10567">{{
85
+              <span v-if="org_id == 10121||org_id == 10138||org_id == 10414 ||org_id == 10447  || org_id ==10567 || org_id ==10206">{{
86
                 patientInfo.DialysisSchedule.device_zone.name
86
                 patientInfo.DialysisSchedule.device_zone.name
87
                   ? patientInfo.DialysisSchedule.device_zone.name
87
                   ? patientInfo.DialysisSchedule.device_zone.name
88
                   : ""
88
                   : ""
93
           <div class="inline_block" v-if="org_id!=10460&&org_id!=10624">
93
           <div class="inline_block" v-if="org_id!=10460&&org_id!=10624">
94
             床号:
94
             床号:
95
             <div class="under_line" style="width: 50px; text-align: center">
95
             <div class="under_line" style="width: 50px; text-align: center">
96
-              <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675 || org_id ==10515 || org_id == 10567">{{
96
+              <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675 || org_id ==10515 || org_id == 10567 || org_id ==10206">{{
97
                 dialysisOrder &&
97
                 dialysisOrder &&
98
                 dialysisOrder.DeviceNumber &&
98
                 dialysisOrder.DeviceNumber &&
99
                 dialysisOrder.DeviceNumber.number.length > 0
99
                 dialysisOrder.DeviceNumber.number.length > 0
1541
                         <td width="50">脉搏<br />(次/分)</td>
1541
                         <td width="50">脉搏<br />(次/分)</td>
1542
                         <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1542
                         <td width="50" v-if="org_id!=10489">呼吸<br />(次/分)</td>
1543
                         <td width="50">血流量<br />(ml/min)</td>
1543
                         <td width="50">血流量<br />(ml/min)</td>
1544
-                        <td width="50" v-if="org_id==10478 || org_id == 10598">
1544
+                        <td width="50" v-if="org_id==10478 || org_id == 10598 || org_id ==10510">
1545
                           动脉压<br />({{
1545
                           动脉压<br />({{
1546
                             monitors[0] &&
1546
                             monitors[0] &&
1547
                             monitors[0]["venous_pressure_type"] == 2
1547
                             monitors[0]["venous_pressure_type"] == 2
1600
                         <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1600
                         <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1601
                         <td v-if="org_id!=10489">{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1601
                         <td v-if="org_id!=10489">{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1602
                         <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1602
                         <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1603
-                        <td v-if="org_id ==10478 || org_id == 10598">
1603
+                        <td v-if="org_id ==10478 || org_id == 10598 || org_id ==10510">
1604
                           {{
1604
                           {{
1605
                             monitor.arterial_pressure
1605
                             monitor.arterial_pressure
1606
                               ? monitor.arterial_pressure
1606
                               ? monitor.arterial_pressure
2374
             <div class="inline_block" v-if="org_id!=10510 && org_id!=10624">
2374
             <div class="inline_block" v-if="org_id!=10510 && org_id!=10624">
2375
               病区:
2375
               病区:
2376
               <div class="under_line" style="width: 50px; text-align: center">
2376
               <div class="under_line" style="width: 50px; text-align: center">
2377
-              <span v-if="org_id == 10121||org_id == 10138 || org_id == 9675 || org_id == 10447 || org_id == 0 || org_id ==10460">{{
2377
+              <span v-if="org_id == 10121||org_id == 10138 || org_id == 9675 || org_id == 10447 || org_id == 0 || org_id ==10460 || org_id ==10206">{{
2378
                 patientInfo.DialysisSchedule.device_zone.name
2378
                 patientInfo.DialysisSchedule.device_zone.name
2379
                   ? patientInfo.DialysisSchedule.device_zone.name
2379
                   ? patientInfo.DialysisSchedule.device_zone.name
2380
                   : ""
2380
                   : ""
2385
             <div class="inline_block" v-if="org_id!=10510 && org_id!=10460 && org_id!=10624" >
2385
             <div class="inline_block" v-if="org_id!=10510 && org_id!=10460 && org_id!=10624" >
2386
               床号:
2386
               床号:
2387
               <div class="under_line" style="width: 50px; text-align: center">
2387
               <div class="under_line" style="width: 50px; text-align: center">
2388
-              <span v-if="org_id == 10121 || org_id == 9675 || org_id == 10447 || org_id == 0 ||org_id == 10460">{{
2388
+              <span v-if="org_id == 10121 || org_id == 9675 || org_id == 10447 || org_id == 0 ||org_id == 10460 || org_id ==10206">{{
2389
                 dialysisOrder &&
2389
                 dialysisOrder &&
2390
                 dialysisOrder.DeviceNumber &&
2390
                 dialysisOrder.DeviceNumber &&
2391
                 dialysisOrder.DeviceNumber.number.length > 0
2391
                 dialysisOrder.DeviceNumber.number.length > 0

+ 29 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Visa fil

3757
               }
3757
               }
3758
               if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3758
               if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3759
                 obj.prescribing_number = 1
3759
                 obj.prescribing_number = 1
3760
+              }
3761
+               // 针对灵山圣康
3762
+               if(this.org_id == 0 || this.org_id ==10375){
3763
+                if(this.prescriptions[i]!=null){
3764
+                  console.log("禅古this.prescriptions[i].advices.length",this.prescriptions[i].advices.length)
3765
+                  if(this.prescriptions[i].advices.length >=5){
3766
+
3767
+                    this.$message.error("添加条数已经大于5条,添加失败!")
3768
+                    return false
3769
+                  }
3770
+                  
3771
+                  
3772
+                }
3760
               }
3773
               }
3761
               this.prescriptions[i].advices.push(obj)
3774
               this.prescriptions[i].advices.push(obj)
3762
             }
3775
             }
3806
               if (obj.type == 3) {
3819
               if (obj.type == 3) {
3807
                 obj.single_dose = 1
3820
                 obj.single_dose = 1
3808
               }
3821
               }
3822
+              // 针对灵山圣康
3823
+              if(this.org_id == 0 || this.org_id ==10375){
3824
+                if(this.prescriptions[i]!=null){
3825
+                  if(this.prescriptions[i].project.length >=5){
3826
+                    this.$message.error("添加条数已经大于5条,添加失败!")
3827
+                    return false
3828
+                  }
3829
+                  
3830
+                  
3831
+                }
3832
+              }
3809
               this.prescriptions[i].project.push(obj)
3833
               this.prescriptions[i].project.push(obj)
3810
             }
3834
             }
3811
             this.curStatus = 2
3835
             this.curStatus = 2
3812
           }
3836
           }
3813
 
3837
 
3814
           this.curPrescriptions = this.prescriptions[i]
3838
           this.curPrescriptions = this.prescriptions[i]
3839
+       
3840
+          
3841
+          
3842
+         
3843
+         
3815
           this.$refs.multipleTable.clearSelection()
3844
           this.$refs.multipleTable.clearSelection()
3816
           this.$refs.tables.clearSelection()
3845
           this.$refs.tables.clearSelection()
3817
           this.clearSelection()
3846
           this.clearSelection()

+ 3 - 3
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Visa fil

689
           { name: '透析1h一次', count: 1 },
689
           { name: '透析1h一次', count: 1 },
690
           { name: '透析2h一次', count: 1 },
690
           { name: '透析2h一次', count: 1 },
691
           { name: '透析3h一次', count: 1 },
691
           { name: '透析3h一次', count: 1 },
692
-          { name: '每日一次', count: 1 },
693
-          { name: '每日两次', count: 2 },
694
-          { name: '每日三次', count: 3 },
692
+          { name: '每日一次', count: 12 },
693
+          { name: '每日两次', count: 6 },
694
+          { name: '每日三次', count: 4 },
695
           { name: '每晚一次', count: 1 },
695
           { name: '每晚一次', count: 1 },
696
           { name: '每晚', count: 1 },
696
           { name: '每晚', count: 1 },
697
           { name: '上机前', count: 1 },
697
           { name: '上机前', count: 1 },

+ 5 - 5
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Visa fil

623
 
623
 
624
             this.prescriptions[i].project[b].day_count = parseInt(this.prescriptions[i].project[b].day_count)
624
             this.prescriptions[i].project[b].day_count = parseInt(this.prescriptions[i].project[b].day_count)
625
             this.prescriptions[i].project[b].frequency_type = parseInt(this.prescriptions[i].project[b].frequency_type)
625
             this.prescriptions[i].project[b].frequency_type = parseInt(this.prescriptions[i].project[b].frequency_type)
626
-            this.prescriptions[i].project[b].week_day = this.prescriptions[i].project[b].number_days.toString()
626
+            this.prescriptions[i].project[b].day = this.prescriptions[i].project[b].number_days.toString()
627
 
627
 
628
           }
628
           }
629
         }
629
         }
1860
                         frequency_type: prescription.project[b].frequency_type,
1860
                         frequency_type: prescription.project[b].frequency_type,
1861
                         day_count: prescription.project[b].day_count,
1861
                         day_count: prescription.project[b].day_count,
1862
                         week_day: prescription.project[b].week_day,
1862
                         week_day: prescription.project[b].week_day,
1863
-                        number_days:prescription.project[b].week_day
1863
+                        number_days:prescription.project[b].day
1864
 
1864
 
1865
                       }
1865
                       }
1866
 
1866
 
1901
                           frequency_type: prescription.project[b].frequency_type,
1901
                           frequency_type: prescription.project[b].frequency_type,
1902
                           day_count: prescription.project[b].day_count,
1902
                           day_count: prescription.project[b].day_count,
1903
                           week_day: prescription.project[b].week_day,
1903
                           week_day: prescription.project[b].week_day,
1904
-                          number_days:prescription.project[b].week_day
1904
+                          number_days:prescription.project[b].day
1905
 
1905
 
1906
                         }
1906
                         }
1907
 
1907
 
1939
                         frequency_type: prescription.project[b].frequency_type,
1939
                         frequency_type: prescription.project[b].frequency_type,
1940
                         day_count: prescription.project[b].day_count,
1940
                         day_count: prescription.project[b].day_count,
1941
                         week_day: prescription.project[b].week_day,
1941
                         week_day: prescription.project[b].week_day,
1942
-                        number_days:prescription.project[b].week_day
1942
+                        number_days:prescription.project[b].day
1943
 
1943
 
1944
 
1944
 
1945
                       }
1945
                       }
1981
                           frequency_type: prescription.project[b].frequency_type,
1981
                           frequency_type: prescription.project[b].frequency_type,
1982
                           day_count: prescription.project[b].day_count,
1982
                           day_count: prescription.project[b].day_count,
1983
                           week_day: prescription.project[b].week_day,
1983
                           week_day: prescription.project[b].week_day,
1984
-                          number_days:prescription.project[b].week_day
1984
+                          number_days:prescription.project[b].day
1985
 
1985
 
1986
                         }
1986
                         }
1987
 
1987
 

+ 14 - 0
src/xt_pages/user/dialysisRecord.vue Visa fil

278
               <!--}}</span></template-->
278
               <!--}}</span></template-->
279
             <!--&gt;-->
279
             <!--&gt;-->
280
           <!--</el-table-column>-->
280
           <!--</el-table-column>-->
281
+          <el-table-column
282
+            prop="nurse"
283
+            width="120"
284
+            align="center"
285
+            label="透析器凝血"
286
+          >
287
+            <template slot-scope="scope"
288
+              ><span>{{
289
+              scope.row.assessment_after_dislysis.cruor
290
+              }}</span></template
291
+            >
292
+          </el-table-column>
281
           <el-table-column
293
           <el-table-column
282
             prop="nurse"
294
             prop="nurse"
283
             width="90"
295
             width="90"
355
               <th>目标超滤量(L)</th>
367
               <th>目标超滤量(L)</th>
356
               <!-- <th>血管通路</th> -->
368
               <!-- <th>血管通路</th> -->
357
               <th>抗凝剂种类 首剂/维持/总量</th>
369
               <th>抗凝剂种类 首剂/维持/总量</th>
370
+              <th>透析器凝血</th>
358
               <th>透析器型号</th>
371
               <th>透析器型号</th>
359
               <th>治疗护士</th>
372
               <th>治疗护士</th>
360
               <th>治疗医生</th>
373
               <th>治疗医生</th>
391
                 </td>
404
                 </td>
392
                 <!-- <td>{{ setVascularAccess(item.prescription) }}</td> -->
405
                 <!-- <td>{{ setVascularAccess(item.prescription) }}</td> -->
393
                 <td>{{ setAnticoagulantsConfit(item.prescription) }}</td>
406
                 <td>{{ setAnticoagulantsConfit(item.prescription) }}</td>
407
+                <td>{{ item.assessment_after_dislysis.cruor }}</td>
394
                 <td>{{ item.prescription.dialyzer_perfusion_apparatus }}</td>
408
                 <td>{{ item.prescription.dialyzer_perfusion_apparatus }}</td>
395
                 <td>{{ getNurseName(item.start_nurse) }}</td>
409
                 <td>{{ getNurseName(item.start_nurse) }}</td>
396
                 <td>{{ getDoctorName(item.prescription.creater) }}</td>
410
                 <td>{{ getDoctorName(item.prescription.creater) }}</td>

+ 101 - 30
src/xt_pages/user/dialysisSolution.vue Visa fil

154
 
154
 
155
         <el-row :gutter="20">
155
         <el-row :gutter="20">
156
           <el-col :span="6"  v-if="isShows('首剂')"><div class="grid-content bg-purple">首剂
156
           <el-col :span="6"  v-if="isShows('首剂')"><div class="grid-content bg-purple">首剂
157
+            <span v-if="current_solution.anticoagulant == 17">(mg):</span>
157
             <span v-if="current_solution.anticoagulant == 6">(iu):</span>
158
             <span v-if="current_solution.anticoagulant == 6">(iu):</span>
158
             <span v-if="current_solution.anticoagulant == 7">(iu):</span>
159
             <span v-if="current_solution.anticoagulant == 7">(iu):</span>
159
             <span v-if="current_solution.anticoagulant == 5">(mg):</span>
160
             <span v-if="current_solution.anticoagulant == 5">(mg):</span>
163
             <span v-if="current_solution.anticoagulant == 1">(mg):</span>
164
             <span v-if="current_solution.anticoagulant == 1">(mg):</span>
164
             {{current_solution.anticoagulant_shouji}}</div></el-col>
165
             {{current_solution.anticoagulant_shouji}}</div></el-col>
165
           <el-col :span="6"  v-if="isShows('维持')"><div class="grid-content bg-purple">维持
166
           <el-col :span="6"  v-if="isShows('维持')"><div class="grid-content bg-purple">维持
167
+            <span v-if="current_solution.anticoagulant == 17">(mg/h):</span>
166
             <span v-if="current_solution.anticoagulant == 7">(iu/h):</span>
168
             <span v-if="current_solution.anticoagulant == 7">(iu/h):</span>
167
             <span v-if="current_solution.anticoagulant == 6">(iu/h):</span>
169
             <span v-if="current_solution.anticoagulant == 6">(iu/h):</span>
168
             <span v-if="current_solution.anticoagulant == 5">(ml/h):</span>
170
             <span v-if="current_solution.anticoagulant == 5">(ml/h):</span>
172
             <span v-if="current_solution.anticoagulant == 1">(mg/h):</span>
174
             <span v-if="current_solution.anticoagulant == 1">(mg/h):</span>
173
             {{current_solution.anticoagulant_weichi}}</div></el-col>
175
             {{current_solution.anticoagulant_weichi}}</div></el-col>
174
           <el-col :span="6" v-if="isShows('总量')"><div class="grid-content bg-purple">总量
176
           <el-col :span="6" v-if="isShows('总量')"><div class="grid-content bg-purple">总量
177
+            <span v-if="current_solution.anticoagulant == 17">(mg):</span>
175
             <span v-if="current_solution.anticoagulant == 5">(mg):</span>
178
             <span v-if="current_solution.anticoagulant == 5">(mg):</span>
176
             <span v-if="current_solution.anticoagulant == 6">(iu):</span>
179
             <span v-if="current_solution.anticoagulant == 6">(iu):</span>
177
             <span v-if="current_solution.anticoagulant == 7">(iu):</span>
180
             <span v-if="current_solution.anticoagulant == 7">(iu):</span>
1275
         }
1278
         }
1276
       
1279
       
1277
       },
1280
       },
1278
-      'addPlan.anticoagulant_shouji': function() {
1281
+      // 'addPlan.anticoagulant_shouji': function() {
1279
       
1282
       
1280
-         if(this.addPlan.id == 0){
1281
-            this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
1282
-            this.addPlan.anticoagulant_shouji,
1283
-            this.addPlan.dialysis_duration,
1284
-            this.addPlan.anticoagulant_weichi
1285
-          )
1286
-         }
1283
+      //    if(this.addPlan.id == 0){
1284
+      //       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
1285
+      //       this.addPlan.anticoagulant_shouji,
1286
+      //       this.addPlan.dialysis_duration,
1287
+      //       this.addPlan.anticoagulant_weichi
1288
+      //     )
1289
+      //    }
1287
      
1290
      
1288
        
1291
        
1289
-        if(this.addPlan.id == 0){
1290
-          if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1291
-            this.addPlan.anticoagulant_zongliang = ""
1292
-            this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1293
-         }
1294
-        }
1292
+      //   if(this.addPlan.id == 0){
1293
+      //     if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1294
+      //       this.addPlan.anticoagulant_zongliang = ""
1295
+      //       this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1296
+      //    }
1297
+      //   }
1298
+      
1299
+
1300
+      // },
1301
+      // 'addPlan.anticoagulant_weichi': function() {
1302
+
1303
+      //   if(this.addPlan.id == 0){
1304
+      //       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1305
+      //       1,
1306
+      //       this.addPlan.anticoagulant_shouji,
1307
+      //       this.addPlan.dialysis_duration,
1308
+      //       this.addPlan.anticoagulant_weichi
1309
+      //    )
1310
+      //   }
1295
       
1311
       
1312
+        
1313
+      //   if(this.addPlan.id == 0){
1314
+      //     if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1315
+      //       this.addPlan.anticoagulant_zongliang = ""
1316
+      //       this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1317
+      //    }
1318
+      //   }
1319
+      
1320
+      // },
1321
+
1322
+      'addPlan.anticoagulant_shouji': function() {
1323
+        let dialysis_duration_minute = 0
1324
+        let dialysis_duration_hour = 0
1325
+        let duration = 0
1326
+        if (this.addPlan.dialysis_duration_minute == '') {
1327
+          dialysis_duration_minute = 0
1328
+        } else {
1329
+          dialysis_duration_minute = this.addPlan.dialysis_duration_minute
1330
+        }
1331
+        if (this.addPlan.dialysis_duration_hour == '') {
1332
+          dialysis_duration_hour = 0
1333
+        } else {
1334
+          dialysis_duration_hour = this.addPlan.dialysis_duration_hour
1335
+        }
1336
+        duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
1337
+
1338
+        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1339
+          1,
1340
+          this.addPlan.anticoagulant_shouji,
1341
+          duration,
1342
+          this.addPlan.anticoagulant_weichi,
1343
+          this.addPlan.add_amount,
1344
+          this.addPlan.reduce_amount
1345
+        )
1346
+        this.zongliang =  this.addPlan.anticoagulant_zongliang
1347
+        if (isNaN(this.addPlan.anticoagulant_zongliang)) {
1348
+          this.addPlan.anticoagulant_zongliang = ''
1349
+        }
1350
+
1351
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2){
1352
+          this.addPlan.anticoagulant_zongliang = ""
1353
+          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) +  parseInt(this.addPlan.anticoagulant_weichi)
1354
+       }
1296
 
1355
 
1297
       },
1356
       },
1298
       'addPlan.anticoagulant_weichi': function() {
1357
       'addPlan.anticoagulant_weichi': function() {
1358
+        let dialysis_duration_minute = 0
1359
+        let dialysis_duration_hour = 0
1360
+        let duration = 0
1299
 
1361
 
1300
-        if(this.addPlan.id == 0){
1301
-            this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1302
-            1,
1303
-            this.addPlan.anticoagulant_shouji,
1304
-            this.addPlan.dialysis_duration,
1305
-            this.addPlan.anticoagulant_weichi
1306
-         )
1362
+        if (this.addPlan.dialysis_duration_minute == '') {
1363
+          dialysis_duration_minute = 0
1364
+        } else {
1365
+          dialysis_duration_minute = this.addPlan.dialysis_duration_minute
1307
         }
1366
         }
1308
-      
1309
-        
1310
-        if(this.addPlan.id == 0){
1311
-          if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1312
-            this.addPlan.anticoagulant_zongliang = ""
1313
-            this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1314
-         }
1367
+
1368
+        if (this.addPlan.dialysis_duration_hour == '') {
1369
+          dialysis_duration_hour = 0
1370
+        } else {
1371
+          dialysis_duration_hour = this.addPlan
1372
+            .dialysis_duration_hour
1315
         }
1373
         }
1316
-      
1317
-      }
1374
+        duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
1375
+
1376
+        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.addPlan.anticoagulant_shouji, duration, this.addPlan.anticoagulant_weichi,this.addPlan.add_amount,this.addPlan.reduce_amount)
1377
+        if (isNaN(this.addPlan.anticoagulant_zongliang)) {
1378
+          this.addPlan.anticoagulant_zongliang = ''
1379
+        }
1380
+         this.zongliang =  this.addPlan.anticoagulant_zongliang
1381
+        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2){
1382
+         this.addPlan.anticoagulant_zongliang = ""
1383
+         this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) +  parseInt(this.addPlan.anticoagulant_weichi)
1384
+       }
1385
+        this.zongliang =  this.addPlan.anticoagulant_zongliang
1386
+
1387
+      },
1388
+
1318
     },
1389
     },
1319
 
1390
 
1320
 
1391