XMLWAN před 2 roky
rodič
revize
b1f93e0fd9

+ 8 - 0
src/api/his/his_config.js Zobrazit soubor

@@ -8,6 +8,14 @@ export function getPatientList(params) {
8 8
   })
9 9
 }
10 10
 
11
+export function getPatientListTwenty(params) {
12
+  return request({
13
+    url: '/api/his/patient/getpatientlisttwenty',
14
+    method: 'Get',
15
+    params: params
16
+  })
17
+}
18
+
11 19
 export function getPrescriptionTemplateList(params) {
12 20
   return request({
13 21
     url: '/api/his/prescriptiontemplate/list',

+ 13 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue Zobrazit soubor

@@ -25,6 +25,19 @@
25 25
           <span class="content" v-if="dry_weight != '0'">{{ dry_weight }}</span>
26 26
           <span class="unit" v-if="dry_weight != '0'">kg</span>
27 27
         </li>
28
+
29
+        <li v-if="isShow('身高')">
30
+          <label>身高 : </label>
31
+          <span class="content">
32
+            {{this.record.height}}
33
+          </span>
34
+        </li>
35
+        <li v-if="isShow('年龄')">
36
+          <label>年龄 : </label>
37
+          <span class="content">
38
+            {{this.record.age}}
39
+          </span>
40
+        </li>
28 41
         <li v-if="isShow('脉搏')">
29 42
           <label>脉搏 : </label>
30 43
           <span class="content" v-if="pulse_frequency != '0'">{{

+ 15 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Zobrazit soubor

@@ -43,6 +43,19 @@
43 43
             </el-form-item>
44 44
           </el-col>
45 45
 
46
+          <el-col :span="8">
47
+            <el-form-item label="身高(cm):"
48
+                          v-if="isShow('身高')">
49
+              <el-input  v-model="assessmentBeforeDislysis.height"></el-input>
50
+            </el-form-item>
51
+          </el-col>
52
+
53
+          <el-col :span="8">
54
+            <el-form-item label="年龄(岁):" v-if="isShow('年龄')">
55
+              <el-input  v-model="assessmentBeforeDislysis.age" ></el-input>
56
+            </el-form-item>
57
+          </el-col>
58
+
46 59
           <el-col :span="8">
47 60
             <el-form-item label="衣物重(kg):" v-if="isShow('衣物重')">
48 61
               <el-input type="number" v-model="assessmentBeforeDislysis.additional_weight"></el-input>
@@ -734,6 +747,8 @@
734 747
           urea_befor:"",
735 748
           suction:"",
736 749
           weight_befor_remake:"",
750
+          height:"",
751
+          age:"",
737 752
         },
738 753
 
739 754
         InnerDialogProps: {

+ 4 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Zobrazit soubor

@@ -208,14 +208,14 @@
208 208
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
209 209
                             </el-form-item>
210 210
 
211
-                            <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant==7" :label="'首剂(mg):'"> 
211
+                            <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant==7 && this.$store.getters.xt_user.template_info.template_id!=6" :label="'首剂(mg):'"> 
212 212
                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
213 213
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
214 214
 
215 215
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
216 216
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
217 217
                             </el-form-item>
218
-                           <el-form-item v-else :label="'首剂(iu):'"> 
218
+                           <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7" :label="'首剂(iu):'"> 
219 219
                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
220 220
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
221 221
 
@@ -355,14 +355,14 @@
355 355
                             </el-form-item>
356 356
 
357 357
                              <el-form-item
358
-                                    v-if='this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant == 7'
358
+                                    v-if='this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant == 7 && this.$store.getters.xt_user.template_info.template_id!=6'
359 359
                                     :label="'总量(mg)'">
360 360
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
361 361
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
362 362
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
363 363
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
364 364
                             </el-form-item>
365
-                            <el-form-item v-else  :label="总量(mg)">
365
+                            <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7" :label="'总量(iu)'">
366 366
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
367 367
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
368 368
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"

+ 1 - 1
src/xt_pages/hospitalStation/components/deskPrescription.vue Zobrazit soubor

@@ -3277,7 +3277,7 @@ export default {
3277 3277
           return
3278 3278
         }
3279 3279
        }
3280
-      this.teamList.push(row)
3280
+      this.teamList = selection
3281 3281
     },
3282 3282
     getlist() {
3283 3283
       this.tabProject = []

+ 14 - 14
src/xt_pages/hospitalStation/doctorDesk.vue Zobrazit soubor

@@ -72,9 +72,9 @@
72 72
                         <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
73 73
                         <el-tab-pane label="透析记录" name="透析记录"></el-tab-pane>
74 74
                         <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
75
-                       
75
+
76 76
                     </el-tabs>
77
-                   
77
+
78 78
                     <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
79 79
                         <el-button size="small" ref="button_one" @click="open(1)" type="primary"
80 80
                                    v-loading="saveLoading">保存
@@ -1231,7 +1231,7 @@
1231 1231
                     price: prescription.project[b].price,
1232 1232
                     remark: prescription.project[b].remark,
1233 1233
                     medical_code: prescription.project[b].project.medical_code,
1234
-                    unit: prescription.project[b].project.unit,
1234
+                    unit: prescription.project[b].unit,
1235 1235
                     type: prescription.project[b].type
1236 1236
 
1237 1237
                   }
@@ -1371,7 +1371,7 @@
1371 1371
                       total: prescription.project[b].count.toString(),
1372 1372
                       remark: prescription.project[b].remark,
1373 1373
                       medical_code: prescription.project[b].project.medical_code,
1374
-                      unit: prescription.project[b].project.unit,
1374
+                      unit: prescription.project[b].unit,
1375 1375
                       type: prescription.project[b].type
1376 1376
 
1377 1377
                     }
@@ -1644,7 +1644,7 @@
1644 1644
                           price: prescription.project[b].price,
1645 1645
                           remark: prescription.project[b].remark,
1646 1646
                           medical_code: prescription.project[b].project.medical_code,
1647
-                          unit: prescription.project[b].project.unit,
1647
+                          unit: prescription.project[b].unit,
1648 1648
                           type: prescription.project[b].type
1649 1649
                         }
1650 1650
 
@@ -1783,7 +1783,7 @@
1783 1783
                             total: prescription.project[b].count.toString(),
1784 1784
                             remark: prescription.project[b].remark,
1785 1785
                             medical_code: prescription.project[b].project.medical_code,
1786
-                            unit: prescription.project[b].project.unit,
1786
+                            unit: prescription.project[b].unit,
1787 1787
                             type: prescription.project[b].type
1788 1788
 
1789 1789
                           }
