瀏覽代碼

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 年之前
父節點
當前提交
991c9a9144

+ 1 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

775
           }
775
           }
776
           createHisPrescription(data, params).then(response => {
776
           createHisPrescription(data, params).then(response => {
777
             if (response.data.state == 1) {
777
             if (response.data.state == 1) {
778
+              this.$emit("change")
778
               this.$message.success('保存成功')
779
               this.$message.success('保存成功')
779
             }
780
             }
780
           })
781
           })

+ 38 - 14
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

69
         <desk-prescription  :addtions_charge="addtions_charge" :diagnoses="diagnoses" :other_sick="other_sick" :record_date="record_date"
69
         <desk-prescription  :addtions_charge="addtions_charge" :diagnoses="diagnoses" :other_sick="other_sick" :record_date="record_date"
70
                           ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
70
                           ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
71
                           :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)"
71
                           :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)"
72
-                          v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
72
+                          v-if="titleType == '电子处方'" style="flex:1;" v-on:change="changeTab"></desk-prescription>
73
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
73
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
74
                     :hisPatientInfo="hisPatientInfo"   v-if="titleType == '电子病历'" :detalid="detalid" ref="child"></desk-record>
74
                     :hisPatientInfo="hisPatientInfo"   v-if="titleType == '电子病历'" :detalid="detalid" ref="child"></desk-record>
75
 
75
 
208
         }
208
         }
209
 
209
 
210
 
210
 
211
+      },changeTab(){
212
+        this.radio = 2
213
+        let params = {
214
+          'record_date': this.record_date,
215
+          'type': this.radio
216
+        }
217
+        this.patientTableData = []
218
+        getSchedulePatientList(params).then(response => {
219
+          if (response.data.state == 0) {
220
+            this.$message.error(response.data.msg)
221
+            return false
222
+          } else {
223
+            this.patientTableData = response.data.data.list
224
+            this.patientTableDataTwo = response.data.data.list
225
+            this.cal_one = response.data.data.total_one
226
+            this.cal_two =  response.data.data.total_two
227
+            this.admin_info =  response.data.data.info
228
+           for (let i = 0; i< this.patientTableData.length; i++){
229
+             if(this.patientTableData[i].patients.id == this.patientid){
230
+               this.$refs.tab.setCurrentRow(this.patientTableData[i])
231
+             }
232
+           }
233
+
234
+          }
235
+        })
236
+
211
       },
237
       },
212
       change(val) {
238
       change(val) {
213
         this.getList()
239
         this.getList()
214
-
215
-
216
       },
240
       },
217
       getList() {
241
       getList() {
218
         let params = {
242
         let params = {
394
 
418
 
395
       },
419
       },
396
       choosePatient(val) {
420
       choosePatient(val) {
397
-        let isShowDailog = false
398
-        for (let i = 0; i < this.prescriptions.length; i++){
399
-          if((this.prescriptions[i].id == 0 && this.prescriptions[i].advices.length > 0) || (this.prescriptions[i].id == 0 && this.prescriptions[i].project.length > 0)){
400
-            isShowDailog = true
401
-          }
402
-        }
403
-        if(isShowDailog){
404
-          this.$message.error('需要保存当前处方才能切换')
405
-          return
406
-        }
407
-
421
+        // let isShowDailog = false
422
+        // for (let i = 0; i < this.prescriptions.length; i++){
423
+        //   if((this.prescriptions[i].id == 0 && this.prescriptions[i].advices.length > 0) || (this.prescriptions[i].id == 0 && this.prescriptions[i].project.length > 0)){
424
+        //     isShowDailog = true
425
+        //   }
426
+        // }
427
+        // if(isShowDailog){
428
+        //   this.$message.error('需要保存当前处方才能切换')
429
+        //   return
430
+        // }
431
+        //
408
 
432
 
409
         this.patientid = val.patients.id
433
         this.patientid = val.patients.id
410
         let params = {
434
         let params = {