Browse Source

排序问题处理

XMLWAN 4 years ago
parent
commit
878e916570

+ 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

+ 80 - 18
src/pages/main/dialog/AssessmentDialog.vue View File

@@ -65,15 +65,28 @@
65 65
           </div>
66 66
         </div>
67 67
 
68
-        <div class="item" ref="symptom_before_dialysis" v-if="isShow('透析机型号')">
68
+<!--        <div class="item" ref="symptom_before_dialysis" v-if="isShow('透析机型号')">-->
69
+<!--          <h2 class="name">透析机型号</h2>-->
70
+<!--          <div class="content">-->
71
+<!--            <input-->
72
+<!--              type="text"-->
73
+<!--              @click="newClick($event)"-->
74
+<!--              @focus="inputFocus"-->
75
+<!--              v-model="formValue.machine_type"-->
76
+<!--            />-->
77
+<!--          </div>-->
78
+<!--        </div>-->
79
+
80
+        <div
81
+          @click="showSubMenu('machine_type')"
82
+          class="item"
83
+          ref="machine_type"
84
+          v-if="isShow('透析机型号')"
85
+        >
69 86
           <h2 class="name">透析机型号</h2>
70 87
           <div class="content">
71
-            <input
72
-              type="text"
73
-              @click="newClick($event)"
74
-              @focus="inputFocus"
75
-              v-model="formValue.machine_type"
76
-            />
88
+            <span class="text">{{DialysisModel(formValue.machine_type)}}</span>
89
+            <span class="iconfont">&#xe6f9;</span>
77 90
           </div>
78 91
         </div>
79 92
 
@@ -649,7 +662,8 @@ export default {
649 662
         puncture_needle: ""
650 663
       },
651 664
 
652
-      record_date: ""
665
+      record_date: "",
666
+      machineType: []
653 667
     };
654 668
   },
655 669
   watch: {
@@ -1333,6 +1347,23 @@ export default {
1333 1347
           }
1334 1348
           this.propForm.click_ref = "puncture_needle";
1335 1349
           break;
1350
+
1351
+        case "machine_type":
1352
+          this.isHasOther = 2;
1353
+          this.propForm.isShowOther = 1;
1354
+          this.propForm.type = 23;
1355
+          this.isShowDialog = false;
1356
+          this.propForm.title = "透析机型号";
1357
+          this.visibility = true;
1358
+          this.propForm.list = [];
1359
+          this.propForm.optionList = getDataConfig(
1360
+            "hemodialysis",
1361
+            "machine_type"
1362
+          );
1363
+          this.propForm.isMultiple = 1;
1364
+          this.propForm.selectId = this.formValue.machine_type;
1365
+          this.propForm.click_ref = "machine_type";
1366
+          break;
1336 1367
       }
1337 1368
     },
1338 1369
     menuCancle: function() {
@@ -1440,12 +1471,14 @@ export default {
1440 1471
         case 22:
1441 1472
           this.formValue.puncture_needle = val.result.join(",");
1442 1473
           break;
1474
+        case 23:
1475
+          this.formValue.machine_type = val.selectId;
1476
+          break;
1443 1477
       }
1444 1478
     },
