瀏覽代碼

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

杨青 1 年之前
父節點
當前提交
a79099d990

+ 8 - 0
src/api/patient.js 查看文件

759
     method:"get",
759
     method:"get",
760
     params:params
760
     params:params
761
   })
761
   })
762
+}
763
+
764
+export function getPatientAllagic(id,params){
765
+  return request({
766
+    url:"/api/patient/getpatientallagic?id="+id,
767
+    method:"get",
768
+    params:params
769
+  })
762
 }
770
 }

+ 1 - 0
src/xt_pages/Dialysisanalysis/platelets/all_ktv.vue 查看文件

210
           prop="inspect_value"
210
           prop="inspect_value"
211
           label="结果"
211
           label="结果"
212
         >
212
         >
213
+          <template slot-scope="scope">{{ parseFloat(scope.row.inspect_value).toFixed(2)}}</template>
213
         </el-table-column>
214
         </el-table-column>
214
 
215
 
215
       </el-table>
216
       </el-table>

+ 2 - 0
src/xt_pages/Dialysisanalysis/platelets/all_urr.vue 查看文件

210
           prop="inspect_value"
210
           prop="inspect_value"
211
           label="结果"
211
           label="结果"
212
         >
212
         >
213
+          <template slot-scope="scope">{{ (scope.row.inspect_value) + '%'}}</template>
214
+
213
         </el-table-column>
215
         </el-table-column>
214
 
216
 
215
       </el-table>
217
       </el-table>

+ 2 - 2
src/xt_pages/Dialysisanalysis/platelets/p_ktv.vue 查看文件

106
 
106
 
107
                 <el-table-column width="100" label="KTV" align="center">
107
                 <el-table-column width="100" label="KTV" align="center">
108
                   <template slot-scope="scope">
108
                   <template slot-scope="scope">
109
-                    {{scope.row.value}}
109
+                    {{parseFloat(scope.row.value).toFixed(2)}}
110
                   </template>
110
                   </template>
111
                 </el-table-column>
111
                 </el-table-column>
112
               </el-table>
112
               </el-table>
