Commit 4c4e4722 by liangzhen

检查规则编制暂存

1 parent dd9fab11
...@@ -295,14 +295,38 @@ export function RectificationFeedbackQuery(params) { ...@@ -295,14 +295,38 @@ export function RectificationFeedbackQuery(params) {
return post(`${ARCH_EVALUATION}/projectInspectionIssues/iPageRectificationFeedbackQuery`, params) return post(`${ARCH_EVALUATION}/projectInspectionIssues/iPageRectificationFeedbackQuery`, params)
} }
//检查规则编制 //检查规则编制
// //分页
// export function ruleFormulation(params) {
// return post(`${ARCH_EVALUATION}/ruleFormulation/ipage`, params)
// }
// //详情
// export function iPageRorm(params) {
// return post(`${ARCH_EVALUATION}/ruleFormulation/iPageRorm`, params)
// }
//分页 //分页
export function ruleFormulation(params) { export function ruleFormulation(params) {
return post(`${ARCH_EVALUATION}/ruleFormulation/ipage`, params) return post(`${ARCH_EVALUATION}/ruleFormulation/`, params)
} }
//详情 //详情
export function iPageRorm(params) { export function iPageRorm(params) {
return post(`${ARCH_EVALUATION}/ruleFormulation/iPageRorm`, params) return post(`${ARCH_EVALUATION}/ruleFormulation/iPageRorm`, params)
} }
//问题列表
export function addSelWtqd(params) {
return post(`${ARCH_EVALUATION}postEvalQuesInfo/adSelWtqd`, params)
}
//添加
export function addruleFormulation(params) {
return post(`${ARCH_EVALUATION}/ruleFormulation/addRuleFormulation`, params)
}
//编制
export function addiPageRorm(params) {
return post(`${ARCH_EVALUATION}/ruleFormulation/ipage`, params)
}
//自动稽核任务配置 分页 //自动稽核任务配置 分页
export function auditTasks(params) { export function auditTasks(params) {
return post(`${ARCH_EVALUATION}/auditTasks/`, params) return post(`${ARCH_EVALUATION}/auditTasks/`, params)
......
...@@ -325,92 +325,92 @@ export function trendsRules(type) { ...@@ -325,92 +325,92 @@ export function trendsRules(type) {
}, },
], ],
}, },
// { {
// name: '后评估合规性管理', name: '后评估合规性管理',
// url: '', url: '',
// children: [ children: [
// { {
// name: '合规性检查实时提醒', name: '合规性检查实时提醒',
// url: '', url: '',
// children: [ children: [
// { name: '合规性检查提醒', url: '/checkCompliance/automaticCheck', children: [] }, { name: '合规性检查提醒', url: '/checkCompliance/automaticCheck', children: [] },
// ], ],
// }, },
// { {
// name: '合规性检查规则库构建', name: '合规性检查规则库构建',
// url: '', url: '',
// children: [ children: [
// { name: '检查规则编制', url: '/compliance/checkRules', children: [] }, { name: '检查规则编制', url: '/compliance/checkRules', children: [] },
// { name: '自动稽核任务配置', url: '/compliance/taskConfigure', children: [] }, { name: '自动稽核任务配置', url: '/compliance/taskConfigure', children: [] },
// ], ],
// }, },
// { {
// name: '项目合规检查', name: '项目合规检查',
// url: '', url: '',
// children: [ children: [
// { name: '合规检查结果', url: '/projectCheck/checkResault', children: [] }, { name: '合规检查结果', url: '/projectCheck/checkResault', children: [] },
// { name: '合规问题整改', url: '/projectCheck/problemRectify', children: [] }, { name: '合规问题整改', url: '/projectCheck/problemRectify', children: [] },
// { {
// name: '合规问题整改核验', name: '合规问题整改核验',
// url: '/projectCheck/verificationRectify', url: '/projectCheck/verificationRectify',
// children: [], children: [],
// }, },
// ], ],
// }, },
// ], ],
// }, },
// { {
// name: '后评估结果管理', name: '后评估结果管理',
// url: '', url: '',
// children: [ children: [
// { {
// name: '后评估结果发布', name: '后评估结果发布',
// url: '', url: '',
// children: [ children: [
// { {
// name: '检查结果公示及评价', name: '检查结果公示及评价',
// url: '/managementResult/releaseResultpublicity', url: '/managementResult/releaseResultpublicity',
// children: [], children: [],
// }, },
// ], ],
// }, },
// { {
// name: '后评估结果情况', name: '后评估结果情况',
// url: '', url: '',
// children: [ children: [
// { {
// name: '后评估进度情况', name: '后评估进度情况',
// url: '/managementResult/situationResaultschedule', url: '/managementResult/situationResaultschedule',
// children: [], children: [],
// }, },
// { {
// name: '后评估各环节问题分布', name: '后评估各环节问题分布',
// url: '/managementResult/situationResaultissuesLink', url: '/managementResult/situationResaultissuesLink',
// children: [], children: [],
// }, },
// { {
// name: '合规检查问题情况', name: '合规检查问题情况',
// url: '/managementResult/issuesInspection', url: '/managementResult/issuesInspection',
// children: [], children: [],
// }, },
// ], ],
// }, },
// { {
// name: '后评估检查报告管理', name: '后评估检查报告管理',
// url: '', url: '',
// children: [ children: [
// { {
// name: '后评估检查报告维护', name: '后评估检查报告维护',
// url: '/managementResult/maintenancePg', url: '/managementResult/maintenancePg',
// children: [], children: [],
// }, },
// { name: '后评估报告模板管理', url: '/managementResult/managementPg', children: [] }, { name: '后评估报告模板管理', url: '/managementResult/managementPg', children: [] },
// // { name: "合规性检查报告维护", url: "/managementResult/maintenanceHg", children: [] }, // { name: "合规性检查报告维护", url: "/managementResult/maintenanceHg", children: [] },
// // { name: "合规性检查报告模板管理", url: "/managementResult/managementHg", children: [] }, // { name: "合规性检查报告模板管理", url: "/managementResult/managementHg", children: [] },
// ], ],
// }, },
// ], ],
// }, },
] ]
} }
} }
......
<template> <template>
<div class="main"> <div class="main">
<el-form
:model="ruleForm"
ref="formName"
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
<el-select
v-model="ruleForm.ruleStatus"
placeholder="请选择"
clearable
@input="numberVal"
>
<el-option label="开启" value="0"></el-option>
<el-option label="关闭" value="1"></el-option>
</el-select>
</el-form-item>
<el-form-item label="创建人:" prop="creator" class="fromItem">
<el-input
v-model="ruleForm.creator"
placeholder="请输入"
clearable
@input="numberVal"
></el-input>
</el-form-item>
<!-- <el-form-item label="创建时间:" prop="createTime" class="fromItem">
<el-date-picker
@input="numberVal"
@change="timeChange"
v-model="ruleForm.dates"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item> -->
<el-form-item label="创建时间:" prop="planReviewDate" class="fromItem">
<el-date-picker
v-model="ruleForm.dates"
type="datetime"
placeholder="选择日期"
value-format="yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-form-item>
<el-form-item class="button">
<el-button @click="submitForm()">
<img class="buttonIcon" src="../../assets/cx.png" />查询</el-button
>
<el-button @click="resetForm()">
<img class="buttonIcon" src="../../assets/cz.png" />重置</el-button
>
<el-button @click="detailsForm()">
<img class="buttonIcon" src="../../assets/ck.png" />详情</el-button
>
<el-button @click="add()">
<img class="buttonIcon" src="../../assets/xz.png" /> 添加
</el-button>
</el-form-item>
</el-form>
<div class="setscrollOne">
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
:data="tableData"
tooltip-effect="dark myTooltips"
style="width: 100%"
header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName"
border
>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column type="selection"> </el-table-column>
<!-- <el-table-column prop="projectStagetext" label="项目环节" >
</el-table-column> -->
<el-table-column label="规则名称" prop="ruleName" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="ruleStatus" label="规则状态">
<template slot-scope="scope">
<el-switch
v-model="scope.row.ruleStatus"
active-color="#13ce66"
inactive-color="#C0C0C0"
active-value="0"
inactive-value="1"
active-text=""
inactive-text=""
disabled
>
<template v-slot:active>
<span>开启</span>
</template>
<template v-slot:inactive>
<span>关闭</span>
</template>
</el-switch>
</template>
</el-table-column>
<el-table-column label="创建人" prop="creator"> </el-table-column>
<el-table-column label="创建时间" prop="createTime"> </el-table-column>
</el-table>
</div>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-sizes="[10, 15, 20, 50, 100]"
:page-size="1000"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
class="elpagination"
>
</el-pagination>
<el-dialog
title="详情"
:visible.sync="dialog"
width="90%"
:modal-append-to-body="false"
:append-to-body="false"
class="dialog"
>
<el-form <el-form
:model="ruleForm" :model="ruleFormdialog"
ref="formName" ref="ruleFormdialog"
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
<el-form-item label="规则名称:" prop="ruleName" class="fromItem">
<el-form-item label="项目环节:" prop="projectStage" class="fromItem"> <el-input
<el-select v-model="ruleForm.projectStage" placeholder="请选择" clearable> v-model="ruleFormdialog.ruleName"
<el-option label="可研" value="1"></el-option> placeholder="请输入"
<el-option label="计划" value="2"></el-option> clearable
<el-option label="采购" value="3"></el-option> @input="numberVal"
<el-option label="合同" value="4"></el-option> disabled
<el-option label="执行" value="5"></el-option> ></el-input>
<el-option label="结决算及转资" value="6"></el-option>
</el-select>
</el-form-item>
<el-form-item label="问题检查项:" prop="quesCheckItem" class="fromItem">
<el-input v-model="ruleForm.quesCheckItem" placeholder="请输入" clearable></el-input>
</el-form-item>
<!-- <el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
<el-select v-model="ruleForm.ruleStatus" placeholder="请选择" clearable>
<el-option label="开启" value="0"></el-option>
<el-option label="关闭" value="1"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="创建人:" prop="creator" class="fromItem"> <el-form-item label="创建人:" prop="creator" class="fromItem">
<el-input <el-input
v-model="ruleForm.creator" v-model="ruleFormdialog.creator"
placeholder="请输入" placeholder="请输入"
clearable clearable
@input="numberVal"
disabled
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="创建时间:" prop="createTime" class="fromItem"> <el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
<el-date-picker <el-switch
@change="timeChange" disabled
v-model="ruleForm.dates" v-model="ruleFormdialog.ruleStatus"
style="width: 240px" active-color="#13ce66"
value-format="yyyy-MM-dd" inactive-color="#C0C0C0"
type="daterange" active-value="0"
range-separator="-" inactive-value="1"
start-placeholder="开始日期" active-text=""
end-placeholder="结束日期" inactive-text=""
></el-date-picker>
</el-form-item> -->
<el-form-item class="button">
<el-button @click="submitForm()">
<img class="buttonIcon" src="../../assets/cx.png" />查询</el-button
>
<el-button @click="resetForm()">
<img class="buttonIcon" src="../../assets/cz.png" />重置</el-button
>
<el-button @click="detailsForm()">
<img class="buttonIcon" src="../../assets/ck.png" />详情</el-button
> >
<template v-slot:active>
<span>开启</span>
</template>
<template v-slot:inactive>
<span>关闭</span>
</template>
</el-switch>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="setscrollOne"> <div class="setscrolldialogAdd">
<el-table <el-table
@selection-change="handleSelectionChange" :data="tableDataXQ"
ref="multipleTable" tooltip-effect="dark myTooltips"
:data="tableData"
tooltip-effect="dark myTooltips"
style="width: 100%" style="width: 100%"
header-cell-class-name="custom-th-background" header-cell-class-name="custom-th-background"
class="eltable" class="eltable"
...@@ -74,84 +184,101 @@ ...@@ -74,84 +184,101 @@
> >
<el-table-column label="序号" width="55" type="index"> <el-table-column label="序号" width="55" type="index">
</el-table-column> </el-table-column>
<el-table-column type="selection"> </el-table-column> <el-table-column
<el-table-column label="项目环节" prop="projectStagetext"> </el-table-column> label="问题检查项"
<el-table-column prop="quesCheckItem" label="问题检查项" show-overflow-tooltip> prop="quesCheckItem"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label="检查说明"
prop="checkDesc"
show-overflow-tooltip
>
</el-table-column>
<el-table-column label="详细列表" prop="checkDesc">
<template slot-scope="scope">
<el-button
size="small"
v-if="scope.row.configValue == 1"
type="primary"
class="btn-search"
@click="edit(scope.row,scope.$index, '详情')"
>
编制
</el-button>
</template>
</el-table-column> </el-table-column>
<el-table-column label="检查说明" prop="checkDesc" show-overflow-tooltip> </el-table-column>
<el-table-column label="判断规则" prop="fullRule" show-overflow-tooltip> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination <el-pagination
@size-change="handleSizeChange" @size-change="handleSizeChangeXQ"
@current-change="handleCurrentChange" @current-change="handleCurrentChangeXQ"
:current-page="currentPage" :current-page="XQcurrentPage"
:page-sizes="[10, 15, 20, 50,100]" :page-sizes="[5, 10, 20, 50]"
:page-size="1000" :page-size="1000"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="totalXQ"
class="elpagination" class="elpagination"
> >
</el-pagination> </el-pagination>
<el-dialog <p class="close"><span @click="cancel()">关闭</span></p>
title="详情" </el-dialog>
:visible.sync="dialog" <!-- 新增弹窗 -->
width="90%" <el-dialog
:modal-append-to-body="false" title="添加检查规则"
:append-to-body="false" :visible.sync="dialogAdd"
class="dialog" width="90%"
> :modal-append-to-body="false"
<el-form :append-to-body="false"
:model="ruleFormdialog" >
ref="ruleFormdialog" <div class="dialog">
label-width="100px" <el-form
class="demo-ruleForm" ref="formNameAD"
> :model="ruleFormdialogAdd"
<el-form-item label="项目环节:" prop="projectStagetext" class="fromItem"> label-width="100px"
<el-input v-model="ruleFormdialog.projectStagetext" placeholder="请输入" disabled></el-input> class="demo-ruleForm"
</el-form-item> :rules="rules"
<el-form-item label="问题检查项:" prop="quesCheckItem" class="fromItem"> >
<el-input v-model="ruleFormdialog.quesCheckItem" placeholder="请输入" disabled></el-input> <el-form-item label="规则名称:" prop="ruleName" class="fromItem">
</el-form-item> <el-input
<el-form-item label="检查说明:" prop="checkDesc" class="fromItem"> v-model="ruleFormdialogAdd.ruleName"
<el-input v-model="ruleFormdialog.checkDesc" placeholder="请输入" type="textarea" disabled></el-input> placeholder="请输入"
</el-form-item> clearable
@input="numberVal"
<!-- <el-form-item label="规则名称:" prop="ruleName" class="fromItem"> ></el-input>
<el-input v-model="ruleFormdialog.ruleName" placeholder="请输入" disabled></el-input> </el-form-item>
</el-form-item> <el-form-item label="创建人:" prop="creator" class="fromItem">
<el-form-item label="规则类型:" prop="ruleType" class="fromItem"> <el-input
<el-input v-model="ruleFormdialog.ruleType" placeholder="请输入" disabled></el-input> v-model="ruleFormdialogAdd.creator"
</el-form-item> placeholder="请输入"
<el-form-item label="规则状态:" prop="ruleStatus" class="fromItem"> clearable
<el-select v-model="ruleFormdialog.ruleStatus" placeholder="请选择" disabled> @input="numberVal"
<el-option label="开启" value="0"></el-option> ></el-input>
<el-option label="关闭" value="1"></el-option> </el-form-item>
</el-select> <el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
</el-form-item> <el-switch
v-model="ruleFormdialogAdd.ruleStatus"
<el-form-item label="创建人:" prop="creator" class="fromItem"> active-color="#13ce66"
<el-input inactive-color="#C0C0C0"
v-model="ruleFormdialog.creator" active-value="0"
placeholder="请输入" inactive-value="1"
disabled active-text=""
></el-input> inactive-text=""
</el-form-item> >
<el-form-item label="创建时间:" prop="createTime" class="fromItem"> <template v-slot:active>
<span>开启</span>
<el-date-picker </template>
v-model="ruleFormdialog.createTime" <template v-slot:inactive>
type="date" <span>关闭</span>
disabled </template>
placeholder="选择日期"> </el-switch>
</el-date-picker> </el-form-item>
</el-form-item> -->
</el-form> </el-form>
<p class="zjBtn">判断规则名称</p> <p class="zjBtn">检查规则编制</p>
<div class="setscrolldialogAdd"> <div class="setscrolldialog">
<el-table <el-table
:data="tableDataXQ" :data="tableDataQR"
tooltip-effect="dark myTooltips" tooltip-effect="dark myTooltips"
style="width: 100%" style="width: 100%"
header-cell-class-name="custom-th-background" header-cell-class-name="custom-th-background"
...@@ -159,438 +286,558 @@ ...@@ -159,438 +286,558 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<!-- <el-table-column label="材料类别" prop="projectStagetext" width="100">
</el-table-column> -->
<el-table-column label="序号" width="55" type="index"> <el-table-column label="序号" width="55" type="index">
</el-table-column> </el-table-column>
<el-table-column type="selection"> </el-table-column>
<el-table-column label="判断规则名称" prop="ruleName"> <el-table-column
label="问题检查项"
prop="quesCheckItem"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="ruleStatus" label="检查说明"
label="规则状态" prop="checkDesc"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column>
<!-- v-if="scope.row.questionId==1" -->
<el-table-column prop="lishi" label="操作" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-button
v-model="scope.row.ruleStatus" size="small"
active-color="#13ce66" v-if="scope.row.questionId == 1"
inactive-color="#C0C0C0" type="primary"
active-value="0" class="btn-search"
inactive-value="1" @click="edit(scope.row,scope.$index)"
active-text=""
inactive-text=""
disabled
> >
<template v-slot:active> 编制
<span>开启</span> </el-button>
</template>
<template v-slot:inactive>
<span>关闭</span>
</template>
</el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="creator" label="创建人"> </el-table-column>
<el-table-column prop="createTime" label="创建时间">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination
@size-change="handleSizeChangeXQ" <p class="midBtn">
@current-change="handleCurrentChangeXQ" <span @click="cancelXZ()">取消</span
:current-page="XQcurrentPage" ><span @click="saveXZ()">保存</span>
:page-sizes="[5, 10, 20, 50]" </p>
:page-size="1000" </div>
layout="total, sizes, prev, pager, next, jumper" </el-dialog>
:total="totalXQ" <!-- 编辑弹窗 -->
class="elpagination" <el-dialog
> title="检查规则编制"
</el-pagination> :visible.sync="dialogedit"
<p class="close"><span @click="cancel()">关闭</span></p> width="60%"
</el-dialog> class="tips"
</div> :modal-append-to-body="false"
</template> :append-to-body="false"
>
<div class="bjrule">
<el-checkbox-group v-model="checkList">
<el-checkbox label="1">应有可研报告或项目说明书</el-checkbox>
<el-checkbox label="2">可研评审意见</el-checkbox>
<el-checkbox label="3">可研批复</el-checkbox>
</el-checkbox-group>
<p class="midBtn bjBtn">
<span @click="cancelBJ()">取消</span
><span @click="saveBJ()">保存</span>
</p>
</div>
</el-dialog>
</div>
</template>
<script> <script>
import { MaterialsList } from '@/utils/cache' import { MaterialsList } from "@/utils/cache";
import { import {
ruleFormulation,iPageRorm ruleFormulation,
iPageRorm,
addruleFormulation,
addSelWtqd,
addiPageRorm,
} from "@/api/index"; } from "@/api/index";
import { getCurrentDate } from "@/utils/format";
export default { export default {
data() { data() {
return { return {
listData: {}, editIndex:99999999,
qdtableData: JSON.parse(JSON.stringify(MaterialsList())), checkList: [],
tableDataNew:MaterialsList(), tableDataQR: [],
xxtableData:[], ruleFormdialogAdd: {},
showButton: true, listData: {},
ruleForm: { qdtableData: JSON.parse(JSON.stringify(MaterialsList())),
batchYear: "", tableDataNew: MaterialsList(),
batchName: "", xxtableData: [],
postEvalState: "", showButton: true,
projectName: "", ruleForm: {},
projectId: "", ruleFormdialog: {
// dates:[] batchYear: "",
}, batchName: "",
ruleFormdialog: { planReviewDate: "",
batchYear: "", fullName: "",
batchName: "", },
planReviewDate: "",
fullName: "", tableData: [],
},
checkedList: [],
tableData: [], currentPage: 1,
pageSize: 10,
checkedList: [], currentPagetjcl: 1,
currentPage: 1, pageSizetjcl: 10,
pageSize: 10, total: 0,
currentPagetjcl: 1, dialog: false,
pageSizetjcl: 10, activeName: "first",
total: 0, mergingRows: [],
dialog: false, lctableData: [],
activeName: "first", tableDataXQ: [],
mergingRows: [], totalXQ: 0,
lctableData:[], pageSizeXQ: 5,
tableDataXQ:[], XQcurrentPage: 1,
totalXQ:0, dialogAdd: false,
pageSizeXQ: 5, dialogedit: false,
XQcurrentPage: 1, rules: {
}; ruleName: [
{
required: true,
message: "请输入规则名称",
trigger: "change",
},
],
ruleStatus: [
{
required: true,
message: "请选择规则状态",
trigger: "change",
},
],
creator: [
{
required: true,
message: "请输入创建人",
trigger: "change",
},
],
},
configInfo:'',//编制的入参信息
};
},
filters: {
isProblemFilter(val) {
if (val == 1) {
return "关闭";
} else {
return "开启";
}
}, },
mounted() { },
this.submitForm();
mounted() {
this.submitForm();
},
methods: {
async saveXZ() {
console.log( this.tableDataQR,' this.tableDataQR')
this.$refs.formNameAD.validate((valid) => {
if (!valid) {
console.log("error submit!!");
return false;
} else {
let params = {
createTime: getCurrentDate(),
};
let paramsArr=this.tableDataQR.filter(items =>{
return items.configValue
});
let namesString =paramsArr.map(obj => obj.configValue).join('-');
let quesStr= paramsArr.map(obj => obj.questionId).join('-');
console.log(namesString,'222222')
//下边字符串转好在传过来
if (namesString) {
params.questionId = quesStr;
params.configValue = namesString
}
Object.assign(params, this.ruleFormdialogAdd);
addruleFormulation(params).then((res) => {
this.dialogAdd = false;
this.resetForm();
});
}
});
},
cancelXZ() {
this.dialogAdd = false;
},
numberVal(val) {
this.$forceUpdate();
},
//点击新增
async add() {
this.dialogAdd = true;
let res = await addSelWtqd();
this.tableDataQR = res.data.records;
}, },
methods: { //点击编辑
timeChange(time) { async edit(info,index) {
console.log(info, index,"2222");
this.editIndex=index
this.dialogedit = true;
if (info.questionId == 1 && info.configValue) {
this.checkList = info.configValue.split(",");
}
console.log(this.checkList, "3333");
},
timeChange(time) {
if (time) { if (time) {
//给后端的参数 //给后端的参数
this.ruleForm.auditStartTime = time[0]; this.ruleForm.auditStartTime = time[0];
this.ruleForm.auditEndTime = time[1]; this.ruleForm.auditEndTime = time[1];
}else{ } else {
this.ruleForm.auditStartTime = ""; this.ruleForm.auditStartTime = "";
this.ruleForm.auditEndTime = ""; this.ruleForm.auditEndTime = "";
} }
}, },
async submitForm() { async submitForm() {
let params = { let params = {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
}; };
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm);
console.log(params); console.log(params);
let res = await ruleFormulation(params); let res = await ruleFormulation(params);
console.log(res, "reslll11");
if (res.code == "200") { if (res.code == "200") {
this.tableData = res.data.records; this.tableData = res.data.records;
this.tableData.forEach(item=>{ this.tableData.forEach((item) => {
switch (item.projectStage) { switch (item.projectStage) {
case 1: case "1":
this.$set(item, "projectStagetext", "可研"); this.$set(item, "projectStagetext", "可研");
break; break;
case 2: case "2":
this.$set(item, "projectStagetext", "计划"); this.$set(item, "projectStagetext", "计划");
break; break;
case 3: case "3":
this.$set(item, "projectStagetext", "采购"); this.$set(item, "projectStagetext", "采购");
break; break;
case 4: case "4":
this.$set(item, "projectStagetext", "合同"); this.$set(item, "projectStagetext", "合同");
break; break;
case 5: case "5":
this.$set(item, "projectStagetext", "执行"); this.$set(item, "projectStagetext", "执行");
break; break;
case 6: case "6":
this.$set(item, "projectStagetext", "结决算及转资"); this.$set(item, "projectStagetext", "结决算及转资");
break; break;
} }
}) });
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
resetForm() { resetForm() {
this.$refs.formName.resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.ruleForm.auditStartTime = ""; this.ruleForm.auditStartTime = "";
this.ruleForm.auditEndTime = ""; this.ruleForm.auditEndTime = "";
// this.ruleForm.datas=[] this.ruleForm.dates = [];
this.submitForm(); this.submitForm();
}, },
//详情 //详情
async detailsForm() { async detailsForm() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message("请选择");
return; return;
} }
this.dialog=true this.dialog = true;
this.ruleFormdialog=this.checkedList[0] this.ruleFormdialog = this.checkedList[0];
let params={ let params = {
current: this.XQcurrentPage, current: this.XQcurrentPage,
pageSize: this.pageSizeXQ, pageSize: this.pageSizeXQ,
projectStage:this.checkedList[0].questionId projectStage: this.checkedList[0].questionId,
} };
let res= await iPageRorm(params ) let res = await iPageRorm(params);
this.tableDataXQ=res.data.records this.tableDataXQ = res.data.records;
this.totalXQ=res.data.total this.totalXQ = res.data.total;
},
},
//表格颜色
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
}
return "";
},
//主列表选中行信息 //表格颜色
handleSelectionChange(selection) { tableRowClassName({ row, rowIndex }) {
if (Array.isArray(selection) && selection.length > 1) { if (rowIndex % 2 == 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false); return "warning-row";
this.$refs.multipleTable.toggleRowSelection(selection[1], true); }
} return "";
this.checkedList = this.$refs.multipleTable.selection; },
this.ruleFormdialog = this.checkedList[0];
console.log(this.checkedList, "2222"); //主列表选中行信息
}, handleSelectionChange(selection) {
handleSizeChange(val) { if (Array.isArray(selection) && selection.length > 1) {
console.log(`每页 ${val} 条`); this.$refs.multipleTable.toggleRowSelection(selection[0], false);
this.pageSize = val; this.$refs.multipleTable.toggleRowSelection(selection[1], true);
this.submitForm() }
}, this.checkedList = this.$refs.multipleTable.selection;
handleCurrentChange(val) { this.ruleFormdialog = this.checkedList[0];
console.log(`当前页: ${val}`); console.log(this.checkedList, "2222");
this.currentPage = val; },
this.submitForm() handleSizeChange(val) {
}, console.log(`每页 ${val} 条`);
cancel() { this.pageSize = val;
this.dialog = false; this.submitForm();
}, },
handleSizeChangeXQ(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.currentPage = val;
this.submitForm();
},
cancel() {
this.dialog = false;
},
handleSizeChangeXQ(val) {
this.pageSizeXQ = val; this.pageSizeXQ = val;
this.detailsForm() this.detailsForm();
}, },
handleCurrentChangeXQ(val) { handleCurrentChangeXQ(val) {
this.XQcurrentPage = val; this.XQcurrentPage = val;
this.detailsForm() this.detailsForm();
}, },
cancelBJ() {
this.dialogedit = false;
this.checkList = [];
}, },
}; saveBJ() {
</script> this.dialogedit = false;
<style scoped lang="scss"> if(Array.isArray(this.checkList)){
.main { this.configInfo= this.checkList.sort().join();
font-size: 14px;
position: relative;
height: 100%;
width: 100%;
box-sizing: border-box;
overflow-x: hidden;
}
.el-form {
display: flex;
width: 100%;
flex-wrap: wrap;
border-top: 2px solid #23c6c8;
border-left: 1px solid #dee5e7;
border-right: 1px solid #dee5e7;
border-bottom: 1px solid #dee5e7;
padding: 20px 10px;
margin-bottom: 20px;
.fromItem {
min-width: 24%;
margin: 0 0.5%;
margin-bottom: 20px;
.el-input {
width: 226px;
} }
.el-select { if(this.configInfo){
width: 226px; this.tableDataQR[this.editIndex].configValue=this.configInfo
} }
console.log("选了什么", this.configInfo);
},
},
};
</script>
<style scoped lang="scss">
.main {
font-size: 14px;
position: relative;
height: 100%;
width: 100%;
box-sizing: border-box;
overflow-x: hidden;
}
.el-form {
display: flex;
width: 100%;
flex-wrap: wrap;
border-top: 2px solid #23c6c8;
border-left: 1px solid #dee5e7;
border-right: 1px solid #dee5e7;
border-bottom: 1px solid #dee5e7;
padding: 20px 10px;
margin-bottom: 20px;
.fromItem {
min-width: 24%;
margin: 0 0.5%;
margin-bottom: 20px;
.el-input {
width: 226px;
} }
/deep/ .el-form-item__content { .el-select {
text-align: left; width: 226px;
display: inline-block;
margin-left: 10px !important;
}
/deep/ .el-form-item__label {
font-weight: bold;
color: #000;
width: 160px !important;
}
.button {
display: inline-block;
width: 100%;
text-align: left;
/deep/ .el-form-item__content {
margin-left: 20px !important;
text-align: left;
img {
width: 14px;
height: 14px;
margin-right: 15px;
vertical-align: middle;
}
}
.el-button {
background-color: #23c6c8;
border-color: #23c6c8;
color: #fff;
}
} }
} }
.eltable { /deep/ .el-form-item__content {
width: 100%;
box-sizing: border-box;
}
/deep/ .el-table .warning-row {
background: #f0ffff;
// color: #2785e6;
}
.elpagination {
text-align: center;
margin-right: 100px;
}
/deep/ .el-dialog {
border-radius: 10px;
margin-top: 3vh !important;
margin-left: 3vw !important;
// height: 500px;
// box-sizing: border-box;
// overflow-y: auto;
}
/deep/ .el-dialog__wrapper {
position: absolute;
}
/deep/ .v-modal {
position: absolute;
}
/deep/ .el-dialog__header {
background-color: #0d867f;
// padding-bottom: 20px;
text-align: left; text-align: left;
border-radius: 10px 10px 0 0; display: inline-block;
.el-dialog__title { margin-left: 10px !important;
color: #fff;
}
} }
/deep/ .el-table__header th { /deep/ .el-form-item__label {
background-color: #f5f5f5;
font-weight: bold; font-weight: bold;
.cell { color: #000;
color: #333; width: 160px !important;
}
}
/deep/.el-table {
width: 100%;
.el-table__header-wrapper table,
.el-table__body-wrapper table {
width: 100% !important;
}
.el-table__body,
.el-table__footer,
.el-table__header {
table-layout: auto;
}
} }
.button {
.textarea { display: inline-block;
width: 100%; width: 100%;
.el-textarea { text-align: left;
width: 60%; /deep/ .el-form-item__content {
} margin-left: 20px !important;
} text-align: left;
.Btn { img {
width: 200px; width: 14px;
margin: 0 auto; height: 14px;
span { margin-right: 15px;
display: inline-block; vertical-align: middle;
width: 80px; }
height: 25px;
line-height: 25px;
text-align: center;
border-radius: 4px;
margin-right: 12px;
}
span:first-of-type {
border: 1px solid #000;
} }
span:last-of-type { .el-button {
background-color: #0d867f; background-color: #23c6c8;
border: 1px solid #0d867f; border-color: #23c6c8;
color: #fff; color: #fff;
} }
} }
/deep/ .el-dialog__headerbtn .el-dialog__close { }
.eltable {
width: 100%;
box-sizing: border-box;
}
/deep/ .el-table .warning-row {
background: #f0ffff;
// color: #2785e6;
}
.elpagination {
text-align: center;
margin-right: 100px;
}
/deep/ .el-dialog {
border-radius: 10px;
margin-top: 3vh !important;
margin-left: 3vw !important;
// height: 500px;
// box-sizing: border-box;
// overflow-y: auto;
}
/deep/ .el-dialog__wrapper {
position: absolute;
}
/deep/ .v-modal {
position: absolute;
}
/deep/ .el-dialog__header {
background-color: #0d867f;
// padding-bottom: 20px;
text-align: left;
border-radius: 10px 10px 0 0;
.el-dialog__title {
color: #fff; color: #fff;
} }
/deep/.el-table th.el-table__cell.is-leaf, }
.el-table td.el-table__cell { /deep/ .el-table__header th {
text-align: center; background-color: #f5f5f5;
font-weight: bold;
.cell {
color: #333;
} }
/deep/ .el-table__cell { }
text-align: center;
/deep/.el-table {
width: 100%;
.el-table__header-wrapper table,
.el-table__body-wrapper table {
width: 100% !important;
} }
.el-table__body,
h3 { .el-table__footer,
text-align: left; .el-table__header {
table-layout: auto;
} }
/deep/.el-dialog__body { }
padding: 0 10px;
.textarea {
h3 { width: 100%;
margin: 10px 0; .el-textarea {
} width: 60%;
} }
/deep/ .el-descriptions-item__container .el-descriptions-item__label { }
font-weight: bold; .Btn {
width: 100px; width: 200px;
text-align: right; margin: 0 auto;
span {
display: inline-block;
width: 80px;
height: 25px;
line-height: 25px;
text-align: center;
border-radius: 4px;
margin-right: 12px;
} }
/deep/.el-tabs__content { span:first-of-type {
overflow: auto; border: 1px solid #000;
height: 500px;
padding-bottom: 20px;
} }
.close { span:last-of-type {
width: 100%; background-color: #0d867f;
height: 40px; border: 1px solid #0d867f;
line-height: 20px; color: #fff;
span {
display: inline-block;
width: 80px;
height: 30px;
line-height: 30px;
border: 1px solid grey;
border-radius: 5px;
}
} }
.setscrolldialog { }
width: 100%; /deep/ .el-dialog__headerbtn .el-dialog__close {
height: 300px; color: #fff;
overflow: auto; }
box-sizing: border-box; /deep/.el-table th.el-table__cell.is-leaf,
/deep/ .el-table { .el-table td.el-table__cell {
width: 96% !important; text-align: center;
height: 300px; }
overflow: auto; /deep/ .el-table__cell {
} text-align: center;
}
h3 {
text-align: left;
}
/deep/.el-dialog__body {
padding: 0 10px;
h3 {
margin: 10px 0;
}
}
/deep/ .el-descriptions-item__container .el-descriptions-item__label {
font-weight: bold;
width: 100px;
text-align: right;
}
/deep/.el-tabs__content {
overflow: auto;
height: 500px;
padding-bottom: 20px;
}
.close {
width: 100%;
height: 40px;
line-height: 20px;
span {
display: inline-block;
width: 80px;
height: 30px;
line-height: 30px;
border: 1px solid grey;
border-radius: 5px;
} }
/deep/ }
.el-switch__core:after{ .setscrolldialog {
height: 17px; width: 100%;
top: 0; height: 550px;
overflow: auto;
box-sizing: border-box;
/deep/ .el-table {
width: 96% !important;
height: 550px;
overflow: auto;
} }
.dialog { }
.el-form{ /deep/ .el-switch__core:after {
border:none !important; height: 17px;
top: 0;
}
.dialog {
.el-form {
border: none !important;
border-top: none; border-top: none;
border-left: none; border-left: none;
border-right: none; border-right: none;
border-bottom: none; border-bottom: none;
} }
} }
.zjBtn { .zjBtn {
width: 400px; width: 400px;
text-align: left; text-align: left;
vertical-align: middle; vertical-align: middle;
...@@ -610,4 +857,42 @@ ...@@ -610,4 +857,42 @@
margin-left: 10px; margin-left: 10px;
} }
} }
</style> .midBtn {
\ No newline at end of file margin: 0 auto;
height: 50px;
line-height: 50px;
span {
display: inline-block;
width: 80px;
height: 25px;
line-height: 25px;
text-align: center;
margin-right: 10px;
border-radius: 5px;
}
span:first-of-type {
border: 1px solid grey;
}
span:last-of-type {
background-color: #4ca6a7;
color: #fff;
}
}
.tips {
margin-left: 19vw;
height: 1000px;
// margin-top: 30vh;
}
.bjrule {
height: 200px;
padding-top: 50px;
padding-bottom: 50px;
position: relative;
}
.bjBtn {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!