XMLWAN 4 年 前
コミット
81f9d60997

+ 45 - 0
src/api/project/project.js ファイルの表示

@@ -470,4 +470,49 @@ export function changePatient(id,params){
470 470
        method:"Get",
471 471
        params:params
472 472
      })
473
+  }
474
+
475
+  export function saveMainTemplate(params){
476
+    
477
+    return request({
478
+      url:"/api/hispatient/savemaintemplate",
479
+      method:"Get",
480
+      params:params
481
+    })
482
+  }
483
+
484
+  export function getMedicalTemplateList(params){
485
+    
486
+    return request({
487
+      url:"/api/hispatient/getmedicaltemplatelist",
488
+      method:"Get",
489
+      params:params
490
+    })
491
+  }
492
+
493
+  export function getMainTemplateById(id,params){
494
+    
495
+    return request({
496
+      url:"/api/hispatient/getmaintemplatebyid?id="+id,
497
+      method:"get",
498
+      params:params
499
+    })
500
+  }
501
+
502
+  export function UpdateMainTemplate(params){
503
+   
504
+    return request({
505
+      url:"/api/hispatient/updatemaintemplate",
506
+      method:"get",
507
+      params:params
508
+    })
509
+  }
510
+
511
+  export function deleteMainTemplate(id,params){
512
+  
513
+     return request({
514
+       url:"/api/hispatient/deletemaintemplate?id="+id,
515
+       method:"Get",
516
+       params:params
517
+     })
473 518
   }

+ 313 - 66
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue ファイルの表示

@@ -85,70 +85,189 @@
85 85
       <el-form-item label="" prop="name">
86 86
         <el-checkbox v-model="case_history.is_infect">是否传染</el-checkbox>
87 87
       </el-form-item>