484
             for (let i = 0; i < resp.data.inspections.length; i++) {
484
             for (let i = 0; i < resp.data.inspections.length; i++) {
485
               let obj = {
485
               let obj = {
486
                 name:resp.data.patient.name,
486
                 name:resp.data.patient.name,
487
-                value:resp.data.inspections[i].inspect_value,
487
+                value:parseFloat(resp.data.inspections[i].inspect_value).toFixed(2),
488
                 inspect_date:resp.data.inspections[i].inspect_date
488
                 inspect_date:resp.data.inspections[i].inspect_date
489
               }
489
               }
490
               this.tableData.push(obj)
490
               this.tableData.push(obj)

+ 1 - 1
src/xt_pages/Dialysisanalysis/platelets/p_urr.vue 查看文件

104
                   </template>
104
                   </template>
105
                 </el-table-column>
105
                 </el-table-column>
106
 
106
 
107
-                <el-table-column width="100" label="URR" align="center">
107
+                <el-table-column width="100" label="URR(%)" align="center">
108
                   <template slot-scope="scope">
108
                   <template slot-scope="scope">
109
                     {{scope.row.value}}
109
                     {{scope.row.value}}
110
                   </template>
110
                   </template>

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 查看文件

3292
             var delghTwo = 0;
3292
             var delghTwo = 0;
3293
             if (
3293
             if (
3294
               this.records[recordIndex].advices &&
3294
               this.records[recordIndex].advices &&
3295
-              this.records[recordIndex].advices.length < 20
3295
+              this.records[recordIndex].advices.length < 10
3296
             ) {
3296
             ) {
3297
-              delghTwo = 20 - this.records[recordIndex].advices.length;
3297
+              delghTwo = 10 - this.records[recordIndex].advices.length;
3298
             } else {
3298
             } else {
3299
               delghTwo = 0;
3299
               delghTwo = 0;
3300
             }
3300
             }

+ 2 - 2
src/xt_pages/hospitalStation/invoicePrint.vue 查看文件

24
           :paramsObj="invoiceParams"
24
           :paramsObj="invoiceParams"
25
         ></printOne>
25
         ></printOne>
26
         <printTwo
26
         <printTwo
27
-          v-if="org_id == 10215||org_id == 0"
27
+          v-if="org_id == 10215"
28
           :paramsObj="invoiceParams"
28
           :paramsObj="invoiceParams"
29
         ></printTwo>
29
         ></printTwo>
30
         <printThree
30
         <printThree
31
-          v-if="org_id == 10265 || org_id == 4 || org_id == 9675 "
31
+          v-if="org_id == 10265 || org_id == 4 || org_id == 9675 || org_id == 0"
32
           :paramsObj="invoiceParams"
32
           :paramsObj="invoiceParams"
33
         ></printThree>
33
         ></printThree>
34
 <!--        <print-night v-if="org_id == 10210 || org_id == 0"-->
34
 <!--        <print-night v-if="org_id == 10210 || org_id == 0"-->

+ 15 - 7
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue 查看文件

230
 
230
 
231
 <script>
231
 <script>
232
 import { getInvoice } from '@/api/project/project'
232
 import { getInvoice } from '@/api/project/project'
233
+import {jsGetAge, uParseTime} from "@/utils/tools";
234
+
233
 export default {
235
 export default {
234
     props:{
236
     props:{
235
         paramsObj:Object
237
         paramsObj:Object
266
         this.org_name = this.$store.getters.xt_user.org.org_name
268
         this.org_name = this.$store.getters.xt_user.org.org_name
267
     },
269
     },
268
     methods:{
270
     methods:{
271
+      getTime(value, temp) {
272
+        if (value != undefined) {
273
+          return uParseTime(value, temp);
274
+        }
275
+        return "";
276
+      },
269
       getDay(dateString1,dateString2){
277
       getDay(dateString1,dateString2){
270
         var  startDate = Date.parse(dateString1);
278
         var  startDate = Date.parse(dateString1);
271
         var  endDate = Date.parse(dateString2);
279
         var  endDate = Date.parse(dateString2);
296
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
304
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
297
 
305
 
298
               if(this.list.his.id > 0){
306
               if(this.list.his.id > 0){
299
-                this.in_hosptial_time = this.getTime()
300
-                this.out_hosptial_time = this.list.order.setl_time.split(' ')[0]
307
+                this.in_hosptial_time = this.getTime(this.list.his.record_date,'{y}-{m}-{d}')
308
+                this.out_hosptial_time =  this.getTime(this.list.his.record_date,'{y}-{m}-{d}')
301
               }else{
309
               }else{
302
                 this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
310
                 this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
303
                 this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
311
                 this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
304
               }
312
               }
305
               this.insutype = this.list.order.insutype
313
               this.insutype = this.list.order.insutype
306
-              this.id_card_no = this.list.his_hospital_record.id_card_no
307
-              this.number = this.list.his_hospital_record.number
308
-              this.psn_no = this.list.his_hospital_record.psn_no
314
+              this.id_card_no = this.list.his.id_card_no
315
+              this.number = this.list.his.number
316
+              this.psn_no = this.list.his.psn_no
309
               this.pre_pay_money = this.list.pre_pay_money
317
               this.pre_pay_money = this.list.pre_pay_money
310
 
318
 
311
-              this.balance_accounts_type = this.list.his_hospital_record.balance_accounts_type
312
-              this.gend= this.list.his_hospital_record.gend
319
+              this.balance_accounts_type = this.list.his.balance_accounts_type
320
+              this.gend= this.list.his.gend
313
             })
321
             })
314
         },
322
         },
315
         smalltoBIG(n) {
323
         smalltoBIG(n) {

+ 0 - 17
src/xt_pages/outpatientDoctorStation/template/printOne.vue 查看文件

499
           this.prescriptions = advicePrint;
499
           this.prescriptions = advicePrint;
500
 
500
 
501
           this.doctorList_1 = response.data.data.eles;
501
           this.doctorList_1 = response.data.data.eles;
502
-          for(let i=0;i<this.advicePrint.length;i++){
503
-            this.advicess=advicePrint[i].advices
504
-          }
505
-          for(let j=0;j<this.advicess.length;j++){
506
-            for(let x=j+1;x<this.advicess.length;x++){
507
-              if(this.advicess[j].groupno == this.advicess[x].groupno){
508
-                this.arr.push(this.advicess.splice(x,1))
509
-                // this.arrs=this.advicess.splice(x,1)
510
-              }
511
-            }
512
-          }
513
-          // this.merge(this.advicess)
514
-          // console.log('4444444',this.arrs);
515
-          console.log('55555555',this.arr);
516
-          console.log('6666666',this.advicess);
517
           console.log(this.doctorList_1, "医生列表");
502
           console.log(this.doctorList_1, "医生列表");
518
           if (this.doctorList_1.length > 0) {
503
           if (this.doctorList_1.length > 0) {
519
             var operatorsLen = this.doctorList_1.length;
504
             var operatorsLen = this.doctorList_1.length;
525
               );
510
               );
526
             }
511
             }
527
           }
512
           }
528
-
529
-          console.log("处方222222", this.prescriptions);
530
           var hisPatient = response.data.data.hisPatient;
513
           var hisPatient = response.data.data.hisPatient;
531
           console.log("hisPatient", hisPatient);
514
           console.log("hisPatient", hisPatient);
532
           this.hisPatient = hisPatient;
515
           this.hisPatient = hisPatient;

+ 2 - 2
src/xt_pages/outpatientTool/labelPrint.vue 查看文件

134
                               <div>{{getTime(current_ctime,'{m}-{d}')}}</div>
134
                               <div>{{getTime(current_ctime,'{m}-{d}')}}</div>
135
                               <div>{{getTime(current_ctime,'{h}:{i}')}}</div>
135
                               <div>{{getTime(current_ctime,'{h}:{i}')}}</div>
136
                           </div>
136
                           </div>
137
-                          <img  v-if=" $store.getters.xt_user.org.id != 10138"  id="barcode">
137
+                          <img  v-if="$store.getters.xt_user.org.id != 10138 && $store.getters.xt_user.org.id != 10217"  id="barcode">
138
                       </div>
138
                       </div>
139
                       <div style="margin-bottom:5px;">{{current_number}}</div>
139
                       <div style="margin-bottom:5px;">{{current_number}}</div>
140
                       <div style="display:flex;">
140
                       <div style="display:flex;">
166
                 <div>{{getTime(item.ctime,'{m}-{d}')}}</div>
166
                 <div>{{getTime(item.ctime,'{m}-{d}')}}</div>
