Selaa lähdekoodia

发票确认处理

huangguoce 1 kuukausi sitten
vanhempi
commit
d27b9c0d8a
1 muutettua tiedostoa jossa 3 lisäystä ja 6 poistoa
  1. 3 6
      src/views/common/reimbursement/ReimbursementComponent.vue

+ 3 - 6
src/views/common/reimbursement/ReimbursementComponent.vue

@@ -1522,10 +1522,11 @@ export default {
                 this.inputForm = inputForm
             }
             if (this.commonJS.isNotEmpty(isConfirm)) {
-                if (this.inputForm.userId == this.$store.state.user.id) {
+                const currentUserId = this.$store.state.user.id
+                const creatorId = this.inputForm.createById || this.inputForm.userId
+                if (isConfirm !== 1 && creatorId == currentUserId) {
                     isConfirm = 4
                 }
-
                 this.isConfirm = isConfirm
             }
             if (this.commonJS.isNotEmpty(status)) {
@@ -2647,8 +2648,6 @@ export default {
                 if (item.uniqueId == uniqueId) {
                     if (item.number) {
                         item.number = (parseFloat(item.number) - parseFloat(row.count)).toFixed(2)
-                        console.log(item.number);
-
                         // this.handleOrdinaryNumberInput(item, 1)
                     }
 
@@ -2759,8 +2758,6 @@ export default {
                         }
                     })
                     numberCount = numberCount.toFixed(2)
-                    console.log(numberCount);
-                    console.log(row.number);
                     if (Number(numberCount) > 0 && Number(row.number) > Number(numberCount)) {
 
                         row.number = 0