Browse Source

批量打印

XMLWAN 4 years ago
parent
commit
be50f84e99

+ 5 - 5
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

@@ -45,7 +45,7 @@
45 45
         </el-select>
46 46
       </el-form-item>
47 47
       <el-form-item label="医保证号: " prop="name">
48
-        <el-input v-model="patientInfo.home_address" placeholder="" readonly></el-input>
48
+        <el-input v-model="patientInfo.health_care_no" placeholder="" readonly></el-input>
49 49
       </el-form-item>
50 50
       <el-form-item label="家庭住址: " prop="name">
51 51
         <el-input v-model="patientInfo.home_address" placeholder="" readonly></el-input>
@@ -138,7 +138,7 @@
138 138
           type="textarea"
139 139
           :rows="2"
140 140
           placeholder="请输入内容"
141
-          v-model="doctor_advice">
141
+          v-model="case_history.doctor_advice">
142 142
         </el-input>
143 143
       </el-form-item>
144 144
        <el-form-item label="备注:" prop="name" style="width:100%;">
@@ -146,7 +146,7 @@
146 146
           type="textarea"
147 147
           :rows="2"
148 148
           placeholder="请输入内容"
149
-          v-model="remark">
149
+          v-model="case_history.remark">
150 150
         </el-input>
151 151
       </el-form-item>
152 152
     </el-form>
@@ -254,8 +254,8 @@
254 254
             "record_date":this.record_date,
255 255
             "diagnostic":this.case_history.diagnostic,
256 256
             "breathing":this.case_history.breathing,
257
-            "doctor_advice":this.doctor_advice,
258
-            "remark":this.remark
257
+            "doctor_advice":this.case_history.doctor_advice,
258
+            "remark":this.case_history.remark
259 259
           }
260 260
 