167
                 <div>{{getTime(item.ctime,'{h}:{i}')}}</div>
167
                 <div>{{getTime(item.ctime,'{h}:{i}')}}</div>
168
               </div>
168
               </div>
169
-              <img  v-if=" $store.getters.xt_user.org.id != 10138"  id="barcode">
169
+              <img   v-if="$store.getters.xt_user.org.id != 10138 && $store.getters.xt_user.org.id != 10217"  id="barcode">
170
             </div>
170
             </div>
171
                 <div style="margin-bottom:5px;">{{item.number}}</div>
171
                 <div style="margin-bottom:5px;">{{item.number}}</div>
172
                <div style="display:flex;">
172
                <div style="display:flex;">

+ 40 - 19
src/xt_pages/qcd/patientControlAnalysis.vue 查看文件

311
     }
311
     }
312
   },
312
   },
313
   methods: {
313
   methods: {
314
+    handleStartTimeChange(){
315
+      this.getlist()
316
+    },  handleEndTimeChange(){
317
+      this.getlist()
318
+    },
314
     handleSizeChange(limit) {
319
     handleSizeChange(limit) {
315
       this.tableData = []
320
       this.tableData = []
316
       this.listQuery.limit = limit
321
       this.listQuery.limit = limit
329
         this.$message.error('结束时间不能小于开始时间')
334
         this.$message.error('结束时间不能小于开始时间')
330
         this.listQuery.start_time = ''
335
         this.listQuery.start_time = ''
331
       } else {
336
       } else {
337
+        this.getlist()
332
 
338
 
333
       }
339
       }
334
 
340
 
340
         this.$message.error('结束时间不能小于开始时间')
346
         this.$message.error('结束时间不能小于开始时间')
341
         this.listQuery.end_time = ''
347
         this.listQuery.end_time = ''
342
       } else {
348
       } else {
349
+        this.getlist()
343
 
350
 
344
       }
351
       }
345
     },
352
     },
516
           //     }
523
           //     }
517
           //   }
524
           //   }
518
           // }
525
           // }