@@ -2135,7 +2135,7 @@
2135 2135
                           price: prescription.project[b].price,
2136 2136
                           remark: prescription.project[b].remark,
2137 2137
                           medical_code: prescription.project[b].project.medical_code,
2138
-                          unit: prescription.project[b].project.unit,
2138
+                          unit: prescription.project[b].unit,
2139 2139
                           type: prescription.project[b].type
2140 2140
                         }
2141 2141
 
@@ -2265,7 +2265,7 @@
2265 2265
                             total: prescription.project[b].count.toString(),
2266 2266
                             remark: prescription.project[b].remark,
2267 2267
                             medical_code: prescription.project[b].project.medical_code,
2268
-                            unit: prescription.project[b].project.unit,
2268
+                            unit: prescription.project[b].unit,
2269 2269
                             type: prescription.project[b].type
2270 2270
                           }
2271 2271
 
@@ -2607,7 +2607,7 @@
2607 2607
                         price: prescription.project[b].price,
2608 2608
                         remark: prescription.project[b].remark,
2609 2609
                         medical_code: prescription.project[b].project.medical_code,
2610
-                        unit: prescription.project[b].project.unit,
2610
+                        unit: prescription.project[b].unit,
2611 2611
                         type: prescription.project[b].type
2612 2612
                       }
2613 2613
 
@@ -2736,7 +2736,7 @@
2736 2736
                           total: prescription.project[b].count.toString(),
2737 2737
                           remark: prescription.project[b].remark,
