Commit c339a8a7 by liangzhen

暂存

1 parent 902b1c71
......@@ -299,10 +299,7 @@ export function RectificationFeedbackQuery(params) {
// export function ruleFormulation(params) {
// return post(`${ARCH_EVALUATION}/ruleFormulation/ipage`, params)
// }
// //详情
// export function iPageRorm(params) {
// return post(`${ARCH_EVALUATION}/ruleFormulation/iPageRorm`, params)
// }
//分页
......@@ -321,6 +318,14 @@ export function addSelWtqd(params) {
export function addruleFormulation(params) {
return post(`${ARCH_EVALUATION}/ruleFormulation/addRuleFormulation`, params)
}
//编辑
export function updateRuleFormulation(params) {
return post(`${ARCH_EVALUATION}/ruleFormulation/updateRuleFormulation`, params)
}
//查询编辑信息
export function updateSelWtqd(params) {
return post(`${ARCH_EVALUATION}/ruleFormulation/updateSelWtqd`, params)
}
//编制
export function addiPageRorm(params) {
......@@ -343,6 +348,10 @@ export function addauditTasks(params) {
export function qidongTasks(params) {
return post(`${ARCH_EVALUATION}/auditTasks/qidong`, params)
}
//执行
export function qidongZx(params) {
return post(`${ARCH_EVALUATION}/auditTasks/qidongZx`, params)
}
//查询关联规则
export function selRuleProject(params) {
return post(`${ARCH_EVALUATION}/auditTasks/selRule`, params)
......@@ -497,3 +506,5 @@ export function postEvalQuesInfocxtj(params) {
export function zgqdauditTasks(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/zgqd`, params)
}
......@@ -350,11 +350,11 @@ export function trendsRules(type) {
children: [
{ name: '合规检查结果', url: '/projectCheck/checkResault', children: [] },
{ name: '合规问题整改', url: '/projectCheck/problemRectify', children: [] },
{
name: '合规问题整改核验',
url: '/projectCheck/verificationRectify',
children: [],
},
// {
// name: '合规问题整改核验',
// url: '/projectCheck/verificationRectify',
// children: [],
// },
],
},
],
......
......@@ -101,6 +101,22 @@
<el-button type="text" size="small" @click="detailsForm(scope.row)">{{scope.row.abnormalResults}}</el-button>
</template>
</el-table-column>
<el-table-column
prop="rectificationStatusText"
label="问题状态"
>
</el-table-column>
<!-- <el-table-column label="操作" width="130">
<template slot-scope="scope">
<el-button
@click="handleClick(scope.row, scope.$index)"
type="text"
size="small"
:disabled="scope.row.rectificationStatusText=='已下发'"
>下发</el-button
>
</template>
</el-table-column> -->
</el-table>
</div>
<el-pagination
......@@ -195,7 +211,7 @@
</template>
<script>
import { auditTasksResults, xqauditTasksResults } from "@/api/index";
import { auditTasksResults, xqauditTasksResults,wtxfResults } from "@/api/index";
import { generateYearOptions, projectCategoryText } from "@/utils/cache";
import tableMixin from '@/mixins/table.mixin.js'
export default {
......@@ -224,9 +240,39 @@ export default {
};
},
mounted() {
this.ruleForm.auditName = this.$route.query.auditName
this.submitForm();
},
methods: {
async handleClick(row){
this.$confirm("是否确认下发?", "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
distinguishCancelAndClose: true,
type: "warning",
})
.then(async () => {
// this.checkedList.forEach(item=>{
// if(item.confirmStatusText == "已下发") {
// this.$message.error("请选择未下发的项目");
// throw new Error("主动跳出循环");
// }
// })
let res = await wtxfResults(row);
if (res.code == 200) {
this.$message({
message: '下发成功',
type: 'success'
});
this.dialogXF = false;
this.resetForm();
}
})
.catch((action) => {});
},
timeChange(time) {
if (time) {
//给后端的参数
......@@ -252,16 +298,12 @@ export default {
if (res.code == "200") {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if (item.auditFrequency == 0) {
this.$set(item, "auditFrequencyText", "仅一次");
} else if (item.auditFrequency == 1) {
this.$set(item, "auditFrequencyText", "每周");
} else if (item.auditFrequency == 2) {
this.$set(item, "auditFrequencyText", "每月");
} else if (item.auditFrequency == 3) {
this.$set(item, "auditFrequencyText", "每季度");
} else if (item.auditFrequency == 4) {
this.$set(item, "auditFrequencyText", "每年");
if(item.confirmStatus ==1||!item.confirmStatus){
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,
......@@ -287,7 +329,7 @@ export default {
this.checkedList[0]=info
}else{
if (this.checkedList.length != 1) {
this.$message("请选择");
this.$message.error("请选择");
return;
}
}
......
......@@ -16,14 +16,14 @@
></el-input>
</el-form-item>
<el-form-item label="创建人:" prop="creator" class="fromItem">
<!-- <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> -->
</el-form>
<p class="zjBtn">
稽核规则<span @click="checkRules()">选择稽核规则</span>
......@@ -46,23 +46,7 @@
</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>
<span>{{ scope.row.ruleStatus==1?"未开启":"已开启" }}</span>
</template>
</el-table-column>
<el-table-column label="创建人" prop="creator"> </el-table-column>
......@@ -325,18 +309,6 @@
clearable
></el-input>
</el-form-item>
<!-- <el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
<el-select
v-model="ruleFormRule.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="ruleFormRule.creator"
......@@ -369,23 +341,7 @@
</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>
<span>{{ scope.row.ruleStatus==1?"未开启":"已开启" }}</span>
</template>
</el-table-column>
<el-table-column label="创建人" prop="creator"> </el-table-column>
......@@ -463,17 +419,17 @@ export default {
trigger: "blur",
},
],
creator: [
{
required: true,
message: "请输入稽核名称",
trigger: "change",
},
{
validator: this.validateNoWhitespace,
trigger: "blur",
},
],
// creator: [
// {
// required: true,
// message: "请输入稽核名称",
// trigger: "change",
// },
// {
// validator: this.validateNoWhitespace,
// trigger: "blur",
// },
// ],
},
pageSizeZJ: 10,
......@@ -568,6 +524,7 @@ export default {
auditStatus:0,
contractNumber:contractList.slice(0, -1),
createTime:getCurrentDate(),
creator:sessionStorage.getItem('authorName')
};
......
......@@ -66,9 +66,9 @@
<el-button @click="resetForm()">
<img class="buttonIcon" src="../../assets/cz.png" />重置</el-button
>
<el-button @click="detailsForm()">
<!-- <el-button @click="detailsForm()">
<img class="buttonIcon" src="../../assets/ck.png" />详情</el-button
>
> -->
</el-form-item>
</el-form>
<div class="setscrollOne">
......@@ -101,6 +101,28 @@
<el-button type="text" size="small" @click="detailsForm(scope.row)">{{scope.row.abnormalResults}}</el-button>
</template>
</el-table-column>
<el-table-column
prop="rectificationStatusText"
label="问题状态"
>
</el-table-column>
<el-table-column label="操作" width="130">
<template slot-scope="scope">
<el-button
@click="handleClick(scope.row, scope.$index)"
type="text"
size="small"
:disabled="scope.row.rectificationStatusText!='未下发'"
>下发</el-button
>
<el-button
@click="detailsForm(scope.row, scope.$index)"
type="text"
size="small"
>详情</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<el-pagination
......@@ -195,7 +217,7 @@
</template>
<script>
import { auditTasksResults, xqauditTasksResults } from "@/api/index";
import { auditTasksResults, xqauditTasksResults,wtxfResults } from "@/api/index";
import { generateYearOptions, projectCategoryText } from "@/utils/cache";
import tableMixin from '@/mixins/table.mixin.js'
export default {
......@@ -224,9 +246,39 @@ export default {
};
},
mounted() {
this.ruleForm.auditName = this.$route.query.auditName
this.submitForm();
},
methods: {
async handleClick(row){
this.$confirm("是否确认下发?", "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
distinguishCancelAndClose: true,
type: "warning",
})
.then(async () => {
// this.checkedList.forEach(item=>{
// if(item.confirmStatusText == "已下发") {
// this.$message.error("请选择未下发的项目");
// throw new Error("主动跳出循环");
// }
// })
let res = await wtxfResults(row);
if (res.code == 200) {
this.$message({
message: '下发成功',
type: 'success'
});
this.dialogXF = false;
this.resetForm();
}
})
.catch((action) => {});
},
timeChange(time) {
if (time) {
//给后端的参数
......@@ -252,16 +304,12 @@ export default {
if (res.code == "200") {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if (item.auditFrequency == 0) {
this.$set(item, "auditFrequencyText", "仅一次");
} else if (item.auditFrequency == 1) {
this.$set(item, "auditFrequencyText", "每周");
} else if (item.auditFrequency == 2) {
this.$set(item, "auditFrequencyText", "每月");
} else if (item.auditFrequency == 3) {
this.$set(item, "auditFrequencyText", "每季度");
} else if (item.auditFrequency == 4) {
this.$set(item, "auditFrequencyText", "每年");
if(item.confirmStatus ==1||!item.confirmStatus){
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,
......@@ -285,13 +333,7 @@ export default {
async detailsForm(info) {
if(info){
this.checkedList[0]=info
}else{
if (this.checkedList.length != 1) {
this.$message.error("请选择");
return;
}
}
// console.log(this.checkedList[0],'22222334')
this.ruleFormdialogXQ = this.checkedList[0];
let params = {
current: this.currentPageXQ,
......
......@@ -78,7 +78,7 @@
<el-button @click="resetForm()">
<img class="buttonIcon" src="../../assets/cz.png" />重置</el-button
>
<el-button @click="detailsForm('xq')">
<!-- <el-button @click="detailsForm('xq')">
<img class="buttonIcon" src="../../assets/ck.png" />详情</el-button
>
<el-button @click="zgqdauditTasks('xf')"
......@@ -86,7 +86,7 @@
:class="confirmdisabled ? 'noclick' : ''">
<i class="el-icon-document-remove"></i
>&nbsp;&nbsp;&nbsp;整改确认</el-button
>
> -->
</el-form-item>
</el-form>
<div class="setscroll">
......@@ -104,7 +104,7 @@
>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column type="selection"> </el-table-column>
<!-- <el-table-column type="selection"> </el-table-column> -->
<el-table-column label="稽核名称" prop="auditName" width="320"> </el-table-column>
<el-table-column prop="auditTime" label="稽核时间" width="250">
</el-table-column>
......@@ -140,6 +140,23 @@
<span v-else>{{ scope.row.rectificationStatusText }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="130">
<template slot-scope="scope">
<el-button
@click="zgqdauditTasks(scope.row, scope.$index)"
type="text"
size="small"
:disabled="scope.row.rectificationStatusText!='去整改'"
>整改确认</el-button
>
<el-button
@click="detailsForm(scope.row, scope.$index)"
type="text"
size="small"
>详情</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<el-pagination
......@@ -462,12 +479,8 @@ export default {
this.ruleForm.dates=[]
this.submitForm();
},
async zgqdauditTasks(){
if (this.checkedList.length < 1) {
this.$message.error("请选择");
return;
}
let res = await zgqdauditTasks(this.checkedList[0]);
async zgqdauditTasks(row){
let res = await zgqdauditTasks(row);
if(res.code==200){
this.$message({
message: '整改确认完成',
......@@ -477,17 +490,11 @@ export default {
this.$message.error('整改确认失败')
}
this.resetForm()()
this.resetForm()
},
//详情
async detailsForm(info) {
if (this.checkedList.length != 1) {
this.$message.error("请选择");
return;
}
console.log(this.checkedList[0],'22222334')
this.checkedList[0]=info
this.ruleFormdialogXQ = this.checkedList[0];
let params = {
auditId: this.checkedList[0].auditId,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!