Parcourir la source

评估报销 报销项目无法选择,评估报销成功后 状态未改变 修改

wangqiang il y a 2 ans
Parent
commit
503a2eb2a2
1 fichiers modifiés avec 13 ajouts et 7 suppressions
  1. 13 7
      src/views/modules/reimbursement/info/ReimbursementForm.vue

+ 13 - 7
src/views/modules/reimbursement/info/ReimbursementForm.vue

@@ -180,6 +180,7 @@
 </template>
 
 <script>
+  import ReimbursementApprovalTypeService from '@/api/cw/reimbursementApproval/ReimbursementApprovalTypeService'
   import ReimbursementService from '@/api/sys/ReimbursementService'
   import ReimbursementTypeService from '@/api/sys/ReimbursementTypeService'
   import UpLoadComponent from '@/views/common/UpLoadComponent'
@@ -211,10 +212,12 @@
         }
       }
     },
+    reimbursementApprovalTypeService: null,
     reimbursementService: null,
     reimbursementTypeService: null,
     userService: null,
     created () {
+      this.reimbursementApprovalTypeService = new ReimbursementApprovalTypeService()
       this.reimbursementService = new ReimbursementService()
       this.inputForm.userId = this.userId
       this.inputForm.userName = this.name
@@ -458,11 +461,12 @@
               this.inputForm.files = []
             }
             this.inputForm.files = this.$refs.uploadComponent.getDataList()
-            await this.userService.is().then(({data}) => {
-              if (data) {
-                this.inputForm.type = '5'
-              }
-            })
+            // await this.userService.is().then(({data}) => {
+            //   if (data) {
+            //     this.inputForm.type = '5'
+            //   }
+            // })
+            this.inputForm.type = '5'
             this.reimbursementService.save(this.inputForm).then(({data}) => {
               callback(data.businessTable, data.businessId, this.inputForm)
               this.loading = false
@@ -546,12 +550,14 @@
       },
       openProgramPageForm (rowIndex, row) {
         if (this.commonJS.isEmpty(row.typeName)) {
-          this.$message.error('请选择报销项目')
+          this.$message.error('请选择报销类型')
           return
         }
+        console.log('row', row)
         this.indexRow = rowIndex
-        this.reimbursementTypeService.findById(row.typeId).then(({data}) => {
+        this.reimbursementApprovalTypeService.findById(row.typeId).then(({data}) => {
           console.log('typeInfo', data.sort)
+          console.log('data', data)
           let i = data.sort.toString()
           i = i.substring(0, 1)
           // 非业务报销