28169 il y a 4 mois
Parent
révision
5f531e151b

+ 9 - 1
src/xt_pages/data/druguseTemplate.vue Voir le fichier

@@ -685,6 +685,12 @@
685 685
                     </el-form-item>
686 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 695
                 </el-row>
690 696
               </el-form>
@@ -1453,7 +1459,8 @@
1453 1459
           prescribing_number_unit: '',
1454 1460
           delivery_way: '',
1455 1461
           execution_frequency: '',
1456
-          id: 0
1462
+          id: 0,
1463
+          remark:""
1457 1464
         },
1458 1465
         drugdicForm: {
1459 1466
           name: '',
@@ -2584,6 +2591,7 @@
2584 2591
         this.templateFormEdit.weekday = row.week_days.split(',')
2585 2592
         this.templateFormEdit.drug_id = row.drug_id
2586 2593
         this.templateFormEdit.way  = row.way
2594
+        this.templateFormEdit.remark = row.remark
2587 2595
         this.templateEditFormVisible = true
2588 2596
         if (row.parent_id > 0) {
2589 2597
           this.editDialogTitle = '编辑子药'

+ 42 - 5
src/xt_pages/user/courseOfDisease_new.vue Voir le fichier

@@ -204,8 +204,8 @@
204 204
               </el-button>
205 205
             </div>
206 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 209
           </div>
210 210
         </div>
211 211
 
@@ -300,7 +300,14 @@
300 300
         tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
301 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 313
     created() {
@@ -545,7 +552,7 @@
545 552
             }
546 553
           }
547 554
         })
548
-        this.auto_dialog = false
555
+       
549 556
         this.getAutoPatientContent()
550 557
       },
551 558
       // 本周
@@ -937,7 +944,7 @@
937 944
         return anticoagulant_name
938 945
       },
939 946
       getTime (time) {
940
-      return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
947
+      return uParseTime(time, '{y}-{m}-{d}')
941 948
       },
942 949
       getTimeOne (time) {
943 950
       return uParseTime(time, '{y}-{m}-{d}')
@@ -954,17 +961,47 @@
954 961
           end_time:this.end_date,
955 962
           patient_id:this.patient_id,
956 963
         }
964
+        console.log("start_time==============",params)
957 965
        getAutoPatientContent(params).then(response=>{
958 966
           if(response.data.state == 1){
967
+          
959 968
             var prescription =  response.data.data.prescription
969
+            this.prescriptionList=[]
970
+            this.prescriptionList = prescription
960 971
 
961 972
             var berfor = response.data.data.berfor
973
+            this.berforList = []
974
+            this.berforList = berfor
962 975
 
963 976
             var monitorList  = response.data.data.monitorList
977
+            this.monitorList = []
978
+            this.monitorList = monitorList
964 979
 
965 980
             var dryweightList = response.data.data.dryweightList
966 981
 
982
+            this.dryweightList = []
983
+            this.dryweightList = dryweightList
984
+
967 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 Voir le fichier

@@ -142,7 +142,32 @@
142 142
 </template>
143 143
 
144 144
 <script>
145
+import { watch } from 'vue';
146
+
145 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 171
   data(){
147 172
     return {
148 173
       content:'',
@@ -150,7 +175,11 @@ export default{
150 175
       num:6,
151 176
       tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
152 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 185
   created(){
@@ -162,7 +191,7 @@ export default{
162 191
               <tr>
163 192
                 <td width="130" style="padding: 5px;">基本信息</td>
164 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 195
                 </td>
167 196
               </tr>
168 197
               <tr>
@@ -257,7 +286,30 @@ export default{
257 286
     this.content = contents
258 287
     
259 288
   },
289
+  watch:{
290
+     patient:function(){
291
+     
292
+     }
293
+  },
260 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 313
     console.log('document.getElementById3334',document.getElementById('editer'))
262 314
     const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
263 315
     var newListArr =[]