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: [] },
// ], ],
// }, },
// ], ],
// }, },
] ]
} }
} }
......
...@@ -7,22 +7,13 @@ ...@@ -7,22 +7,13 @@
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
<el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
<el-form-item label="项目环节:" prop="projectStage" class="fromItem"> <el-select
<el-select v-model="ruleForm.projectStage" placeholder="请选择" clearable> v-model="ruleForm.ruleStatus"
<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> >
<el-option label="执行" value="5"></el-option>
<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="0"></el-option>
<el-option label="关闭" value="1"></el-option> <el-option label="关闭" value="1"></el-option>
</el-select> </el-select>
...@@ -33,10 +24,12 @@ ...@@ -33,10 +24,12 @@
v-model="ruleForm.creator" v-model="ruleForm.creator"
placeholder="请输入" placeholder="请输入"
clearable clearable
@input="numberVal"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="创建时间:" prop="createTime" class="fromItem"> <!-- <el-form-item label="创建时间:" prop="createTime" class="fromItem">
<el-date-picker <el-date-picker
@input="numberVal"
@change="timeChange" @change="timeChange"
v-model="ruleForm.dates" v-model="ruleForm.dates"
style="width: 240px" style="width: 240px"
...@@ -47,6 +40,15 @@ ...@@ -47,6 +40,15 @@
end-placeholder="结束日期" end-placeholder="结束日期"
></el-date-picker> ></el-date-picker>
</el-form-item> --> </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-form-item class="button">
<el-button @click="submitForm()"> <el-button @click="submitForm()">
...@@ -58,6 +60,9 @@ ...@@ -58,6 +60,9 @@
<el-button @click="detailsForm()"> <el-button @click="detailsForm()">
<img class="buttonIcon" src="../../assets/ck.png" />详情</el-button <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-item>
</el-form> </el-form>
<div class="setscrollOne"> <div class="setscrollOne">
...@@ -75,19 +80,40 @@ ...@@ -75,19 +80,40 @@
<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 type="selection"> </el-table-column>
<el-table-column label="项目环节" prop="projectStagetext"> </el-table-column> <!-- <el-table-column prop="projectStagetext" label="项目环节" >
<el-table-column prop="quesCheckItem" label="问题检查项" show-overflow-tooltip> </el-table-column> -->
<el-table-column label="规则名称" prop="ruleName" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="检查说明" prop="checkDesc" show-overflow-tooltip> </el-table-column> <el-table-column prop="ruleStatus" label="规则状态">
<el-table-column label="判断规则" prop="fullRule" show-overflow-tooltip> </el-table-column> <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> </el-table>
</div> </div>
<el-pagination <el-pagination
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="currentPage" :current-page="currentPage"
:page-sizes="[10, 15, 20, 50,100]" :page-sizes="[10, 15, 20, 50, 100]"
:page-size="1000" :page-size="1000"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
...@@ -108,47 +134,44 @@ ...@@ -108,47 +134,44 @@
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
<el-form-item label="项目环节:" prop="projectStagetext" class="fromItem"> <el-form-item label="规则名称:" prop="ruleName" class="fromItem">
<el-input v-model="ruleFormdialog.projectStagetext" placeholder="请输入" disabled></el-input> <el-input
</el-form-item> v-model="ruleFormdialog.ruleName"
<el-form-item label="问题检查项:" prop="quesCheckItem" class="fromItem"> placeholder="请输入"
<el-input v-model="ruleFormdialog.quesCheckItem" placeholder="请输入" disabled></el-input> clearable
</el-form-item> @input="numberVal"
<el-form-item label="检查说明:" prop="checkDesc" class="fromItem"> disabled
<el-input v-model="ruleFormdialog.checkDesc" placeholder="请输入" type="textarea" disabled></el-input> ></el-input>
</el-form-item>
<!-- <el-form-item label="规则名称:" prop="ruleName" class="fromItem">
<el-input v-model="ruleFormdialog.ruleName" placeholder="请输入" disabled></el-input>
</el-form-item>
<el-form-item label="规则类型:" prop="ruleType" class="fromItem">
<el-input v-model="ruleFormdialog.ruleType" placeholder="请输入" disabled></el-input>
</el-form-item>
<el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
<el-select v-model="ruleFormdialog.ruleStatus" placeholder="请选择" disabled>
<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="ruleFormdialog.creator" v-model="ruleFormdialog.creator"
placeholder="请输入" placeholder="请输入"
clearable
@input="numberVal"
disabled 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-switch
<el-date-picker
v-model="ruleFormdialog.createTime"
type="date"
disabled disabled
placeholder="选择日期"> v-model="ruleFormdialog.ruleStatus"
</el-date-picker> active-color="#13ce66"
</el-form-item> --> inactive-color="#C0C0C0"
active-value="0"
inactive-value="1"
active-text=""
inactive-text=""
>
<template v-slot:active>
<span>开启</span>
</template>
<template v-slot:inactive>
<span>关闭</span>
</template>
</el-switch>
</el-form-item>
</el-form> </el-form>
<p class="zjBtn">判断规则名称</p>
<div class="setscrolldialogAdd"> <div class="setscrolldialogAdd">
<el-table <el-table
:data="tableDataXQ" :data="tableDataXQ"
...@@ -161,24 +184,87 @@ ...@@ -161,24 +184,87 @@
> >
<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="ruleName"> 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>
<el-table-column label="详细列表" prop="checkDesc">
<template slot-scope="scope"> <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>
</div>
<el-pagination
@size-change="handleSizeChangeXQ"
@current-change="handleCurrentChangeXQ"
:current-page="XQcurrentPage"
:page-sizes="[5, 10, 20, 50]"
:page-size="1000"
layout="total, sizes, prev, pager, next, jumper"
:total="totalXQ"
class="elpagination"
>
</el-pagination>
<p class="close"><span @click="cancel()">关闭</span></p>
</el-dialog>
<!-- 新增弹窗 -->
<el-dialog
title="添加检查规则"
:visible.sync="dialogAdd"
width="90%"
:modal-append-to-body="false"
:append-to-body="false"
>
<div class="dialog">
<el-form
ref="formNameAD"
:model="ruleFormdialogAdd"
label-width="100px"
class="demo-ruleForm"
:rules="rules"
>
<el-form-item label="规则名称:" prop="ruleName" class="fromItem">
<el-input
v-model="ruleFormdialogAdd.ruleName"
placeholder="请输入"
clearable
@input="numberVal"
></el-input>
</el-form-item>
<el-form-item label="创建人:" prop="creator" class="fromItem">
<el-input
v-model="ruleFormdialogAdd.creator"
placeholder="请输入"
clearable
@input="numberVal"
></el-input>
</el-form-item>
<el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
<el-switch <el-switch
v-model="scope.row.ruleStatus" v-model="ruleFormdialogAdd.ruleStatus"
active-color="#13ce66" active-color="#13ce66"
inactive-color="#C0C0C0" inactive-color="#C0C0C0"
active-value="0" active-value="0"
inactive-value="1" inactive-value="1"
active-text="" active-text=""
inactive-text="" inactive-text=""
disabled
> >
<template v-slot:active> <template v-slot:active>
<span>开启</span> <span>开启</span>
...@@ -187,51 +273,108 @@ ...@@ -187,51 +273,108 @@
<span>关闭</span> <span>关闭</span>
</template> </template>
</el-switch> </el-switch>
</template> </el-form-item>
</el-form>
<p class="zjBtn">检查规则编制</p>
<div class="setscrolldialog">
<el-table
:data="tableDataQR"
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="材料类别" prop="projectStagetext" width="100">
</el-table-column> -->
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column
label="问题检查项"
prop="quesCheckItem"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label="检查说明"
prop="checkDesc"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="creator" label="创建人"> </el-table-column> <!-- v-if="scope.row.questionId==1" -->
<el-table-column prop="createTime" label="创建时间"> <el-table-column prop="lishi" label="操作" width="100">
<template slot-scope="scope">
<el-button
size="small"
v-if="scope.row.questionId == 1"
type="primary"
class="btn-search"
@click="edit(scope.row,scope.$index)"
>
编制
</el-button>
</template>
</el-table-column> </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="检查规则编制"
:visible.sync="dialogedit"
width="60%"
class="tips"
:modal-append-to-body="false"
:append-to-body="false"
> >
</el-pagination> <div class="bjrule">
<p class="close"><span @click="cancel()">关闭</span></p> <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> </el-dialog>
</div> </div>
</template> </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 {
editIndex:99999999,
checkList: [],
tableDataQR: [],
ruleFormdialogAdd: {},
listData: {}, listData: {},
qdtableData: JSON.parse(JSON.stringify(MaterialsList())), qdtableData: JSON.parse(JSON.stringify(MaterialsList())),
tableDataNew:MaterialsList(), tableDataNew: MaterialsList(),
xxtableData:[], xxtableData: [],
showButton: true, showButton: true,
ruleForm: { ruleForm: {},
batchYear: "",
batchName: "",
postEvalState: "",
projectName: "",
projectId: "",
// dates:[]
},
ruleFormdialog: { ruleFormdialog: {
batchYear: "", batchYear: "",
batchName: "", batchName: "",
...@@ -250,23 +393,114 @@ ...@@ -250,23 +393,114 @@
dialog: false, dialog: false,
activeName: "first", activeName: "first",
mergingRows: [], mergingRows: [],
lctableData:[], lctableData: [],
tableDataXQ:[], tableDataXQ: [],
totalXQ:0, totalXQ: 0,
pageSizeXQ: 5, pageSizeXQ: 5,
XQcurrentPage: 1, XQcurrentPage: 1,
dialogAdd: false,
dialogedit: false,
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() { mounted() {
this.submitForm(); this.submitForm();
}, },
methods: { 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;
},
//点击编辑
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) { 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 = "";
} }
...@@ -279,31 +513,31 @@ ...@@ -279,31 +513,31 @@
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;
} }
}, },
...@@ -313,7 +547,7 @@ ...@@ -313,7 +547,7 @@
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();
}, },
//详情 //详情
...@@ -322,17 +556,16 @@ ...@@ -322,17 +556,16 @@
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;
}, },
//表格颜色 //表格颜色
...@@ -356,37 +589,52 @@ ...@@ -356,37 +589,52 @@
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`);
this.pageSize = val; this.pageSize = val;
this.submitForm() this.submitForm();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`);
this.currentPage = val; this.currentPage = val;
this.submitForm() this.submitForm();
}, },
cancel() { cancel() {
this.dialog = false; this.dialog = false;
}, },
handleSizeChangeXQ(val) { 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;
if(Array.isArray(this.checkList)){
this.configInfo= this.checkList.sort().join();
}
if(this.configInfo){
this.tableDataQR[this.editIndex].configValue=this.configInfo
}
console.log("选了什么", this.configInfo);
},
},
};
</script>
<style scoped lang="scss"> <style scoped lang="scss">
.main { .main {
font-size: 14px; font-size: 14px;
position: relative; position: relative;
height: 100%; height: 100%;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
overflow-x: hidden; overflow-x: hidden;
} }
.el-form { .el-form {
display: flex; display: flex;
width: 100%; width: 100%;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -437,34 +685,34 @@ ...@@ -437,34 +685,34 @@
color: #fff; color: #fff;
} }
} }
} }
.eltable { .eltable {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
/deep/ .el-table .warning-row { /deep/ .el-table .warning-row {
background: #f0ffff; background: #f0ffff;
// color: #2785e6; // color: #2785e6;
} }
.elpagination { .elpagination {
text-align: center; text-align: center;
margin-right: 100px; margin-right: 100px;
} }
/deep/ .el-dialog { /deep/ .el-dialog {
border-radius: 10px; border-radius: 10px;
margin-top: 3vh !important; margin-top: 3vh !important;
margin-left: 3vw !important; margin-left: 3vw !important;
// height: 500px; // height: 500px;
// box-sizing: border-box; // box-sizing: border-box;
// overflow-y: auto; // overflow-y: auto;
} }
/deep/ .el-dialog__wrapper { /deep/ .el-dialog__wrapper {
position: absolute; position: absolute;
} }
/deep/ .v-modal { /deep/ .v-modal {
position: absolute; position: absolute;
} }
/deep/ .el-dialog__header { /deep/ .el-dialog__header {
background-color: #0d867f; background-color: #0d867f;
// padding-bottom: 20px; // padding-bottom: 20px;
text-align: left; text-align: left;
...@@ -472,16 +720,16 @@ ...@@ -472,16 +720,16 @@
.el-dialog__title { .el-dialog__title {
color: #fff; color: #fff;
} }
} }
/deep/ .el-table__header th { /deep/ .el-table__header th {
background-color: #f5f5f5; background-color: #f5f5f5;
font-weight: bold; font-weight: bold;
.cell { .cell {
color: #333; color: #333;
} }
} }
/deep/.el-table { /deep/.el-table {
width: 100%; width: 100%;
.el-table__header-wrapper table, .el-table__header-wrapper table,
.el-table__body-wrapper table { .el-table__body-wrapper table {
...@@ -492,15 +740,15 @@ ...@@ -492,15 +740,15 @@
.el-table__header { .el-table__header {
table-layout: auto; table-layout: auto;
} }
} }
.textarea { .textarea {
width: 100%; width: 100%;
.el-textarea { .el-textarea {
width: 60%; width: 60%;
} }
} }
.Btn { .Btn {
width: 200px; width: 200px;
margin: 0 auto; margin: 0 auto;
span { span {
...@@ -520,39 +768,39 @@ ...@@ -520,39 +768,39 @@
border: 1px solid #0d867f; border: 1px solid #0d867f;
color: #fff; color: #fff;
} }
} }
/deep/ .el-dialog__headerbtn .el-dialog__close { /deep/ .el-dialog__headerbtn .el-dialog__close {
color: #fff; color: #fff;
} }
/deep/.el-table th.el-table__cell.is-leaf, /deep/.el-table th.el-table__cell.is-leaf,
.el-table td.el-table__cell { .el-table td.el-table__cell {
text-align: center; text-align: center;
} }
/deep/ .el-table__cell { /deep/ .el-table__cell {
text-align: center; text-align: center;
} }
h3 { h3 {
text-align: left; text-align: left;
} }
/deep/.el-dialog__body { /deep/.el-dialog__body {
padding: 0 10px; padding: 0 10px;
h3 { h3 {
margin: 10px 0; margin: 10px 0;
} }
} }
/deep/ .el-descriptions-item__container .el-descriptions-item__label { /deep/ .el-descriptions-item__container .el-descriptions-item__label {
font-weight: bold; font-weight: bold;
width: 100px; width: 100px;
text-align: right; text-align: right;
} }
/deep/.el-tabs__content { /deep/.el-tabs__content {
overflow: auto; overflow: auto;
height: 500px; height: 500px;
padding-bottom: 20px; padding-bottom: 20px;
} }
.close { .close {
width: 100%; width: 100%;
height: 40px; height: 40px;
line-height: 20px; line-height: 20px;
...@@ -564,33 +812,32 @@ ...@@ -564,33 +812,32 @@
border: 1px solid grey; border: 1px solid grey;
border-radius: 5px; border-radius: 5px;
} }
} }
.setscrolldialog { .setscrolldialog {
width: 100%; width: 100%;
height: 300px; height: 550px;
overflow: auto; overflow: auto;
box-sizing: border-box; box-sizing: border-box;
/deep/ .el-table { /deep/ .el-table {
width: 96% !important; width: 96% !important;
height: 300px; height: 550px;
overflow: auto; overflow: auto;
} }
} }
/deep/ /deep/ .el-switch__core:after {
.el-switch__core:after{
height: 17px; height: 17px;
top: 0; top: 0;
} }
.dialog { .dialog {
.el-form{ .el-form {
border:none !important; 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!