261 261
           createCaseHistory(params).then(response => {

+ 6 - 2
src/xt_pages/outpatientDoctorStation/components/medicalRecord.vue View File

@@ -87,7 +87,7 @@
87 87
                             <template slot-scope="scope">{{ scope.row.user_name }}</template>
88 88
                         </el-table-column>
89 89
                         <el-table-column align="center" prop="name" label="创建日期">
90
-                            <template slot-scope="scope">{{ scope.row.record_date }}</template>
90
+                            <template slot-scope="scope">{{getTimes(scope.row.record_date) }}</template>
91 91
                         </el-table-column>
92 92
                         <el-table-column align="center" prop="name" label="模板说明">
93 93
                             <template slot-scope="scope">{{ scope.row.template_remark }}</template>
@@ -115,6 +115,7 @@
115 115
 import recordHistoryDetail from './recordHistoryDetail'
116 116
 import recordTemplateDetail from './recordTemplateDetail'
117 117
 import { getHistoryTemplate } from "@/api/project/project"
118
+import { uParseTime } from '@/utils/tools'
118 119
 export default {
119 120
     components:{
120 121
         recordHistoryDetail,
@@ -192,7 +193,10 @@ export default {
192 193
         },
193 194
         changeEndTime(){
194 195
           this.getlist()
195
-        }
196
+        },
197
+        getTimes(time) {
198
+        return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
199
+      },
196 200
     },
197 201
     created(){
198 202
        console.log("99999999999999999")

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue View File

@@ -98,7 +98,7 @@ export default {
98 98
     props:{
99 99
       patient:Object,
100 100
       hispatient:Object,
101
-      history:Object,
101
+    //   history:Object,
102 102
     },
103 103
     data(){
104 104
         return{

+ 4 - 3
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -31,12 +31,12 @@
31 31
 
32 32
           </div>
33 33
           <div class="doctorBox">
34
-              <p>医师:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
34
+              <p>医师:{{item.doctor?item.doctor:""}}</p>
35 35
               <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
36 36
           </div>
37 37
           <div class="actionBar">
38 38
                  <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
39
-                 <p>配对:{{getDoctor(item.advices[0].advice_doctor)?getDoctor(item.advices[0].advice_doctor):""}}</p>
39
+                 <p>配对:</p>
40 40
                  <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
41 41
                  <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
42 42
                  <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p>
@@ -149,7 +149,7 @@ export default {
149 149
        return name
150 150
      },
151 151
      getTotalOne(id) {
152
-        
152
+        console.log("处方数据",this.prescriptions)
153 153
         var total = 0
154 154
         var addtotal = 0
155 155
         for (let i = 0; i < this.prescriptions.length; i++) {
@@ -167,6 +167,7 @@ export default {
167 167
             }
168 168
               addtotal =  Math.floor(addtotal * 100) / 100
169 169
         }
170
+        
170 171
         return total + addtotal
171 172
        }
172 173
       }, 

+ 1 - 1
src/xt_pages/outpatientDoctorStation/template/printTwo.vue View File

@@ -30,7 +30,7 @@
30 30
         </div>
31 31
         <div class="actionBar">
32 32
             <p>审核:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
33
-            <p>配对:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
33
+            <p>配对:</p>
34 34
             <p>核对:{{getDoctor(advicePrint[0].checker)?getDoctor(advicePrint[0].checker):""}}</p>
35 35
             <p>发药:{{getDoctor(advicePrint[0].execution_staff)?getDoctor(advicePrint[0].execution_staff):""}}</p>
36 36
             <p>药费:{{advicePrint[0].price?advicePrint[0].price:""}}</p>

+ 7 - 0
src/xt_pages/outpatientRegistration/index.vue View File

@@ -529,6 +529,8 @@ export default {
529 529
                      this.form.total= "" ,
530 530
                      this.form.phone = "",
531 531
                      this.form.social_type = ""
532
+                   }else{
533
+                       this.$message.error("今日患者已挂号!")
532 534
                    }
533 535
                 })
534 536
              }
@@ -561,6 +563,11 @@ export default {
561 563
          }
562 564
       },
563 565
       changeName(id){
566
+            this.form.sex = ""
567
+            this.form.age = ""
568
+            this.form.birthday = ""
569
+            this.form.phone = ""
570
+            this.form.idCard = ""
564 571
         getPatientDetail(id).then(response=>{
565 572
            if(response.data.state == 1){
566 573
              var patient =  response.data.data.patient

+ 10 - 4
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

@@ -99,7 +99,8 @@
99 99
                 </el-table-column>
100 100
                 <el-table-column align="center" prop="name" label="操作" width="80">
101 101
                     <template slot-scope="scope">
102
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
102
+                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date < startUnix" :disabled="true">已过号</el-button> 
103
+                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date >= startUnix" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
103 104
                         <el-button size="mini" type="primary" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
104 105
                         <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" >已就诊</el-button>  
105 106
                     </template>
@@ -181,7 +182,8 @@ export default {
181 182
             }],
182 183
             
183 184
             tablePatient:[],
184
-            creator:""
185
+            creator:"",
186
+            startUnix:''
185 187
         }
186 188
     },
187 189
     created(){
@@ -198,7 +200,10 @@ export default {
198 200
        //获取所有挂号号的患者
199 201
 
200 202
        this.creator = this.$store.getters.xt_user.user.user_name
201
-    
203
+       var today = moment().startOf('day').format('YYYY-MM-DD')
204
+       var todayUnix = Date.parse(today)/1000 
205
+       this.startUnix = todayUnix - 28800
206
+      
202 207
        this.getlist()
203 208
     },
204 209
     methods:{
@@ -254,6 +259,7 @@ export default {
254 259
           getHisPatientHistory(params).then(response=>{
255 260
              if(response.data.state == 1){
256 261
                 var history = response.data.data.history
262
+
257 263
                 console.log("history",history)
258 264
                 this.tableData = history
259 265
                 var total =  response.data.data.total
@@ -345,7 +351,7 @@ export default {
345 351
       handleSelect(val){   
346 352
           this.search_input = val.name
347 353
           this.getlist()
348
-        },
354
+       },
349 355
 
350 356
     }
351 357
 }