XMLWAN 4 lat temu
rodzic
commit
be50f84e99

+ 5 - 5
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Wyświetl plik

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

+ 6 - 2
src/xt_pages/outpatientDoctorStation/components/medicalRecord.vue Wyświetl plik

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

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue Wyświetl plik

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

+ 4 - 3
src/xt_pages/outpatientDoctorStation/template/printOne.vue Wyświetl plik

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

+ 1 - 1
src/xt_pages/outpatientDoctorStation/template/printTwo.vue Wyświetl plik

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

+ 7 - 0
src/xt_pages/outpatientRegistration/index.vue Wyświetl plik

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

+ 10 - 4
src/xt_pages/outpatientRegistration/registrationHistory.vue Wyświetl plik

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