Bladeren bron

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

XMLWAN 4 jaren geleden
bovenliggende
commit
f0c3f0fd5f

+ 21 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Bestand weergeven

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

+ 3 - 3
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Bestand weergeven

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("项目删除后不可恢复,是否确认删除", "删除", {