Browse Source

新分支

28169 1 year ago
parent
commit
24ef3b4127

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

133
      method:"Get",
133
      method:"Get",
134
      params:params
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
               <div class="inline_block">
84
               <div class="inline_block">
85
                 病区:
85
                 病区:
86
                 <div class="under_line" style="width: 50px; text-align: center">
86
                 <div class="under_line" style="width: 50px; text-align: center">
87
-                  {{ "/" }}
87
+                  {{ record.device_zone.name? record.device_zone.name:"/" }}
88
                 </div>
88
                 </div>
89
               </div>
89
               </div>
90
               <div class="inline_block">
90
               <div class="inline_block">
91
                 床号:
91
                 床号:
92
                 <div class="under_line" style="width: 50px; text-align: center">
92
                 <div class="under_line" style="width: 50px; text-align: center">
93
-                  {{ "/" }}
93
+                  {{ record.device_number.number? record.device_number.number:"/" }}
94
                 </div>
94
                 </div>
95
               </div>
95
               </div>
96
               <div class="inline_block">
96
               <div class="inline_block">
204
                             class="under_line"
204
                             class="under_line"
205
                             style="width: 150px; text-align: center"
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
                           </div>
208
                           </div>
216
                         </div>
209
                         </div>
217
                       </div>
210
                       </div>
713
                         </div>
706
                         </div>
714
   
707
   
715
                         <div
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
                           class="inline_block"
710
                           class="inline_block"
717
                           style="margin-left: 10px; flex: 1"
711
                           style="margin-left: 10px; flex: 1"
718
                         >
712
                         >
725
                           </div>
719
                           </div>
726
                         </div>
720
                         </div>
727
                         <div
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
                           class="inline_block"
723
                           class="inline_block"
729
                           style="margin-left: 10px; flex: 1"
724
                           style="margin-left: 10px; flex: 1"
730
                         >
725
                         >
1160
                             >iu</span
1155
                             >iu</span
1161
                           >
1156
                           >
1162
                           <span v-if="record.prescription.anticoagulant == 2"
1157
                           <span v-if="record.prescription.anticoagulant == 2"
1163
-                            >iu</span
1158
+                            >mg</span
1164
                           >
1159
                           >
1165
                           <span v-if="record.prescription.anticoagulant == 1"
1160
                           <span v-if="record.prescription.anticoagulant == 1"
1166
                             >mg</span
1161
                             >mg</span
1208
                             >iu/h</span
1203
                             >iu/h</span
1209
                           >
1204
                           >
1210
                           <span v-if="record.prescription.anticoagulant == 2"
1205
                           <span v-if="record.prescription.anticoagulant == 2"
1211
-                            >iu/h</span
1206
+                            >mg/h</span
1212
                           >
1207
                           >
1213
                           <span v-if="record.prescription.anticoagulant == 1"
1208
                           <span v-if="record.prescription.anticoagulant == 1"
1214
                             >mg/h</span
1209
                             >mg/h</span
1234
                             >iu</span
1229
                             >iu</span
1235
                           >
1230
                           >
1236
                           <span v-if="record.prescription.anticoagulant == 2"
1231
                           <span v-if="record.prescription.anticoagulant == 2"
1237
-                            >iu</span
1232
+                            >mg</span
1238
                           >
1233
                           >
1239
                           <span v-if="record.prescription.anticoagulant == 1"
1234
                           <span v-if="record.prescription.anticoagulant == 1"
1240
                             >mg</span
1235
                             >mg</span

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

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

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

750
       if (this.form.revers_mode === "") {
750
       if (this.form.revers_mode === "") {
751
         this.form.revers_mode = 0;
751
         this.form.revers_mode = 0;
752
       }
752
       }
753
+      if(this.form.zone_id == ""){
754
+         this.form.zone_id = 0
755
+      }
753
       this.$refs[formName].validate(valid => {
756
       this.$refs[formName].validate(valid => {
754
         if (valid) {
757
         if (valid) {
755
           SaveManageInfo(this.form).then(response => {
758
           SaveManageInfo(this.form).then(response => {
817
       var disinfecction_modes = this.form.Disinfection_mode;
820
       var disinfecction_modes = this.form.Disinfection_mode;
818
       var disinfecction_modess = parseInt(disinfecction_modes);
821
       var disinfecction_modess = parseInt(disinfecction_modes);
819
       this.form.Disinfection_mode = disinfecction_modess;
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
       this.$refs[formName].validate(valid => {
828
       this.$refs[formName].validate(valid => {
822
         if (valid) {
829
         if (valid) {
823
           SaveManageInfoTwo(this.form, this.forms.beds).then(response => {
830
           SaveManageInfoTwo(this.form, this.forms.beds).then(response => {

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

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

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

65
           icon="el-icon-circle-plus-outline"
65
           icon="el-icon-circle-plus-outline"
66
           style="float:left"
66
           style="float:left"
67
           @click="toTestSeven">添加合同签署人</el-button> -->
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
      </div>
76
      </div>
70
     
77
     
220
 </template>
227
 </template>
221
 
228
 
222
 <script>
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
 import { getRoles } from "@/api/role/role";
231
 import { getRoles } from "@/api/role/role";
225
 
232
 
226
 import { parseTime } from "@/utils";
233
 import { parseTime } from "@/utils";
565
           console.log("sign",sign)
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
   watch: {
586
   watch: {

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

1343
                   item.value_direction = '↑'
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
               if(item.value.indexOf("http") >= 0){
1353
               if(item.value.indexOf("http") >= 0){
1351
                 this.isPic = true
1354
                 this.isPic = true

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

187
 
187
 
188
         <el-tab-pane name="first" :disabled="template_mode.mode == 0" >
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
           </span>
196
           </span>
208
 
197
 
210
 
199
 
211
         <el-tab-pane  name="second" :disabled="template_mode.mode != 2 && template_mode.mode != 3 && template_mode.mode  != 4">
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
           </span>
207
           </span>
229
         </el-tab-pane>
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
         </el-tab-pane>
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
         </el-tab-pane>
215
         </el-tab-pane>
237
       </el-tabs>
216
       </el-tabs>
238
               </div>
217
               </div>