Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

csx 4 years ago
parent
commit
f24dae894a

+ 2 - 2
config/prod.env.js View File

@@ -1,8 +1,8 @@
1 1
 "use strict";
2 2
 module.exports = {
3 3
   NODE_ENV: '"production"',
4
-  // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
-  BASE_API: '"https://api.xt.kuyicloud.com"'
4
+  BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
+  // BASE_API: '"https://api.xt.kuyicloud.com"'
6 6
   // BASE_API:'"http://localhost:9529"',
7 7
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
8 8
   // http://api.xt.test.sgjyun.com

+ 3 - 1
src/api/advice.js View File

@@ -86,7 +86,8 @@ export function getSchedualDoctors (params) {
86 86
   })
87 87
 }
88 88
 
89
-export function batchCreateAdvices (patient_id, group_no, data,mode) {
89
+export function batchCreateAdvices (patient_id, group_no, data,mode,is_child) {
90
+
90 91
   return request({
91 92
     url: '/m/api/advice/creategroup',
92 93
     method: 'post',
@@ -95,6 +96,7 @@ export function batchCreateAdvices (patient_id, group_no, data,mode) {
95 96
       id: patient_id,
96 97
       group_no: group_no,
97 98
       mode:mode,
99
+      is_child:is_child
98 100
     },
99 101
     data: data
100 102
   })

+ 1 - 1
src/pages/main/DetailsPage.vue View File

@@ -144,7 +144,7 @@ export default {
144 144
           if (response.data.state == 1) {
145 145
             this.patient = response.data.data.patient;
146 146
           } else {
147
-            Toast.fail("网络异常");
147
+            Toast.fail(response.data.msg);
148 148
             return false;
149 149
           }
150 150
         })

+ 19 - 6
src/pages/main/dialog/OrdersDialog.vue View File

@@ -30,16 +30,19 @@
30 30
           @click="checkAdvice"
31 31
           :class="{ forbid: (current_advice&& current_advice.parent_id > 0) || is_has_check != true }"
32 32
         >核对</span>
33
+
33 34
         <span
34 35
         id="fontSize"
35 36
           @click="openNewChild"
36 37
           :class="{ forbid: current_advice == null || current_advice.parent_id > 0 ||  currentAdvices.length != 1  }"
37 38
         >添加子药</span>
39
+
38 40
         <span
39 41
           v-if="currentSubAdvices.length <= 0"
40 42
           @click="modifyAdviceAction"
41 43
           :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1  || current_select_object== 2 || (is_has_modify != true && is_has_modify_other != true) }"
42 44
         >修改</span>
45
+
43 46
         <span
44 47
           v-if="currentSubAdvices.length <= 0"
45 48
           @click="deleteAdviceAction"
@@ -245,7 +248,8 @@
245 248
     EditDoctorAdvice,
246 249
     ExecDoctorAdvice,
247 250
     getAdviceConfig,
248
-    ModifyExecDoctorAdvice
251
+    ModifyExecDoctorAdvice,
252
+    batchCreateAdvices
249 253
   } from '@/api/advice'
250 254
   import {uParseTime} from '@/utils/tools'
251 255
   import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
@@ -290,6 +294,7 @@
290 294
     },