1445 1479
     QueryPartById: function(val) {
1446 1480
       let vascular_access_part_name = "";
1447 1481
       let vascular_access = getDataConfig("hemodialysis", "vascular_access");
1448
-      console.log("vascular_access", vascular_access);
1449 1482
       for (let i = 0; i < vascular_access.length; i++) {
1450 1483
         if (vascular_access[i].id == val) {
1451 1484
           vascular_access_part_name = vascular_access[i].name;
@@ -1479,6 +1512,18 @@ export default {
1479 1512
       }
1480 1513
       return name;
1481 1514
     },
1515
+    DialysisModel: function(val) {
1516
+      let name = "";
1517
+      let options = getDataConfig("hemodialysis", "machine_type");
1518
+      for (let index = 0; index < options.length; index++) {
1519
+        const option = options[index];
1520
+        if (option.id == val) {
1521
+          name = option.name;
1522
+          break;
1523
+        }
1524
+      }
1525
+      return name;
1526
+    },
1482 1527
     commitInfo: function() {
1483 1528
       let mode = 1;
1484 1529
       Toast.loading({ forbidClick: true, duration: 0 });
@@ -1490,21 +1535,26 @@ export default {
1490 1535
       // if (this.formValue.dry_weight == ""){
1491 1536
       //   this.formValue.
1492 1537
       // }
1493
-      console.log(this.predialysis);
1494
-
1495 1538
 
1496 1539
       if (this.predialysis.id > 0) {
1497 1540
         mode = 1;
1498
-        if(this.predialysis.creater == 0){
1541
+        if (this.predialysis.creater == 0) {
1499 1542
           mode = 1;
1500
-        }else{
1543
+        } else {
1501 1544
           mode = 2;
1502 1545
           if (this.predialysis.creater != this.$store.getters.user.admin.id) {
1503 1546
             mode = 3;
1504 1547
           }
1505 1548
         }
1506 1549
       }
1507
-
1550
+      this.machineType = getDataConfig("hemodialysis", "machine_type");
1551
+      var arr = this.formValue;
1552
+      for (let i = 0; i < this.machineType.length; i++) {
1553
+        if (arr.machine_type == this.machineType[i].id) {
1554
+          arr.machine_type = this.machineType[i].name;
1555
+        }
1556
+      }
1557
+      this.formValue = arr;
1508 1558
       EditAssessmentBeforeDislysis(
1509 1559
         this.$route.query.patient_id,
1510 1560
         this.record_date,
@@ -1518,6 +1568,14 @@ export default {
1518 1568
           } else {
1519 1569
             Toast("提交完成");
1520 1570
             this.$emit("evaluation", response.data.data.evaluation);
1571
+            var obj = this.predialysis;
1572
+            var arr = getDataConfig("hemodialysis", "machine_type");
1573
+            for (let i = 0; i < arr.length; i++) {
1574
+              if (obj.machine_type == arr[i].name) {
1575
+                obj.machine_type = arr[i].id;
1576
+              }
1577
+            }
1578
+            this.formValue = obj;
1521 1579
           }
1522 1580
         })
1523 1581
         .catch(error => {
@@ -1592,8 +1650,6 @@ export default {
1592 1650
           }
1593 1651
         })
1594 1652
         .then(res => {
1595
-          console.log(res);
1596
-          console.log("透前", this.patient_prop);
1597 1653
           console.log("透前", this.predialysis);
1598 1654
           if (res.data.state == 0) {
1599 1655
             this.hasPermission = false;
@@ -1650,8 +1706,15 @@ export default {
1650 1706
     }
1651 1707
     this.record_date =
1652 1708
       y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
1653
-    this.formValue = this.predialysis;
1654 1709
 
1710
+    var obj = this.predialysis;
1711
+    var arr = getDataConfig("hemodialysis", "machine_type");
1712
+    for (let i = 0; i < arr.length; i++) {
1713
+      if (obj.machine_type == arr[i].name) {
1714
+        obj.machine_type = arr[i].id;
1715
+      }
1716
+    }
1717
+    this.formValue = obj;
1655 1718
     if (
1656 1719
       this.predialysis.id == undefined &&
1657 1720
       this.last_predialysis.id != undefined
@@ -1726,7 +1789,6 @@ export default {
1726 1789
     }
1727 1790
     this.hemorrhage_state = this.formValue.is_hemorrhage == 0;
1728 1791
     this.data = getDataConfig("hemodialysis", "vascular_access_desc");
1729
-    console.log("投前评估", this.data);
1730 1792
   }
1731 1793
 };
1732 1794
 </script>

File diff suppressed because it is too large
+ 1332 - 1122
src/pages/main/dialog/PrescriptionDialog.vue


+ 114 - 59
src/pages/main/dialog/TreatmentDialog.vue View File

@@ -53,6 +53,30 @@
53 53
               :rows="5"
54 54
             ></el-input>
55 55
           </el-form-item>
56
+          <div v-if="isShow('透析护理记录')">
57
+            <el-form-item label="透析护理记录:">
58
+              <el-input
59
+                class="newTextarea treatmentInput"
60
+                @focus="lastInputFocus"
61
+                @blur="lastInputBlur"
62
+                type="textarea"
63
+                v-model="dialysisSummary.nursing_record"
64
+                :rows="5"
65
+              ></el-input>
66
+            </el-form-item>
67
+         </div>
68
+         <div v-if="isShow('特殊记录')">
69
+            <el-form-item label="特殊记录:">
70
+              <el-input
71
+                class="newTextarea treatmentInput"
72
+                @focus="lastInputFocus"
73
+                @blur="lastInputBlur"
74
+                type="textarea"
75
+                v-model="dialysisSummary.special_record"
76
+                :rows="5"
77
+              ></el-input>
78
+           </el-form-item>
79
+         </div>
56 80
         </el-form>
57 81
         <!-- <div class="button">
58 82
               <button @click="commitInfo" class="submitButton">提交</button>
@@ -75,14 +99,14 @@ import { Toast } from "vant";
75 99
 import CheckBoxSubMenu from "./subMenu/checkBoxSubMenu";
76 100
 import { getDataConfig } from "@/utils/data";
77 101
 
78
-import request from '@/utils/request'
102
+import request from "@/utils/request";
79 103
 
80 104
 export default {
81 105
   name: "TreatmentDialog",
82 106
   data() {
83 107
     return {
84
-      showTxt:'',
85
-      hasPermission:true,
108
+      showTxt: "",
109
+      hasPermission: true,
86 110
       isShowDialog: true,
87 111
 
88 112
       visibility: false,
@@ -91,8 +115,8 @@ export default {
91 115
         list: [],
92 116
         optionList: [],
93 117
         isMultiple: 2,
94
-        result: [], //选中的值
95
-        type: 1, //用来区分不同子菜单,方便对返回值进行赋值
118
+        result: [], // 选中的值
119
+        type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
96 120
         selectId: 0
97 121
       },
98 122
 
@@ -107,7 +131,9 @@ export default {
107 131
         treatNurse: "",
108 132
         checkStaff: "",
109 133
         deboardNurse: "",
110
-        treatDoctor: ""
134
+        treatDoctor: "",
135
+        nursing_record: "",
136
+        special_record: ""
111 137
       },
112 138
       summary: [],
113 139
       summaryObj: {},
@@ -129,7 +155,7 @@ export default {
129 155
     }
130 156
   },
131 157
   created() {
132
-    this.getPermission()
158
+    this.getPermission();
133 159
     // this.summary = this.$store.getters.summary;
134 160
     this.summary = getDataConfig("summary", "summary");
135 161
     // console.log("this.summary",this.summary)
@@ -250,8 +276,8 @@ export default {
250 276
     },
251 277
 
252 278
     dialysisSummarySelectChange: function(values) {
253
-      if(this.dialysisSummary.summaryContent == null){
254
-        this.dialysisSummary.summaryContent == ""
279
+      if (this.dialysisSummary.summaryContent == null) {
280
+        this.dialysisSummary.summaryContent == "";
255 281
       }
256 282
 
257 283
       if (this.dialysisSummary.summaryContent == "") {
@@ -267,21 +293,29 @@ export default {
267 293
               this.dialysisSummary.summaryContent + "," + values;
268 294
           } else {
269 295
             this.dialysisSummary.summaryContent =
270
-              this.dialysisSummary.summaryContent  + values;
296
+              this.dialysisSummary.summaryContent + values;
271 297
           }
272 298
         }
273 299
       }
274 300
     },
275 301
     dialysisAfterTeachSelectChange: function(values) {
276
-      if(this.dialysisSummary.propagandaAndEducationContent == null){
277
-        this.dialysisSummary.propagandaAndEducationContent == ""
302
+      if (this.dialysisSummary.propagandaAndEducationContent == null) {
303
+        this.dialysisSummary.propagandaAndEducationContent == "";
278 304
       }
279 305
       if (this.dialysisSummary.propagandaAndEducationContent == "") {
280 306
         this.dialysisSummary.propagandaAndEducationContent = values;
281 307
       } else {
282
-        if (this.dialysisSummary.propagandaAndEducationContent.indexOf(values) == -1) {
308
+        if (
309
+          this.dialysisSummary.propagandaAndEducationContent.indexOf(values) ==
310
+          -1
311
+        ) {
283 312
           if (
284
-            this.dialysisSummary.propagandaAndEducationContent.charAt(this.dialysisSummary.propagandaAndEducationContent.length - 1).indexOf("。") == -1) {
313
+            this.dialysisSummary.propagandaAndEducationContent
314
+              .charAt(
315
+                this.dialysisSummary.propagandaAndEducationContent.length - 1
316
+              )
317
+              .indexOf("。") == -1
318
+          ) {
285 319
             this.dialysisSummary.propagandaAndEducationContent =
286 320
               this.dialysisSummary.propagandaAndEducationContent + "," + values;
287 321
           } else {
@@ -298,28 +332,30 @@ export default {
298 332
       ParamsQuery["record_date"] = this.record_date;
299 333
       ParamsQuery["mode"] = "1";
300 334
 
301
-      if (this.record.id > 0){
335
+      if (this.record.id > 0) {
302 336
         ParamsQuery["mode"] = "2";
303
-        if(this.record.creater != this.$store.getters.user.admin.id){
337
+        if (this.record.creater != this.$store.getters.user.admin.id) {
304 338
           ParamsQuery["mode"] = "3";
305 339
         }
306 340
       }
307 341
 
308
-      commitTreatmentSummary(ParamsQuery).then(response => {
309
-        if (response.data.state == 0) {
310
-          Toast.fail(response.data.msg);
311
-          return false;
312
-        } else {
313
-          Toast.success("提交成功");
342
+      commitTreatmentSummary(ParamsQuery)
343
+        .then(response => {
344
+          if (response.data.state == 0) {
345
+            Toast.fail(response.data.msg);
346
+            return false;
347
+          } else {
348
+            Toast.success("提交成功");
314 349
 
315
-          this.$emit("did_update", response.data.data.summary);
316
-          for (const key in response.data.data.summary) {
317
-            this.record[key] = response.data.data.summary[key];
350
+            this.$emit("did_update", response.data.data.summary);
351
+            for (const key in response.data.data.summary) {
352
+              this.record[key] = response.data.data.summary[key];
353
+            }
318 354
           }
319
-        }
320
-      }).catch(err => {
321
-        Toast.fail(err)
322
-      });
355
+        })
356
+        .catch(err => {
357
+          Toast.fail(err);
358
+        });
323 359
     },
324 360
     close: function() {
325 361
       this.$emit("close");
@@ -334,40 +370,59 @@ export default {
334 370
         });
335 371
       }
336 372
     },
337
-    getPermission(){
338
-      request.get("/m/api/permission/get",{
339
-        params:{
340
-          create_url:"/m/api/dialysis/treatmentSummary?mode=1",
341
-          modify_url:"/m/api/dialysis/treatmentSummary?mode=2",
342
-          modify_other_url:"/m/api/dialysis/treatmentSummary?mode=3",
343
-          module:9
344
-        }
345
-      }).then(res => {
346
-        console.log(res)
347
-        console.log("小结",this.record)
348
-        if(res.data.state == 0){
349
-          this.hasPermission = false
350
-        }else if(res.data.state == 1){
351
-          if(this.record.id != "" && this.record.creater != 0){//有数据
352
-            if(this.record.creater == this.$store.getters.user.admin.id){//创建人是自己
353
-              if(res.data.data.is_has_modify == false){
354
-                this.hasPermission = false
355
-                this.showTxt = "你没有修改治疗小结权限"
373
+    getPermission() {
374
+      request
375
+        .get("/m/api/permission/get", {
376
+          params: {
377
+            create_url: "/m/api/dialysis/treatmentSummary?mode=1",
378
+            modify_url: "/m/api/dialysis/treatmentSummary?mode=2",
379
+            modify_other_url: "/m/api/dialysis/treatmentSummary?mode=3",
380
+            module: 9
381
+          }
382
+        })
383
+        .then(res => {
384
+          console.log(res);
385
+          console.log("小结", this.record);
386
+          if (res.data.state == 0) {
387
+            this.hasPermission = false;
388
+          } else if (res.data.state == 1) {
389
+            if (this.record.id != "" && this.record.creater != 0) {
390
+              // 有数据
391
+              if (this.record.creater == this.$store.getters.user.admin.id) {
392
+                // 创建人是自己
393
+                if (res.data.data.is_has_modify == false) {
394
+                  this.hasPermission = false;
395
+                  this.showTxt = "你没有修改治疗小结权限";
396
+                }
397
+              } else {
398
+                // 创建人不是自己
399
+                if (res.data.data.is_has_modify_other == false) {
400
+                  this.hasPermission = false;
401
+                  this.showTxt = "你没有修改他人治疗小结权限";
402
+                }
356 403
               }
357
-            }else{//创建人不是自己
358
-              if(res.data.data.is_has_modify_other == false){
359
-                this.hasPermission = false
360
-                this.showTxt = "你没有修改他人治疗小结权限"
404
+            } else if (this.record.id == "" || this.record.creater == 0) {
405
+              if (res.data.data.is_has_create == false) {
406
+                this.hasPermission = false;
407
+                this.showTxt = "你没有新增治疗小结权限";
361 408
               }
362 409
             }
363
-          }else if(this.record.id == "" || this.record.creater == 0){
364
-            if(res.data.data.is_has_create  == false){
365
-              this.hasPermission = false
366
-              this.showTxt = "你没有新增治疗小结权限"
367
-            }
368 410
           }
411
+        });
412
+    },
413
+    isShow(name) {
414
+      var filedList = this.$store.getters.user.fileds;
415
+
416
+      for (let i = 0; i < filedList.length; i++) {
417
+        if (
418
+          filedList[i].module == 6 &&
419
+          filedList[i].filed_name_cn == name &&
420
+          filedList[i].is_show == 1
421
+        ) {
422
+          return true;
369 423
         }
370
-      })
424
+      }
425
+      return false;
371 426
     }
372 427
   },
373 428
 
@@ -394,7 +449,7 @@ export default {
394 449
     }
395 450
   }
396 451
 }
397
-.warnTxt{
452
+.warnTxt {
398 453
   font-size: 0.5rem;
399 454
   height: 1rem;
400 455
   line-height: 1rem;

+ 3 - 0
src/pages/main/template/DialysisPrintOrderSix.vue View File

@@ -304,6 +304,9 @@
304 304
                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==18">
305 305
                       HDF后置换
306 306
                     </div>
307
+                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==19">
308
+                     IUF+HD
309
+                    </div>
307 310
                   </div>
308 311
 
309 312
                   <div class="inline_block" style="margin-left:10px;flex:1;">

+ 19 - 2
src/pages/main/today/TodayTab.vue View File

@@ -311,7 +311,7 @@ import { GetRemindLongAdvice } from "@/api/advice";
311 311
 
312 312
 import { parseTime } from "@/utils";
313 313
 import request from "@/utils/request";
314
-
314
+import { getDataConfig } from "@/utils/data";
315 315
 export default {
316 316
   name: "TodayTab",
317 317
   components: {
@@ -405,7 +405,8 @@ export default {
405 405
       is_open: 0,
406 406
       targetAdvices: [],
407 407
       status: "",
408
-      patientid: 0
408
+      patientid: 0,
409
+      dialyzerPerfusionApparatus: []
409 410
     };
410 411
   },
411 412
   computed: {
@@ -883,6 +884,22 @@ export default {
883 884
           var patient = resp.data.patient; // 患者信息
884 885
           var schedual = resp.data.schedual; // 患者排班信息
885 886
           var prescription = resp.data.prescription; // 透析处方
887
+          this.dialyzerPerfusionApparatus = getDataConfig(
888
+            "hemodialysis",
889
+            "dialyzer_perfusion_apparatus"
890
+          );
891
+          for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
892
+            if (
893
+              prescription.dialyzer_perfusion_apparatus ==
894
+              this.dialyzerPerfusionApparatus[i].name
895
+            ) {
896
+              prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
897
+                i
898
+              ].id;
899
+            }
900
+          }
901
+          console.log("透析器/灌流器", this.dialyzerPerfusionApparatus);
902
+          console.log("透析处方-----", prescription);
886 903
           var solution = resp.data.solution; // 透析方案
887 904
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
888 905
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估

+ 23 - 4
src/pages/main/today/treatmentOf.vue View File

@@ -5,7 +5,7 @@
5 5
       <p>{{ title }}</p>
6 6
       <span class="line"></span>
7 7
     </h2>
8
-    <div class="plate ">
8
+    <div class="plate " style="border:none;padding-bottom:0">
9 9
       <ul>
10 10
         <li>
11 11
           <label>透后宣教 : </label>
@@ -16,6 +16,18 @@
16 16
           <span class="content">{{ dialysis_summary }}</span>
17 17
         </li>
18 18
       </ul>
19
+    </div>
20
+      <div class="plate ">
21
+      <ul>
22
+        <li>
23
+          <label>透析护理记录 : </label>
24
+          <span class="content">{{ nursing_record }}</span>
25
+        </li>
26
+        <li>
27
+          <label>特殊记录 : </label>
28
+          <span class="content">{{ special_record }}</span>
29
+        </li>
30
+      </ul>
19 31
     </div>
20 32
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
21 33
   </div>
@@ -46,11 +58,17 @@ export default {
46 58
       }
47 59
       return this.record.mission;
48 60
     },
49
-    dialysis_summary: function() {
61
+    nursing_record: function() {
62
+      if (this.record == null || this.record.id == "") {
63
+        return "";
64
+      }
65
+      return this.record.nursing_record;
66
+    },
67
+    special_record: function() {
50 68
       if (this.record == null || this.record.id == "") {
51 69
         return "";
52 70
       }
53
-      return this.record.dialysis_summary;
71
+      return this.record.special_record;
54 72
     }
55 73
   },
56 74
   methods: {
@@ -62,4 +80,5 @@ export default {
62 80
 };
63 81
 </script>
64 82
 
65
-<style rel="stylesheet/scss" lang="scss" scoped></style>
83
+<style rel="stylesheet/scss" lang="scss" scoped>
84
+</style>

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

@@ -449,6 +449,21 @@ const global_config = {
449 449
         sodium: 2,
450 450
         calcium: 2,
451 451
         bicarbonate: 2
452
+      },
453
+      19: {
454
+        id: 19,
455
+        name: 'IUF+HD',
456
+        dialysis_duration: 1,
457
+        replacement_way: 2,
458
+        hemodialysis_machine: 1,
459
+        blood_filter: 2,
460
+        perfusion_apparatus: 2,
461
+        blood_flow_volume: 1,
462
+        dialysate_flow: 1,
463
+        kalium: 1,
464
+        sodium: 1,
465
+        calcium: 1,
466
+        bicarbonate: 1
452 467
       }
453 468
     },
454 469
     anticoagulants_confit: { // 抗凝剂