See999 4 years ago
parent
commit
5e42f8dfa1

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

@@ -2,7 +2,7 @@
2 2
 module.exports = {
3 3
   NODE_ENV: '"production"',
4 4
   BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
-  //  BASE_API: '"https://api.xt.kuyicloud.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

+ 21 - 0
src/api/patient/patient.js View File

@@ -478,6 +478,19 @@ export function getAllDoctor(params) {
478 478
   })
479 479
 }
480 480
 
481
+export function GetAllProjectNameByDate(date, patientid) {
482
+  const params = {
483
+    date: date,
484
+    patientid: patientid
485
+  }
486
+  console.log('params', params)
487
+  return request({
488
+    url: '/m/api/patient/getallprojectname',
489
+    method: 'Get',
490
+    params: params
491
+  })
492
+}
493
+
481 494
 export function getAllInspection(params) {
482 495
   return request({
483 496
     url: '/m/api/patient/getallinspection',
@@ -902,3 +915,11 @@ export function getMyInformationFour(params) {
902 915
     params: params
903 916
   })
904 917
 }
918
+
919
+export function submitForm(params) {
920
+  return request({
921
+    url: '/m/api/patient/sumitform',
922
+    method: 'Get',
923
+    params: params
924
+  })
925
+}

+ 0 - 1
src/pages/doctorAdvice/components/Inspection.vue View File

@@ -311,7 +311,6 @@ export default {
311 311
             item.child = arr;
312 312
           });
313 313
           this.Inspection = list.reverse();
314
-          console.log("inspection---------------------------", this.Inspection);
315 314
         }
316 315
       });
317 316
       this.finished = true;

+ 206 - 108
src/pages/home/activeForm.vue View File

@@ -16,11 +16,11 @@
16 16
                 <p>有问题请联系客服微信:<span>kuyicloud</span></p>
17 17
                 <p class="litle">以上解释权归酷医云所有,敬请留意</p>
18 18
             </div>
19
-            <van-field v-model="text" label="收件姓名" required placeholder="请填写"/>
20
-            <van-field v-model="text" label="收件手机" required placeholder="请填写"/>
21
-            <van-field v-model="text" label="收件地址" required placeholder="请填写"/>
22
-            <van-field v-model="text" label="您的职务" required placeholder="请填写"/>
23
-            <van-field v-model="text" label="医院名称" required placeholder="请填写"/>
19
+            <van-field v-model="form.name" label="收件姓名" required placeholder="请填写"/>
20
+            <van-field v-model="form.mobile" label="收件手机" required placeholder="请填写"/>
21
+            <van-field v-model="form.address" label="收件地址" required placeholder="请填写"/>
22
+            <van-field v-model="form.position" label="您的职务" required placeholder="请填写"/>
23
+            <van-field v-model="form.hospital_name" label="医院名称" required placeholder="请填写"/>
24 24
             <div class="formOne">
25 25
                 <div class="formTitle"><span style="color:#ee0a24">*</span>目前医院/机构是否正在使用透析管理系统</div>
26 26
                 <van-radio-group v-model="radio">
@@ -28,10 +28,10 @@
28 28
                     <van-radio name="2">无</van-radio>
29 29
                 </van-radio-group>
30 30
             </div>
31
-            <van-field v-model="text" placeholder="请填写系统名称"/>
31
+            <van-field v-model="form.system_name" placeholder="请填写系统名称"/>
32 32
             <div class="formOne">
33 33
                 <div class="formTitle"><span style="color:#ee0a24">*</span>是否考虑使用酷医云免费透析管理系统</div>
34
-                <van-radio-group v-model="radio">
34
+                <van-radio-group v-model="radioOne">
35 35
                     <van-radio name="1">是</van-radio>
36 36
                     <van-radio name="2">否</van-radio>
37 37
                 </van-radio-group>
@@ -39,28 +39,28 @@
39 39
             <div class="formOne">
40 40
                 <div class="formTitle"><span style="color:#ee0a24">*</span>除酷医云免费使用的透析管理系统外,您还想了解酷医云系统其他哪些服务板块?(多选) </div>
41 41
                 <van-checkbox-group v-model="result">