88
-      <el-form-item label="主诉:" prop="name" style="width:100%;">
89
-        <el-input
90
-          type="textarea"
91
-          :rows="2"
92
-          placeholder="请输入内容"
93
-          v-model="case_history.chief_conplaint">
94
-        </el-input>
95
-      </el-form-item>
96
-      <el-form-item label="现病史:" prop="name" style="width:100%;">
97
-        <el-input
98
-          type="textarea"
99
-          :rows="2"
100
-          placeholder="请输入内容"
101
-          v-model="case_history.history_of_present_illness">
102
-        </el-input>
103
-      </el-form-item>
104
-      <el-form-item label="既往史:" prop="name" style="width:100%;">
105
-        <el-input
106
-          type="textarea"
107
-          :rows="2"
108
-          placeholder="请输入内容"
109
-          v-model="case_history.past_history">
110
-        </el-input>
111
-      </el-form-item>
112
-      <el-form-item label="个人史:" prop="name" style="width:100%;">
113
-        <el-input
114
-          type="textarea"
115
-          :rows="2"
116
-          placeholder="请输入内容"
117
-          v-model="case_history.personal_history">
118
-        </el-input>
119
-      </el-form-item>
120
-      <el-form-item label="家族史:" prop="name" style="width:100%;">
121
-        <el-input
122
-          type="textarea"
123
-          :rows="2"
124
-          placeholder="请输入内容"
125
-          v-model="case_history.family_history">
126
-        </el-input>
127
-      </el-form-item>
128
-      <el-form-item label="诊断信息:" prop="name" style="width:100%;">
129
-        <el-input
130
-          type="textarea"
131
-          :rows="2"
132
-          placeholder="请输入内容"
133
-          v-model="case_history.diagnostic">
134
-        </el-input>
135
-      </el-form-item>
136
-       <el-form-item label="医嘱:" prop="doctor_advice" style="width:100%;">
137
-        <el-input
138
-          type="textarea"
139
-          :rows="2"
140
-          placeholder="请输入内容"
141
-          v-model="case_history.doctor_advice">
142
-        </el-input>
143
-      </el-form-item>
144
-       <el-form-item label="备注:" prop="name" style="width:100%;">
145
-        <el-input
146
-          type="textarea"
147
-          :rows="2"
148
-          placeholder="请输入内容"
149
-          v-model="case_history.remark">
150
-        </el-input>
88
+      <el-row :gutter = "20">
89
+        <el-col :span="24">
90
+          <el-form-item label="主诉:">
91
+              <el-select @change="changeMainTemplate" v-model="value" style="width:200px">
92
+                  <el-option
93
+                    v-for="(item, index) in tabledata"
94
+                    :label="item.title"
95
+                    :value="item.content"
96
+                    :key="index"
97
+                  ></el-option>
98
+              </el-select>
99
+          </el-form-item>
100
+      </el-col>
101
+      <el-col :span="24">
102
+        <el-form-item  prop="name" style="width:100%;">
103
+          <el-input
104
+            type="textarea"
105
+            :rows="2"
106
+            placeholder="请输入内容"
107
+            v-model="case_history.chief_conplaint">
108
+          </el-input>
109
+        </el-form-item>
110
+      </el-col>
111
+      </el-row>
112
+      <el-row :gutter="20">
113
+        <el-col :span="24">
114
+           <el-form-item label="现病史:">
115
+              <el-select @change="changeMainTemplateOne" v-model="valueOne" style="width:200px">
116
+                  <el-option
117
+                    v-for="(item, index) in tabledataOne"
118
+                    :label="item.title"
119
+                    :value="item.content"
120
+                    :key="index"
121
+                  ></el-option>
122
+              </el-select>
123
+          </el-form-item>
124
+        </el-col>
125
+        <el-col :span="24">
126
+          <el-form-item  prop="name" style="width:100%;">
127
+            <el-input
128
+              type="textarea"
129
+              :rows="2"
130
+              placeholder="请输入内容"
131
+              v-model="case_history.history_of_present_illness">
132
+            </el-input>
133
+          </el-form-item>
134
+        </el-col>
135
+      </el-row>
136
+      <el-row :gutter="20">
137
+         <el-col :span="24">
138
+           <el-form-item label="既往史:">
139
+            <el-select @change="changeMainTemplateTwo" v-model="valueTwo" style="width:200px">
140
+                  <el-option
141
+                    v-for="(item, index) in tabledataTwo"
142
+                    :label="item.title"
143
+                    :value="item.content"
144
+                    :key="index"
145
+                  ></el-option>
146
+             </el-select>
147
+            </el-form-item>
148
+         </el-col>
149
+         <el-col :span="24">
150
+            <el-form-item  prop="name" style="width:100%;">
151
+              <el-input
152
+                type="textarea"
153
+                :rows="2"
154
+                placeholder="请输入内容"
155
+                v-model="case_history.past_history">
156
+              </el-input>
157
+           </el-form-item>
158
+         </el-col>
159
+      </el-row>
160
+     <el-row :gutter="24">
161
+       <el-col :span="20">
162
+          <el-form-item label="个人史:">
163
+            <el-select @change="changeMainTemplateThree" v-model="valueThree" style="width:200px">
164
+                  <el-option
165
+                    v-for="(item, index) in tabledataThree"
166
+                    :label="item.title"
167
+                    :value="item.content"
168
+                    :key="index"
169
+                  ></el-option>
170
+             </el-select>
171
+            </el-form-item>
172
+       </el-col>
173
+       <el-col :span="20">
174
+        <el-form-item  prop="name" style="width:100%;">
175
+          <el-input
176
+            type="textarea"
177
+            :rows="2"
178
+            placeholder="请输入内容"
179
+            v-model="case_history.personal_history">
180
+          </el-input>
181
+        </el-form-item>
182
+      </el-col>
183
+     </el-row>
184
+     <el-row :gutter="24">
185
+       <el-col :span="20">
186
+          <el-form-item  label="家族史:">
187
+            <el-select @change="changeMainTemplateFour" v-model="valueFour" style="width:200px">
188
+                  <el-option
189
+                    v-for="(item, index) in tabledataFour"
190
+                    :label="item.title"
191
+                    :value="item.content"
192
+                    :key="index"
193
+                  ></el-option>
194
+             </el-select>
195
+         </el-form-item>
196
+       </el-col>
197
+        <el-col :span="20">
198
+          <el-form-item prop="name" style="width:100%;">
199
+            <el-input
200
+              type="textarea"
201
+              :rows="2"
202
+              placeholder="请输入内容"
203
+              v-model="case_history.family_history">
204
+            </el-input>
205
+          </el-form-item>
206
+       </el-col>
207
+     </el-row>
208
+     <el-row :gutter="24">
209
+       <el-col :span="20">
210
+          <el-form-item label="诊断信息:">
211
+            <el-select @change="changeMainTemplateFive" v-model="valueFive" style="width:200px">
212
+                  <el-option
213
+                    v-for="(item, index) in tabledataFive"
214
+                    :label="item.title"
215
+                    :value="item.content"
216
+                    :key="index"
217
+                  ></el-option>
218
+             </el-select>
219
+         </el-form-item>
220
+       </el-col>
221
+       <el-col :span="20">
222
+        <el-form-item  prop="name" style="width:100%;">
223
+          <el-input
224
+            type="textarea"
225
+            :rows="2"
226
+            placeholder="请输入内容"
227
+            v-model="case_history.diagnostic">
228
+          </el-input>
151 229
       </el-form-item>
