瀏覽代碼

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

陈少旭 3 週之前
父節點
當前提交
e292c3f4d9

+ 17 - 2
src/xt_pages/data/components/consumables.vue 查看文件

@@ -126,6 +126,12 @@
126 126
         </template>
127 127
       </el-table-column>
128 128
 
129
+      <el-table-column label="注册证名称" width="140" align="center">
130
+        <template slot-scope="scope">
131
+          {{ scope.row.register_number_name }}
132
+        </template>
133
+      </el-table-column>
134
+
129 135
       <!-- <el-table-column label="最小单位" width="60" align="center">
130 136
         <template slot-scope="scope">
131 137
           {{ getGoodUnit(scope.row.good_unit) }}
@@ -323,7 +329,6 @@
323 329
               retail_price:'',
324 330
               medical_insurance_number:'',
325 331
               provinces_code:'',
326
-
327 332
               is_special_diseases:'',
328 333
               is_record:'',
329 334
               statistics_category:'',
@@ -348,6 +353,7 @@
348 353
               min_unit:"",
349 354
               total:"",
350 355
               register_number:"",
356
+              register_number_name:"",
351 357
               is_user:"2",
352 358
               number:"",
353 359
               is_warehouse:"1",
@@ -555,7 +561,11 @@
555 561
             this.$message.error(response.data.msg);
556 562
             return false
