Selaa lähdekoodia

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

28169 1 vuosi sitten
vanhempi
commit
a8ce351192

+ 1 - 1
config/dev.env.js Näytä tiedosto

@@ -7,7 +7,7 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  //  BASE_API: '"https://api.xt.test.sgjyun.com"',
10
+  // BASE_API: '"https://api.xt.test.sgjyun.com"',
11 11
   BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',

+ 1 - 1
config/index.js Näytä tiedosto

@@ -29,7 +29,7 @@ module.exports = {
29 29
 
30 30
     // host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32
-    // host: 'xt.test.sgjyun.com',
32
+    //  host: 'xt.test.sgjyun.com',
33 33
     host: 'localhost',
34 34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35 35
     autoOpenBrowser: true,

+ 15 - 6
src/api/dialysis.js Näytä tiedosto

@@ -182,7 +182,7 @@ export function postDoubleCheck(params) {
182 182
 }
183 183
 
184 184
 export function postAccepts(params) {
185
-  console.log('params', params)
185
+
186 186
   return request({
187 187
     url: '/api/dialysis/accepts',
188 188
     method: 'Post',
@@ -195,7 +195,7 @@ export function postAccepts(params) {
195 195
 }
196 196
 
197 197
 export function postAssessmentBeforeDislysis(params) {
198
-  console.log('params', params)
198
+
199 199
   return request({
200 200
     url: '/api/dialysis/assessmentbeforedislysis',
201 201
     method: 'Post',
@@ -208,7 +208,7 @@ export function postAssessmentBeforeDislysis(params) {
208 208
 }
209 209
 
210 210
 export function postTreatmentsummary(params) {
211
-  console.log('param223322323', params)
211
+
212 212
   return request({
213 213
     url: '/api/dialysis/treatmentsummary',
214 214
     method: 'Post',
@@ -414,7 +414,7 @@ export function SaveDialysisInformationSetting(params) {
414 414
 }
415 415
 
416 416
 export function getDialysisInformationSetting(params){
417
-  
417
+
418 418
   return request({
419 419
     url:"/api/patient/getdialyisinformationsetting",
420 420
     method:"get",
@@ -423,7 +423,7 @@ export function getDialysisInformationSetting(params){
423 423
 }
424 424
 
425 425
 export function checkDialysisInformation(params){
426
-  
426
+
427 427
   return request({
428 428
     url:"/api/patient/checkdialysisinformation",
429 429
     method:"Get",
@@ -439,4 +439,13 @@ export function getSchedualPatientFlow(params) {
439 439
     method: 'get',
440 440
     params: params
441 441
   })
442
-}
442
+}
443
+
444
+export function saveInformation(params){
445
+
446
+  return request({
447
+    url:"/api/patient/saveinformation",
448
+    method:"get",
449
+    params:params
450
+  })
451
+}

+ 122 - 65
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Näytä tiedosto

@@ -12,7 +12,8 @@
12 12
         <el-row :gutter="20">
13 13
           <el-col :span="8" v-if="isShow('实际治疗时长')">
14 14
             <el-form-item label="实际治疗时长(时):" prop="actualTreatmentHourShow" :rules="isCheckmust('实际治疗时长')">
15
-              <!-- <el-input v-model="form.actual_treatment_hour"></el-input> :prop="isName('实际治疗时长')"-->
15
+
16
+              <!-- <el-input v-model="form.actualTreatmentHourShow" @change="hours"></el-input>  :prop="isName('实际治疗时长')" -->
16 17
               <el-time-picker
17 18
                 v-model="form.actualTreatmentHourShow"
18 19
                 placeholder="透析时长"
@@ -98,7 +99,7 @@
98 99
           </el-col>
99 100
 
100 101
           <el-col :span="8" v-if="isShow('透析过程')">
101
-            <el-form-item label="透析过程: " :prop="isName('透析过程')" :rules="isCheckmust('透析过程')">
102
+            <el-form-item label="透析过程: " :prop="isName('透析过程')" :rules="isCheckmust('透析过程')" placeholder='请选择'>
102 103
               <el-select v-model="form.dialysis_process">
103 104
                 <el-option :key="0" label="请选择" :value="0"></el-option>
104 105
 
@@ -146,7 +147,7 @@
146 147
           </el-col>
147 148
 
148 149
           <el-col :span="8" v-if="isShow('内瘘管拔针后压迫止血操作')">
149
-            <el-form-item label="内瘘管拔针后压迫止血操作: " :prop="isName('内瘘管拔针后压迫止血操作')" :rules="isCheckmust('内瘘管拔针后压迫止血操作')">
150
+            <el-form-item label="内瘘管拔针后压迫止血操作: " :prop="isName('内瘘管拔针后压迫止血操作')" :rules="isCheckmust('内瘘管拔针后压迫止血操作')" placeholder='请选择'>
150 151
               <el-select v-model="form.hemostasis_opera">
151 152
                 <el-option :key="0" label="请选择" :value="0"></el-option>
152 153
 
@@ -161,7 +162,7 @@
161 162
           </el-col>
162 163
 
163 164
           <el-col :span="8" v-if="isShow('动脉管道')">
164
-            <el-form-item label="动脉管道: " :prop="isName('动脉管道')" :rules="isCheckmust('动脉管道')">
165
+            <el-form-item label="动脉管道: " :prop="isName('动脉管道')" :rules="isCheckmust('动脉管道')" placeholder='请选择'>
165 166
               <el-select v-model="form.arterial_tube">
166 167
                 <el-option :key="0" label="请选择" :value="0"></el-option>
167 168
 
@@ -177,7 +178,7 @@
177 178
         </el-row>
178 179
         <el-row :gutter="20">
179 180
           <el-col :span="8" v-if="isShow('静脉管道')">
180
-            <el-form-item label="静脉管道: " :prop="isName('静脉管道')" :rules="isCheckmust('静脉管道')">
181
+            <el-form-item label="静脉管道: " :prop="isName('静脉管道')" :rules="isCheckmust('静脉管道')" placeholder='请选择'>
181 182
               <el-select v-model="form.intravenous_tube">
182 183
                 <el-option :key="0" label="请选择" :value="0"></el-option>
183 184
 
@@ -212,8 +213,8 @@
212 213
           </el-col>
213 214
 
214 215
           <el-col :span="8" v-if="isShow('患者去向')">
215
-            <el-form-item label="患者去向: " :prop="isName('患者去向')" :rules="isCheckmust('患者去向')">
216
-              <el-select v-model="form.patient_gose">
216
+            <el-form-item label="患者去向: " :prop="isName('患者去向')" :rules="isCheckmust('患者去向')" >
217
+              <el-select v-model="form.patient_gose" placeholder='请选择'>
217 218
                 <el-option :key="0" label="请选择" :value="0"></el-option>
218 219
                 <el-option
219 220
                   v-for="item in patientGoseOptions"
@@ -255,7 +256,7 @@
255 256
           "
256 257
         >
257 258
           <el-col :span="24">
258
-            <el-form-item label="交待病房护士/患者/陪人观察内容: " :prop="isName('交待病房护士/患者/陪人观察内容')" :rules="isCheckmust('交待病房护士/患者/陪人观察内容')">
259
+            <el-form-item label="交待病房护士/患者/陪人观察内容: " :prop="isName('交待病房护士/患者/陪人观察内容')" :rules="isCheckmust('交待病房护士/患者/陪人观察内容')" >
259 260
               <el-input
260 261
                 placeholder="交待病房护士/患者/陪人观察内容"
261 262
                 v-model="form.observation_content"
@@ -271,11 +272,13 @@
271 272
           :gutter="20"
272 273
           v-show="form.patient_gose == 3 && isShow('其他观察内容')"
273 274
         >
275
+        <!--   :prop="isName('其他观察内容')"-->
274 276
           <el-col :span="24">
275
-            <el-form-item label="其他观察内容: " :prop="isName('其他观察内容')" :rules="isCheckmust('其他观察内容')">
277
+            <el-form-item label="其他观察内容: "  prop="observation_content_other" :rules="isOther('其他观察内容')">
276 278
               <el-input
277 279
                 v-model="form.observation_content_other"
278 280
                 :rows="5"
281
+                @change="others"
279 282
               ></el-input>
280 283
             </el-form-item>
281 284
           </el-col>
@@ -353,8 +356,8 @@
353 356
         </el-col>
354 357
 
355 358
         <el-col :span="8" v-if="isShow('透析中入量单位')">
356
-          <el-form-item label="透析中入量单位: " :prop="isName('透析中入量单位')" :rules="isCheckmust('透析中入量单位')">
357
-            <el-select v-model="form.dialysis_intakes_unit">
359
+          <el-form-item label="透析中入量单位: " :prop="isName('透析中入量单位')" :rules="isCheckmust('透析中入量单位')" >
360
+            <el-select v-model="form.dialysis_intakes_unit" placeholder='请选择'>
358 361
               <el-option :key="0" label="请选择" :value="0"></el-option>
359 362
               <el-option
360 363
                 v-for="item in unit"
@@ -394,8 +397,8 @@
394 397
         </el-col>
395 398
 
396 399
         <el-col :span="8" v-if="isShow('血流量')">
397
-          <el-form-item label="血流量: " :prop="isName('血流量')" :rules="isCheckmust('血流量')">
398
-            <el-select v-model="form.blood_flow">
400
+          <el-form-item label="血流量: " :prop="isName('血流量')" :rules="isCheckmust('血流量')" >
401
+            <el-select v-model="form.blood_flow" placeholder='请选择'>
399 402
               <el-option :key="0" label="请选择" :value="0"></el-option>
400 403
               <el-option v-for="item in this.bloodFlowOptions" :label="item.name" :value="item.id" :key="item.id"></el-option>
401 404
             </el-select>
@@ -437,8 +440,8 @@
437 440
 
438 441
 
439 442
         <el-col :span="8" v-if="isShow('失衡综合症')">
440
-          <el-form-item label="失衡综合症: " :prop="isName('失衡综合症')" :rules="isCheckmust('失衡综合症')">
441
-            <el-select v-model="form.disequilibrium_syndrome">
443
+          <el-form-item label="失衡综合症: " :prop="isName('失衡综合症')" :rules="isCheckmust('失衡综合症')" >
444
+            <el-select v-model="form.disequilibrium_syndrome" placeholder='请选择'>
442 445
               <el-option :key="0" label="请选择" :value="0"></el-option>
443 446
 
444 447
               <el-option
@@ -473,8 +476,8 @@
473 476
         </el-col>
474 477
 
475 478
         <el-col :span="8" v-if="isShow('管路')">
476
-          <el-form-item label="管路: " :prop="isName('管路')" :rules="isCheckmust('管路')">
477
-            <el-select v-model="form.channel">
479
+          <el-form-item label="管路: " :prop="isName('管路')" :rules="isCheckmust('管路')" >
480
+            <el-select v-model="form.channel" placeholder='请选择'>
478 481
               <el-option :key="0" label="请选择" :value="0"></el-option>
479 482
               <el-option
480 483
                 v-for="item in channels"
@@ -505,23 +508,24 @@
505 508
             </el-form-item>
506 509
         </el-col>
507 510
         <el-col :span="8" v-if="isShow('透析相关高血压')">
508
-            <el-form-item label="透析相关高血压:" :prop="isName('透析相关高血压')" :rules="isCheckmust('透析相关高血压')">
511
+            <el-form-item label="透析相关高血压:" :prop="isName('透析相关高血压')" :rules="isCheckmust('透析相关高血压')" >
509 512
 
510
-             <el-select v-model="form.hypertenison">
513
+             <el-select v-model="form.hypertenison" placeholder='请选择' >
511 514
               <el-option :key="0" label="请选择" :value="0"></el-option>
512 515
               <el-option
513 516
                 v-for="item in option"
514 517
                 :label="item.name"
515 518
                 :value="item.id"
516 519
                 :key="item.id"
517
-              ></el-option>
520
+              >{{ item.name }}</el-option>
518 521
             </el-select>
519 522
             </el-form-item>
520 523
         </el-col>
521 524
 
522 525
          <el-col :span="8" v-if="isShow('透析相关低血压')">
523
-            <el-form-item label="透析相关低血压" :prop="isName('透析相关低血压')" :rules="isCheckmust('透析相关低血压')">
524
-             <el-select v-model="form.hypopiesia">
526
+            <el-form-item label="透析相关低血压" :prop="isName('透析相关低血压')" :rules="isCheckmust('透析相关低血压')" >
527
+             <el-select v-model="form.hypopiesia" placeholder='请选择'>
528
+              <el-option :key="0" label="请选择" :value="0"></el-option>
525 529
               <el-option
526 530
                 v-for="item in optionOne"
527 531
                 :label="item.name"
@@ -532,8 +536,9 @@
532 536
             </el-form-item>
533 537
         </el-col>
534 538
         <el-col :span="8" v-if="isShow('离科方式')">
535
-            <el-form-item label="离科方式" :prop="isName('离科方式')" :rules="isCheckmust('离科方式')">
536
-               <el-select v-model="form.leave_office_method">
539
+            <el-form-item label="离科方式" :prop="isName('离科方式')" :rules="isCheckmust('离科方式')" >
540
+               <el-select v-model="form.leave_office_method" placeholder='请选择'>
541
+                <el-option :key="0" label="请选择" :value="0"></el-option>
537 542
                 <el-option
538 543
                   v-for="item in leaveOfficeMethod"
539 544
                   :label="item.name"
@@ -544,8 +549,9 @@
544 549
             </el-form-item>
545 550
         </el-col>
546 551
          <el-col :span="8" v-if="isShow('转归')">
547
-            <el-form-item label="转归" :prop="isName('转归')" :rules="isCheckmust('转归')">
548
-             <el-select v-model="form.lapse">
552
+            <el-form-item label="转归" :prop="isName('转归')" :rules="isCheckmust('转归')" >
553
+             <el-select v-model="form.lapse" placeholder='请选择'>
554
+              <el-option :key="0" label="请选择" :value="0"></el-option>
549 555
               <el-option
550 556
                 v-for="item in lapseList"
551 557
                 :label="item.name"
@@ -557,19 +563,23 @@
557 563
         </el-col>
558 564
         <el-col :span="8" v-if="isShow('意识')">
559 565
             <el-form-item label="意识" :prop="isName('意识')" :rules="isCheckmust('意识')">
560
-             <el-select v-model="form.consciousness">
566
+             <el-select v-model="form.consciousness "    > 
567
+             <!-- v-if="form.consciousness ==' ' ? placeholder='请选择': form.consciousness " -->
568
+             <el-option label="请选择" :value="0"></el-option>
561 569
               <el-option
562 570
                 v-for="item in consciousnessList"
563 571
                 :label="item.name"
564
-                :value="item.id"
572
+                :value="item.id "
565 573
                 :key="item.id"
566 574
               ></el-option>
567 575
              </el-select>
576
+             
568 577
             </el-form-item>
569 578
         </el-col>
570 579
         <el-col :span="8" v-if="isShow('跌倒风险')">
571
-            <el-form-item label="跌倒风险" :prop="isName('跌倒风险')" :rules="isCheckmust('跌倒风险')">
572
-             <el-select v-model="form.fallrisk">
580
+            <el-form-item label="跌倒风险" :prop="isName('跌倒风险')" :rules="isCheckmust('跌倒风险')" >
581
+             <el-select v-model="form.fallrisk" placeholder='请选择'>
582
+              <el-option label="请选择" :value="0"></el-option>
573 583
               <el-option
574 584
                 v-for="item in fallriskList"
575 585
                 :label="item.name"
@@ -581,8 +591,8 @@
581 591
         </el-col>
582 592
 
583 593
       <el-col :span="8" v-if="isShow('机器运行')">
584
-            <el-form-item label="机器运行: " :prop="isName('机器运行')" :rules="isCheckmust('机器运行')">
585
-              <el-select v-model="form.machine_run">
594
+            <el-form-item label="机器运行: " :prop="isName('机器运行')" :rules="isCheckmust('机器运行')" >
595
+              <el-select v-model="form.machine_run" placeholder='请选择'>
586 596
                 <el-option :key="0" label="请选择" :value="0"></el-option>
587 597
 
588 598
                 <el-option
@@ -592,6 +602,7 @@
592 602
                   :key="item.value"
593 603
                 ></el-option>
594 604
               </el-select>
605
+              
595 606
             </el-form-item>
596 607
        </el-col>
597 608
 
@@ -750,7 +761,7 @@ export default {
750 761
         catheter: '',
751 762
         complication: '',
752 763
         puncture_point_oozing_blood: 2,
753
-        puncture_point_haematoma: 2,
764
+        puncture_point_haematoma: '',
754 765
         internal_fistula_tremor_ac: '',
755 766
         patient_gose: '',
756 767
         inpatient_department: '',
@@ -766,7 +777,7 @@ export default {
766 777
         hemostasis_minute: '',
767 778
         hemostasis_opera: '',
768 779
         tremor_noise: '',
769
-        disequilibrium_syndrome: '',
780
+        disequilibrium_syndrome: 0,
770 781
         disequilibrium_syndrome_option: '',
771 782
         arterial_tube: '',
772 783
         intravenous_tube: '',
@@ -775,12 +786,12 @@ export default {
775 786
         dialysis_intakes_unit: 0,
776 787
         cvc_a: 0,
777 788
         cvc_v: 0,
778
-        channel: '',
789
+        channel: 0,
779 790
         return_blood: '',
780 791
         rehydration_volume: '',
781 792
         dialysis_during: '',
782 793
         stroke_volume: '',
783
-        blood_flow: '',
794
+        blood_flow: 0,
784 795
         sealing_fluid_dispose: '',
785 796
         sealing_fluid_special: '',
786 797
         dosage_of_anticoagulants:'',
@@ -792,13 +803,13 @@ export default {
792 803
         other_complication:'',
793 804
         ktv:"",
794 805
         urr:"",
795
-        hypertenison:"",
796
-        hypopiesia:"",
797
-        leave_office_method:"",
798
-        lapse:"",
799
-        consciousness:"",
800
-        fallrisk:"",
801
-        machine_run:"",
806
+        hypertenison:0,
807
+        hypopiesia:0,
808
+        leave_office_method:0,
809
+        lapse:0,
810
+        consciousness:0,
811
+        fallrisk:0,
812
+        machine_run:0,
802 813
         after_urea:"",
803 814
         accumulated_blood_volume:"",
804 815
       },
@@ -807,6 +818,7 @@ export default {
807 818
       consciousnessList:[],
808 819
       fallriskList:[],
809 820
       machineList:[],
821
+      
810 822
     }
811 823
   },
812 824
   watch: {
@@ -894,6 +906,9 @@ export default {
894 906
         if (this.assessment_after_dislysis['sealing_fluid_dispose'] == 0) {
895 907
           this.form['sealing_fluid_dispose'] = ''
896 908
         }
909
+        // if (this.assessment_after_dislysis['actualTreatmentHourShow'] == 0) {
910
+        //   this.form['actualTreatmentHourShow'] = ''
911
+        // }
897 912
         this.form.actualTreatmentHourShow = new Date(
898 913
           2018,
899 914
           1,
@@ -936,27 +951,67 @@ export default {
936 951
         if (
937 952
           filedList[i].module == 5 &&
938 953
           filedList[i].filed_name_cn == name &&
939
-          filedList[i].is_write == 1&&
954
+          filedList[i].is_write == 1 &&
940 955
           filedList[i].is_show == 1
941 956
         ) {
942
-          console.log(filedList[i],'false')
943
-          // if(name == "实际治疗时长"){
944
-          //   return [
945
-          //     { required: true, message: `请选择${name}`,trigger: ['blur','change'] },
946
-          //     {
947
-          //       required: true,
948
-          //       pattern: /^[1-9]\d*$/,
949
-          //       message: `请选择${name}`,
950
-          //       trigger: ['change']
951
-          //     },
952
-          //   ];
953
-          // }
954
-        
957
+          
958
+          if(name == "穿刺处血肿" || name == '拔针后穿刺点渗血' || name == '透析期间进食' ){
959
+            return [
960
+              { required: true, message: `请选择${name}`,trigger: ['blur','change'] },
961
+              {
962
+                required: true,
963
+                pattern: /^[1-9]\d*$/,
964
+                message: `请选择${name}`,
965
+                trigger: ['change']
966
+              },
967
+            ];
968
+          }
969
+            
955 970
           return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
956 971
           
957 972
         }
958 973
       }
959 974
     },
975
+    others(){
976
+      // console.log('asdfasfd',this.form.observation_content_other.length);
977
+      if(this.form.observation_content_other.length>0){
978
+        this.$refs.form.clearValidate('observation_content_other');
979
+      }
980
+    },
981
+    // hours(){
982
+    //   if(this.form.actualTreatmentHourShow.length>0){
983
+    //     this.$refs.form.clearValidate('actualTreatmentHourShow');
984
+    //   }
985
+    // },
986
+    isOther(name){
987
+      if(this.form.patient_gose == 3){
988
+        let filedList = store.getters.xt_user.fileds;
989
+
990
+        for (let i = 0; i < filedList.length; i++) {
991
+          if (
992
+            filedList[i].module == 5 &&
993
+            filedList[i].filed_name_cn == name &&
994
+            filedList[i].is_write == 1 &&
995
+            filedList[i].is_show == 1
996
+          ) {
997
+            
998
+            // if(name == "其他观察内容"){
999
+            //   return [
1000
+            //     { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
1001
+            //     {
1002
+            //       required: true,
1003
+            //       pattern: /^[1-9]\d*$/,
1004
+            //       message: `请输入${name}`,
1005
+            //       trigger: ['change']
1006
+            //     },
1007
+            //   ];
1008
+            // }
1009
+            return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
1010
+            
1011
+          }
1012
+        }
1013
+      }
1014
+    },
960 1015
     isShow(name) {
961 1016
       var filedList = store.getters.xt_user.fileds
962 1017
 
@@ -971,6 +1026,7 @@ export default {
971 1026
       }
972 1027
       return false
973 1028
     },
1029
+   
974 1030
     submitForm(formName) {
975 1031
       this.$refs[formName].validate((valid)=>{
976 1032
         if(valid){
@@ -1026,7 +1082,7 @@ export default {
1026 1082
           data['puncture_point_oozing_blood'] = this.form.puncture_point_oozing_blood ? parseFloat(this.form.puncture_point_oozing_blood) : 0
1027 1083
           data['puncture_point_haematoma'] = this.form.puncture_point_haematoma ? parseFloat(this.form.puncture_point_haematoma) : 0
1028 1084
           data['internal_fistula_tremor_ac'] = this.form.internal_fistula_tremor_ac ? parseFloat(this.form.internal_fistula_tremor_ac) : 0
1029
-          data['patient_gose'] = this.form.patient_gose ? parseFloat(this.form.patient_gose) : 0
1085
+          data['patient_gose'] = this.form.patient_gose ? parseFloat(this.form.patient_gose) : ' '
1030 1086
           data['inpatient_department'] = this.form.inpatient_department
1031 1087
           data['observation_content'] = this.form.observation_content
1032 1088
           data['observation_content_other'] = this.form.observation_content_other
@@ -1238,11 +1294,13 @@ export default {
1238 1294
     // 数据开始
1239 1295
     show(predialysis,last_after) {
1240 1296
       console.log("透后体重2332233223wo",predialysis)
1297
+      // console.log('asdfadsfdasf',this.form.consciousness);
1241 1298
       this.isVisibility = true
1242 1299
       this.predialysis = predialysis
1243 1300
       this.form.observation_content = predialysis.observation_content
1244 1301
       this.form.inpatient_department = predialysis.inpatient_department
1245 1302
       this.form.observation_content_other = predialysis.observation_content_other
1303
+      // 5.15
1246 1304
       if(predialysis.id > 0){
1247 1305
         this.form.hypertenison = predialysis.hypertenison.toString()
1248 1306
       }
@@ -1255,7 +1313,7 @@ export default {
1255 1313
       if(predialysis.id > 0){
1256 1314
         this.form.hypopiesia = predialysis.hypopiesia.toString()
1257 1315
       }
1258
-
1316
+        // 5.15
1259 1317
       //针对长沙南雅 ,透后体重 - 目标超滤量
1260 1318
       // if(predialysis.id > 0){
1261 1319
       //  if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340){
@@ -1286,12 +1344,14 @@ export default {
1286 1344
             }
1287 1345
           }
1288 1346
         }
1347
+        // 5.15
1289 1348
         if(last_after.id > 0){
1290 1349
          this.form.hypertenison = last_after.hypertenison.toString()
1291 1350
         }
1292 1351
         if(last_after.id > 0){
1293 1352
           this.form.hypopiesia = last_after.hypopiesia.toString()
1294 1353
         }
1354
+          // 5.15
1295 1355
         //针对长沙南雅 ,透后体重 - 目标超滤量
1296 1356
         // if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340){
1297 1357
         //    if(this.prescription!=null && this.predialysis_evaluation!=null){
@@ -1301,9 +1361,6 @@ export default {
1301 1361
         // }
1302 1362
       }
1303 1363
 
1304
-
1305
-
1306
-
1307 1364
       this.getPermission()
1308 1365
 
1309 1366
 
@@ -1336,7 +1393,7 @@ export default {
1336 1393
           }
1337 1394
         })
1338 1395
         .then(res => {
1339
-          console.log(res)
1396
+          // console.log(res)
1340 1397
           // console.log("透后", this.predialysis);
1341 1398
           if (res.data.state == 0) {
1342 1399
             this.hasPermission = false
@@ -1372,7 +1429,7 @@ export default {
1372 1429
     }
1373 1430
   },
1374 1431
   created() {
1375
-    // console.log("this.form", this.form);
1432
+    // console.log("this.form", this.form.consciousness);
1376 1433
     this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
1377 1434
     this.pip_coagulationOptions = getDataConfig('hemodialysis','pip_coagulation')
1378 1435
     this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
@@ -1388,7 +1445,7 @@ export default {
1388 1445
     this.consciousnessList = getDataConfig("hemodialysis","consciousness")
1389 1446
     this.fallriskList = getDataConfig("hemodialysis","fallrisk")
1390 1447
      this.machineList = getDataConfig("hemodialysis","machine_run")
1391
-     console.log("机器运行",this.machineList)
1448
+     
1392 1449
     this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
1393 1450
     this.patientGoseOptions = this.$store.getters.patient_gose
1394 1451
     this.observationContentOptions = this.$store.getters.observation_content

+ 122 - 78
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Näytä tiedosto

@@ -223,7 +223,7 @@
223 223
         :cell-class-name="adviceNameShow"
224 224
         :modal-append-to-body="false"
225 225
         highlight-current-row
226
-        
226
+
227 227
       >
228 228
       <!-- @selection-change="handleSelectionChange" -->
229 229
         <!-- <el-table-column type="selection"  width="55"></el-table-column> -->
@@ -257,7 +257,6 @@
257 257
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
258 258
               <span class="el-dropdown-link">
259 259
                 &emsp;{{ getAdviceContent(scope.row, 2)}}
260
-               
261 260
                 <i class="el-icon-arrow-down el-icon--right"></i>
262 261
               </span>
263 262
               <el-dropdown-menu slot="dropdown">
@@ -291,7 +290,7 @@
291 290
           </template>
292 291
         </el-table-column>
293 292
         <el-table-column
294
-          v-if="template_id != 6 && org_id!=10223 && org_id!=10445 && org_id!=0"
293
+          v-if="template_id != 6 && org_id!=10223 && org_id!=10445"
295 294
           prop="checker"
296 295
           min-width="30px"
297 296
           align="center"
@@ -305,7 +304,7 @@
305 304
         </el-table-column>
306 305
       </el-table>
307 306
 
308
-     
307
+
309 308
 
310 309
       <el-table
311 310
         v-if="his_is_open  == 1 || is_advice_open == 1"
@@ -360,7 +359,6 @@
360 359
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
361 360
               <span class="el-dropdown-link">
362 361
                 &emsp;{{ getAdviceContent(scope.row, 2)}}
363
-                 
364 362
                 <i class="el-icon-arrow-down el-icon--right"></i>
365 363
               </span>
366 364
               <el-dropdown-menu slot="dropdown">
@@ -608,6 +606,40 @@
608 606
       v-on:add-new-order="addNewOrder"
609 607
       :admin_users="admin_users"
610 608
     ></edit-group-advice>
609
+
610
+
611
+      <el-dialog
612
+          title="提示"
613
+          :visible.sync="infoDialogVisible"
614
+          width="30%">
615
+          <span>
616
+           <el-form>
617
+             <el-row>
618
+               <span>申请日期:</span>
619
+                <span>
620
+                    <el-date-picker
621
+                      type="datetime"
622
+                      format="yyyy-MM-dd HH:mm"
623
+                      value-format="yyyy-MM-dd HH:mm"
624
+                      placeholder="选择时间"
625
+                      v-model="selected_date"
626
+                  ></el-date-picker>
627
+                </span>
628
+             </el-row>
629
+             <el-row>
630
+               <span>备注:</span>
631
+                <span>
632
+                   <el-input v-model="remark" style="width:200px"></el-input>
633
+                </span>
634
+             </el-row>
635
+           </el-form>
636
+
637
+          </span>
638
+          <span slot="footer" class="dialog-footer">
639
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
640
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
641
+          </span>
642
+        </el-dialog>
611 643
   </div>
612 644
 </template>
613 645
 
@@ -783,7 +815,9 @@
783 815
         src_type:"",
784 816
         org_id:0,
785 817
         schedulePatient:{},
786
-        tempArrOne:[],
818
+        infoDialogVisible:false,
819
+        selected_date:"",
820
+        remark:""
787 821
       }
788 822
     },
789 823
     watch: {
@@ -798,40 +832,12 @@
798 832
         this.form['dialysis_order_id'] = this.dialysis_order.id
799 833
       },
800 834
 
801
-      'doctor_advices': function() {
802
-      
803
-        this.handleSpanTempArrOne();
804
-      },
805
-     
806 835
     },
807 836
     methods: {
808
-      handleSpanTempArrOne() {
809
-          this.tempArrOne = [];
810
-         
811
-          for (let i = 0; i < this.doctor_advices.length; i++) {
812
-            if (i === 0) {
813
-              this.tempArrOne.push(1);
814
-              this.pos = 0;
815
-            } else {
816
-              // 判断当前元素与上一个元素是否相同
817
-              if (
818
-                this.doctor_advices[i].groupno ===
819
-                this.doctor_advices[i - 1].groupno
820
-              ) {
821
-                this.tempArrOne[this.pos] += 1;
822
-                this.tempArrOne.push(0);
823
-              } else {
824
-                this.tempArrOne.push(1);
825
-                this.pos = i;
826
-              }
827
-            }
828
-          }
829
-      },
830 837
       handleSelectionChange(){
831 838
 
832 839
       },
833
-     
834
-    
840
+
835 841
       //调试
836 842
       lili(index,row){
837 843
         // console.log("==index==",index)
@@ -915,6 +921,9 @@
915 921
               response => {
916 922
                 if (response.data.state == 0) {
917 923
                   this.$message.error(response.data.msg);
924
+                  if(response.data.code == 600000008){
925
+                     this.infoDialogVisible = true
926
+                   }
918 927
                   return false;
919 928
                 } else {
920 929
                   this.$notify({
@@ -949,7 +958,6 @@
949 958
           return ''
950 959
         }
951 960
       },
952
-     
953 961
       submitEditAdvice() {
954 962
         // console.log()
955 963
         console.log("保存22222222222222")
@@ -975,6 +983,9 @@
975 983
           response => {
976 984
             if (response.data.state == 0) {
977 985
               this.$message.error(response.data.msg)
986
+              if(response.data.code == 600000008){
987
+               this.infoDialogVisible = true
988
+              }
978 989
               return false
979 990
             } else {
980 991
               this.$notify({
@@ -1283,6 +1294,9 @@
1283 1294
         ExecDoctorAdvice(this.patient.id, this.currentRow.id, this.execTime, mode,this.currentRow.origin).then(response => {
1284 1295
             if (response.data.state == 0) {
1285 1296
               this.$message.error(response.data.msg)
1297
+             if(response.data.code == 600000008){
1298
+               this.infoDialogVisible = true
1299
+             }
1286 1300
               this.exceLoading = false
1287 1301
               return false
1288 1302
             } else {
@@ -1377,6 +1391,9 @@
1377 1391
             this.loading = false
1378 1392
             if (response.data.state == 0) {
1379 1393
               this.$message.error(response.data.msg)
1394
+              if(response.data.code == 600000008){
1395
+               this.infoDialogVisible = true
1396
+              }
1380 1397
               return false
1381 1398
             } else {
1382 1399
               this.$notify({
@@ -1650,7 +1667,9 @@
1650 1667
               response => {
1651 1668
                 if (response.data.state == 0) {
1652 1669
                   this.$message.error(response.data.msg)
1653
-
1670
+                  if(response.data.code == 600000008){
1671
+                    this.infoDialogVisible = true
1672
+                  }
1654 1673
                   this.deleLoading = false
1655 1674
                   return false
1656 1675
                 } else {
@@ -1822,6 +1841,9 @@
1822 1841
             DeleteGroupAdvice(groupno, mode).then(response => {
1823 1842
               if (response.data.state == 0) {
1824 1843
                 this.$message.error(response.data.msg)
1844
+                if(response.data.code == 600000008){
1845
+                 this.infoDialogVisible = true
1846
+                }
1825 1847
                 return false
1826 1848
               } else {
1827 1849
                 this.$notify({
@@ -1870,6 +1892,9 @@
1870 1892
               this.deleLoading = false
1871 1893
               if (response.data.state == 0) {
1872 1894
                 this.$message.error(response.data.msg)
1895
+                if(response.data.code == 600000008){
1896
+                   this.infoDialogVisible = true
1897
+                }
1873 1898
                 return false
1874 1899
               } else {
1875 1900
                 this.$notify({
@@ -1911,6 +1936,9 @@
1911 1936
             DeleteDoctorAdvice(this.currentRow.id, mode).then(response => {
1912 1937
               this.deleLoading = false
1913 1938
               if (response.data.state == 0) {
1939
+                 if(response.data.code == 600000008){
1940
+                  this.infoDialogVisible = true
1941
+                 }
1914 1942
                 this.$message.error(response.data.msg)
1915 1943
                 return false
1916 1944
               } else {
@@ -2126,8 +2154,17 @@
2126 2154
         return true
2127 2155
       }
2128 2156
       ,
2129
-    
2130
-      
2157
+      mergeSpan({ row, column, rowIndex, columnIndex }) {
2158
+        if (columnIndex != 2) {
2159
+          const _row = this.tempArr[rowIndex]
2160
+          const _col = _row > 0 ? 1 : 0
2161
+          return {
2162
+            rowspan: _row,
2163
+            colspan: _col
2164
+          }
2165
+        }
2166
+      }
2167
+      ,
2131 2168
       handleSpanTempArr() {
2132 2169
         this.tempArr = []
2133 2170
 
@@ -2290,45 +2327,34 @@
2290 2327
         // });
2291 2328
       },
2292 2329
       objectSpanMethod({ row, column, rowIndex, columnIndex }) {
2293
-        console.log("hhhhhhhhhh",this.tempArrOne)
2294
-        //合并单元格
2295
-        if (columnIndex === 0 || columnIndex === 1 ) {
2296
-          const _row = this.tempArrOne[rowIndex];
2297
-          const _col = _row > 0 ? 1 : 0;
2298
-          console.log("_row====",_row)
2299
-          console.log("_row----------",_col)
2300
-          return {
2301
-            rowspan: _row,
2302
-            colspan: _col
2303
-          };
2304
-        }
2305
-        // if (columnIndex === 0) {
2306
-        //   if (rowIndex % 2 === 0) {
2307
-        //     return {
2308
-        //       rowspan: 2,
2309
-        //       colspan: 1
2310
-        //     }
2311
-        //   } else {
2312
-        //     return {
2313
-        //       rowspan: 0,
2314
-        //       colspan: 0
2315
-        //     }
2316
-        //   }
2317
-        // }
2318 2330
 
2319
-        // if (columnIndex === 1) {
2320
-        //   if (rowIndex % 2 === 0) {
2321
-        //     return {
2322
-        //       rowspan: 2,
2323
-        //       colspan: 1
2324
-        //     }
2325
-        //   } else {
2326
-        //     return {
2327
-        //       rowspan: 0,
2328
-        //       colspan: 0
2329
-        //     }
2330
-        //   }
2331
-        // }
2331
+        if (columnIndex === 0) {
2332
+          if (rowIndex % 2 === 0) {
2333
+            return {
2334
+              rowspan: 2,
2335
+              colspan: 1
2336
+            }
2337
+          } else {
2338
+            return {
2339
+              rowspan: 0,
2340
+              colspan: 0
2341
+            }
2342
+          }
2343
+        }
2344
+
2345
+        if (columnIndex === 1) {
2346
+          if (rowIndex % 2 === 0) {
2347
+            return {
2348
+              rowspan: 2,
2349
+              colspan: 1
2350
+            }
2351
+          } else {
2352
+            return {
2353
+              rowspan: 0,
2354
+              colspan: 0
2355
+            }
2356
+          }
2357
+        }
2332 2358
       }
2333 2359
       ,
2334 2360
       GetLastOrNextDoctorAdvice(params) {
@@ -2631,10 +2657,28 @@
2631 2657
          }
2632 2658
          console.log("nam e23233232322323wo",name)
2633 2659
          return name
2660
+      },
2661
+
2662
+     saveInformation(){
2663
+        var params = {
2664
+          selected_date:this.selected_date,
2665
+          patient_id:this.$route.query.patient_id,
2666
+          record_date:this.$route.query.date,
2667
+          module:2,
2668
+          remark:this.remark,
2669
+        }
2670
+        saveInformation(params).then(response=>{
2671
+           if(response.data.state == 1){
2672
+             var information = response.data.data.information
2673
+             this.$message.success("审核成功!")
2674
+             this.infoDialogVisible = false
2675
+           }
2676
+        })
2634 2677
       }
2678
+
2635 2679
     },
2636 2680
     created() {
2637
-     
2681
+
2638 2682
       var date = this.$route.query && this.$route.query.date
2639 2683
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
2640 2684
       this.form.advice_date = this.record_date

+ 99 - 59
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Näytä tiedosto

@@ -140,7 +140,7 @@
140 140
           >{{ item.name }}
141 141
         </el-radio>
142 142
       </el-radio-group>
143
-     
143
+
144 144
       </el-form-item>
145 145
 
146 146
       <el-form-item
@@ -208,7 +208,7 @@
208 208
           >高风险</el-radio
209 209
         >
210 210
       </el-radio-group>
211
- 
211
+
212 212
       </el-form-item>
213 213
 
214 214
       <el-form-item
@@ -335,16 +335,54 @@
335 335
     </el-form>
336 336
     <div slot="footer" class="dialog-footer">
337 337
       <el-button @click="handleCancle">取 消</el-button>
338
-      <!-- v-if="hasPermission"-->
339
-      <el-button type="primary"   @click="handleComfirm('receiveTreatmentAsses')"
338
+      <!--v-if="hasPermission" -->
339
+      <el-button type="primary"  @click="handleComfirm('receiveTreatmentAsses')"
340 340
         >保 存</el-button
341 341
       >
342 342
     </div>
343 343
   </el-dialog>
344
+
345
+
346
+ <el-dialog
347
+          title="提示"
348
+          :visible.sync="infoDialogVisible"
349
+          width="30%">
350
+          <span>
351
+           <el-form>
352
+             <el-row>
353
+               <span>申请日期:</span>
354
+                <span>
355
+                    <el-date-picker
356
+                      type="datetime"
357
+                      format="yyyy-MM-dd HH:mm"
358
+                      value-format="yyyy-MM-dd HH:mm"
359
+                      placeholder="选择时间"
360
+                      v-model="selected_date"
361
+                  ></el-date-picker>
362
+                </span>
363
+             </el-row>
364
+             <el-row>
365
+               <span>备注:</span>
366
+                <span>
367
+                   <el-input v-model="remark" style="width:200px"></el-input>
368
+                </span>
369
+             </el-row>
370
+           </el-form>
371
+
372
+          </span>
373
+          <span slot="footer" class="dialog-footer">
374
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
375
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
376
+          </span>
377
+        </el-dialog>
378
+
379
+  </div>
380
+
381
+
344 382
 </template>
345 383
 
346 384
 <script>
347
-import { postAccepts } from "@/api/dialysis";
385
+import { postAccepts,saveInformation } from "@/api/dialysis";
348 386
 import { uParseTime } from "@/utils/tools";
349 387
 import store from "@/store";
350 388
 import { getDataConfig } from "@/utils/data";
@@ -355,6 +393,7 @@ export default {
355 393
   name: "acceptsTreatmentDialog",
356 394
   data() {
357 395
     return {
396
+      isrequired:false,
358 397
       showTxt: "",
359 398
       hasPermission: true,
360 399
       isVisibility: false,
@@ -389,10 +428,11 @@ export default {
389 428
         tumble: "",
390 429
         his_department: "",
391 430
         his_bed: "",
392
-        falldown:[],
393 431
       },
394 432
       precautionTwo: [],
395
-      arr:[]
433
+      infoDialogVisible:false,
434
+      selected_date:"",
435
+      remark:"",
396 436
     };
397 437
   },
398 438
   methods: {
@@ -416,21 +456,22 @@ export default {
416 456
       }
417 457
       this.accepts = accepts;
418 458
       // console.log("accepts", accepts);
419
-      // var arr = [];
420
-      // if (this.accepts.precaution) {
421
-      //   var precaution = this.accepts.precaution.split(",");
422
-      //   // console.log("precaution", precaution);
423
-      //   // console.log("hhh", this.precaution_arr);
424
-      //   for (let i = 0; i < precaution.length; i++) {
425
-      //     for (let j = 0; j < this.precaution_arr.length; j++) {
426
-      //       if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
427
-      //         // console.log("aaaa");
428
-      //         this.arr.push(this.precaution_arr[j].name);
429
-      //       }
430
-      //     }
431
-      //   }
432
-      //   this.precautionTwo = this.arr;
433
-      // }
459
+      var arr = [];
460
+      if (this.accepts.precaution) {
461
+        var precaution = this.accepts.precaution.split(",");
462
+        // console.log("precaution", precaution);
463
+        // console.log("hhh", this.precaution_arr);
464
+        for (let i = 0; i < precaution.length; i++) {
465
+          for (let j = 0; j < this.precaution_arr.length; j++) {
466
+            if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
467
+              // console.log("aaaa");
468
+              arr.push(this.precaution_arr[j].name);
469
+            }
470
+          }
471
+        }
472
+        this.precautionTwo = arr;
473
+        // console.log("arr", arr);
474
+      }
434 475
 
435 476
       this.getPermission();
436 477
       for (var index in this.receiveTreatmentAsses) {
@@ -456,25 +497,10 @@ export default {
456 497
     },
457 498
     // 复选框跌倒风险措施
458 499
     precautionchange(){
459
-      // for (let i = 0; i < this.precaution_arr.length; i++) {
460
-      //   for (let j = 0; j < this.precautionTwo.length; j++) {
461
-      //     if (this.precaution_arr[i].name == this.precautionTwo[j]) {
462
-      //       this.arr.push(this.precaution_arr[i].id);
463
-      //     }
464
-      //   }
465
-      // } 
466
-      // var obj = this.arr.join(",");
467
-      // this.receiveTreatmentAsses.precaution = obj;
468
-
469
-      // this.receiveTreatmentAsses.falldown=this.precautionTwo
500
+
470 501
       if(this.precautionTwo.length>0){
471 502
         this.$refs.receiveTreatmentAsses.clearValidate('precautionTwo');
472 503
       }
473
-      console.log('this.precaution_arr',this.precautionTwo);
474
-      // console.log('arr的数据',this.receiveTreatmentAsses.falldown);
475
-      // console.log('sadffdasfdg',this.receiveTreatmentAsses.falldown.length);
476
-      // this.$refs[fromName].resetFields();
477
-      
478 504
     },
479 505
 
480 506
     handleComfirm: function (formName) {
@@ -485,12 +511,12 @@ export default {
485 511
             this.arr.push(this.precaution_arr[i].id);
486 512
           }
487 513
         }
488
-      } 
514
+      }
489 515
       // this.precautionchange()
490 516
       var obj = this.arr.join(",");
491 517
       this.receiveTreatmentAsses.precaution = obj;
492 518
       let ParamsQuery = this.receiveTreatmentAsses;
493
-      
519
+
494 520
       console.log("ParamsQuery", ParamsQuery);
495 521
       ParamsQuery["patient"] = this.patient.id;
496 522
       ParamsQuery["record_date"] = this.record_date;
@@ -554,7 +580,7 @@ export default {
554 580
     isCheckmust(name) {
555 581
       let filedList = store.getters.xt_user.fileds;
556 582
       for (let i = 0; i < filedList.length; i++) {
557
-        
583
+
558 584
         if (
559 585
           filedList[i].module == 2 &&
560 586
           filedList[i].filed_name_cn == name &&
@@ -571,19 +597,21 @@ export default {
571 597
                 trigger: ['blur','change']
572 598
               },
573 599
             ];
574
-          } 
575
-          // if(name == "跌倒风险预防措施" && this.precautionTwo.length<=0){
576
-          //   return [
577
-          //     { required: true, message: `请选择${name}`,trigger: ['blur','change'] },
578
-          //     {
579
-          //       required: true,
580
-          //       pattern: /^[1-9]\d*$/,
581
-          //       message: `请选择${name}`,
582
-          //       trigger: ['blur','change']
583
-          //     },
584
-          //   ];
585
-          // }
600
+          }
601
+          else if(name == "跌倒风险预防措施"){
602
+            if(this.precautionTwo.length<=0){
603
+              this.isrequired=false
604
+              return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
605
+
606
+            }
607
+            this.precautionchange()
608
+            this.isrequired=true
609
+            // return [{ required: true, message: '',trigger: ['blur','change'] }];
610
+          }else{
586 611
             return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
612
+
613
+          }
614
+
587 615
         }
588 616
       }
589 617
     },
@@ -605,7 +633,7 @@ export default {
605 633
     //             trigger: ['blur','change']
606 634
     //           },
607 635
     //         ];
608
-    //       } 
636
+    //       }
609 637
     //     }
610 638
     //   }
611 639
     // },
@@ -649,6 +677,23 @@ export default {
649 677
           }
650 678
         });
651 679
     },
680
+
681
+   saveInformation(){
682
+        var params = {
683
+          selected_date:this.selected_date,
684
+          patient_id:this.$route.query.patient_id,
685
+          record_date:this.$route.query.date,
686
+          module:2,
687
+          remark:this.remark,
688
+        }
689
+        saveInformation(params).then(response=>{
690
+           if(response.data.state == 1){
691
+             var information = response.data.data.information
692
+             this.$message.success("审核成功!")
693
+             this.infoDialogVisible = false
694
+           }
695
+        })
696
+      }
652 697
   },
653 698
   props: {
654 699
     receiver_treatment_access: {
@@ -678,7 +723,6 @@ export default {
678 723
     },
679 724
   },
680 725
   created() {
681
-    
682 726
     // console.log("接诊评估", this.receiver_treatment_access);
683 727
     var date = this.$route.query && this.$route.query.date;
684 728
     this.record_date = date
@@ -695,11 +739,7 @@ export default {
695 739
     // console.log("风险", this.precaution_arr);
696 740
     this.intake_arr = getDataConfig("hemodialysis", "intake");
697 741
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
698
-    
699 742
   },
700
-  // mounted(){
701
-  //   this.isFalldown()
702
-  // }
703 743
 };
704 744
 </script>
705 745
 

+ 69 - 52
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Näytä tiedosto

@@ -39,9 +39,10 @@
39 39
 
40 40
           <el-col :span="8">
41 41
             <el-form-item label="干体重(kg):"
42
-             :prop="isName('干体重')"
42
+              :prop="isName('干体重')"
43 43
               :rules="isCheckmust('干体重')"
44 44
                           v-if="isShow('干体重')">
45
+                          <!--  -->
45 46
               <el-input type="number" v-model="assessmentBeforeDislysis.dry_weight" readonly
46 47
                         @focus="showDryWeightDialog"></el-input>
47 48
             </el-form-item>
@@ -99,7 +100,6 @@
99 100
             </el-form-item>
100 101
           </el-col>
101 102
 
102
-
103 103
           <el-col :span="8">
104 104
             <el-form-item label="体温(℃):" :prop="isName('体温')"
105 105
               :rules="isCheckmust('体温')" v-if="isShow('体温')">
@@ -184,7 +184,6 @@
184 184
             </el-form-item>
185 185
           </el-col>
186 186
 
187
-
188 187
           <el-col :span="8">
189 188
             <el-form-item label="内瘘: " :prop="isName('内瘘')"
190 189
               :rules="isCheckmust('内瘘')" v-if="isShow('内瘘')">
@@ -193,14 +192,10 @@
193 192
             </el-form-item>
194 193
           </el-col>
195 194
 
196
-
197
-
198
-
199
-
200
-
201 195
           <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('其他出血情况')">
202
-            <el-form-item label="其他出血情况: " :prop="isName('其他出血情况')"
196
+            <el-form-item label="其他出血情况: " prop="hemorrhage_other"
203 197
               :rules="isCheckmust('其他出血情况')">
198
+              <!-- :prop="isName('其他出血情况')" -->
204 199
               <el-input v-model="assessmentBeforeDislysis.hemorrhage_other"></el-input>
205 200
             </el-form-item>
206 201
           </el-col>
@@ -225,11 +220,6 @@
225 220
             </el-form-item>
226 221
           </el-col>
227 222
 
228
-          <!-- </el-row>
229
-
230
-          <el-row :gutter="20"> -->
231
-
232
-
233 223
           <el-col :span="8">
234 224
             <el-form-item label="血管通路皮肤情况: " :prop="isName('血管通路皮肤情况')"
235 225
               :rules="isCheckmust('血管通路皮肤情况')" v-if="isShow('血管通路皮肤情况')">
@@ -269,8 +259,6 @@
269 259
             </el-form-item>
270 260
           </el-col>
271 261
 
272
-
273
-
274 262
           <!--<el-col :span="8">-->
275 263
           <!--<el-form-item label="附加物重(kg): ">-->
276 264
           <!--<el-input type="number" v-model="assessmentBeforeDislysis.additional_weight"></el-input>-->
@@ -279,7 +267,6 @@
279 267
 
280 268
           <!-- </el-row>
281 269
 
282
-
283 270
           <el-row :gutter="20"> -->
284 271
           <el-col :span="8">
285 272
             <el-form-item label="导管打折: " :prop="isName('导管打折')"
@@ -302,11 +289,7 @@
302 289
             </el-form-item>
303 290
           </el-col>
304 291
 
305
-
306
-
307 292
           <!-- </el-row>
308
-
309
-
310 293
           <el-row :gutter="20"> -->
311 294
 
312 295
           <el-col :span="8">
@@ -349,7 +332,6 @@
349 332
           </el-col>
350 333
 
351 334
 
352
-
353 335
           <el-col :span="8">
354 336
             <el-form-item label="出血: " :prop="isName('出血')"
355 337
               :rules="isCheckmust('出血')" v-if="isShow('出血')">
@@ -361,7 +343,6 @@
361 343
             </el-form-item>
362 344
           </el-col>
363 345
 
364
-
365 346
           <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('出血选项')">
366 347
             <el-form-item label="出血选项: " :prop="isName('出血选项')"
367 348
               :rules="isCheckmust('出血选项')">
@@ -371,8 +352,6 @@
371 352
             </el-form-item>
372 353
           </el-col>
373 354
 
374
-
375
-
376 355
            <el-col :span="8">
377 356
             <el-form-item label="血栓:" :prop="isName('血栓')"
378 357
               :rules="isCheckmust('血栓')" v-if="isShow('血栓')">
@@ -386,7 +365,7 @@
386 365
           
387 366
           <el-col :span="8">
388 367
             <el-form-item label="导管AV端约为(cm):" :prop="isName('导管AV端各约')"
389
-              :rules="isCheckmust('导管AV端各约')" v-show="thrombuShow" label-width="200px">
368
+              :rules="isCheckmust('导管AV端各约')" v-show="thrombuShow" label-width="150px">
390 369
               <el-input v-model="assessmentBeforeDislysis.thrombus_av" style="width:150px"></el-input>
391 370
             </el-form-item>
392 371
           </el-col>
@@ -421,7 +400,6 @@
421 400
             </el-form-item>
422 401
           </el-col>
423 402
 
424
-
425 403
           <el-col :span="8">
426 404
             <el-form-item label="并发症: " :prop="isName('并发症')"
427 405
               :rules="isCheckmust('并发症')" v-if="isShow('并发症')">
@@ -438,7 +416,6 @@
438 416
             </el-form-item>
439 417
           </el-col>
440 418
 
441
-
442 419
           <el-col :span="8">
443 420
             <el-form-item label="前次透析后症状:" :prop="isName('前次透析后症状')"
444 421
               :rules="isCheckmust('前次透析后症状')" v-if="isShow('前次透析后症状')">
@@ -446,7 +423,6 @@
446 423
             </el-form-item>
447 424
           </el-col>
448 425
 
449
-
450 426
           <el-col :span="8" v-if="isShow('急诊')">
451 427
             <el-form-item label="急诊: " :prop="isName('急诊')"
452 428
               :rules="isCheckmust('急诊')">
@@ -473,9 +449,6 @@
473 449
             </el-form-item>
474 450
           </el-col>
475 451
           
476
-
477
-          
478
-
479 452
           <el-col :span="8">
480 453
             <el-form-item label="透析期间: " :prop="isName('透析期间')"
481 454
               :rules="isCheckmust('透析期间')" v-if="isShow('透析期间')">
@@ -518,8 +491,6 @@
518 491
             </el-form-item>
519 492
           </el-col>
520 493
 
521
-
522
-
523 494
           <el-col :span="8" v-if="isShow('其他感染情况')">
524 495
             <el-form-item label="其他感染情况:" :prop="isName('其他感染情况')"
525 496
               :rules="isCheckmust('其他感染情况')">
@@ -527,9 +498,6 @@
527 498
             </el-form-item>
528 499
           </el-col>
529 500
 
530
-
531
-
532
-
533 501
           <el-col :span="8" v-if="isShow('外露')">
534 502
             <el-form-item label="外露(cm):" :prop="isName('外露')"
535 503
               :rules="isCheckmust('外露')">
@@ -537,10 +505,6 @@
537 505
             </el-form-item>
538 506
           </el-col>
539 507
 
540
-
541
-
542
-
543
-
544 508
           <el-col :span="8" v-if="isShow('其他皮肤情况')">
545 509
             <el-form-item label="其他皮肤情况:" :prop="isName('其他皮肤情况')"
546 510
               :rules="isCheckmust('其他皮肤情况')">
@@ -548,12 +512,6 @@
548 512
             </el-form-item>
549 513
           </el-col>
550 514
 
551
-
552
-
553
-
554
-
555
-
556
-
557 515
           <el-col :span="8">
558 516
             <el-form-item label="导管缝线:" :prop="isName('导管缝线')"
559 517
               :rules="isCheckmust('导管缝线')" v-if="isShow('导管缝线')">
@@ -684,8 +642,8 @@
684 642
       </el-form>
685 643
       <span slot="footer" class="dialog-footer">
686 644
                 <el-button @click="handleCancle">取 消</el-button>
687
-                 <!--  -->
688
-                <el-button type="primary" v-if="hasPermission" @click="handleComfirm('assessmentBeforeDislysis')">保 存</el-button>
645
+                 <!--v-if="hasPermission"  -->
646
+                <el-button type="primary"  @click="handleComfirm('assessmentBeforeDislysis')">保 存</el-button>
689 647
             </span>
690 648
     </el-dialog>
691 649
 
@@ -741,6 +699,40 @@
741 699
         <el-button type="primary" @click="submitDryWeight()">保 存</el-button>
742 700
       </div>
743 701
     </el-dialog>
702
+
703
+
704
+    <el-dialog
705
+          title="提示"
706
+          :visible.sync="infoDialogVisible"
707
+          width="30%">
708
+          <span>
709
+           <el-form>
710
+             <el-row>
711
+               <span>申请日期:</span>
712
+                <span>
713
+                    <el-date-picker
714
+                      type="datetime"
715
+                      format="yyyy-MM-dd HH:mm"
716
+                      value-format="yyyy-MM-dd HH:mm"
717
+                      placeholder="选择时间"
718
+                      v-model="selected_date"
719
+                  ></el-date-picker>
720
+                </span>
721
+             </el-row>
722
+             <el-row>
723
+               <span>备注:</span>
724
+                <span>
725
+                   <el-input v-model="remark" style="width:200px"></el-input>
726
+                </span>
727
+             </el-row>
728
+           </el-form>
729
+         
730
+          </span>
731
+          <span slot="footer" class="dialog-footer">
732
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
733
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
734
+          </span>
735
+        </el-dialog>
744 736
   </div>
745 737
 
746 738
 
@@ -750,7 +742,7 @@
750 742
   import axios from 'axios'
751 743
   import multiSelectBox from './MultiSelectBox'
752 744
   import { getDataConfig } from '@/utils/data'
753
-  import { postAssessmentBeforeDislysis, CreateDryWeight } from '@/api/dialysis'
745
+  import { postAssessmentBeforeDislysis, CreateDryWeight,saveInformation } from '@/api/dialysis'
754 746
   import store from '@/store'
755 747
   import { uParseTime } from '@/utils/tools'
756 748
   import { parseTime } from '@/utils'
@@ -893,7 +885,10 @@
893 885
         thrombuShow:false,
894 886
         body_weight_before:"",
895 887
         point_punctures:[],
896
-       
888
+        infoDialogVisible:false,
889
+        selected_date:"",
890
+        remark:""
891
+
897 892
       }
898 893
     },
899 894
     props: {
@@ -965,7 +960,9 @@
965 960
             filedList[i].is_show == 1
966 961
           ) {
967 962
             // console.log(filedList[i],'false')
968
-            if (name == "血管通路"||name == "导管打折"||name == '出血'||name == '血栓'||name == '围手术期'||name=='血管杂音'||name=='急诊'||name=='中心静脉导置管') {
963
+            if (name == "血管通路"||name == "导管打折"||name == '出血'||name == '血栓'||
964
+            name == '围手术期'||name=='血管杂音'||name=='急诊'||name=='中心静脉导置管' 
965
+            ) {
969 966
             return [
970 967
               { required: true, message: `请输入${name}` },
971 968
               {
@@ -1428,6 +1425,9 @@
1428 1425
           
1429 1426
           if (response.data.state == 0) {
1430 1427
             this.$message.error(response.data.msg)
1428
+            if(response.data.code == 600000008){
1429
+              this.infoDialogVisible = true
1430
+            }
1431 1431
             return false
1432 1432
           } else {
1433 1433
             this.$notify({
@@ -1562,6 +1562,23 @@
1562 1562
           }
1563 1563
         }
1564 1564
         return user_name
1565
+      },
1566
+    
1567
+      saveInformation(){
1568
+        var params = {
1569
+          selected_date:this.selected_date,
1570
+          patient_id:this.$route.query.patient_id,
1571
+          record_date:this.$route.query.date,
1572
+          module:2,
1573
+          remark:this.remark,
1574
+        }
1575
+        saveInformation(params).then(response=>{
1576
+           if(response.data.state == 1){
1577
+             var information = response.data.data.information
1578
+             this.$message.success("审核成功!")
1579
+             this.infoDialogVisible = false
1580
+           }
1581
+        })
1565 1582
       }
1566 1583
       
1567 1584
     },

+ 63 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue Näytä tiedosto

@@ -343,6 +343,41 @@
343 343
         </el-form-item>
344 344
       </el-form>
345 345
     </el-dialog>
346
+  
347
+
348
+     <el-dialog
349
+          title="提示"
350
+          :visible.sync="infoDialogVisible"
351
+          width="30%">
352
+          <span>
353
+           <el-form>
354
+             <el-row>
355
+               <span>申请日期:</span>
356
+                <span>
357
+                    <el-date-picker
358
+                      type="datetime"
359
+                      format="yyyy-MM-dd HH:mm"
360
+                      value-format="yyyy-MM-dd HH:mm"
361
+                      placeholder="选择时间"
362
+                      v-model="selected_date"
363
+                  ></el-date-picker>
364
+                </span>
365
+             </el-row>
366
+             <el-row>
367
+               <span>备注:</span>
368
+                <span>
369
+                   <el-input v-model="remark" style="width:200px"></el-input>
370
+                </span>
371
+             </el-row>
372
+           </el-form>
373
+         
374
+          </span>
375
+          <span slot="footer" class="dialog-footer">
376
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
377
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
378
+          </span>
379
+        </el-dialog>
380
+
346 381
   </div>
347 382
 </template>
348 383
 
@@ -420,7 +455,10 @@ export default {
420 455
       irrigations: [],
421 456
       summary:[],
422 457
       blood_access_option_name:"",
423
-      value2:""
458
+      value2:"",
459
+      infoDialogVisible:false,
460
+      selected_date:"",
461
+      remark:""
424 462
     };
425 463
   },
426 464
   props: {
@@ -891,7 +929,11 @@ export default {
891 929
               this.$emit("monitor", resp.data.monitor);
892 930
               this.$message.success("上机成功");
893 931
             } else {
932
+
894 933
               this.$message.error(resp.msg);
934
+              if(response.data.code == 600000008){
935
+                this.infoDialogVisible = true
936
+              }
895 937
             }
896 938
           });
897 939
         } else {
@@ -941,6 +983,9 @@ export default {
941 983
           }
942 984
         } else {
943 985
           this.$message.error(resp.msg);
986
+          if(response.data.code == 600000008){
987
+            this.infoDialogVisible = true
988
+          }
944 989
         }
945 990
       });
946 991
         }else{
@@ -1094,7 +1139,23 @@ export default {
1094 1139
       }
1095 1140
 
1096 1141
       return name
1097
-    }
1142
+    },
1143
+    saveInformation(){
1144
+        var params = {
1145
+          selected_date:this.selected_date,
1146
+          patient_id:this.$route.query.patient_id,
1147
+          record_date:this.$route.query.date,
1148
+          module:2,
1149
+          remark:this.remark,
1150
+        }
1151
+        saveInformation(params).then(response=>{
1152
+           if(response.data.state == 1){
1153
+             var information = response.data.data.information
1154
+             this.$message.success("审核成功!")
1155
+             this.infoDialogVisible = false
1156
+           }
1157
+        })
1158
+      }
1098 1159
   },
1099 1160
 };
1100 1161
 </script>

File diff suppressed because it is too large
+ 506 - 443
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue


+ 65 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Näytä tiedosto

@@ -1,4 +1,5 @@
1 1
 <template>
2
+   <div>
2 3
   <el-dialog
3 4
     title="双人核对"
4 5
     :visible.sync="isVisibility"
@@ -291,10 +292,50 @@
291 292
       >
292 293
     </div>
293 294
   </el-dialog>
295
+
296
+
297
+
298
+    <el-dialog
299
+          title="提示"
300
+          :visible.sync="infoDialogVisible"
301
+          width="30%">
302
+          <span>
303
+           <el-form>
304
+             <el-row>
305
+               <span>申请日期:</span>
306
+                <span>
307
+                    <el-date-picker
308
+                      type="datetime"
309
+                      format="yyyy-MM-dd HH:mm"
310
+                      value-format="yyyy-MM-dd HH:mm"
311
+                      placeholder="选择时间"
312
+                      v-model="selected_date"
313
+                  ></el-date-picker>
314
+                </span>
315
+             </el-row>
316
+             <el-row>
317
+               <span>备注:</span>
318
+                <span>
319
+                   <el-input v-model="remark" style="width:200px"></el-input>
320
+                </span>
321
+             </el-row>
322
+           </el-form>
323
+         
324
+          </span>
325
+          <span slot="footer" class="dialog-footer">
326
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
327
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
328
+          </span>
329
+        </el-dialog>
330
+ </div>
331
+
332
+ 
333
+
334
+  
294 335
 </template>
295 336
 
296 337
 <script>
297
-import { postDoubleCheck, changeRole } from "@/api/dialysis";
338
+import { postDoubleCheck, changeRole,saveInformation } from "@/api/dialysis";
298 339
 import { uParseTime } from "@/utils/tools";
299 340
 import { parseTime } from "@/utils";
300 341
 import { getDataConfig } from "@/utils/data";
@@ -357,6 +398,9 @@ export default {
357 398
       displace_liqui_value: "置换液总量:",
358 399
       job_number: "",
359 400
       org_id: 0,
401
+      infoDialogVisible:false,
402
+      selected_date:"",
403
+      remark:""
360 404
     };
361 405
   },
362 406
   methods: {
@@ -510,6 +554,9 @@ export default {
510 554
           console.log(ParamsQuery, "提交参数");
511 555
           postDoubleCheck(ParamsQuery).then((response) => {
512 556
             if (response.data.state == 0) {
557
+               if(response.data.code == 600000008){
558
+                this.infoDialogVisible = true
559
+              }
513 560
               this.$message.error(response.data.msg);
514 561
               return false;
515 562
             } else {
@@ -1841,6 +1888,23 @@ export default {
1841 1888
           (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
1842 1889
       }
1843 1890
     },
1891
+
1892
+   saveInformation(){
1893
+        var params = {
1894
+          selected_date:this.selected_date,
1895
+          patient_id:this.$route.query.patient_id,
1896
+          record_date:this.$route.query.date,
1897
+          module:5,
1898
+          remark:this.remark,
1899
+        }
1900
+        saveInformation(params).then(response=>{
1901
+           if(response.data.state == 1){
1902
+             var information = response.data.data.information
1903
+             this.$message.success("审核成功!")
1904
+             this.infoDialogVisible = false
1905
+           }
1906
+        })
1907
+      }
1844 1908
   },
1845 1909
   created() {
1846 1910
     var date = this.$route.query && this.$route.query.date;

+ 67 - 1
src/xt_pages/dialysis/details/dialog/finish_dialog.vue Näytä tiedosto

@@ -98,13 +98,48 @@
98 98
       v-on:dialog-comfirm="innerDialogComfirm"
99 99
       v-on:dialog-cancle="innerDialogCancle"
100 100
     ></multi-select-box>
101
+    
101 102
 
103
+       <el-dialog
104
+          title="提示"
105
+          :visible.sync="infoDialogVisible"
106
+          width="30%">
107
+          <span>
108
+           <el-form>
109
+             <el-row>
110
+               <span>申请日期:</span>
111
+                <span>
112
+                    <el-date-picker
113
+                      type="datetime"
114
+                      format="yyyy-MM-dd HH:mm"
115
+                      value-format="yyyy-MM-dd HH:mm"
116
+                      placeholder="选择时间"
117
+                      v-model="selected_date"
118
+                  ></el-date-picker>
119
+                </span>
120
+             </el-row>
121
+             <el-row>
122
+               <span>备注:</span>
123
+                <span>
124
+                   <el-input v-model="remark" style="width:200px"></el-input>
125
+                </span>
126
+             </el-row>
127
+           </el-form>
128
+         
129
+          </span>
130
+          <span slot="footer" class="dialog-footer">
131
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
132
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
133
+          </span>
134
+        </el-dialog>
135
+  
102 136
   </div>
103 137
 </template>
104 138
 
105 139
 <script>
106 140
   import axios from 'axios'
107 141
   import { finishDialysis,PostModifyFinishDialysis } from '@/api/dialysis_record'
142
+   import { saveInformation } from '@/api/dialysis'
108 143
   import { parseTime } from '@/utils'
109 144
   import multiSelectBox from './MultiSelectBox'
110 145
   import request from '@/utils/request'
@@ -149,6 +184,14 @@
149 184
         cruorOptions: [],
150 185
         required:false,
151 186
         education:[],
187
+        infoDialogVisible:false,
188
+        selected_date:"",
189
+        pickerOptions: {
190
+          disabledDate(time) {
191
+            return time.getTime() > Date.now()
192
+          }
193
+        },
194
+        remark:""
152 195
        
153 196
       }
154 197
     },
@@ -378,7 +421,9 @@
378 421
             PostModifyFinishDialysis(ParamsQuery).then(response => {
379 422
               if (response.data.state == 0) {
380 423
                 this.$message.error(response.data.msg)
381
-
424
+                 if(response.data.code == 600000008){
425
+                  this.infoDialogVisible = true
426
+                 }
382 427
                 return false;
383 428
               } else {
384 429
                 this.$message.success("修改成功")
@@ -432,6 +477,9 @@
432 477
 
433 478
               } else {
434 479
                 this.$message.error(resp.msg)
480
+               if(response.data.code == 600000008){
481
+                  this.infoDialogVisible = true
482
+                }
435 483
               }
436 484
             })
437 485
           }else{
@@ -522,6 +570,24 @@
522 570
       innerDialogCancle: function() {
523 571
         this.InnerDialogProps.visibility = false
524 572
       },
573
+
574
+      saveInformation(){
575
+        var params = {
576
+          selected_date:this.selected_date,
577
+          patient_id:this.$route.query.patient_id,
578
+          record_date:this.$route.query.date,
579
+          module:1,
580
+          remark:this.remark,
581
+        }
582
+        console.log("params32222222222----",params)
583
+        saveInformation(params).then(response=>{
584
+           if(response.data.state == 1){
585
+             var information = response.data.data.information
586
+             this.$message.success("审核成功!")
587
+             this.infoDialogVisible = false
588
+           }
589
+        })
590
+      }
525 591
     }
526 592
   }
527 593
 </script>

+ 31 - 42
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Näytä tiedosto

@@ -236,7 +236,7 @@
236 236
                 template_id == 56 ||
237 237
                 template_id == 60 ||
238 238
                 org_id == 10210 ||
239
-                org_id == 9555 
239
+                org_id == 9555
240 240
                 || org_id == 10432
241 241
                 || org_id == 10445
242 242
                 || org_id == 10410 ||
@@ -252,14 +252,14 @@
252 252
                   ? scope.row.ultrafiltration_volume
253 253
                   : "0"
254 254
               }}
255
-              </span> 
255
+              </span>
256 256
                <span v-if="org_id != 10440 && org_id!=9671">
257 257
               {{
258 258
                 scope.row.ultrafiltration_volume
259 259
                   ? scope.row.ultrafiltration_volume
260 260
                   : ""
261 261
               }}
262
-              </span> 
262
+              </span>
263 263
             </template>
264 264
           </el-table-column>
265 265
           <el-table-column
@@ -307,7 +307,7 @@
307 307
               template_id != 56 &&
308 308
               template_id != 60 &&
309 309
               org_id!= 10210 &&
310
-              org_id != 9555 
310
+              org_id != 9555
311 311
               && org_id!=10432 && org_id!=10445
312 312
               && org_id!=10410 && org_id!=10495 &&
313 313
                org_id!=10485 )
@@ -414,7 +414,7 @@
414 414
               template_id != 60 &&
415 415
               org_id!=10432 &&
416 416
               org_id!=10445 &&
417
-              org_id!=10410 && org_id!=10495) || 
417
+              org_id!=10410 && org_id!=10495) ||
418 418
               org_id == 10387
419 419
             "
420 420
           >
@@ -473,10 +473,10 @@
473 473
                 template_id == 53 ||
474 474
                 template_id == 54 ||
475 475
                 template_id == 56 ||
476
-                org_id ==10432 || 
477
-                org_id ==10445 || 
476
+                org_id ==10432 ||
477
+                org_id ==10445 ||
478 478
                 org_id ==10410
479
-              
479
+
480 480
                )
481 481
             "
482 482
           >
@@ -502,7 +502,7 @@
502 502
               template_id != 53 &&
503 503
               template_id != 54 &&
504 504
               template_id != 56 &&
505
-              org_id !=10432 && 
505
+              org_id !=10432 &&
506 506
               org_id !=10445 &&
507 507
               org_id !=10410
508 508
             "
@@ -907,7 +907,7 @@
907 907
           </el-table-column>
908 908
 
909 909
           <el-table-column
910
-           
910
+
911 911
             align="center"
912 912
             label="病情变化"
913 913
             width="130"
@@ -915,8 +915,8 @@
915 915
           >
916 916
            <template slot-scope="scope">
917 917
              {{scope.row.symptom}}
918
-            
919
-            
918
+
919
+
920 920
              <span v-if="(scope.$index == monitors.length - 1) && (org_id == 0 || org_id == 9671 || org_id == 10340)">累计血容量:{{scope.row.accumulated_blood_volume }}L</span>
921 921
             </template>
922 922
           </el-table-column>
@@ -1130,7 +1130,7 @@
1130 1130
                 template_id == 56 ||
1131 1131
                 template_id == 47 ||
1132 1132
                 template_id == 60 ||
1133
-                org_id== 10432 || 
1133
+                org_id== 10432 ||
1134 1134
                 org_id== 10445 ||
1135 1135
                 org_id== 10410) &&
1136 1136
                 org_id!=10387
@@ -1175,7 +1175,7 @@
1175 1175
               template_id != 56 &&
1176 1176
               template_id != 47 &&
1177 1177
               template_id != 60 &&
1178
-              org_id!=10432 && 
1178
+              org_id!=10432 &&
1179 1179
               org_id!=10445 &&
1180 1180
               org_id!=10410)
1181 1181
               || org_id == 10387
@@ -1233,7 +1233,7 @@
1233 1233
                 org_id == 10445 ||
1234 1234
                 org_id == 10410 ||
1235 1235
                 org_id == 10495 ||
1236
-                org_id == 10485) 
1236
+                org_id == 10485)
1237 1237
                 && org_id!=10387
1238 1238
             "
1239 1239
           >
@@ -1285,8 +1285,8 @@
1285 1285
               org_id !=  10210 &&
1286 1286
               org_id !=  10340 &&
1287 1287
               org_id != 9555 &&
1288
-              org_id!=10432 && 
1289
-              org_id!=10445 && 
1288
+              org_id!=10432 &&
1289
+              org_id!=10445 &&
1290 1290
               org_id!=10410 &&
1291 1291
               org_id!=10495 &&
1292 1292
               org_id!=10485
@@ -1387,8 +1387,8 @@
1387 1387
               template_id != 54 &&
1388 1388
               template_id != 56 &&
1389 1389
               template_id != 48 &&
1390
-              org_id!=10340 && 
1391
-              org_id!=10432 && 
1390
+              org_id!=10340 &&
1391
+              org_id!=10432 &&
1392 1392
               org_id!=10445
1393 1393
             "
1394 1394
           >
@@ -1895,7 +1895,7 @@ export default {
1895 1895
     );
1896 1896
     this.complicationList = getDataConfig("hemodialysis", "complication");
1897 1897
 
1898
-   
1898
+
1899 1899
   },
1900 1900
   methods: {
1901 1901
       isName(name) {
@@ -1912,13 +1912,13 @@ export default {
1912 1912
       for (let i = 0; i < filedList.length; i++) {
1913 1913
         if (
1914 1914
           filedList[i].module == 4
1915
-          &&filedList[i].filed_name_cn == name 
1915
+          &&filedList[i].filed_name_cn == name
1916 1916
           &&filedList[i].is_write == 1
1917 1917
         ) {
1918 1918
           // console.log(filedList[i].is_write,'false')
1919 1919
           // console.log(name,filedList[i].filed_name_cn,'难道不一样吗')
1920 1920
           return [{ required: true ,message:`请输入${name}` }];
1921
-        } 
1921
+        }
1922 1922
         // else {
1923 1923
         //   console.log(name,filedList[i].filed_name_cn,'难道不一样吗')
1924 1924
         //   // console.log(filedList[i].is_write,'true')
@@ -2060,7 +2060,7 @@ export default {
2060 2060
           ? (resp.monitor.operate_time + 3600) * 1000
2061 2061
           : Date.parse(new Date());
2062 2062
 
2063
-      
2063
+
2064 2064
         this.form.temperature = ""
2065 2065
 
2066 2066
         // this.last_monitor_record.pulse_frequency;
@@ -2125,7 +2125,7 @@ export default {
2125 2125
         this.form.dialysate_temperature = resp.monitor.dialysate_temperature
2126 2126
           ? resp.monitor.dialysate_temperature
2127 2127
           : "";
2128
-        
2128
+
2129 2129
          if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340 || this.org_id == 10469 || this.org_id == 10471){
2130 2130
             this.form.temperature = "36.5"
2131 2131
 
@@ -2168,7 +2168,7 @@ export default {
2168 2168
         }else{
2169 2169
            this.form.conductivity = resp.monitor.conductivity? resp.monitor.conductivity: "";
2170 2170
         }
2171
-      
2171
+
2172 2172
         this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant
2173 2173
           ? resp.monitor.monitor_anticoagulant
2174 2174
           : "";
@@ -2200,7 +2200,7 @@ export default {
2200 2200
           : "";
2201 2201
          if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
2202 2202
             this.form.dialysate_temperature = 36.5
2203
-            
2203
+
2204 2204
          }
2205 2205
       });
2206 2206
     },
@@ -2251,7 +2251,7 @@ export default {
2251 2251
         if(this.org_id != 9671 && this.org_id != 10440){
2252 2252
           this.form.ultrafiltration_volume = "";
2253 2253
         }
2254
-       
2254
+
2255 2255
         this.form.ultrafiltration_rate = "";
2256 2256
         this.form.arterial_pressure = "";
2257 2257
         this.form.arterial_pressure_type = 1;
@@ -2326,7 +2326,7 @@ export default {
2326 2326
             ? monitor.ultrafiltration_volume
2327 2327
             : "";
2328 2328
         }
2329
-        
2329
+
2330 2330
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
2331 2331
           ? monitor.ultrafiltration_rate
2332 2332
           : "";
@@ -2339,7 +2339,7 @@ export default {
2339 2339
           ? monitor.arterial_pressure
2340 2340
           : "";
2341 2341
         }
2342
-       
2342
+
2343 2343
         this.form.arterial_pressure_type = monitor.arterial_pressure_type
2344 2344
           ? monitor.arterial_pressure_type
2345 2345
           : "";
@@ -2402,7 +2402,7 @@ export default {
2402 2402
           : "";
2403 2403
         this.form.filter_pressure = monitor.filter_pressure
2404 2404
         ? monitor.filter_pressure
2405
-        : "";  
2405
+        : "";
2406 2406
         // 设置三个下拉框的值,直接调用事件偷懒
2407 2407
         this.symptomTextareaBlur();
2408 2408
         this.disposeTextareaBlur();
@@ -2546,7 +2546,6 @@ export default {
2546 2546
         parseFloat(this.form.dehydration) == NaN
2547 2547
           ? 0
2548 2548
           : parseFloat(this.form.dehydration);
2549
-        
2550 2549
       this.form.filter_pressure = this.form.filter_pressure?this.form.filter_pressure:""
2551 2550
 
2552 2551
       this.form.replacement_speed =
@@ -2716,16 +2715,6 @@ export default {
2716 2715
               parseFloat(this.form.heparin_amount) == NaN
2717 2716
                 ? 0
2718 2717
                 : parseFloat(this.form.heparin_amount);
2719
-
2720
-                this.form.replacement_speed =
2721
-            parseFloat(this.form.replacement_speed) == NaN
2722
-          ? 0
2723
-          : parseFloat(this.form.replacement_speed);
2724
-
2725
-          this.form.dicarbonate =
2726
-        parseFloat(this.form.dicarbonate) == NaN
2727
-          ? 0
2728
-          : parseFloat(this.form.dicarbonate);
2729 2718
             this.$message.error(resp.msg);
2730 2719
           }
2731 2720
         }
@@ -2737,7 +2726,7 @@ export default {
2737 2726
           }
2738 2727
         });
2739 2728
 
2740
-      
2729
+
2741 2730
     },
2742 2731
 
2743 2732
     symptomTextareaBlur: function () {

+ 69 - 1
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue Näytä tiedosto

@@ -1,4 +1,5 @@
1 1
 <template>
2
+ <div>
2 3
   <el-dialog
3 4
     class="newDialog"
4 5
     title="治疗小结"
@@ -152,11 +153,49 @@
152 153
         >保 存</el-button> <!--  -->
153 154
     </div>
154 155
   </el-dialog>
156
+
157
+       <el-dialog
158
+          title="提示"
159
+          :visible.sync="infoDialogVisible"
160
+          width="30%">
161
+          <span>
162
+           <el-form>
163
+             <el-row>
164
+               <span>申请日期:</span>
165
+                <span>
166
+                    <el-date-picker
167
+                      type="datetime"
168
+                      format="yyyy-MM-dd HH:mm"
169
+                      value-format="yyyy-MM-dd HH:mm"
170
+                      placeholder="选择时间"
171
+                      v-model="selected_date"
172
+                  ></el-date-picker>
173
+                </span>
174
+             </el-row>
175
+             <el-row>
176
+               <span>备注:</span>
177
+                <span>
178
+                   <el-input v-model="remark" style="width:200px"></el-input>
179
+                </span>
180
+             </el-row>
181
+           </el-form>
182
+         
183
+          </span>
184
+          <span slot="footer" class="dialog-footer">
185
+            <el-button @click="infoDialogVisible = false">取 消</el-button>
186
+            <el-button type="primary" @click="saveInformation">确 定</el-button>
187
+          </span>
188
+        </el-dialog>
189
+</div>
190
+
191
+
192
+
193
+
155 194
 </template>
156 195
 
157 196
 <script>
158 197
 import { getDataConfig } from "@/utils/data";
159
-import { postTreatmentsummary } from "@/api/dialysis";
198
+import { postTreatmentsummary,saveInformation } from "@/api/dialysis";
160 199
 import { uParseTime } from "@/utils/tools";
161 200
 import store from "@/store";
162 201
 import request from "@/utils/request";
@@ -208,6 +247,14 @@ export default {
208 247
       },
209 248
       //
210 249
       date: "",
250
+     infoDialogVisible:false,
251
+      selected_date:"",
252
+      pickerOptions: {
253
+        disabledDate(time) {
254
+          return time.getTime() > Date.now()
255
+        }
256
+      },
257
+      remark:""
211 258
     };
212 259
   },
213 260
   methods: {
@@ -352,6 +399,9 @@ export default {
352 399
           postTreatmentsummary(ParamsQuery).then((response) => {
353 400
             if (response.data.state == 0) {
354 401
               this.$message.error(response.data.msg);
402
+               if(response.data.code == 600000008){
403
+              this.infoDialogVisible = true
404
+             }
355 405
               return false;
356 406
             } else {
357 407
               this.$notify({
@@ -430,6 +480,24 @@ export default {
430 480
       }
431 481
       return false;
432 482
     },
483
+
484
+   saveInformation(){
485
+        var params = {
486
+          selected_date:this.selected_date,
487
+          patient_id:this.$route.query.patient_id,
488
+          record_date:this.$route.query.date,
489
+          module:1,
490
+          remark:this.remark,
491
+        }
492
+        console.log("params32222222222----",params)
493
+      saveInformation(params).then(response=>{
494
+           if(response.data.state == 1){
495
+             var information = response.data.data.information
496
+             this.$message.success("审核成功!")
497
+             this.infoDialogVisible = false
498
+           }
499
+        })
500
+     }
433 501
   },
434 502
   watch: {
435 503
     isVisibility(val) {},

+ 11 - 11
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue Näytä tiedosto

@@ -9,13 +9,13 @@
9 9
       />
10 10
       <img
11 11
         style="width: 100%; height: 80px"
12
-        v-if="org_id == 10278"
12
+        v-if="org_id == 10278 || org_id == 0"
13 13
         src="https://kuyi.shengws.com/beierlog.png"
14 14
         alt=""
15 15
       />
16 16
       <div class="printTitle">检验申请单</div>
17 17
 
18
-      <div style="border: 1px solid #000">
18
+      <div style="border: 1px solid #000;margin-bottom: 10px;">
19 19
         <div
20 20
           style="
21 21
             display: flex;
@@ -132,19 +132,19 @@
132 132
           </div>
133 133
         </div>
134 134
       </div>
135
-    </div>
136
-    <img
135
+      <img
137 136
       style="width: 100%"
138
-      v-if="org_id == 10138"
137
+      v-if="org_id == 10138 "
139 138
       src="https://kuyi.shengws.com/bailin/blend.jpg"
140 139
       alt=""
141 140
     />
142
-    <img
143
-      style="width: 100%"
144
-      v-if="org_id == 10278"
145
-      src="https://kuyi.shengws.com/bailinbeier.png"
146
-      alt=""
147
-    />
141
+      <img
142
+        style="width: 100%"
143
+        v-if="org_id == 10278 || org_id == 0"
144
+        src="https://kuyi.shengws.com/bailinbeier.png"
145
+        alt=""
146
+      />
147
+    </div>
148 148
   </div>
149 149
 </template>
150 150
 <script>

+ 1 - 0
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Näytä tiedosto

@@ -136,6 +136,7 @@
136 136
 
137 137
             <!-- <el-button size="small" ref="button_four"  @click="open(5)" type="primary" :disabled='prescriptions && prescriptions[0].advices && prescriptions[0].project ? prescriptions[0].advices.length == 0 && prescriptions[0].project.length == 0 : false'>存模板</el-button> -->
138 138
           </div>
139
+          
139 140
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
140 141
             <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>
141 142
             <el-button size="small" @click="opentwo(2)" type="primary">打印</el-button>