|
@@ -3,7 +3,8 @@
|
3
|
3
|
<div class="position">
|
4
|
4
|
<bread-crumb :crumbs='crumbs'></bread-crumb>
|
5
|
5
|
</div>
|
6
|
|
- <div v-if="this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 0" class="app-container">
|
|
6
|
+ <div v-if="this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 0"
|
|
7
|
+ class="app-container">
|
7
|
8
|
<div class="nameTitle">患者基本信息:</div>
|
8
|
9
|
<div class="formMain">
|
9
|
10
|
<el-form class="basicForm" :model="form" :rules="rules2" ref="form" label-width="100px">
|
|
@@ -113,7 +114,9 @@
|
113
|
114
|
<el-form-item class="specialFormItem" label="医保卡号:">
|
114
|
115
|
<div style="display:flex;">
|
115
|
116
|
<el-input v-model="form.medicalInsuranceCard"></el-input>
|
116
|
|
- <el-button style="margin-left:10px;" type="primary" @click="readingSZ" v-loading="read_loading">读卡</el-button>
|
|
117
|
+ <el-button style="margin-left:10px;" type="primary" @click="readingSZ"
|
|
118
|
+ v-loading="read_loading">读卡
|
|
119
|
+ </el-button>
|
117
|
120
|
</div>
|
118
|
121
|
</el-form-item>
|
119
|
122
|
|
|
@@ -122,7 +125,7 @@
|
122
|
125
|
<div class="nameTitle">患者挂号信息:</div>
|
123
|
126
|
<div class="formMain">
|
124
|
127
|
<el-form class="basicForm" :model="form" :rules="rules2" ref="form" label-width="100px">
|
125
|
|
- <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name" >
|
|
128
|
+ <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
|
126
|
129
|
<el-select v-model="form.register" placeholder="请选择" @change="changeReg">
|
127
|
130
|
<el-option
|
128
|
131
|
v-for="item in his_registers"
|
|
@@ -133,7 +136,7 @@
|
133
|
136
|
</el-select>
|
134
|
137
|
</el-form-item>
|
135
|
138
|
|
136
|
|
- <el-form-item label="医疗类别:" :validate-event="is_Name" prop="medicalCare" >
|
|
139
|
+ <el-form-item label="医疗类别:" :validate-event="is_Name" prop="medicalCare">
|
137
|
140
|
<el-select v-model="form.medicalCare" placeholder="请选择">
|
138
|
141
|
<el-option
|
139
|
142
|
v-for="(item,index) in medical_care"
|
|
@@ -435,7 +438,7 @@
|
435
|
438
|
},
|
436
|
439
|
data() {
|
437
|
440
|
return {
|
438
|
|
- read_loading:false,
|
|
441
|
+ read_loading: false,
|
439
|
442
|
registers: [
|
440
|
443
|
{ value: 11, label: '普通门诊' },
|
441
|
444
|
{ value: 12, label: '门诊挂号' },
|
|
@@ -598,8 +601,7 @@
|
598
|
601
|
birthday: [{ required: true, message: '患者出生日期不能为空', trigger: 'blur' }],
|
599
|
602
|
certificates: [{ required: true, message: '证件类型不能为空', trigger: 'change' }],
|
600
|
603
|
id_card_type: [{ required: true, message: '读卡类型不能为空', trigger: 'change' }],
|
601
|
|
- medicalCare: [{ required: true, message: '医疗类别不能为空', trigger: 'change' }],
|
602
|
|
-
|
|
604
|
+ medicalCare: [{ required: true, message: '医疗类别不能为空', trigger: 'change' }]
|
603
|
605
|
|
604
|
606
|
},
|
605
|
607
|
rules: {
|
|
@@ -636,11 +638,11 @@
|
636
|
638
|
}
|
637
|
639
|
},
|
638
|
640
|
methods: {
|
639
|
|
- changeReg(){
|
|
641
|
+ changeReg() {
|
640
|
642
|
console.log(this.form.register)
|
641
|
|
- if(this.form.register != 4){
|
|
643
|
+ if (this.form.register != 4) {
|
642
|
644
|
this.form.registrationFee = 10
|
643
|
|
- }else{
|
|
645
|
+ } else {
|
644
|
646
|
this.form.registrationFee = 0
|
645
|
647
|
|
646
|
648
|
}
|
|
@@ -671,18 +673,18 @@
|
671
|
673
|
}, readingSZ() {
|
672
|
674
|
var that = this
|
673
|
675
|
if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
|
674
|
|
- this.$message.error("请先选择读卡类型")
|
|
676
|
+ this.$message.error('请先选择读卡类型')
|
675
|
677
|
return
|
676
|
678
|
}
|
677
|
679
|
this.read_loading = true
|
678
|
680
|
let params = {
|
679
|
|
- 'id_card_type': this.form.id_card_type,
|
|
681
|
+ 'id_card_type': this.form.id_card_type
|
680
|
682
|
|
681
|
683
|
}
|
682
|
684
|
axios.get('http://127.0.0.1:9532/sz/api/readcard', {
|
683
|
685
|
params: params
|
684
|
686
|
})
|
685
|
|
- .then(function (response) {
|
|
687
|
+ .then(function(response) {
|
686
|
688
|
if (response.data.state == 0) {
|
687
|
689
|
that.read_loading = false
|
688
|
690
|
|
|
@@ -710,13 +712,13 @@
|
710
|
712
|
that.form.phone = patient.phone
|
711
|
713
|
that.form.id_card = patient.id_card_no
|
712
|
714
|
}
|
713
|
|
- that.$message({message: '读卡成功', type: 'success'})
|
|
715
|
+ that.$message({ message: '读卡成功', type: 'success' })
|
714
|
716
|
|
715
|
717
|
}
|
716
|
718
|
})
|
717
|
|
- .catch(function (error) {
|
|
719
|
+ .catch(function(error) {
|
718
|
720
|
|
719
|
|
- });
|
|
721
|
+ })
|
720
|
722
|
|
721
|
723
|
},
|
722
|
724
|
|
|
@@ -848,7 +850,7 @@
|
848
|
850
|
this.departmentList = department
|
849
|
851
|
}
|
850
|
852
|
})
|
851
|
|
- },saveHisPatient9504(formName){
|
|
853
|
+ }, saveHisPatient9504(formName) {
|
852
|
854
|
if (this.form.name == '') {
|
853
|
855
|
this.$message.error('患者姓名不能为空')
|
854
|
856
|
this.is_Name = true
|
|
@@ -932,8 +934,8 @@
|
932
|
934
|
diagnosis: this.form.diagnosis,
|
933
|
935
|
sick_type: this.form.sick_type
|
934
|
936
|
}
|
935
|
|
- params['record_time'] = this.record_date,
|
936
|
|
- params['admin_user_id'] = this.$store.getters.xt_user.user.id
|
|
937
|
+ params['record_time'] = this.record_date
|
|
938
|
+ params['admin_user_id'] = this.$store.getters.xt_user.user.id
|
937
|
939
|
this.loadingone = true
|
938
|
940
|
|
939
|
941
|
if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 0) {
|
|
@@ -948,9 +950,9 @@
|
948
|
950
|
that.$refs.register.hide()
|
949
|
951
|
return false
|
950
|
952
|
} else {
|
951
|
|
- if (response.data.data.failed_code == -10){
|
|
953
|
+ if (response.data.data.failed_code == -10) {
|
952
|
954
|
that.$message.error(response.data.data.msg)
|
953
|
|
- }else{
|
|
955
|
+ } else {
|
954
|
956
|
that.$refs.register.hide()
|
955
|
957
|
that.getPatientList()
|
956
|
958
|
that.$message({ message: '挂号成功', type: 'success' })
|
|
@@ -1022,9 +1024,6 @@
|
1022
|
1024
|
}
|
1023
|
1025
|
})
|
1024
|
1026
|
|
1025
|
|
-
|
1026
|
|
-
|
1027
|
|
-
|
1028
|
1027
|
},
|
1029
|
1028
|
saveHisPatient(formName) {
|
1030
|
1029
|
if (this.form.name == '') {
|
|
@@ -1149,9 +1148,9 @@
|
1149
|
1148
|
that.$refs.register.hide()
|
1150
|
1149
|
return false
|
1151
|
1150
|
} else {
|
1152
|
|
- if (response.data.data.failed_code == -10){
|
|
1151
|
+ if (response.data.data.failed_code == -10) {
|
1153
|
1152
|
that.$message.error(response.data.data.msg)
|
1154
|
|
- }else{
|
|
1153
|
+ } else {
|
1155
|
1154
|
that.$refs.register.hide()
|
1156
|
1155
|
that.getPatientList()
|
1157
|
1156
|
that.$message({ message: '挂号成功', type: 'success' })
|