|
@@ -178,7 +178,9 @@
|
178
|
178
|
<el-input v-model.number="total" readonly></el-input>
|
179
|
179
|
</el-form-item>
|
180
|
180
|
</el-form>
|
181
|
|
- <el-button style="float:right" v-loading="loadingone" @click="saveHisPatient9504('form')" type="primary">挂号</el-button>
|
|
181
|
+ <el-button style="float:right" v-loading="loadingone" @click="saveHisPatient9504('form')"
|
|
182
|
+ type="primary">挂号
|
|
183
|
+ </el-button>
|
182
|
184
|
</div>
|
183
|
185
|
|
184
|
186
|
</div>
|
|
@@ -408,7 +410,7 @@
|
408
|
410
|
<!-- <el-input v-model="form.name"></el-input> -->
|
409
|
411
|
</el-form-item>
|
410
|
412
|
</el-form>
|
411
|
|
- <el-button style="float:right" @click="saveHisPatient('form')" type="primary">挂号</el-button>
|
|
413
|
+ <el-button style="float:right" @click="saveHisPatient('form')" v-loading="loadingone" type="primary">挂号</el-button>
|
412
|
414
|
</div>
|
413
|
415
|
|
414
|
416
|
</div>
|
|
@@ -427,7 +429,7 @@
|
427
|
429
|
saveHisPatient
|
428
|
430
|
} from '@/api/project/project'
|
429
|
431
|
import { getDictionaryDataConfig } from '@/utils/data'
|
430
|
|
- import { uParseTime,jsGetAge } from '@/utils/tools'
|
|
432
|
+ import { jsGetAge, uParseTime } from '@/utils/tools'
|
431
|
433
|
import { getInitData } from '@/api/his/his'
|
432
|
434
|
import axios from 'axios'
|
433
|
435
|
|
|
@@ -438,6 +440,7 @@
|
438
|
440
|
},
|
439
|
441
|
data() {
|
440
|
442
|
return {
|
|
443
|
+ loadingone: false,
|
441
|
444
|
read_loading: false,
|
442
|
445
|
registers: [
|
443
|
446
|
{ value: 11, label: '普通门诊' },
|
|
@@ -479,7 +482,7 @@
|
479
|
482
|
total: '',
|
480
|
483
|
phone: '',
|
481
|
484
|
social_type: '',
|
482
|
|
- id_card_type: 1
|
|
485
|
+ id_card_type: 2
|
483
|
486
|
|
484
|
487
|
},
|
485
|
488
|
medical_care: [
|
|
@@ -656,20 +659,20 @@
|
656
|
659
|
this.form.phone = val.phone
|
657
|
660
|
this.form.idCard = val.id_card_no
|
658
|
661
|
|
659
|
|
- var thisLen = this.form.idCard.length;
|
660
|
|
- var birth = "";
|
|
662
|
+ var thisLen = this.form.idCard.length
|
|
663
|
+ var birth = ''
|
661
|
664
|
if (thisLen == 15) {
|
662
|
|
- birth = "19" + this.form.idCard.substr(6, 6);
|
|
665
|
+ birth = '19' + this.form.idCard.substr(6, 6)
|
663
|
666
|
} else {
|
664
|
|
- birth = this.form.idCard.substr(6, 8);
|
|
667
|
+ birth = this.form.idCard.substr(6, 8)
|
665
|
668
|
}
|
666
|
669
|
var births =
|
667
|
670
|
birth.substr(0, 4) +
|
668
|
|
- "-" +
|
|
671
|
+ '-' +
|
669
|
672
|
birth.substr(4, 2) +
|
670
|
|
- "-" +
|
671
|
|
- birth.substr(6, 2);
|
672
|
|
- this.form.age = jsGetAge(births, "-");
|
|
673
|
+ '-' +
|
|
674
|
+ birth.substr(6, 2)
|
|
675
|
+ this.form.age = jsGetAge(births, '-')
|
673
|
676
|
},
|
674
|
677
|
querySearchAsync(keyword, cb) {
|
675
|
678
|
let key = ''
|
|
@@ -915,7 +918,6 @@
|
915
|
918
|
return
|
916
|
919
|
}
|
917
|
920
|
|
918
|
|
-
|
919
|
921
|
this.$refs[formName].validate((valid) => {
|
920
|
922
|
if (valid) {
|
921
|
923
|
var params = {
|
|
@@ -966,16 +968,39 @@
|
966
|
968
|
that.$message.error(response.data.data.msg)
|
967
|
969
|
} else {
|
968
|
970
|
that.$message({ message: '挂号成功', type: 'success' })
|
969
|
|
- that.getPatientList()
|
|
971
|
+ that.form.settlementValue = ''
|
|
972
|
+ that.form.medicalInsuranceCard = ''
|
|
973
|
+ that.form.name = ''
|
|
974
|
+ that.form.sex = ''
|
|
975
|
+ that.form.certificates = ''
|
|
976
|
+ that.form.medicalCare = ''
|
|
977
|
+ that.form.birthday = ''
|
|
978
|
+ that.form.age = ''
|
|
979
|
+ that.form.idCard = ''
|
|
980
|
+ that.form.register = ''
|
|
981
|
+ that.form.doctor = ''
|
|
982
|
+ that.form.department = ''
|
|
983
|
+ that.form.costChecked = false
|
|
984
|
+ that.form.registrationFee = ''
|
|
985
|
+ that.form.medicalExpenses = ''
|
|
986
|
+ that.form.cost = ''
|
|
987
|
+ that.form.total = ''
|
|
988
|
+ that.form.phone = ''
|
|
989
|
+ that.form.social_type = ''
|
970
|
990
|
that.loadingone = false
|
971
|
991
|
|
|
992
|
+
|
|
993
|
+ that.form.p_type = 14
|
|
994
|
+ that.form.sick_type = that.sick[0].id
|
|
995
|
+ that.form.diagnosis = that.diagnoses[0].id
|
|
996
|
+
|
972
|
997
|
}
|
973
|
998
|
}
|
974
|
999
|
})
|
975
|
1000
|
.catch(function(error) {
|
976
|
1001
|
|
977
|
1002
|
})
|
978
|
|
- } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
|
|
1003
|
+ } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538) {
|
979
|
1004
|
var that = this
|
980
|
1005
|
|
981
|
1006
|
axios.get('http://127.0.0.1:9532/api/register/get', {
|
|
@@ -991,14 +1016,36 @@
|
991
|
1016
|
that.$refs.register.hide()
|
992
|
1017
|
return false
|
993
|
1018
|
} else {
|
|
1019
|
+ that.loadingone = false
|
|
1020
|
+
|
994
|
1021
|
if (response.data.data.failed_code == -10) {
|
995
|
1022
|
that.$message.error(response.data.data.msg)
|
996
|
1023
|
return
|
997
|
1024
|
} else {
|
998
|
|
- that.$refs.register.hide()
|
999
|
|
- that.getPatientList()
|
1000
|
1025
|
that.$message({ message: '挂号成功', type: 'success' })
|
1001
|
|
- that.loadingone = false
|
|
1026
|
+ that.form.settlementValue = ''
|
|
1027
|
+ that.form.medicalInsuranceCard = ''
|
|
1028
|
+ that.form.name = ''
|
|
1029
|
+ that.form.sex = ''
|
|
1030
|
+ that.form.certificates = ''
|
|
1031
|
+ that.form.medicalCare = ''
|
|
1032
|
+ that.form.birthday = ''
|
|
1033
|
+ that.form.age = ''
|
|
1034
|
+ that.form.idCard = ''
|
|
1035
|
+ that.form.register = ''
|
|
1036
|
+ that.form.doctor = ''
|
|
1037
|
+ that.form.department = ''
|
|
1038
|
+ that.form.costChecked = false
|
|
1039
|
+ that.form.registrationFee = ''
|
|
1040
|
+ that.form.medicalExpenses = ''
|
|
1041
|
+ that.form.cost = ''
|
|
1042
|
+ that.form.total = ''
|
|
1043
|
+ that.form.phone = ''
|
|
1044
|
+ that.form.social_type = ''
|
|
1045
|
+
|
|
1046
|
+ that.form.p_type = 14
|
|
1047
|
+ that.form.sick_type = that.sick[0].id
|
|
1048
|
+ that.form.diagnosis = that.diagnoses[0].id
|
1002
|
1049
|
}
|
1003
|
1050
|
// var his_info = response.data.data.his_info
|
1004
|
1051
|
// that.hisPatientInfo = his_info
|
|
@@ -1012,26 +1059,32 @@
|
1012
|
1059
|
if (response.data.state == 1) {
|
1013
|
1060
|
var patient = response.data.data.patient
|
1014
|
1061
|
this.getTodaySchedulePatient()
|
1015
|
|
- this.$message.success('保存成功')
|
1016
|
|
- this.form.settlementValue = '',
|
1017
|
|
- this.form.medicalInsuranceCard = '',
|
1018
|
|
- this.form.name = '',
|
1019
|
|
- this.form.sex = '',
|
1020
|
|
- this.form.certificates = '',
|
1021
|
|
- this.form.medicalCare = '',
|
1022
|
|
- this.form.birthday = '',
|
1023
|
|
- this.form.age = '',
|
1024
|
|
- this.form.idCard = '',
|
1025
|
|
- this.form.register = '',
|
1026
|
|
- this.form.doctor = '',
|
1027
|
|
- this.form.department = '',
|
1028
|
|
- this.form.costChecked = false,
|
1029
|
|
- this.form.registrationFee = '',
|
1030
|
|
- this.form.medicalExpenses = '',
|
1031
|
|
- this.form.cost = '',
|
1032
|
|
- this.form.total = '' ,
|
1033
|
|
- this.form.phone = '',
|
1034
|
|
- this.form.social_type = ''
|
|
1062
|
+ that.$message({ message: '挂号成功', type: 'success' })
|
|
1063
|
+ that.form.settlementValue = ''
|
|
1064
|
+ that.form.medicalInsuranceCard = ''
|
|
1065
|
+ that.form.name = ''
|
|
1066
|
+ that.form.sex = ''
|
|
1067
|
+ that.form.certificates = ''
|
|
1068
|
+ that.form.medicalCare = ''
|
|
1069
|
+ that.form.birthday = ''
|
|
1070
|
+ that.form.age = ''
|
|
1071
|
+ that.form.idCard = ''
|
|
1072
|
+ that.form.register = ''
|
|
1073
|
+ that.form.doctor = ''
|
|
1074
|
+ that.form.department = ''
|
|
1075
|
+ that.form.costChecked = false
|
|
1076
|
+ that.form.registrationFee = ''
|
|
1077
|
+ that.form.medicalExpenses = ''
|
|
1078
|
+ that.form.cost = ''
|
|
1079
|
+ that.form.total = ''
|
|
1080
|
+ that.form.phone = ''
|
|
1081
|
+ that.form.social_type = ''
|
|
1082
|
+ that.loadingone = false
|
|
1083
|
+
|
|
1084
|
+ that.form.p_type = 14
|
|
1085
|
+ that.form.sick_type = that.sick[0].id
|
|
1086
|
+ that.form.diagnosis = that.diagnoses[0].id
|
|
1087
|
+
|
1035
|
1088
|
} else {
|
1036
|
1089
|
this.$message.error('今日患者已挂号!')
|
1037
|
1090
|
}
|
|
@@ -1169,15 +1222,35 @@
|
1169
|
1222
|
that.$refs.register.hide()
|
1170
|
1223
|
return false
|
1171
|
1224
|
} else {
|
|
1225
|
+ that.loadingone = false
|
|
1226
|
+
|
1172
|
1227
|
if (response.data.data.failed_code == -10) {
|
1173
|
1228
|
that.$message.error(response.data.data.msg)
|
1174
|
1229
|
} else {
|
1175
|
|
- that.$refs.register.hide()
|
1176
|
|
- that.getPatientList()
|
1177
|
1230
|
that.$message({ message: '挂号成功', type: 'success' })
|
1178
|
|
- that.loadingone = false
|
1179
|
|
- var his_info = response.data.data.his_info
|
1180
|
|
- that.hisPatientInfo = his_info
|
|
1231
|
+ that.form.settlementValue = ''
|
|
1232
|
+ that.form.medicalInsuranceCard = ''
|
|
1233
|
+ that.form.name = ''
|
|
1234
|
+ that.form.sex = ''
|
|
1235
|
+ that.form.certificates = ''
|
|
1236
|
+ that.form.medicalCare = ''
|
|
1237
|
+ that.form.birthday = ''
|
|
1238
|
+ that.form.age = ''
|
|
1239
|
+ that.form.idCard = ''
|
|
1240
|
+ that.form.register = ''
|
|
1241
|
+ that.form.doctor = ''
|
|
1242
|
+ that.form.department = ''
|
|
1243
|
+ that.form.costChecked = false
|
|
1244
|
+ that.form.registrationFee = ''
|
|
1245
|
+ that.form.medicalExpenses = ''
|
|
1246
|
+ that.form.cost = ''
|
|
1247
|
+ that.form.total = ''
|
|
1248
|
+ that.form.phone = ''
|
|
1249
|
+ that.form.social_type = ''
|
|
1250
|
+
|
|
1251
|
+ that.form.p_type = 14
|
|
1252
|
+ that.form.sick_type = that.sick[0].id
|
|
1253
|
+ that.form.diagnosis = that.diagnoses[0].id
|
1181
|
1254
|
|
1182
|
1255
|
}
|
1183
|
1256
|
|
|
@@ -1186,7 +1259,7 @@
|
1186
|
1259
|
.catch(function(error) {
|
1187
|
1260
|
|
1188
|
1261
|
})
|
1189
|
|
- } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
|
|
1262
|
+ } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538) {
|
1190
|
1263
|
var that = this
|
1191
|
1264
|
|
1192
|
1265
|
axios.get('http://127.0.0.1:9532/api/register/get', {
|
|
@@ -1199,15 +1272,37 @@
|
1199
|
1272
|
if (response.data.state == 0) {
|
1200
|
1273
|
that.$message.error(response.data.msg)
|
1201
|
1274
|
that.loadingone = false
|
1202
|
|
- that.$refs.register.hide()
|
1203
|
1275
|
return false
|
1204
|
1276
|
} else {
|
1205
|
|
- that.$refs.register.hide()
|
1206
|
|
- that.getPatientList()
|
1207
|
|
- that.$message({ message: '挂号成功', type: 'success' })
|
1208
|
1277
|
that.loadingone = false
|
1209
|
|
- var his_info = response.data.data.his_info
|
1210
|
|
- that.hisPatientInfo = his_info
|
|
1278
|
+ if (response.data.data.failed_code == -10) {
|
|
1279
|
+ that.$message.error(response.data.data.msg)
|
|
1280
|
+ } else {
|
|
1281
|
+ that.$message({ message: '挂号成功', type: 'success' })
|
|
1282
|
+ that.form.settlementValue = ''
|
|
1283
|
+ that.form.medicalInsuranceCard = ''
|
|
1284
|
+ that.form.name = ''
|
|
1285
|
+ that.form.sex = ''
|
|
1286
|
+ that.form.certificates = ''
|
|
1287
|
+ that.form.medicalCare = ''
|
|
1288
|
+ that.form.birthday = ''
|
|
1289
|
+ that.form.age = ''
|
|
1290
|
+ that.form.idCard = ''
|
|
1291
|
+ that.form.register = ''
|
|
1292
|
+ that.form.doctor = ''
|
|
1293
|
+ that.form.department = ''
|
|
1294
|
+ that.form.costChecked = false
|
|
1295
|
+ that.form.registrationFee = ''
|
|
1296
|
+ that.form.medicalExpenses = ''
|
|
1297
|
+ that.form.cost = ''
|
|
1298
|
+ that.form.total = ''
|
|
1299
|
+ that.form.phone = ''
|
|
1300
|
+ that.form.social_type = ''
|
|
1301
|
+
|
|
1302
|
+ that.form.p_type = 14
|
|
1303
|
+ that.form.sick_type = that.sick[0].id
|
|
1304
|
+ that.form.diagnosis = that.diagnoses[0].id
|
|
1305
|
+ }
|
1211
|
1306
|
}
|
1212
|
1307
|
})
|
1213
|
1308
|
.catch(function(error) {
|
|
@@ -1218,26 +1313,31 @@
|
1218
|
1313
|
if (response.data.state == 1) {
|
1219
|
1314
|
var patient = response.data.data.patient
|
1220
|
1315
|
this.getTodaySchedulePatient()
|
1221
|
|
- this.$message.success('保存成功')
|
1222
|
|
- this.form.settlementValue = '',
|
1223
|
|
- this.form.medicalInsuranceCard = '',
|
1224
|
|
- this.form.name = '',
|
1225
|
|
- this.form.sex = '',
|
1226
|
|
- this.form.certificates = '',
|
1227
|
|
- this.form.medicalCare = '',
|
1228
|
|
- this.form.birthday = '',
|
1229
|
|
- this.form.age = '',
|
1230
|
|
- this.form.idCard = '',
|
1231
|
|
- this.form.register = '',
|
1232
|
|
- this.form.doctor = '',
|
1233
|
|
- this.form.department = '',
|
1234
|
|
- this.form.costChecked = false,
|
1235
|
|
- this.form.registrationFee = '',
|
1236
|
|
- this.form.medicalExpenses = '',
|
1237
|
|
- this.form.cost = '',
|
1238
|
|
- this.form.total = '' ,
|
1239
|
|
- this.form.phone = '',
|
1240
|
|
- this.form.social_type = ''
|
|
1316
|
+ that.$message({ message: '挂号成功', type: 'success' })
|
|
1317
|
+ that.form.settlementValue = ''
|
|
1318
|
+ that.form.medicalInsuranceCard = ''
|
|
1319
|
+ that.form.name = ''
|
|
1320
|
+ that.form.sex = ''
|
|
1321
|
+ that.form.certificates = ''
|
|
1322
|
+ that.form.medicalCare = ''
|
|
1323
|
+ that.form.birthday = ''
|
|
1324
|
+ that.form.age = ''
|
|
1325
|
+ that.form.idCard = ''
|
|
1326
|
+ that.form.register = ''
|
|
1327
|
+ that.form.doctor = ''
|
|
1328
|
+ that.form.department = ''
|
|
1329
|
+ that.form.costChecked = false
|
|
1330
|
+ that.form.registrationFee = ''
|
|
1331
|
+ that.form.medicalExpenses = ''
|
|
1332
|
+ that.form.cost = ''
|
|
1333
|
+ that.form.total = ''
|
|
1334
|
+ that.form.phone = ''
|
|
1335
|
+ that.form.social_type = ''
|
|
1336
|
+ that.loadingone = false
|
|
1337
|
+
|
|
1338
|
+ that.form.p_type = 14
|
|
1339
|
+ that.form.sick_type = that.sick[0].id
|
|
1340
|
+ that.form.diagnosis = that.diagnoses[0].id
|
1241
|
1341
|
} else {
|
1242
|
1342
|
this.$message.error('今日患者已挂号!')
|
1243
|
1343
|
}
|