Browse Source

新分支

28169 1 year ago
parent
commit
24ef3b4127

+ 9 - 0
src/api/role/admin.js View File

@@ -133,4 +133,13 @@ export function toTestFive(params){
133 133
      method:"Get",
134 134
      params:params
135 135
   })
136
+}
137
+
138
+export function toTestEight(params){
139
+  
140
+  return request({
141
+    url:"/api/sign/contractsignatory",
142
+    method:"Get",
143
+    params:params,
144
+  })
136 145
 }

+ 8 - 13
src/xt_pages/dialysis/batch_print/batch_print_order_sixtysix.vue View File

@@ -84,13 +84,13 @@
84 84
               <div class="inline_block">
85 85
                 病区:
86 86
                 <div class="under_line" style="width: 50px; text-align: center">
87
-                  {{ "/" }}
87
+                  {{ record.device_zone.name? record.device_zone.name:"/" }}
88 88
                 </div>
89 89
               </div>
90 90
               <div class="inline_block">
91 91
                 床号:
92 92
                 <div class="under_line" style="width: 50px; text-align: center">
93
-                  {{ "/" }}
93
+                  {{ record.device_number.number? record.device_number.number:"/" }}
94 94
                 </div>
95 95
               </div>
96 96
               <div class="inline_block">
@@ -204,14 +204,7 @@
204 204
                             class="under_line"
205 205
                             style="width: 150px; text-align: center"
206 206
                           >
207
-                            {{
208
-                              record.assessment_before_dislysis &&
209
-                              record.assessment_before_dislysis
210
-                                .symptom_before_dialysis
211
-                                ? record.assessment_before_dislysis
212
-                                    .symptom_before_dialysis
213
-                                : "/"
214
-                            }}
207
+                          {{ getTime(record.lastSchedule.schedule_date, "{y}-{m}-{d}") }}
215 208
                           </div>
216 209
                         </div>
217 210
                       </div>
@@ -713,6 +706,7 @@
713 706
                         </div>
714 707
   
715 708
                         <div
709
+                        v-if="record.prescription.mode_id == 2 ||  record.prescription.mode_id == 5 ||   record.prescription.mode_id == 12 ||  record.prescription.mode_id == 28"
716 710
                           class="inline_block"
717 711
                           style="margin-left: 10px; flex: 1"
718 712
                         >
@@ -725,6 +719,7 @@
725 719
                           </div>
726 720
                         </div>
727 721
                         <div
722
+                        v-if="record.prescription.mode_id == 2 ||  record.prescription.mode_id == 5 ||   record.prescription.mode_id == 12 ||  record.prescription.mode_id == 28"
728 723
                           class="inline_block"
729 724
                           style="margin-left: 10px; flex: 1"
730 725
                         >
@@ -1160,7 +1155,7 @@
1160 1155
                             >iu</span
1161 1156
                           >
1162 1157
                           <span v-if="record.prescription.anticoagulant == 2"
1163
-                            >iu</span
1158
+                            >mg</span
1164 1159
                           >
1165 1160
                           <span v-if="record.prescription.anticoagulant == 1"
1166 1161
                             >mg</span
@@ -1208,7 +1203,7 @@
1208 1203
                             >iu/h</span
1209 1204
                           >
1210 1205
                           <span v-if="record.prescription.anticoagulant == 2"
1211
-                            >iu/h</span
1206
+                            >mg/h</span
1212 1207
                           >
1213 1208
                           <span v-if="record.prescription.anticoagulant == 1"
1214 1209
                             >mg/h</span
@@ -1234,7 +1229,7 @@
1234 1229
                             >iu</span
1235 1230
                           >
1236 1231
                           <span v-if="record.prescription.anticoagulant == 2"
1237
-                            >iu</span
1232
+                            >mg</span
1238 1233
                           >
1239 1234
                           <span v-if="record.prescription.anticoagulant == 1"
1240 1235
                             >mg</span

+ 29 - 14
src/xt_pages/dialysis/template/DialysisPrintOrderSixtysix.vue View File

@@ -80,25 +80,25 @@
80 80
             <div class="inline_block">
81 81
               病区:
82 82
               <div class="under_line" style="width: 50px; text-align: center">