42
-                    <van-checkbox name="a">慢病管理</van-checkbox>
43
-                    <van-checkbox name="b">营销管理</van-checkbox>
44
-                    <van-checkbox name="b">分销商城</van-checkbox>
45
-                    <van-checkbox name="b">医护培训</van-checkbox>
46
-                    <van-checkbox name="b">供应链</van-checkbox>
47
-                    <van-checkbox name="b">其他</van-checkbox>
42
+                    <van-checkbox name="1">慢病管理</van-checkbox>
43
+                    <van-checkbox name="2">营销管理</van-checkbox>
44
+                    <van-checkbox name="3">分销商城</van-checkbox>
45
+                    <van-checkbox name="4">医护培训</van-checkbox>
46
+                    <van-checkbox name="5">供应链</van-checkbox>
47
+                    <van-checkbox name="6">其他</van-checkbox>
48 48
                 </van-checkbox-group>
49 49
                 <p style="color:#ccc">请填写其他(30个字以内)</p>
50 50
                 <div class="textareaBox">
51
-                    <van-field v-model="message" rows="3" type="textarea" maxlength="30" />
51
+                    <van-field v-model="form.other_remark" rows="3" type="textarea" maxlength="30" />
52 52
                 </div>
53 53
             </div>
54 54
             <div class="formTwo">
55 55
                 <div class="formTitle"><span style="color:#ee0a24">*</span>请选择以下礼品(任选其一)</div>
56
-                <van-radio-group v-model="radio">
56
+                <van-radio-group v-model="resultTwo">
57 57
                     <van-radio name="1">保湿纳米喷雾补水仪</van-radio>
58 58
                     <van-radio name="2">车载加湿器</van-radio>
59 59
                     <van-radio name="3">商务保温杯套装</van-radio>
60 60
                 </van-radio-group>
61 61
                 <p>其他留言(200个字以内)</p>
62 62
                 <div class="textareaBox2">
63
-                    <van-field v-model="message" rows="5" type="textarea" maxlength="200" />
63
+                    <van-field v-model="form.other_message" rows="5" type="textarea" maxlength="200" />
64 64
                 </div>
65 65
             </div>
66 66
         </div>
@@ -69,51 +69,150 @@
69 69
 </template>
70 70
 
71 71
 <script>
