|
@@ -60,9 +60,9 @@
|
|
|
<el-table-column label="操作" width="280" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" style="background: #0669B2;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']">查看/审核</el-button>
|
|
|
- <el-button size="mini" type="text" style="background: #3FBCEF;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']">{{scope.row.projectStatus%2==1?'提交审核':'撤销审核'}}</el-button>
|
|
|
- <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;"
|
|
|
- v-hasPermi="['projectInfo:info:edit']">修改</el-button>
|
|
|
+ <el-button size="mini" type="text" style="background: #3FBCEF;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
|
|
|
+ @click="infoBtn(scope.row)">{{scope.row.projectStatus%2==1?'提交审核':'撤销审核'}}</el-button>
|
|
|
+ <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']">修改</el-button>
|
|
|
<el-button size="mini" type="text" style="background: #DE1939;color: #FFF;padding: 7px;" @click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['projectInfo:info:remove']">销号</el-button>
|
|
|
</template>
|
|
@@ -76,7 +76,7 @@
|
|
|
<el-form-item label="名称:" prop="name">
|
|
|
<el-input v-model="xs_form.name" placeholder="请输入项目名称" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="产品类别:" prop="industryCategory">
|
|
|
+ <el-form-item label="产品类别:" prop="industryCategory">
|
|
|
<el-checkbox-group v-model="xs_form.industryCategory">
|
|
|
<el-checkbox label="首位产业" name="type"></el-checkbox>
|
|
|
<el-checkbox label="战略新兴" name="type"></el-checkbox>
|
|
@@ -181,12 +181,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import {
|
|
|
+ import {
|
|
|
+ setReject,
|
|
|
+ setExamine,
|
|
|
listInfo,
|
|
|
getInfo,
|
|
|
delInfo,
|
|
|
addInfo,
|
|
|
- updateInfo,
|
|
|
+ updateInfo,
|
|
|
listProject,
|
|
|
exportInfo
|
|
|
} from "@/api/projectInfo/info";
|
|
@@ -202,19 +204,27 @@
|
|
|
industryCategory: []
|
|
|
},
|
|
|
flags: false,
|
|
|
- xs_rules: {
|
|
|
- name: [
|
|
|
- { required: true, message: "名称不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
- industryCategory: [
|
|
|
- { required: true, message: "请选择产品类别", trigger: "blur" }
|
|
|
- ],
|
|
|
- industry: [
|
|
|
- { required: true, message: "请选择所属行业", trigger: "blur" }
|
|
|
- ],
|
|
|
- isBackbussiness: [
|
|
|
- { required: true, message: "状态不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
+ xs_rules: {
|
|
|
+ name: [{
|
|
|
+ required: true,
|
|
|
+ message: "名称不能为空",
|
|
|
+ trigger: "blur"
|
|
|
+ }],
|
|
|
+ industryCategory: [{
|
|
|
+ required: true,
|
|
|
+ message: "请选择产品类别",
|
|
|
+ trigger: "blur"
|
|
|
+ }],
|
|
|
+ industry: [{
|
|
|
+ required: true,
|
|
|
+ message: "请选择所属行业",
|
|
|
+ trigger: "blur"
|
|
|
+ }],
|
|
|
+ isBackbussiness: [{
|
|
|
+ required: true,
|
|
|
+ message: "状态不能为空",
|
|
|
+ trigger: "blur"
|
|
|
+ }],
|
|
|
},
|
|
|
times: '',
|
|
|
industryOptions: [],
|
|
@@ -292,15 +302,47 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ infoBtn(scrop) {
|
|
|
+ console.log()
|
|
|
+ if (scrop.projectStatus % 2 == 1) {
|
|
|
+ this.$confirm('是否确认提交审核', "提醒", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ return setExamine({
|
|
|
+ code: 1,
|
|
|
+ bmProjectId: scrop.id
|
|
|
+ });
|
|
|
+ }).then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess("提交成功");
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$confirm('是否确认撤销审核', "提醒", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ return setReject({
|
|
|
+ code: 2,
|
|
|
+ bmProjectId: scrop.id
|
|
|
+ });
|
|
|
+ }).then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess("提交成功");
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
xs_submit() {
|
|
|
this.$refs["forms"].validate(valid => {
|
|
|
if (valid) {
|
|
|
- let data = JSON.parse(JSON.stringify(this.xs_form))
|
|
|
- data.industryCategory = data.industryCategory.join(',')
|
|
|
- listProject(data).then(res => {
|
|
|
- this.msgSuccess("添加成功");
|
|
|
- this.flags = false;
|
|
|
- this.getList();
|
|
|
+ let data = JSON.parse(JSON.stringify(this.xs_form))
|
|
|
+ data.industryCategory = data.industryCategory.join(',')
|
|
|
+ listProject(data).then(res => {
|
|
|
+ this.msgSuccess("添加成功");
|
|
|
+ this.flags = false;
|
|
|
+ this.getList();
|
|
|
})
|
|
|
}
|
|
|
});
|