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
           {value: 11, label: "普通门诊"},
382
           {value: 11, label: "普通门诊"},
383
           {value: 12, label: '门诊挂号'},
383
           {value: 12, label: '门诊挂号'},
384
           {value: 13, label: "急诊"},
384
           {value: 13, label: "急诊"},
385
-          {value: 14, label: "门诊慢性病"},
385
+          {value: 14, label: "门诊特殊病"},
386
           {value: 15, label: "门诊统筹"},
386
           {value: 15, label: "门诊统筹"},
387
-          {value: 16, label: "门诊特殊病"},
387
+          {value: 16, label: "门诊慢性病"},
388
           {value: 21, label: "普通住院"},
388
           {value: 21, label: "普通住院"},
389
 
389
 
390
         ],
390
         ],
453
         this.prescriptions = []
453
         this.prescriptions = []
454
         this.prescriptions = val
454
         this.prescriptions = val
455
         for (let i = 0; i < this.prescriptions.length; i++) {
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
           this.prescriptions[i].name = "处方" + (i + 1)
472
           this.prescriptions[i].name = "处方" + (i + 1)
457
           if (i == 0) {
473
           if (i == 0) {
458
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
474
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1057
 
1073
 
1058
       },
1074
       },
1059
       addTab(targetName) {
1075
       addTab(targetName) {
1060
-        if (this.curPrescriptions.order_status >= 2) {
1076
+        if (this.curPrescriptions.order_status == 2) {
1061
           this.$message.error('该处方已经结算或者退费,无法继续添加处方')
1077
           this.$message.error('该处方已经结算或者退费,无法继续添加处方')
1062
           return
1078
           return
1063
         }
1079
         }
1282
         this.curDrugs = selection
1298
         this.curDrugs = selection
1283
       },
1299
       },
1284
       comfirm() {
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
           this.teamList = []
1303
           this.teamList = []
1288
           this.curDrugs = []
1304
           this.curDrugs = []
1289
           this.tempDrugs = []
1305
           this.tempDrugs = []

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

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