|
@@ -243,9 +243,15 @@
|
|
style="width: 100%; display: flex; justify-content: flex-end"
|
|
style="width: 100%; display: flex; justify-content: flex-end"
|
|
v-if="!!$route.query.person && $route.query.person != '1'"
|
|
v-if="!!$route.query.person && $route.query.person != '1'"
|
|
>
|
|
>
|
|
- <a-button type="primary" @click="bfOk" :disabled="!disabledJudge||$route.query.person == '3'">部分通过</a-button>
|
|
|
|
- <a-button type="primary" @click="refuse" style="margin: 0 15px" :disabled="$route.query.person == '3'">审核拒绝</a-button>
|
|
|
|
- <a-button type="primary" @click="allOk" :disabled="disabledJudge||$route.query.person == '3'">审核通过</a-button>
|
|
|
|
|
|
+ <a-button type="primary" @click="bfOk" :disabled="!disabledJudge || $route.query.person == '3'"
|
|
|
|
+ >部分通过</a-button
|
|
|
|
+ >
|
|
|
|
+ <a-button type="primary" @click="refuse" style="margin: 0 15px" :disabled="$route.query.person == '3'"
|
|
|
|
+ >审核拒绝</a-button
|
|
|
|
+ >
|
|
|
|
+ <a-button type="primary" @click="allOk" :disabled="disabledJudge || $route.query.person == '3'"
|
|
|
|
+ >审核通过</a-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -494,7 +500,16 @@ export default {
|
|
uploadFile,
|
|
uploadFile,
|
|
JCodeEditor,
|
|
JCodeEditor,
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
|
|
+ created() {},
|
|
|
|
+ computed: {
|
|
|
|
+ disabledJudge() {
|
|
|
|
+ var index = this.expenseList.findIndex((item) => {
|
|
|
|
+ return item.status == '0'
|
|
|
|
+ })
|
|
|
|
+ return index > -1 ? true : false
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
this.getCompanyList()
|
|
this.getCompanyList()
|
|
this.getProjectList()
|
|
this.getProjectList()
|
|
let editRecordId = this.$route.query.id
|
|
let editRecordId = this.$route.query.id
|
|
@@ -502,17 +517,9 @@ export default {
|
|
if (editRecordId) {
|
|
if (editRecordId) {
|
|
this.getDetail(editRecordId)
|
|
this.getDetail(editRecordId)
|
|
} else {
|
|
} else {
|
|
|
|
+ this.form.setFieldsValue(pick(this.userInfo(), 'departId'))
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- computed: {
|
|
|
|
- disabledJudge() {
|
|
|
|
- var index = this.expenseList.findIndex((item) => {
|
|
|
|
- return item.status == '0'
|
|
|
|
- })
|
|
|
|
- return index > -1 ? true : false
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- mounted() {},
|
|
|
|
methods: {
|
|
methods: {
|
|
...mapGetters(['userInfo']),
|
|
...mapGetters(['userInfo']),
|
|
moment,
|
|
moment,
|
|
@@ -561,16 +568,14 @@ export default {
|
|
//获取公司列表
|
|
//获取公司列表
|
|
getCompanyList() {
|
|
getCompanyList() {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
- this.getAction('/reimburse/apply/getCompanyList').then(
|
|
|
|
- (res) => {
|
|
|
|
- if (res.success) {
|
|
|
|
- this.dataDimensionList = res.result
|
|
|
|
- resolve(res.result)
|
|
|
|
- } else {
|
|
|
|
- reject(res.message)
|
|
|
|
- }
|
|
|
|
|
|
+ this.getAction('/reimburse/apply/getCompanyList').then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.dataDimensionList = res.result
|
|
|
|
+ resolve(res.result)
|
|
|
|
+ } else {
|
|
|
|
+ reject(res.message)
|
|
}
|
|
}
|
|
- )
|
|
|
|
|
|
+ })
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//获取报销项目
|
|
//获取报销项目
|
|
@@ -700,11 +705,17 @@ export default {
|
|
params.id = this.$route.query.id
|
|
params.id = this.$route.query.id
|
|
this.postDataAction('/reimburse/apply/edit', params).then((res) => {
|
|
this.postDataAction('/reimburse/apply/edit', params).then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
|
|
+ this.$message.success(res.message)
|
|
|
|
+ }else {
|
|
|
|
+ this.$message.error(res.message)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
this.postDataAction('/reimburse/apply/add', params).then((res) => {
|
|
this.postDataAction('/reimburse/apply/add', params).then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
|
|
+ this.$message.success(res.message)
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.message)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -735,7 +746,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
refuse() {
|
|
refuse() {
|
|
- var params ={}
|
|
|
|
|
|
+ var params = {}
|
|
params.loginId = this.userInfo().id
|
|
params.loginId = this.userInfo().id
|
|
params.userId = this.lookData.userId
|
|
params.userId = this.lookData.userId
|
|
params.id = this.$route.query.id
|
|
params.id = this.$route.query.id
|
|
@@ -749,7 +760,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
bfOk() {
|
|
bfOk() {
|
|
- var params ={}
|
|
|
|
|
|
+ var params = {}
|
|
params.loginId = this.userInfo().id
|
|
params.loginId = this.userInfo().id
|
|
params.userId = this.lookData.userId
|
|
params.userId = this.lookData.userId
|
|
params.id = this.$route.query.id
|
|
params.id = this.$route.query.id
|
|
@@ -763,7 +774,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
allOk() {
|
|
allOk() {
|
|
- var params ={}
|
|
|
|
|
|
+ var params = {}
|
|
params.loginId = this.userInfo().id
|
|
params.loginId = this.userInfo().id
|
|
params.userId = this.lookData.userId
|
|
params.userId = this.lookData.userId
|
|
params.id = this.$route.query.id
|
|
params.id = this.$route.query.id
|