Browse Source

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

csx 4 years ago
parent
commit
2c00f660e2

+ 21 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -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 = []

+ 3 - 3
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

@@ -221,7 +221,7 @@
221 221
      },
222 222
      delAddition(index, addition){
223 223
        if(this.prescription.order_status == 2){
224
-         this.$message.error('该处方已经结算或者退费,无法删除')
224
+         this.$message.error('该处方已经结算,无法删除')
225 225
          return
226 226
        }
227 227
        this.$confirm("附加费删除后不可恢复,是否确认删除", "删除", {
@@ -267,7 +267,7 @@
267 267
 
268 268
       },deleteDrug:function(index, row){
269 269
        if(this.prescription.order_status == 2){
270
-         this.$message.error('该处方已经结算或者退费,无法删除')
270
+         this.$message.error('该处方已经结算,无法删除')
271 271
          return
272 272
        }
273 273
        this.$confirm("药品删除后不可恢复,是否确认删除", "删除", {
@@ -343,7 +343,7 @@
343 343
       },
344 344
       deleteProject(row,i){
345 345
         if(this.prescription.order_status == 2){
346
-          this.$message.error('该处方已经结算或者退费,无法删除')
346
+          this.$message.error('该处方已经结算,无法删除')
347 347
           return
348 348
         }
349 349
         this.$confirm("项目删除后不可恢复,是否确认删除", "删除", {