|
@@ -382,9 +382,9 @@
|
382
|
382
|
{value: 11, label: "普通门诊"},
|
383
|
383
|
{value: 12, label: '门诊挂号'},
|
384
|
384
|
{value: 13, label: "急诊"},
|
385
|
|
- {value: 14, label: "门诊慢性病"},
|
|
385
|
+ {value: 14, label: "门诊特殊病"},
|
386
|
386
|
{value: 15, label: "门诊统筹"},
|
387
|
|
- {value: 16, label: "门诊特殊病"},
|
|
387
|
+ {value: 16, label: "门诊慢性病"},
|
388
|
388
|
{value: 21, label: "普通住院"},
|
389
|
389
|
|
390
|
390
|
],
|
|
@@ -453,6 +453,22 @@
|
453
|
453
|
this.prescriptions = []
|
454
|
454
|
this.prescriptions = val
|
455
|
455
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
|
456
|
+ var nowDate = new Date()
|
|
457
|
+ var nowYear = nowDate.getFullYear()
|
|
458
|
+ var nowMonth = nowDate.getMonth() + 1
|
|
459
|
+ var nowDay = nowDate.getDate()
|
|
460
|
+
|
|
461
|
+ var hours = nowDate.getHours()
|
|
462
|
+ var min = nowDate.getMinutes()
|
|
463
|
+
|
|
464
|
+ var nowTime =
|
|
465
|
+ nowYear +
|
|
466
|
+ '-' +
|
|
467
|
+ (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
|
|
468
|
+ '-' +
|
|
469
|
+ (nowDay < 10 ? '0' + nowDay : nowDay) + " "+(hours < 10 ? '0' + hours : hours) +
|
|
470
|
+ ':' + (min < 10 ? '0' + min : min)
|
|
471
|
+ this.prescriptions[i]['pre_time'] = nowTime
|
456
|
472
|
this.prescriptions[i].name = "处方" + (i + 1)
|
457
|
473
|
if (i == 0) {
|
458
|
474
|
if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
|
|
@@ -1057,7 +1073,7 @@
|
1057
|
1073
|
|
1058
|
1074
|
},
|
1059
|
1075
|
addTab(targetName) {
|
1060
|
|
- if (this.curPrescriptions.order_status >= 2) {
|
|
1076
|
+ if (this.curPrescriptions.order_status == 2) {
|
1061
|
1077
|
this.$message.error('该处方已经结算或者退费,无法继续添加处方')
|
1062
|
1078
|
return
|
1063
|
1079
|
}
|
|
@@ -1282,8 +1298,8 @@
|
1282
|
1298
|
this.curDrugs = selection
|
1283
|
1299
|
},
|
1284
|
1300
|
comfirm() {
|
1285
|
|
- if (this.curPrescriptions.order_status >= 2) {
|
1286
|
|
- this.$message.error('该处方已经结算或者退费,无法继续添加药品或者项目')
|
|
1301
|
+ if (this.curPrescriptions.order_status == 2) {
|
|
1302
|
+ this.$message.error('该处方已经结算,无法继续添加药品或者项目')
|
1287
|
1303
|
this.teamList = []
|
1288
|
1304
|
this.curDrugs = []
|
1289
|
1305
|
this.tempDrugs = []
|