Browse Source

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

XMLWAN 4 years ago
parent
commit
f0c3f0fd5f

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

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