فهرست منبع

报销打开已提交数据时,根据报销类型展示新增按钮

huangguoce 2 هفته پیش
والد
کامیت
9bfaa818e1
1فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 10 0
      src/views/common/reimbursement/ReimbursementComponent.vue

+ 10 - 0
src/views/common/reimbursement/ReimbursementComponent.vue

@@ -1626,6 +1626,7 @@ export default {
             if (this.commonJS.isNotEmpty(inputForm)) {
                 this.inputForm = inputForm
             }
+
             if (this.commonJS.isNotEmpty(isConfirm)) {
                 const currentUserId = this.$store.state.user.id
                 const creatorId = this.inputForm.createById || this.inputForm.userId
@@ -1638,6 +1639,15 @@ export default {
                 this.status = status
             }
 
+            this.handleTableInfo(this.inputForm.sourceType)
+            this.$nextTick(() => {
+                if (this.tableData && this.tableData.length > 0) {
+                    if (this.tableData[0].typeName == '业务操作奖' || this.tableData[0].typeName == '业务差旅费') {
+                        this.insertBtn = true
+                    }
+                }
+            })
+
         },
         // 删除
         removeEvent(row, rowIndex, type) {