Browse Source

hah阿凡达

28169 6 months ago
parent
commit
5f531e151b

+ 9 - 1
src/xt_pages/data/druguseTemplate.vue View File

685
                     </el-form-item>
685
                     </el-form-item>
686
                   </el-col>
686
                   </el-col>
687
 
687
 
688
+                  <el-col :span="24">
689
+                      <el-form-item prop="remark" label="医嘱嘱托 :">
690
+                        <el-input style="width: 300px" v-model="templateFormEdit.remark"></el-input>&nbsp;
691
+                      </el-form-item>
692
+                  </el-col>
693
+
688
 
694
 
689
                 </el-row>
695
                 </el-row>
690
               </el-form>
696
               </el-form>
1453
           prescribing_number_unit: '',
1459
           prescribing_number_unit: '',
1454
           delivery_way: '',
1460
           delivery_way: '',
1455
           execution_frequency: '',
1461
           execution_frequency: '',
1456
-          id: 0
1462
+          id: 0,
1463
+          remark:""
1457
         },
1464
         },
1458
         drugdicForm: {
1465
         drugdicForm: {
1459
           name: '',
1466
           name: '',
2584
         this.templateFormEdit.weekday = row.week_days.split(',')
2591
         this.templateFormEdit.weekday = row.week_days.split(',')
2585
         this.templateFormEdit.drug_id = row.drug_id
2592
         this.templateFormEdit.drug_id = row.drug_id
2586
         this.templateFormEdit.way  = row.way
2593
         this.templateFormEdit.way  = row.way
2594
+        this.templateFormEdit.remark = row.remark
2587
         this.templateEditFormVisible = true
2595
         this.templateEditFormVisible = true
2588
         if (row.parent_id > 0) {
2596
         if (row.parent_id > 0) {
2589
           this.editDialogTitle = '编辑子药'
2597
           this.editDialogTitle = '编辑子药'

+ 42 - 5
src/xt_pages/user/courseOfDisease_new.vue View File

204
               </el-button>
204
               </el-button>
205
             </div>
205
             </div>
206
           </div>
206
           </div>
207
-          <div>
208
-            <text_content @new_content="newcontent"></text_content>
207
+          <div v-if="AuToShow = true">
208
+            <text_content @new_content="newcontent" :patient="patient" :prescriptionList="prescriptionList" :berforList="berforList" :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList"></text_content>
209
           </div>
209
           </div>
210
         </div>
210
         </div>
211
 
211
 
300
         tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
300
         tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
301
             {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''}, 
301
             {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''}, 
302
         ],
302
         ],
303
-        
303
+        prescriptionList:[],
304
+        berforList:[],
305
+        monitorList:[],
306
+        dryweightList:[],
307
+        inpectionList:[],
308
+        dialysisOrderList:[],
309
+        patient:{},
310
+        AuToShow:false
304
       }
311
       }
305
     },
312
     },
306
     created() {
313
     created() {
545
             }
552
             }
546
           }
553
           }
547
         })
554
         })
548
-        this.auto_dialog = false
555
+       
549
         this.getAutoPatientContent()
556
         this.getAutoPatientContent()
550
       },
557
       },
551
       // 本周
558
       // 本周
937
         return anticoagulant_name
944
         return anticoagulant_name
938
       },
945
       },
939
       getTime (time) {
946
       getTime (time) {
940
-      return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
947
+      return uParseTime(time, '{y}-{m}-{d}')
941
       },
948
       },
942
       getTimeOne (time) {
949
       getTimeOne (time) {
943
       return uParseTime(time, '{y}-{m}-{d}')
950
       return uParseTime(time, '{y}-{m}-{d}')
954
           end_time:this.end_date,
961
           end_time:this.end_date,
955
           patient_id:this.patient_id,
962
           patient_id:this.patient_id,
956
         }
963
         }