83
-                <span v-if="org_id == 10121||org_id == 10138||org_id == 10414 ||org_id == 10447">{{
83
+                <span>{{
84 84
                   patientInfo.DialysisSchedule.device_zone.name
85 85
                     ? patientInfo.DialysisSchedule.device_zone.name
86
-                    : ""
86
+                    : "/"
87 87
                 }}</span>
88
-                <span v-else>{{ "/" }}</span>
88
+               
89 89
               </div>
90 90
             </div>
91 91
             <div class="inline_block">
92 92
               床号:
93 93
               <div class="under_line" style="width: 50px; text-align: center">
94
-                <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675">{{
94
+                <span>{{
95 95
                   dialysisOrder &&
96 96
                   dialysisOrder.DeviceNumber &&
97 97
                   dialysisOrder.DeviceNumber.number.length > 0
98 98
                     ? dialysisOrder.DeviceNumber.number
99 99
                     : patientInfo.DialysisSchedule.device_number.number
100 100
                 }}</span>
101
-                <span v-else>{{ "/" }}</span>
101
+               
102 102
               </div>
103 103
             </div>
104 104
             <div class="inline_block">
@@ -222,11 +222,7 @@
222 222
                           class="under_line"
223 223
                           style="width: 150px; text-align: center"
224 224
                         >
225
-                          <!-- {{
226
-                            predialysis.symptom_before_dialysis
227
-                              ? predialysis.symptom_before_dialysis
228
-                              : "/"
229
-                          }} -->
225
+                          {{getTimeOne(lastSchedule.schedule_date)  }}
230 226
                         </div>
231 227
                       </div>
232 228
                     </div>
@@ -725,6 +721,7 @@
725 721
                       </div>
726 722
   
727 723
                       <div
724
+                        v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12 || prescription.mode_id == 28"
728 725
                         class="inline_block"
729 726
                         style="margin-left: 10px; flex: 1"
730 727
                       >
@@ -732,6 +729,7 @@
732 729
                         <div
733 730
                           class="under_line"
734 731
                           style="width: 100px; text-align: center"
732
+                          
735 733
                         >
736 734
                           {{
737 735
                             getDisplaceLiquiPart(prescription.displace_liqui_part)
@@ -739,7 +737,7 @@
739 737
                         </div>
740 738
                       </div>
741 739
                       <div
742
-                       
740
+                        v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12 || prescription.mode_id == 28"
743 741
                         class="inline_block"
744 742
                         style="margin-left: 10px; flex: 1"
745 743
                       >
@@ -1105,7 +1103,7 @@
1105 1103
                        <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">
1106 1104
                         <span v-if="prescription.anticoagulant == 4">mg</span>
1107 1105
                         <span v-if="prescription.anticoagulant == 3">iu</span>
1108
-                        <span v-if="prescription.anticoagulant == 2">iu</span>
1106
+                        <span v-if="prescription.anticoagulant == 2">mg</span>
1109 1107
                         <span v-if="prescription.anticoagulant == 1">mg</span>
1110 1108
                       </span>
1111 1109
   
@@ -1153,7 +1151,7 @@
1153 1151
                           <span v-if="prescription.anticoagulant == 5">ml/h</span>
1154 1152
                             <span v-if="prescription.anticoagulant == 4">mg/h</span>
1155 1153
                             <span v-if="prescription.anticoagulant == 3">iu/h</span>
1156
-                            <span v-if="prescription.anticoagulant == 2">iu/h</span>
1154
+                            <span v-if="prescription.anticoagulant == 2">mg/h</span>
1157 1155
                             <span v-if="prescription.anticoagulant == 1">mg/h</span>
1158 1156
                         </span>
1159 1157
                         <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">
@@ -1224,7 +1222,7 @@
1224 1222
                         <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">
1225 1223
                         <span v-if="prescription.anticoagulant == 4">mg</span>
1226 1224
                         <span v-if="prescription.anticoagulant == 3">iu</span>
1227
-                        <span v-if="prescription.anticoagulant == 2">iu</span>
1225
+                        <span v-if="prescription.anticoagulant == 2">mg</span>
1228 1226
                         <span v-if="prescription.anticoagulant == 1">mg</span>
1229 1227
                        </span>
1230 1228
                       <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">
@@ -3151,6 +3149,7 @@
3151 3149
           gaijiliang_unit: "",
3152 3150
         },
3153 3151
         org_id: 0,
3152
+        lastSchedule:{},
3154 3153
       };
3155 3154
     },
3156 3155
     methods: {
@@ -3452,6 +3451,17 @@
3452 3451
         }
3453 3452
         return "";
3454 3453
       },