72
+import { submitForm } from "@/api/patient/patient";
72 73
 export default {
73
-    data() {
74
-        return {
75
-            radio: '1',
76
-            result:[]
77
-        };
78
-    },
79
-    methods:{
80
-        submitForm(){
81
-            this.$router.push({ path: "/activeSuccess" });
74
+  data() {
75
+    return {
76
+      radio: "0",
77
+      radioOne: "0",
78
+      resultTwo: [],
79
+      result: [],
80
+      form: {
81
+        name: "",
82
+        mobile: "",
83
+        address: "",
84
+        position: "",
85
+        hospital_name: "",
86
+        is_user: 0,
87
+        is_think: 0,
88
+        other_mode: 0,
89
+        gift: 0,
90
+        other_remark: "",
91
+        other_message: "",
92
+        system_name: ""
93
+      }
94
+    };
95
+  },
96
+  methods: {
97
+    submitForm() {
98
+      if (this.form.name == "") {
99
+        this.$toast("收件姓名不能为空");
100
+        return false;
101
+      }
102
+      if (this.form.mobile == "") {
103
+        this.$toast("收件手机不能为空");
104
+        return false;
105
+      }
106
+      if (this.form.address == "") {
107
+        this.$toast("收件地址不能为空");
108
+        return false;
109
+      }
110
+      if (this.form.position == "") {
111
+        this.$toast("您的职务不能为空");
112
+        return false;
113
+      }
114
+      if (this.form.hospital_name == "") {
115
+        this.$toast("医院名称不能为空");
116
+        return false;
117
+      }
118
+      if (this.radio == "0") {
119
+        this.$toast("目前医院/机构是否正在使用透析管理系统不能为空");
120
+        return false;
121
+      }
122
+      if (this.radioOne == "0") {
123
+        this.$toast("是否考虑使用酷医云免费透析管理系统不能为空");
124
+        return false;
125
+      }
126
+      if (this.result.length == 0) {
127
+        this.$toast("是否考虑使用酷医云免费透析管理系统不能为空");
128
+        return false;
129
+      }
130
+      if (this.resultTwo.length == 0) {
131
+        this.$toast("请选择以下礼品不能为空");
132
+        return false;
133
+      }
134
+      if (this.radio == "1") {
135
+        this.form.is_user = 1;
136
+      }
137
+      if (this.radio == "2") {
138
+        this.form.is_user = 2;
139
+      }
140
+      if (this.radioOne == "1") {
141
+        this.form.is_think = 1;
142
+      }
143
+      if (this.radioOne == "2") {
144
+        this.form.is_think = 2;
145
+      }
146
+      if (this.resultTwo == "1") {
147
+        this.form.gift = 1;
148
+      }
149
+      if (this.resultTwo == "2") {
150
+        this.form.gift = 2;
151
+      }
152
+      if (this.resultTwo == "3") {
153
+        this.form.gift = 3;
154
+      }
155
+      var result = this.result.join(",");
156
+      console.log("result", result);
157
+      const params = {
158
+        name: this.form.name,
159
+        mobile: this.form.mobile,
160
+        address: this.form.address,
161
+        position: this.form.position,
162
+        hospitalName: this.form.hospital_name,
163
+        systemName: this.form.system_name,
164
+        isUser: this.form.is_user,
165
+        isThink: this.form.is_think,
166
+        result: result,
167
+        otherRemark: this.form.other_remark,
168
+        otherMessage: this.form.other_message,
169
+        gift: this.form.gift
170
+      };
171
+      console.log("params", params);
172
+      submitForm(params).then(response => {
173
+        if (response.data.state === 1) {
174
+          var table = response.data.data.table;
175
+          this.$router.push({ path: "/activeSuccess" });
176
+        } else {
177
+          this.$toast("您已提交过信息,请勿重复提交");
82 178
         }
179
+      });
83 180
     }
84
-}
181
+  }
182
+};
85 183
 </script>
86 184
 
87 185
 <style lang="scss" scoped>
88
-.page_activeForm{
89
-    height: 100%;
90
-    overflow-y: auto;
91
-    background: #EAF4FE;
92
-    .activeFormTitle{
93
-        background: #fff;
94
-        height: 3.125rem;
95
-        line-height: 3.125rem;
96
-        display: flex;
97
-        align-items: center;
98
-    }
186
+.page_activeForm {
187
+  height: 100%;
188
+  overflow-y: auto;
189
+  background: #eaf4fe;
190
+  .activeFormTitle {
191
+    background: #fff;
192
+    height: 3.125rem;
193
+    line-height: 3.125rem;
194
+    display: flex;
195
+    align-items: center;
196
+  }
99 197
 
100
-    .jiantou {
101
-        margin-left: 1.25rem;
102
-        font-size: 1.5rem;
103
-        font-weight: 600;
104
-        margin-right: 6.2rem;
105
-    }
198
+  .jiantou {
199
+    margin-left: 1.25rem;
200
+    font-size: 1.5rem;
201
+    font-weight: 600;
202
+    margin-right: 6.2rem;
203
+  }
106 204
 
107
-    .titleName {
108
-        font-size: 1.125rem;
109
-        font-weight: 600;
110
-    }
205
+  .titleName {
206
+    font-size: 1.125rem;
207
+    font-weight: 600;
208
+  }
111 209
     .formBox{
112 210
         width:21rem;
113 211
         height:97rem;
114 212
         background:rgba(255,255,255,1);
115 213
         border-radius:15px;
116 214
         margin: .875rem auto;
215
+
117 216
     }
118 217
     .attentionBox{
119 218
         font-size: .875rem;
@@ -164,78 +263,77 @@ export default {
164 263
         font-size: 1.25rem;
165 264
     }
166 265
 }
167
-::-webkit-scrollbar{
168
-    width: 0;
266
+::-webkit-scrollbar {
267
+  width: 0;
169 268
 }
170 269
 </style>
171 270
 
172 271
 <style lang="scss">
173
-.page_activeForm{
174
-    .van-cell{
175
-        height: 4rem;
176
-        font-size: 1.0625rem;
177
-        color: #000;
178
-        margin-bottom: 1px;
272
+.page_activeForm {
273
+  .van-cell {
274
+    height: 4rem;
275
+    font-size: 1.0625rem;
276
+    color: #000;
277
+    margin-bottom: 1px;
278
+  }
279
+  .van-field__label {
280
+    display: flex;
281
+    align-items: center;
282
+  }
283
+  .van-field__value {
284
+    display: flex;
285
+    align-items: center;
286
+  }
287
+  .van-cell:not(:last-child)::after {
288
+    border-bottom: 1px solid #e5e5e5;
289
+  }
290
+  .van-cell--required::before {
291
+    top: 1.2rem;
292
+    font-size: 1rem;
293
+  }
294
+  .formOne {
295
+    .van-radio-group {
296
+      display: flex;
179 297
     }
180
-    .van-field__label{
181
-        display: flex;
182
-        align-items: center;
298
+    .van-radio {
299
+      margin-right: 1.875rem;
183 300
     }
184
-    .van-field__value{
185
-        display: flex;
186
-        align-items: center; 
301
+  }
302
+
303
+  .van-checkbox-group {
304
+    display: flex;
305
+    flex-wrap: wrap;
306
+    .van-checkbox {
307
+      width: 50%;
308
+      margin-bottom: 1.125rem;
187 309
     }
188
-    .van-cell:not(:last-child)::after{
189
-        border-bottom: 1px solid #e5e5e5;
310
+  }
311
+
312
+  .textareaBox {
313
+    padding-left: 0;
314
+    margin-right: 0.875rem;
315
+    margin-top: 0.625rem;
316
+    height: 6.25rem;
317
+    background: #f6f6f6;
318
+    border-radius: 5px;
319
+    .van-cell {
320
+      padding: 0;
190 321
     }
191
-    .van-cell--required::before{
192
-        top:1.2rem;
193
-        font-size: 1rem;
322
+    .van-cell__value {
323
+      background: #f6f6f6;
194 324
     }
195
-    .formOne{
196
-        .van-radio-group{
197
-            display: flex;
198
-        }
199
-        .van-radio{
200
-            margin-right: 1.875rem;
201
-        }
202
-    }
203
-    
204
-    .van-checkbox-group{
205
-        display: flex;
206
-        flex-wrap: wrap;
207
-        .van-checkbox{
208
-            width: 50%;
209
-            margin-bottom: 1.125rem;
210
-        }
325
+    .van-field__body {
326
+      width: 100%;
327
+      textarea {
328
+        width: 100%;
329
+      }
211 330
     }
212
-
213
-    
214
-    .textareaBox{
215
-        padding-left: 0;
216
-        margin-right: .875rem;
217
-        margin-top: .625rem;
218
-        height: 6.25rem;
219
-        background: #F6F6F6;
220
-        border-radius:5px;
221
-        .van-cell{
222
-            padding: 0;
223
-        }
224
-        .van-cell__value{
225
-            background: #F6F6F6;
226
-        }
227
-        .van-field__body{
228
-            width: 100%;
229
-            textarea{
230
-                width: 100%;
231
-            }
232
-        }
233
-    }
234
-    .formTwo{
235
-        .van-radio{
236
-            margin-bottom: 1.125rem;
237
-        }
331
+  }
332
+  .formTwo {
333
+    .van-radio {
334
+      margin-bottom: 1.125rem;
238 335
     }
336
+  }
239 337
     .textareaBox2{
240 338
         margin-top: .625rem;
241 339
         margin-right: .875rem;

+ 57 - 93
src/pages/main/dialog/AssessmentDialog.vue View File

@@ -65,8 +65,6 @@
65 65
           </div>
66 66
         </div>
67 67
 
68
-
69
-
70 68
         <div class="item" ref="symptom_before_dialysis" v-if="isShow('透析机型号')">
71 69
           <h2 class="name">透析机型号</h2>
72 70
           <div class="content">
@@ -103,7 +101,6 @@
103 101
           </div>
104 102
         </div>
105 103
 
106
-
107 104
         <div class="line"></div>
108 105
         <div class="item" v-if="isShow('收缩压')">
109 106
           <h2 class="name">收缩压(mmHg)</h2>
@@ -153,10 +150,10 @@
153 150
         </div>
154 151
 
155 152
         <div
156
-          @click="showSubMenu('blood_access_opera')"
153
+          @click="showSubMenu('vascular_access_desc')"
157 154
           class="item"
158
-          ref="blood_access_opera"
159
-          v-if="isShow('血管通路操作')"
155
+          ref="vascular_access_desc"
156
+          v-if="isShow('血管通路')"
160 157
         >
161 158
           <h2 class="name">血管通路</h2>
162 159
           <div class="content">
@@ -166,7 +163,6 @@
166 163
         </div>
167 164
         <div class="line"></div>
168 165
 
169
-
170 166
         <div
171 167
           @click="showSubMenu('blood_access_part')"
172 168
           class="item"
@@ -223,8 +219,6 @@
223 219
           </div>
224 220
         </div>
225 221
 
226
-
227
-
228 222
         <div
229 223
           @click="showSubMenu('internal_fistula_skin')"
230 224
           class="item"
@@ -238,7 +232,6 @@
238 232
           </div>
239 233
         </div>
240 234
 
241
-
242 235
         <div
243 236
           @click="showSubMenu('venous_catheterization')"
244 237
           class="item"
@@ -276,7 +269,6 @@
276 269
           </div>
277 270
         </div>
278 271
 
279
-
280 272
         <div
281 273
           @click="showSubMenu('puncture_needle')"
282 274
           class="item"
@@ -313,7 +305,6 @@
313 305
           </div>
314 306
         </div>
315 307
 
316
-
317 308
         <div @click="showSubMenu('skin')" class="item" ref="skin" v-if="isShow('皮肤')">
318 309
           <h2 class="name">皮肤</h2>
319 310
           <div class="content">
@@ -322,9 +313,6 @@
322 313
           </div>
323 314
         </div>
324 315
 
325
-
326
-
327
-
328 316
         <div
329 317
           @click="showSubMenu('complication')"
330 318
           class="item"
@@ -364,7 +352,6 @@
364 352
           </div>
365 353
         </div>
366 354
 
367
-
368 355
         <div
369 356
           @click="showSubMenu('emergency_treatment')"
370 357
           class="item"
@@ -388,8 +375,6 @@
388 375
           </div>
389 376
         </div>
390 377
 
391
-
392
-
393 378
         <div class="item" v-if="this.$store.getters.user.template_info.template_id == 6">
394 379
           <h2 class="name">透前净体重(kg)</h2>
395 380
           <div class="content">
@@ -402,14 +387,6 @@
402 387
           </div>
403 388
         </div>
404 389
 
405
-
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413 390
         <div
414 391
           @click="showSubMenu('hemorrhage')"
415 392
           class="item"
@@ -429,14 +406,6 @@
429 406
           </div>
430 407
         </div>
431 408
 
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440 409
         <div
441 410
           @click="showSubMenu('dialysis_interphase')"
442 411
           class="item"
@@ -450,12 +419,8 @@
450 419
           </div>
451 420
         </div>
452 421
 
453
-
454 422
         <div class="line"></div>
455 423
 
456
-
457
-
458
-
459 424
 <!--        <div-->
460 425
 <!--          @click="showSubMenu('blood_access_internal_fistula')"-->
461 426
 <!--          class="item"-->
@@ -469,13 +434,6 @@
469 434
 <!--          </div>-->
470 435
 <!--        </div>-->
471 436
 
472
-
473
-
474
-
475
-
476
-
477
-
478
-
479 437
 <!--        <div-->
480 438
 <!--          @click="showSubMenu('venous_catheterization_part')"-->
481 439
 <!--          class="item"-->
@@ -492,8 +450,6 @@
492 450
 <!--          </div>-->
493 451
 <!--        </div>-->
494 452
 
495
-
496
-
497 453
         <div
498 454
           @click="showSubMenu('ductus_arantii')"
499 455
           class="item"
@@ -514,8 +470,6 @@
514 470
           </div>
515 471
         </div>
516 472
 
517
-
518
-
519 473
         <div
520 474
           class="item"
521 475
           v-if="isShow('感染')"
@@ -550,7 +504,6 @@
550 504
           </div>
551 505
         </div>
552 506
 
553
-
554 507
         <div class="item" ref="skin_other" v-if="isShow('其他皮肤情况')">
555 508
           <h2 class="name">其他皮肤情况</h2>
556 509
           <div class="content">
@@ -602,7 +555,7 @@ import { Toast } from "vant";
602 555
 import { getDataConfig } from "@/utils/data";
603 556
 import DryWeightMenu from "./subMenu/dryWeightMenu";
604 557
 
605
-import request from '@/utils/request'
558
+import request from "@/utils/request";
606 559
 
607 560
 export default {
608 561
   name: "PrescriptionDialog",
@@ -625,8 +578,8 @@ export default {
625 578
   },
626 579
   data() {
627 580
     return {
628
-      showTxt:"",
629
-      hasPermission:true,
581
+      showTxt: "",
582
+      hasPermission: true,
630 583
       propDryForm: {
631 584
         weight: 0,
632 585
         doctor: []
@@ -730,7 +683,8 @@ export default {
730 683
         }
731 684
       },
732 685
       deep: true,
733
-      immediate: true
686
+      immediate: true,
687
+      data: []
734 688
     }
735 689
   },
736 690
   methods: {
@@ -1055,13 +1009,13 @@ export default {
1055 1009
           this.propForm.click_ref = "blood_access_part";
1056 1010
           break;
1057 1011
 
1058
-        case "blood_access_opera":
1012
+        case "vascular_access_desc":
1059 1013
           this.isHasOther = 2;
1060 1014
           this.propForm.isShowOther = 1;
1061 1015
 
1062 1016
           this.propForm.type = 7;
1063 1017
           this.isShowDialog = false;
1064
-          this.propForm.title = "血管通路操作";
1018
+          this.propForm.title = "血管通路";
1065 1019
           this.visibility = true;
1066 1020
           this.propForm.list = [];
1067 1021
           this.propForm.optionList = getDataConfig(
@@ -1070,7 +1024,7 @@ export default {
1070 1024
           );
1071 1025
           this.propForm.isMultiple = 1;
1072 1026
           this.propForm.selectId = this.formValue.blood_access_part_opera_id;
1073
-          this.propForm.click_ref = "blood_access_opera";
1027
+          this.propForm.click_ref = "vascular_access_desc";
1074 1028
           break;
1075 1029
 
1076 1030
         case "internal_fistula":
@@ -1491,7 +1445,7 @@ export default {
1491 1445
     QueryPartById: function(val) {
1492 1446
       let vascular_access_part_name = "";
1493 1447
       let vascular_access = getDataConfig("hemodialysis", "vascular_access");
1494
-
1448
+      console.log("vascular_access", vascular_access);
1495 1449
       for (let i = 0; i < vascular_access.length; i++) {
1496 1450
         if (vascular_access[i].id == val) {
1497 1451
           vascular_access_part_name = vascular_access[i].name;
@@ -1621,41 +1575,51 @@ export default {
1621 1575
           break;
1622 1576
       }
1623 1577
     },
1624
-    getPermission(){
1625
-      request.get("/m/api/permission/get",{
1626
-        params:{
1627
-          create_url:"/m/api/assessmentbefore/commit?mode=1",
1628
-          modify_url:"/m/api/assessmentbefore/commit?mode=2",
1629
-          modify_other_url:"/m/api/assessmentbefore/commit?mode=3",
1630
-          module:3
1631
-        }
1632
-      }).then(res => {
1633
-        console.log(res)
1634
-        console.log("透前",this.patient_prop)
1635
-        console.log("透前",this.predialysis)
1636
-        if(res.data.state == 0){
1637
-          this.hasPermission = false
1638
-        }else if(res.data.state == 1){
1639
-          if(this.predialysis.id != "" && this.predialysis.creater != 0){//有数据
1640
-            if(this.predialysis.creater == this.$store.getters.user.admin.id){//创建人是自己
1641
-              if(res.data.data.is_has_modify == false){
1642
-                this.hasPermission = false
1643
-                this.showTxt = "你没有修改透前评估权限"
1578
+    getPermission() {
1579
+      request
1580
+        .get("/m/api/permission/get", {
1581
+          params: {
1582
+            create_url: "/m/api/assessmentbefore/commit?mode=1",
1583
+            modify_url: "/m/api/assessmentbefore/commit?mode=2",
1584
+            modify_other_url: "/m/api/assessmentbefore/commit?mode=3",
1585
+            module: 3
1586
+          }
1587
+        })
1588
+        .then(res => {
1589
+          console.log(res);
1590
+          console.log("透前", this.patient_prop);
1591
+          console.log("透前", this.predialysis);
1592
+          if (res.data.state == 0) {
1593
+            this.hasPermission = false;
1594
+          } else if (res.data.state == 1) {
1595
+            if (this.predialysis.id != "" && this.predialysis.creater != 0) {
1596
+              // 有数据
1597
+              if (
1598
+                this.predialysis.creater == this.$store.getters.user.admin.id
1599
+              ) {
1600
+                // 创建人是自己
1601
+                if (res.data.data.is_has_modify == false) {
1602
+                  this.hasPermission = false;
1603
+                  this.showTxt = "你没有修改透前评估权限";
1604
+                }
1605
+              } else {
1606
+                // 创建人不是自己
1607
+                if (res.data.data.is_has_modify_other == false) {
1608
+                  this.hasPermission = false;
1609
+                  this.showTxt = "你没有修改他人透前评估权限";
1610
+                }
1644 1611
               }
1645
-            }else{//创建人不是自己
1646
-              if(res.data.data.is_has_modify_other == false){
1647
-                this.hasPermission = false
1648
-                this.showTxt = "你没有修改他人透前评估权限"
1612
+            } else if (
1613
+              this.predialysis.id == "" ||
1614
+              this.predialysis.creater == 0
1615
+            ) {
1616
+              if (res.data.data.is_has_create == false) {
1617
+                this.hasPermission = false;
1618
+                this.showTxt = "你没有新增透前评估权限";
1649 1619
               }
1650 1620
             }
1651
-          }else if(this.predialysis.id == "" || this.predialysis.creater == 0){
1652
-            if(res.data.data.is_has_create  == false){
1653
-              this.hasPermission = false
1654
-              this.showTxt = "你没有新增透前评估权限"
1655
-            }
1656 1621
           }
1657
-        }
1658
-      })
1622
+        });
1659 1623
     }
1660 1624
   },
1661 1625
   components: {
@@ -1663,7 +1627,7 @@ export default {
1663 1627
     CheckBoxSubMenu
1664 1628
   },
1665 1629
   created() {
1666
-    this.getPermission()
1630
+    this.getPermission();
1667 1631
 
1668 1632
     var date = this.$route.query && this.$route.query.date;
1669 1633
     date *= 1000;
@@ -1692,8 +1656,6 @@ export default {
1692 1656
         this.last_predialysis["additional_weight"].toString()
1693 1657
       );
1694 1658
 
1695
-
1696
-
1697 1659
       this.$set(
1698 1660
         this.formValue,
1699 1661
         "internal_fistula",
@@ -1757,6 +1719,8 @@ export default {
1757 1719
       }
1758 1720
     }
1759 1721
     this.hemorrhage_state = this.formValue.is_hemorrhage == 0;
1722
+    this.data = getDataConfig("hemodialysis", "vascular_access_desc");
1723
+    console.log("投前评估", this.data);
1760 1724
   }
1761 1725
 };
1762 1726
 </script>
@@ -1772,7 +1736,7 @@ export default {
1772 1736
   border: none;
1773 1737
   border-bottom: 1px #e5e5e5 solid;
1774 1738
 }
1775
-.warnTxt{
1739
+.warnTxt {
1776 1740
   font-size: 0.5rem;
1777 1741
   height: 1rem;
1778 1742
   line-height: 1rem;

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


File diff suppressed because it is too large
+ 741 - 742
src/pages/main/dialog/ThorougDialog.vue


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

@@ -1315,18 +1315,18 @@ export default {
1315 1315
         }
1316 1316
         this.check = response.data.data.check;
1317 1317
         this.predialysis = response.data.data.PredialysisEvaluation;
1318
-        //console.log("透前评估", this.predialysis);
1318
+        // console.log("透前评估", this.predialysis);
1319 1319
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
1320 1320
           this.predialysis.blood_access_part_opera_id
1321 1321
         );
1322
-         var  afterdialysis = response.data.data.AssessmentAfterDislysis
1322
+        var afterdialysis = response.data.data.AssessmentAfterDislysis;
1323 1323
         if (afterdialysis.complications_index === undefined) {
1324 1324
           afterdialysis.disequilibrium_syndrome = 1;
1325 1325
         }
1326 1326
         if (afterdialysis.complications_index != undefined) {
1327 1327
           afterdialysis.disequilibrium_syndrome = 2;
1328 1328
         }
1329
-        this.afterdialysis = afterdialysis
1329
+        this.afterdialysis = afterdialysis;
1330 1330
         this.operators = response.data.data.operators;
1331 1331
         this.dialysisOrder =
1332 1332
           response.data.data.dialysisOrder === null

+ 5 - 5
src/pages/main/today/dialysisPrescription.vue View File

@@ -187,11 +187,11 @@
187 187
           <span class="content">{{blood_access}}</span>
188 188
           <span class="unit"></span>
189 189
         </li>
190
-        <li v-if="isShow('实际超滤量')">
191
-          <label>实际超滤量: </label>
192
-          <span class="content">{{ultrafiltration != '0'? ultrafiltration:''}}</span>
193
-          <span class="unit">{{ultrafiltration != '0'?"L":""}}</span>
194
-        </li>
190
+<!--        <li v-if="isShow('实际超滤量')">-->
191
+<!--          <label>实际超滤量2: </label>-->
192
+<!--          <span class="content">{{ultrafiltration != '0'? ultrafiltration:''}}</span>-->
193
+<!--          <span class="unit">{{ultrafiltration != '0'?"L":""}}</span>-->
194
+<!--        </li>-->
195 195
         <li v-if="isShow('目标KT/V')">
196 196
           <label>目标KT/V: </label>
197 197
           <span class="content">{{target_ktv != '0'? target_ktv:''}}</span>

+ 19 - 4
src/pages/patientCenter/allCheck/index.vue View File

@@ -71,6 +71,7 @@
71 71
 
72 72
 <script>
73 73
 import {
74
+  GetAllProjectNameByDate,
74 75
   getAllInspection,
75 76
   getPatientName,
76 77
   getInspectionDetail
@@ -91,16 +92,28 @@ export default {
91 92
       date: "",
92 93
       activeTwo: 0,
93 94
       patientid: 0,
94
-      data: []
95
+      data: [],
96
+      projectName: []
95 97
     };
96 98
   },
97 99
   methods: {
100
+    GetAllProjectNameByDate(date, patientid) {
101
+      GetAllProjectNameByDate(date, patientid).then(response => {
102
+        if (response.data.state === 1) {
103
+          var projectName = response.data.data.projectName;
104
+          // console.log("projectName", projectName);
105
+          this.projectName = projectName;
106
+          this.checkdata = projectName;
107
+        }
108
+      });
109
+    },
110
+
98 111
     getAllInspection() {
99 112
       getAllInspection().then(response => {
100 113
         if (response.data.state === 1) {
101 114
           var inspection = response.data.data.inspection;
102
-          console.log("inspection", inspection);
103
-          this.checkdata = inspection;
115
+          // console.log("inspection什么意思", inspection);
116
+          // this.checkdata = inspection;
104 117
           this.data = inspection;
105 118
           this.getInspection(this.patientid, this.date);
106 119
         }
@@ -127,13 +140,14 @@ export default {
127 140
       getInspectionDetail(patientid, date, this.project_id).then(response => {
128 141
         if (response.data.state === 1) {
129 142
           var InspectionDetail = response.data.data.InspectionDetail;
143
+          // console.log("数据是", InspectionDetail);
130 144
           this.InspectionDetail = InspectionDetail;
131 145
         }
132 146
       });
133 147
     },
134 148
     getInspection(patientid, date) {
135 149
       if (this.active === 0) {
136
-        this.project_id = this.data[0].project_id;
150
+        this.project_id = this.projectName[0].project_id;
137 151
       }
138 152
       getInspectionDetail(patientid, date, this.project_id).then(response => {
139 153
         if (response.data.state === 1) {
@@ -163,6 +177,7 @@ export default {
163 177
     this.activeTwo = parseInt(this.$route.query.active);
164 178
     setRem();
165 179
     setHeight();
180
+    this.GetAllProjectNameByDate(date, patientid);
166 181
     this.getAllInspection();
167 182
     this.getPatientName(patientid);
168 183
   }