230
+       </el-col>
231
+     </el-row>
232
+
233
+     <el-row :gutter="24">
234
+       <el-col :span="20">
235
+         <el-form-item label="医嘱:">
236
+            <el-select @change="changeMainTemplateSix" v-model="valueSix" style="width:200px">
237
+                  <el-option
238
+                    v-for="(item, index) in tabledataSix"
239
+                    :label="item.title"
240
+                    :value="item.content"
241
+                    :key="index"
242
+                  ></el-option>
243
+             </el-select>
244
+         </el-form-item>
245
+       </el-col>
246
+       <el-col :span="20">
247
+        <el-form-item  prop="doctor_advice" style="width:100%;">
248
+          <el-input
249
+            type="textarea"
250
+            :rows="2"
251
+            placeholder="请输入内容"
252
+            v-model="case_history.doctor_advice">
253
+          </el-input>
254
+        </el-form-item>
255
+       </el-col>
256
+     </el-row>
257
+
258
+        <el-form-item label ="备注"  prop="name" style="width:100%;">
259
+          <el-input
260
+            type="textarea"
261
+            :rows="2"
262
+            placeholder="请输入内容"
263
+            v-model="case_history.remark">
264
+          </el-input>
265
+        </el-form-item>
266
+    
267
+    
268
+     
269
+    
270
+    
152 271
     </el-form>
153 272
 
154 273
   </div>
@@ -161,7 +280,7 @@
161 280
   import { getDictionaryDataConfig } from "@/utils/data";
162 281
   import {  createCaseHistory } from '@/api/his/his'
163 282
   import { getDataConfig } from "@/utils/data";
164
-  import { getTemplateDetail } from "@/api/project/project"
283
+  import { getTemplateDetail,getMedicalTemplateList } from "@/api/project/project"
165 284
   export default {
166 285
     props: {
167 286
       case_history: Object,
@@ -206,7 +325,23 @@
206 325
         wayOptions:[],
207 326
         start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
208 327
         doctor_advice:"",
209
-        remark:""
328
+        remark:"",
329
+        tabledata:[],
330
+        tabledataOne:[],
331
+        tabledataTwo:[],
332
+        tabledataThree:[],
333
+        tabledataFour:[],
334
+        tabledataFive:[],
335
+        tabledataSix:[],
336
+        tabledataSeven:[],
337
+        value:'',
338
+        valueOne:'',
339
+        valueTwo:'',
340
+        valueThree:'',
341
+        valueFour:'',
342
+        valueFive:'',
343
+        valueSix:'',
344
+        valueSeven:''
210 345
       }
211 346
     },
212 347
     methods: {
@@ -292,8 +427,120 @@
292 427
               }
293 428
           })
294 429
         },