3454
+     
3455
+      getTimeOne(val) {
3456
+         if(val < 0){
3457
+           return ""
3458
+         }
3459
+         if(val == ""){
3460
+          return ""
3461
+         }else {
3462
+          return uParseTime(val, '{y}-{m}-{d}')
3463
+         }
3464
+      },
3455 3465
       getUnit: function (val) {
3456 3466
         switch (val) {
3457 3467
           case 1:
@@ -3582,6 +3592,8 @@
3582 3592
               ? null
3583 3593
               : response.data.data.dialysisOrder;
3584 3594
           // console.log("上机233232323232", this.dialysisOrder);
3595
+
3596
+          this.lastSchedule = response.data.data.lastSchedule
3585 3597
           if (this.operators.length > 0) {
3586 3598
             var operatorsLen = this.operators.length;
3587 3599
             for (var index = 0; index < operatorsLen; index++) {
@@ -3898,7 +3910,10 @@
3898 3910
             }
3899 3911
             this.doctor_advices = doctor_advices_1;
3900 3912
             this.doctor_advices_2 = doctor_advices_2;
3913
+
3914
+
3901 3915
           }
3916
+
3902 3917
           // console.log(this.advice_groups);
3903 3918
         } else {
3904 3919
           this.loading = false;

+ 8 - 1
src/xt_pages/management/components/ManageForm.vue View File

@@ -750,6 +750,9 @@ export default {
750 750
       if (this.form.revers_mode === "") {
751 751
         this.form.revers_mode = 0;
752 752
       }
753
+      if(this.form.zone_id == ""){
754
+         this.form.zone_id = 0
755
+      }
753 756
       this.$refs[formName].validate(valid => {
754 757
         if (valid) {
755 758
           SaveManageInfo(this.form).then(response => {
@@ -817,7 +820,11 @@ export default {
817 820
       var disinfecction_modes = this.form.Disinfection_mode;
818 821
       var disinfecction_modess = parseInt(disinfecction_modes);
819 822
       this.form.Disinfection_mode = disinfecction_modess;
820
-
823
+      if(this.form.zone_id == ""){
824
+         this.form.zone_id = 0
825
+      }
826
+    
827
+      console.log("form23232wo",this.form)
821 828
       this.$refs[formName].validate(valid => {
822 829
         if (valid) {
823 830
           SaveManageInfoTwo(this.form, this.forms.beds).then(response => {

+ 4 - 0
src/xt_pages/management/home.vue View File

@@ -3783,6 +3783,10 @@ export default {
3783 3783
         var disinfecction_modess = parseInt(disinfecction_modes)
3784 3784
         this.form.Disinfection_mode = disinfecction_modess
3785 3785
 
3786
+        if (this.form.zone_id === '') {
3787
+          this.form.zone_id = 0
3788
+        }
3789
+
3786 3790
         this.$refs[formName].validate(valid => {
3787 3791
           if (valid) {
3788 3792
             UpdateMachineInfoTwo(this.form).then(response => {

+ 17 - 1
src/xt_pages/role/admin.vue View File

@@ -65,6 +65,13 @@
65 65
           icon="el-icon-circle-plus-outline"
66 66
           style="float:left"
67 67
           @click="toTestSeven">添加合同签署人</el-button> -->
68
+
69
+          <el-button   type="primary"
70
+          size="small"
71
+          icon="el-icon-circle-plus-outline"
72
+          style="float:left"  @click="toTestEight">
73
+            脚本
74
+          </el-button>
68 75
           
69 76
      </div>
70 77
     
@@ -220,7 +227,7 @@
220 227
 </template>
221 228
 
222 229
 <script>
223
-import { adminMainView, getAdmins, setAdminStatus,toSign,toTestOne,toTestTwo,toTestThree,toTestFour,toTestFive } from "@/api/role/admin";
230
+import { adminMainView, getAdmins, setAdminStatus,toSign,toTestOne,toTestTwo,toTestThree,toTestFour,toTestFive,toTestEight } from "@/api/role/admin";
224 231
 import { getRoles } from "@/api/role/role";
225 232
 
226 233
 import { parseTime } from "@/utils";
@@ -565,6 +572,15 @@ export default {
565 572
           console.log("sign",sign)
566 573
         }
567 574
       })
575
+    },
576
+    toTestEight(){
577
+      toTestEight().then(response=>{
578
+        if(response.data.state== 1){
579
+          var sign =  response.data.data.sign
580
+          console.log("sign",sign)
581
+           this.$message.success("保存")
582
+        }
583
+      })
568 584
     }
569 585
   },
570 586
   watch: {

+ 6 - 3
src/xt_pages/user/inspection.vue View File

@@ -1343,9 +1343,12 @@ export default {
1343 1343
                   item.value_direction = '↑'
1344 1344
                 }
1345 1345
               }
1346
-              console.log("items23233232",item)
1347
-              this.items.push(item)
1348
-              console.log("items232232332wo",this.items)
1346
+              // console.log("items23233232",item)
1347
+              if(item.item_name!=""){
1348
+                this.items.push(item)
1349
+              }
1350
+            
1351
+              // console.log("items232232332wo",this.items)
1349 1352
 
1350 1353
               if(item.value.indexOf("http") >= 0){
1351 1354
                 this.isPic = true

+ 10 - 31
src/xt_pages/workforce/template.vue View File

@@ -187,22 +187,11 @@
187 187
 
188 188
         <el-tab-pane name="first" :disabled="template_mode.mode == 0" >
189 189
 
190
-          <span slot="label"> {{first_template.week?'一周模版':'一周模版'}}
191
-
192
-             <span v-if="schedule.mode ==1">(本周)</span>
193
-             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>
194
-             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>
195
-
196
-             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==0">(下下周)</span>
197
-             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==1">(下周)</span>
198
-             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==2">(本周)</span>
199
-
200
-
201
-             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==0">(下下周)</span>
202
-             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==1">(下周)</span>
203
-             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==2">(本周)</span>
204
-             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==3">(上周)</span>
190
+          <span slot="label"> {{first_template.week?'一周模版'+'('+first_template.week+'周'+')':'一周模版'+'('+first_template.week+'周'+')'}}
205 191
 
192
+             <span v-if="schedule.mode ==1">{{'(本周)'}}</span>
193
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">{{'(下一周)'}}</span>
194
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">{{'(本周)'}}</span>
206 195
 
207 196
           </span>
208 197
 
@@ -210,29 +199,19 @@
210 199
 
211 200
         <el-tab-pane  name="second" :disabled="template_mode.mode != 2 && template_mode.mode != 3 && template_mode.mode  != 4">
212 201
 
213
-          <span slot="label"> {{second_template.week?'二周模版':'二周模版'}}
214
-
215
-              <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(本周)</span>
216
-             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(下一周)</span>
217
-
218
-             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==0">(本周)</span>
219
-             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==1">(下周)</span>
220
-             <span v-if="schedule.mode == 3 && schedule.execute_times%3 ==2">(下下周)</span>
202
+          <span slot="label"> {{second_template.week?'二周模版'+'('+second_template.week+'周'+')':'二周模版'+'('+second_template.week+'周'+')'}}
221 203
 
222
-
223
-              <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==0">(下下周)</span>
224
-             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==1">(下周)</span>
225
-             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==2">(本周)</span>
226
-             <span v-if="schedule.mode == 4 && schedule.execute_times%4 ==3">(上周)</span>
204
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">{{'(本周)'}}</span>
205
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">{{'(下一周)'}}</span>
227 206
 
228 207
           </span>
229 208
         </el-tab-pane>
230
-
231
-        <el-tab-pane :label="  third_template.week? '三周模版':'三周模版'" name="third" :disabled="template_mode.mode != 3 && template_mode.mode  != 4">
209
+<!--                  {{ four_template.week?four_template.week+'周':""}}-->
210
+        <el-tab-pane :label="'三周模版'+'('+third_template.week+'周'+')'" name="third" :disabled="template_mode.mode != 3 && template_mode.mode  != 4">
232 211
 
233 212
         </el-tab-pane>
234 213
 
235
-      <el-tab-pane :label="four_template.week?'四周模版':'四周模版'" name="four" :disabled="template_mode.mode  != 4 ">
214
+      <el-tab-pane :label="'四周模版'+'('+four_template.week+'周'+')'" name="four" :disabled="template_mode.mode  != 4 ">
236 215
         </el-tab-pane>
237 216
       </el-tabs>
238 217
               </div>