|
@@ -11,8 +11,8 @@
|
|
<data-form :data="sumForm" :fields="sumfields" :rules="{}" @save="sumSave">
|
|
<data-form :data="sumForm" :fields="sumfields" :rules="{}" @save="sumSave">
|
|
<template #radios="{item}">
|
|
<template #radios="{item}">
|
|
<template v-if="item.model === 'status'">
|
|
<template v-if="item.model === 'status'">
|
|
- <el-radio label="0">通过</el-radio>
|
|
|
|
- <el-radio label="1">不通过</el-radio>
|
|
|
|
|
|
+ <el-radio label="2">通过</el-radio>
|
|
|
|
+ <el-radio label="-2">不通过</el-radio>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</data-form>
|
|
</data-form>
|
|
@@ -21,10 +21,12 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+const _ = require('lodash');
|
|
import dataForm from '@common/src/components/frame/form.vue';
|
|
import dataForm from '@common/src/components/frame/form.vue';
|
|
import dataTable from '@common/src/components/frame/filter-page-table.vue';
|
|
import dataTable from '@common/src/components/frame/filter-page-table.vue';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions: achieveApply } = createNamespacedHelpers('achieveApply');
|
|
const { mapActions: achieveApply } = createNamespacedHelpers('achieveApply');
|
|
|
|
+const { mapActions: verifyRecord } = createNamespacedHelpers('verifyRecord');
|
|
export default {
|
|
export default {
|
|
metaInfo() {
|
|
metaInfo() {
|
|
return { title: this.$route.meta.title };
|
|
return { title: this.$route.meta.title };
|
|
@@ -51,7 +53,6 @@ export default {
|
|
{ label: '成果编号', prop: 'basic.achieve_num', filter: 'input', showTip: true },
|
|
{ label: '成果编号', prop: 'basic.achieve_num', filter: 'input', showTip: true },
|
|
{ label: '成果名称', prop: 'basic.achieve_name', showTip: true },
|
|
{ label: '成果名称', prop: 'basic.achieve_name', showTip: true },
|
|
{ label: '成果类别', prop: 'basic.achieve_type', showTip: true },
|
|
{ label: '成果类别', prop: 'basic.achieve_type', showTip: true },
|
|
- { label: '状态', prop: 'status' },
|
|
|
|
],
|
|
],
|
|
list: [],
|
|
list: [],
|
|
total: 0,
|
|
total: 0,
|
|
@@ -60,7 +61,7 @@ export default {
|
|
sumForm: {},
|
|
sumForm: {},
|
|
sumfields: [
|
|
sumfields: [
|
|
{ label: '总结状态', model: 'status', type: 'radio' },
|
|
{ label: '总结状态', model: 'status', type: 'radio' },
|
|
- { label: '总结意见', model: 'content', type: 'textarea' },
|
|
|
|
|
|
+ { label: '总结意见', model: 'desc', type: 'textarea' },
|
|
],
|
|
],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -69,9 +70,10 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...achieveApply(['query']),
|
|
...achieveApply(['query']),
|
|
|
|
+ ...verifyRecord(['create']),
|
|
// 查询列表
|
|
// 查询列表
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
- const res = await this.query({ skip, limit, ...info });
|
|
|
|
|
|
+ const res = await this.query({ skip, limit, ...info, status: '1' });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, 'list', res.data);
|
|
this.$set(this, 'list', res.data);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
@@ -83,12 +85,21 @@ export default {
|
|
},
|
|
},
|
|
// 会审总结
|
|
// 会审总结
|
|
toEdit({ data }) {
|
|
toEdit({ data }) {
|
|
|
|
+ this.$set(this, 'sumForm', _.cloneDeep(data));
|
|
this.sumDialog = true;
|
|
this.sumDialog = true;
|
|
},
|
|
},
|
|
// 会审总结提交
|
|
// 会审总结提交
|
|
- sumSave({ data }) {
|
|
|
|
- console.log(data);
|
|
|
|
- this.handleClose();
|
|
|
|
|
|
+ async sumSave({ data }) {
|
|
|
|
+ let dup = _.pick(data, ['desc', 'status']);
|
|
|
|
+ dup.apply_id = _.get(data, '_id');
|
|
|
|
+ dup.verify = _.get(this.user, 'name');
|
|
|
|
+ dup.verify_phone = _.get(this.user, 'phone');
|
|
|
|
+ dup.verify_id = _.get(this.user, '_id');
|
|
|
|
+ dup.step = '评分';
|
|
|
|
+ const res = await this.create(dup);
|
|
|
|
+ if (this.$checkRes(res, '审核成功', res.errmsg || '审核失败')) {
|
|
|
|
+ this.handleClose();
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 取消选择
|
|
// 取消选择
|
|
handleClose() {
|
|
handleClose() {
|