519
-        
526
+
520
         } else {
527
         } else {
521
           this.isLoadingTwo = false
528
           this.isLoadingTwo = false
522
 
529
 
529
         if (response.data.state == 1) {
536
         if (response.data.state == 1) {
530
           this.isLoadingTwo = false
537
           this.isLoadingTwo = false
531
           var patients = response.data.data.patients
538
           var patients = response.data.data.patients
532
-        
539
+
533
           this.tablePatients = patients
540
           this.tablePatients = patients
534
 
541
 
535
           //  let dataInfothree = {}
542
           //  let dataInfothree = {}
552
           var control = response.data.data.control
559
           var control = response.data.data.control
553
 
560
 
554
           var infectiousControl = response.data.data.infectiousControl
561
           var infectiousControl = response.data.data.infectiousControl
555
-         
562
+
556
           infectiousControl.map(item => {
563
           infectiousControl.map(item => {
557
             control.push(item)
564
             control.push(item)
558
           })
565
           })
572
           // 分页
579
           // 分页
573
           for (let i = 0; i < control.length; i++) {
580
           for (let i = 0; i < control.length; i++) {
574
             for (let j = 0; j < patients.length; j++) {
581
             for (let j = 0; j < patients.length; j++) {
575
-              if (control[i].inspect_date == patients[j].inspect_date) {
582
+              if (control[i].patient_id == patients[j].patient_id) {
576
                 newArr.push(control[i])
583
                 newArr.push(control[i])
577
               }
584
               }
578
             }
585
             }
579
           }
586
           }
587
+          console.log(newArr)
588
+
589
+          console.log("newArr")
590
+
591
+
580
 
592
 
581
           let dataInfo = {}
593
           let dataInfo = {}
582
           newArr.forEach((item, index) => {
594
           newArr.forEach((item, index) => {
583
-            let { inspect_date } = item
584
-            if (!dataInfo[inspect_date]) {
585
-              dataInfo[inspect_date] = {
586
-                inspect_date,
595
+            let { patient_id } = item
596
+            if (!dataInfo[patient_id]) {
597
+              dataInfo[patient_id] = {
587
                 name: item.name,
598
                 name: item.name,
588
                 child: [],
599
                 child: [],
589
                 patient_id: item.patient_id,
600
                 patient_id: item.patient_id,
593
           })
604
           })
594
           let list = Object.values(dataInfo)
605
           let list = Object.values(dataInfo)
595
 
606
 
607
+
596
           list.map(item => {
608
           list.map(item => {
597
             for (let i = 0; i < newArr.length; i++) {
609
             for (let i = 0; i < newArr.length; i++) {
598
-              if (item.inspect_date == newArr[i].inspect_date) {
610
+              if (item.patient_id == newArr[i].patient_id) {
599
                 item.child.push(newArr[i])
611
                 item.child.push(newArr[i])
600
               }
612
               }
601
             }
613
             }
602
           })
614
           })
603
 
615
 
616
+
617
+
604
           var newarrtwo = []
618
           var newarrtwo = []
605
           list.map(item => {
619
           list.map(item => {
606
             item.child.map(it => {
620
             item.child.map(it => {
608
             })
622
             })
609
           })
623
           })
610
 
624
 
625
+          console.log("list")
626
+          console.log(list)
627
+          console.log(newarrtwo)
628
+
629
+
611
           // 配置的才显示
630
           // 配置的才显示
612
           var arrthree = []
631
           var arrthree = []
613
           for (let i = 0; i < newarrtwo.length; i++) {
632
           for (let i = 0; i < newarrtwo.length; i++) {
624
             arrthree.push(item)
643
             arrthree.push(item)
625
           })
644
           })
626
 
645
 
646
+
647
+
627
           var dd = {}
648
           var dd = {}
628
           for (const index in arrthree) {
649
           for (const index in arrthree) {
629
-            if (!(arrthree[index].inspect_date in dd)) {
630
-              dd[arrthree[index].inspect_date] = {}
650
+            if (!(arrthree[index].patient_id in dd)) {
651
+              dd[arrthree[index].patient_id] = {}
631
             }
652
             }
632
-            if (!(arrthree[index].item_name in dd[arrthree[index].inspect_date]) && arrthree[index].item_name != 0) {
633
-              dd[arrthree[index].inspect_date][arrthree[index].item_name] = arrthree[index]
653
+            if (!(arrthree[index].item_name in dd[arrthree[index].patient_id]) && arrthree[index].item_name != 0) {
654
+              dd[arrthree[index].patient_id][arrthree[index].item_name] = arrthree[index]
634
 
655
 
635
             }
656
             }
636
           }
657
           }
637
 
658
 
638
           let dataInfotwo = {}
659
           let dataInfotwo = {}
639
           newArr.forEach((item, index) => {
660
           newArr.forEach((item, index) => {
640
-            let { inspect_date } = item
641
-            if (!dataInfotwo[inspect_date]) {
642
-              dataInfotwo[inspect_date] = {
643
-                inspect_date,
661
+            let { patient_id } = item
662
+            if (!dataInfotwo[patient_id]) {
663
+              dataInfotwo[patient_id] = {
664
+                patient_id,
644
                 name: item.name,
665
                 name: item.name,
645
                 inspect_value: item.inspect_value,
666
                 inspect_value: item.inspect_value,
646
                 id: item.id,
667
                 id: item.id,
647
-                inspect_date: item.inspect_date
648
               }
668
               }
649
             }
669
             }
650
           })
670
           })
666
 
686
 
667
           listtwo.map(item => {
687
           listtwo.map(item => {
668
             this.tableData.map(it => {
688
             this.tableData.map(it => {
669
-              if (item.inspect_date == parseInt(it.name)) {
689
+              if (item.patient_id == parseInt(it.name)) {
670
                 it.name = item.name
690
                 it.name = item.name
671
                 it.id = item.id
691
                 it.id = item.id
672
                 it.inspect_date = item.inspect_date
692
                 it.inspect_date = item.inspect_date
673
               }
693
               }
674
             })
694
             })
675
           })
695
           })
696
+
676
           for (let i = 0; i < this.patientsArr.length; i++) {
697
           for (let i = 0; i < this.patientsArr.length; i++) {
677
             for (let j = 0; j < this.tableData.length; j++) {
698
             for (let j = 0; j < this.tableData.length; j++) {
678
               if (this.patientsArr[i].name == this.tableData[j].name) {
699
               if (this.patientsArr[i].name == this.tableData[j].name) {

+ 80 - 7
src/xt_pages/user/components/PatientDetail.vue 查看文件

365
                 </el-form-item>
365
                 </el-form-item>
366
               </el-col>
366
               </el-col>
367
 
367
 
368
+
369
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
370
+                <el-form-item
371
+                  label="流转地: "
372
+                >
373
+                <el-select v-model="form.patient_address" placeholder="请选择">
374
+                    <el-option
375
+                      v-for="item in liuAddresslist"
376
+                      :key="item.id"
377
+                      :label="item.name"
378
+                      :value="item.name">
379
+                    </el-option>
380
+                 </el-select>
381
+                </el-form-item>
382
+              </el-col>
383
+           
384
+
368
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
385
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
369
                 <el-form-item
386
                 <el-form-item
370
-                  label="患者去向时间 : "
387
+                  label="流转开始时间 : "
371
                 >
388
                 >
372
                 <el-date-picker
389
                 <el-date-picker
373
                   size="small"
390
                   size="small"
374
-                  disabled
375
                   v-model="form.patient_start_time"
391
                   v-model="form.patient_start_time"
376
                   prefix-icon="el-icon-date"
392
                   prefix-icon="el-icon-date"
377
                   :editable="false"
393
                   :editable="false"
386
                 </el-form-item>
402
                 </el-form-item>
387
               </el-col>
403
               </el-col>
388
 
404
 
405
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
406
+                <el-form-item
407
+                  label="流转结束时间 : "
408
+                >
409
+                <el-date-picker
410
+                  size="small"
411
+                  v-model="form.patient_end_time"
412
+                  prefix-icon="el-icon-date"
413
+                  :editable="false"
414
+                  style="width: 150px;"
415
+                  type="date"
416
+                  placeholder="选择日期时间"
417
+                  align="right"
418
+                  format="yyyy-MM-dd"
419
+                  value-format="yyyy-MM-dd"
420
+                  @change="startTimeChange"
421
+                 ></el-date-picker>
422
+                </el-form-item>
423
+              </el-col> 
424
+
389
                 <el-col :span="8" style="margin-bottom: 20px;">
425
                 <el-col :span="8" style="margin-bottom: 20px;">
390
                 <el-form-item
426
                 <el-form-item
391
                   label="备注 : "
427
                   label="备注 : "
443
                 </el-checkbox-group>
479
                 </el-checkbox-group>
444
               </el-form-item>
480
               </el-form-item>
445
 
481
 
482
+              <el-col :span="24">
483
+                 <el-form-item label="传染病细分:" v-if="form.is_infectious == '2'">
484
+                    <el-input v-model="form.infectious_remark"></el-input>
485
+                 </el-form-item>
486
+              </el-col>
487
+
446
               <el-form-item label="疑难内瘘:">
488
               <el-form-item label="疑难内瘘:">
447
                 <el-radio-group v-model="form.troble_shoot" disabled>
489
                 <el-radio-group v-model="form.troble_shoot" disabled>
448
                   <el-radio :label="1">是</el-radio>
490
                   <el-radio :label="1">是</el-radio>
766
               </el-form-item>
808
               </el-form-item>
767
             </el-col>
809
             </el-col>
768
           </el-row>
810
           </el-row>
811
+          <el-row :gutter="24">
812
+            <el-col :span="24">
813
+              <el-form-item label="过敏史 : " prop="past_history">
814
+                <el-input
815
+                  type="textarea"
816
+                  :rows="3"
817
+                  v-model="form.allergic_history"
818
+                  resize="none"
819
+                  placeholder=""
820
+                ></el-input>
821
+              </el-form-item>
822
+            </el-col>
823
+          </el-row>
769
           <el-row :gutter="24">
824
           <el-row :gutter="24">
770
             <el-col :span="24">
825
             <el-col :span="24">
771
               <el-form-item label="体格检查">
826
               <el-form-item label="体格检查">
1081
                 </tr>
1136
                 </tr>
1082
                 <tr>
1137
                 <tr>
1083
                   <td>
1138
                   <td>
1084
-                    <div class="td_proj_title" v-if="org_id !=10278 && org_id!=10138 && org_id!=0">传<br />染<br />病</div>
1085
-                    <div class="td_proj_title" v-if="org_id==10138 || org_id == 10278 || org_id == 0">过<br />敏<br />史</div>
1139
+                    <div class="td_proj_title">过敏史</div>
1140
+                    <!-- <div class="td_proj_title" v-if="org_id !=10278 && org_id!=10138 && org_id!=0">传<br />染<br />病</div>
1141
+                    <div class="td_proj_title" v-if="org_id==10138 || org_id == 10278 || org_id == 0">过<br />敏<br />史</div> -->
1086
                   </td>
1142
                   </td>
1087
                   <td colspan="7">
1143
                   <td colspan="7">
1088
                     <div class="td_proj_content td_align_left">
1144
                     <div class="td_proj_content td_align_left">
1089
-                      {{ patientPrint.contagions }}
1145
+                      {{ patientPrint.allergic_history }}
1090
                     </div>
1146
                     </div>
1091
                   </td>
1147
                   </td>
1092
                 </tr>
1148
                 </tr>
1294
   record_number:"",
1350
   record_number:"",
1295
   patient_source:"",
1351
   patient_source:"",
1296
   patient_start_time:"",
1352
   patient_start_time:"",
1353
+  patient_end_time:"",
1354
+  patient_address:"",
1355
+  infectious_remark:"",
1356
+  allergic_history:"",
1297
 };
1357
 };
1298
 
1358
 
1299
 export default {
1359
 export default {
1315
         {value:1,label:"门诊"},
1375
         {value:1,label:"门诊"},
1316
         {value:2,label:"住院"},
1376
         {value:2,label:"住院"},
1317
         {value:3,label:"请假"},
1377
         {value:3,label:"请假"},
1318
-        {value:4,label:"备注"}
1378
+        {value:4,label:"流转"}
1319
       ],
1379
       ],
1320
       generic_info_fold: true,
1380
       generic_info_fold: true,
1321
       treat_info_fold: true,
1381
       treat_info_fold: true,
1399
         { id: 2, name: "否" },
1459
         { id: 2, name: "否" },
1400
       ],
1460
       ],
1401
       operators:[],
1461
       operators:[],
1462
+      liuAddresslist:[],
1402
     };
1463
     };
1403
   },
1464
   },
1404
   computed: {
1465
   computed: {
1410
     },
1471
     },
1411
   },
1472
   },
1412
   created() {
1473
   created() {
1474
+    this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
1475
+    console.log("liuAddresslist",this.liuAddresslist)
1413
     this.org_id = this.$store.getters.xt_user.org.id;
1476
     this.org_id = this.$store.getters.xt_user.org.id;
1414
     this.form.doctor = this.$store.getters.xt_user.user.id
1477
     this.form.doctor = this.$store.getters.xt_user.user.id
1415
     console.log("owowow",this.$store.getters.xt_user.user.id)
1478
     console.log("owowow",this.$store.getters.xt_user.user.id)
1643
                 "{y}-{m}-{d}"
1706
                 "{y}-{m}-{d}"
1644
               );
1707
               );
1645
             }
