Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 2 weeks ago
parent
commit
d0efa148b7

+ 4 - 4
src/xt_pages/user/components/PatientSidebar.vue View File

163
           name: '3',
163
           name: '3',
164
           label: '病情记录',
164
           label: '病情记录',
165
           children: [
165
           children: [
166
-            {
167
-              name: '3-1',
168
-              label: '病史'
169
-            },
166
+            // {
167
+            //   name: '3-1',
168
+            //   label: '病史'
169
+            // },
170
             {
170
             {
171
               name: '3-4',
171
               name: '3-4',
172
               label: '病史新'
172
               label: '病史新'

+ 12 - 2
src/xt_pages/user/sickHistory_new.vue View File

49
                 <div v-if='add_index == 0'>
49
                 <div v-if='add_index == 0'>
50
                   <el-button type="primary" size="small" @click="showEdit">修改</el-button>
50
                   <el-button type="primary" size="small" @click="showEdit">修改</el-button>
51
                   <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
51
                   <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
52
-                  <el-button type="primary" size="small" @click="prints">打印</el-button>
52
+                  <el-button type="primary" size="small" @click="printOne">打印</el-button>
53
                 </div>
53
                 </div>
54
                 <div v-if="add_index == 1">
54
                 <div v-if="add_index == 1">
55
                   <el-button type="primary" size="small" @click="createAction">保存</el-button>
55
                   <el-button type="primary" size="small" @click="createAction">保存</el-button>
408
       wayOptions: null,
408
       wayOptions: null,
409
       patientVascularAccessOne:{},
409
       patientVascularAccessOne:{},
410
       orgname:'',
410
       orgname:'',
411
+      ids:[]
411
     }
412
     }
412
   },
413
   },
413
   created() {
414
   created() {
461
 
462
 
462
   },
463
   },
463
   methods: {
464
   methods: {
465
+    printOne(){
466
+      if(this.ids.length == 0){
467
+        this.$message.error('请选择要打印的病程')
468
+        return
469
+      }
470
+      this.$router.push({ path: "/sickhistory/print?ids="+this.ids+"&patient_id="+this.patient_id});
471
+    },
464
     template_dele(){
472
     template_dele(){
465
       console.log("hahhahahah",this.template_id)
473
       console.log("hahhahahah",this.template_id)
466
      deleteSickHistoryTempalte(this.template_id).then(response=>{
474
      deleteSickHistoryTempalte(this.template_id).then(response=>{
947
 
955
 
948
     },
956
     },
949
     getCurrentChange(val){
957
     getCurrentChange(val){
950
-      console.log("val--------------",val)
958
+     
959
+      this.ids = []
960
+      this.ids.push(val.id)
951
       this.$refs.editor.contents = val.content
961
       this.$refs.editor.contents = val.content
952
       this.record_time = this.getTime(val.record_time)
962
       this.record_time = this.getTime(val.record_time)
953
       this.id = val.id
963
       this.id = val.id