Commit 49c88ed5 by liangzhen

暂存一下

1 parent e11e542e
......@@ -5,6 +5,6 @@ const SystemConfig = {
PUBLIC_PATH: '/api',
VUE_APP_BASE_URL: "http://25.66.210.41/tools",
// VUE_APP_BASE_URL: "http://192.168.27.116:18000/tools",
// VUE_APP_BASE_URL: "http://192.168.231.1:18000//tools",
VUE_APP_ZJ_IFRAME: "http://25.66.210.41/arch"
};
......@@ -162,7 +162,7 @@
<el-table-column label="单位" width="auto" prop="orgName"> </el-table-column>
<el-table-column prop="talentName" label="专家姓名" width="auto"> </el-table-column>
<el-table-column prop="id" label="专家编号" width="auto"> </el-table-column>
<!-- <el-table-column prop="id" label="专家编号" width="auto"> </el-table-column> -->
<el-table-column prop="sex" label="性别" width="auto">
<template slot-scope="scope">{{ scope.row.sex | filtergender }}</template>
</el-table-column>
......@@ -275,7 +275,7 @@
<el-table-column label="单位" width="auto" prop="orgName"> </el-table-column>
<el-table-column prop="talentName" label="专家姓名" width="auto"> </el-table-column>
<el-table-column prop="id" label="专家编号" width="auto"> </el-table-column>
<!-- <el-table-column prop="id" label="专家编号" width="auto"> </el-table-column> -->
<el-table-column prop="sex" label="性别" width="auto">
<template slot-scope="scope">{{ scope.row.sex | filtergender }}</template>
</el-table-column>
......@@ -330,9 +330,9 @@
<el-form-item label="专家姓名:" prop="talentName" class="fromItem">
<el-input v-model="ruleFormZJ.talentName" placeholder="请输入" clearable></el-input>
</el-form-item>
<el-form-item label="专家编号:" prop="id" class="fromItem">
<!-- <el-form-item label="专家编号:" prop="id" class="fromItem">
<el-input v-model="ruleFormZJ.id" placeholder="请输入" clearable></el-input>
</el-form-item>
</el-form-item> -->
<el-form-item label="专家级别:" prop="level" class="fromItem">
<el-select v-model="ruleFormZJ.level" placeholder="请选择" clearable>
<el-option label="初级" value="1"></el-option>
......@@ -389,7 +389,7 @@
<!-- <el-table-column type="selection"> </el-table-column> -->
<el-table-column label="单位" width="auto" prop="orgName"> </el-table-column>
<el-table-column prop="talentName" label="专家姓名" width="auto"> </el-table-column>
<el-table-column prop="id" label="专家编号" width="auto"> </el-table-column>
<!-- <el-table-column prop="id" label="专家编号" width="auto"> </el-table-column> -->
<el-table-column prop="sex" label="性别" width="auto">
<template slot-scope="scope">{{ scope.row.sex | filtergender }}</template>
</el-table-column>
......@@ -516,7 +516,7 @@
<el-table-column label="单位" width="auto" prop="orgName"> </el-table-column>
<el-table-column prop="talentName" label="专家姓名" width="auto"> </el-table-column>
<el-table-column prop="id" label="专家编号" width="auto"> </el-table-column>
<!-- <el-table-column prop="id" label="专家编号" width="auto"> </el-table-column> -->
<el-table-column prop="sex" label="性别" width="auto">
<template slot-scope="scope">{{ scope.row.sex | filtergender }}</template>
</el-table-column>
......
......@@ -3,9 +3,9 @@
<div class="close">
<i class="el-icon-circle-close" @click="cancel()"></i>
</div>
<p class="title" :class="dialogFullScreen ? 'noShow' : ''">
<!-- <p class="title" :class="dialogFullScreen ? 'noShow' : ''">
{{ projectName }}
</p>
</p> -->
<div class="continer flex-column">
<div class="top" :class="dialogFullScreen ? 'noShow' : ''">
<el-button
......@@ -126,7 +126,7 @@
><el-button
@click="adopt(item, index, itemfz)"
type="primary"
v-if="itemfz.type != '1' && !item.checked"
v-if="item.znfxList[0].type != '1' && !item.checked"
>采纳</el-button
>
<el-button type="info" v-else>采纳</el-button>
......@@ -918,7 +918,7 @@ export default {
background: #fff;
}
.rightscoll {
height: 610px;
// height: 610px;
overflow-y: auto;
padding: 10px;
}
......
......@@ -189,7 +189,7 @@
<el-table-column prop="accountingStatus" label="入账状态" min-width="90">
</el-table-column>
<el-table-column prop="accountingProportion" label="累计入账占比" min-width="90">
<template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
<template slot-scope="scope"><span v-if="scope.row.accountingProportion"> {{ scope.row.accountingProportion }}% </span></template>
</el-table-column>
<el-table-column prop="entryAmount" label="入账金额(万)" min-width="120">
</el-table-column>
......@@ -291,7 +291,7 @@
<el-table-column prop="accountingStatus" label="入账状态" min-width="90">
</el-table-column>
<el-table-column prop="accountingProportion" label="累计入账占比" min-width="90">
<template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
<template slot-scope="scope"><span v-if="scope.row.accountingProportion"> {{ scope.row.accountingProportion }}% </span></template>
</el-table-column>
<el-table-column prop="entryAmount" label="入账金额(万)" min-width="120">
</el-table-column>
......@@ -422,7 +422,7 @@
<el-table-column prop="accountingStatus" label="入账状态" min-width="90">
</el-table-column>
<el-table-column prop="accountingProportion" label="累计入账占比" min-width="90">
<template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
<template slot-scope="scope"><span v-if="scope.row.accountingProportion"> {{ scope.row.accountingProportion }}% </span></template>
</el-table-column>
<el-table-column prop="entryAmount" label="入账金额(万)" min-width="120">
</el-table-column>
......
......@@ -164,7 +164,7 @@
<el-table-column label="单位" width="auto" prop="orgName"> </el-table-column>
<el-table-column prop="talentName" label="专家姓名" width="auto"> </el-table-column>
<el-table-column prop="id" label="专家编号" width="auto"> </el-table-column>
<!-- <el-table-column prop="id" label="专家编号" width="auto"> </el-table-column> -->
<el-table-column prop="sex" label="性别" width="auto">
<template slot-scope="scope">{{ scope.row.sex | filtergender }}</template>
</el-table-column>
......@@ -277,7 +277,7 @@
<el-table-column label="单位" width="auto" prop="orgName"> </el-table-column>
<el-table-column prop="talentName" label="专家姓名" width="auto"> </el-table-column>
<el-table-column prop="id" label="专家编号" width="auto"> </el-table-column>
<!-- <el-table-column prop="id" label="专家编号" width="auto"> </el-table-column> -->
<el-table-column prop="sex" label="性别" width="auto">
<template slot-scope="scope">{{ scope.row.sex | filtergender }}</template>
</el-table-column>
......@@ -332,9 +332,9 @@
<el-form-item label="专家姓名:" prop="talentName" class="fromItem">
<el-input v-model="ruleFormZJ.talentName" placeholder="请输入" clearable></el-input>
</el-form-item>
<el-form-item label="专家编号:" prop="id" class="fromItem">
<!-- <el-form-item label="专家编号:" prop="id" class="fromItem">
<el-input v-model="ruleFormZJ.id" placeholder="请输入" clearable></el-input>
</el-form-item>
</el-form-item> -->
<el-form-item label="专家级别:" prop="level" class="fromItem">
<el-select v-model="ruleFormZJ.level" placeholder="请选择" clearable>
<el-option label="初级" value="1"></el-option>
......@@ -392,7 +392,7 @@
<!-- <el-table-column type="selection"> </el-table-column> -->
<el-table-column label="单位" width="auto" prop="orgName"> </el-table-column>
<el-table-column prop="talentName" label="专家姓名" width="auto"> </el-table-column>
<el-table-column prop="id" label="专家编号" width="auto"> </el-table-column>
<!-- <el-table-column prop="id" label="专家编号" width="auto"> </el-table-column> -->
<el-table-column prop="sex" label="性别" width="auto">
<template slot-scope="scope">{{ scope.row.sex | filtergender }}</template>
</el-table-column>
......@@ -519,7 +519,7 @@
<el-table-column label="单位" width="auto" prop="orgName"> </el-table-column>
<el-table-column prop="talentName" label="专家姓名" width="auto"> </el-table-column>
<el-table-column prop="id" label="专家编号" width="auto"> </el-table-column>
<!-- <el-table-column prop="id" label="专家编号" width="auto"> </el-table-column> -->
<el-table-column prop="sex" label="性别" width="auto">
<template slot-scope="scope">{{ scope.row.sex | filtergender }}</template>
</el-table-column>
......
......@@ -3,9 +3,9 @@
<div class="close">
<i class="el-icon-circle-close" @click="cancel()"></i>
</div>
<p class="title" :class="dialogFullScreen ? 'noShow' : ''">
<!-- <p class="title" :class="dialogFullScreen ? 'noShow' : ''">
{{ projectName }}
</p>
</p> -->
<div class="continer flex-column">
<div class="top" :class="dialogFullScreen ? 'noShow' : ''">
<el-button
......@@ -72,9 +72,10 @@
<p class="tableTitle">检查项 <i class="el-icon-full-screen" @click="dialogFullScreen = !dialogFullScreen"></i></p>
<div :class="dialogFullScreen ? 'rightscollBig' : 'rightscoll'">
<div class="rightContent" v-for="item in questionList" :key="item.questionId">
<h3>{{ item.questionId }}.{{ item.quesCheckItem }}</h3>
<h3>{{ item.questionId }}.{{ item.quesCheckItem }} <el-tooltip class="item" effect="dark" :content="item.checkDesc" placement="right-end">
<i class="el-icon-info"></i></el-tooltip> </h3>
<p class="msg">
{{ item.checkDesc }}
<!-- {{ item.checkDesc }} -->
<el-button
type="primary"
v-if="item.checkDesc == '可研中的需求内容应与业务需求报告中的需求匹配' && wtmx"
......@@ -126,7 +127,7 @@
><el-button
@click="adopt(item, index, itemfz)"
type="primary"
v-if="itemfz.type != '1' && !item.checked"
v-if="item.znfxList[0].type != '1' && !item.checked"
>采纳</el-button
>
<el-button type="info" v-else>采纳</el-button>
......@@ -701,6 +702,7 @@ export default {
item.evalList.splice(index, 1)
},
adopt(item, index, items) {
console.log(item,'采纳')
if (item.evalList.length == 1 && !item.evalList[0].evalQues) {
item.evalList[0].evalQues = items
} else {
......@@ -920,7 +922,7 @@ export default {
background: #fff;
}
.rightscoll {
height: 610px;
// height: 610px;
overflow-y: auto;
padding: 10px;
}
......
......@@ -182,7 +182,7 @@
<el-table-column prop="accountingStatus" label="入账状态" min-width="90">
</el-table-column>
<el-table-column prop="accountingProportion" label="累计入账占比" min-width="90">
<template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
<template slot-scope="scope"><span v-if="scope.row.accountingProportion"> {{ scope.row.accountingProportion }}% </span></template>
</el-table-column>
<el-table-column prop="entryAmount" label="入账金额(万)" min-width="120">
</el-table-column>
......@@ -284,7 +284,7 @@
<el-table-column prop="accountingStatus" label="入账状态" min-width="90">
</el-table-column>
<el-table-column prop="accountingProportion" label="累计入账占比" min-width="90">
<template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
<template slot-scope="scope"><span v-if="scope.row.accountingProportion"> {{ scope.row.accountingProportion }}% </span></template>
</el-table-column>
<el-table-column prop="entryAmount" label="入账金额(万)" min-width="120">
</el-table-column>
......@@ -414,7 +414,7 @@
<el-table-column prop="accountingStatus" label="入账状态" min-width="90">
</el-table-column>
<el-table-column prop="accountingProportion" label="累计入账占比" min-width="90">
<template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
<template slot-scope="scope"><span v-if="scope.row.accountingProportion"> {{ scope.row.accountingProportion }}% </span></template>
</el-table-column>
<el-table-column prop="entryAmount" label="入账金额(万)" min-width="120">
</el-table-column>
......
......@@ -141,9 +141,7 @@
label="累计入账占比"
width="90"
>
<template slot-scope="scope">
{{ scope.row.accountingProportion }}%
</template>
<template slot-scope="scope"><span v-if="scope.row.accountingProportion"> {{ scope.row.accountingProportion }}% </span></template>
</el-table-column>
<el-table-column prop="entryAmount" label="入账金额(万)" width="120">
</el-table-column>
......
......@@ -10,7 +10,7 @@
<div :class="openBar?'upicon':'downicon'" @click="openBar=!openBar">
<i class="el-icon-bottom"></i>
</div>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem fromItemShow">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem fromItemShow">
<el-input
v-model="ruleForm.auditName"
placeholder="请输入"
......@@ -89,7 +89,7 @@
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column type="selection"> </el-table-column>
<el-table-column label="稽核名称" prop="auditName" width="320">
<el-table-column label="稽核任务名称" prop="auditName" width="320">
</el-table-column>
<el-table-column prop="auditTime" label="稽核时间" width="250">
</el-table-column>
......@@ -155,7 +155,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<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="auditTime">
......
......@@ -8,7 +8,7 @@
class="el-form demo-ruleForm"
:rules="rules"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem">
<el-input
v-model="ruleFormdialogAdd.auditName"
trim
......@@ -411,7 +411,7 @@ export default {
auditName: [
{
required: true,
message: "请输入稽核名称",
message: "请输入稽核任务名称",
trigger: "change",
},
{
......@@ -422,7 +422,7 @@ export default {
// creator: [
// {
// required: true,
// message: "请输入稽核名称",
// message: "请输入稽核任务名称",
// trigger: "change",
// },
// {
......
......@@ -168,8 +168,6 @@
></el-input>
</el-form-item>
<el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
<!-- <span>{{ruleFormdialog.ruleStatus==1?"未开启":"已开启" }}</span> -->
<el-input
:value="ruleFormdialog.ruleStatus == 1 ? '未开启' : '已开启'"
placeholder="请输入"
......@@ -177,24 +175,6 @@
@input="numberVal"
disabled
></el-input>
<!-- <el-switch
disabled
v-model="ruleFormdialog.ruleStatus"
active-color="#13ce66"
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>
<div class="setscrolldialogAdd">
......@@ -222,7 +202,6 @@
>
</el-table-column>
<el-table-column label="详细列表" prop="checkDesc">
<!-- v-if="scope.row.configValue == 1" -->
<template slot-scope="scope">
<el-button
size="small"
......
......@@ -10,7 +10,7 @@
<div :class="openBar?'upicon':'downicon'" @click="openBar=!openBar">
<i class="el-icon-bottom"></i>
</div>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem fromItemShow">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem fromItemShow">
<el-input
v-model="ruleForm.auditName"
placeholder="请输入"
......@@ -64,21 +64,10 @@
<el-button @click="resetForm('ruleForm')">
<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-button @click="edit()">
<img class="buttonIcon" src="../../assets/bj.png" /> 编辑
</el-button>
<el-button @click="deleted()">
<img class="buttonIcon" src="../../assets/sc.png" /> 删除
</el-button>
<el-button @click="working()">
<img class="buttonIcon" src="../../assets/dr.png" />执行
</el-button> -->
</el-form-item>
</el-form>
<div class="setscrollOne">
......@@ -96,7 +85,7 @@
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<!-- <el-table-column type="selection"> </el-table-column> -->
<el-table-column label="稽核名称" prop="auditName" width="320">
<el-table-column label="稽核任务名称" prop="auditName" width="320">
</el-table-column>
<el-table-column
prop="auditStatusText"
......@@ -437,7 +426,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<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">
......@@ -481,6 +470,16 @@
<el-table-column label="创建人" prop="creator"> </el-table-column>
<el-table-column label="创建时间" prop="createTime">
</el-table-column>
<el-table-column label="操作" width="300">
<template slot-scope="scope">
<el-button
@click="editInfo(scope.row, scope.$index)"
type="text"
size="small"
>详情</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<!-- <el-pagination
......@@ -589,7 +588,7 @@
class="demo-ruleForm"
:rules="rulesBJ"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem">
<el-input
v-model="ruleFormdialogBJ.auditName"
trim
......@@ -765,6 +764,128 @@
</p>
</div>
</el-dialog>
<el-dialog
title="详情"
:visible.sync="dialogxx"
width="90%"
:modal-append-to-body="false"
:append-to-body="false"
class="dialog"
>
<el-form
:model="ruleFormdialogxx"
ref="ruleFormdialog"
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="规则名称:" prop="ruleName" class="fromItem">
<el-input
v-model="ruleFormdialogxx.ruleName"
placeholder="请输入"
clearable
@input="numberVal"
disabled
></el-input>
</el-form-item>
<el-form-item label="备注:" prop="creator" class="fromItem">
<el-input
v-model="ruleFormdialogxx.notes"
placeholder="请输入"
clearable
@input="numberVal"
disabled
></el-input>
</el-form-item>
<el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
<el-input
:value="ruleFormdialogxx.ruleStatus == 1 ? '未开启' : '已开启'"
placeholder="请输入"
clearable
@input="numberVal"
disabled
></el-input>
</el-form-item>
</el-form>
<div class="setscrolldialogAdd">
<el-table
:data="tableDataXQ"
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
label="问题检查项"
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="showbzArr.includes(scope.row.questionId + '')"
type="primary"
class="btn-search"
@click="editxq(scope.row, scope.$index, '详情')"
>
查看
</el-button>
</template>
</el-table-column>
</el-table>
</div>
<p class="close"><span @click="cancel()">关闭</span></p>
</el-dialog>
<!-- 编制弹窗 -->
<el-dialog
title="检查规则详情"
:visible.sync="dialogedit"
width="60%"
class="tips"
:modal-append-to-body="false"
:append-to-body="false"
>
<div class="bjrule">
<el-checkbox-group
v-model="checkList"
:disabled="xqedit"
v-if="questionId == 1"
>
<el-checkbox label="1">应有可研报告或项目说明书</el-checkbox>
<el-checkbox label="2">可研评审意见</el-checkbox>
<el-checkbox label="3">可研批复</el-checkbox>
</el-checkbox-group>
<div v-else-if="questionId == 2">
<p>
可研中的需求内容应与业务需求报告中的需求匹配度(%) &nbsp;&nbsp;&nbsp;
<el-input-number
v-model="numval"
:step="10"
:max="100"
:min="0"
:disabled="xqedit"
></el-input-number>
</p>
</div>
<p class="midBtn bjBtn" @click="cancelBJxx()">
<span>关闭</span
>
</p>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -793,6 +914,15 @@ export default {
mixins: [tableMixin],
data() {
return {
numval: 50,
showbzArr: ["1", "2"],
questionId: "", //编制的编号
ruleFormdialogxx:{ ruleName: "",
ruleStatus: "",
creator: "",},
dialogxx:false,
dialogedit: false,
xqedit:false,
openBar:true,
showDate: false,
pickerOptions: {
......@@ -845,7 +975,7 @@ export default {
auditName: [
{
required: true,
message: "请输入稽核名称",
message: "请输入稽核任务名称",
trigger: "change",
},
{
......@@ -872,7 +1002,7 @@ export default {
auditName: [
{
required: true,
message: "请输入稽核名称",
message: "请输入稽核任务名称",
trigger: "change",
},
{
......@@ -929,6 +1059,11 @@ export default {
pageSizeBJXM: 5,
currentPageBJGZ: 1,
pageSizeBJGZ: 5,
checkList:[],
tableDataXQ:[],
totalXQ:"",
bjId:''
};
},
watch: {
......@@ -964,6 +1099,11 @@ export default {
this.submitForm();
},
methods: {
cancelBJxx() {
console.log('关闭')
this.dialogedit = false;
this.checkList = [];
},
toResault(row) {
this.$router.push({
path: '/projectCheck/checkResault',
......@@ -1155,7 +1295,7 @@ export default {
this.submitForm();
},
cancel() {
this.dialog = false;
this.dialogxx = false;
},
//点击新增
async add() {
......@@ -1413,6 +1553,18 @@ export default {
}
});
},
//详情里的编制
editxq(info, index) {
this.questionId = info.questionId;
if (this.questionId == 1) {
this.checkList = info.configValue.split(",");
}
if (this.questionId == 2) {
this.numval = info.configValue;
}
this.xqedit = true;
this.dialogedit = true;
},
//删除
async deleted(row) {
if (row.auditStatus == 1 || row.auditStatus == 2) {
......@@ -1637,6 +1789,17 @@ export default {
numberVal(val) {
this.$forceUpdate();
},
async editInfo(row){
this.dialogxx = true;
this.bjId=row.id
this.ruleFormdialogxx = row;
let params = {
id: this.bjId,
};
let res = await iPageRorm(params);
this.tableDataXQ = res.data.records;
this.totalXQ = res.data.total;
},
},
};
</script>
......@@ -2005,4 +2168,21 @@ h3 {
/deep/ .el-table thead.is-group th.el-table__cell {
background: #f5f5f5;
}
.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
......@@ -171,7 +171,11 @@ export default {
mounted() {
console.log(
"获取父元素的local数据",
JSON.parse(localStorage.getItem("user"))
JSON.parse(window.top.localStorage.getItem("user"))
);/* */
console.log(
"获取父元素的local数据2",
window.top.localStorage.getItem("user")
);
// this.handleOpen(0, ["0"]);
if (
......
......@@ -10,7 +10,7 @@
<div :class="openBar?'upicon':'downicon'" @click="openBar=!openBar">
<i class="el-icon-bottom"></i>
</div>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem fromItemShow">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem fromItemShow">
<el-input
v-model="ruleForm.auditName"
placeholder="请输入"
......@@ -69,9 +69,9 @@
<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="handleClick()">
<img class="buttonIcon" src="../../assets/ck.png" />批量下发</el-button
>
</el-form-item>
</el-form>
<div class="setscrollOne">
......@@ -89,7 +89,7 @@
<el-table-column label="序号" width="55" type="index">
</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 label="稽核任务名称" prop="auditName" width="320"> </el-table-column>
<el-table-column prop="auditTime" label="稽核时间" width="250">
</el-table-column>
<el-table-column
......@@ -110,13 +110,13 @@
</el-table-column>
<el-table-column label="操作" width="130">
<template slot-scope="scope">
<el-button
<!-- <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"
......@@ -152,7 +152,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<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="auditTime">
......@@ -276,15 +276,26 @@ export default {
type: "warning",
})
.then(async () => {
// this.checkedList.forEach(item=>{
// if(item.confirmStatusText == "已下发") {
// this.$message.error("请选择未下发的项目");
// throw new Error("主动跳出循环");
// }
// })
let res = await wtxfResults(row);
this.checkedList.forEach(item=>{
if(item.rectificationStatusText == "已下发") {
this.$message.error("请选择未下发的项目");
throw new Error("主动跳出循环");
}
})
let prjStrList = "";
let auditId = "";
let contractNumberId=""
this.checkedList.forEach((item) => {
prjStrList = prjStrList.concat(item.projectId + ",");
auditId = auditId.concat(item.auditId + ",");
contractNumberId= contractNumberId.concat(item.contractNumber + ",");
});
let params = {
auditStr: auditId.slice(0, -1),
prjStr: prjStrList.slice(0, -1),
contractNumberStr:contractNumberId.slice(0, -1),
};
let res = await wtxfResults(params);
if (res.code == 200) {
this.$message({
message: '下发成功',
......@@ -383,12 +394,8 @@ export default {
},
//主列表选中行信息
handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false);
this.$refs.multipleTable.toggleRowSelection(selection[1], true);
}
this.checkedList = this.$refs.multipleTable.selection;
// this.ruleFormdialog = this.checkedList[0];
console.log(this.checkedList, "2222");
},
handleSizeChange(val) {
......
......@@ -7,7 +7,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem">
<el-input
v-model="ruleForm.auditName"
placeholder="请输入"
......@@ -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 label="稽核名称" prop="auditName" width="320">
<el-table-column label="稽核任务名称" prop="auditName" width="320">
</el-table-column>
<el-table-column prop="auditTime" label="稽核时间" width="250">
</el-table-column>
......@@ -157,7 +157,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem">
<el-input v-model="ruleFormdialogXQ.auditName" disabled></el-input>
</el-form-item>
......@@ -224,7 +224,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<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">
......
......@@ -10,7 +10,7 @@
<div :class="openBar?'upicon':'downicon'" @click="openBar=!openBar">
<i class="el-icon-bottom"></i>
</div>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem fromItemShow">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem fromItemShow">
<el-input
v-model="ruleForm.auditName"
placeholder="请输入"
......@@ -67,7 +67,6 @@
placeholder="请选择"
clearable
>
<!-- <el-option label="未下发" value="1"></el-option> -->
<el-option label="待整改" value="2"></el-option>
<el-option label="已整改" value="3"></el-option>
</el-select>
......@@ -108,7 +107,7 @@
<el-table-column label="序号" width="55" type="index">
</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 label="稽核任务名称" prop="auditName" width="320"> </el-table-column>
<el-table-column prop="auditTime" label="稽核时间" width="250">
</el-table-column>
<el-table-column prop="projectId" label="项目编码" width="220">
......@@ -187,7 +186,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<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="auditTime">
......@@ -265,7 +264,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem">
<el-input v-model="ruleFormdialogXQ.auditName" disabled></el-input>
</el-form-item>
......
......@@ -7,7 +7,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem">
<el-input
v-model="ruleForm.auditName"
placeholder="请输入"
......@@ -110,7 +110,7 @@
<el-table-column label="序号" width="55" type="index">
</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 label="稽核任务名称" prop="auditName" width="320"> </el-table-column>
<el-table-column prop="auditTime" label="稽核时间" width="250">
</el-table-column>
<el-table-column prop="projectId" label="项目编码" width="220">
......@@ -163,7 +163,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<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="auditTime">
......@@ -241,7 +241,7 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="稽核名称:" prop="auditName" class="fromItem">
<el-form-item label="稽核任务名称:" prop="auditName" class="fromItem">
<el-input v-model="ruleFormdialogXQ.auditName" disabled></el-input>
</el-form-item>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!