1708
             }
1709
+
1710
+            if (patietInfo.patient_end_time != 0) {
1711
+              this.form.patient_end_time = uParseTime(
1712
+                patietInfo.patient_end_time,
1713
+                "{y}-{m}-{d}"
1714
+              );
1715
+            }
1716
+            this.form.patient_address = patietInfo.patient_address
1717
+            this.form.allergic_history = patietInfo.allergic_history
1718
+            this.form.infectious_remark = patietInfo.infectious_remark
1646
             // this.form.initial = patietInfo.initial_dialysis + "";
1719
             // this.form.initial = patietInfo.initial_dialysis + "";
1647
             // this.form.dialysisTotal = patietInfo.total_dialysis + "";
1720
             // this.form.dialysisTotal = patietInfo.total_dialysis + "";
1648
             // this.form.assessment = patietInfo.evaluate;
1721
             // this.form.assessment = patietInfo.evaluate;
1976
               this.patientPrint.hospital_first_dialysis_date = "";
2049
               this.patientPrint.hospital_first_dialysis_date = "";
1977
             }
2050
             }
1978
 
2051
 
1979
-          
2052
+           
1980
 
2053
 
1981
             this.checkIdCardNo();
2054
             this.checkIdCardNo();
1982
           } else {
2055
           } else {

+ 24 - 12
src/xt_pages/user/components/PatientForm.vue 查看文件

412
            
412
            
413
 
413
 
414
             
414
             
415
-              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
415
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
416
                 <el-form-item
416
                 <el-form-item
417
-                  label="流转地: "
417
+                  label="流转地: "
418
                 >
418
                 >
419
                 <el-select v-model="form.patient_address" placeholder="请选择">
419
                 <el-select v-model="form.patient_address" placeholder="请选择">
420
                     <el-option
420
                     <el-option
425
                     </el-option>
425
                     </el-option>
426
                  </el-select>
426
                  </el-select>
427
                 </el-form-item>
427
                 </el-form-item>
428
-              </el-col> -->
428
+              </el-col>
429
            
429
            
430
  
430
  
431
              
431
              
449
                 </el-form-item>
449
                 </el-form-item>
450
               </el-col>
450
               </el-col>
451
 
451
 
452
-              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
452
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
453
                 <el-form-item
453
                 <el-form-item
454
                   label="流转结束时间 : "
454
                   label="流转结束时间 : "
455
                 >
455
                 >
467
                   @change="startTimeChange"
467
                   @change="startTimeChange"
468
                  ></el-date-picker>
468
                  ></el-date-picker>
469
                 </el-form-item>
469
                 </el-form-item>
470
-              </el-col> -->
470
+              </el-col> 
471
            
471
            
472
              
472
              
473
 
473
 
528
 
528
 
529
               </el-col>
529
               </el-col>
530
 
530
 
531
-              <!-- <el-col :span="24">
531
+              <el-col :span="24">
532
                  <el-form-item label="传染病细分:" v-if="form.is_infectious == '2'">
532
                  <el-form-item label="传染病细分:" v-if="form.is_infectious == '2'">
533
                     <el-input v-model="form.infectious_remark"></el-input>
533
                     <el-input v-model="form.infectious_remark"></el-input>
534
                  </el-form-item>
534
                  </el-form-item>
535
-              </el-col> -->
535
+              </el-col>
536
 
536
 
537
               <el-col :span="8">
537
               <el-col :span="8">
538
                 <el-form-item label="疑难内瘘 : " prop="contagions">
538
                 <el-form-item label="疑难内瘘 : " prop="contagions">
896
               </el-form-item>
896
               </el-form-item>
897
             </el-col>
897
             </el-col>
898
           </el-row>
898
           </el-row>
899
-          <!-- <el-row :gutter="24">
899
+          <el-row :gutter="24">
900
             <el-col :span="24">
900
             <el-col :span="24">
901
               <el-form-item label="过敏史 : " prop="past_history">
901
               <el-form-item label="过敏史 : " prop="past_history">
902
                 <el-input
902
                 <el-input
908
                 ></el-input>
908
                 ></el-input>
909
               </el-form-item>
909
               </el-form-item>
910
             </el-col>
910
             </el-col>
911
-          </el-row> -->
911
+          </el-row>
912
           <el-row :gutter="24">
912
           <el-row :gutter="24">
913
             <el-col :span="24">
913
             <el-col :span="24">
914
               <el-form-item label="体格检查">
914
               <el-form-item label="体格检查">
1514
     }
