Commit e0e02e07 by liangzhen

暂存

1 parent 783f4652
......@@ -492,3 +492,8 @@ export function postEvalQuesInfoTh(params) {
export function postEvalQuesInfocxtj(params) {
return post(`${ARCH_EVALUATION}/postEvalQuesInfo/cxtj`, params)
}
//整改确认接口
export function zgqdauditTasks(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/zgqd`, params)
}
\ No newline at end of file
......@@ -82,9 +82,6 @@
</el-table-column> -->
<el-table-column label="后评估批次状态" prop="link">
<template v-slot="scope">
<!-- <router-link :to="`/mainLayout/assistedViewing/${scope.row.id}`">
<el-button type="text" size="small">{{scope.row.postEvalStateText}}</el-button>
</router-link> -->
<router-link
:to="{
path: '/assesszc/auxiliaryInspection',
......
......@@ -385,6 +385,9 @@ export default {
if (this.$route.query.projectId) {
this.ruleForm.projectCode = this.$route.query.projectId
}
if (this.$route.query.contractNumber) {
this.ruleForm.contractNumber = this.$route.query.contractNumber
}
this.submitForm()
this.processenv = process.env.VUE_APP_BASE_URL
......
......@@ -12,7 +12,7 @@
v-model="ruleForm.ruleName"
placeholder="请输入"
clearable
@input="numberVal"
@change="numberVal"
></el-input>
</el-form-item>
<el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
......@@ -20,7 +20,7 @@
v-model="ruleForm.ruleStatus"
placeholder="请选择"
clearable
@input="numberVal"
@change="numberVal"
>
<el-option label="开启" value="0"></el-option>
<el-option label="关闭" value="1"></el-option>
......@@ -32,7 +32,7 @@
v-model="ruleForm.creator"
placeholder="请输入"
clearable
@input="numberVal"
@change="numberVal"
></el-input>
</el-form-item>
<!-- <el-form-item label="创建时间:" prop="createTime" class="fromItem">
......
......@@ -142,7 +142,7 @@
>
<div class="dialog">
<el-form
:model="ruleForm"
:model="ruleFormRule"
ref="ruleForm"
label-width="100px"
class="demo-ruleForm"
......@@ -159,7 +159,7 @@
v-model="ruleFormRule.ruleStatus"
placeholder="请选择"
clearable
@input="numberVal"
@change="numberVal"
>
<el-option label="开启" value="0"></el-option>
<el-option label="关闭" value="1"></el-option>
......@@ -171,7 +171,7 @@
v-model="ruleFormRule.creator"
placeholder="请输入"
clearable
@input="numberVal"
@change="numberVal"
></el-input>
</el-form-item>
<el-form-item class="RuleItem">
......@@ -558,7 +558,7 @@
v-model="ruleFormdialogBJ.creator"
placeholder="请输入"
clearable
@input="numberVal"
@change="numberVal"
></el-input>
</el-form-item>
<!-- <el-form-item label="稽核时间:" class="fromItem" prop="dates">
......
......@@ -84,11 +84,11 @@
<el-button @click="detailsForm('xq')">
<img class="buttonIcon" src="../../assets/ck.png" />详情</el-button
>
<el-button @click="detailsForm('xf')"
<el-button @click="zgqdauditTasks('xf')"
:disabled="confirmdisabled"
:class="confirmdisabled ? 'noclick' : ''">
<i class="el-icon-document-remove"></i
>&nbsp;&nbsp;&nbsp;整改提交</el-button
>&nbsp;&nbsp;&nbsp;整改确认</el-button
>
</el-form-item>
</el-form>
......@@ -127,7 +127,21 @@
</el-table-column>
<el-table-column prop="constructionForm" label="建设形式" width="200">
</el-table-column>
<el-table-column prop="contractNumber" label="合同编码" width="200">
</el-table-column>
<el-table-column prop="rectificationStatusText" label="问题整改状态">
<template v-slot="scope">
<router-link
v-if="scope.row.rectificationStatusText == '去整改'"
:to="{
path: '/assesszc/projectView',
query: { projectId: scope.row.projectId,contractNumber: scope.row.contractNumber},
}"
>
<el-button type="text" size="small">{{ scope.row.rectificationStatusText }}</el-button>
</router-link>
<span v-else>{{ scope.row.rectificationStatusText }}</span>
</template>
</el-table-column>
</el-table>
</div>
......@@ -144,7 +158,7 @@
</el-pagination>
<!-- 详情弹窗 -->
<el-dialog
title="稽核问题整改"
title="详情"
:visible.sync="dialog"
width="90%"
:modal-append-to-body="false"
......@@ -159,16 +173,17 @@
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-input v-model="ruleFormdialogXQ.auditName" disabled></el-input>
</el-form-item>
<el-form-item label="稽核时间:" class="fromItem" prop="dates">
<el-date-picker
v-model="ruleFormdialogXQ.auditTime"
value-format="yyyy-MM-dd hh:mm:ss"
disabled
></el-date-picker>
<el-form-item label="稽核时间:" class="fromItem" prop="auditTime">
<el-input v-model="ruleFormdialogXQ.auditTime" disabled></el-input>
</el-form-item>
<!-- <el-form-item label="项目编码:" class="fromItem" prop="projectId">
<el-input v-model="ruleFormdialogXQ.projectId" disabled></el-input>
</el-form-item> -->
<el-form-item label="项目名称:" class="fromItem" prop="projectName">
<el-input v-model="ruleFormdialogXQ.projectName" type="textarea" disabled></el-input>
</el-form-item>
</el-form>
<p class="zjBtn">稽核结果</p>
<p class="zjBtn">稽核异常项目清单</p>
<div class="setscroll">
<el-table
:data="XQtableData"
......@@ -181,59 +196,24 @@
>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column
label="项目名称"
width="auto"
prop="projectName"
label="问题检查项"
prop="quesCheckItem"
show-overflow-tooltip
>
</el-table-column>
<el-table-column label="规则名称" width="auto" prop="ruleName">
</el-table-column>
<!-- <el-table-column prop="ruleType" label="规则类型" width="auto">
</el-table-column> -->
<el-table-column label="问题申诉" width="auto">
<template slot-scope="scope">
<el-switch
v-model="scope.row.confirmStatus"
active-color="#C0C0C0"
inactive-color="#13ce66"
active-value="2"
inactive-value="1"
active-text="无异议"
inactive-text="有异议"
@change="controlSwitch($event, scope.row)"
disabled
>
<template v-slot:active>
<span>开启</span>
</template>
<template v-slot:inactive>
<span>关闭</span>
</template>
</el-switch>
</template>
</el-table-column>
<el-table-column prop="ruleType" label="申诉证明材料" width="auto">
<template
slot-scope="scope"
v-if="scope.row.confirmStatus == '1' && scope.row.sszmFileId"
<el-table-column
prop="questionValue"
label="问题描述"
width="auto"
show-overflow-tooltip
>
{{ scope.row.sszmFileName }}
<el-button @click="handleClickXZ(scope.row.sszmFileId,scope.row.sszmFileName)">下载</el-button>
</template>
</el-table-column>
<el-table-column prop="ruleType" label="问题解决佐证材料" width="auto">
<template
slot-scope="scope"
v-if="scope.row.sszzFileId"
>
{{ scope.row.sszzFileName}}
<el-button @click="handleClickXZ(scope.row.sszzFileId,scope.row.sszzFileName)">下载</el-button>
</template>
<el-table-column label="判断规则名称" width="auto" prop="ruleName">
</el-table-column>
<!-- <el-table-column prop="quesCheckItem" label="问题检查项" width="auto">
</el-table-column> -->
</el-table>
</div>
<!-- <el-pagination
......@@ -378,7 +358,9 @@ import {
savaauditRuleProjectLink,
tjTasksRuleProjectLink,
ossupload,
downloadObject
downloadObject,
zgqdauditTasks,
xqauditTasksResults
} from "@/api/index";
import { generateYearOptions,constructionFormText,ruleType } from "@/utils/cache";
import tableMixin from '@/mixins/table.mixin.js'
......@@ -445,18 +427,12 @@ export default {
if (res.code == "200") {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if(item.rectificationStatus ==0||!item.rectificationStatus){
if(item.confirmStatus ==1||!item.confirmStatus){
this.$set(item, "rectificationStatusText", "未下发");
}else if (item.rectificationStatus == 1 ) {
this.$set(item, "rectificationStatusText", "待整改");
} else if (item.rectificationStatus == 2) {
this.$set(item, "rectificationStatusText", "待提交");
} else if (item.rectificationStatus == 3) {
this.$set(item, "rectificationStatusText", "已提交");
} else if (item.rectificationStatus == 4) {
this.$set(item, "rectificationStatusText", "被退回");
} else if (item.rectificationStatus == 5) {
this.$set(item, "rectificationStatusText", "整改完成");
}else if (item.confirmStatus == 2 ) {
this.$set(item, "rectificationStatusText", "去整改");
} else if (item.confirmStatus == 3) {
this.$set(item, "rectificationStatusText", "已整改");
}
this.$set(
item,
......@@ -476,38 +452,38 @@ export default {
this.ruleForm.dates=[]
this.submitForm();
},
async zgqdauditTasks(){
let res = await zgqdauditTasks(this.checkedList[0]);
if(res.code==200){
this.$message('整改完成')
}else{
this.$message('整改失败')
}
this.resetForm()()
},
//详情
async detailsForm(type) {
async detailsForm(info) {
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
}
console.log(this.checkedList[0],'22222334')
this.ruleFormdialogXQ = this.checkedList[0];
let params = {
// current: this.currentPageXQ,
// pageSize: this.pageSizeXQ,
projectId: this.checkedList[0].projectId,
auditId: this.checkedList[0].auditId,
contractNumber: this.checkedList[0].contractNumber,
projectId:this.checkedList[0].projectId
};
let res = await xqRuleProjectLink(params);
let res = await xqauditTasksResults(params);
if (res.code == 200) {
this.ruleFormdialogXQ = this.checkedList[0];
this.XQtableData = res.data.records;
this.XQtableData.forEach((item) => {
if (
item.confirmStatus == 0 ||
item.confirmStatus == null ||
!item.confirmStatus
) {
this.$set(item, "confirmStatus", "2");
}
});
console.log(this.XQtableData, "XQtableDataXQtableData");
if (type == "xq") {
this.XQtableData = res.data.records;
console.log(this.XQtableData,'XQtableDataXQtableData')
this.dialog = true;
} else {
this.dialogXF = true;
}
}
},
......@@ -528,7 +504,7 @@ export default {
this.checkedList = this.$refs.multipleTable.selection;
if (this.checkedList[0]) {
this.ruleFormdialog = this.checkedList[0];
if (this.checkedList[0].rectificationStatusText != "待整改"&&this.checkedList[0].rectificationStatusText != "被退回"&&this.checkedList[0].rectificationStatusText != "待提交") {
if (this.checkedList[0].rectificationStatusText != "去整改") {
this.confirmdisabled = true;
}
}
......
......@@ -58,18 +58,15 @@
/>
</el-select>
</el-form-item>
<el-form-item label="问题状态:" prop="rectificationStatus" class="fromItem">
<el-form-item label="问题状态:" prop="confirmStatus" class="fromItem">
<el-select
v-model="ruleForm.rectificationStatus"
v-model="ruleForm.confirmStatus"
placeholder="请选择"
clearable
>
<el-option label="未下发" value="0"></el-option>
<el-option label="已下发" value="1"></el-option>
<el-option label="待提交" value="2"></el-option>
<el-option label="已提交" value="3"></el-option>
<el-option label="被退回" value="4"></el-option>
<el-option label="整改完成" value="5"></el-option>
<el-option label="未下发" value="1"></el-option>
<el-option label="已下发" value="2"></el-option>
<el-option label="已整改" value="3"></el-option>
</el-select>
</el-form-item>
......@@ -89,12 +86,12 @@
<i class="el-icon-document-remove"></i
>&nbsp;&nbsp;&nbsp;问题下发</el-button
>
<el-button @click="detailsForm('xf')"
<!-- <el-button @click="detailsForm('xf')"
:disabled="confirmdisabled"
:class="confirmdisabled ? 'noclick' : ''">
<i class="el-icon-document-remove"></i
>&nbsp;&nbsp;&nbsp;整改复核</el-button
>
> -->
</el-form-item>
</el-form>
<div class="setscroll">
......@@ -132,6 +129,8 @@
</el-table-column>
<el-table-column prop="constructionForm" label="建设形式" width="200">
</el-table-column>
<el-table-column prop="contractNumber" label="合同编码" width="200">
</el-table-column>
<el-table-column
prop="rectificationStatusText"
label="问题状态"
......@@ -152,7 +151,7 @@
</el-pagination>
<!-- 详情弹窗 -->
<el-dialog
title="稽核问题整改核验"
title="详情"
:visible.sync="dialog"
width="90%"
:modal-append-to-body="false"
......@@ -167,16 +166,17 @@
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-input v-model="ruleFormdialogXQ.auditName" disabled></el-input>
</el-form-item>
<el-form-item label="稽核时间:" class="fromItem" prop="dates">
<el-date-picker
v-model="ruleFormdialogXQ.auditTime"
value-format="yyyy-MM-dd hh:mm:ss"
disabled
></el-date-picker>
<el-form-item label="稽核时间:" class="fromItem" prop="auditTime">
<el-input v-model="ruleFormdialogXQ.auditTime" disabled></el-input>
</el-form-item>
<!-- <el-form-item label="项目编码:" class="fromItem" prop="projectId">
<el-input v-model="ruleFormdialogXQ.projectId" disabled></el-input>
</el-form-item> -->
<el-form-item label="项目名称:" class="fromItem" prop="projectName">
<el-input v-model="ruleFormdialogXQ.projectName" type="textarea" disabled></el-input>
</el-form-item>
</el-form>
<p class="zjBtn">稽核结果</p>
<p class="zjBtn">稽核异常项目清单</p>
<div class="setscroll">
<el-table
:data="XQtableData"
......@@ -189,80 +189,24 @@
>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column
label="项目名称"
width="auto"
prop="projectName"
label="问题检查项"
prop="quesCheckItem"
show-overflow-tooltip
>
</el-table-column>
<el-table-column label="规则名称" width="auto" prop="ruleName">
</el-table-column>
<el-table-column label="问题申诉" width="auto" v-if="checkedList[0]&&checkedList[0].rectificationStatus==5">
<template slot-scope="scope">
<el-switch
disabled
v-model="scope.row.confirmStatus"
active-color="#C0C0C0"
inactive-color="#13ce66"
active-value="2"
inactive-value="1"
active-text="无异议"
inactive-text="有异议"
@change="controlSwitch($event, scope.row)"
>
<template v-slot:active>
<span>开启</span>
</template>
<template v-slot:inactive>
<span>关闭</span>
</template>
</el-switch>
</template>
</el-table-column>
<el-table-column prop="ruleType" label="申诉证明材料" width="auto" v-if="checkedList[0]&&checkedList[0].rectificationStatus==5">
<template
slot-scope="scope"
v-if="scope.row.confirmStatus == '1' && scope.row.sszmFileId"
>
{{ scope.row.sszmFileName }}
<el-button @click="handleClickXZ(scope.row.sszmFileId,scope.row.sszmFileName)">下载</el-button>
</template>
</el-table-column>
<el-table-column
prop="ruleType"
label="问题解决佐证材料"
prop="questionValue"
label="问题描述"
width="auto"
v-if="checkedList[0]&&checkedList[0].rectificationStatus==5"
>
<template
slot-scope="scope"
v-if="scope.row.confirmStatus == '1' && scope.row.sszzFileId"
show-overflow-tooltip
>
{{ scope.row.sszzFileName}}
<el-button @click="handleClickXZ(scope.row.sszzFileId,scope.row.sszzFileName)">下载</el-button>
</template>
</el-table-column>
<el-table-column
prop="zgfhStatus"
label="问题整改复核"
width="auto"
v-if="checkedList[0]&&checkedList[0].rectificationStatus==5"
>
<template slot-scope="scope">
<el-select
v-model="scope.row.zgfhStatus"
placeholder="请选择"
disabled
>
<el-option label="问题关闭" value="0"></el-option>
<el-option label="问题未整改" value="1"></el-option>
<el-option label="申诉不满足要求" value="2"></el-option>
</el-select>
</template>
<el-table-column label="判断规则名称" width="auto" prop="ruleName">
</el-table-column>
<!-- <el-table-column prop="quesCheckItem" label="问题检查项" width="auto">
</el-table-column> -->
</el-table>
</div>
<!-- <el-pagination
......@@ -422,7 +366,8 @@ import {
tjRuleProjectLink,
ossupload,
downloadObject,
wtxfResults
wtxfResults,
xqauditTasksResults
} from "@/api/index";
import { generateYearOptions, constructionFormText } from "@/utils/cache";
import tableMixin from '@/mixins/table.mixin.js'
......@@ -483,18 +428,12 @@ export default {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if(item.rectificationStatus ==0||!item.rectificationStatus){
if(item.confirmStatus ==1||!item.confirmStatus){
this.$set(item, "rectificationStatusText", "未下发");
}else if (item.rectificationStatus == 1 ) {
}else if (item.confirmStatus == 2 ) {
this.$set(item, "rectificationStatusText", "已下发");
} else if (item.rectificationStatus == 2) {
this.$set(item, "rectificationStatusText", "待提交");
} else if (item.rectificationStatus == 3) {
this.$set(item, "rectificationStatusText", "已提交");
} else if (item.rectificationStatus == 4) {
this.$set(item, "rectificationStatusText", "被退回");
} else if (item.rectificationStatus == 5) {
this.$set(item, "rectificationStatusText", "整改完成");
} else if (item.confirmStatus == 3) {
this.$set(item, "rectificationStatusText", "已整改");
}
this.$set(
item,
......@@ -516,42 +455,29 @@ export default {
this.submitForm();
},
//详情
async detailsForm(type) {
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
}
let params = {
// current: this.currentPageXQ,
// pageSize: this.pageSizeXQ,
projectId: this.checkedList[0].projectId,
auditId: this.checkedList[0].auditId,
};
let res = await zgxqRuleProjectLink(params);
if (res.code == 200) {
this.ruleFormdialogXQ = this.checkedList[0];
this.XQtableData = res.data.records;
this.XQtableData.forEach((item) => {
if (
item.confirmStatus == 0 ||
item.confirmStatus == null ||
!item.confirmStatus
) {
this.$set(item, "confirmStatus", "2");
}
// if(!item.zgfhStatus){
// this.$set(item, "zgfhStatus", "1");
// }
});
async detailsForm(info) {
console.log(this.XQtableData, "XQtableDataXQtableData");
if (type == "xq") {
this.dialog = true;
} else {
this.dialogXF = true;
}
}
},
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
}
console.log(this.checkedList[0],'22222334')
this.ruleFormdialogXQ = this.checkedList[0];
let params = {
auditId: this.checkedList[0].auditId,
contractNumber: this.checkedList[0].contractNumber,
projectId:this.checkedList[0].projectId
};
let res = await xqauditTasksResults(params);
if (res.code == 200) {
this.XQtableData = res.data.records;
console.log(this.XQtableData,'XQtableDataXQtableData')
this.dialog = true;
}
},
//表格颜色
tableRowClassName({ row, rowIndex }) {
......@@ -663,17 +589,17 @@ export default {
}
})
let prjStrList = "";
let auditId = "";
this.checkedList.forEach((item) => {
prjStrList = prjStrList.concat(item.projectId + ",");
auditId = auditId.concat(item.auditId + ",");
});
let params = {
auditStr: auditId,
prjStr: prjStrList,
};
let res = await wtxfResults(params);
// let prjStrList = "";
// let auditId = "";
// this.checkedList.forEach((item) => {
// prjStrList = prjStrList.concat(item.projectId + ",");
// auditId = auditId.concat(item.auditId + ",");
// });
// let params = {
// auditStr: auditId,
// prjStr: prjStrList,
// };
let res = await wtxfResults(this.checkedList[0]);
if (res.code == 200) {
this.$message("下发成功");
this.dialogXF = false;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!