430
+
431
+        getlist(){
432
+           getMedicalTemplateList().then(response=>{
433
+           if(response.data.state == 1){
434
+             var list =  response.data.data.list
435
+             console.log("list",list)
436
+             this.tabledata = list
437
+             this.tabledataOne =  response.data.data.listOne
438
+             this.tabledataTwo = response.data.data.listTwo
439
+             this.tabledataThree = response.data.data.listThree
440
+             this.tabledataFour =  response.data.data.listFour
441
+             this.tabledataFive = response.data.data.listFive
442
+             this.tabledataSix = response.data.data.listSix
443
+             this.tabledataSeven =  response.data.data.listSeven
444
+           }
445
+        })   
446
+       },
447
+
448
+       changeMainTemplate(values){
449
+         if(this.case_history.chief_conplaint == ''){
450
+           this.case_history.chief_conplaint = values
451
+         } else {
452
+          if (this.case_history.chief_conplaint.indexOf(values) == -1) {
453
+            if (this.case_history.chief_conplaint.charAt(this.case_history.chief_conplaint.length - 1).indexOf('。') == -1) {
454
+              this.case_history.chief_conplaint = this.case_history.chief_conplaint + ',' + values
455
+            } else {
456
+              this.case_history.chief_conplaint = this.case_history.chief_conplaint + values
457
+            }
458
+          }
459
+        }
460
+       },
461
+       changeMainTemplateOne(values){
462
+          if(this.case_history.history_of_present_illness == ''){
463
+           this.case_history.history_of_present_illness = values
464
+         } else {
465
+          if (this.case_history.history_of_present_illness.indexOf(values) == -1) {
466
+            if (this.case_history.history_of_present_illness.charAt(this.case_history.history_of_present_illness.length - 1).indexOf('。') == -1) {
467
+              this.case_history.history_of_present_illness = this.case_history.history_of_present_illness + ',' + values
468
+            } else {
469
+              this.case_history.history_of_present_illness = this.case_history.history_of_present_illness + values
470
+            }
471
+          }
472
+        }
473
+      },
474
+      changeMainTemplateTwo(values){
475
+         if(this.case_history.past_history == ''){
476
+           this.case_history.past_history = values
477
+         } else {
478
+          if (this.case_history.past_history.indexOf(values) == -1) {
479
+            if (this.case_history.past_history.charAt(this.case_history.past_history.length - 1).indexOf('。') == -1) {
480
+              this.case_history.past_history = this.case_history.past_history + ',' + values
481
+            } else {
482
+              this.case_history.past_history = this.case_history.past_history + values
483
+            }
484
+          }
485
+        }
486
+      },
487
+      changeMainTemplateThree(values){
488
+         if(this.case_history.personal_history == ''){
489
+           this.case_history.personal_history = values
490
+         } else {
491
+          if (this.case_history.personal_history.indexOf(values) == -1) {
492
+            if (this.case_history.personal_history.charAt(this.case_history.personal_history.length - 1).indexOf('。') == -1) {
493
+              this.case_history.personal_history = this.case_history.personal_history + ',' + values
494
+            } else {
495
+              this.case_history.personal_history = this.case_history.personal_history + values
496
+            }
497
+          }
498
+        }
499
+      },
500
+      changeMainTemplateFour(values){
501
+          if(this.case_history.family_history == ''){
502
+           this.case_history.family_history = values
503
+         } else {
504
+          if (this.case_history.family_history.indexOf(values) == -1) {
505
+            if (this.case_history.family_history.charAt(this.case_history.family_history.length - 1).indexOf('。') == -1) {
506
+              this.case_history.family_history = this.case_history.family_history + ',' + values
507
+            } else {
508
+              this.case_history.family_history = this.case_history.family_history + values
509
+            }
510
+          }
511
+        }
512
+      },
513
+
514
+      changeMainTemplateFive(values){
515
+          if(this.case_history.diagnostic == ''){
516
+           this.case_history.diagnostic = values
517
+         } else {
518
+          if (this.case_history.diagnostic.indexOf(values) == -1) {
519
+            if (this.case_history.diagnostic.charAt(this.case_history.diagnostic.length - 1).indexOf('。') == -1) {
520
+              this.case_history.diagnostic = this.case_history.diagnostic + ',' + values
521
+            } else {
522
+              this.case_history.diagnostic = this.case_history.diagnostic + values
523
+            }
524
+          }
525
+        }
526
+      },
527
+      changeMainTemplateSix(values){
528
+          if(this.case_history.doctor_advice == ''){
529
+           this.case_history.doctor_advice = values
530
+         } else {
531
+          if (this.case_history.doctor_advice.indexOf(values) == -1) {
532
+            if (this.case_history.doctor_advice.charAt(this.case_history.doctor_advice.length - 1).indexOf('。') == -1) {
533
+              this.case_history.doctor_advice = this.case_history.doctor_advice + ',' + values
534
+            } else {
535
+              this.case_history.doctor_advice = this.case_history.doctor_advice + values
536
+            }
537
+          }
538
+        }
539
+      },
540
+     
295 541
     },
296 542
     created(){
543
+       this.getlist()
297 544
        this.wayOptions = getDataConfig("patient", "reimbursement_ways");
298 545
        console.log("232322323",this)
299 546
        if(this.patientInfo.gender = 1){
@@ -301,7 +548,7 @@
301 548
        }else if(this.patientInfo.gender = 2){
302 549
           this.patientInfo.gender = '女'
303 550
         }
304
-
551
+     
305 552
     },