291 295
     data () {
292 296
       return {
297
+        group_no:0,
293 298
         is_has_create:true,
294 299
         is_has_exce:true,
295 300
         is_has_check:true,
@@ -564,11 +569,12 @@
564 569
       didAddSubdrug: function (subdrug) {
565 570
         Toast.loading({forbidClick: true, duration: 0})
566 571
         let mode = "1"
567
-        CreateDoctorAdvice(this.patient.id,{
572
+       var  is_child = 2
573
+        batchCreateAdvices(this.patient.id, subdrug.group_no, {
568 574
           parent_id: subdrug.parent_id,
569 575
           advice_type: 2,
570 576
           advice_date: subdrug.record_time,
571
-          start_time: subdrug.start_time,
577
+          start_time: subdrug.start_time+":00",
572 578
           advice_name: subdrug.title,
573 579
           advice_desc: subdrug.advice_desc,
574 580
           drug_spec: String(subdrug.drug_spec),
@@ -579,7 +585,8 @@
579 585
           prescribing_number_unit: subdrug.prescribing_number_unit
580 586
           // delivery_way: subdrug.delivery_way,
581 587
           // execution_frequency: subdrug.execution_frequency
582
-        }, mode)
588
+        },mode, is_child)
589
+
583 590
           .then(response => {
584 591
             if (response.data.state == 0) {
585 592
               Toast.fail(response.data.msg)
@@ -1180,15 +1187,18 @@
1180 1187
         this.$refs.exec_time.open()
1181 1188
       },
1182 1189
       openNewChild () {
1190
+        console.log(this.current_advice)
1191
+
1183 1192
 
1184 1193
         if (this.current_advice == null){
1185 1194
           return
1186 1195
         }
1187 1196
 
1188
-        if (this.currentAdvices.length == 0) {0
1197
+        if (this.currentAdvices.length == 0) {
1189 1198
           return false
1190 1199
         }
1191 1200
         this.current_advice = this.currentAdvices[0]
1201
+        this.group_no = this.current_advice.groupno
1192 1202
 
1193 1203
         if (
1194 1204
           this.current_advice.stop_state == 1 ||
@@ -1210,11 +1220,14 @@
1210 1220
           this.record_date,
1211 1221
           start_time,
1212 1222
           this.current_advice.delivery_way,
1213
-          this.current_advice.execution_frequency
1223
+          this.current_advice.execution_frequency,
1224
+          this.group_no,
1214 1225
         )
1215 1226
         return
1216 1227
       },
1217 1228
       openNewAdvice () {
1229
+        console.log("222222222")
1230
+
1218 1231
         if(this.is_has_create == false){
1219 1232
           Toast.fail('你没有新增医嘱权限')
1220 1233
           return false

+ 106 - 1
src/pages/main/dialog/ThorougDialog.vue View File

@@ -582,6 +582,83 @@
582 582
           </div>
583 583
         </div>
584 584
 
585
+
586
+        <div class="item" v-if="isShow('脉搏')">
587
+          <label class="name" for="ml">脉搏(次/分)</label>
588
+          <div class="content">
589
+            <input
590
+              type="number"
591
+              @click="newClick($event)"
592
+              @focus="inputFocus"
593
+              id="ml"
594
+              v-model="formValue.pulse_frequency"
595
+            />
596
+            <!--<span class="text">HD</span>-->
597
+            <!--<span class="iconfont">&#xe6f9;</span>-->
598
+          </div>
599
+        </div>
600
+
601
+        <div class="item" v-if="isShow('中心静脉封管(肝素-A端)')">
602
+          <label class="name" for="ml">中心静脉封管(肝素-A端)(ml)</label>
603
+          <div class="content">
604
+            <input
605
+              type="number"
606
+              @click="newClick($event)"
607
+              @focus="inputFocus"
608
+              id="ml"
609
+              v-model="formValue.cvc_a"
610
+            />
611
+            <!--<span class="text">HD</span>-->
612
+            <!--<span class="iconfont">&#xe6f9;</span>-->
613
+          </div>
614
+        </div>
615
+
616
+
617
+        <div class="item" v-if="isShow('中心静脉封管(肝素-B端)')">
618
+          <label class="name" for="ml">中心静脉封管(肝素-B端)(ml)</label>
619
+          <div class="content">
620
+            <input
621
+              type="number"
622
+              @click="newClick($event)"
623
+              @focus="inputFocus"
624
+              id="ml"
625
+              v-model="formValue.cvc_b"
626
+            />
627
+          </div>
628
+        </div>
629
+
630
+
631
+        <div
632
+          @click="showSubMenu('channel')"
633
+          class="item"
634
+          ref="intravenous_tube"
635
+          v-if="isShow('静脉管道')"
636
+        >
637
+          <label class="name" for="dg">静脉管道</label>
638
+          <div class="content">
639
+            <span class="text" id="dg">{{getIntravenousTubeName(formValue.intravenous_tube)}}</span>
640
+            <span class="iconfont">&#xe6f9;</span>
641
+          </div>
642
+        </div>
643
+
644
+
645
+        <div
646
+          @click="showSubMenu('channel')"
647
+          class="item"
648
+          ref="channel"
649
+          v-if="isShow('管路')"
650
+        >
651
+          <label class="name" for="dg">管路</label>
652
+          <div class="content">
653
+            <span
654
+              class="text"
655
+              id="dg"
656
+            >{{getChannelName(formValue.channel)}}</span>
657
+            <span class="iconfont">&#xe6f9;</span>
658
+          </div>
659
+        </div>
660
+
661
+
585 662
         <!-- <div class="line"></div> -->
586 663
         <div>
587 664
           <div class="item">
@@ -722,7 +799,11 @@ export default {
722 799
         dialyzer: "",
723 800
         is_eat: "",
724 801
         breathing_rate: "",
725
-        dialysis_intakes_unit: 0
802
+        dialysis_intakes_unit: 0,
803
+        channel:"",
804
+        cvc_a: 0,
805
+        cvc_b: 0,
806
+
726 807
       },
727 808
 
728 809
       record_date: ""
@@ -1257,6 +1338,18 @@ export default {
1257 1338
           this.propForm.selectId = this.formValue.dialysis_intakes_unit;
1258 1339
           this.propForm.click_ref = "dialysis_intakes_unit";
1259 1340
           break;
1341
+        case "channel":
1342
+          this.propForm.type = 24;
1343
+          this.isShowDialog = false;
1344
+          this.propForm.title = "管路";
1345
+          this.visibility = true;
1346
+          this.propForm.list = [];
1347
+          this.propForm.isHasOther = 2;
1348
+          this.propForm.optionList = this.$store.getters.channel;
1349
+          this.propForm.isMultiple = 1;
1350
+          this.propForm.selectId = this.formValue.channel;
1351
+          this.propForm.click_ref = "channel";
1352
+          break;
1260 1353
       }
1261 1354
     },
1262 1355
     menuCancle: function() {
@@ -1380,6 +1473,9 @@ export default {
1380 1473
         case 23:
1381 1474
           this.formValue.dialysis_intakes_unit = val.selectId;
1382 1475
           break;
1476
+        case 24:
1477
+          this.formValue.channel = val.selectId;
1478
+          break;
1383 1479
       }
1384 1480
     },
1385 1481
     getUnit: function(val) {
@@ -1540,6 +1636,15 @@ export default {
1540 1636
         }
1541 1637
       }
1542 1638
       return intravenousTubeName;
1639
+    },getChannelName:function(id){
1640
+      var channel = this.$store.getters.channel
1641
+      var channelName = "";
1642
+      for (let i = 0; i < channel.length; i++) {
1643
+        if (channel[i].id == id) {
1644
+          channelName = channel[i].name;
1645
+        }
1646
+      }
1647
+      return channelName
1543 1648
     },
1544 1649
     getDialyzer: function(id) {
1545 1650
       var dialyzer = this.$store.getters.dialyzer;

+ 3 - 1
src/pages/main/dialog/new_order/AddNewOrders.vue View File

@@ -348,7 +348,9 @@ export default {
348 348
 
349 349
       this.loading = true;
350 350
       let mode = "1"
351
-      batchCreateAdvices(this.patient_id, this.group_no, data,mode)
351
+      var  is_child = 1
352
+
353
+      batchCreateAdvices(this.patient_id, this.group_no, data,mode,is_child)
352 354
         .then(rs => {
353 355
           this.loading = false;
354 356
           var resp = rs.data;

+ 5 - 2
src/pages/main/dialog/new_order/order_form.vue View File

@@ -220,6 +220,7 @@ export default {
220 220
         prescribing_number: "",
221 221
         prescribing_number_unit: "",
222 222
         remark: "",
223
+        group_no:"",
223 224
 
224 225
         // 在新增子药才用到的字段
225 226
         parent_id: 0, // 父医嘱ID
@@ -277,18 +278,19 @@ export default {
277 278
       parent_record_time,
278 279
       parent_start_time,
279 280
       parent_delivery_way,
280
-      parent_execution_frequency
281
+      parent_execution_frequency,
282
+      group_no,
281 283
     ) {
282 284
       this.mode = 3;
283 285
       this.visibility = true;
284 286
 
287
+      this.order.group_no = group_no
285 288
       this.order.parent_id = parent_id;
286 289
       this.order.record_time = parent_record_time;
287 290
       this.order.start_time = parent_start_time;
288 291
       this.order.title = "";
289 292
       this.order.advice_desc = "";
290 293
       this.order.remark = "";
291
-
292 294
       this.order.drug_spec = "";
293 295
       this.order.drug_spec_unit = "";
294 296
       this.order.delivery_way =
@@ -351,6 +353,7 @@ export default {
351 353
         });
352 354
       } else if (this.mode == 3) {
353 355
         this.$emit("did-create-subdrug", {
356
+          group_no: this.order.group_no,
354 357
           parent_id: this.order.parent_id,
355 358
           record_time: this.order.record_time,
356 359
           start_time: this.order.start_time,

+ 2 - 2
src/pages/main/records/RecordsTab.vue View File

@@ -309,7 +309,7 @@ export default {
309 309
 
310 310
             this.patient.source = this.patient.source == 1 ? "门诊" : "住院";
311 311
           } else {
312
-            Toast.fail("网络异常");
312
+            Toast.fail(response.data.msg);
313 313
             return false;
314 314
           }
315 315
         })
@@ -337,7 +337,7 @@ export default {
337 337
 }
338 338
 .data-bg {
339 339
   width: 100%;
340
-  padding-top:62px; 
340
+  padding-top:62px;
341 341
   min-height: calc(100vh - 130px);
342 342
   @media only screen and (min-width: 737px) and (max-width: 768px) {
343 343
     padding-top: 100px;

+ 10 - 10
src/pages/main/template/DialysisPrintOrderTen.vue View File

@@ -839,48 +839,49 @@
839 839
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
840 840
                 <div class="inline_block" style="flex:1;">
841 841
                   穿刺护士:
842
-                  <div class="under_line" style="width: 80px;text-align: center">
842
+                  <div class="under_line" style="width: 70px;text-align: center">
843 843
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
844 844
                     <img style="height:20px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
845 845
                   </div>
846 846
                 </div>
847 847
                 <div class="inline_block" style="flex:1;">
848 848
                   治疗护士:
849
-                  <div class="under_line" style="width: 80px;text-align: center">
849
+                  <div class="under_line" style="width: 70px;text-align: center">
850 850
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
851 851
                     <img style="height:20px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
852 852
                   </div>
853 853
                 </div>
854 854
                 <div class="inline_block" style="flex:1;">
855 855
                   核对人员:
856
-                  <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
856
+                  <div class="under_line" style="width: 70px;text-align: center" v-if="dialysisOrder == null">
857 857
                     <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
858 858
                     <img style="height:20px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
859 859
                   </div>
860
-                  <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
860
+                  <div class="under_line" style="width: 70px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
861 861
                     <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
862 862
                     <img style="height:20px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
863 863
                   </div>
864
-                  <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
864
+                  <div class="under_line" style="width: 70px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
865 865
                     <span v-if="setAdminUserES(check==null?0:check.modifier) == ''">{{getAdminUser(check==null?0:check.modifier)}}</span>
866 866
                     <img style="height:20px;" :src="setAdminUserES(check==null?0:check.modifier)" alt="" srcset="" v-else>
867 867
                   </div>
868
-                  <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater&&dialysisOrder.start_nurse != check.modifier">
868
+                  <div class="under_line" style="width: 70px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater&&dialysisOrder.start_nurse != check.modifier">
869 869
                     <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
870 870
                     <img style="height:20px;" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
871 871
                   </div>
872 872
                 </div>
873 873
                 <div class="inline_block" style="flex:1;">
874 874
                   下机护士:
875
-                  <div class="under_line" style="width: 80px;text-align: center">
875
+                  <div class="under_line" style="width: 70px;text-align: center">
876 876
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
877 877
                     <img style="height:20px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
878 878
                   </div>
879 879
                 </div>
880 880
                 <div class="inline_block" style="flex:1;">
881 881
                   治疗医生:
882
-                  <div class="under_line" style="width: 150px;text-align: center">
882
+                  <div class="under_line" style="width: 80px">
883 883
                     <img style="height:20px;" src="https://images.shengws.com/FgnRnBcx1BgULJ1dn7VKzeBPEvtm" alt="" srcset="">
884
+                    <!--<img style="height:20px;" src="https://images.shengws.com/FgnRnBcx1BgULJ1dn7VKzeBPEvtm" alt="" srcset="">-->
884 885
                     <span v-if="setAdminUserES(prescription.prescription_doctor) == ''">{{getAdminUser(prescription.prescription_doctor)}}</span>
885 886
                     <img style="height:20px;" :src="setAdminUserES(prescription.prescription_doctor)" alt="" srcset="" v-else>
886 887
                   </div>
@@ -888,8 +889,7 @@
888 889
 
889 890
                 <div class="inline_block" style="flex:1;">
890 891
                   患者签名:
891
-                  <div class="under_line" style="width: 80px;text-align: center">
892
-                    <span></span>
892
+                  <div class="under_line" style="width: 70px">
893 893
                   </div>
894 894
                 </div>
895 895
               </div>

+ 30 - 0
src/pages/main/today/assessmentAfter.vue View File

@@ -186,6 +186,24 @@
186 186
           <label for="bzh">透析期间进食: </label>
187 187
           <span id="bzh" class="content">{{eat_name}}</span>
188 188
         </li>
189
+
190
+        <li v-if="isShow('中心静脉封管(肝素-A端)')">
191
+          <label for="bzh">中心静脉封管(肝素-A端): </label>
192
+          <span class="content" id="tzjs">{{this.record.cvc_a?this.record.cvc_a:''}}</span>
193
+          <span class="unit">{{this.record.cvc_a?'ml':''}}</span>
194
+        </li>
195
+        <li v-if="isShow('中心静脉封管(肝素-B端)')">
196
+          <label for="bzh">中心静脉封管(肝素-B端): </label>
197
+          <span class="content" id="tzjs">{{this.record.cvc_b?this.record.cvc_b:''}}</span>
198
+          <span class="unit">{{this.record.cvc_b?'ml':''}}</span>
199
+        </li>
200
+
201
+        <li v-if="isShow('管路')">
202
+          <label for="bzh">管路: </label>
203
+          <span class="content" id="tzjs">{{getChannelName(this.record.channel)}}</span>
204
+        </li>
205
+
206
+
189 207
       </ul>
190 208
     </div>
191 209
     <div class="note">备注 : <span>{{remark}}</span></div>
@@ -591,6 +609,18 @@
591 609
           }
592 610
         }
593 611
         return intravenousTubeName
612
+      },getChannelName:function(id){
613
+        var channel = this.$store.getters.channel
614
+        var channelName = ''
615
+        for (let i = 0; i < channel.length; i++) {
616
+          if (channel[i].id == id) {
617
+            channelName = channel[i].name
618
+          }
619
+        }
620
+        return channelName
621
+
622
+
623
+
594 624
       },
595 625
       getDialyzer: function (id) {
596 626
         var dialyzer = this.$store.getters.dialyzer

+ 1 - 1
src/pages/waitingRoom/components/patientInfo.vue View File

@@ -369,7 +369,7 @@ export default {
369 369
 
370 370
             this.patient.source = this.patient.source == 1 ? "门诊" : "住院";
371 371
           } else {
372
-            Toast.fail("网络异常");
372
+            Toast.fail(response.data.msg);
373 373
             return false;
374 374
           }
375 375
         })

+ 3 - 0
src/store/index.js View File

@@ -65,6 +65,9 @@ const getters = {
65 65
   intravenous_tube: state => state.global_config.intravenous_tube,
66 66
   dialyzer: state => state.global_config.dialyzer,
67 67
 
68
+  channel: state => state.global_config.channel,
69
+
70
+
68 71
 
69 72
   dialysis_duration: state => state.global_config.dialysis_duration,
70 73
   last_dialysis_after: state => state.global_config.last_dialysis_after,

+ 18 - 0
src/store/modules/globalConfig.js View File

@@ -2215,6 +2215,24 @@ const global_config = {
2215 2215
         id: 4,
2216 2216
         name: 'A钝针'
2217 2217
       }
2218
+    ],
2219
+    channel: [
2220
+      {
2221
+      id: 1,
2222
+      name: '无'
2223
+    },
2224
+      {
2225
+        id: 2,
2226
+        name: '+'
2227
+      },
2228
+      {
2229
+        id: 3,
2230
+        name: '++'
2231
+      },
2232
+      {
2233
+        id: 4,
2234
+        name: '+++'
2235
+      }
2218 2236
     ]
2219 2237
 
2220 2238
   },