964
+        console.log("start_time==============",params)
957
        getAutoPatientContent(params).then(response=>{
965
        getAutoPatientContent(params).then(response=>{
958
           if(response.data.state == 1){
966
           if(response.data.state == 1){
967
+          
959
             var prescription =  response.data.data.prescription
968
             var prescription =  response.data.data.prescription
969
+            this.prescriptionList=[]
970
+            this.prescriptionList = prescription
960
 
971
 
961
             var berfor = response.data.data.berfor
972
             var berfor = response.data.data.berfor
973
+            this.berforList = []
974
+            this.berforList = berfor
962
 
975
 
963
             var monitorList  = response.data.data.monitorList
976
             var monitorList  = response.data.data.monitorList
977
+            this.monitorList = []
978
+            this.monitorList = monitorList
964
 
979
 
965
             var dryweightList = response.data.data.dryweightList
980
             var dryweightList = response.data.data.dryweightList
966
 
981
 
982
+            this.dryweightList = []
983
+            this.dryweightList = dryweightList
984
+
967
             var inpectionList = response.data.data.inpectionList
985
             var inpectionList = response.data.data.inpectionList
986
+
987
+            this.inpectionList = []
988
+
989
+            this.inpectionList = inpectionList
990
+            
991
+            this.patient = {}
992
+            this.patient = response.data.data.patient
993
+            if(this.patient.gender == 1){
994
+               this.patient.gender_name = "男"
995
+            }
996
+            if(this.patient.gender == 2){
997
+               this.patient.gender_name = "女"
998
+            }
999
+
1000
+            this.dialysisOrderList=[]
1001
+            this.dialysisOrderList =response.data.data.dialysisOrder
1002
+
1003
+            this.AuToShow = true
1004
+           
968
           }
1005
           }
969
        })
1006
        })
970
 
1007
 

+ 54 - 2
src/xt_pages/user/text_content.vue View File

142
 </template>
142
 </template>
143
 
143
 
144
 <script>
144
 <script>
145
+import { watch } from 'vue';
146
+
145
 export default{
147
 export default{
148
+  props: {
149
+    patient: {
150
+      type: Object,
151
+    },
152
+    prescriptionList:{
153
+      type:Array
154
+    },
155
+    berforList:{
156
+      type:Array
157
+    },
158
+    monitorList:{
159
+      type:Array
160
+    },
161
+    dryweightList:{
162
+      type:Array
163
+    },
164
+    inpectionList:{
165
+      type:Array
166
+    },
167
+    dialysisOrder:{
168
+      type:Array
169
+    }
170
+  },
146
   data(){
171
   data(){
147
     return {
172
     return {
148
       content:'',
173
       content:'',
150
       num:6,
175
       num:6,
151
       tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
176
       tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
152
             {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''}, 
177
             {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''}, 
153
-        ]
178
+        ],
179
+       name:"",
180
+       gander:"",
181
+       age:0,
182
+       dialysis_no:""
154
     }
183
     }
155
   },
184
   },
156
   created(){
185
   created(){
162
               <tr>
191
               <tr>
163
                 <td width="130" style="padding: 5px;">基本信息</td>
192
                 <td width="130" style="padding: 5px;">基本信息</td>
164
                 <td style="padding: 5px;">
193
                 <td style="padding: 5px;">
165
-                  <span>姓名:朱康林</span>  <span>性别:男</span>  <span>年龄:58</span>  <span>透析号:21000005</span>
194
+                  <span>姓名:${this.name } </span>  <span>性别:${ this.patient.gender_name  }</span>  <span>年龄:${ this.patient.age }</span>  <span>透析号:${ this.patient.dialysis_no }</span>
166
                 </td>
195
                 </td>
167
               </tr>
196
               </tr>
168
               <tr>
197
               <tr>
257
     this.content = contents
286
     this.content = contents
258
     
287
     
259
   },
288
   },
289
+  watch:{
290
+     patient:function(){
291
+     
292
+     }
293
+  },
260
   mounted(){
294
   mounted(){
295
+    console.log("patient---------------------",this.patient)
296
+    this.name = this.patient.name
297
+    this.gander = ""
298
+    this.age = 0
299
+    this.dialysis_no = ""
300
+    if(this.patient.gender == 1){
301
+      this.gander = "男"
302
+    }
303
+    if(this.patient.gender == 2){
304
+      this.gander = "女"
305
+    }
306
+    this.age = this.patient.age
307
+    this.dialysis_no = this.patient.dialysis_no
308
+
309
+    console.log("name:",this.name)
310
+    console.log("gander:",this.gander)
311
+    console.log("age:",this.age)
312
+    console.log("dialysis_no:",this.dialysis_no)
261
     console.log('document.getElementById3334',document.getElementById('editer'))
313
     console.log('document.getElementById3334',document.getElementById('editer'))
262
     const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
314
     const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
263
     var newListArr =[]
315
     var newListArr =[]