2738 2738
                           medical_code: prescription.project[b].project.medical_code,
2739
-                          unit: prescription.project[b].project.unit,
2739
+                          unit: prescription.project[b].unit,
2740 2740
                           type: prescription.project[b].type
2741 2741
                         }
2742 2742
 
@@ -3138,7 +3138,7 @@
3138 3138
                           price: prescription.project[b].price,
3139 3139
                           remark: prescription.project[b].remark,
3140 3140
                           medical_code: prescription.project[b].project.medical_code,
3141
-                          unit: prescription.project[b].project.unit,
3141
+                          unit: prescription.project[b].unit,
3142 3142
                           type: prescription.project[b].type
3143 3143
                         }
3144 3144
 
@@ -3274,7 +3274,7 @@
3274 3274
                             total: prescription.project[b].count.toString(),
3275 3275
                             remark: prescription.project[b].remark,
3276 3276
                             medical_code: prescription.project[b].project.medical_code,
3277
-                            unit: prescription.project[b].project.unit,
3277
+                            unit: prescription.project[b].unit,
3278 3278
                             type: prescription.project[b].type
3279 3279
                           }
3280 3280
 
@@ -3593,7 +3593,7 @@
3593 3593
                           price: prescription.project[b].price,
3594 3594
                           remark: prescription.project[b].remark,
3595 3595
                           medical_code: prescription.project[b].project.medical_code,
3596
-                          unit: prescription.project[b].project.unit,
3596
+                          unit: prescription.project[b].unit,
3597 3597
                           type: prescription.project[b].type
3598 3598
                         }
3599 3599
 
@@ -3730,7 +3730,7 @@
3730 3730
                             total: prescription.project[b].count.toString(),
3731 3731
                             remark: prescription.project[b].remark,
3732 3732
                             medical_code: prescription.project[b].project.medical_code,
3733
-                            unit: prescription.project[b].project.unit,
3733
+                            unit: prescription.project[b].unit,
3734 3734
                             type: prescription.project[b].type
3735 3735
                           }
3736 3736
 

+ 2 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Zobrazit soubor

@@ -3227,7 +3227,7 @@
3227 3227
         this.teamList = row
3228 3228
       },
3229 3229
       selectChange(selection, row) {
3230
-        console.log('row', row)
3230
+        console.log('row', selection)
3231 3231
         // if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
3232 3232
         //    if (row.stock_count <= 0) {
3233 3233
         //     if (row.type == 3) {
@@ -3278,8 +3278,7 @@
3278 3278
               return
3279 3279
           }
3280 3280
          }
3281
-
3282
-        this.teamList.push(row)
3281
+        this.teamList = selection
3283 3282
       },