1514
     }
1515
   },
1515
   },
1516
   created() {
1516
   created() {
1517
-  // this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
1518
-  // console.log("liuAddresslist",this.liuAddresslist)
1517
+    this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
1518
+    console.log("liuAddresslist",this.liuAddresslist)
1519
    this.fetchAllAdminUsers();
1519
    this.fetchAllAdminUsers();
1520
  
1520
  
1521
 
1521
 
1892
               this.form.gender = patietInfo.gender;
1892
               this.form.gender = patietInfo.gender;
1893
             }
1893
             }
1894
             this.form.birth = uParseTime(patietInfo.birthday, "{y}-{m}-{d}");
1894
             this.form.birth = uParseTime(patietInfo.birthday, "{y}-{m}-{d}");
1895
-            console.log("中共232323232322323我-------------",this.form.birth)
1895
+           
1896
             this.form.nation = patietInfo.nation;
1896
             this.form.nation = patietInfo.nation;
1897
             this.form.native_place = patietInfo.native_place;
1897
             this.form.native_place = patietInfo.native_place;
1898
             this.form.height = patietInfo.height + "";
1898
             this.form.height = patietInfo.height + "";
2066
                 "{y}-{m}-{d}"
2066
                 "{y}-{m}-{d}"
2067
               );
2067
               );
2068
             }
