Przeglądaj źródła

配合申请

master
YF-yuan 3 lat temu
rodzic
commit
a9f4c4d5a4
5 zmienionych plików z 301 dodań i 103 usunięć
  1. +1
    -0
      src/api/second/coordinationManage/applyCooperation.js
  2. +6
    -4
      src/api/second/coordinationManage/approvalCooperation.js
  3. +90
    -31
      src/views/second/coordinationManage/approvalCooperation/basicTarget.vue
  4. +97
    -29
      src/views/second/coordinationManage/approvalCooperation/constraint.vue
  5. +107
    -39
      src/views/second/coordinationManage/approvalCooperation/reward.vue

+ 1
- 0
src/api/second/coordinationManage/applyCooperation.js Wyświetl plik

applyCooperate(params) { applyCooperate(params) {
return axios.post('/cooperateapply/cooperateDept', params) return axios.post('/cooperateapply/cooperateDept', params)
} }
} }

+ 6
- 4
src/api/second/coordinationManage/approvalCooperation.js Wyświetl plik

import axios from "@/config/axios" import axios from "@/config/axios"
export default { export default {
getBasicDataList(params) { getBasicDataList(params) {
return axios.post('/cooperateapply/getBasicTaskCheckApplyList', params)
return axios.get('/cooperateapply/getBasicTaskCheckApplyList', {params})
}, },
getRewardDataList(params) { getRewardDataList(params) {
return axios.post('/cooperateapply/getSpecialPowerCheckApplyList', params)
return axios.get('/cooperateapply/getSpecialPowerCheckApplyList', {params})
}, },
getConstraintDataList(params) { getConstraintDataList(params) {
return axios.post('/cooperateapply/getRigidityConstraintCheckApplyList', params)
return axios.get('/cooperateapply/getRigidityConstraintCheckApplyList', {params})
}, },

editItem(params){
return axios.put('/cooperateapply/checkApply',params)
}
} }

+ 90
- 31
src/views/second/coordinationManage/approvalCooperation/basicTarget.vue Wyświetl plik

<template> <template>
<div class="basic-target" v-loading="loading"> <div class="basic-target" v-loading="loading">
<search :type="1" />
<search :type="1" @search:task="updateParams($event)"/>
<el-table <el-table
:data="dataList" :data="dataList"
border border
<el-table-column <el-table-column
label="申请部门" label="申请部门"
align="center" align="center"
min-width="150"
width="150"
prop="applyDeptName"
></el-table-column ></el-table-column
><el-table-column ><el-table-column
label="申请时间" label="申请时间"
align="center" align="center"
min-width="150"
width="120"
prop="createTime"
></el-table-column ></el-table-column
><el-table-column ><el-table-column
label="申请理由" label="申请理由"
align="center" align="center"
min-width="150"
width="100"
prop="note"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="一级指标" label="一级指标"
min-width="80"
width="100"
align="center" align="center"
prop="quota1" prop="quota1"
></el-table-column> ></el-table-column>


<el-table-column <el-table-column
label="二级指标" label="二级指标"
min-width="80"
width="120"
align="center" align="center"
prop="quota2" prop="quota2"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="考核内容和计分细则" label="考核内容和计分细则"
align="center" align="center"
min-width="400"
width="400"
prop="content" prop="content"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="小条内容" label="小条内容"
align="center" align="center"
min-width="150"
prop="content"
width="220"
prop="itemContent"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="分值" label="分值"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column> ></el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center">
<el-table-column label="牵头部门" width="120" align="center" prop="leaderDeptList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="责任领导" width="80" align="center">
<el-table-column label="责任领导" width="80" align="center" prop="leaderPrincipalList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre> <pre>{{ row.leaderPrincipalList | formatList }}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="牵头部门" min-width="80" align="center">
<el-table-column label="其他牵头部门" width="120" align="center" prop="otherDeptList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span><pre>{{ row.otherDeptList | formatList }}</pre></span>
</template> </template>
</el-table-column> </el-table-column>


<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center" prop="otherPrincipalList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre>
<pre>{{ row.otherPrincipalList | formatList }}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="配合部门" min-width="80" align="center">
<el-table-column label="配合部门" width="100" align="center" prop="cooperateDeptList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span><pre>{{ row.cooperateDeptList | formatList }}</pre></span>
</template> </template>
</el-table-column> </el-table-column>