557 563
           } else {
564
+            console.log("respons------------",this.goodInfo.goodInfoDialog.formValue.register_number_name)
565
+
566
+            console.log("respon23322323",response.data.data.goodInfo.register_number_name)
558 567
 
568
+            this.goodInfo.goodInfoDialog.formValue.register_number_name = response.data.data.goodInfo.register_number_name
559 569
             if (response.data.data.goodInfo.good_unit <= 0) {
560 570
               this.goodInfo.goodInfoDialog.formValue.good_unit = ''
561 571
             } else {
@@ -764,6 +774,9 @@
764 774
             this.goodInfo.goodInfoDialog.formValue.default_count_unit = response.data.data.goodInfo.default_count_unit
765 775
             this.goodInfo.goodInfoDialog.formValue.register_number = response.data.data.goodInfo.register_number
766 776
 
777
+          
778
+            // this.goodInfo.goodInfoDialog.formValue.register_number_name = response.data.data.goodInfo.register_number_name
779
+
767 780
             this.goodInfo.goodInfoDialog.formValue.bbx01 = response.data.data.goodInfo.bbx01
768 781
             this.goodInfo.goodInfoDialog.formValue.bby01 = response.data.data.goodInfo.bby01
769 782
 
@@ -787,9 +800,10 @@
787 800
               this.goodInfo.goodInfoDialog.formValue.is_zero_flag =  response.data.data.goodInfo.is_zero_flag.toString()
788 801
             }
789 802
 
790
-            console.log("hahhhhhhhhhhhhhh",response.data.data.goodInfo.split_of_number)
791 803
             this.goodInfo.goodInfoDialog.formValue.split_of_number = response.data.data.goodInfo.split_of_number
792 804
 
805
+        
806
+
793 807
 
794 808
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
795 809
 
@@ -1131,6 +1145,7 @@
1131 1145
         this.goodInfo.goodInfoDialog.formValue.agent = '';
1132 1146
         this.goodInfo.goodInfoDialog.formValue.good_number = '';
1133 1147
         this.goodInfo.goodInfoDialog.formValue.register_number = '';
1148
+        this.goodInfo.goodInfoDialog.formValue.register_number_name = '';
1134 1149
 
1135 1150
 
1136 1151
 

+ 0 - 1
src/xt_pages/dialysis/PatientBox.vue 查看文件

@@ -523,7 +523,6 @@ export default {
523 523
       // return nowYear - birthdayYear
524 524
     },
525 525
     getAge: function (val) {
526
-      console.log('1111111111222222',val);
527 526
       
528 527
       var thisLen = val.patient.id_card_no.length;
529 528
       var birth = "";

+ 14 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

@@ -921,6 +921,18 @@
921 921
         </el-table-column>
922 922
 
923 923
 
924
+        <el-table-column label="KTV" align="center" width="120">
925
+           <template slot-scope="scope">
926
+               <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
927
+                  <td style="border-right: none; border-inline-end: none;text-align: center">
928
+                    {{ item.ktv }}
929
+                  </td>
930
+               </tr>
931
+
932
+            </template>
933
+        </el-table-column>
934
+
935
+
924 936
        <el-table-column label="血流量" align="center" width="120" v-if="isShow('血流量')">
925 937
            <template slot-scope="scope">
926 938
                <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
@@ -2078,11 +2090,11 @@ export default {
2078 2090
               SchedualPatientsTable["sch_time"] = parseTime(response.data.data.schedule[i].schedule_date,"{y}-{m}-{d}");
2079 2091
               SchedualPatientsTable["mode_id"] = response.data.data.schedule[i].mode_id
2080 2092
                 
2081
-              if(response.data.data.schedule[i].prescription.dialyzer_perfusion_apparatus !=""){
2093
+              if(response.data.data.schedule[i].prescription!=null&&response.data.data.schedule[i].prescription.dialyzer_perfusion_apparatus !=""){
2082 2094
                 SchedualPatientsTable["dialysis_dialyszers_name"] = response.data.data.schedule[i].prescription.dialyzer_perfusion_apparatus 
2083 2095
               }
2084 2096
 
2085
-              if(response.data.data.schedule[i].prescription.dialyzer_perfusion_apparatus ==""){
2097
+              if(response.data.data.schedule[i].prescription!=null&&response.data.data.schedule[i].prescription.dialyzer_perfusion_apparatus ==""){
2086 2098
                 SchedualPatientsTable["dialysis_dialyszers_name"] = response.data.data.schedule[i].prescription.dialysis_dialyszers + response.data.data.schedule[i].prescription.dialysis_irrigation 
2087 2099
               }
2088 2100
              

+ 22 - 5
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -1385,11 +1385,13 @@
1385 1385
                     <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;" >
1386 1386
                       {{ data.day.split('-').slice(2).join('-') }}<br/>
1387 1387
                       <span v-for="(item,index) in orderList" :key="index" style="background: red;color: white;text-align: center;">
1388
-                        <span v-if="data.day == item.order_date">
1389
-                          {{ getModeId(item.mode_id) }}
1390
-                          <span v-if="item.schedual_type_name ==1">上午</span>
1391
-                          <span v-if="item.schedual_type_name ==2">下午</span>
1392
-                          <span v-if="item.schedual_type_name ==3">晚上</span>
1388
+                        <span  :class="[data.isSelected ? 'is-selected' : '',isFutureDate(data.day) ? 'future-date' : '']" >
1389
+                          <span v-if="data.day == item.order_date">
1390
+                            {{ getModeId(item.mode_id) }}
1391
+                            <span v-if="item.schedual_type_name ==1">上午</span>
1392
+                            <span v-if="item.schedual_type_name ==2">下午</span>
1393
+                            <span v-if="item.schedual_type_name ==3">晚上</span>
1394
+                          </span>
1393 1395
                         </span>
1394 1396
                       </span>
1395 1397
                     </p>
@@ -1811,6 +1813,13 @@ export default {
1811 1813
     this.websocketSend(unObj)
1812 1814
   },
1813 1815
   methods: {
1816
+    isFutureDate(dateString) {
1817
+      const today = new Date();
1818
+      today.setHours(0, 0, 0, 0); // 清除时间部分,只比较日期
1819
+      
1820
+      const date = new Date(dateString);
1821
+      return date > today;
1822
+    },
1814 1823
     scrollToCurrentRow() {
1815 1824
       this.$nextTick(() => {
1816 1825
         const tableRef = this.activeName === 'first' ? 'tab' : 'tab1'
@@ -3669,4 +3678,12 @@ export default {
3669 3678
     }
3670 3679
 }
3671 3680
 
3681
+.future-date {
3682
+  color:#e6f7ff;
3683
+}
3684
+/* 如果需要背景色而不是文字颜色 */
3685
+.future-date {
3686
+  background-color: #409eff;
3687
+}
3688
+
3672 3689
 </style>

+ 48 - 25
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -4405,7 +4405,7 @@ export default {
4405 4405
                     this.projects[i].project_team = this.projects[i].project.project_name
4406 4406
                     this.projects[i].advice_name = this.projects[i].project.project_name
4407 4407
                     this.projects[i].start_time = this.projects[i].start_time
4408
-                    this.projects[i].single_dose = this.projects[i].single_dose
4408
+                    this.projects[i].single_dose = this.projects[i].count
4409 4409
                     this.projects[i].single_dose_unit = this.projects[i].unit
4410 4410
                     this.projects[i].execution_time = this.projects[i].execution_time
4411 4411
                     this.projects[i].execution_staff = this.projects[i].execution_staff
@@ -4675,45 +4675,68 @@ export default {
4675 4675
     getAge: function (val) {
4676 4676
 
4677 4677
       if (val.id_card_no) {
4678
-        var thisLen = val.id_card_no.length
4679 4678
 
4680
-        var birth = ''
4679
+        var thisLen = val.id_card_no.length;
4680
+        var birth = "";
4681 4681
         if (thisLen == 15) {
4682
-          birth = '19' + val.id_card_no.substr(6, 6)
4682
+          birth = "19" + val.id_card_no.substr(6, 6);
4683 4683
         } else {
4684
-          birth = val.id_card_no.substr(6, 8)
4684
+          birth = val.id_card_no.substr(6, 8);
4685 4685
         }
4686 4686
         var birthtwo =
4687 4687
           birth.substr(0, 4) +
4688
-          '-' +
4688
+          "-" +
4689 4689
           birth.substr(4, 2) +
4690
-          '-' +
4691
-          birth.substr(6, 2)
4692
-        if (this.org_id != 10460 && this.org_id!=10751 && this.org_id == 0) {
4693
-          var age = jsGetAge(birthtwo, '-')
4694
-          return age
4690
+          "-" +
4691
+          birth.substr(6, 2);
4692
+
4693
+        var age = jsGetAge(birthtwo, "-");
4694
+        if(age >0){
4695
+          return age;
4696
+        }else {
4697
+           return val.age
4695 4698
         }
4699
+    
4700
+        // var thisLen = val.id_card_no.length
4701
+
4702
+        // var birth = ''
4703
+        // if (thisLen == 15) {
4704
+        //   birth = '19' + val.id_card_no.substr(6, 6)
4705
+        // } else {
4706
+        //   birth = val.id_card_no.substr(6, 8)
4707
+        // }
4708
+        // var birthtwo =
4709
+        //   birth.substr(0, 4) +
4710
+        //   '-' +
4711
+        //   birth.substr(4, 2) +
4712
+        //   '-' +
4713
+        //   birth.substr(6, 2)
4714
+        // if (this.org_id != 10460 && this.org_id!=10751) {
4715
+        //   var age = jsGetAge(birthtwo, '-')
4716
+        //   return age
4717
+        // }
4696 4718
 
4697
-        if (this.org_id == 10460) {
4698
-          console.log("日期搜哦", this.schedule_date_one)
4699
-          var strBirthdayArr = this.schedule_date_one.split("-")
4700
-          console.log("strBirthdayArr", strBirthdayArr)
4701
-          var yeaer = strBirthdayArr[0]
4702
-          var month = strBirthdayArr[1]
4703
-          var day = strBirthdayArr[2]
4704
-          var age = jsGetAgeOne(birthtwo, '-', yeaer, month, day)
4705
-          // console.log("agesssss",age)
4706
-          return age
4719
+        // if (this.org_id == 10460) {
4720
+        //   console.log("日期搜哦", this.schedule_date_one)
4721
+        //   var strBirthdayArr = this.schedule_date_one.split("-")
4722
+        //   console.log("strBirthdayArr", strBirthdayArr)
4723
+        //   var yeaer = strBirthdayArr[0]
4724
+        //   var month = strBirthdayArr[1]
4725
+        //   var day = strBirthdayArr[2]
4726
+        //   var age = jsGetAgeOne(birthtwo, '-', yeaer, month, day)
4727
+        //   // console.log("agesssss",age)
4728
+        //   return age
4707 4729
 
4708
-        }
4730
+        // }
4709 4731
 
4710
-        if(this.org_id ==10751 || this.org_id == 0){
4732
+        // if(this.org_id == 10751){
4711 4733
            
4712
-          return val.age
4713
-        }
4734
+        //   return val.age
4735
+        // }
4714 4736
 
4715 4737
       }
4716 4738
     },
4739
+    
4717 4740
     newAdviceGroupObject: function () {
4718 4741
       return Object.assign(
4719 4742
         {},

+ 34 - 2
src/xt_pages/management/components/ManageForm.vue 查看文件

@@ -270,18 +270,42 @@
270 270
             </el-form-item>
271 271
           </el-col>
272 272
           <el-col :span="8">
273
-            <el-form-item label="使用年限(年)" prop="user_year">
273
+            <el-form-item label="使用年限(年):" prop="user_year">
274 274
               <el-input style="width:135px" v-model="form.user_year"></el-input>
275 275
             </el-form-item>
276 276
           </el-col>
277 277
         </el-row>
278 278
         <el-row>
279 279
           <el-col :span="8">
280
-            <el-form-item label="工作时长(h)" prop="work_time">
280
+            <el-form-item label="工作时长(h):" prop="work_time">
281 281
               <el-input style="width:135px" v-model="form.work_time"></el-input>
282 282
             </el-form-item>
283 283
           </el-col>
284 284
 
285
+          <el-col :span="8">
286
+            <el-form-item label="产地:" prop="work_time">
287
+              <el-input style="width:135px" v-model="form.home_address"></el-input>
288
+            </el-form-item>
289
+          </el-col>
290
+
291
+          <el-col :span="8">
292
+            <el-form-item label="配置:" prop="work_time">
293
+              <el-input style="width:135px" v-model="form.home_setting"></el-input>
294
+            </el-form-item>
295
+          </el-col>
296
+
297
+          <el-col :span="8">
298
+            <el-form-item label="类别:" prop="work_time">
299
+              <el-input style="width:135px" v-model="form.home_type"></el-input>
300
+            </el-form-item>
301
+          </el-col>
302
+
303
+          <el-col :span="8">
304
+            <el-form-item label="设备类别:" prop="work_time">
305
+              <el-input style="width:135px" v-model="form.home_big_type"></el-input>
306
+            </el-form-item>
307
+          </el-col>
308
+
285 309
           <el-col :span="8">
286 310
             <el-form-item label="反渗模式:" v-show="reverseShow">
287 311
               <el-select style="width:135px" v-model="form.revers_mode">
@@ -408,6 +432,10 @@ export default {
408 432
         treat_type: [], // 治疗模式
409 433
         beds: "",
410 434
         zone_id:"",
435
+        home_address:"",
436
+        home_setting:"",
437
+        home_type:"",
438
+        home_big_type:"",
411 439
       },
412 440
       forms: {
413 441
         beds: ""
@@ -650,6 +678,10 @@ export default {
650 678
               this.form.user_year = "";
651 679
               this.form.work_time = "";
652 680
               this.form.unit_type = "";
681
+              this.form.home_address = ""
682
+              this.form.home_setting = ""
683
+              this.form.home_type = ""
684
+              this.form.home_big_type =""
653 685
               this.getAllSubregion();
654 686
               this.$emit("getAllMachineInfo");
655 687
               this.$forceUpdate();

+ 60 - 0
src/xt_pages/management/home.vue 查看文件

@@ -285,7 +285,32 @@
285 285
                                        <el-input style="width:150px" v-model="form.work_time" :disabled="disableThree"></el-input>
286 286
                                    </el-form-item>
287 287
                                 </el-col>
288
+                                <el-col :span="8">
289
+                                   <el-form-item label="产地:">
290
+                                       <el-input style="width:150px" v-model="form.home_address" :disabled="disableThree"></el-input>
291
+                                   </el-form-item>
292
+                                </el-col>
293
+                                <el-col :span="8">
294
+                                   <el-form-item label="配置:">
295
+                                       <el-input style="width:150px" v-model="form.home_setting" :disabled="disableThree"></el-input>
296
+                                   </el-form-item>
297
+                                </el-col>
288 298
                              </el-row>
299
+                             <el-row>
300
+                                <el-col :span="8">
301
+                                   <el-form-item label="类别:">
302
+                                       <el-input style="width:150px" v-model="form.home_type" :disabled="disableThree"></el-input>
303
+                                   </el-form-item>
304
+                                </el-col>
305
+                                <el-col :span="8">
306
+                                   <el-form-item label="设备类别:">
307
+                                       <el-input style="width:150px" v-model="form.home_big_type" :disabled="disableThree"></el-input>
308
+                                   </el-form-item>
309
+                                </el-col>
310
+                             </el-row>
311
+
312
+                            
313
+
289 314
                              <el-row>
290 315
                                  <el-form-item label="治疗模式:">
291 316
                                    <el-checkbox-group v-model="form.treat_mode" @change="handleCheckedCitiesChange">
@@ -514,6 +539,19 @@
514 539
                                          <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
515 540
                                      </el-form-item>
516 541
                                   </el-col>
542
+                                  
543
+                                <el-col :span="8">
544
+                                   <el-form-item label="产地:">
545
+                                       <el-input style="width:150px" v-model="form.home_address" :disabled="disableThree"></el-input>
546
+                                   </el-form-item>
547
+                                </el-col>
548
+
549
+                                <el-col :span="8">
550
+                                   <el-form-item label="产地:">
551
+                                       <el-input style="width:150px" v-model="form.home_setting" :disabled="disableThree"></el-input>
552
+                                   </el-form-item>
553
+                                </el-col>
554
+                           
517 555
                                  <el-col :span="8">
518 556
                                   <el-form-item label="反渗模式:">
519 557
                                       <el-select style="width:135px" v-model="form.revers_mode" :disabled="disableFour">
@@ -732,6 +770,20 @@
732 770
                                        <el-input style="width:150px" v-model="form.work_time" :disabled="disableFive"></el-input>
733 771
                                    </el-form-item>
734 772
                                 </el-col>
773
+                             </el-row>
774
+                             <el-row>
775
+                                <el-col :span="8">
776
+                                   <el-form-item label="产地:">
777
+                                       <el-input style="width:150px" v-model="form.home_address" :disabled="disableThree"></el-input>
778
+                                   </el-form-item>
779
+                                </el-col>
780
+                             </el-row>
781
+                             <el-row>
782
+                                <el-col :span="8">
783
+                                   <el-form-item label="产地:">
784
+                                       <el-input style="width:150px" v-model="form.home_setting" :disabled="disableThree"></el-input>
785
+                                   </el-form-item>
786
+                                </el-col>
735 787
                              </el-row>
736 788
                               <el-row>
737 789
                                <div class="but">
@@ -2802,6 +2854,10 @@ export default {
2802 2854
           beds: '',
2803 2855
           bed_numbers: '',
2804 2856
           zone_id:"",
2857
+          home_address:"",
2858
+          home_setting:"",
2859
+          home_type:"",
2860
+          home_big_type:"",
2805 2861
         },
2806 2862
         activeName: 'first',
2807 2863
         activeNameTwo: 'first',
@@ -3650,6 +3706,10 @@ export default {
3650 3706
             this.form.rubbish_reason = addmacher.rubbish_reason
3651 3707
             this.form.user_year = addmacher.user_year
3652 3708
             this.form.work_time = addmacher.work_time
3709
+            this.form.home_address = addmacher.home_address
3710
+            this.form.home_setting = addmacher.home_setting
3711
+            this.form.home_type = addmacher.home_type
3712
+            this.form.home_big_type = addmacher.home_big_type
3653 3713
 
3654 3714
             // eslint-disable-next-line eqeqeq
3655 3715
             if (addmacher.disinfection_mode == 0) {

+ 2 - 2
src/xt_pages/outpatientTool/labelPrint.vue 查看文件

@@ -138,8 +138,8 @@
138 138
                       </div>
139 139
                       <div style="margin-bottom:0px;">{{current_number}}</div>
140 140
                       <div style="display:flex;">
141
-                          <div style="font-size:15px;padding-left:20px;">{{current_project_name}}</div>
142
-                          <div style="font-size:15px;margin-left:20px;">{{current_name}}</div>
141
+                          <div style="font-size:18px;padding-left:20px;font-weight: bold">{{current_project_name}}</div>
142
+                          <div style="font-size:14px;margin-left:20px;font-weight: bold">{{current_name}}</div>
143 143
                       </div>
144 144
                   </div>
145 145
             </div>

+ 2 - 2
src/xt_pages/role/admin.vue 查看文件

@@ -219,7 +219,7 @@
219 219
           @click="toCheckPDFInformation">PDF验证</el-button> -->
220 220
 
221 221
 
222
-          <el-button
222
+          <!-- <el-button
223 223
           type="primary"
224 224
           size="small"
225 225
           icon="el-icon-circle-plus-outline"
@@ -232,7 +232,7 @@
232 232
           size="small"
233 233
           icon="el-icon-circle-plus-outline"
234 234
           style="float:left"
235
-          @click="toAutoDiagnose">自动脚本</el-button>
235
+          @click="toAutoDiagnose">自动脚本</el-button> -->
236 236
 
237 237
         <!-- <el-button
238 238
           type="primary"

+ 76 - 4
src/xt_pages/role/components/AdminInfoForm.vue 查看文件

@@ -92,6 +92,56 @@
92 92
         </el-col>
93 93
       </el-row>
94 94
 
95
+      <el-row :span="24">
96
+        <el-col :span="8">
97
+          <el-form-item label="出生日期:">
98
+            <el-date-picker
99
+                    v-model="form.birth"
100
+                    type="date"
101
+                    placeholder="选择日期"
102
+                    :suffix-icon="'el-icon-menu'"
103
+                    @change="hadSelectBirth"
104
+                    format="yyyy-MM-dd"
105
+                    value-format="yyyy-MM-dd"
106
+                  ></el-date-picker>
107
+          </el-form-item>
108
+        </el-col>
109
+
110
+        <el-col :span="8">
111
+          <el-form-item label="执业注册地:">
112
+            <el-input v-model="form.work_address" style="width:180px;"></el-input>
113
+          </el-form-item>
114
+        </el-col>
115
+      </el-row>
116
+
117
+      <el-row :span="24">
118
+        <el-col :span="8">
119
+          <el-form-item label="在该院开始执业时间:" :label-width="'200px'">
120
+            <el-date-picker
121
+                    v-model="form.work_start_time"
122
+                    type="date"
123
+                    placeholder="选择日期"
124
+                    :suffix-icon="'el-icon-menu'"
125
+                    format="yyyy-MM-dd"
126
+                    value-format="yyyy-MM-dd"
127
+                  ></el-date-picker>
128
+          </el-form-item>
129
+        </el-col>
130
+
131
+        <el-col :span="8">
132
+          <el-form-item label="在该院结束执业时间:"  :label-width="'200px'">
133
+            <el-date-picker
134
+                    v-model="form.work_end_time"
135
+                    type="date"
136
+                    placeholder="选择日期"
137
+                    :suffix-icon="'el-icon-menu'"
138
+                    format="yyyy-MM-dd"
139
+                    value-format="yyyy-MM-dd"
140
+                  ></el-date-picker>
141
+          </el-form-item>
142
+        </el-col>
143
+      </el-row>
144
+
95 145
       <div v-show="show">
96 146
         <el-row :span="24">
97 147
           <el-col :span="8">
@@ -198,7 +248,7 @@
198 248
             </el-form-item>
199 249
           </el-col>
200 250
           <el-col :span="8">
201
-            <el-form-item label="医药师业证编码:">
251
+            <el-form-item label="医药师业证编码:">
202 252
               <el-input v-model="form.doctor_code" style="width:170px;"></el-input>
203 253
             </el-form-item>
204 254
           </el-col>
@@ -525,7 +575,11 @@ export default {
525 575
         doctor_number: '',//医保医生编号
526 576
         outpatient_illnessCategory: '',//门诊大病类别
527 577
         is_active: '',//在职状态
528
-        active_status: ''//执业状态
578
+        active_status: '',//执业状态
579
+        birth:"",
580
+        work_address:"",
581
+        work_start_time:"",
582
+        work_end_time:"",
529 583
       },
530 584
       departMent: [],
531 585
       sexList: [
@@ -835,6 +889,14 @@ export default {
835 889
               this.form.active_status = ''
836 890
             }
837 891
 
892
+            this.form.work_address =  admin.work_address
893
+
894
+            this.form.work_end_time = this.getTime(admin.work_end_time) 
895
+
896
+            this.form.work_start_time = this.getTime(admin.work_start_time) 
897
+
898
+            this.form.birth = this.getTime(admin.birth) 
899
+
838 900
             var id = 0
839 901
             for (let i = 0; i < this.numberList.length; i++) {
840 902
               if (this.numberList[i].name == admin.outpatient_illness_category) {
@@ -946,7 +1008,11 @@ export default {
946 1008
               doctor_number: this.form.doctor_number,//医保医生编号
947 1009
               outpatient_illnessCategory: name,//门诊大病类别
948 1010
               is_active: this.form.is_active,//在职状态
949
-              active_status: this.form.active_status//执业状态
1011
+              active_status: this.form.active_status,//执业状态
1012
+              birth:this.form.birth,
1013
+              work_address:this.form.work_address,
1014
+              work_start_time:this.form.work_start_time,
1015
+              work_end_time:this.form.work_end_time
950 1016
 
951 1017
             }
952 1018
             console.log('params', params)
@@ -1024,7 +1090,13 @@ export default {
1024 1090
               doctor_number: this.form.doctor_number,//医保医生编号
1025 1091
               outpatient_illnessCategory: name,//门诊大病类别
1026 1092
               is_active: this.form.is_active,//在职状态
1027
-              active_status: this.form.active_status//执业状态
1093
+              active_status: this.form.active_status,//执业状态
1094
+              work_address:this.form.work_address,
1095
+              birth:this.form.birth,
1096
+              work_start_time:this.form.work_start_time,
1097
+              work_end_time:this.form.work_end_time
1098
+
1099
+
1028 1100
 
1029 1101
             }
1030 1102
             console.log('params2222222', params)

+ 92 - 0
src/xt_pages/role/departManage.vue 查看文件

@@ -38,6 +38,26 @@
38 38
                  {{scope.row.number}}
39 39
              </template>
40 40
          </el-table-column>
41
+         <el-table-column label="科室类型"  prop="ip" min-width="150" align="center">
42
+             <template slot-scope="scope">
43
+                 {{scope.row.department_type}}
44
+             </template>
45
+         </el-table-column>
46
+         <el-table-column label="负责人"  prop="ip" min-width="150" align="center">
47
+             <template slot-scope="scope">
48
+                 {{scope.row.lender}}
49
+             </template>
50
+         </el-table-column>
51
+         <el-table-column label="联系电话"  prop="ip" min-width="150" align="center">
52
+             <template slot-scope="scope">
53
+                 {{scope.row.phone}}
54
+             </template>
55
+         </el-table-column>
56
+         <el-table-column label="成立时间"  prop="ip" min-width="150" align="center">
57
+             <template slot-scope="scope">
58
+                 {{scope.row.start_time}}
59
+             </template>
60
+         </el-table-column>
41 61
         <el-table-column label="操作" width="160" align="center">
42 62
           <template slot-scope="scope">
43 63
             <el-tooltip
@@ -107,6 +127,34 @@
107 127
                   </el-form-item>
108 128
                  </el-col>
109 129
              </el-row>
130
+             <el-row :span="24" >
131
+                 <el-col :span="12">
132
+                   <el-form-item label="科室类型:">
133
+                      <el-input v-model="form.department_type"  style="width:200px"></el-input>
134
+                  </el-form-item>
135
+                 </el-col>
136
+             </el-row>
137
+             <el-row :span="24" >
138
+                 <el-col :span="12">
139
+                   <el-form-item label="负责人:">
140
+                      <el-input v-model="form.lender"  style="width:200px"></el-input>
141
+                  </el-form-item>
142
+                 </el-col>
143
+             </el-row>
144
+             <el-row :span="24" >
145
+                 <el-col :span="12">
146
+                   <el-form-item label="联系电话:">
147
+                      <el-input v-model="form.phone"  style="width:200px"></el-input>
148
+                  </el-form-item>
149
+                 </el-col>
150
+             </el-row>
151
+             <el-row :span="24" >
152
+                 <el-col :span="12">
153
+                   <el-form-item label="成立时间:">
154
+                      <el-input v-model="form.start_time"  style="width:200px"></el-input>
155
+                  </el-form-item>
156
+                 </el-col>
157
+             </el-row>
110 158
           </el-form>
111 159
         </span>
112 160
         <span slot="footer" class="dialog-footer">
@@ -136,6 +184,34 @@
136 184
                   </el-form-item>
137 185
                  </el-col>
138 186
              </el-row>
187
+             <el-row :span="24" >
188
+                 <el-col :span="12">
189
+                   <el-form-item label="科室类型:">
190
+                      <el-input v-model="form.department_type"  style="width:200px"></el-input>
191
+                  </el-form-item>
192
+                 </el-col>
193
+             </el-row>
194
+             <el-row :span="24" >
195
+                 <el-col :span="12">
196
+                   <el-form-item label="负责人:">
197
+                      <el-input v-model="form.lender"  style="width:200px"></el-input>
198
+                  </el-form-item>
199
+                 </el-col>
200
+             </el-row>
201
+             <el-row :span="24" >
202
+                 <el-col :span="12">
203
+                   <el-form-item label="联系电话:">
204
+                      <el-input v-model="form.phone"  style="width:200px"></el-input>
205
+                  </el-form-item>
206
+                 </el-col>
207
+             </el-row>
208
+             <el-row :span="24" >
209
+                 <el-col :span="12">
210
+                   <el-form-item label="成立时间:">
211
+                      <el-input v-model="form.start_time"  style="width:200px"></el-input>
212
+                  </el-form-item>
213
+                 </el-col>
214
+             </el-row>
139 215
           </el-form>
140 216
         </span>
141 217
         <span slot="footer" class="dialog-footer">
@@ -170,6 +246,10 @@ export default {
170 246
         id:0,
171 247
         name:"",
172 248
         number:"",
249
+        department_type:"",
250
+        lender:"",
251
+        phone:"",
252
+        start_time:""
173 253
       },
174 254
       limit:20,
175 255
       page:1,
@@ -202,6 +282,10 @@ export default {
202 282
          var params = {
203 283
             name:this.form.name,
204 284
             number:this.form.number,
285
+            department_type:this.form.department_type,
286
+            lender:this.form.lender,
287
+            phone:this.form.phone,
288
+            start_time:this.form.start_time,
205 289
          }
206 290
        this.$refs[formName].validate((valid)=>{
207 291
           SaveDepartment(params).then(response=>{
@@ -243,6 +327,10 @@ export default {
243 327
            this.form.id = departDetail.id
244 328
            this.form.name = departDetail.name
245 329
            this.form.number = departDetail.number
330
+           this.form.department_type = departDetail.department_type
331
+           this.form.lender = departDetail.lender
332
+           this.form.phone = departDetail.phone
333
+           this.form.start_time = departDetail.start_time
246 334
          }
247 335
       })
248 336
     },
@@ -252,6 +340,10 @@ export default {
252 340
             id:this.form.id,
253 341
             name:this.form.name,
254 342
             number:this.form.number,
343
+            department_type:this.form.department_type,
344
+            lender:this.form.lender,
345
+            phone:this.form.phone,
346
+            start_time:this.form.start_time,
255 347
          }
256 348
        this.$refs[formName].validate((valid)=>{
257 349
           UpdatedDepartment(params).then(response=>{

+ 8 - 0
src/xt_pages/stock/Dialog/goodInfoDailog.vue 查看文件

@@ -207,6 +207,10 @@
207 207
               <el-input v-model="form.register_number" style="width:180px"></el-input>
208 208
             </el-form-item>
209 209
 
210
+            <el-form-item label="注册证名称:" >
211
+              <el-input v-model="form.register_number_name" style="width:180px"></el-input>
212
+            </el-form-item>
213
+
210 214
             <el-form-item label="是否零用:">
211 215
 
212 216
               <el-select v-model="form.is_user" style="width:160px" filterable placeholder="请选择" @change="changeUse">
@@ -438,6 +442,7 @@
438 442
           min_unit:"",
439 443
           total:"",
440 444
           register_number:"",
445
+          register_number_name:"",
441 446
           is_user:"2",
442 447
           number:"",
443 448
           is_warehouse:"1",
@@ -585,6 +590,8 @@
585 590
               bbx01:"",
586 591
               bby01:"",
587 592
               split_of_number:"",
593
+              register_number:"",
594
+              register_number_name:""
588 595
             }
589 596
           this.good_status = []
590 597
           for (let key in tempform) {
@@ -677,6 +684,7 @@
677 684
         form["default_count_unit"] = this.form.default_count_unit
678 685
         form["total"] = this.form.total
679 686
         form["register_number"] = this.form.register_number
687
+        form["register_number_name"] = this.form.register_number_name
680 688
         form["is_user"] = this.form.is_user
681 689
         form["number"] = this.form.number
682 690
         form["is_warehouse"] = this.form.is_warehouse

+ 2 - 2
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue 查看文件

@@ -7,7 +7,7 @@
7 7
     </div>
8 8
     <div class="app-container ">
9 9
       <div id="dialysis-print-box">
10
-        <div v-if="orgId!=9671 && orgId!=9675 && orgId!=10210 && orgId!=10188 && orgId!=10127 && orgId!=10164 && orgId!=3877 && orgId!=10387 && orgId!=0  && orgId!=10697">
10
+        <div v-if="orgId!=9671 && orgId!=9675 && orgId!=10210 && orgId!=10188 && orgId!=10127 && orgId!=10164 && orgId!=3877 && orgId!=10387 && orgId!=0  && orgId!=10697 && orgId!=10744&& orgId!=9478&& orgId!=10751">
11 11
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
12 12
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
13 13
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
@@ -78,7 +78,7 @@
78 78
       </div> 
79 79
 
80 80
 
81
-      <div v-if="orgId == 9671 || orgId == 9675 ||  orgId == 10210 || orgId == 10188 || orgId == 10127 || orgId ==10164 || orgId ==3877 || orgId == 0 || orgId ==10387 || orgId == 10697">
81
+      <div v-if="orgId == 9671 || orgId == 9675 ||  orgId == 10210 || orgId == 10188 || orgId == 10127 || orgId ==10164 || orgId ==3877 || orgId == 0 || orgId ==10387 || orgId == 10697 || orgId == 10744 || orgId == 9478 || orgId == 10751">
82 82
        <div class="dialysis-print-order" v-for="(it,index) in tableData" :key="index" >
83 83
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
84 84
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>

+ 4 - 0
src/xt_pages/stock/stockOutOrderAdd.vue 查看文件

@@ -589,6 +589,8 @@ export default {
589 589
       tempObj['register_number'] = ''
590 590
       tempObj['patient_id'] =0
591 591
       tempObj["class_type"] = ""
592
+      tempObj["dealer"] = ""
593
+      tempObj["manufacturer"] = ""
592 594
       this.recordInfo.recordData.push(tempObj);
593 595
     },
594 596
     handleDelete: function(index, row) {
@@ -1134,6 +1136,8 @@ export default {
1134 1136
     tempObj["product_date"] = ""
1135 1137
     tempObj["expiry_date"] = ""
1136 1138
     tempObj["count"] = ""
1139
+    tempObj["dealer"] = ""
1140
+    tempObj["manufacturer"] = ""
1137 1141
    
1138 1142
     this.recordInfo.recordData.push(tempObj);
1139 1143
     this.GetConfigInfo();

+ 3 - 1
src/xt_pages/user/Informed/Informedconsent.vue 查看文件

@@ -169,7 +169,7 @@
169 169
                 </div>
170 170
 
171 171
                 <div v-if="template_id==30">
172
-                  <informef_Thrity></informef_Thrity>
172
+                  <informef_Thrity :patient_id="this.patientID" ref="childthrity"></informef_Thrity>
173 173
                 </div> 
174 174
 
175 175
                 <div v-if="template_id==31">
@@ -554,6 +554,8 @@ export default {
554 554
 
555 555
       }else if(row.value == 24){
556 556
 
557
+      }else if(row.value == 30){
558
+
557 559
       }
558 560
       console.log('11112',this.template_id);
559 561
     },

+ 132 - 41
src/xt_pages/user/Informed/components/informef_Thrity.vue 查看文件

@@ -2,25 +2,55 @@
2 2
   <div class="anticoagulation-consent">
3 3
     <div class="toolbar">
4 4
       <el-button type="primary" size="small" @click="editContent">编辑内容</el-button>
5
-      <el-button type="success" size="small" @click="printDocument">打印文档</el-button>
6
-      <el-button size="small" @click="resetForm">重置表单</el-button>
5
+      <el-button type="success" size="small" @click="printDocument">打印</el-button>
7 6
     </div>
8 7
 
9
-    <div id="printable-content" class="document-container">
8
+    <!-- <div id="print_content"class="document-container">
10 9
       <h1 class="document-title">血液净化抗凝治疗知情同意书</h1>
11 10
 
12
-      <!-- 患者信息表格 -->
11
+     
13 12
       <table class="patient-info-table">
14 13
         <tr>
15
-          <td width="25%"><strong>患者姓名</strong>: {{ form.patientName || '_________________' }}</td>
16
-          <td width="25%"><strong>性别</strong>: {{ form.gender || '______' }}</td>
17
-          <td width="25%"><strong>年龄</strong>: {{ form.age || '______' }}</td>
18
-          <td width="25%"><strong>病案号</strong>: {{ form.medicalRecordNo || '_________________' }}</td>
14
+          <td width="25%"><strong>患者姓名</strong>:
15
+            {{ patient.name }}
16
+           </td>
17
+          <td width="25%"><strong>性别</strong>:
18
+           <span v-if="patient.gender ==1">男</span> 
19
+           <span v-if="patient.gender ==2">女</span> 
20
+           </td>
21
+          <td width="25%"><strong>年龄</strong>: 
22
+          {{ patient.age}}</td>
23
+          <td width="25%"><strong>病案号</strong>: {{ patient.admission_number }}</td>
19 24
         </tr>
20 25
       </table>
21 26
 
22
-      <!-- 富文本内容区域 -->
27
+     
23 28
       <div class="rich-text-content" v-html="formattedContent"></div>
29
+    </div> -->
30
+
31
+    <div id="print_content">
32
+          <div class="print_page_main_content">
33
+          <div class="content">
34
+            <div style="text-align: center;font-size: 20px;">{{ orgname }}</div>
35
+            <div style="text-align: center;font-size: 20px;">血液净化中心首次透析病人护理宣教单</div>
36
+            <h2 style="text-align: center;"></h2>
37
+            <table class="patient-info-table">
38
+                <tr>
39
+                  <td width="25%"><strong>患者姓名</strong>:
40
+                    {{ patient.name }}
41
+                  </td>
42
+                  <td width="25%"><strong>性别</strong>:
43
+                  <span v-if="patient.gender ==1">男</span> 
44
+                  <span v-if="patient.gender ==2">女</span> 
45
+                  </td>
46
+                  <td width="25%"><strong>年龄</strong>: 
47
+                  {{ patient.age}}</td>
48
+                  <td width="25%"><strong>病案号</strong>: {{ patient.admission_number }}</td>
49
+                </tr>
50
+            </table>
51
+            <div class="rich-text-content" v-html="formattedContent"></div>
52
+          </div>
53
+        </div>
24 54
     </div>
25 55
 
26 56
     <!-- 富文本编辑器弹窗 -->
@@ -75,15 +105,21 @@
75 105
 </template>
76 106
 
77 107
 <script>
78
-import { printJS } from 'print-js'
108
+
109
+import print from "print-js";
79 110
 import Editor from '@/components/Editor'
111
+import { getPatientDetailInformedconsent  } from '@/api/patient'
80 112
 export default {
113
+  patient_id: {
114
+    type: Number,
115
+   },
81 116
   name: 'AnticoagulationConsentForm',
82 117
   components: {
83 118
     Editor
84 119
   },
85 120
   data() {
86 121
     return {
122
+      patient:{},
87 123
       editorVisible: false,
88 124
       patientInfoVisible: false,
89 125
       editorContent: '',
@@ -220,9 +256,22 @@ export default {
220 256
     }
221 257
   },
222 258
   created() {
223
-    this.loadFormData()
259
+    this.orgname = this.$store.getters.xt_user.org.org_name;
260
+    
261
+    this.getlist()
262
+    this.org_id = this.$store.getters.xt_user.org.id
263
+    
224 264
   },
225 265
   methods: {
266
+    getlist(){
267
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
268
+          if(response.data.state == 1){
269
+            var patient =  response.data.data.patients
270
+            console.log("patinet----------------------------",patient)
271
+            this.patient =patient
272
+          }
273
+        })
274
+    },
226 275
     loadFormData() {
227 276
       getConsentForm().then(response => {
228 277
         if (response.data) {
@@ -255,35 +304,44 @@ export default {
255 304
       this.patientInfoVisible = false
256 305
     },
257 306
     printDocument() {
258
-      printJS({
259
-        printable: 'printable-content',
260
-        type: 'html',
261
-        documentTitle: '血液净化抗凝治疗知情同意书',
262
-        scanStyles: false,
263
-        style: `
264
-          @page { size: A4; margin: 1cm; }
265
-          body { font-family: "SimSun", "宋体", serif; font-size: 14px; line-height: 1.5; }
266
-          .document-title { text-align: center; font-size: 18px; font-weight: bold; margin-bottom: 20px; }
267
-          .patient-info-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
268
-          .patient-info-table td { padding: 5px 0; }
269
-          .rich-text-content h3 { font-size: 16px; font-weight: bold; margin: 15px 0 10px 0; }
270
-          .rich-text-content h4 { font-size: 15px; font-weight: bold; margin: 12px 0 8px 0; }
271
-          .rich-text-content ul, .rich-text-content ol { margin: 10px 0 10px 20px; }
272
-          .rich-text-content li { margin-bottom: 5px; }
273
-          .rich-text-content p { margin: 8px 0; }
274
-          .signature-section { margin-top: 30px; }
275
-          .signature-row { margin-bottom: 20px; }
276
-          .signature-box { display: inline-block; margin-right: 40px; vertical-align: top; }
277
-          .note { font-style: italic; margin-bottom: 10px; }
278
-          .signature-line, .date-line, .relationship-line { 
279
-            display: inline-block; 
280
-            min-width: 150px; 
281
-            border-bottom: 1px solid #000; 
282
-          }
283
-          .date-line { min-width: 120px; }
284
-          .relationship-line { min-width: 80px; }
285
-        `
286
-      })
307
+
308
+      const style = '@media print {  .table tr td{border: 1px solid black;text-align: center;align-items: center;}}'
309
+          printJS({
310
+              printable: 'print_content',
311
+              type: 'html',
312
+              documentTitle: '  ',
313
+              style: style,
314
+              scanStyles: false
315
+          })
316
+      // printJS({
317
+      //   printable: 'printable-content',
318
+      //   type: 'html',
319
+      //   documentTitle: '血液净化抗凝治疗知情同意书',
320
+      //   scanStyles: false,
321
+      //   style: `
322
+      //     @page { size: A4; margin: 1cm; }
323
+      //     body { font-family: "SimSun", "宋体", serif; font-size: 14px; line-height: 1.5; }
324
+      //     .document-title { text-align: center; font-size: 18px; font-weight: bold; margin-bottom: 20px; }
325
+      //     .patient-info-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
326
+      //     .patient-info-table td { padding: 5px 0; }
327
+      //     .rich-text-content h3 { font-size: 16px; font-weight: bold; margin: 15px 0 10px 0; }
328
+      //     .rich-text-content h4 { font-size: 15px; font-weight: bold; margin: 12px 0 8px 0; }
329
+      //     .rich-text-content ul, .rich-text-content ol { margin: 10px 0 10px 20px; }
330
+      //     .rich-text-content li { margin-bottom: 5px; }
331
+      //     .rich-text-content p { margin: 8px 0; }
332
+      //     .signature-section { margin-top: 30px; }
333
+      //     .signature-row { margin-bottom: 20px; }
334
+      //     .signature-box { display: inline-block; margin-right: 40px; vertical-align: top; }
335
+      //     .note { font-style: italic; margin-bottom: 10px; }
336
+      //     .signature-line, .date-line, .relationship-line { 
337
+      //       display: inline-block; 
338
+      //       min-width: 150px; 
339
+      //       border-bottom: 1px solid #000; 
340
+      //     }
341
+      //     .date-line { min-width: 120px; }
342
+      //     .relationship-line { min-width: 80px; }
343
+      //   `
344
+      // })
287 345
     },
288 346
     resetForm() {
289 347
       this.$confirm('确定要重置表单内容吗?', '提示', {
@@ -362,4 +420,37 @@ export default {
362 420
     padding: 0;
363 421
   }
364 422
 }
365
-</style>
423
+</style>
424
+
425
+<style lang="scss" scoped>
426
+
427
+*{
428
+  // margin: 0;
429
+  // padding: 0;
430
+  border: 0;
431
+}
432
+  .content{
433
+      p{
434
+        font-size: 16px;
435
+        font-family: '新宋体';
436
+        line-height: 22px;
437
+        // padding-left: 20px;
438
+        // margin-bottom: 5px;
439
+        text-align: justify;
440
+      }
441
+  }
442
+  .print_page_main_content {
443
+    background-color: white;
444
+    width: 100%;
445
+    padding: 0 0 0 0;
446
+    page-break-after: always;
447
+  }
448
+  .table tr{
449
+    page-break-inside:avoid
450
+  }
451
+  .table tr td{
452
+    border: 1px solid black;
453
+    // text-align: center;
454
+    // align-items: center;
455
+  }
456
+</style>

+ 9 - 1
src/xt_pages/user/courseOfDisease_new.vue 查看文件

@@ -3675,11 +3675,19 @@ ${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${
3675 3675
         getInspectionByProjectId(params).then(response=>{
3676 3676
           if(response.data.state == 1){
3677 3677
             var inspection =  response.data.data.inspection
3678
+            var referenceList = response.data.data.referenceList
3679
+            console.log("referenctLit=====",referenceList)
3678 3680
             var inspection_str = i.project_name + "-"+"检验日期:"+this.getTime(i.inspect_date)+";"
3679 3681
             if(inspection!=null && inspection.length>0){
3680 3682
               for(let i=0;i<inspection.length;i++){
3683
+                inspection[i].unit = ""
3684
+               for(let j=0;j<referenceList.length;j++){
3685
+                 if(inspection[i].item_id == referenceList[j].id){
3686
+                    inspection[i].unit = referenceList[j].unit
3687
+                 }
3688
+               }
3681 3689
                 if(inspection[i].inspect_value!=""){
3682
-                  inspection_str += inspection[i].item_name+":" + inspection[i].inspect_value+","
3690
+                  inspection_str += inspection[i].item_name+ "("+inspection[i].unit+")"+":" + inspection[i].inspect_value+","
3683 3691
                 }
3684 3692
 
3685 3693
               }

+ 316 - 26
src/xt_pages/workforce/components/editTableData.vue 查看文件

@@ -75,9 +75,9 @@
75 75
                   <span v-if="scope.row.is_infectious != 2" >
76 76
                     {{scope.row.name  }}
77 77
                   </span>
78
-                  <!-- <span class="touxi_cishu"  @click="chishuclick(scope.row.name)">
79
-                    0/4
80
-                  </span> -->
78
+                  <span class="touxi_cishu"  @click="chishuclick(scope.row)">
79
+                    历史
80
+                  </span>
81 81
               </template>
82 82
               </el-table-column>
83 83
             </el-table>
@@ -1960,29 +1960,32 @@
1960 1960
       :modal-append-to-body='false'
1961 1961
       :close-on-click-modal="false">
1962 1962
       <div>
1963
-        <div style="line-height: 40px;">
1963
+        <!-- <div style="line-height: 40px;">
1964 1964
           透析频率:HD(每周2次)
1965
-        </div>
1965
+        </div> -->
1966 1966
         <div style="line-height: 40px;">
1967 1967
           已排详情
1968 1968
         </div>
1969
-        <div>
1970
-          <el-calendar>
1971
-            <!-- 这里使用的是 2.5 slot 语法,对于新项目请使用 2.6 slot 语法-->
1972
-            <template
1973
-              slot="dateCell"
1974
-              slot-scope="{date, data}">
1975
-              <P v-if="data.day.split('-').slice(1).join('-')=='03-06'"
1976
-                style="background: red;color: white;text-align: center;">
1977
-                HD
1978
-              </P>
1979
-              <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;">
1980
-                {{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : ''}}<br/>
1981
-                <span v-if="data.day.split('-').slice(1).join('-')=='03-06'">上午 门诊</span>
1982
-              </p>
1983
-
1984
-            </template>
1985
-          </el-calendar>
1969
+        <div @click="viewDayWork">
1970
+          <el-calendar v-model="time_value">
1971
+                <template
1972
+                  slot="dateCell"
1973
+                  slot-scope="{date, data}" >
1974
+                    <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;" >
1975
+                      {{ data.day.split('-').slice(2).join('-') }}<br/>
1976
+                      <span v-for="(item,index) in orderList" :key="index" style="background: red;color: white;text-align: center;">
1977
+                        <span  :class="[data.isSelected ? 'is-selected' : '',isFutureDate(data.day) ? 'future-date' : '']" >
1978
+                          <span v-if="data.day == item.order_date">
1979
+                            {{ getModeId(item.mode_id) }}
1980
+                            <span v-if="item.schedual_type_name ==1">上午</span>
1981
+                            <span v-if="item.schedual_type_name ==2">下午</span>
1982
+                            <span v-if="item.schedual_type_name ==3">晚上</span>
1983
+                          </span>
1984
+                        </span>
1985
+                      </span>
1986
+                    </p>
1987
+              </template>
1988
+            </el-calendar>
1986 1989
         </div>
1987 1990
       </div>
1988 1991
     </el-dialog>
@@ -2006,6 +2009,7 @@ import {
2006 2009
   BatchSmartSch,
2007 2010
 
2008 2011
 } from "@/api/schedule_template/sch_template";
2012
+import {getPatientDialysisRecordList} from '@/api/dialysis_record'
2009 2013
 import {
2010 2014
   CancelScheduleTwo,
2011 2015
   CancelSchedule,
@@ -2081,6 +2085,9 @@ export default {
2081 2085
 
2082 2086
   data() {
2083 2087
     return {
2088
+      time_value:new Date(),
2089
+      start_time:moment().startOf('months').format('YYYY-MM-DD'),
2090
+      end_time:moment().endOf('months').format('YYYY-MM-DD'),
2084 2091
       schedulingTableVisible:true,//全屏
2085 2092
       tipDialogVisibleTwo:false,
2086 2093
       tipDialogVisibleThree:false,
@@ -2368,10 +2375,30 @@ export default {
2368 2375
       pageY:0,
2369 2376
       draggable:true,
2370 2377
       org_id:'',
2378
+      patient_id:0,
2379
+      orderList:[]
2371 2380
     };
2372 2381
   },
2373 2382
 
2374 2383
   watch: {
2384
+    time_value:{
2385
+      handler(newValue,oldValue){
2386
+        // this.initData()
2387
+        this.time_value = newValue
2388
+        // this.getmonth(this.time_value)
2389
+        this.start_time = moment(this.time_value).startOf('month').format('YYYY-MM-DD')
2390
+        this.end_time = moment(this.time_value).endOf('month').format('YYYY-MM-DD')
2391
+        // this.start_time =  moment().month(months).startOf('month').format('YYYY-MM-DD')
2392
+        // this.end_time = moment().month(months).endOf('month').format('YYYY-MM-DD')
2393
+        // console.log('rrrrr',this.start_time,this.end_time);
2394
+        // this.end_time =   moment(oldValue).format('YYYY-MM-DD')
2395
+      }
2396
+    },
2397
+    '$route.query.patient_id'(newVal) {
2398
+       if (newVal) {
2399
+        this.scrollToCurrentRow()
2400
+      }
2401
+    },
2375 2402
     week_type: function () {
2376 2403
       this.isShowOne = false;
2377 2404
       this.isShowTwo = false;
@@ -2431,18 +2458,212 @@ export default {
2431 2458
     },
2432 2459
   },
2433 2460
   methods: {
2461
+    viewDayWork(val){
2462
+
2463
+      const starttime = moment(this.time_value).format('YYYY-MM-DD')
2464
+      const len = (val.target.innerText).split(' ')
2465
+    
2466
+      if(val.target.innerText == '下个月'){
2467
+        this.start_time = moment(this.time_value).startOf('month').format('YYYY-MM-DD')
2468
+        this.end_time = moment(this.time_value).endOf('month').format('YYYY-MM-DD')
2469
+       
2470
+        this.getPatientDialysisRecordList()
2471
+      }else if(val.target.innerText == '上个月'){
2472
+        this.start_time = moment(this.time_value).startOf('month').format('YYYY-MM-DD')
2473
+        this.end_time = moment(this.time_value).endOf('month').format('YYYY-MM-DD')
2474
+        
2475
+        this.getPatientDialysisRecordList()
2476
+      }else if(val.target.innerText =='今天'){
2477
+        this.start_time = moment(this.time_value).startOf('month').format('YYYY-MM-DD')
2478
+        this.end_time = moment(this.time_value).endOf('month').format('YYYY-MM-DD')
2479
+        
2480
+        this.getPatientDialysisRecordList()
2481
+      }else{
2482
+        if(len.length>1){
2483
+          var patient_id = this.patient_id
2484
+          var start_time = this.timestamp(starttime)
2485
+          this.$router.push({
2486
+            path: "/dialysis/details",
2487
+            query: { patient_id:patient_id , date: start_time}
2488
+          });
2489
+          this.history_click = false
2490
+        }else{
2491
+          this.time_value
2492
+        }
2434 2493
 
2494
+       }
2495
+      },
2496
+    timestamp(start_time) {
2497
+      // 使用 Date 对象和它的 getTime 方法将日期字符串转换为时间戳
2498
+      return new Date(start_time).getTime()/1000 - 28800;
2499
+     },
2500
+    getOrderTime(val){
2501
+      // console.log('77778888',val,this.dialysis_date=uParseTime(val, "{y}-{m}-{d}"));
2502
+      if (val < 0) {
2503
+        return "";
2504
+      }
2505
+      if (val == "") {
2506
+        return "";
2507
+      } else {
2508
+        return uParseTime(val, "{y}-{m}-{d}");
2509
+      }
2510
+    },
2511
+    isFutureDate(dateString) {
2512
+      const today = new Date();
2513
+      today.setHours(0, 0, 0, 0); // 清除时间部分,只比较日期
2514
+      
2515
+      const date = new Date(dateString);
2516
+      return date > today;
2517
+    },
2518
+    getModeId(val){
2519
+      var name =""
2520
+      if(val == 1){
2521
+        name ="HD"
2522
+      }
2523
+      if(val == 2){
2524
+        name ="HDF"
2525
+      }
2526
+      if(val == 3){
2527
+        name ="HD+HP"
2528
+      }
2529
+      if(val == 4){
2530
+        name ="HP"
2531
+      }
2532
+      if(val == 5){
2533
+        name ="HF"
2534
+      }
2535
+      if(val == 6){
2536
+        name ="SCUF"
2537
+      }
2538
+      if(val == 7){
2539
+        name ="IUF"
2540
+      }
2541
+      if(val == 8){
2542
+        name ="HFHD"
2543
+      }
2544
+      if(val == 9){
2545
+        name ="HFHD+HP"
2546
+      }
2547
+      if(val == 10){
2548
+        name ="HFD"
2549
+      }
2550
+      if(val == 11){
2551
+        name ="HFR"
2552
+      }
2553
+      if(val == 12){
2554
+        name ="HDF+HP"
2555
+      }
2556
+      if(val == 13){
2557
+        name ="CRRT"
2558
+      }
2559
+      if(val == 14){
2560
+        name ="腹水回输"
2561
+      }
2562
+      if(val == 19){
2563
+        name ="IUF+HD"
2564
+      }
2565
+      if(val == 20){
2566
+        name ="UF"
2567
+      }
2568
+      if(val == 21){
2569
+        name ="HD+"
2570
+      }
2571
+      if(val == 22){
2572
+        name ="血浆胆红素吸附+HDF"
2573
+      }
2574
+      if(val == 23){
2575
+        name ="血浆胆红素吸附"
2576
+      }
2577
+      if(val == 24){
2578
+        name ="I-HDF"
2579
+      }
2580
+      if(val == 25){
2581
+        name ="HD高通"
2582
+      }
2583
+      if(val == 26){
2584
+        name ="CVVH"
2585
+      }
2586
+      if(val == 27){
2587
+        name ="CVVHD"
2588
+      }
2589
+      if(val == 28){
2590
+        name ="CVVHDF"
2591
+      }
2592
+      if(val == 29){
2593
+        name ="PE"
2594
+      }
2595
+      if(val == 30){
2596
+        name ="血浆胆红素吸附+HP"
2597
+      }
2598
+      if(val == 31){
2599
+        name ="HPD"
2600
+      }
2601
+      if(val == 32){
2602
+        name ="HDP"
2603
+      }
2604
+      if(val == 33){
2605
+        name ="HDP"
2606
+      }
2607
+      if(val == 33){
2608
+        name ="HFD"
2609
+      }
2610
+      if(val == 34){
2611
+        name ="HDF100"
2612
+      }
2613
+      if(val == 35){
2614
+        name ="HDF600"
2615
+      }
2616
+      if(val == 36){
2617
+        name ="HDF800"
2618
+      }
2619
+      if(val == 37){
2620
+        name ="HDF1000"
2621
+      }
2622
+      return name
2623
+    },
2435 2624
     // 关闭透析模式
2436 2625
     switchMode(flag){
2437 2626
       console.log(flag);
2438 2627
     },
2439 2628
     // 透析次数
2440 2629
     chishuclick(row){
2441
-      this.cishu_dialogVisible=true
2442
-      console.log('ddddddd',row);
2443
-      this.Dialysis_patient=row
2630
+      // this.cishu_dialogVisible=true
2631
+      // console.log('ddddddd',row);
2632
+      this.Dialysis_patient=row.name
2633
+      this.patient_id = ""
2634
+      this.patient_id  = row.id
2635
+      this.getPatientDialysisRecordList(row.id)
2636
+    },
2637
+    getPatientDialysisRecordList(id){
2638
+      var params= {
2639
+        patient_id:id,
2640
+        start_time:this.start_time,
2641
+        end_time:this.end_time,
2642
+      }
2643
+      console.log('tttt',params);
2644
+      getPatientDialysisRecordList(params).then(response=>{
2645
+         if(response.data.state == 1){
2646
+           var list  = response.data.data.list
2647
+           this.cishu_dialogVisible =true
2648
+           if(list!=null && list.length>0){
2649
+             for(let i=0;i<list.length;i++){
2650
+               list[i].order_date =""
2651
+               if(this.org_id ==9538 || this.org_id ==10101 || this.org_id ==10353 ){
2652
+                  list[i].order_date = this.getOrderTime(list[i].dialysis_date)
2653
+                  list[i].schedual_type_name= list[i].schedual_type
2654
+               }else{
2655
+                 list[i].order_date = this.getOrderTime(list[i].schedule_date)
2656
+                 list[i].schedual_type_name= list[i].schedule_type
2657
+               }
2658
+
2659
+             }
2660
+           }
2661
+           console.log("list------",list)
2662
+           this.orderList = []
2663
+           this.orderList = list
2664
+         }
2665
+      })
2444 2666
     },
2445
-
2446 2667
     changeSch(row) {
2447 2668
       let params = {
2448 2669
         zone_id: row.zone_id,
@@ -6390,5 +6611,74 @@ textarea{
6390 6611
   right: 120px;
6391 6612
 }
6392 6613
 
6614
+.Calendar{
6615
+    color: #000 !important;
6616
+    width: 100% !important;
6617
+    max-width: 839px !important;
6618
+    .wh_content_all{
6619
+      background-color: #fff;
6620
+      .wh_top_changge{
6621
+        .wh_jiantou1{
6622
+          border-top: 2px solid #000;
6623
+          border-left: 2px solid #000;
6624
+        }
6625
+        .wh_content_li{
6626
+          color: #000;
6627
+        }
6628
+        .wh_jiantou2{
6629
+          border-top: 2px solid #000;
6630
+          border-right: 2px solid #000;
6631
+        }
6632
+      }
6633
+      .wh_content_item{
6634
+        text-align: center;
6635
+        color: #000 ;
6636
+        height: 50px;
6637
+        .wh_top_tag{
6638
+          width: 100%;
6639
+          height: 50px ;
6640
+          line-height: 50px;
6641
+          margin: 0;
6642
+          display: flex;
6643
+          justify-content: center;
6644
+          align-items: center;
6645
+          text-align: center
6646
+        }
6647
+        .wh_isToday{
6648
+          border: 1px solid #409eff;
6649
+          background: #409eff !important;
6650
+          color: #fff;
6651
+          border-radius: 0;
6652
+        }
6653
+        .wh_chose_day{
6654
+          border: 1px solid #409eff;
6655
+          background: #fff !important;
6656
+          color: #409eff;
6657
+          border-radius: 0;
6658
+        }
6659
+        .wh_item_date{
6660
+          width: 100%;
6661
+          height: 50px;
6662
+          line-height: 50px;
6663
+          margin: 0;
6664
+          display: flex;
6665
+          justify-content: center;
6666
+          align-items: center;
6667
+        }
6668
+        .wh_item_date:hover {
6669
+            background: #fff;
6670
+            cursor: pointer;
6671
+        }
6672
+      }
6673
+    }
6674
+}
6675
+.future-date {
6676
+  color:#e6f7ff;
6677
+}
6678
+/* 如果需要背景色而不是文字颜色 */
6679
+.future-date {
6680
+  background-color: #409eff;
6681
+}
6682
+
6393 6683
 </style>
6394 6684