2068
             }
2069
+
2070
+            if (patietInfo.patient_end_time != 0) {
2071
+              this.form.patient_end_time = uParseTime(
2072
+                patietInfo.patient_end_time,
2073
+                "{y}-{m}-{d}"
2074
+              );
2075
+            }
2076
+            this.form.patient_address = patietInfo.patient_address
2077
+            this.form.allergic_history = patietInfo.allergic_history
2078
+            this.form.infectious_remark = patietInfo.infectious_remark
2079
+
2080
+
2069
             this.checkIdCardNo();
2081
             this.checkIdCardNo();
2070
           } else {
2082
           } else {
2071
             this.$notify.error({
2083
             this.$notify.error({

+ 45 - 27
src/xt_pages/user/dialysisSolution.vue 查看文件

1244
       },
1244
       },
1245
 
1245
 
1246
       'addPlan.dialysis_duration': function() {
1246
       'addPlan.dialysis_duration': function() {
1247
-
1248
-        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
1249
-          this.addPlan.anticoagulant_shouji,
1250
-          this.addPlan.dialysis_duration,
1251
-          this.addPlan.anticoagulant_weichi
1252
-        )
1247
+        
1248
+        if(this.addPlan.id == 0){
1249
+            this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
1250
+            this.addPlan.anticoagulant_shouji,
1251
+            this.addPlan.dialysis_duration,
1252
+            this.addPlan.anticoagulant_weichi
1253
+          )
1254
+        }
1255
+      
1253
       },
1256
       },
1254
       'addPlan.anticoagulant_shouji': function() {
1257
       'addPlan.anticoagulant_shouji': function() {
1255
-
1256
-        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
1257
-          this.addPlan.anticoagulant_shouji,
1258
-          this.addPlan.dialysis_duration,
1259
-          this.addPlan.anticoagulant_weichi
1260
-        )
1261
-
1262
-        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1263
-          this.addPlan.anticoagulant_zongliang = ""
1264
-          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1258
+      
1259
+         if(this.addPlan.id == 0){
1260
+            this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(1,
1261
+            this.addPlan.anticoagulant_shouji,
1262
+            this.addPlan.dialysis_duration,
1263
+            this.addPlan.anticoagulant_weichi
1264
+          )
1265
+         }
1266
+     
1267
+       
1268
+        if(this.addPlan.id == 0){
1269
+          if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1270
+            this.addPlan.anticoagulant_zongliang = ""
1271
+            this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1272
+         }
1265
         }
1273
         }
1274
+      
1266
 
1275
 
1267
       },
1276
       },
1268
       'addPlan.anticoagulant_weichi': function() {
1277
       'addPlan.anticoagulant_weichi': function() {
1269
-        this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1270
-          1,
1271
-          this.addPlan.anticoagulant_shouji,
1272
-          this.addPlan.dialysis_duration,
1273
-          this.addPlan.anticoagulant_weichi
1274
-        )
1275
 
1278
 
1276
-        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1277
-          this.addPlan.anticoagulant_zongliang = ""
1278
-          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1279
-        }
1279
+        if(this.addPlan.id == 0){
1280
+            this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1281
+            1,
1282
+            this.addPlan.anticoagulant_shouji,
1283
+            this.addPlan.dialysis_duration,
1284
+            this.addPlan.anticoagulant_weichi
1285
+         )
1286
+        }
1287
+      
1288
+        
1289
+        if(this.addPlan.id == 0){
1290
+          if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1291
+            this.addPlan.anticoagulant_zongliang = ""
1292
+            this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1293
+         }
1294
+        }
1295
+      
1280
       }
1296
       }
1281
     },
1297
     },
1282
 
1298
 
1831
         this.getDialysisSolutionDetailList()
1847
         this.getDialysisSolutionDetailList()
1832
       },
1848
       },
1833
       openEdit(index, row) {
1849
       openEdit(index, row) {
1834
-       
1850
+        console.log("rowsoososososso",row)
1835
         this.current_index = index
1851
         this.current_index = index
1836
         this.addPlan.id = row.id
1852
         this.addPlan.id = row.id
1837
         this.addPlan.mode = row.mode_id
1853
         this.addPlan.mode = row.mode_id
2014
 
2030
 
2015
         this.addPlan.amylaceum = row.amylaceum
2031
         this.addPlan.amylaceum = row.amylaceum
2016
         this.addPlan.chaptalization = row.chaptalization
2032
         this.addPlan.chaptalization = row.chaptalization
2033
+
2034
+
2017
       },
2035
       },
