|
|
@ -832,6 +832,8 @@ import VerifyFunc from '@/utils/verify'
|
|
|
|
import { getTreeIds, findAreaIdName } from '@/utils'
|
|
|
|
import { getTreeIds, findAreaIdName } from '@/utils'
|
|
|
|
import { getExpenseApplyMyPage } from '@/api/bs/expenseApply'
|
|
|
|
import { getExpenseApplyMyPage } from '@/api/bs/expenseApply'
|
|
|
|
import { Dialog } from 'vant'
|
|
|
|
import { Dialog } from 'vant'
|
|
|
|
|
|
|
|
import { getAreaTree } from '@/api/system/area'
|
|
|
|
|
|
|
|
import { handleAreaLoop } from '@/utils'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
//import引入组件才能使用
|
|
|
|
//import引入组件才能使用
|
|
|
|
props: {},
|
|
|
|
props: {},
|
|
|
@ -850,11 +852,13 @@ export default {
|
|
|
|
this.handleInitList().then(() => {
|
|
|
|
this.handleInitList().then(() => {
|
|
|
|
this.handleInitForm()
|
|
|
|
this.handleInitForm()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
this.getTree()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 生命周期:挂载完成时(可以访问DOM元素)
|
|
|
|
// 生命周期:挂载完成时(可以访问DOM元素)
|
|
|
|
mounted() {},
|
|
|
|
mounted() {},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
areaTree: [],
|
|
|
|
indexOne: 1,
|
|
|
|
indexOne: 1,
|
|
|
|
indexTwo: 1,
|
|
|
|
indexTwo: 1,
|
|
|
|
claimType: '',
|
|
|
|
claimType: '',
|
|
|
@ -955,9 +959,9 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return arr
|
|
|
|
return arr
|
|
|
|
},
|
|
|
|
},
|
|
|
|
areaTree() {
|
|
|
|
/* areaTree() {
|
|
|
|
return this.$store.getters.areaTree
|
|
|
|
return this.$store.getters.areaTree
|
|
|
|
},
|
|
|
|
}, */
|
|
|
|
userDeptTree() {
|
|
|
|
userDeptTree() {
|
|
|
|
return this.$store.getters.userDeptTree
|
|
|
|
return this.$store.getters.userDeptTree
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -984,6 +988,13 @@ export default {
|
|
|
|
watch: {},
|
|
|
|
watch: {},
|
|
|
|
// 方法集合
|
|
|
|
// 方法集合
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
getTree() {
|
|
|
|
|
|
|
|
getAreaTree().then((res) => {
|
|
|
|
|
|
|
|
let tree = res.data || []
|
|
|
|
|
|
|
|
handleAreaLoop(tree)
|
|
|
|
|
|
|
|
this.areaTree = tree
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
handleCountAmount(list) {
|
|
|
|
handleCountAmount(list) {
|
|
|
|
// 判断是否有成功
|
|
|
|
// 判断是否有成功
|
|
|
|
let res = (list || []).filter((item) => item.feeManageAmount)
|
|
|
|
let res = (list || []).filter((item) => item.feeManageAmount)
|
|
|
|