306 553
     watch:{
307 554
       detalid:function(val){

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/medicalRecord.vue ファイルの表示

@@ -123,13 +123,13 @@ export default {
123 123
         },
124 124
         //获取历史数据历史模板
125 125
         getlist(){
126
-            console.log("触发了吗")
126
+            
127 127
             const params = {
128 128
                keyword:this.search_input,
129 129
                start_time:this.start_time,
130 130
                end_time:this.end_time
131 131
             }
132
-           console.log("params-----",params)
132
+         
133 133
           getHistoryTemplate(params).then(response=>{
134 134
             if(response.data.state == 1){
135 135
               var template =  response.data.data.template

+ 294 - 28
src/xt_pages/outpatientDoctorStation/components/recordTemplateDetail.vue ファイルの表示

@@ -14,53 +14,183 @@
14 14
             <el-form-item label="模板说明: " prop="name" style="width:100%;">
15 15
                 <el-input v-model="form.template_remark" placeholder=""></el-input>
16 16
             </el-form-item>
17
-            <el-form-item label="主诉:" prop="name" style="width:100%;">
18
-                <el-input
17
+           <el-row :gutter = "20">
18
+        <el-col :span="24">
19
+          <el-form-item label="主诉:">
20
+              <el-select @change="changeMainTemplate" v-model="value" style="width:200px">
21
+                  <el-option
22
+                    v-for="(item, index) in tabledata"
23
+                    :label="item.title"
24
+                    :value="item.content"
25
+                    :key="index"
26
+                  ></el-option>
27
+              </el-select>
28
+          </el-form-item>
29
+      </el-col>
30
+      <el-col :span="24">
31
+        <el-form-item  prop="name" style="width:100%;">
32
+          <el-input
33
+            type="textarea"
34
+            :rows="2"
35
+            placeholder="请输入内容"
36
+            v-model="form.chief_conplaint">
37
+          </el-input>
38
+        </el-form-item>
39
+      </el-col>
40
+      </el-row>
41
+      <el-row :gutter="20">
42
+        <el-col :span="24">
43
+           <el-form-item label="现病史:">
44
+              <el-select @change="changeMainTemplateOne" v-model="valueOne" style="width:200px">
45
+                  <el-option
46
+                    v-for="(item, index) in tabledataOne"
47
+                    :label="item.title"
48
+                    :value="item.content"
49
+                    :key="index"
50
+                  ></el-option>
51
+              </el-select>
52
+          </el-form-item>
53
+        </el-col>
54
+        <el-col :span="24">
55
+          <el-form-item  prop="name" style="width:100%;">
56
+            <el-input
57
+              type="textarea"
58
+              :rows="2"
59
+              placeholder="请输入内容"
60
+              v-model="form.history_of_present_illness">
61
+            </el-input>
62
+          </el-form-item>
63
+        </el-col>
64
+      </el-row>
65
+      <el-row :gutter="20">
66
+         <el-col :span="24">
67
+           <el-form-item label="既往史:">
68
+            <el-select @change="changeMainTemplateTwo" v-model="valueTwo" style="width:200px">
69
+                  <el-option
70
+                    v-for="(item, index) in tabledataTwo"
71
+                    :label="item.title"
72
+                    :value="item.content"
73
+                    :key="index"
74
+                  ></el-option>
75
+             </el-select>
76
+            </el-form-item>
77
+         </el-col>
78
+         <el-col :span="24">
79
+            <el-form-item  prop="name" style="width:100%;">
80
+              <el-input
19 81
                 type="textarea"
20 82
                 :rows="2"
21 83
                 placeholder="请输入内容"
22
-                v-model="form.chief_conplaint">
23
-                </el-input>
24
-            </el-form-item>
25
-            <el-form-item label="现病史:" prop="name" style="width:100%;">
26
-                <el-input
84
+                v-model="form.past_history">
85
+              </el-input>
86
+           </el-form-item>
87
+         </el-col>
88
+      </el-row>
89
+        <el-row :gutter="24">
90
+        <el-col :span="20">
91
+            <el-form-item label="个人史:">
92
+                <el-select @change="changeMainTemplateThree" v-model="valueThree" style="width:200px">
93
+                    <el-option
94
+                        v-for="(item, index) in tabledataThree"
95
+                        :label="item.title"
96
+                        :value="item.content"
97
+                        :key="index"
98
+                    ></el-option>
99
+                </el-select>
100
+                </el-form-item>
101
+        </el-col>
102
+        <el-col :span="20">
103
+            <el-form-item  prop="name" style="width:100%;">
104
+            <el-input
27 105
                 type="textarea"
28 106
                 :rows="2"
29 107
                 placeholder="请输入内容"
30
-                v-model="form.history_of_present_illness">
31
-                </el-input>
108
+                v-model="form.personal_history">
109
+            </el-input>
110
+            </el-form-item>
111
+        </el-col>
112
+        </el-row>
113
+        <el-row :gutter="24">
114
+        <el-col :span="20">
115
+            <el-form-item  label="家族史:">
116
+                <el-select @change="changeMainTemplateFour" v-model="valueFour" style="width:200px">
117
+                    <el-option
118
+                        v-for="(item, index) in tabledataFour"
119
+                        :label="item.title"
120
+                        :value="item.content"
121
+                        :key="index"
122
+                    ></el-option>
123
+                </el-select>
32 124
             </el-form-item>
33
-            <el-form-item label="既往史:" prop="name" style="width:100%;">
125
+        </el-col>
126
+            <el-col :span="20">
127
+            <el-form-item prop="name" style="width:100%;">
34 128
                 <el-input
35 129
                 type="textarea"
36 130
                 :rows="2"
37 131
                 placeholder="请输入内容"
38
-                v-model="form.past_history">
132
+                v-model="form.family_history">
39 133
                 </el-input>
40 134
             </el-form-item>
41
-            <el-form-item label="个人史:" prop="name" style="width:100%;">
42
-                <el-input
135
+        </el-col>
136
+        </el-row>
137
+        <el-row :gutter="24">
138
+        <el-col :span="20">
139
+            <el-form-item label="诊断信息:">
140
+                <el-select @change="changeMainTemplateFive" v-model="valueFive" style="width:200px">
141
+                    <el-option
142
+                        v-for="(item, index) in tabledataFive"
143
+                        :label="item.title"
144
+                        :value="item.content"
145
+                        :key="index"
146
+                    ></el-option>
147
+                </el-select>
148
+            </el-form-item>
149
+        </el-col>
150
+        <el-col :span="20">
151
+            <el-form-item  prop="name" style="width:100%;">
152
+            <el-input
43 153
                 type="textarea"
44 154
                 :rows="2"
45 155
                 placeholder="请输入内容"
46
-                v-model="form.personal_history">
47
-                </el-input>
156
+                v-model="form.diagnostic">
157
+            </el-input>
158
+        </el-form-item>
159
+        </el-col>
160
+        </el-row>
161
+
162
+        <el-row :gutter="24">
163
+        <el-col :span="20">
164
+            <el-form-item label="医嘱:">
165
+                <el-select @change="changeMainTemplateSix" v-model="valueSix" style="width:200px">
166
+                    <el-option
167
+                        v-for="(item, index) in tabledataSix"
168
+                        :label="item.title"
169
+                        :value="item.content"
170
+                        :key="index"
171
+                    ></el-option>
172
+                </el-select>
48 173
             </el-form-item>
49
-            <el-form-item label="家族史:" prop="name" style="width:100%;">
50
-                <el-input
174
+        </el-col>
175
+        <el-col :span="20">
176
+            <el-form-item  prop="doctor_advice" style="width:100%;">
177
+            <el-input
51 178
                 type="textarea"
52 179
                 :rows="2"
53 180
                 placeholder="请输入内容"
54
-                v-model="form.family_history">
55
-                </el-input>
181
+                v-model="form.doctor_advice">
182
+            </el-input>
56 183
             </el-form-item>
57
-            <el-form-item label="诊断信息:" prop="name" style="width:100%;">
58
-                <el-input
184
+        </el-col>
185
+        </el-row>
186
+
187
+            <el-form-item label ="备注"  prop="name" style="width:100%;">
188
+            <el-input
59 189
                 type="textarea"
60 190
                 :rows="2"
61 191
                 placeholder="请输入内容"
62
-                v-model="form.diagnostic">
63
-                </el-input>
192
+                v-model="form.remark">
193
+            </el-input>
64 194
             </el-form-item>
65 195
         </el-form>
66 196
         <div slot="footer" class="dialog-footer">
@@ -71,7 +201,7 @@
71 201
 </template>
72 202
 
73 203
 <script>
74
-import { getTemplateDetail,updateRecordTemplate } from "@/api/project/project"
204
+import { getTemplateDetail,updateRecordTemplate,getMedicalTemplateList } from "@/api/project/project"
75 205
 export default {
76 206
     data(){
77 207
         return{
@@ -85,10 +215,29 @@ export default {
85 215
               past_history:"",
86 216
               personal_history:"",
87 217
               family_history:"",
88
-              diagnostic:""
218
+              diagnostic:"",
219
+              remark:'',
220
+              doctor_advice:'',
221
+            
89 222
             },
90 223
             textarea:"",
91
-            templatedetail:{}
224
+            templatedetail:{},
225
+            tabledata:[],
226
+            tabledataOne:[],
227
+            tabledataTwo:[],
228
+            tabledataThree:[],
229
+            tabledataFour:[],
230
+            tabledataFive:[],
231
+            tabledataSix:[],
232
+            tabledataSeven:[],
233
+            value:'',
234
+            valueOne:'',
235
+            valueTwo:'',
236
+            valueThree:'',
237
+            valueFour:'',
238
+            valueFive:'',
239
+            valueSix:'',
240
+            valueSeven:''
92 241
         }
93 242
     },
94 243
     methods:{
@@ -124,7 +273,8 @@ export default {
124 273
                 this.form.personal_history =    templatedetail.personal_history 
125 274
                 this.form.family_history = templatedetail.family_history 
126 275
                 this.form.diagnostic = templatedetail.diagnostic 
127
-               
276
+                this.form.doctor_advice = templatedetail.doctor_advice
277
+                this.form.remark = templatedetail.remark 
128 278
               }
129 279
           })
130 280
         },
@@ -138,7 +288,9 @@ export default {
138 288
             past_history:this.form.past_history,
139 289
             personal_history:this.form.personal_history,
140 290
             family_history:this.form.family_history,
141
-            diagnostic:this.form.diagnostic
291
+            diagnostic:this.form.diagnostic,
292
+            doctor_advice:this.form.doctor_advice,
293
+            remark:this.form.remark
142 294
           }  
143 295
           updateRecordTemplate(params).then(response=>{
144 296
              if(response.data.state == 1){
@@ -148,7 +300,121 @@ export default {
148 300
                 // this.$parents.getlist()
149 301
              }
150 302
           }) 
303
+        },
304
+        
305
+         getlist(){
306
+           getMedicalTemplateList().then(response=>{
307
+           if(response.data.state == 1){
308
+             var list =  response.data.data.list
309
+             console.log("list",list)
310
+             this.tabledata = list
311
+             this.tabledataOne =  response.data.data.listOne
312
+             this.tabledataTwo = response.data.data.listTwo
313
+             this.tabledataThree = response.data.data.listThree
314
+             this.tabledataFour =  response.data.data.listFour
315
+             this.tabledataFive = response.data.data.listFive
316
+             this.tabledataSix = response.data.data.listSix
317
+             this.tabledataSeven =  response.data.data.listSeven
318
+           }
319
+        })   
320
+       },
321
+
322
+       changeMainTemplate(values){
323
+         if(this.case_history.chief_conplaint == ''){
324
+           this.case_history.chief_conplaint = values
325
+         } else {
326
+          if (this.case_history.chief_conplaint.indexOf(values) == -1) {
327
+            if (this.case_history.chief_conplaint.charAt(this.case_history.chief_conplaint.length - 1).indexOf('。') == -1) {
328
+              this.case_history.chief_conplaint = this.case_history.chief_conplaint + ',' + values
329
+            } else {
330
+              this.case_history.chief_conplaint = this.case_history.chief_conplaint + values
331
+            }
332
+          }
333
+        }
334
+       },
335
+       changeMainTemplateOne(values){
336
+          if(this.case_history.history_of_present_illness == ''){
337
+           this.case_history.history_of_present_illness = values
338
+         } else {
339
+          if (this.case_history.history_of_present_illness.indexOf(values) == -1) {
340
+            if (this.case_history.history_of_present_illness.charAt(this.case_history.history_of_present_illness.length - 1).indexOf('。') == -1) {
341
+              this.case_history.history_of_present_illness = this.case_history.history_of_present_illness + ',' + values
342
+            } else {
343
+              this.case_history.history_of_present_illness = this.case_history.history_of_present_illness + values
344
+            }
345
+          }
151 346
         }
347
+      },
348
+      changeMainTemplateTwo(values){
349
+         if(this.case_history.past_history == ''){
350
+           this.case_history.past_history = values
351
+         } else {
352
+          if (this.case_history.past_history.indexOf(values) == -1) {
353
+            if (this.case_history.past_history.charAt(this.case_history.past_history.length - 1).indexOf('。') == -1) {
354
+              this.case_history.past_history = this.case_history.past_history + ',' + values
355
+            } else {
356
+              this.case_history.past_history = this.case_history.past_history + values
357
+            }
358
+          }
359
+        }
360
+      },
361
+      changeMainTemplateThree(values){
362
+         if(this.case_history.personal_history == ''){
363
+           this.case_history.personal_history = values
364
+         } else {
365
+          if (this.case_history.personal_history.indexOf(values) == -1) {
366
+            if (this.case_history.personal_history.charAt(this.case_history.personal_history.length - 1).indexOf('。') == -1) {
367
+              this.case_history.personal_history = this.case_history.personal_history + ',' + values
368
+            } else {
369
+              this.case_history.personal_history = this.case_history.personal_history + values
370
+            }
371
+          }
372
+        }
373
+      },
374
+      changeMainTemplateFour(values){
375
+          if(this.case_history.family_history == ''){
376
+           this.case_history.family_history = values
377
+         } else {
378
+          if (this.case_history.family_history.indexOf(values) == -1) {
379
+            if (this.case_history.family_history.charAt(this.case_history.family_history.length - 1).indexOf('。') == -1) {
380
+              this.case_history.family_history = this.case_history.family_history + ',' + values
381
+            } else {
382
+              this.case_history.family_history = this.case_history.family_history + values
383
+            }
384
+          }
385
+        }
386
+      },
387
+
388
+      changeMainTemplateFive(values){
389
+          if(this.case_history.diagnostic == ''){
390
+           this.case_history.diagnostic = values
391
+         } else {
392
+          if (this.case_history.diagnostic.indexOf(values) == -1) {
393
+            if (this.case_history.diagnostic.charAt(this.case_history.diagnostic.length - 1).indexOf('。') == -1) {
394
+              this.case_history.diagnostic = this.case_history.diagnostic + ',' + values
395
+            } else {
396
+              this.case_history.diagnostic = this.case_history.diagnostic + values
397
+            }
398
+          }
399
+        }
400
+      },
401
+      changeMainTemplateSix(values){
402
+          if(this.case_history.doctor_advice == ''){
403
+           this.case_history.doctor_advice = values
404
+         } else {
405
+          if (this.case_history.doctor_advice.indexOf(values) == -1) {
406
+            if (this.case_history.doctor_advice.charAt(this.case_history.doctor_advice.length - 1).indexOf('。') == -1) {
407
+              this.case_history.doctor_advice = this.case_history.doctor_advice + ',' + values
408
+            } else {
409
+              this.case_history.doctor_advice = this.case_history.doctor_advice + values
410
+            }
411
+          }
412
+        }
413
+      },
414
+    },
415
+
416
+    created(){
417
+       this.getlist()  
152 418
     }
153 419
 }
154 420
 </script>

+ 6 - 0
src/xt_pages/outpatientDoctorStation/components/saveRecordTemplate.vue ファイルの表示

@@ -56,6 +56,8 @@ export default {
56 56
             template_name:"",
57 57
             template_remark:"",
58 58
             mode_status:0,
59
+            doctor_advice:'',
60
+            remark:''
59 61
         }
60 62
      },
61 63
     
@@ -77,6 +79,8 @@ export default {
77 79
          this.personal_history = obj.personal_history
78 80
          this.family_history = obj.family_history
79 81
          this.diagnostic = obj.diagnostic
82
+         this.doctor_advice = obj.doctor_advice
83
+         this.remark = obj.remark
80 84
          this.visible = true
81 85
         },
82 86
         hide() {
@@ -96,6 +100,8 @@ export default {
96 100
              personal_history:this.personal_history,
97 101
              family_history:this.family_history,
98 102
              diagnostic:this.diagnostic,
103
+             doctor_advice:this.doctor_advice,
104
+             remark:this.remark
99 105
             }
100 106
          console.log("params",params)
101 107