2018
       isShows(name) {
2036
       isShows(name) {
2019
         var filedList = store.getters.xt_user.fileds
2037
         var filedList = store.getters.xt_user.fileds

+ 64 - 8
src/xt_pages/user/patients.vue 查看文件

461
             <el-tooltip
461
             <el-tooltip
462
               class="item"
462
               class="item"
463
               effect="dark"
463
               effect="dark"
464
-              content="预览"
464
+              content="流转记录"
465
               placement="top"
465
               placement="top"
466
             >
466
             >
467
               <el-button
467
               <el-button
468
                 type="danger"
468
                 type="danger"
469
                 icon="el-icon-tickets"
469
                 icon="el-icon-tickets"
470
                 size="small"
470
                 size="small"
471
-                @click="
472
-                  OpenView(scope.row.name, scope.row.dialysis_no, scope.row.id)
473
-                "
471
+                @click="toOpen(scope.row.id)"
474
               ></el-button>
472
               ></el-button>
475
             </el-tooltip>
473
             </el-tooltip>
476
 
474
 
631
           ></el-pagination>
629
           ></el-pagination>
632
     </el-dialog>
630
     </el-dialog>
633
 
631
 
632
+    <el-dialog
633
+        title="流转记录"
634
+        :visible.sync="patieintDialogVisible"
635
+        width="50%">
636
+        <span>
637
+          <el-table
638
+            :data="patientAllgicList"
639
+            border
640
+            style="width: 100%">
641
+            <el-table-column  prop="date" label="流转地"  width="180"  align="center">
642
+              <template  slot-scope="scope">
643
+                 {{ scope.row.patient_address }}
644
+
645
+              </template>
646
+            </el-table-column>
647
+            <el-table-column  prop="name" label="流转开始时间"  width="180"   align="center">
648
+              <template  slot-scope="scope"  >
649
+                 {{ getTime(scope.row.start_time) }}
650
+
651
+              </template>
652
+            </el-table-column>
653
+
654
+            <el-table-column  prop="name" label="开始流转结束时间"  width="180"   align="center">
655
+              <template  slot-scope="scope"  >
656
+                {{ getTime(scope.row.end_time) }}
657
+
658
+              </template>
659
+            </el-table-column>
660
+            <el-table-column  prop="address"  label="流转地址"   align="center">
661
+              <template  slot-scope="scope" >
662
+                {{ scope.row.patient_address }}
663
+              </template>
664
+            </el-table-column>
665
+
666
+            <el-table-column  prop="address"  label="备注"   align="center">
667
+              <template  slot-scope="scope">
668
+                {{ scope.row.remake }}
669
+              </template>
670
+            </el-table-column>
671
+          </el-table>
672
+
673
+        </span>
674
+        <span slot="footer" class="dialog-footer">
675
+          <el-button @click="patieintDialogVisible = false">取 消</el-button>
676
+        </span>
677
+    </el-dialog>
678
+
634
   </div>
679
   </div>
635
 </template>
680
 </template>
636
 
681
 
637
 <script>
682
 <script>
638
-  import { code, EditLapseto, fetchList, getMaxDialysisNo, OpenView, postExportPatients,GetRemind } from '@/api/patient'
683
+  import { code, EditLapseto, fetchList, getMaxDialysisNo, OpenView, postExportPatients,GetRemind,getPatientAllagic } from '@/api/patient'
639
   import { generateLog } from '@/api/config'
684
   import { generateLog } from '@/api/config'
640
   import QRCode from 'qrcodejs2'
685
   import QRCode from 'qrcodejs2'
641
   import Vue from 'vue'
686
   import Vue from 'vue'
673
         exportVisible:false,
718
         exportVisible:false,
674
         phoneVisible:false,
719
         phoneVisible:false,
675
         idCardNoVisible:false,
720
         idCardNoVisible:false,
721
+        patieintDialogVisible:false,
676
         wechatbindimg: '',
722
         wechatbindimg: '',
677
         isShow:true,
723
         isShow:true,
678
         active: true,
724
         active: true,
716
           {value:1,label:"门诊",source:1,lapeseto:1},
762
           {value:1,label:"门诊",source:1,lapeseto:1},
717
           {value:2,label:"住院",source:2,lapeseto:2},
763
           {value:2,label:"住院",source:2,lapeseto:2},
718
           {value:3,label:"请假",source:3,lapeseto:3},
764
           {value:3,label:"请假",source:3,lapeseto:3},
719
-          {value:4,label:"备注",source:4,lapeseto:4}
765
+          {value:4,label:"流转",source:4,lapeseto:4}
720
        ],
766
        ],
721
         lapsetoArr: [
767
         lapsetoArr: [
722
           { value: 0, label: '全部', source: 0, lapseto: 0 },
768
           { value: 0, label: '全部', source: 0, lapseto: 0 },
792
         gridData:[],
838
         gridData:[],
793
         totalOne: 0,
839
         totalOne: 0,
794
         page: 1,
840
         page: 1,
795
-        limit: 5
841
+        limit: 5,
842
+        patientAllgicList:[]
796
       }
843
       }
797
     },
844
     },
798
     created() {
845
     created() {
1385
             return false
1432
             return false
1386
           } else {
1433
           } else {
1387
             this.tableData = response.data.data.patients
1434
             this.tableData = response.data.data.patients
1388
-
1435
+            console.log("wowowowo",this.tableData)
1389
             this.pageTotal = this.tableData.length
1436
             this.pageTotal = this.tableData.length
1390
             this.total = response.data.data.total
1437
             this.total = response.data.data.total
1391
 
1438
 
1614
         return jsGetAge(birth, '-');
1661
         return jsGetAge(birth, '-');
1615
       }
1662
       }
1616
     },
1663
     },
1664
+    toOpen(id){
1665
+      getPatientAllagic(id).then(response=>{
1666
+        if(response.data.state == 1){
1667
+          var list =  response.data.data.list
1668
+          this.patieintDialogVisible=  true
1669
+          this.patientAllgicList = list
1670
+        }
1671
+      })
1672
+    }
1617
     }
1673
     }
1618
   }
1674
   }
1619
   Vue.prototype.$QRCode = function() {
1675
   Vue.prototype.$QRCode = function() {