|
@@ -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)
|
|
|
// 非业务报销
|