<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center" prop="cooperatePrincipalList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre>
<pre>{{ row.cooperatePrincipalList | formatList }}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="125" align="center"> <el-table-column label="操作" width="125" align="center">
<el-link @click="edit(true)" type="primary" :underline="false"
>同意</el-link
>
<el-link @click="edit(false)" type="primary" :underline="false"
>不同意</el-link
>
<template slot-scope="{ row }">
<el-link @click="edit(row, true)" type="primary" :underline="false"
:disabled="judge(row)"
>同意</el-link
>
<el-link @click="edit(row, false)" type="primary" :underline="false"
:disabled="judge(row)"
>不同意</el-link
>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
<script> <script>
import search from "../../search"; import search from "../../search";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import api from '@/api/second/coordinationManage/approvalCooperation'
export default { export default {
components: { components: {
search, search,
}, },
data() { data() {
return { return {
dataList: [[]],
searchParams: {},
dataList: [],
tableHeight: document.documentElement.clientHeight - 305, tableHeight: document.documentElement.clientHeight - 305,
page: { page: {
page: 1, page: 1,
}; };
}, },
computed: { computed: {
...mapGetters(['user']),
...mapGetters(['formatDep','user']),
}, },
created() { created() {
this.getDataList() this.getDataList()
}, },
methods: { methods: {
judge(row) {
if(row.status == 0) {
return false
} else if (row.status == 1 || row.status == 2) {
return true
}
},
updateParams(data) {
this.searchParams = data;
this.resetCurrentPage();
this.getDataList();
},
resetCurrentPage() {
let page = this.page;
page.page = 1;
this.page = page;
},
getDataList() { getDataList() {
console.log(this.user.user.deptId);
this.searchParams.leaderDept = this.user.user.deptId
api.getBasicDataList(Object.assign({}, this.page, this.searchParams)).then((res)=>{
let data = res.data.data;
this.count = data.total;
this.dataList = data.records;
}).catch((e)=>{
this.dataList = [];
this.count = 0;
}).finally(()=>{
this.loading = false
})
}, },
edit(flag) {
edit(row, flag) {
this.showEdit = true; this.showEdit = true;
this.form.type = 1
this.form.id = row.id
this.form.itemId = row.id
this.form.leaderDept = row.leaderDept
this.form.cooperateDept = row.cooperateDept
if (flag) { if (flag) {
this.form.status = 1
this.warning = { this.warning = {
title: "确定同意此申请?", title: "确定同意此申请?",
info: "点击确定后,该部门将添加至考核任务配合部门中", info: "点击确定后,该部门将添加至考核任务配合部门中",
};
};
} else { } else {
this.form.status = 2
this.warning = { this.warning = {
title: "确定不同意此申请?", title: "确定不同意此申请?",
info: info:
}; };
} }
}, },
save() {},
save() {
api.editItem(Object.assign({}, this.form)).then((res)=>{
this.showEdit = false;
this.$message({
type: "success",
message: "提交成功",
})
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交失败",
});
});
},
}, },
filters: { filters: {
formatList(val) { formatList(val) {

+ 97
- 29
src/views/second/coordinationManage/approvalCooperation/constraint.vue Wyświetl plik

<template> <template>
<div class="constraint" v-loading="loading"> <div class="constraint" v-loading="loading">
<search :type="3" />
<search :type="3" @search:task="updateParams($event)"/>
<el-table <el-table
:data="dataList" :data="dataList"
border border
<el-table-column <el-table-column
label="申请部门" label="申请部门"
align="center" align="center"
min-width="150"
width="150"
prop="applyDeptName"
></el-table-column ></el-table-column
><el-table-column ><el-table-column
label="申请时间" label="申请时间"
align="center" align="center"
min-width="150"
width="120"
prop="createTime"
></el-table-column ></el-table-column
><el-table-column ><el-table-column
label="申请理由" label="申请理由"
align="center" align="center"
min-width="150"
width="100"
prop="note"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="考核指标" label="考核指标"
min-width="80"
width="100"
align="center" align="center"
prop="quota" prop="quota"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="考核内容和计分细则" label="考核内容和计分细则"
align="center" align="center"
min-width="400"
width="400"
prop="content" prop="content"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="小条内容" label="小条内容"
align="center" align="center"
min-width="150"
prop="content"
width="220"
prop="itemContent"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="分值" label="分值"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column> ></el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center">
<el-table-column label="牵头部门" width="120" align="center" prop="leaderDeptList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="责任领导" width="80" align="center">
<el-table-column label="责任领导" width="80" align="center" prop="leaderPrincipalList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre> <pre>{{ row.leaderPrincipalList | formatList }}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="牵头部门" min-width="80" align="center">
<el-table-column label="其他牵头部门" width="120" align="center" prop="otherDeptList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span><pre>{{ row.otherDeptList | formatList }}</pre></span>
</template> </template>
</el-table-column> </el-table-column>


<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center" prop="otherPrincipalList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre>
<pre>{{ row.otherPrincipalList | formatList }}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="配合部门" min-width="80" align="center">
<el-table-column label="配合部门" width="100" align="center" prop="cooperateDeptList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span><pre>{{ row.cooperateDeptList | formatList }}</pre></span>
</template> </template>
</el-table-column> </el-table-column>


<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center" prop="cooperatePrincipalList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre>
<pre>{{ row.cooperatePrincipalList | formatList }}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="125" align="center"> <el-table-column label="操作" width="125" align="center">
<el-link @click="edit(true)" type="primary" :underline="false"
>同意</el-link
>
<el-link @click="edit(false)" type="primary" :underline="false"
>不同意</el-link
>
<template slot-scope="{ row }">
<el-link @click="edit(row, true)" type="primary" :underline="false"
:disabled="judge(row)"
>同意</el-link
>
<el-link @click="edit(row, false)" type="primary" :underline="false"
:disabled="judge(row)"
>不同意</el-link
>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination


<script> <script>
import search from "../../search"; import search from "../../search";
import { mapGetters } from "vuex";
import api from '@/api/second/coordinationManage/approvalCooperation'
export default { export default {
components: { components: {
search, search,
}, },
data() { data() {
return { return {
dataList: [[]],
searchParams: {},
dataList: [],
tableHeight: document.documentElement.clientHeight - 305, tableHeight: document.documentElement.clientHeight - 305,
page: { page: {
page: 1, page: 1,
}, },
}; };
}, },
computed: {
...mapGetters(['formatDep','user']),
},
created() {
this.getDataList()
},
methods: { methods: {
getDataList() {},
edit(flag) {
judge(row) {
if(row.status == 0) {
return false
} else if (row.status == 1 || row.status == 2) {
return true
}
},
updateParams(data) {
this.searchParams = data;
this.resetCurrentPage();
this.getDataList();
},
resetCurrentPage() {
let page = this.page;
page.page = 1;
this.page = page;
},
getDataList() {
this.searchParams.leaderDept = this.user.user.deptId
api.getConstraintDataList(Object.assign({}, this.page, this.searchParams)).then((res)=>{
let data = res.data.data;
this.count = data.total;
this.dataList = data.records;
}).catch((e)=>{
this.dataList = [];
this.count = 0;
}).finally(()=>{
this.loading = false
})
},
edit(row, flag) {
this.showEdit = true; this.showEdit = true;
this.form.type = 3
this.form.id = row.id
this.form.itemId = row.id
this.form.leaderDept = row.leaderDept
this.form.cooperateDept = row.cooperateDept
if (flag) { if (flag) {
this.form.status = 1
this.warning = { this.warning = {
title: "确定同意此申请?", title: "确定同意此申请?",
info: "点击确定后,该部门将添加至考核任务配合部门中", info: "点击确定后,该部门将添加至考核任务配合部门中",
};
};
} else { } else {
this.form.status = 2
this.warning = { this.warning = {
title: "确定不同意此申请?", title: "确定不同意此申请?",
info: info:
}; };
} }
}, },
save() {},
save() {
api.editItem(Object.assign({}, this.form)).then((res)=>{
this.showEdit = false;
this.$message({
type: "success",
message: "提交成功",
})
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交失败",
});
});
},
}, },
filters: { filters: {
formatList(val) { formatList(val) {

+ 107
- 39
src/views/second/coordinationManage/approvalCooperation/reward.vue Wyświetl plik

<template> <template>
<div class="reward" v-loading="loading"> <div class="reward" v-loading="loading">
<search :type="2" />
<search :type="2" @search:task="updateParams($event)"/>
<el-table <el-table
:data="dataList" :data="dataList"
border border
:height="tableHeight" :height="tableHeight"
ref="table" ref="table"
> >
<el-table-column type="index" label="序号" align="center" width="50">
<el-table-column type="index" label="序号" align="center" width="50">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="申请部门" label="申请部门"
align="center" align="center"
min-width="150"
width="150"
prop="applyDeptName"
></el-table-column ></el-table-column
><el-table-column ><el-table-column
label="申请时间" label="申请时间"
align="center" align="center"
min-width="150"
width="120"
prop="createTime"
></el-table-column ></el-table-column
><el-table-column ><el-table-column
label="申请理由" label="申请理由"
align="center" align="center"
min-width="150"
width="100"
prop="note"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="一级指标" label="一级指标"
min-width="80"
width="100"
align="center" align="center"
prop="quota1" prop="quota1"
></el-table-column> ></el-table-column>


<el-table-column <el-table-column
label="二级指标" label="二级指标"
min-width="80"
width="120"
align="center" align="center"
prop="quota2" prop="quota2"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="考核内容和计分细则" label="考核内容和计分细则"
align="center" align="center"
min-width="400"
width="400"
prop="content" prop="content"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="小条内容" label="小条内容"
align="center" align="center"
min-width="150"
prop="content"
width="220"
prop="itemContent"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="分值" label="分值"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column> ></el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center">
<el-table-column label="牵头部门" width="120" align="center" prop="leaderDeptList">
<template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre>
</template>
</el-table-column>
<el-table-column label="责任领导" width="80" align="center" prop="leaderPrincipalList">
<template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre>
</template>
</el-table-column>
<el-table-column label="其他牵头部门" width="120" align="center" prop="otherDeptList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre>
</template>
</el-table-column>
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre>
</template>
</el-table-column>
<el-table-column label="牵头部门" min-width="80" align="center">
<template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span><pre>{{ row.otherDeptList | formatList }}</pre></span>
</template> </template>
</el-table-column> </el-table-column>


<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center" prop="otherPrincipalList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre>
<pre>{{ row.otherPrincipalList | formatList }}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="配合部门" min-width="80" align="center">
<el-table-column label="配合部门" width="100" align="center" prop="cooperateDeptList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span><pre>{{ row.cooperateDeptList | formatList }}</pre></span>
</template> </template>
</el-table-column> </el-table-column>


<el-table-column label="责任领导" min-width="80" align="center">
<el-table-column label="责任领导" width="80" align="center" prop="cooperatePrincipalList">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre>
<pre>{{ row.cooperatePrincipalList | formatList }}</pre>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="125" align="center"> <el-table-column label="操作" width="125" align="center">
<el-link @click="edit(true)" type="primary" :underline="false"
>同意</el-link
>
<el-link @click="edit(false)" type="primary" :underline="false"
>不同意</el-link
>
<template slot-scope="{ row }">
<el-link @click="edit(row, true)" type="primary" :underline="false"
:disabled="judge(row)"
>同意</el-link
>
<el-link @click="edit(row, false)" type="primary" :underline="false"
:disabled="judge(row)"
>不同意</el-link
>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination


<script> <script>
import search from "../../search"; import search from "../../search";
import { mapGetters } from "vuex";
import api from '@/api/second/coordinationManage/approvalCooperation'
export default { export default {
components: { components: {
search, search,
}, },
data() { data() {
return { return {
dataList: [[]],
searchParams: {},
dataList: [],
tableHeight: document.documentElement.clientHeight - 305, tableHeight: document.documentElement.clientHeight - 305,
page: { page: {
page: 1, page: 1,
}, },
}; };
}, },
computed: {
...mapGetters(['formatDep','user']),
},
created() {
this.getDataList()
},
methods: { methods: {
getDataList() {},
edit(flag) {
judge(row) {
if(row.status == 0) {
return false
} else if (row.status == 1 || row.status == 2) {
return true
}
},
updateParams(data) {
this.searchParams = data;
this.resetCurrentPage();
this.getDataList();
},
resetCurrentPage() {
let page = this.page;
page.page = 1;
this.page = page;
},
getDataList() {
this.searchParams.leaderDept = this.user.user.deptId
api.getRewardDataList(Object.assign({}, this.page, this.searchParams)).then((res)=>{
let data = res.data.data;
this.count = data.total;
this.dataList = data.records;
}).catch((e)=>{
this.dataList = [];
this.count = 0;
}).finally(()=>{
this.loading = false
})
},
edit(row, flag) {
this.showEdit = true; this.showEdit = true;
this.form.type = 2
this.form.id = row.id
this.form.itemId = row.id
this.form.leaderDept = row.leaderDept
this.form.cooperateDept = row.cooperateDept
if (flag) { if (flag) {
this.form.status = 1
this.warning = { this.warning = {
title: "确定同意此申请?", title: "确定同意此申请?",
info: "点击确定后,该部门将添加至考核任务配合部门中", info: "点击确定后,该部门将添加至考核任务配合部门中",
};
};
} else { } else {
this.form.status = 2
this.warning = { this.warning = {
title: "确定不同意此申请?", title: "确定不同意此申请?",
info: info:
}; };
} }
}, },
save() {},
save() {
api.editItem(Object.assign({}, this.form)).then((res)=>{
this.showEdit = false;
this.$message({
type: "success",
message: "提交成功",
})
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交失败",
});
});
},
}, },
filters: { filters: {
formatList(val) { formatList(val) {

Ładowanie…
Anuluj
Zapisz