3284 3283
       getlist() {
3285 3284
         this.tabProject = []

+ 12 - 12
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Zobrazit soubor

@@ -1701,7 +1701,7 @@ export default {
1701 1701
                   price: prescription.project[b].price,
1702 1702
                   remark: prescription.project[b].remark,
1703 1703
                   medical_code: prescription.project[b].project.medical_code,
1704
-                  unit: prescription.project[b].project.unit,
1704
+                  unit: prescription.project[b].unit,
1705 1705
                   type: prescription.project[b].type,
1706 1706
                   execution_state: prescription.project[b].execution_state,
1707 1707
 
@@ -1861,7 +1861,7 @@ export default {
1861 1861
                     total: prescription.project[b].count.toString(),
1862 1862
                     remark: prescription.project[b].remark,
1863 1863
                     medical_code: prescription.project[b].project.medical_code,
1864
-                    unit: prescription.project[b].project.unit,
1864
+                    unit: prescription.project[b].unit,
1865 1865
                     type: prescription.project[b].type,
1866 1866
                     execution_state: 2,
1867 1867
 
@@ -2158,7 +2158,7 @@ export default {
2158 2158
                         price: prescription.project[b].price,
2159 2159
                         remark: prescription.project[b].remark,
2160 2160
                         medical_code: prescription.project[b].project.medical_code,
2161
-                        unit: prescription.project[b].project.unit,
2161
+                        unit: prescription.project[b].unit,
2162 2162
                         type: prescription.project[b].type,
2163 2163
                         execution_state: prescription.project[b].execution_state,
2164 2164
                       }
@@ -2316,7 +2316,7 @@ export default {
2316 2316
                           total: prescription.project[b].count.toString(),
2317 2317
                           remark: prescription.project[b].remark,
2318 2318
                           medical_code: prescription.project[b].project.medical_code,
2319
-                          unit: prescription.project[b].project.unit,
2319
+                          unit: prescription.project[b].unit,
2320 2320
                           type: prescription.project[b].type,
2321 2321
                           execution_state: 2,
2322 2322
 
@@ -2700,7 +2700,7 @@ export default {
2700 2700
                         price: prescription.project[b].price,
2701 2701
                         remark: prescription.project[b].remark,
2702 2702
                         medical_code: prescription.project[b].project.medical_code,
2703
-                        unit: prescription.project[b].project.unit,
2703
+                        unit: prescription.project[b].unit,
2704 2704
                         type: prescription.project[b].type,
2705 2705
                         execution_state: prescription.project[b].execution_state,
2706 2706
 
@@ -2850,7 +2850,7 @@ export default {
2850 2850
                           total: prescription.project[b].count.toString(),
2851 2851
                           remark: prescription.project[b].remark,
2852 2852
                           medical_code: prescription.project[b].project.medical_code,
2853
-                          unit: prescription.project[b].project.unit,
2853
+                          unit: prescription.project[b].unit,
2854 2854
                           type: prescription.project[b].type,
2855 2855
                           execution_state: 2,
2856 2856
 
@@ -3214,7 +3214,7 @@ export default {
3214 3214
                       price: prescription.project[b].price,
3215 3215
                       remark: prescription.project[b].remark,
3216 3216
                       medical_code: prescription.project[b].project.medical_code,
3217
-                      unit: prescription.project[b].project.unit,
3217
+                      unit: prescription.project[b].unit,
3218 3218
                       type: prescription.project[b].type,
3219 3219
                       execution_state: prescription.project[b].execution_state
3220 3220
 
@@ -3364,7 +3364,7 @@ export default {
3364 3364
                         total: prescription.project[b].count.toString(),
3365 3365
                         remark: prescription.project[b].remark,
3366 3366
                         medical_code: prescription.project[b].project.medical_code,
3367
-                        unit: prescription.project[b].project.unit,
3367
+                        unit: prescription.project[b].unit,
3368 3368
                         type: prescription.project[b].type,
3369 3369
                         execution_state: 2
3370 3370
 
@@ -3807,7 +3807,7 @@ export default {
3807 3807
                         price: prescription.project[b].price,
3808 3808
                         remark: prescription.project[b].remark,
3809 3809
                         medical_code: prescription.project[b].project.medical_code,
3810
-                        unit: prescription.project[b].project.unit,
3810
+                        unit: prescription.project[b].unit,
3811 3811
                         type: prescription.project[b].type,
3812 3812
                         execution_state: prescription.project[b].execution_state
3813 3813
 
@@ -3966,7 +3966,7 @@ export default {
3966 3966
                           total: prescription.project[b].count.toString(),
3967 3967
                           remark: prescription.project[b].remark,
3968 3968
                           medical_code: prescription.project[b].project.medical_code,
3969
-                          unit: prescription.project[b].project.unit,
3969
+                          unit: prescription.project[b].unit,
3970 3970
                           type: prescription.project[b].type,
3971 3971
                           execution_state: 2,
3972 3972
                         }
@@ -4434,7 +4434,7 @@ export default {
4434 4434
                         price: prescription.project[b].price,
4435 4435
                         remark: prescription.project[b].remark,
4436 4436
                         medical_code: prescription.project[b].project.medical_code,
4437
-                        unit: prescription.project[b].project.unit,
4437
+                        unit: prescription.project[b].unit,
4438 4438
                         type: prescription.project[b].type,
4439 4439
                         execution_state: prescription.project[b].execution_state
4440 4440
 
@@ -4594,7 +4594,7 @@ export default {
4594 4594
                           total: prescription.project[b].count.toString(),
4595 4595
                           remark: prescription.project[b].remark,
4596 4596
                           medical_code: prescription.project[b].project.medical_code,
4597
-                          unit: prescription.project[b].project.unit,
4597
+                          unit: prescription.project[b].unit,
4598 4598
                           type: prescription.project[b].type,
4599 4599
                           execution_state: 2
4600 4600
 

+ 2 - 2
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue Zobrazit soubor

@@ -114,7 +114,7 @@
114 114
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
115 115
 import {
116 116
   delHisPrescriptionTemplate,
117
-  getPatientList,
117
+  getPatientListTwenty,
118 118
   getPrescriptionTemplateList,
119 119
 } from "@/api/his/his_config";
120 120
 import { uParseTime } from "@/utils/tools";
@@ -254,7 +254,7 @@ export default {
254 254
       });
255 255
     },
256 256
     getList(id) {
257
-      getPatientList().then((response) => {
257
+      getPatientListTwenty().then((response) => {
258 258
         if (response.data.state == 1) {
259 259
           this.data = response.data.data.list;
260 260
           this.all_data = response.data.data.list;

+ 5 - 2
src/xt_pages/stock/detail/cancelStockDetail.vue Zobrazit soubor

@@ -102,7 +102,7 @@
102 102
 
103 103
         <el-table-column label="耗材类型" align="center">
104 104
           <template slot-scope="scope">
105
-            {{ typeName(scope.row.good_type_id) }}
105
+           <span v-if="scope.row.is_total!=1"> {{ typeName(scope.row.GoodInfo.good_type_id) }}</span>
106 106
           </template>
107 107
         </el-table-column>
108 108
 
@@ -295,6 +295,8 @@ export default {
295 295
       return name;
296 296
     },
297 297
     typeName: function(good_type_id) {
298
+      console.log("good_type_id",good_type_id)
299
+      console.log("goodType",this.goodType)
298 300
       let name = "";
299 301
       for (let i = 0; i < this.goodType.length; i++) {
300 302
         if (this.goodType[i].id == good_type_id) {
@@ -395,7 +397,7 @@ export default {
395 397
             this.cancelStockDate.push(obj);
396 398
 
397 399
           }
398
-
400
+          console.log("list232323232322332232323ow",this.cancelStockDate)
399 401
           this.tableDataList = response.data.data.list
400 402
 
401 403
           var listgroup = response.data.data.listgroup
@@ -417,6 +419,7 @@ export default {
417 419
              }
418 420
           }
419 421
         }
422
+        console.log("tableist233232323w",this.tableList)
420 423
         this.tableList = listgroup
421 424
 
422 425
         }

+ 50 - 2
src/xt_pages/user/components/PatientDetail.vue Zobrazit soubor

@@ -802,6 +802,19 @@
802 802
           <span>{{ form.registrars }} </span>
803 803
         </el-form-item>
804 804
       </el-col>
805
+
806
+       <el-col :span="6">
807
+        <el-form-item label="医生 : ">
808
+           <el-select v-model="form.doctor">
809
+              <el-option
810
+                v-for="item in adminUserOptions"
811
+                :key="item.id"
812
+                :label="item.name"
813
+                :value="item.id"
814
+              />
815
+            </el-select>
816
+        </el-form-item>
817
+      </el-col>
805 818
     </el-form>
806 819
 
807 820
     <div style="display: none">
@@ -1005,7 +1018,14 @@
1005 1018
                 }}</span>
1006 1019
                 <span v-else>{{ printDate }}</span>
1007 1020
               </div>
1008
-              <div class="proj"><span class="proj_title">医生签名:</span></div>
1021
+              <div class="proj">
1022
+                 <span class="proj_title">医生签名:
1023
+                    <span v-if="patientPrint!=undefined&&getDcotorName(patientPrint.doctor) == ''">{{getDcotorNameOne(patientPrint.doctor)}}</span>
1024
+                    <span v-else>
1025
+                      <img style="height:30px;margin-top:20px" :src="getDcotorName(patientPrint.doctor)" alt="" srcset="">
1026
+                    </span>
1027
+                 </span>
1028
+              </div>
1009 1029
             </div>
1010 1030
           </div>
1011 1031
         </div>
@@ -1133,6 +1153,7 @@ const defaultForm = {
1133 1153
   troble_shoot: "",
1134 1154
   zb_patient_id: "",
1135 1155
   treatment_plan: "",
1156
+  doctor:"",
1136 1157
 };
1137 1158
 
1138 1159
 export default {
@@ -1232,6 +1253,7 @@ export default {
1232 1253
         { id: 1, name: "是" },
1233 1254
         { id: 2, name: "否" },
1234 1255
       ],
1256
+      operators:[],
1235 1257
     };
1236 1258
   },
1237 1259
   computed: {
@@ -1244,6 +1266,9 @@ export default {
1244 1266
   },
1245 1267
   created() {
1246 1268
     this.org_id = this.$store.getters.xt_user.org.id;
1269
+    this.form.doctor = this.$store.getters.xt_user.user.id
1270
+    console.log("owowow",this.$store.getters.xt_user.user.id)
1271
+  
1247 1272
     this.styleOptions = this.$store.getters.patient_types;
1248 1273
     // this.partitionOptions = this.$store.getters.partitions;
1249 1274
     this.maritalOptions = getDataConfig("patient", "marital_options");
@@ -1332,6 +1357,7 @@ export default {
1332 1357
             this.form.response_result = patietInfo.response_result;
1333 1358
             this.form.remind_cycle = patietInfo.remind_cycle;
1334 1359
             this.form.treatment_plan = patietInfo.treatment_plan;
1360
+            this.form.doctor = patietInfo.doctor
1335 1361
             if (patietInfo.is_infectious == 1) {
1336 1362
               this.form.remind_cycle = 0;
1337 1363
             }
@@ -1828,10 +1854,32 @@ export default {
1828 1854
       fetchAllAdminUsers().then((response) => {
1829 1855
         if (response.data.state === 1) {
1830 1856
           this.adminUserOptions = response.data.data.users;
1857
+          this.operators = response.data.data.operators
1858
+          console.log("医生签名",this.operators)
1831 1859
         }
1832 1860
       });
1833 1861
     },
1834
-
1862
+   getDcotorName(admin_user_id){
1863
+    var url = ""
1864
+    if(this.operators!=null && this.operators.length > 0){
1865
+      for(let i=0;i<this.operators.length;i++){
1866
+        if(admin_user_id == this.operators[i].admin_user_id){
1867
+          url = this.operators[i].url
1868
+        }
1869
+      }
1870
+    }
1871
+  
1872
+    return url
1873
+   },
1874
+   getDcotorNameOne(admin_user_id){
1875
+    var name = ""
1876
+    for(let i=0;i<this.adminUserOptions.length;i++){
1877
+      if(admin_user_id == this.adminUserOptions[i].id){
1878
+          name = this.adminUserOptions[i].name
1879
+      }
1880
+    }
1881
+    return name
1882
+   },
1835 1883
     printCard() {
1836 1884
       var ptime = Math.round(new Date().getTime() / 1000);
1837 1885
       this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");

+ 37 - 3
src/xt_pages/user/components/PatientForm.vue Zobrazit soubor

@@ -909,6 +909,19 @@
909 909
             </el-form-item>
910 910
           </el-col>
911 911
 
912
+         <el-col :span="6">
913
+          <el-form-item label="医生 : ">
914
+            <el-select v-model="form.doctor">
915
+                <el-option
916
+                  v-for="(item,index) in adminUserOptions"
917
+                  :key="index"
918
+                  :label="item.name"
919
+                  :value="item.id"
920
+                />
921
+              </el-select>
922
+          </el-form-item>
923
+       </el-col>
924
+
912 925
           <el-col :span="24" align="right" class="newCol">
913 926
             <el-form-item>
914 927
               <el-button
@@ -968,6 +981,7 @@ import {
968 981
   generateDialysisNo,
969 982
   GetPatientTotal
970 983
 } from "@/api/patient";
984
+import { fetchAllAdminUsers } from "@/api/doctor";
971 985
 // import { fetchAllDoctorAndNurse } from "@/api/doctor";
972 986
 import { getDataConfig } from "@/utils/data";
973 987
 
@@ -1025,6 +1039,7 @@ const defaultForm = {
1025 1039
   user_sys_before_count: "",
1026 1040
   troble_shoot:2,
1027 1041
   zb_patient_id:"",
1042
+  doctor:"",
1028 1043
   formItem: [
1029 1044
     {
1030 1045
       id: 0,
@@ -1175,6 +1190,7 @@ const defaultForm = {
1175 1190
   dbp: "",
1176 1191
   showOne:true,
1177 1192
   treatment_plan:"",
1193
+ 
1178 1194
 };
1179 1195
 
1180 1196
 export default {
@@ -1324,7 +1340,8 @@ export default {
1324 1340
 
1325 1341
         // homeTelephone: [{ validator: checkFamilyPhone, trigger: "blur" }],
1326 1342
         // homeAddress: [{ required: true, message: "请填写住址", trigger: "blur" }],
1327
-      }
1343
+      },
1344
+      adminUserOptions:[],
1328 1345
     };
1329 1346
   },
1330 1347
   components: {
@@ -1339,6 +1356,10 @@ export default {
1339 1356
     }
1340 1357
   },
1341 1358
   created() {
1359
+  
1360
+   this.fetchAllAdminUsers();
1361
+  
1362
+  
1342 1363
     if(this.isEdit == true){
1343 1364
        this.showLapseto = false
1344 1365
     }
@@ -1383,6 +1404,7 @@ export default {
1383 1404
       this.form = Object.assign({}, defaultForm);
1384 1405
       this.form.lapseto  = 1
1385 1406
     }
1407
+
1386 1408
   },
1387 1409
   watch: {
1388 1410
     "form.record_date": function(val) {
@@ -1394,6 +1416,15 @@ export default {
1394 1416
     }
1395 1417
   },
1396 1418
   methods: {
1419
+    fetchAllAdminUsers() {
1420
+      fetchAllAdminUsers().then((response) => {
1421
+        if (response.data.state === 1) {
1422
+          this.form.doctor = this.$store.getters.xt_user.user.id
1423
+          this.adminUserOptions = response.data.data.users;
1424
+         
1425
+        }
1426
+      });
1427
+    },
1397 1428
     recordCheck() {
1398 1429
       if (this.form.record_date == "") {
1399 1430
         this.$message.error("请先选择检验检查日期");
@@ -1459,7 +1490,7 @@ export default {
1459 1490
             this.form.age = parseInt(this.form.age);
1460 1491
             this.form.user_sys_before_count = this.form.user_sys_before_count.toString();
1461 1492
             this.form.troble_shoot = parseInt(this.form.troble_shoot)
1462
-
1493
+            this.form.doctor = parseInt(this.form.doctor)
1463 1494
             if(this.form.avatar.indexOf('?imageView2/2/w/500/h/500/q/90')!=-1){
1464 1495
                this.form.avatar = this.form.avatar
1465 1496
             }else{
@@ -1498,7 +1529,9 @@ export default {
1498 1529
           } else {
1499 1530
             this.form.age = parseInt(this.form.age);
1500 1531
             this.form.troble_shoot = parseInt(this.form.troble_shoot)
1501
-
1532
+            this.form.doctor = parseInt(this.form.doctor)
1533
+            console.log("form233322332w",this.form)
1534
+           
1502 1535
             createPatient(this.form)
1503 1536
               .then(response => {
1504 1537
                 if (response.data.state == 0) {
@@ -1820,6 +1853,7 @@ export default {
1820 1853
             // if (patietInfo.registrars_id > 0) {
1821 1854
             //   this.form.registrars = patietInfo.registrars_id;
1822 1855
             // }
1856
+            this.form.doctor = patietInfo.doctor
1823 1857
             this.checkIdCardNo();
1824 1858
           } else {
1825 1859
             this.$notify.error({