Commit aae2cd31 by 史敦盼

修改

1 parent 41b1cef9
export function trendsRules(type) { export function trendsRules(type) {
switch (type) { switch (type) {
case 1: case 1:
return [ return [
{
name: '后评估检查',
url: '',
children: [
{
name: '后评估互查',
url: '',
children: [
{ {
name: "后评估检查", name: '评估批次发起',
url: "", url: '/mainLayout/auxiliarySelection',
children: [ children: [],
{ },
name: "后评估互查",
url: "",
children: [ {
{ name: '评估结果查看',
name: "评估批次发起", url: '/mainLayout/assistedViewing',
url: "/mainLayout/auxiliarySelection", children: [],
children: [],
},
{
name: "评估结果查看",
url: "/mainLayout/assistedViewing",
children: [],
},
],
},
],
}, },
],
},
],
},
{
name: '后评估合规性管理',
url: '',
children: [
{
name: '合规性检查规则库构建',
url: '',
children: [
{ name: '检查规则编制', url: '/compliance/checkRules', children: [] },
{ name: '自动稽核任务配置', url: '/compliance/taskConfigure', children: [] },
],
},
{
name: '项目合规检查',
url: '',
children: [
{ name: '合规检查结果', url: '/projectCheck/checkResault', children: [] },
// { name: "合规检查结果确认", url: "/projectCheck/confirmResault", children: [] },
{ {
name: "后评估合规性管理", name: '合规问题整改核验',
url: "", url: '/projectCheck/verificationRectify',
children: [ children: [],
{
name: "合规性检查规则库构建",
url: "",
children: [
{ name: "检查规则编制", url: "/compliance/checkRules", children: [] },
{ name: "自动稽核任务配置", url: "/compliance/taskConfigure", children: [] },
],
},
{
name: "项目合规检查",
url: "",
children: [
{ name: "合规检查结果", url: "/projectCheck/checkResault", children: [] },
// { name: "合规检查结果确认", url: "/projectCheck/confirmResault", children: [] },
{ name: "合规问题整改核验", url: "/projectCheck/verificationRectify", children: [] },
],
},
]
}, },
],
},
],
},
{
name: '后评估结果管理',
url: '',
children: [
{
name: '后评估结果发布',
url: '',
children: [
{ {
name: "后评估结果管理", name: '检查结果公示及评价',
url: "", url: '/managementResult/releaseResultpublicity',
children: [ children: [],
{
name: "后评估结果发布",
url: "",
children: [
{ name: "检查结果公示及评价", url: "/managementResult/releaseResultpublicity", children: [] },
],
},
{
name: "后评估结果情况",
url: "",
children: [
{ name: "后评估进度情况", url: "/managementResult/situationResaultschedule", children: [] },
{ name: "后评估各环节问题分布", url: "/managementResult/situationResaultissuesLink", children: [] },
{ name: "合规检查问题情况", url: "/managementResult/issuesInspection", children: [] },
],
},
{
name: "后评估检查报告管理",
url: "",
children: [
{ name: "后评估检查报告维护", url: "/managementResult/maintenancePg", children: [] },
{ name: "后评估报告模板管理", url: "/managementResult/managementPg", children: [] },
{ name: "合规性检查报告维护", url: "/managementResult/maintenanceHg", children: [] },
{ name: "合规性检查报告模板管理", url: "/managementResult/managementHg", children: [] },
],
},
],
}, },
]; ],
break; },
case 2: {
return [ name: '后评估结果情况',
url: '',
children: [
{ {
name: "后评估检查", name: '后评估进度情况',
url: "", url: '/managementResult/situationResaultschedule',
children: [ children: [],
{
name: "后评估互查",
url: "",
children: [
{
name: "评估项目确认",
url: "/mainLayout/confirmRelease",
children: [],
},
{
name: "项目辅助检查",
url: "/mainLayout/auxiliaryInspection",
children: [],
},
],
},
],
}, },
{ {
name: "后评估合规性管理", name: '后评估各环节问题分布',
url: "", url: '/managementResult/situationResaultissuesLink',
children: [ children: [],
{ },
name: "合规性检查规则库构建",
url: "",
children: [
{ name: "自动稽核任务配置", url: "/compliance/taskConfigure", children: [] },
],
},
]
}
];
break
case 3:
return [
{ {
name: "后评估检查", name: '合规检查问题情况',
url: "", url: '/managementResult/issuesInspection',
children: [ children: [],
{
name: "后评估互查",
url: "",
children: [
{
name: "评估问提整改",
url: "/mainLayout/materialAcquisition",
children: [],
},
// {
// name: "问题反馈",
// url: "/mainLayout/assistedFeedback",
// children: [],
// },
// {
// name: "问题整改",
// url: "/mainLayout/assistedRect",
// children: [],
// },
// {
// name: "同步归档",
// url: "/mainLayout/attachSynchronousArchiving",
// children: [],
// },
],
},
],
}, },
],
},
{
name: '后评估检查报告管理',
url: '',
children: [
{ {
name: "后评估合规性管理", name: '后评估检查报告维护',
url: "", url: '/managementResult/maintenancePg',
children: [ children: [],
{ },
name: "合规性检查实时提醒", { name: '后评估报告模板管理', url: '/managementResult/managementPg', children: [] },
url: "",
children: [
{ name: "合规性检查提醒", url: "/checkCompliance/automaticCheck", children: [] },
],
},
{
name: "项目合规检查",
url: "",
children: [
{ name: "合规问题整改", url: "/projectCheck/problemRectify", children: [] },
],
},
]
}
];
break
case 99:
return [
{ {
name: "项目档案库", name: '合规性检查报告维护',
url: "/mainLayout/mianHome", url: '/managementResult/maintenanceHg',
erji:'二级' children: [],
// children: [ },
// { {
// // name: "首页首页", name: '合规性检查报告模板管理',
// // url: "mainLayout/mianHome", url: '/managementResult/managementHg',
// children: [ children: [],
// { },
// name: "首页首页", ],
// url: "mainLayout/mianHome", },
// children: [], ],
// }, },
// ] ]
// } break
case 2:
// ] return [
{
name: '后评估检查',
url: '',
children: [
{
name: '后评估互查',
url: '',
children: [
{
name: '评估项目确认',
url: '/mainLayout/confirmRelease',
children: [],
},
{
name: '项目辅助检查',
url: '/mainLayout/auxiliaryInspection',
children: [],
}, },
],
},
],
},
{
name: '后评估合规性管理',
url: '',
children: [
{
name: '合规性检查规则库构建',
url: '',
children: [
{ name: '自动稽核任务配置', url: '/compliance/taskConfigure', children: [] },
],
},
],
},
]
break
case 3:
return [
{
name: '后评估检查',
url: '',
children: [
{
name: '后评估互查',
url: '',
children: [
{ {
name: "后评估检查", name: '评估问提整改',
url: "", url: '/mainLayout/materialAcquisition',
children: [ children: [],
{ },
name: "后评估自查", // {
url: "", // name: "问题反馈",
children: [ // url: "/mainLayout/assistedFeedback",
{ // children: [],
name: "自查评估批次发起", // },
url: "/assesszc/auxiliarySelection", // {
children: [], // name: "问题整改",
}, // url: "/mainLayout/assistedRect",
// { // children: [],
// },
// name: "项目档案库", // {
// url: "/assesszc/projectView", // name: "同步归档",
// children: [], // url: "/mainLayout/attachSynchronousArchiving",
// children: [],
// },
],
},
],
},
{
name: '后评估合规性管理',
url: '',
children: [
{
name: '合规性检查实时提醒',
url: '',
children: [
{ name: '合规性检查提醒', url: '/checkCompliance/automaticCheck', children: [] },
],
},
{
name: '项目合规检查',
url: '',
children: [
{ name: '合规问题整改', url: '/projectCheck/problemRectify', children: [] },
],
},
],
},
]
break
case 99:
return [
{
name: '项目档案库',
url: '/mainLayout/mianHome',
erji: '二级',
// children: [
// {
// // name: "首页首页",
// // url: "mainLayout/mianHome",
// children: [
// {
// name: "首页首页",
// url: "mainLayout/mianHome",
// children: [],
// },
// ]
// }
// ]
},
{
name: '后评估检查',
url: '',
children: [
{
name: '后评估自查',
url: '',
children: [
{
name: '自查评估批次发起',
url: '/assesszc/auxiliarySelection',
children: [],
},
// {
// name: "项目档案库",
// url: "/assesszc/projectView",
// children: [],
// }, // },
{ {
name: "自查评估项目确认", name: '自查评估项目确认',
url: "/assesszc/confirmRelease", url: '/assesszc/confirmRelease',
children: [], children: [],
},
{
name: "自查问题整改",
url: "/assesszc/materialAcquisition",
children: [],
},
{
name: "自查项目辅助检查",
url: "/assesszc/auxiliaryInspection",
children: [],
},
{
name: "自查评估结果查看",
url: "/assesszc/assistedViewing",
children: [],
},
],
},
{
name: "后评估互查",
url: "",
children: [
{
name: "评估批次发起",
url: "/mainLayout/auxiliarySelection",
children: [],
},
{
name: "评估项目确认",
url: "/mainLayout/confirmRelease",
children: [],
},
{
name: "评估问题整改",
url: "/mainLayout/materialAcquisition",
children: [],
},
{
name: "项目辅助检查",
url: "/mainLayout/auxiliaryInspection",
children: [],
},
{
name: "评估结果查看",
url: "/mainLayout/assistedViewing",
children: [],
},
],
},
{
name: "后评估集中检查",
url: "",
children: [
{
name: "项目检查问题查询",
url: "/mainLayout/projectCheckQuestionQuery",
children: [],
},
{
name: "整改反馈查询",
url: "/mainLayout/rectificationFeedbackQuery",
children: [],
},
],
},
],
}, },
{ {
name: "后评估合规性管理", name: '自查项目辅助检查',
url: "", url: '/assesszc/auxiliaryInspection',
children: [ children: [],
{
name: "合规性检查实时提醒",
url: "",
children: [
{ name: "合规性检查提醒", url: "/checkCompliance/automaticCheck", children: [] },
],
},
{
name: "合规性检查规则库构建",
url: "",
children: [
{ name: "检查规则编制", url: "/compliance/checkRules", children: [] },
{ name: "自动稽核任务配置", url: "/compliance/taskConfigure", children: [] },
],
},
{
name: "项目合规检查",
url: "",
children: [
{ name: "合规检查结果", url: "/projectCheck/checkResault", children: [] },
{ name: "合规问题整改", url: "/projectCheck/problemRectify", children: [] },
{ name: "合规问题整改核验", url: "/projectCheck/verificationRectify", children: [] },
],
},
],
}, },
{ {
name: "后评估结果管理", name: '自查问题整改',
url: "", url: '/assesszc/materialAcquisition',
children: [ children: [],
{ },
name: "后评估结果发布",
url: "",
children: [
{ name: "检查结果公示及评价", url: "/managementResult/releaseResultpublicity", children: [] },
],
},
{
name: "后评估结果情况",
url: "",
children: [
{ name: "后评估进度情况", url: "/managementResult/situationResaultschedule", children: [] },
{ name: "后评估各环节问题分布", url: "/managementResult/situationResaultissuesLink", children: [] },
{ name: "合规检查问题情况", url: "/managementResult/issuesInspection", children: [] },
],
},
{
name: "后评估检查报告管理",
url: "",
children: [
{ name: "后评估检查报告维护", url: "/managementResult/maintenancePg", children: [] },
{ name: "后评估报告模板管理", url: "/managementResult/managementPg", children: [] },
// { name: "合规性检查报告维护", url: "/managementResult/maintenanceHg", children: [] },
// { name: "合规性检查报告模板管理", url: "/managementResult/managementHg", children: [] },
], {
}, name: '自查评估结果查看',
], url: '/assesszc/assistedViewing',
children: [],
},
],
},
{
name: '后评估互查',
url: '',
children: [
{
name: '评估批次发起',
url: '/mainLayout/auxiliarySelection',
children: [],
},
{
name: '评估项目确认',
url: '/mainLayout/confirmRelease',
children: [],
},
{
name: '项目辅助检查',
url: '/mainLayout/auxiliaryInspection',
children: [],
},
{
name: '评估问题整改',
url: '/mainLayout/materialAcquisition',
children: [],
}, },
]
} {
name: '评估结果查看',
url: '/mainLayout/assistedViewing',
children: [],
},
],
},
{
name: '后评估集中检查',
url: '',
children: [
{
name: '项目检查问题查询',
url: '/mainLayout/projectCheckQuestionQuery',
children: [],
},
{
name: '整改反馈查询',
url: '/mainLayout/rectificationFeedbackQuery',
children: [],
},
],
},
],
},
{
name: '后评估合规性管理',
url: '',
children: [
{
name: '合规性检查实时提醒',
url: '',
children: [
{ name: '合规性检查提醒', url: '/checkCompliance/automaticCheck', children: [] },
],
},
{
name: '合规性检查规则库构建',
url: '',
children: [
{ name: '检查规则编制', url: '/compliance/checkRules', children: [] },
{ name: '自动稽核任务配置', url: '/compliance/taskConfigure', children: [] },
],
},
{
name: '项目合规检查',
url: '',
children: [
{ name: '合规检查结果', url: '/projectCheck/checkResault', children: [] },
{ name: '合规问题整改', url: '/projectCheck/problemRectify', children: [] },
{
name: '合规问题整改核验',
url: '/projectCheck/verificationRectify',
children: [],
},
],
},
],
},
{
name: '后评估结果管理',
url: '',
children: [
{
name: '后评估结果发布',
url: '',
children: [
{
name: '检查结果公示及评价',
url: '/managementResult/releaseResultpublicity',
children: [],
},
],
},
{
name: '后评估结果情况',
url: '',
children: [
{
name: '后评估进度情况',
url: '/managementResult/situationResaultschedule',
children: [],
},
{
name: '后评估各环节问题分布',
url: '/managementResult/situationResaultissuesLink',
children: [],
},
{
name: '合规检查问题情况',
url: '/managementResult/issuesInspection',
children: [],
},
],
},
{
name: '后评估检查报告管理',
url: '',
children: [
{
name: '后评估检查报告维护',
url: '/managementResult/maintenancePg',
children: [],
},
{ name: '后评估报告模板管理', url: '/managementResult/managementPg', children: [] },
// { name: "合规性检查报告维护", url: "/managementResult/maintenanceHg", children: [] },
// { name: "合规性检查报告模板管理", url: "/managementResult/managementHg", children: [] },
],
},
],
},
]
}
} }
export function defaultRouter() { export function defaultRouter() {
sessionStorage.setItem("author", "weizheng"); sessionStorage.setItem('author', 'weizheng')
sessionStorage.setItem("authorName",99); sessionStorage.setItem('authorName', 99)
let type=sessionStorage.getItem('authorName') let type = sessionStorage.getItem('authorName')
switch (type) { switch (type) {
case '1': case '1':
return "/mainLayout/auxiliarySelection" return '/mainLayout/auxiliarySelection'
break; break
case '2': case '2':
return "/mainLayout/confirmRelease" return '/mainLayout/confirmRelease'
break; break
case '3': case '3':
return "/mainLayout/materialAcquisition" return '/mainLayout/materialAcquisition'
break; break
case '99': case '99':
return "/assesszc/auxiliarySelection" return '/assesszc/auxiliarySelection'
break; break
}
}
} }
<template> <template>
<div class="main"> <div class="main">
<div class="close"><i class="el-icon-circle-close" @click="cancel()"></i></div> <div class="close"><i class="el-icon-circle-close" @click="cancel()"></i></div>
<p class="title" :class="dialogFullScreen?'noShow':''">{{projectName}}</p> <p class="title" :class="dialogFullScreen ? 'noShow' : ''">{{ projectName }}</p>
<div class="continer"> <div class="continer">
<div class="top" :class="dialogFullScreen?'noShow':''"> <div class="top" :class="dialogFullScreen ? 'noShow' : ''">
<el-steps :active="active" align-center finish-status="success"> <el-steps :active="active" align-center finish-status="success">
<el-step <el-step
v-for="item in tabList" v-for="item in tabList"
...@@ -15,7 +15,10 @@ ...@@ -15,7 +15,10 @@
</div> </div>
<div class="content"> <div class="content">
<div class="left"> <div class="left">
<p class="tableTitle">检查内容 <i class="el-icon-full-screen" @click="dialogFullScreen = !dialogFullScreen"></i></p> <p class="tableTitle">
检查内容
<i class="el-icon-full-screen" @click="dialogFullScreen = !dialogFullScreen"></i>
</p>
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane <el-tab-pane
v-for="item in tabListKY" v-for="item in tabListKY"
...@@ -23,48 +26,54 @@ ...@@ -23,48 +26,54 @@
:label="item.typeText" :label="item.typeText"
:name="item.typeCode" :name="item.typeCode"
> >
<div class="opt" v-show="options.length>0"> <div class="opt" v-show="options.length > 0">
<el-select v-model="valuesel" clearable placeholder="请选择" @change="(val)=>changexm(val,item.typeCode)"> <el-select
<el-option v-model="valuesel"
v-for="(item,index) in options" clearable
:key="item.name" placeholder="请选择"
:label="item.name" @change="(val) => changexm(val, item.typeCode)"
:value="index"> >
</el-option> <el-option
</el-select> v-for="(item, index) in options"
:key="item.name"
:label="item.name"
:value="index"
>
</el-option>
</el-select>
</div> </div>
<iframe <iframe
v-if="blobType=='pdf'||blobType=='doc'&&options.length>0" v-if="blobType == 'pdf' || (blobType == 'doc' && options.length > 0)"
:key="iframeUrl" :key="iframeUrl"
:src="iframeUrl" :src="iframeUrl"
frameborder="0" frameborder="0"
:class="dialogFullScreen?'iframeDivBig':'iframeDiv'" :class="dialogFullScreen ? 'iframeDivBig' : 'iframeDiv'"
></iframe> ></iframe>
<div v-else-if="blobType=='png'||blobType=='jpg'" class="blobImg"> <div v-else-if="blobType == 'png' || blobType == 'jpg'" class="blobImg">
<img :src="iframeUrl" alt=""> <img :src="iframeUrl" alt="" />
</div> </div>
<div class="docDiv" v-else-if="blobType=='docx'&&options.length>0"> <div class="docDiv" v-else-if="blobType == 'docx' && options.length > 0">
<div :ref="`word`" :id="`word${item.typeCode}`" > <div :ref="`word`" :id="`word${item.typeCode}`"></div>
</div> </div>
</div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<div class="right"> <div class="right">
<p class="tableTitle">检查项</p> <p class="tableTitle">检查项</p>
<div :class="dialogFullScreen?'rightscollBig':'rightscoll'"> <div :class="dialogFullScreen ? 'rightscollBig' : 'rightscoll'">
<div <div class="rightContent" v-for="item in questionList" :key="item.questionId">
class="rightContent"
v-for="item in questionList"
:key="item.questionId"
>
<h3>{{ item.questionId }}.{{ item.quesCheckItem }}</h3> <h3>{{ item.questionId }}.{{ item.quesCheckItem }}</h3>
<p class="msg">{{ item.checkDesc }} <el-button type="primary" v-if="item.checkDesc=='可研中的需求内容应与业务需求报告中的需求匹配'&&wtmx" @click="zhanshi()">匹配展示</el-button></p> <p class="msg">
<div {{ item.checkDesc }}
class="quesznfx" <el-button
v-if="item.znfxList && item.znfxList.length > 0" type="primary"
> v-if="item.checkDesc == '可研中的需求内容应与业务需求报告中的需求匹配' && wtmx"
@click="zhanshi()"
>匹配展示</el-button
>
</p>
<div class="quesznfx" v-if="item.znfxList && item.znfxList.length > 0">
<p class="tips">智能分析:</p> <p class="tips">智能分析:</p>
<div <div
v-for="(itemzn, index) in item.znfxList" v-for="(itemzn, index) in item.znfxList"
...@@ -73,16 +82,9 @@ ...@@ -73,16 +82,9 @@
v-html="itemzn.checkDesc" v-html="itemzn.checkDesc"
></div> ></div>
</div> </div>
<div <div class="quesznfx" v-if="item.fzfxList && item.fzfxList.length > 0">
class="quesznfx"
v-if="item.fzfxList && item.fzfxList.length > 0"
>
<p class="tips">辅助分析:</p> <p class="tips">辅助分析:</p>
<div <div v-for="(itemfz, index) in item.fzfxList" :key="index" class="inputDiv">
v-for="(itemfz, index) in item.fzfxList"
:key="index"
class="inputDiv"
>
<el-input <el-input
type="textarea" type="textarea"
:autosize="{ minRows: 1, maxRows: 4 }" :autosize="{ minRows: 1, maxRows: 4 }"
...@@ -92,7 +94,7 @@ ...@@ -92,7 +94,7 @@
><el-button ><el-button
@click="adopt(item, index, itemfz)" @click="adopt(item, index, itemfz)"
type="primary" type="primary"
v-if="itemfz.type != '1'&&!item.checked" v-if="itemfz.type != '1' && !item.checked"
>采纳</el-button >采纳</el-button
> >
<el-button type="info" v-else>采纳</el-button> <el-button type="info" v-else>采纳</el-button>
...@@ -100,11 +102,7 @@ ...@@ -100,11 +102,7 @@
</div> </div>
<div class="question"> <div class="question">
<p class="tips">问题描述:</p> <p class="tips">问题描述:</p>
<div <div v-for="(items, index) in item.evalList" :key="index" class="inputDiv">
v-for="(items, index) in item.evalList"
:key="index"
class="inputDiv"
>
<el-input <el-input
type="textarea" type="textarea"
:autosize="{ minRows: 1, maxRows: 4 }" :autosize="{ minRows: 1, maxRows: 4 }"
...@@ -113,9 +111,7 @@ ...@@ -113,9 +111,7 @@
:disabled="items.disabled" :disabled="items.disabled"
> >
</el-input </el-input
><el-button @click="delInput(item, index)" type="primary" ><el-button @click="delInput(item, index)" type="primary">删除</el-button>
>删除</el-button
>
<el-upload <el-upload
class="upload_box" class="upload_box"
...@@ -125,7 +121,7 @@ ...@@ -125,7 +121,7 @@
:on-change="handleEditChange" :on-change="handleEditChange"
:http-request=" :http-request="
(res) => { (res) => {
return fileupdate(res, items); return fileupdate(res, items)
} }
" "
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
...@@ -137,21 +133,12 @@ ...@@ -137,21 +133,12 @@
action="" action=""
> >
<!-- 加号标识 --> <!-- 加号标识 -->
<el-button <el-button class="upload_btn" slot="trigger" size="small" type="primary">
class="upload_btn"
slot="trigger"
size="small"
type="primary"
>
上传截图 上传截图
</el-button> </el-button>
<!-- 上传后显示 --> <!-- 上传后显示 -->
<div slot="file" slot-scope="{ file }"> <div slot="file" slot-scope="{ file }">
<img <img class="el-upload-list__item-thumbnail" :src="file.url" alt="" />
class="el-upload-list__item-thumbnail"
:src="file.url"
alt=""
/>
<span class="el-upload-list__item-actions"> <span class="el-upload-list__item-actions">
<!-- 图片放大 --> <!-- 图片放大 -->
<span <span
...@@ -185,36 +172,35 @@ ...@@ -185,36 +172,35 @@
</el-dialog> </el-dialog>
<p class="addBtn"> <p class="addBtn">
<el-checkbox <!-- <el-checkbox
v-model="item.checked" v-model="item.checked"
@change="changeChecked(item)" @change="changeChecked(item)"
>未发现问题</el-checkbox >未发现问题</el-checkbox
><i class="el-icon-circle-plus" @click="addInput(item)"></i> > -->
<i class="el-icon-circle-plus" @click="addInput(item)"></i>
</p> </p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<p class="Btn"> <p class="Btn">
<span @click="cancel()">取消</span><span @click="save()">保存</span> <span @click="submitNexts()">提交</span> <span @click="cancel()">取消</span><span @click="save()">保存</span>
</p> <span @click="submitNexts()">提交</span>
</p>
</div> </div>
</div> </div>
<el-dialog <el-dialog
:visible.sync="dialogzhanshi" :visible.sync="dialogzhanshi"
title="匹配展示" title="匹配展示"
width="90%" width="90%"
:modal-append-to-body="false" :modal-append-to-body="false"
:append-to-body="false" :append-to-body="false"
>
> <div v-html="wtmx" class="dialogscroll"></div>
<div v-html="wtmx" class="dialogscroll"></div> </el-dialog>
</div>
</el-dialog>
</div>
</template> </template>
<script> <script>
...@@ -228,56 +214,56 @@ import { ...@@ -228,56 +214,56 @@ import {
bcevalQuesInfo, bcevalQuesInfo,
ossupload, ossupload,
presignedUrl, presignedUrl,
selFileList selFileList,
} from "@/api/index"; } from '@/api/index'
export default { export default {
data() { data() {
return { return {
dialogFullScreen: false, dialogFullScreen: false,
valuesel:'', valuesel: '',
options:[], options: [],
dialogImageUrl: "", dialogImageUrl: '',
fileList: [], fileList: [],
evalList: [ evalList: [
{ {
evalQues: "", evalQues: '',
hideUploadEdit: false, hideUploadEdit: false,
}, },
], ],
tabList: [ tabList: [
{ label: "可研", id: 0 }, { label: '可研', id: 0 },
// { label: "计划", id: 1 }, // { label: "计划", id: 1 },
{ label: "采购", id: 2 }, { label: '采购', id: 2 },
{ label: "合同", id: 3 }, { label: '合同', id: 3 },
{ label: "执行", id: 4 }, { label: '执行', id: 4 },
{ label: "结决算及转资", id: 5 }, { label: '结决算及转资', id: 5 },
], ],
tabListKY:[], tabListKY: [],
active: 0, active: 0,
activeName: "0", activeName: '0',
clqparams: {}, clqparams: {},
iframeUrl: "", iframeUrl: '',
urlList: [], urlList: [],
questionList: [], questionList: [],
file: "", file: '',
dialogVisible: false, dialogVisible: false,
fullURL: "", fullURL: '',
hideUploadEdit: false, hideUploadEdit: false,
limitNum: 1, limitNum: 1,
disabled: false, disabled: false,
oldQuestionList: [], //对比列表 oldQuestionList: [], //对比列表
blobType:'pdf',//bolb类型 blobType: 'pdf', //bolb类型
projectName:"", projectName: '',
valuesel:"", valuesel: '',
dialogzhanshi:false, dialogzhanshi: false,
wtmx:'', wtmx: '',
docxOptions: { docxOptions: {
className: "kaimo-docx-666", // string:默认和文档样式类的类名/前缀 className: 'kaimo-docx-666', // string:默认和文档样式类的类名/前缀
inWrapper: false, // boolean:启用围绕文档内容的包装器渲染 inWrapper: false, // boolean:启用围绕文档内容的包装器渲染
ignoreWidth:false, // boolean:禁用页面的渲染宽度 ignoreWidth: false, // boolean:禁用页面的渲染宽度
ignoreHeight: false, // boolean:禁止渲染页面高度 ignoreHeight: false, // boolean:禁止渲染页面高度
ignoreFonts:false, // boolean:禁用字体渲染 ignoreFonts: false, // boolean:禁用字体渲染
breakPages: false, // boolean:在分页符上启用分页 breakPages: false, // boolean:在分页符上启用分页
ignoreLastRenderedPageBreak: true, // boolean:在 lastRenderedPageBreak 元素上禁用分页 ignoreLastRenderedPageBreak: true, // boolean:在 lastRenderedPageBreak 元素上禁用分页
experimental: false, // boolean:启用实验功能(制表符停止计算) experimental: false, // boolean:启用实验功能(制表符停止计算)
...@@ -286,289 +272,267 @@ docxOptions: { ...@@ -286,289 +272,267 @@ docxOptions: {
useMathMLPolyfill: false, // boolean:包括用于 chrome、edge 等的 MathML polyfill。 useMathMLPolyfill: false, // boolean:包括用于 chrome、edge 等的 MathML polyfill。
showChanges: false, // boolean:启用文档更改的实验性渲染(插入/删除) showChanges: false, // boolean:启用文档更改的实验性渲染(插入/删除)
debug: false, // boolean:启用额外的日志记录 debug: false, // boolean:启用额外的日志记录
} },
}; }
}, },
mounted() { mounted() {
this.clqparams = JSON.parse(this.$route.query.clqparams); this.clqparams = JSON.parse(this.$route.query.clqparams)
this.projectName=this.$route.query.projectName this.projectName = this.$route.query.projectName
this.init(this.clqparams); this.init(this.clqparams)
}, },
methods: { methods: {
zhanshi(){ zhanshi() {
this.dialogzhanshi=true this.dialogzhanshi = true
}, },
//提交问题清单 //提交问题清单
async submitNexts() { async submitNexts() {
this.$confirm("您确定检查完所有流程并去提交?", "提示", { this.$confirm('您确定检查完所有流程并去提交?', '提示', {
confirmButtonText: "是", confirmButtonText: '是',
cancelButtonText: "继续检查", cancelButtonText: '继续检查',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
type: "warning", type: 'warning',
}) })
.then(() => { .then(() => {
this.save(2); this.save(2)
}) })
.catch((action) => { .catch((action) => {})
});
}, },
// 放大图片 // 放大图片
handlePictureCardPreview(file) { handlePictureCardPreview(file) {
console.log("点击放大"); console.log('点击放大')
this.dialogImageUrl = file.url; this.dialogImageUrl = file.url
this.dialogVisible = true; this.dialogVisible = true
}, },
// 删除图片 // 删除图片
handleRemove(file, fileList) { handleRemove(file, fileList) {
console.log(fileList, "this.fileList"); console.log(fileList, 'this.fileList')
if (this.fileList.length == 0) { if (this.fileList.length == 0) {
this.fileList = []; this.fileList = []
} else { } else {
let dl = this.fileList.indexOf(file); let dl = this.fileList.indexOf(file)
this.fileList.splice(dl, 1); this.fileList.splice(dl, 1)
} }
this.hideUploadEdit = this.fileList.length >= this.limitNum; this.hideUploadEdit = this.fileList.length >= this.limitNum
}, },
// on-change添加文件,上传成功和上传失败时都会被调用 // on-change添加文件,上传成功和上传失败时都会被调用
handleEditChange(file, fileList) { handleEditChange(file, fileList) {
this.hideUploadEdit = fileList.length >= this.limitNum; this.hideUploadEdit = fileList.length >= this.limitNum
}, },
// http-request自定义上传 // http-request自定义上传
ImgUploadSectionFile(param) { ImgUploadSectionFile(param) {
this.param = param; this.param = param
}, },
// before-upload上传文件之前的钩子,参数为上传的文件 // before-upload上传文件之前的钩子,参数为上传的文件
// 若返回 false 或者返回 Promise 且被 reject,则停止上传 // 若返回 false 或者返回 Promise 且被 reject,则停止上传
beforeAvatarUpload(file) { beforeAvatarUpload(file) {
this.file = file; this.file = file
const isJPG = file.type === "image/jpeg" || file.type === "image/png"; const isJPG = file.type === 'image/jpeg' || file.type === 'image/png'
const isLt2M = this.file.size / 1024 < 1000; const isLt2M = this.file.size / 1024 < 1000
console.log(this.file.size / 1024, "this.file.size this.file.size "); console.log(this.file.size / 1024, 'this.file.size this.file.size ')
if (!isJPG) { if (!isJPG) {
this.$message.error("上传图片只能是 JPG 或 PNG 格式!"); this.$message.error('上传图片只能是 JPG 或 PNG 格式!')
this.hideUploadEdit = false; this.hideUploadEdit = false
} }
if (!isLt2M) { if (!isLt2M) {
this.hideUploadEdit = false; this.hideUploadEdit = false
this.$message.error("上传图片大小不能超过 1000k!"); this.$message.error('上传图片大小不能超过 1000k!')
} }
return isJPG && isLt2M; return isJPG && isLt2M
}, },
// 文件上传成功时的钩子 // 文件上传成功时的钩子
handleSuccess(file) { handleSuccess(file) {
// console.log(file); // console.log(file);
const data = file.data; const data = file.data
//然后数据、逻辑处理 //然后数据、逻辑处理
}, },
showFullScreen() { showFullScreen() {
console.log(this.fileList, "4444"); console.log(this.fileList, '4444')
this.fullURL = this.fileList[0].url; this.fullURL = this.fileList[0].url
this.dialogVisible = true; this.dialogVisible = true
}, },
handleExceed() { handleExceed() {
this.$message.warning(`只能选择一张图片`); this.$message.warning(`只能选择一张图片`)
}, },
changexm(row,typeCode){ changexm(row, typeCode) {
this.downloadObject(this.options[row],typeCode) this.downloadObject(this.options[row], typeCode)
console.log(row,'换文件') console.log(row, '换文件')
}, },
async init(type) { async init(type) {
let params = { let params = {
projectStage: this.active * 1 + 1, projectStage: this.active * 1 + 1,
hgx:"hgx", hgx: 'hgx',
...type, ...type,
}; }
Promise.all([selFile(params), selWtqdFZ(params)]).then(async (res) => { Promise.all([selFile(params), selWtqdFZ(params)]).then(async (res) => {
this.tabListKY=[] this.tabListKY = []
this.urlList = res[0].data; this.urlList = res[0].data
if(this.urlList.length>0){ if (this.urlList.length > 0) {
this.urlList.forEach(item=>{ this.urlList.forEach((item) => {
this.tabListKY.push({typeText:item.materialName,typeCode:item.mid}) this.tabListKY.push({ typeText: item.materialName, typeCode: item.mid })
}) })
this.activeName=this.tabListKY[0].typeCode this.activeName = this.tabListKY[0].typeCode
let resList= await selFileList({ ...params,typeCode:this.tabListKY[0].typeCode }); let resList = await selFileList({ ...params, typeCode: this.tabListKY[0].typeCode })
this.options= resList.data this.options = resList.data || []
if(this.options.length>0){ if (this.options.length > 0) {
this.valuesel=this.options[0].name this.valuesel = this.options[0].name
this. downloadObject(this.options[0],this.tabListKY[0].typeCode) this.downloadObject(this.options[0], this.tabListKY[0].typeCode)
}else{ } else {
this.blobType='png' this.blobType = 'png'
this.iframeUrl = "/nopdf.png"; this.iframeUrl = '/nopdf.png'
} }
}else{ } else {
// this.iframeUrl = "/nopdf.png"; // this.iframeUrl = "/nopdf.png";
} }
if (res[1].data) { if (res[1].data) {
this.questionList = res[1].data.records; this.questionList = res[1].data.records
this.wtmx= res[1].data.MapkyXqfx this.wtmx = res[1].data.MapkyXqfx
let counterNum = 0; let counterNum = 0
this.questionList.forEach(async (item) => { this.questionList.forEach(async (item) => {
if (item.isProblem == 0) { if (item.isProblem == 0) {
this.$set(item, 'checked', true)
this.$set(item, "checked", true); this.changeChecked(item)
this.changeChecked(item);
} }
let respon = await selWtmx({ qid: item.qid }); let respon = await selWtmx({ qid: item.qid })
let paramsFX = { let paramsFX = {
batchId: this.clqparams.batchId, batchId: this.clqparams.batchId,
projectId: this.clqparams.projectId, projectId: this.clqparams.projectId,
projectStage: item.questionId, projectStage: item.questionId,
}; }
let responfx = await selZnfx(paramsFX); let responfx = await selZnfx(paramsFX)
counterNum++ counterNum++
if (respon.data.records && respon.data.records.length > 0) { if (respon.data.records && respon.data.records.length > 0) {
respon.data.records.forEach(async (itemImg) => { respon.data.records.forEach(async (itemImg) => {
if (itemImg.url) { if (itemImg.url) {
let paramsImg = { let paramsImg = {
fileId: itemImg.id, fileId: itemImg.id,
url: itemImg.url, url: itemImg.url,
}; }
let resUrl = await presignedUrl(paramsImg); let resUrl = await presignedUrl(paramsImg)
this.$set(itemImg, "fileList", [ this.$set(itemImg, 'fileList', [
{ {
url: resUrl.msg, url: resUrl.msg,
}, },
]); ])
itemImg.hideUploadEdit = true; itemImg.hideUploadEdit = true
} else { } else {
itemImg.hideUploadEdit = false; itemImg.hideUploadEdit = false
} }
}); })
this.$set(item, "evalList", [...respon.data.records]); this.$set(item, 'evalList', [...respon.data.records])
} else { } else {
this.$set(item, "evalList", [ this.$set(item, 'evalList', [
{ {
evalQues: "", evalQues: '',
hideUploadEdit: false, hideUploadEdit: false,
}, },
]); ])
} }
if (responfx.data.records && responfx.data.records.length > 0) { if (responfx.data.records && responfx.data.records.length > 0) {
let znfxList = responfx.data.records.filter((item) => { let znfxList = responfx.data.records.filter((item) => {
if (item.checkDesc&&item.type==0) { if (item.checkDesc && item.type == 0) {
item.checkDesc = item.checkDesc.replace(/\n/g, "<br>"); item.checkDesc = item.checkDesc.replace(/\n/g, '<br>')
} }
return item.checkDesc&&item.type==0; return item.checkDesc && item.type == 0
}); })
this.$set(item, "znfxList", [...znfxList]); this.$set(item, 'znfxList', [...znfxList])
let resfxList = responfx.data.records.filter((item) => { let resfxList = responfx.data.records.filter((item) => {
return item.type == 1 || item.type == 2; return item.type == 1 || item.type == 2
}); })
if(resfxList&&resfxList.length>0){ if (resfxList && resfxList.length > 0) {
let fzfxList=resfxList[0].checkDesc.split("\n"); let fzfxList = resfxList[0].checkDesc.split('\n')
this.$set(item, "fzfxList", [...fzfxList]); this.$set(item, 'fzfxList', [...fzfxList])
} }
} else { } else {
this.$set(item, "znfxList", []); this.$set(item, 'znfxList', [])
this.$set(item, "fzfxList", []); this.$set(item, 'fzfxList', [])
} }
if(counterNum==this.questionList.length){ if (counterNum == this.questionList.length) {
setTimeout(() => { setTimeout(() => {
this.oldQuestionList = JSON.parse(JSON.stringify(this.questionList)); this.oldQuestionList = JSON.parse(JSON.stringify(this.questionList))
}, 300)
}, 300);
} }
}) })
} }
})
});
}, },
async downloadObject(row,code){ async downloadObject(row, code) {
this.iframeUrl="" this.iframeUrl = ''
this.blobType='' this.blobType = ''
let resUrl = await downloadObject({fileId:row.id}); let resUrl = await downloadObject({ fileId: row.id })
if( this.blobType==''){ if (this.blobType == '') {
this.blobType=row.suffix this.blobType = row.suffix
} }
const binaryData = [] const binaryData = []
binaryData.push(resUrl) binaryData.push(resUrl)
let URL = window.URL.createObjectURL(new Blob(binaryData, { type: "application/pdf" })) let URL = window.URL.createObjectURL(new Blob(binaryData, { type: 'application/pdf' }))
if(this.iframeUrl ==''){ if (this.iframeUrl == '') {
this.iframeUrl = URL+'#view=FitH,top' } this.iframeUrl = URL + '#view=FitH,top'
if(this.blobType=='docx'){ }
let docx = require("docx-preview"); if (this.blobType == 'docx') {
this.$nextTick(()=>{ let docx = require('docx-preview')
docx.renderAsync(resUrl,document.getElementById(`word${code}`) ,null, this.docxOptions) // 渲染到页面预览 this.$nextTick(() => {
}) docx.renderAsync(resUrl, document.getElementById(`word${code}`), null, this.docxOptions) // 渲染到页面预览
} })
}
}, },
async handleClick(tab) { async handleClick(tab) {
let params = { let params = {
projectStage: this.active * 1 + 1, projectStage: this.active * 1 + 1,
hgx:"hgx", hgx: 'hgx',
...this.clqparams, ...this.clqparams,
};
this.options=[]
this.valuesel=''
this.iframeUrl =""
console.log("切换", tab.index,);
let resList= await selFileList({ ...params,typeCode:this.tabListKY[tab.index].typeCode });
this.options= resList.data
if(this.options.length>0){
this.valuesel=this.options[0].name
this.downloadObject(this.options[0],this.tabListKY[tab.index].typeCode )
}else{
this.blobType='png'
this.iframeUrl = "/nopdf.png";
} }
this.options = []
this.valuesel = ''
this.iframeUrl = ''
console.log('切换', tab.index)
let resList = await selFileList({ ...params, typeCode: this.tabListKY[tab.index].typeCode })
this.options = resList.data || []
if (this.options.length > 0) {
this.valuesel = this.options[0].name
this.downloadObject(this.options[0], this.tabListKY[tab.index].typeCode)
} else {
this.blobType = 'png'
this.iframeUrl = '/nopdf.png'
}
}, },
change(id) { change(id) {
console.log( console.log(
JSON.stringify(this.questionList) == JSON.stringify(this.questionList) == JSON.stringify(this.oldQuestionList),
JSON.stringify(this.oldQuestionList), '完全相同么',
"完全相同么" )
);
if ( if (JSON.stringify(this.questionList) == JSON.stringify(this.oldQuestionList)) {
JSON.stringify(this.questionList) == this.active = id * 1
JSON.stringify(this.oldQuestionList)
) {
this.active = id * 1;
// this.tabListKY = MaterialsListKY(id * 1 + 1); // this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams); this.init(this.clqparams)
return; return
} }
this.$confirm("是否保存?", "提示", { this.$confirm('是否保存?', '提示', {
confirmButtonText: "是", confirmButtonText: '是',
cancelButtonText: "否", cancelButtonText: '否',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
type: "warning", type: 'warning',
}) })
.then(() => { .then(() => {
this.save('3',id); this.save('3', id)
// this.active = id * 1; // this.active = id * 1;
// this.init(this.clqparams); // this.init(this.clqparams);
}) })
.catch((action) => { .catch((action) => {
console.log(action, "actionaction"); console.log(action, 'actionaction')
if (action === "cancel") { if (action === 'cancel') {
this.active = id * 1; this.active = id * 1
// this.tabListKY = MaterialsListKY(id * 1 + 1); // this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams); this.init(this.clqparams)
} else { } else {
} }
}); })
// this.save() // this.save()
// this.active = id * 1; // this.active = id * 1;
// this.tabListKY = MaterialsListKY(id * 1 + 1); // this.tabListKY = MaterialsListKY(id * 1 + 1);
...@@ -576,145 +540,141 @@ docxOptions: { ...@@ -576,145 +540,141 @@ docxOptions: {
}, },
delInput(item, index) { delInput(item, index) {
if (item.evalList.length <= 1) { if (item.evalList.length <= 1) {
item.checked = true; item.checked = true
this.$set(item, "checked", true); this.$set(item, 'checked', true)
this.changeChecked(item); this.changeChecked(item)
return false; return false
} }
item.evalList.splice(index, 1); item.evalList.splice(index, 1)
}, },
adopt(item, index, items) { adopt(item, index, items) {
if (item.evalList.length == 1 && !item.evalList[0].evalQues) { if (item.evalList.length == 1 && !item.evalList[0].evalQues) {
item.evalList[0].evalQues = items; item.evalList[0].evalQues = items
} else { } else {
item.evalList.push({ item.evalList.push({
evalQues: items, evalQues: items,
hideUploadEdit: false, hideUploadEdit: false,
}); })
} }
}, },
addInput(item) { addInput(item) {
if (item.evalList[0].disabled == true) { if (item.evalList[0].disabled == true) {
console.log("选择了未发现问题"); console.log('选择了未发现问题')
return; return
} }
item.evalList.push({ item.evalList.push({
data: "", data: '',
evalQues: "", evalQues: '',
}); })
}, },
changeChecked(item) { changeChecked(item) {
if (item.checked) { if (item.checked) {
this.$set(item, "evalList", [ this.$set(item, 'evalList', [
{ {
ideval: "", ideval: '',
evalQues: "", evalQues: '',
hideUploadEdit: false, hideUploadEdit: false,
disabled: true, disabled: true,
}, },
]); ])
this.$set(item, "isProblem", 0); this.$set(item, 'isProblem', 0)
// this.$set(item, "Id", 0); // this.$set(item, "Id", 0);
} else { } else {
item.evalList[0].disabled = false; item.evalList[0].disabled = false
this.$set(item, "isProblem", 1); this.$set(item, 'isProblem', 1)
} }
}, },
cancel() { cancel() {
this.$router.push({ this.$router.push({
path: "/mainLayout/auxiliaryInspection", path: '/mainLayout/auxiliaryInspection',
}); })
}, },
async save(type) { async save(type, id) {
this.questionList.forEach((item) => { this.questionList.forEach((item) => {
let evals = ""; let evals = ''
item.evalList.forEach((childItem) => { item.evalList.forEach((childItem) => {
evals = evals.concat(childItem.evalQues + ","); evals = evals.concat(childItem.evalQues + ',')
}); })
evals = evals.slice(0, -1); evals = evals.slice(0, -1)
item.evalQues = evals; item.evalQues = evals
if(item.evalList.length>=1&&item.evalList[0].evalQues){ // if (item.evalList.length >= 1 && item.evalList[0].evalQues) {
item.isProblem=1 // item.isProblem = 1
} // }
}); const isProblem = item.evalList.filter((v) => v.evalQues).length
item.isProblem = isProblem > 0 ? 1 : 0
this.questionList.forEach((item) => { })
if(!item.evalQues&&item.isProblem!=0){
console.log(item.evalQues,item.isProblem,'2222') // this.questionList.forEach((item) => {
this.$message({ // if (!item.evalQues && item.isProblem != 0) {
message: '请完成录入全部问题或选择未发现问题', // console.log(item.evalQues, item.isProblem, '2222')
type: 'warning' // this.$message({
}); // message: '请完成录入全部问题或选择未发现问题',
throw new Error() // type: 'warning',
} // })
// throw new Error()
}); // }
console.log(this.questionList, "questionList"); // })
console.log(this.questionList, 'questionList')
let params = { let params = {
list: this.questionList, list: this.questionList,
...this.clqparams, ...this.clqparams,
}; }
console.log(params, "保存"); console.log(params, '保存')
// return // return
let res = await bcevalQuesInfo(params); let res = await bcevalQuesInfo(params)
if (res.code == "200") { if (res.code == '200') {
this.$message("保存成功"); this.$message('保存成功')
if(type&&type==2){ if (type && type == 2) {
this.$router.push({ this.$router.push({
path: "/mainLayout/Compliancefz", path: '/mainLayout/Compliancefz',
query: { query: {
clqparams: JSON.stringify(this.clqparams), clqparams: JSON.stringify(this.clqparams),
projectName:this.projectName projectName: this.projectName,
}, },
}); })
}else{ } else {
this.active = id * 1; this.active = id * 1
this.init(this.clqparams); this.init(this.clqparams)
} }
} else { } else {
this.$message("保存失败"); this.$message('保存失败')
} }
}, },
fileupdate(res, items) { fileupdate(res, items) {
console.log(this.file.size / 1024, "222222"); console.log(this.file.size / 1024, '222222')
this.file = res.file; this.file = res.file
this.submitFile(res, items); this.submitFile(res, items)
}, },
submitFile(item, list) { submitFile(item, list) {
console.log(list, "list"); console.log(list, 'list')
console.log(this.file, "多少k"); console.log(this.file, '多少k')
if (this.file) { if (this.file) {
const formData = new FormData(); const formData = new FormData()
formData.append("file", this.file); formData.append('file', this.file)
ossupload(formData) ossupload(formData)
.then((response) => { .then((response) => {
console.log(response, "上传图片"); console.log(response, '上传图片')
if (response.code == "200") { if (response.code == '200') {
// list.url = response.data.downLoadUrl; // list.url = response.data.downLoadUrl;
// list.fileId= response.data.fileId // list.fileId= response.data.fileId
this.$set(list, "url", response.data.downLoadUrl); this.$set(list, 'url', response.data.downLoadUrl)
this.$set(list, "fileId", response.data.fileId); this.$set(list, 'fileId', response.data.fileId)
this.$message("上传成功"); this.$message('上传成功')
} else { } else {
this.$message("上传失败"); this.$message('上传失败')
} }
}) })
.catch((error) => { .catch((error) => {
console.error(error); console.error(error)
this.$message("上传失败"); this.$message('上传失败')
}); })
} }
}, },
}, },
}
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -729,7 +689,7 @@ docxOptions: { ...@@ -729,7 +689,7 @@ docxOptions: {
.close { .close {
position: absolute; position: absolute;
right: 20px; right: 20px;
top:0px; top: 0px;
.el-icon-circle-close { .el-icon-circle-close {
font-size: 30px; font-size: 30px;
...@@ -891,12 +851,13 @@ docxOptions: { ...@@ -891,12 +851,13 @@ docxOptions: {
} }
.addBtn { .addBtn {
display: flex; display: flex;
justify-content: space-between; justify-content: flex-end;
// justify-content: space-between;
} }
.Btn { .Btn {
// width: calc(100% - 276px) !important; // width: calc(100% - 276px) !important;
width: 100%; width: 100%;
position:absolute; position: absolute;
height: 50px; height: 50px;
bottom: 0px; bottom: 0px;
right: 0; right: 0;
...@@ -948,39 +909,37 @@ docxOptions: { ...@@ -948,39 +909,37 @@ docxOptions: {
margin-left: 10px; margin-left: 10px;
border: none; border: none;
} }
.blobImg{ .blobImg {
width: 100%; width: 100%;
img{ img {
text-align: center; text-align: center;
width:80%; width: 80%;
} }
} }
.docDiv{ .docDiv {
width: 100%; width: 100%;
height:600px; height: 600px;
overflow: auto; overflow: auto;
} }
.iframeDiv{ .iframeDiv {
width: 80%; width: 80%;
height: 50vh; height: 50vh;
margin: auto; margin: auto;
display: block display: block;
} }
.iframeDivBig{ .iframeDivBig {
width: 80%; width: 80%;
height: 66vh; height: 66vh;
margin: auto; margin: auto;
display: block display: block;
} }
.opt{ .opt {
height: 40px; height: 40px;
width: 100%; width: 100%;
text-align: left; text-align: left;
padding-left: 10px; padding-left: 10px;
/deep/ .el-input__inner{ /deep/ .el-input__inner {
width:600px; width: 600px;
} }
} }
/deep/ .docx-wrapper { /deep/ .docx-wrapper {
...@@ -992,15 +951,15 @@ docxOptions: { ...@@ -992,15 +951,15 @@ docxOptions: {
padding: 2em 1em 0 !important; padding: 2em 1em 0 !important;
margin: 0 auto !important; margin: 0 auto !important;
} }
/deep/.kaimo-docx-666{ /deep/.kaimo-docx-666 {
margin: 0 auto !important; margin: 0 auto !important;
text-align: center; text-align: center;
} }
.dialogscroll{ .dialogscroll {
height: 65vh; height: 65vh;
overflow-y: auto; overflow-y: auto;
} }
.msg{ .msg {
vertical-align: middle; vertical-align: middle;
line-height: 33px; line-height: 33px;
} }
...@@ -1018,7 +977,7 @@ docxOptions: { ...@@ -1018,7 +977,7 @@ docxOptions: {
// margin-top: 3vh !important; // margin-top: 3vh !important;
// margin-left: 3vw !important; // margin-left: 3vw !important;
} }
.noShow{ .noShow {
display: none; display: none;
} }
</style> </style>
\ No newline at end of file
<!-- 辅助核验 --> <!-- 辅助核验 -->
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form :model="ruleForm" label-width="100px" class="demo-ruleForm" ref="formName">
:model="ruleForm"
label-width="100px"
class="demo-ruleForm"
ref="formName"
>
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable> <el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable>
<el-option <el-option
...@@ -18,22 +13,10 @@ ...@@ -18,22 +13,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem"> <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input <el-input v-model="ruleForm.batchName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.batchName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="后评估批次状态:" prop="postEvalState" class="fromItem">
label="后评估批次状态:" <el-select v-model="ruleForm.postEvalState" placeholder="请选择" clearable>
prop="postEvalState"
class="fromItem"
>
<el-select
v-model="ruleForm.postEvalState"
placeholder="请选择"
clearable
>
<el-option label="执行中" value="3"></el-option> <el-option label="执行中" value="3"></el-option>
<el-option label="已发起" value="1"></el-option> <el-option label="已发起" value="1"></el-option>
<el-option label="已撤回" value="4"></el-option> <el-option label="已撤回" value="4"></el-option>
...@@ -62,12 +45,8 @@ ...@@ -62,12 +45,8 @@
<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="configs()" <el-button @click="configs()"><i class="el-icon-position"></i> 确认项目评估 </el-button>
><i class="el-icon-position"></i> 确认项目评估 <el-button @click="withdraw()"> <i class="el-icon-folder-delete"></i>撤回 </el-button>
</el-button>
<el-button @click="withdraw()">
<i class="el-icon-folder-delete"></i>撤回
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="setscrollOne"> <div class="setscrollOne">
...@@ -82,31 +61,18 @@ ...@@ -82,31 +61,18 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<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="batchYear" width="120"> <el-table-column label="批次年度" prop="batchYear" width="120">
<template slot-scope="scope"> {{ scope.row.batchYear }}</template> <template slot-scope="scope"> {{ scope.row.batchYear }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="batchName" label="后评估批次名称"> <el-table-column prop="batchName" label="后评估批次名称"> </el-table-column>
</el-table-column>
<el-table-column prop="expertName" label="评审专家" width="auto"> <el-table-column prop="expertName" label="评审专家" width="auto"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="projectName" label="待评估项目" width="auto" show-overflow-tooltip>
prop="projectName"
label="待评估项目"
width="auto"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="planReviewDate"
label="计划评估日期"
width="auto"
>
</el-table-column> </el-table-column>
<el-table-column prop="planReviewDate" label="计划评估日期" width="auto"> </el-table-column>
<!-- <el-table-column <!-- <el-table-column
prop="postEvalStateText" prop="postEvalStateText"
label="后评估批次状态" label="后评估批次状态"
...@@ -124,17 +90,13 @@ ...@@ -124,17 +90,13 @@
query: { batchName: scope.row.batchName }, query: { batchName: scope.row.batchName },
}" }"
> >
<el-button type="text" size="small">{{ <el-button type="text" size="small">{{ scope.row.postEvalStateText }}</el-button>
scope.row.postEvalStateText
}}</el-button>
</router-link> </router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="creator" label="发起人" width="120"> <el-table-column prop="creator" label="发起人" width="120"> </el-table-column>
</el-table-column> <el-table-column prop="createTime" label="发起时间" width="auto"> </el-table-column>
<el-table-column prop="createTime" label="发起时间" width="auto">
</el-table-column>
<!-- <el-table-column prop="batchName" label="评估项目" width="auto"> <!-- <el-table-column prop="batchName" label="评估项目" width="auto">
</el-table-column> --> </el-table-column> -->
<!-- <el-table-column prop="prjsOfExpert" label="已选择数量" width="auto"> <!-- <el-table-column prop="prjsOfExpert" label="已选择数量" width="auto">
...@@ -171,29 +133,14 @@ ...@@ -171,29 +133,14 @@
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-input v-model="ruleFormdialogBJ.batchYear" disabled></el-input> <el-input v-model="ruleFormdialogBJ.batchYear" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
label="后评估批次名称:"
prop="batchName"
class="fromItem"
>
<el-input v-model="ruleFormdialogBJ.batchName" disabled></el-input> <el-input v-model="ruleFormdialogBJ.batchName" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="计划评估日期:" prop="planReviewDate" class="fromItem">
label="计划评估日期:" <el-input v-model="ruleFormdialogBJ.planReviewDate" disabled></el-input>
prop="planReviewDate"
class="fromItem"
>
<el-input
v-model="ruleFormdialogBJ.planReviewDate"
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="工作组织情况:" class="textarea"> <el-form-item label="工作组织情况:" class="textarea">
<el-input <el-input type="textarea" v-model="ruleFormdialogBJ.description" disabled></el-input>
type="textarea"
v-model="ruleFormdialogBJ.description"
disabled
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -210,64 +157,29 @@ ...@@ -210,64 +157,29 @@
border border
> >
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </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 prop="department" label="部门" width="150"> <!-- <el-table-column prop="department" label="部门" width="150">
</el-table-column> --> </el-table-column> -->
<el-table-column label="项目编码" width="150" prop="projectCode"> <el-table-column label="项目编码" width="150" prop="projectCode"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="projectName" label="项目名称" width="auto" show-overflow-tooltip>
prop="projectName"
label="项目名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="constructionForm" label="建设形式" width="100">
prop="constructionForm"
label="建设形式"
width="100"
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="140"> <el-table-column prop="issueYear" label="项目年度" width="140">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.issueYear }}</template>
{{ scope.row.issueYear }}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="startupStatus" label="启动日期" width="90"> <el-table-column prop="startupStatus" label="启动日期" width="90"> </el-table-column>
<el-table-column prop="accountingStatus" label="入账状态" width="90"> </el-table-column>
<el-table-column prop="accountingProportion" label="累计入账占比" width="90">
<template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="entryAmount" label="入账金额(万)" width="120">
prop="accountingStatus"
label="入账状态"
width="90"
>
</el-table-column>
<el-table-column
prop="accountingProportion"
label="累计入账占比"
width="90"
>
<template slot-scope="scope">
{{ scope.row.accountingProportion }}%
</template>
</el-table-column>
<el-table-column
prop="entryAmount"
label="入账金额(万)"
width="120"
>
</el-table-column>
<el-table-column
prop="currentProgress"
label="当前进度"
width="120"
>
</el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220">
</el-table-column> </el-table-column>
<el-table-column prop="currentProgress" label="当前进度" width="120"> </el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220"> </el-table-column>
<el-table-column <el-table-column
prop="contractName" prop="contractName"
label="合同名称" label="合同名称"
...@@ -275,8 +187,7 @@ ...@@ -275,8 +187,7 @@
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column prop="projectLeader" label="负责人" width="110"> <el-table-column prop="projectLeader" label="负责人" width="110"> </el-table-column>
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination <el-pagination
...@@ -310,44 +221,24 @@ ...@@ -310,44 +221,24 @@
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-input v-model="ruleFormdialogBJ.batchYear" disabled></el-input> <el-input v-model="ruleFormdialogBJ.batchYear" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
label="后评估批次名称:"
prop="batchName"
class="fromItem"
>
<el-input v-model="ruleFormdialogBJ.batchName" disabled></el-input> <el-input v-model="ruleFormdialogBJ.batchName" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="计划评估日期:" prop="planReviewDate" class="fromItem">
label="计划评估日期:" <el-input v-model="ruleFormdialogBJ.planReviewDate" disabled></el-input>
prop="planReviewDate"
class="fromItem"
>
<el-input
v-model="ruleFormdialogBJ.planReviewDate"
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="工作组织情况:" class="textarea"> <el-form-item label="工作组织情况:" class="textarea">
<el-input <el-input type="textarea" v-model="ruleFormdialogBJ.description" disabled></el-input>
type="textarea"
v-model="ruleFormdialogBJ.description"
disabled
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<p class="zjBtn"> <p class="zjBtn">待评估项目 <span @click="xzExperts()">手动选择待评估项目</span></p>
待评估项目 <span @click="xzExperts()">手动选择待评估项目</span>
</p>
<div class="setscrolldialogxz"> <div class="setscrolldialogxz">
<el-table <el-table
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
:data=" :data="
addtableData.slice( addtableData.slice((addcurrentPage - 1) * pageSizeAdd, addcurrentPage * pageSizeAdd)
(addcurrentPage - 1) * pageSizeAdd,
addcurrentPage * pageSizeAdd
)
" "
tooltip-effect="dark myTooltips" tooltip-effect="dark myTooltips"
style="width: 100%" style="width: 100%"
...@@ -357,62 +248,27 @@ ...@@ -357,62 +248,27 @@
border border
> >
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </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 label="项目编码" width="150" prop="projectCode"> <el-table-column label="项目编码" width="150" prop="projectCode"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="projectName" label="项目名称" width="auto" show-overflow-tooltip>
prop="projectName"
label="项目名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="constructionForm" label="建设形式" width="100">
prop="constructionForm"
label="建设形式"
width="100"
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="140"> <el-table-column prop="issueYear" label="项目年度" width="140">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.issueYear }}</template>
{{ scope.row.issueYear }}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="startupStatus" label="启动日期" width="90"> <el-table-column prop="startupStatus" label="启动日期" width="90"> </el-table-column>
</el-table-column> <el-table-column prop="accountingStatus" label="入账状态" width="90"> </el-table-column>
<el-table-column <el-table-column prop="accountingProportion" label="累计入账占比" width="90">
prop="accountingStatus" <template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
label="入账状态"
width="90"
>
</el-table-column>
<el-table-column
prop="accountingProportion"
label="累计入账占比"
width="90"
>
<template slot-scope="scope">
{{ scope.row.accountingProportion }}%
</template>
</el-table-column>
<el-table-column
prop="entryAmount"
label="入账金额(万)"
width="120"
>
</el-table-column>
<el-table-column
prop="currentProgress"
label="当前进度"
width="120"
>
</el-table-column> </el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220"> <el-table-column prop="entryAmount" label="入账金额(万)" width="120">
</el-table-column> </el-table-column>
<el-table-column prop="currentProgress" label="当前进度" width="120"> </el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220"> </el-table-column>
<el-table-column <el-table-column
prop="contractName" prop="contractName"
label="合同名称" label="合同名称"
...@@ -420,8 +276,7 @@ ...@@ -420,8 +276,7 @@
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column prop="projectLeader" label="负责人" width="110"> <el-table-column prop="projectLeader" label="负责人" width="110"> </el-table-column>
</el-table-column>
<el-table-column label="操作" width="130"> <el-table-column label="操作" width="130">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -453,7 +308,7 @@ ...@@ -453,7 +308,7 @@
</p> </p>
</div> </div>
</el-dialog> </el-dialog>
<!-- 选择评估项目 --> <!-- 选择评估项目 -->
<el-dialog <el-dialog
title="选择待评估项目" title="选择待评估项目"
...@@ -465,25 +320,13 @@ ...@@ -465,25 +320,13 @@
<div class="adzjdialog"> <div class="adzjdialog">
<el-form :model="ruleFormZJ" label-width="100px" class="demo-ruleForm"> <el-form :model="ruleFormZJ" label-width="100px" class="demo-ruleForm">
<el-form-item label="项目编码:" prop="projectCode" class="fromItem"> <el-form-item label="项目编码:" prop="projectCode" class="fromItem">
<el-input <el-input v-model="ruleFormZJ.projectCode" placeholder="请输入" clearable></el-input>
v-model="ruleFormZJ.projectCode"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem"> <el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input <el-input v-model="ruleFormZJ.projectName" placeholder="请输入" clearable></el-input>
v-model="ruleFormZJ.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目年度:" prop="issueYear" class="fromItem"> <el-form-item label="项目年度:" prop="issueYear" class="fromItem">
<el-select <el-select v-model="ruleFormZJ.issueYear" placeholder="请选择" clearable>
v-model="ruleFormZJ.issueYear"
placeholder="请选择"
clearable
>
<el-option <el-option
v-for="(item, index) in yearsList" v-for="(item, index) in yearsList"
:key="index" :key="index"
...@@ -492,38 +335,18 @@ ...@@ -492,38 +335,18 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="建设形式:" prop="constructionForm" class="fromItem">
label="建设形式:" <el-select v-model="ruleFormZJ.constructionForm" placeholder="请选择" clearable>
prop="constructionForm"
class="fromItem"
>
<el-select
v-model="ruleFormZJ.constructionForm"
placeholder="请选择"
clearable
>
<el-option label="独立建设" value="1"></el-option> <el-option label="独立建设" value="1"></el-option>
<el-option label="统推" value="2"></el-option> <el-option label="统推" value="2"></el-option>
<el-option label="自建" value="3"></el-option> <el-option label="自建" value="3"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="合同编码:" prop="contractNumber" class="fromItem">
label="合同编码:" <el-input v-model="ruleFormZJ.contractNumber" placeholder="请输入" clearable></el-input>
prop="contractNumber"
class="fromItem"
>
<el-input
v-model="ruleFormZJ.contractNumber"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="合同名称:" prop="contractName" class="fromItem"> <el-form-item label="合同名称:" prop="contractName" class="fromItem">
<el-input <el-input v-model="ruleFormZJ.contractName" placeholder="请输入" clearable></el-input>
v-model="ruleFormZJ.contractName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item class="cxItem"> <el-form-item class="cxItem">
<span class="zjquery" @click="xzExperts()"> 查询 </span> <span class="zjquery" @click="xzExperts()"> 查询 </span>
...@@ -544,64 +367,29 @@ ...@@ -544,64 +367,29 @@
border border
> >
<el-table-column type="selection" :selectable="selectable"> </el-table-column> <el-table-column type="selection" :selectable="selectable"> </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 prop="department" label="部门" width="150"> <!-- <el-table-column prop="department" label="部门" width="150">
</el-table-column> --> </el-table-column> -->
<el-table-column label="项目编码" width="150" prop="projectCode"> <el-table-column label="项目编码" width="150" prop="projectCode"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="projectName" label="项目名称" width="auto" show-overflow-tooltip>
prop="projectName"
label="项目名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="constructionForm" label="建设形式" width="100">
prop="constructionForm"
label="建设形式"
width="100"
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="140"> <el-table-column prop="issueYear" label="项目年度" width="140">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.issueYear }}</template>
{{ scope.row.issueYear }}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="startupStatus" label="启动日期" width="90"> <el-table-column prop="startupStatus" label="启动日期" width="90"> </el-table-column>
<el-table-column prop="accountingStatus" label="入账状态" width="90"> </el-table-column>
<el-table-column prop="accountingProportion" label="累计入账占比" width="90">
<template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="entryAmount" label="入账金额(万)" width="120">
prop="accountingStatus"
label="入账状态"
width="90"
>
</el-table-column>
<el-table-column
prop="accountingProportion"
label="累计入账占比"
width="90"
>
<template slot-scope="scope">
{{ scope.row.accountingProportion }}%
</template>
</el-table-column>
<el-table-column
prop="entryAmount"
label="入账金额(万)"
width="120"
>
</el-table-column>
<el-table-column
prop="currentProgress"
label="当前进度"
width="120"
>
</el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220">
</el-table-column> </el-table-column>
<el-table-column prop="currentProgress" label="当前进度" width="120"> </el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220"> </el-table-column>
<el-table-column <el-table-column
prop="contractName" prop="contractName"
label="合同名称" label="合同名称"
...@@ -610,12 +398,9 @@ ...@@ -610,12 +398,9 @@
> >
</el-table-column> </el-table-column>
<el-table-column prop="zcstate" label="审核状态" width="110"> <el-table-column prop="zcstate" label="审核状态" width="110">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.zcstate | zcstatefilter }}</template>
{{ scope.row.zcstate | zcstatefilter }}</template
>
</el-table-column>
<el-table-column prop="projectLeader" label="负责人" width="110">
</el-table-column> </el-table-column>
<el-table-column prop="projectLeader" label="负责人" width="110"> </el-table-column>
</el-table> </el-table>
</div> </div>
...@@ -632,15 +417,14 @@ ...@@ -632,15 +417,14 @@
</el-pagination> </el-pagination>
<p class="midBtn"> <p class="midBtn">
<span @click="cancelZJ()">取消</span <span @click="cancelZJ()">取消</span><span @click="saveZJ()">选择</span>
><span @click="saveZJ()">选择</span>
</p> </p>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { import {
projectInfo, projectInfo,
fbProjectInfo, fbProjectInfo,
...@@ -649,43 +433,43 @@ import { ...@@ -649,43 +433,43 @@ import {
pmProInitiation, pmProInitiation,
chProjectInfo, chProjectInfo,
bcProjectInfo, bcProjectInfo,
} from "@/api/index"; } from '@/api/index'
import { generateYearOptions, constructionFormText } from "@/utils/cache"; import { generateYearOptions, constructionFormText } from '@/utils/cache'
export default { export default {
data() { data() {
return { return {
yearsList: generateYearOptions(), yearsList: generateYearOptions(),
oldid: "", oldid: '',
ruleForm: { ruleForm: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
postEvalState: "", postEvalState: '',
dates: [], dates: [],
}, },
ruleFormdialog: { ruleFormdialog: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
planReviewDate: "", planReviewDate: '',
fullName: "", fullName: '',
}, },
ruleFormZJ: { ruleFormZJ: {
fields: "", fields: '',
expertState: "", expertState: '',
fullName: "", fullName: '',
}, },
ruleFormdialogAdd: { ruleFormdialogAdd: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
planReviewDate: "", planReviewDate: '',
description: "", description: '',
remark: "", remark: '',
}, },
ruleFormdialogBJ: { ruleFormdialogBJ: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
planReviewDate: "", planReviewDate: '',
prjsOfExpert: "", prjsOfExpert: '',
description: "", description: '',
}, },
tableData: [], tableData: [],
tableDataQD: [], //清单列表 tableDataQD: [], //清单列表
...@@ -709,43 +493,43 @@ export default { ...@@ -709,43 +493,43 @@ export default {
pageSizeAdd: 10, pageSizeAdd: 10,
currentedit: 1, currentedit: 1,
pageSizeedit: 10, pageSizeedit: 10,
xfParam: "", xfParam: '',
dialogedit: false, dialogedit: false,
expertIdList: [], expertIdList: [],
totalBJ: 0, totalBJ: 0,
addZJList: [], addZJList: [],
expertState: "", expertState: '',
fields: "", fields: '',
zjfullName: "", zjfullName: '',
zjtotal: 0, zjtotal: 0,
zjtableData: [], zjtableData: [],
addcurrentPage: 1, addcurrentPage: 1,
addtableData: [], addtableData: [],
message: {}, message: {},
}; }
}, },
filters: { filters: {
zcstatefilter(val) { zcstatefilter(val) {
if (val == 1) { if (val == 1) {
return "待评估"; return '待评估'
} else if (val == 2) { } else if (val == 2) {
return "需整改"; return '需整改'
} else if (val == 3) { } else if (val == 3) {
return "已整改"; return '已整改'
} else if (val == 4) { } else if (val == 4) {
return "已归档"; return '已归档'
} else { } else {
return " "; return ' '
} }
}, },
}, },
watch: { watch: {
// 监听路由对象中的参数部分 // 监听路由对象中的参数部分
"$route.params": { '$route.params': {
immediate: true, immediate: true,
handler(newParams, oldParams) { handler(newParams, oldParams) {
//现在配合demo路由变化掉了两次接口等线上去掉这块时候mounted要调用 //现在配合demo路由变化掉了两次接口等线上去掉这块时候mounted要调用
this.submitForm(); this.submitForm()
}, },
}, },
}, },
...@@ -754,14 +538,14 @@ export default { ...@@ -754,14 +538,14 @@ export default {
}, },
methods: { methods: {
timeChange(time) { timeChange(time) {
console.log("tttttt", time); console.log('tttttt', time)
if (time) { if (time) {
//给后端的参数 //给后端的参数
this.ruleForm.createStartTime = time[0]; this.ruleForm.createStartTime = time[0]
this.ruleForm.createEndTime = time[1]; this.ruleForm.createEndTime = time[1]
} else { } else {
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
} }
}, },
async submitForm() { async submitForm() {
...@@ -769,101 +553,93 @@ export default { ...@@ -769,101 +553,93 @@ export default {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
module: 0, module: 0,
}; }
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm)
console.log(params); console.log(params)
let res = await projectInfo(params); let res = await projectInfo(params)
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) => {
if (item.postEvalState == "3") { if (item.postEvalState == '3') {
this.$set(item, "postEvalStateText", "执行中"); this.$set(item, 'postEvalStateText', '执行中')
} else if (item.postEvalState == "4") { } else if (item.postEvalState == '4') {
this.$set(item, "postEvalStateText", "已撤回"); this.$set(item, 'postEvalStateText', '已撤回')
} else if (item.postEvalState == "5") { } else if (item.postEvalState == '5') {
this.$set(item, "postEvalStateText", "已完成"); this.$set(item, 'postEvalStateText', '已完成')
} else { } else {
this.$set(item, "postEvalStateText", "已发起"); this.$set(item, 'postEvalStateText', '已发起')
} }
}); })
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.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
this.ruleForm.dates = []; 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.ruleFormdialogBJ = this.checkedList[0]; this.ruleFormdialogBJ = this.checkedList[0]
let params = { let params = {
current: this.currentPageXQ, current: this.currentPageXQ,
pageSize: this.pageSizeXQ, pageSize: this.pageSizeXQ,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
Object.assign(params, this.ruleFormdialogAdd); Object.assign(params, this.ruleFormdialogAdd)
this.addtableData = []; this.addtableData = []
let res = await joinProjectInfo(params); let res = await joinProjectInfo(params)
if (res.code == "200") { if (res.code == '200') {
this.addtableData = res.data.records; this.addtableData = res.data.records
this.addtableData.forEach((item) => { this.addtableData.forEach((item) => {
this.$set( this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
item, })
"constructionForm", this.addtotal = res.data.total * 1
constructionFormText(item.constructionForm) console.log(this.addtableData, 'this.addtableData')
); this.dialogXQ = true
});
this.addtotal = res.data.total * 1;
console.log(this.addtableData, "this.addtableData");
this.dialogXQ = true;
} }
}, },
//确认评估项目 //确认评估项目
async configs() { async configs() {
// 只能选中状态待评估的 // 只能选中状态待评估的
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
if (this.checkedList[0].postEvalStateText == "执行中") { if (this.checkedList[0].postEvalStateText == '执行中') {
this.$message("该项目已在执行中"); this.$message('该项目已在执行中')
return; return
} }
this.ruleFormdialogBJ = this.checkedList[0]; this.ruleFormdialogBJ = this.checkedList[0]
this.dialogAdd = true; this.dialogAdd = true
this.addtableData = []; this.addtableData = []
let params = { let params = {
current: this.addcurrentPage, current: this.addcurrentPage,
pageSize: this.pageSizeAdd, pageSize: this.pageSizeAdd,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
Object.assign(params, this.ruleFormdialogAdd); Object.assign(params, this.ruleFormdialogAdd)
let res = await joinProjectInfo(params); let res = await joinProjectInfo(params)
if (res.code == "200") { if (res.code == '200') {
this.addtableData = res.data.records; this.addtableData = res.data.records
this.addtableData.forEach((item) => { this.addtableData.forEach((item) => {
this.$set( this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
item, })
"constructionForm", this.addtotal = res.data.total * 1
constructionFormText(item.constructionForm) this.oldid = ''
);
});
this.addtotal = res.data.total * 1;
this.oldid = "";
if (this.addtableData.length > 0) { if (this.addtableData.length > 0) {
this.addtableData.forEach((item) => { this.addtableData.forEach((item) => {
this.oldid = this.oldid.concat(item.projectCode + ","); this.oldid = this.oldid.concat(item.projectCode + ',')
}); })
} }
} }
}, },
...@@ -871,170 +647,165 @@ export default { ...@@ -871,170 +647,165 @@ export default {
//表格颜色 //表格颜色
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return "warning-row"; return 'warning-row'
} }
return ""; return ''
}, },
//主列表选中行信息 //主列表选中行信息
handleSelectionChange(selection) { handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) { if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false); this.$refs.multipleTable.toggleRowSelection(selection[0], false)
this.$refs.multipleTable.toggleRowSelection(selection[1], true); this.$refs.multipleTable.toggleRowSelection(selection[1], true)
} }
this.checkedList = this.$refs.multipleTable.selection; this.checkedList = this.$refs.multipleTable.selection
this.ruleFormdialog = this.checkedList[0]; this.ruleFormdialog = this.checkedList[0]
console.log(this.checkedList, "2222"); console.log(this.checkedList, '2222')
}, },
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()
}, },
handleSizeChangeZJ(val) { handleSizeChangeZJ(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`)
this.pageSizeZJ = val; this.pageSizeZJ = val
this.xzExperts(); this.xzExperts()
}, },
handleCurrentChangeZJ(val) { handleCurrentChangeZJ(val) {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`)
this.currentZJ = val; this.currentZJ = val
this.xzExperts(); this.xzExperts()
}, },
handleSizeChangeAdd(val) { handleSizeChangeAdd(val) {
this.pageSizeAdd = val; this.pageSizeAdd = val
// this.detailsForm(); // this.detailsForm();
console.log(val, this.addcurrentPage, "1111"); console.log(val, this.addcurrentPage, '1111')
}, },
handleCurrentChangeAdd(val) { handleCurrentChangeAdd(val) {
console.log(val, this.addcurrentPage, "0000"); console.log(val, this.addcurrentPage, '0000')
this.addcurrentPage = val; this.addcurrentPage = val
// this.detailsForm(); // this.detailsForm();
}, },
handleSizeChangXQ(val) { handleSizeChangXQ(val) {
this.pageSizeXQ = val; this.pageSizeXQ = val
this.detailsForm(); this.detailsForm()
console.log(val, this.addcurrentPage, "1111"); console.log(val, this.addcurrentPage, '1111')
}, },
handleCurrentChangeXQ(val) { handleCurrentChangeXQ(val) {
console.log(val, this.addcurrentPage, "0000"); console.log(val, this.addcurrentPage, '0000')
this.currentPageXQ = val; this.currentPageXQ = val
this.detailsForm(); this.detailsForm()
}, },
//选择项目 //选择项目
saveZJ() { saveZJ() {
if (this.addZJList.length < 1) { if (this.addZJList.length < 1) {
this.$message("请选择项目"); this.$message('请选择项目')
return; return
} }
console.log(this.addtableData, this.addZJList, "55555"); console.log(this.addtableData, this.addZJList, '55555')
this.addtableData = [...this.addtableData, ...this.addZJList]; this.addtableData = [...this.addtableData, ...this.addZJList]
this.addtableData = this.addtableData.filter((obj, index, self) => { this.addtableData = this.addtableData.filter((obj, index, self) => {
return index == self.findIndex((t) => t.projectCode == obj.projectCode); return index == self.findIndex((t) => t.projectCode == obj.projectCode)
}); })
this.addtotal = this.addtableData.length; this.addtotal = this.addtableData.length
this.dialogAddzj = false; this.dialogAddzj = false
}, },
cancelZJ() { cancelZJ() {
this.dialogAddzj = false; this.dialogAddzj = false
}, },
async xzExperts() { async xzExperts() {
this.dialogAddzj = true; this.dialogAddzj = true
let params = { let params = {
current: this.currentZJ, current: this.currentZJ,
pageSize: this.pageSizeZJ, pageSize: this.pageSizeZJ,
prjStr: this.oldid, prjStr: this.oldid,
}; }
Object.assign(params, this.ruleFormZJ); Object.assign(params, this.ruleFormZJ)
let res = await pmProInitiation(params); let res = await pmProInitiation(params)
console.log(res.data.records, "res.data.recordsres.data.records"); console.log(res.data.records, 'res.data.recordsres.data.records')
this.zjtableData = res.data.records; this.zjtableData = res.data.records
this.zjtableData.forEach((item) => { this.zjtableData.forEach((item) => {
this.$set( this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
item, })
"constructionForm", this.zjtotal = res.data.total * 1
constructionFormText(item.constructionForm) console.log(res, 'xxx')
);
});
this.zjtotal = res.data.total * 1;
console.log(res, "xxx");
}, },
saveXZ() { saveXZ() {
if (this.addtableData.length < 1) { if (this.addtableData.length < 1) {
this.$message("请选择待评估项目"); this.$message('请选择待评估项目')
} }
console.log(this.addZJList, "this.addZJList"); console.log(this.addZJList, 'this.addZJList')
// 确认发布入参 // 确认发布入参
let expertIdList = ""; let expertIdList = ''
if (this.addtableData.length > 0) { if (this.addtableData.length > 0) {
this.addtableData.forEach((item) => { this.addtableData.forEach((item) => {
expertIdList = expertIdList.concat(item.projectCode + ","); expertIdList = expertIdList.concat(item.projectCode + ',')
}); })
} }
let params = { let params = {
expertStr: expertIdList, expertStr: expertIdList,
}; }
params.batchId = this.ruleFormdialogBJ.batchId; params.batchId = this.ruleFormdialogBJ.batchId
// params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert; // params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
console.log(params, "222"); console.log(params, '222')
// return // return
fbProjectInfo(params).then((res) => { fbProjectInfo(params).then((res) => {
this.dialogAdd = false; this.dialogAdd = false
this.expertIdList = expertIdList; this.expertIdList = expertIdList
this.$message("提交成功"); this.$message('提交成功')
this.resetForm(); this.resetForm()
}); })
}, },
savepro() { savepro() {
// if (this.addtableData.length < 1) { // if (this.addtableData.length < 1) {
// this.$message("没有可保存的项目"); // this.$message("没有可保存的项目");
// } // }
console.log(this.addZJList, "this.addZJList"); console.log(this.addZJList, 'this.addZJList')
// 确认发布入参 // 确认发布入参
let expertIdList = ""; let expertIdList = ''
if (this.addtableData.length > 0) { if (this.addtableData.length > 0) {
this.addtableData.forEach((item) => { this.addtableData.forEach((item) => {
expertIdList = expertIdList.concat(item.projectCode + ","); expertIdList = expertIdList.concat(item.projectCode + ',')
}); })
} }
let params = { let params = {
expertStr: expertIdList, expertStr: expertIdList,
}; }
params.batchId = this.ruleFormdialogBJ.batchId; params.batchId = this.ruleFormdialogBJ.batchId
// params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert; // params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
console.log(params, "222"); console.log(params, '222')
// return // return
bcProjectInfo(params).then((res) => { bcProjectInfo(params).then((res) => {
this.$message("保存成功"); this.$message('保存成功')
// this.dialogAdd = false; // this.dialogAdd = false;
this.expertIdList = expertIdList; this.expertIdList = expertIdList
// this.resetForm(); // this.resetForm();
}); })
}, },
cancelXZ() { cancelXZ() {
this.dialogAdd = false; this.dialogAdd = false
}, },
selectable(item,index){ selectable(item, index) {
if(item.zcstate == 1 || item.zcstate == 2 || item.zcstate == 3){ if (item.zcstate == 1 || item.zcstate == 2 || item.zcstate == 3) {
return false return false
}else{ } else {
return true return true
} }
}, },
selectAll(selection) { selectAll(selection) {
this.addZJList = this.$refs.multipleTableZJ.selection; this.addZJList = this.$refs.multipleTableZJ.selection
console.log(this.$refs.multipleTableZJ.selection, "2222222"); console.log(this.$refs.multipleTableZJ.selection, '2222222')
// selection = selection.filter(item=>{ // selection = selection.filter(item=>{
// return item.zcstate!=1&&item.zcstate!=2&&item.zcstate!=3 // return item.zcstate!=1&&item.zcstate!=2&&item.zcstate!=3
// }); // });
...@@ -1050,66 +821,63 @@ export default { ...@@ -1050,66 +821,63 @@ export default {
// ) // )
// } // }
// }); // });
// console.log(this.$refs.multipleTableZJ.selection, "2222223"); // console.log(this.$refs.multipleTableZJ.selection, "2222223");
}, },
//选中的项目 //选中的项目
handleSelectionChangeZJ(selection, row) { handleSelectionChangeZJ(selection, row) {
console.log("来了么", row); console.log('来了么', row)
if (selection.length < 1) { if (selection.length < 1) {
return; return
} }
if (selection.length === this.zjtableData.Length) { if (selection.length === this.zjtableData.Length) {
console.log("全选"); console.log('全选')
} }
let info = row.zcstate; let info = row.zcstate
if (info == 1 || info == 2 || info == 3) { if (info == 1 || info == 2 || info == 3) {
this.$refs.multipleTableZJ.toggleRowSelection( this.$refs.multipleTableZJ.toggleRowSelection(selection[selection.length - 1], false)
selection[selection.length - 1], this.$message('该项目在流程中,请选择其他项目')
false console.log('不让点')
); return
this.$message("该项目在流程中,请选择其他项目");
console.log("不让点");
return;
} }
this.addZJList = this.$refs.multipleTableZJ.selection; this.addZJList = this.$refs.multipleTableZJ.selection
console.log(this.$refs.multipleTableZJ.selection, "2222222"); console.log(this.$refs.multipleTableZJ.selection, '2222222')
}, },
//点击删除 //点击删除
async handleClick(row, index, rows) { async handleClick(row, index, rows) {
let params = { let params = {
projectId: row.projectCode, projectId: row.projectCode,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
this.$confirm("此操作将删除该项目, 是否继续?", "提示", { this.$confirm('此操作将删除该项目, 是否继续?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning", type: 'warning',
}) })
.then(async () => { .then(async () => {
let res = await delProjectInfo(params); let res = await delProjectInfo(params)
if (res.code == 200) { if (res.code == 200) {
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); })
this.addtotal--; this.addtotal--
rows.splice(index, 1)
} else { } else {
this.$message({ this.$message({
type: "info", type: 'info',
message: "删除失败!", message: '删除失败!',
}); })
} }
}) })
.catch(() => { .catch(() => {
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消删除", message: '已取消删除',
}); })
}); })
rows.splice(index, 1);
// let res = await delProjectInfo(params); // let res = await delProjectInfo(params);
// if(res.code=200){ // if(res.code=200){
...@@ -1121,38 +889,38 @@ export default { ...@@ -1121,38 +889,38 @@ export default {
//点击撤回 //点击撤回
async withdraw() { async withdraw() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
if (this.checkedList[0].postEvalStateText == "已撤回") { if (this.checkedList[0].postEvalStateText == '已撤回') {
this.$message("该项目已撤回"); this.$message('该项目已撤回')
return; return
} }
if (this.checkedList[0].postEvalStateText == "已发起") { if (this.checkedList[0].postEvalStateText == '已发起') {
this.$message("该项目还未确认评估"); this.$message('该项目还未确认评估')
return; return
} }
this.$confirm("是否撤回?", "提示", { this.$confirm('是否撤回?', '提示', {
confirmButtonText: "是", confirmButtonText: '是',
cancelButtonText: "否", cancelButtonText: '否',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
type: "warning", type: 'warning',
}) })
.then(async () => { .then(async () => {
let res = await chProjectInfo({ let res = await chProjectInfo({
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}); })
if ((res.code = "200")) { if ((res.code = '200')) {
this.$message("已撤回"); this.$message('已撤回')
this.resetForm(); this.resetForm()
} }
}) })
.catch((action) => {}); .catch((action) => {})
}, },
}, },
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.main { .main {
font-size: 14px; font-size: 14px;
position: relative; position: relative;
...@@ -1479,7 +1247,7 @@ export default { ...@@ -1479,7 +1247,7 @@ export default {
overflow-x: hidden !important; overflow-x: hidden !important;
} }
} }
.tipred{ .tipred {
color: red; color: red;
text-align: left; text-align: left;
font-size: 13px; font-size: 13px;
...@@ -1498,5 +1266,4 @@ export default { ...@@ -1498,5 +1266,4 @@ export default {
position: absolute; position: absolute;
right: 0; right: 0;
} }
</style>
</style>
\ No newline at end of file
...@@ -21,10 +21,7 @@ ...@@ -21,10 +21,7 @@
<div class="left"> <div class="left">
<p class="tableTitle"> <p class="tableTitle">
检查内容 检查内容
<i <i class="el-icon-full-screen" @click="dialogFullScreen = !dialogFullScreen"></i>
class="el-icon-full-screen"
@click="dialogFullScreen = !dialogFullScreen"
></i>
</p> </p>
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane <el-tab-pane
...@@ -51,24 +48,16 @@ ...@@ -51,24 +48,16 @@
</div> </div>
<iframe <iframe
v-if=" v-if="blobType == 'pdf' || (blobType == 'doc' && options.length > 0)"
blobType == 'pdf' || (blobType == 'doc' && options.length > 0)
"
:key="iframeUrl" :key="iframeUrl"
:src="iframeUrl" :src="iframeUrl"
frameborder="0" frameborder="0"
:class="dialogFullScreen ? 'iframeDivBig' : 'iframeDiv'" :class="dialogFullScreen ? 'iframeDivBig' : 'iframeDiv'"
></iframe> ></iframe>
<div <div v-else-if="blobType == 'png' || blobType == 'jpg'" class="blobImg">
v-else-if="blobType == 'png' || blobType == 'jpg'"
class="blobImg"
>
<img :src="iframeUrl" alt="" /> <img :src="iframeUrl" alt="" />
</div> </div>
<div <div class="docDiv" v-else-if="blobType == 'docx' && options.length > 0">
class="docDiv"
v-else-if="blobType == 'docx' && options.length > 0"
>
<div :ref="`word`" :id="`word${item.typeCode}`"></div> <div :ref="`word`" :id="`word${item.typeCode}`"></div>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -77,47 +66,40 @@ ...@@ -77,47 +66,40 @@
<div class="right"> <div class="right">
<p class="tableTitle">检查项</p> <p class="tableTitle">检查项</p>
<div :class="dialogFullScreen ? 'rightscollBig' : 'rightscoll'"> <div :class="dialogFullScreen ? 'rightscollBig' : 'rightscoll'">
<div <div class="rightContent" v-for="item in questionList" :key="item.questionId">
class="rightContent"
v-for="item in questionList"
:key="item.questionId"
>
<h3>{{ item.questionId }}.{{ item.quesCheckItem }}</h3> <h3>{{ item.questionId }}.{{ item.quesCheckItem }}</h3>
<p class="msg"> <p class="msg">
{{ item.checkDesc }} {{ item.checkDesc }}
<el-button <el-button
type="primary" type="primary"
v-if=" v-if="item.checkDesc == '可研中的需求内容应与业务需求报告中的需求匹配' && wtmx"
item.checkDesc ==
'可研中的需求内容应与业务需求报告中的需求匹配' && wtmx
"
@click="zhanshi()" @click="zhanshi()"
>匹配展示</el-button >匹配展示</el-button
> >
</p> </p>
<div <div class="quesznfx" v-if="item.znfxList && item.znfxList.length > 0">
class="quesznfx"
v-if="item.znfxList && item.znfxList.length > 0"
>
<p class="tips">智能分析:</p> <p class="tips">智能分析:</p>
<!-- <p>{{ item.znfxList[0].projectStage }}</p> --> <!-- <p>{{ item.znfxList[0].projectStage }}</p> -->
<img <img
class="resimg" class="resimg"
:src="resimg" :src="resimg"
alt="" alt=""
v-if="item.znfxList[0].projectStage == '14'&&resimg" v-if="item.znfxList[0].projectStage == '14' && resimg"
/> />
<div v-else> <div v-else>
<div <div
v-for="(itemzn, index) in item.znfxList" v-for="(itemzn, index) in item.znfxList"
:key="index" :key="index"
class="inputDiv" class="inputDiv"
v-html="itemzn.checkDesc" v-html="itemzn.checkDesc"
></div> ></div>
</div> </div>
<span class="el-upload-list__item-actions" v-if="item.znfxList[0].projectStage == '14'&&resimg"> <span
class="el-upload-list__item-actions"
v-if="item.znfxList[0].projectStage == '14' && resimg"
>
<!-- 图片放大 --> <!-- 图片放大 -->
<span <span
class="el-upload-list__item-preview" class="el-upload-list__item-preview"
...@@ -126,19 +108,10 @@ ...@@ -126,19 +108,10 @@
<i class="el-icon-zoom-in"></i> <i class="el-icon-zoom-in"></i>
</span> </span>
</span> </span>
</div> </div>
<div <div class="quesznfx" v-if="item.fzfxList && item.fzfxList.length > 0">
class="quesznfx"
v-if="item.fzfxList && item.fzfxList.length > 0"
>
<p class="tips">辅助分析:</p> <p class="tips">辅助分析:</p>
<div <div v-for="(itemfz, index) in item.fzfxList" :key="index" class="inputDiv">
v-for="(itemfz, index) in item.fzfxList"
:key="index"
class="inputDiv"
>
<el-input <el-input
type="textarea" type="textarea"
:autosize="{ minRows: 1, maxRows: 4 }" :autosize="{ minRows: 1, maxRows: 4 }"
...@@ -156,11 +129,7 @@ ...@@ -156,11 +129,7 @@
</div> </div>
<div class="question"> <div class="question">
<p class="tips">问题描述:</p> <p class="tips">问题描述:</p>
<div <div v-for="(items, index) in item.evalList" :key="index" class="inputDiv">
v-for="(items, index) in item.evalList"
:key="index"
class="inputDiv"
>
<el-input <el-input
type="textarea" type="textarea"
:autosize="{ minRows: 1, maxRows: 4 }" :autosize="{ minRows: 1, maxRows: 4 }"
...@@ -169,9 +138,7 @@ ...@@ -169,9 +138,7 @@
:disabled="items.disabled" :disabled="items.disabled"
> >
</el-input </el-input
><el-button @click="delInput(item, index)" type="primary" ><el-button @click="delInput(item, index)" type="primary">删除</el-button>
>删除</el-button
>
<el-upload <el-upload
class="upload_box" class="upload_box"
...@@ -181,7 +148,7 @@ ...@@ -181,7 +148,7 @@
:on-change="handleEditChange" :on-change="handleEditChange"
:http-request=" :http-request="
(res) => { (res) => {
return fileupdate(res, items); return fileupdate(res, items)
} }
" "
:before-upload="beforeAvatarUpload" :before-upload="beforeAvatarUpload"
...@@ -193,21 +160,12 @@ ...@@ -193,21 +160,12 @@
action="" action=""
> >
<!-- 加号标识 --> <!-- 加号标识 -->
<el-button <el-button class="upload_btn" slot="trigger" size="small" type="primary">
class="upload_btn"
slot="trigger"
size="small"
type="primary"
>
上传截图 上传截图
</el-button> </el-button>
<!-- 上传后显示 --> <!-- 上传后显示 -->
<div slot="file" slot-scope="{ file }"> <div slot="file" slot-scope="{ file }">
<img <img class="el-upload-list__item-thumbnail" :src="file.url" alt="" />
class="el-upload-list__item-thumbnail"
:src="file.url"
alt=""
/>
<span class="el-upload-list__item-actions"> <span class="el-upload-list__item-actions">
<!-- 图片放大 --> <!-- 图片放大 -->
<span <span
...@@ -241,11 +199,12 @@ ...@@ -241,11 +199,12 @@
</el-dialog> </el-dialog>
<p class="addBtn"> <p class="addBtn">
<el-checkbox <!-- <el-checkbox
v-model="item.checked" v-model="item.checked"
@change="changeChecked(item)" @change="changeChecked(item)"
>未发现问题</el-checkbox >未发现问题</el-checkbox
><i class="el-icon-circle-plus" @click="addInput(item)"></i> > -->
<i class="el-icon-circle-plus" @click="addInput(item)"></i>
</p> </p>
</div> </div>
</div> </div>
...@@ -282,53 +241,53 @@ import { ...@@ -282,53 +241,53 @@ import {
ossupload, ossupload,
presignedUrl, presignedUrl,
selFileList, selFileList,
} from "@/api/indexzc"; } from '@/api/indexzc'
import { MaterialsListKY } from "@/utils/cache"; import { MaterialsListKY } from '@/utils/cache'
export default { export default {
data() { data() {
return { return {
resimg: "", resimg: '',
dialogFullScreen: false, dialogFullScreen: false,
valuesel: "", valuesel: '',
options: [], options: [],
dialogImageUrl: "", dialogImageUrl: '',
fileList: [], fileList: [],
evalList: [ evalList: [
{ {
evalQues: "", evalQues: '',
hideUploadEdit: false, hideUploadEdit: false,
}, },
], ],
tabList: [ tabList: [
{ label: "可研", id: 0 }, { label: '可研', id: 0 },
// { label: "计划", id: 1 }, // { label: "计划", id: 1 },
{ label: "采购", id: 2 }, { label: '采购', id: 2 },
{ label: "合同", id: 3 }, { label: '合同', id: 3 },
{ label: "执行", id: 4 }, { label: '执行', id: 4 },
{ label: "结决算及转资", id: 5 }, { label: '结决算及转资', id: 5 },
], ],
tabListKY: [], tabListKY: [],
active: 0, active: 0,
activeName: "0", activeName: '0',
clqparams: {}, clqparams: {},
iframeUrl: "", iframeUrl: '',
urlList: [], urlList: [],
questionList: [], questionList: [],
file: "", file: '',
dialogVisible: false, dialogVisible: false,
fullURL: "", fullURL: '',
hideUploadEdit: false, hideUploadEdit: false,
limitNum: 1, limitNum: 1,
disabled: false, disabled: false,
oldQuestionList: [], //对比列表 oldQuestionList: [], //对比列表
blobType: "pdf", //bolb类型 blobType: 'pdf', //bolb类型
projectName: "", projectName: '',
valuesel: "", valuesel: '',
dialogzhanshi: false, dialogzhanshi: false,
wtmx: "", wtmx: '',
docxOptions: { docxOptions: {
className: "kaimo-docx-666", // string:默认和文档样式类的类名/前缀 className: 'kaimo-docx-666', // string:默认和文档样式类的类名/前缀
inWrapper: false, // boolean:启用围绕文档内容的包装器渲染 inWrapper: false, // boolean:启用围绕文档内容的包装器渲染
ignoreWidth: false, // boolean:禁用页面的渲染宽度 ignoreWidth: false, // boolean:禁用页面的渲染宽度
ignoreHeight: false, // boolean:禁止渲染页面高度 ignoreHeight: false, // boolean:禁止渲染页面高度
...@@ -342,300 +301,284 @@ export default { ...@@ -342,300 +301,284 @@ export default {
showChanges: false, // boolean:启用文档更改的实验性渲染(插入/删除) showChanges: false, // boolean:启用文档更改的实验性渲染(插入/删除)
debug: false, // boolean:启用额外的日志记录 debug: false, // boolean:启用额外的日志记录
}, },
}; }
}, },
mounted() { mounted() {
this.clqparams = JSON.parse(this.$route.query.clqparams); this.clqparams = JSON.parse(this.$route.query.clqparams)
this.projectName = this.$route.query.projectName; this.projectName = this.$route.query.projectName
this.init(this.clqparams); this.init(this.clqparams)
}, },
methods: { methods: {
zhanshi() { zhanshi() {
this.dialogzhanshi = true; this.dialogzhanshi = true
}, },
//提交问题清单 //提交问题清单
async submitNexts() { async submitNexts() {
this.$confirm("您确定检查完所有流程并去提交?", "提示", { this.$confirm('您确定检查完所有流程并去提交?', '提示', {
confirmButtonText: "是", confirmButtonText: '是',
cancelButtonText: "继续检查", cancelButtonText: '继续检查',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
type: "warning", type: 'warning',
}) })
.then(() => { .then(() => {
this.save(2); this.save(2)
}) })
.catch((action) => {}); .catch((action) => {})
}, },
// 放大图片 // 放大图片
handlePictureCardPreview(file) { handlePictureCardPreview(file) {
console.log("点击放大"); console.log('点击放大')
this.dialogImageUrl = file; this.dialogImageUrl = file
this.dialogVisible = true; this.dialogVisible = true
}, },
// 删除图片 // 删除图片
handleRemove(file, fileList) { handleRemove(file, fileList) {
console.log(fileList, "this.fileList"); console.log(fileList, 'this.fileList')
if (this.fileList.length == 0) { if (this.fileList.length == 0) {
this.fileList = []; this.fileList = []
} else { } else {
let dl = this.fileList.indexOf(file); let dl = this.fileList.indexOf(file)
this.fileList.splice(dl, 1); this.fileList.splice(dl, 1)
} }
this.hideUploadEdit = this.fileList.length >= this.limitNum; this.hideUploadEdit = this.fileList.length >= this.limitNum
}, },
// on-change添加文件,上传成功和上传失败时都会被调用 // on-change添加文件,上传成功和上传失败时都会被调用
handleEditChange(file, fileList) { handleEditChange(file, fileList) {
this.hideUploadEdit = fileList.length >= this.limitNum; this.hideUploadEdit = fileList.length >= this.limitNum
}, },
// http-request自定义上传 // http-request自定义上传
ImgUploadSectionFile(param) { ImgUploadSectionFile(param) {
this.param = param; this.param = param
}, },
// before-upload上传文件之前的钩子,参数为上传的文件 // before-upload上传文件之前的钩子,参数为上传的文件
// 若返回 false 或者返回 Promise 且被 reject,则停止上传 // 若返回 false 或者返回 Promise 且被 reject,则停止上传
beforeAvatarUpload(file) { beforeAvatarUpload(file) {
this.file = file; this.file = file
const isJPG = file.type === "image/jpeg" || file.type === "image/png"; const isJPG = file.type === 'image/jpeg' || file.type === 'image/png'
const isLt2M = this.file.size / 1024 < 1000; const isLt2M = this.file.size / 1024 < 1000
console.log(this.file.size / 1024, "this.file.size this.file.size "); console.log(this.file.size / 1024, 'this.file.size this.file.size ')
if (!isJPG) { if (!isJPG) {
this.$message.error("上传图片只能是 JPG 或 PNG 格式!"); this.$message.error('上传图片只能是 JPG 或 PNG 格式!')
this.hideUploadEdit = false; this.hideUploadEdit = false
} }
if (!isLt2M) { if (!isLt2M) {
this.hideUploadEdit = false; this.hideUploadEdit = false
this.$message.error("上传图片大小不能超过 1000k!"); this.$message.error('上传图片大小不能超过 1000k!')
} }
return isJPG && isLt2M; return isJPG && isLt2M
}, },
// 文件上传成功时的钩子 // 文件上传成功时的钩子
handleSuccess(file) { handleSuccess(file) {
// console.log(file); // console.log(file);
const data = file.data; const data = file.data
//然后数据、逻辑处理 //然后数据、逻辑处理
}, },
showFullScreen() { showFullScreen() {
console.log(this.fileList, "4444"); console.log(this.fileList, '4444')
this.fullURL = this.fileList[0].url; this.fullURL = this.fileList[0].url
this.dialogVisible = true; this.dialogVisible = true
}, },
handleExceed() { handleExceed() {
this.$message.warning(`只能选择一张图片`); this.$message.warning(`只能选择一张图片`)
}, },
changexm(row, typeCode) { changexm(row, typeCode) {
this.downloadObject(this.options[row], typeCode); this.downloadObject(this.options[row], typeCode)
console.log(row, "换文件"); console.log(row, '换文件')
}, },
async init(type) { async init(type) {
let params = { let params = {
projectStage: this.active * 1 + 1, projectStage: this.active * 1 + 1,
hgx: "hgx", hgx: 'hgx',
...type, ...type,
}; }
Promise.all([selFile(params), selWtqdFZ(params)]).then(async (res) => { Promise.all([selFile(params), selWtqdFZ(params)]).then(async (res) => {
this.tabListKY = []; this.tabListKY = []
this.urlList = res[0].data; this.urlList = res[0].data
if (this.urlList.length > 0) { if (this.urlList.length > 0) {
this.urlList.forEach((item) => { this.urlList.forEach((item) => {
this.tabListKY.push({ this.tabListKY.push({
typeText: item.materialName, typeText: item.materialName,
typeCode: item.mid, typeCode: item.mid,
}); })
}); })
this.activeName = this.tabListKY[0].typeCode; this.activeName = this.tabListKY[0].typeCode
let resList = await selFileList({ let resList = await selFileList({
...params, ...params,
typeCode: this.tabListKY[0].typeCode, typeCode: this.tabListKY[0].typeCode,
}); })
this.options = resList.data; this.options = resList.data || []
if (this.options.length > 0) { if (this.options.length > 0) {
this.valuesel = this.options[0].name; this.valuesel = this.options[0].name
this.downloadObject(this.options[0], this.tabListKY[0].typeCode); this.downloadObject(this.options[0], this.tabListKY[0].typeCode)
} else { } else {
this.blobType = "png"; this.blobType = 'png'
this.iframeUrl = "/nopdf.png"; this.iframeUrl = '/nopdf.png'
} }
} else { } else {
// this.iframeUrl = "/nopdf.png"; // this.iframeUrl = "/nopdf.png";
} }
if (res[1].data) { if (res[1].data) {
this.questionList = res[1].data.records; this.questionList = res[1].data.records
this.wtmx = res[1].data.MapkyXqfx; this.wtmx = res[1].data.MapkyXqfx
let counterNum = 0; let counterNum = 0
this.questionList.forEach(async (item) => { this.questionList.forEach(async (item) => {
if (item.isProblem == 0) { if (item.isProblem == 0) {
this.$set(item, "checked", true); this.$set(item, 'checked', true)
this.changeChecked(item); this.changeChecked(item)
} }
let respon = await selWtmx({ qid: item.qid }); let respon = await selWtmx({ qid: item.qid })
let paramsFX = { let paramsFX = {
batchId: this.clqparams.batchId, batchId: this.clqparams.batchId,
projectId: this.clqparams.projectId, projectId: this.clqparams.projectId,
projectStage: item.questionId, projectStage: item.questionId,
}; }
let responfx = await selZnfx(paramsFX); let responfx = await selZnfx(paramsFX)
counterNum++; counterNum++
if (respon.data.records && respon.data.records.length > 0) { if (respon.data.records && respon.data.records.length > 0) {
respon.data.records.forEach(async (itemImg) => { respon.data.records.forEach(async (itemImg) => {
if (itemImg.url) { if (itemImg.url) {
let paramsImg = { let paramsImg = {
fileId: itemImg.id, fileId: itemImg.id,
url: itemImg.url, url: itemImg.url,
}; }
let resUrl = await presignedUrl(paramsImg); let resUrl = await presignedUrl(paramsImg)
this.$set(itemImg, "fileList", [ this.$set(itemImg, 'fileList', [
{ {
url: resUrl.msg, url: resUrl.msg,
}, },
]); ])
itemImg.hideUploadEdit = true; itemImg.hideUploadEdit = true
} else { } else {
itemImg.hideUploadEdit = false; itemImg.hideUploadEdit = false
} }
}); })
this.$set(item, "evalList", [...respon.data.records]); this.$set(item, 'evalList', [...respon.data.records])
} else { } else {
this.$set(item, "evalList", [ this.$set(item, 'evalList', [
{ {
evalQues: "", evalQues: '',
hideUploadEdit: false, hideUploadEdit: false,
}, },
]); ])
} }
if (responfx.data.records && responfx.data.records.length > 0) { if (responfx.data.records && responfx.data.records.length > 0) {
let znfxList = responfx.data.records.filter(async (item) => { let znfxList = responfx.data.records.filter(async (item) => {
if (item.projectStage == "14") { if (item.projectStage == '14') {
let paramsImg = { let paramsImg = {
url: item.checkDesc, url: item.checkDesc,
}; }
let resUrl = await presignedUrl(paramsImg); let resUrl = await presignedUrl(paramsImg)
this.resimg = resUrl.msg; this.resimg = resUrl.msg
} }
if (item.checkDesc && item.type == 0) { if (item.checkDesc && item.type == 0) {
item.checkDesc = item.checkDesc.replace(/\n/g, "<br>"); item.checkDesc = item.checkDesc.replace(/\n/g, '<br>')
} }
return item.checkDesc && item.type == 0; return item.checkDesc && item.type == 0
}); })
this.$set(item, "znfxList", [...znfxList]); this.$set(item, 'znfxList', [...znfxList])
let resfxList = responfx.data.records.filter((item) => { let resfxList = responfx.data.records.filter((item) => {
return item.type == 1 || item.type == 2; return item.type == 1 || item.type == 2
}); })
if (resfxList && resfxList.length > 0) { if (resfxList && resfxList.length > 0) {
let fzfxList = resfxList[0].checkDesc.split("\n"); let fzfxList = resfxList[0].checkDesc.split('\n')
this.$set(item, "fzfxList", [...fzfxList]); this.$set(item, 'fzfxList', [...fzfxList])
} }
} else { } else {
this.$set(item, "znfxList", []); this.$set(item, 'znfxList', [])
this.$set(item, "fzfxList", []); this.$set(item, 'fzfxList', [])
} }
if (counterNum == this.questionList.length) { if (counterNum == this.questionList.length) {
setTimeout(() => { setTimeout(() => {
this.oldQuestionList = JSON.parse( this.oldQuestionList = JSON.parse(JSON.stringify(this.questionList))
JSON.stringify(this.questionList) }, 300)
);
}, 300);
} }
}); })
} }
}); })
}, },
async downloadObject(row, code) { async downloadObject(row, code) {
this.iframeUrl = ""; this.iframeUrl = ''
this.blobType = ""; this.blobType = ''
let resUrl = await downloadObject({ fileId: row.id }); let resUrl = await downloadObject({ fileId: row.id })
if (this.blobType == "") { if (this.blobType == '') {
this.blobType = row.suffix; this.blobType = row.suffix
} }
const binaryData = []; const binaryData = []
binaryData.push(resUrl); binaryData.push(resUrl)
let URL = window.URL.createObjectURL( let URL = window.URL.createObjectURL(new Blob(binaryData, { type: 'application/pdf' }))
new Blob(binaryData, { type: "application/pdf" }) if (this.iframeUrl == '') {
); this.iframeUrl = URL + '#view=FitH,top'
if (this.iframeUrl == "") {
this.iframeUrl = URL + "#view=FitH,top";
} }
if (this.blobType == "docx") { if (this.blobType == 'docx') {
let docx = require("docx-preview"); let docx = require('docx-preview')
this.$nextTick(() => { this.$nextTick(() => {
docx.renderAsync( docx.renderAsync(resUrl, document.getElementById(`word${code}`), null, this.docxOptions) // 渲染到页面预览
resUrl, })
document.getElementById(`word${code}`),
null,
this.docxOptions
); // 渲染到页面预览
});
} }
}, },
async handleClick(tab) { async handleClick(tab) {
let params = { let params = {
projectStage: this.active * 1 + 1, projectStage: this.active * 1 + 1,
hgx: "hgx", hgx: 'hgx',
...this.clqparams, ...this.clqparams,
}; }
this.options = []; this.options = []
this.valuesel = ""; this.valuesel = ''
this.iframeUrl = ""; this.iframeUrl = ''
console.log("切换", tab.index); console.log('切换', tab.index)
let resList = await selFileList({ let resList = await selFileList({
...params, ...params,
typeCode: this.tabListKY[tab.index].typeCode, typeCode: this.tabListKY[tab.index].typeCode,
}); })
this.options = resList.data; this.options = resList.data || []
if (this.options.length > 0) { if (this.options.length > 0) {
this.valuesel = this.options[0].name; this.valuesel = this.options[0].name
this.downloadObject( this.downloadObject(this.options[0], this.tabListKY[tab.index].typeCode)
this.options[0],
this.tabListKY[tab.index].typeCode
);
} else { } else {
this.blobType = "png"; this.blobType = 'png'
this.iframeUrl = "/nopdf.png"; this.iframeUrl = '/nopdf.png'
} }
}, },
change(id) { change(id) {
console.log( console.log(
JSON.stringify(this.questionList) == JSON.stringify(this.questionList) == JSON.stringify(this.oldQuestionList),
JSON.stringify(this.oldQuestionList), '完全相同么',
"完全相同么" )
);
if ( if (JSON.stringify(this.questionList) == JSON.stringify(this.oldQuestionList)) {
JSON.stringify(this.questionList) == this.active = id * 1
JSON.stringify(this.oldQuestionList)
) {
this.active = id * 1;
// this.tabListKY = MaterialsListKY(id * 1 + 1); // this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams); this.init(this.clqparams)
return; return
} }
this.$confirm("是否保存?", "提示", { this.$confirm('是否保存?', '提示', {
confirmButtonText: "是", confirmButtonText: '是',
cancelButtonText: "否", cancelButtonText: '否',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
type: "warning", type: 'warning',
}) })
.then(() => { .then(() => {
this.save("3", id); this.save('3', id)
// this.active = id * 1; // this.active = id * 1;
// this.init(this.clqparams); // this.init(this.clqparams);
}) })
.catch((action) => { .catch((action) => {
console.log(action, "actionaction"); console.log(action, 'actionaction')
if (action === "cancel") { if (action === 'cancel') {
this.active = id * 1; this.active = id * 1
// this.tabListKY = MaterialsListKY(id * 1 + 1); // this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams); this.init(this.clqparams)
} else { } else {
} }
}); })
// this.save() // this.save()
// this.active = id * 1; // this.active = id * 1;
// this.tabListKY = MaterialsListKY(id * 1 + 1); // this.tabListKY = MaterialsListKY(id * 1 + 1);
...@@ -643,139 +586,141 @@ export default { ...@@ -643,139 +586,141 @@ export default {
}, },
delInput(item, index) { delInput(item, index) {
if (item.evalList.length <= 1) { if (item.evalList.length <= 1) {
item.checked = true; item.checked = true
this.$set(item, "checked", true); this.$set(item, 'checked', true)
this.changeChecked(item); this.changeChecked(item)
return false; return false
} }
item.evalList.splice(index, 1); item.evalList.splice(index, 1)
}, },
adopt(item, index, items) { adopt(item, index, items) {
if (item.evalList.length == 1 && !item.evalList[0].evalQues) { if (item.evalList.length == 1 && !item.evalList[0].evalQues) {
item.evalList[0].evalQues = items; item.evalList[0].evalQues = items
} else { } else {
item.evalList.push({ item.evalList.push({
evalQues: items, evalQues: items,
hideUploadEdit: false, hideUploadEdit: false,
}); })
} }
}, },
addInput(item) { addInput(item) {
if (item.evalList[0].disabled == true) { if (item.evalList[0].disabled == true) {
console.log("选择了未发现问题"); console.log('选择了未发现问题')
return; return
} }
item.evalList.push({ item.evalList.push({
data: "", data: '',
evalQues: "", evalQues: '',
}); })
}, },
changeChecked(item) { changeChecked(item) {
if (item.checked) { if (item.checked) {
this.$set(item, "evalList", [ this.$set(item, 'evalList', [
{ {
ideval: "", ideval: '',
evalQues: "", evalQues: '',
hideUploadEdit: false, hideUploadEdit: false,
disabled: true, disabled: true,
}, },
]); ])
this.$set(item, "isProblem", 0); this.$set(item, 'isProblem', 0)
// this.$set(item, "Id", 0); // this.$set(item, "Id", 0);
} else { } else {
item.evalList[0].disabled = false; item.evalList[0].disabled = false
this.$set(item, "isProblem", 1); this.$set(item, 'isProblem', 1)
} }
}, },
cancel() { cancel() {
this.$router.push({ this.$router.push({
path: "/assesszc/auxiliaryInspection", path: '/assesszc/auxiliaryInspection',
}); })
}, },
async save(type) { async save(type, id) {
this.questionList.forEach((item) => { this.questionList.forEach((item) => {
let evals = ""; let evals = ''
item.evalList.forEach((childItem) => { item.evalList.forEach((childItem) => {
evals = evals.concat(childItem.evalQues + ","); evals = evals.concat(childItem.evalQues + ',')
}); })
evals = evals.slice(0, -1); evals = evals.slice(0, -1)
item.evalQues = evals; item.evalQues = evals
if (item.evalList.length >= 1 && item.evalList[0].evalQues) { // if (item.evalList.length >= 1 && item.evalList[0].evalQues) {
item.isProblem = 1; // item.isProblem = 1;
} // }
}); const isProblem = item.evalList.filter((v) => v.evalQues).length
item.isProblem = isProblem > 0 ? 1 : 0
})
this.questionList.forEach((item) => { // this.questionList.forEach((item) => {
if (!item.evalQues && item.isProblem != 0) { // if (!item.evalQues && item.isProblem != 0) {
console.log(item.evalQues, item.isProblem, "2222"); // console.log(item.evalQues, item.isProblem, "2222");
this.$message({ // this.$message({
message: "请完成录入全部问题或选择未发现问题", // message: "请完成录入全部问题或选择未发现问题",
type: "warning", // type: "warning",
}); // });
throw new Error(); // throw new Error();
} // }
}); // });
console.log(this.questionList, "questionList"); console.log(this.questionList, 'questionList')
let params = { let params = {
list: this.questionList, list: this.questionList,
...this.clqparams, ...this.clqparams,
}; }
console.log(params, "保存"); console.log(params, '保存')
// return // return
let res = await bcevalQuesInfo(params); let res = await bcevalQuesInfo(params)
if (res.code == "200") { if (res.code == '200') {
this.$message("保存成功"); this.$message('保存成功')
if (type && type == 2) { if (type && type == 2) {
this.$router.push({ this.$router.push({
path: "/assesszc/Compliancefz", path: '/assesszc/Compliancefz',
query: { query: {
clqparams: JSON.stringify(this.clqparams), clqparams: JSON.stringify(this.clqparams),
projectName: this.projectName, projectName: this.projectName,
}, },
}); })
} else { } else {
this.active = id * 1; this.active = id * 1
this.init(this.clqparams); this.init(this.clqparams)
} }
} else { } else {
this.$message("保存失败"); this.$message('保存失败')
} }
}, },
fileupdate(res, items) { fileupdate(res, items) {
console.log(this.file.size / 1024, "222222"); console.log(this.file.size / 1024, '222222')
this.file = res.file; this.file = res.file
this.submitFile(res, items); this.submitFile(res, items)
}, },
submitFile(item, list) { submitFile(item, list) {
console.log(list, "list"); console.log(list, 'list')
console.log(this.file, "多少k"); console.log(this.file, '多少k')
if (this.file) { if (this.file) {
const formData = new FormData(); const formData = new FormData()
formData.append("file", this.file); formData.append('file', this.file)
ossupload(formData) ossupload(formData)
.then((response) => { .then((response) => {
console.log(response, "上传图片"); console.log(response, '上传图片')
if (response.code == "200") { if (response.code == '200') {
// list.url = response.data.downLoadUrl; // list.url = response.data.downLoadUrl;
// list.fileId= response.data.fileId // list.fileId= response.data.fileId
this.$set(list, "url", response.data.downLoadUrl); this.$set(list, 'url', response.data.downLoadUrl)
this.$set(list, "fileId", response.data.fileId); this.$set(list, 'fileId', response.data.fileId)
this.$message("上传成功"); this.$message('上传成功')
} else { } else {
this.$message("上传失败"); this.$message('上传失败')
} }
}) })
.catch((error) => { .catch((error) => {
console.error(error); console.error(error)
this.$message("上传失败"); this.$message('上传失败')
}); })
} }
}, },
}, },
}; }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -952,7 +897,8 @@ export default { ...@@ -952,7 +897,8 @@ export default {
} }
.addBtn { .addBtn {
display: flex; display: flex;
justify-content: space-between; justify-content: flex-end;
// justify-content: space-between;
} }
.Btn { .Btn {
// width: calc(100% - 276px) !important; // width: calc(100% - 276px) !important;
...@@ -1084,4 +1030,4 @@ export default { ...@@ -1084,4 +1030,4 @@ export default {
display: inline-block; display: inline-block;
width: 100px; width: 100px;
} }
</style> </style>
\ No newline at end of file
<!-- 辅助核验 --> <!-- 辅助核验 -->
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form :model="ruleForm" label-width="100px" class="demo-ruleForm" ref="formName">
:model="ruleForm"
label-width="100px"
class="demo-ruleForm"
ref="formName"
>
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable> <el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable>
<el-option <el-option
...@@ -18,22 +13,10 @@ ...@@ -18,22 +13,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem"> <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input <el-input v-model="ruleForm.batchName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.batchName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="后评估批次状态:" prop="postEvalState" class="fromItem">
label="后评估批次状态:" <el-select v-model="ruleForm.postEvalState" placeholder="请选择" clearable>
prop="postEvalState"
class="fromItem"
>
<el-select
v-model="ruleForm.postEvalState"
placeholder="请选择"
clearable
>
<el-option label="执行中" value="3"></el-option> <el-option label="执行中" value="3"></el-option>
<el-option label="已发起" value="1"></el-option> <el-option label="已发起" value="1"></el-option>
<el-option label="已撤回" value="4"></el-option> <el-option label="已撤回" value="4"></el-option>
...@@ -62,12 +45,8 @@ ...@@ -62,12 +45,8 @@
<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="configs()" <el-button @click="configs()"><i class="el-icon-position"></i> 确认项目评估 </el-button>
><i class="el-icon-position"></i> 确认项目评估 <el-button @click="withdraw()"> <i class="el-icon-folder-delete"></i>撤回 </el-button>
</el-button>
<el-button @click="withdraw()">
<i class="el-icon-folder-delete"></i>撤回
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="setscrollOne"> <div class="setscrollOne">
...@@ -82,31 +61,18 @@ ...@@ -82,31 +61,18 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<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="batchYear" width="120"> <el-table-column label="批次年度" prop="batchYear" width="120">
<template slot-scope="scope"> {{ scope.row.batchYear }}</template> <template slot-scope="scope"> {{ scope.row.batchYear }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="batchName" label="后评估批次名称"> <el-table-column prop="batchName" label="后评估批次名称"> </el-table-column>
</el-table-column>
<el-table-column prop="expertName" label="评审专家" width="auto"> <el-table-column prop="expertName" label="评审专家" width="auto"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="projectName" label="待评估项目" width="auto" show-overflow-tooltip>
prop="projectName"
label="待评估项目"
width="auto"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="planReviewDate"
label="计划评估日期"
width="auto"
>
</el-table-column> </el-table-column>
<el-table-column prop="planReviewDate" label="计划评估日期" width="auto"> </el-table-column>
<!-- <el-table-column <!-- <el-table-column
prop="postEvalStateText" prop="postEvalStateText"
label="后评估批次状态" label="后评估批次状态"
...@@ -124,17 +90,13 @@ ...@@ -124,17 +90,13 @@
query: { batchName: scope.row.batchName }, query: { batchName: scope.row.batchName },
}" }"
> >
<el-button type="text" size="small">{{ <el-button type="text" size="small">{{ scope.row.postEvalStateText }}</el-button>
scope.row.postEvalStateText
}}</el-button>
</router-link> </router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="creator" label="发起人" width="120"> <el-table-column prop="creator" label="发起人" width="120"> </el-table-column>
</el-table-column> <el-table-column prop="createTime" label="发起时间" width="auto"> </el-table-column>
<el-table-column prop="createTime" label="发起时间" width="auto">
</el-table-column>
<!-- <el-table-column prop="batchName" label="评估项目" width="auto"> <!-- <el-table-column prop="batchName" label="评估项目" width="auto">
</el-table-column> --> </el-table-column> -->
<!-- <el-table-column prop="prjsOfExpert" label="已选择数量" width="auto"> <!-- <el-table-column prop="prjsOfExpert" label="已选择数量" width="auto">
...@@ -171,29 +133,14 @@ ...@@ -171,29 +133,14 @@
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-input v-model="ruleFormdialogBJ.batchYear" disabled></el-input> <el-input v-model="ruleFormdialogBJ.batchYear" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
label="后评估批次名称:"
prop="batchName"
class="fromItem"
>
<el-input v-model="ruleFormdialogBJ.batchName" disabled></el-input> <el-input v-model="ruleFormdialogBJ.batchName" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="计划评估日期:" prop="planReviewDate" class="fromItem">
label="计划评估日期:" <el-input v-model="ruleFormdialogBJ.planReviewDate" disabled></el-input>
prop="planReviewDate"
class="fromItem"
>
<el-input
v-model="ruleFormdialogBJ.planReviewDate"
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="工作组织情况:" class="textarea"> <el-form-item label="工作组织情况:" class="textarea">
<el-input <el-input type="textarea" v-model="ruleFormdialogBJ.description" disabled></el-input>
type="textarea"
v-model="ruleFormdialogBJ.description"
disabled
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -210,64 +157,29 @@ ...@@ -210,64 +157,29 @@
border border
> >
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </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 prop="department" label="部门" width="150"> <!-- <el-table-column prop="department" label="部门" width="150">
</el-table-column> --> </el-table-column> -->
<el-table-column label="项目编码" width="150" prop="projectCode"> <el-table-column label="项目编码" width="150" prop="projectCode"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="projectName" label="项目名称" width="auto" show-overflow-tooltip>
prop="projectName"
label="项目名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="constructionForm" label="建设形式" width="100">
prop="constructionForm"
label="建设形式"
width="100"
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="140"> <el-table-column prop="issueYear" label="项目年度" width="140">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.issueYear }}</template>
{{ scope.row.issueYear }}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="startupStatus" label="启动日期" width="90"> <el-table-column prop="startupStatus" label="启动日期" width="90"> </el-table-column>
</el-table-column> <el-table-column prop="accountingStatus" label="入账状态" width="90"> </el-table-column>
<el-table-column <el-table-column prop="accountingProportion" label="累计入账占比" width="90">
prop="accountingStatus" <template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
label="入账状态"
width="90"
>
</el-table-column>
<el-table-column
prop="accountingProportion"
label="累计入账占比"
width="90"
>
<template slot-scope="scope">
{{ scope.row.accountingProportion }}%
</template>
</el-table-column>
<el-table-column
prop="entryAmount"
label="入账金额(万)"
width="120"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="entryAmount" label="入账金额(万)" width="120">
prop="currentProgress"
label="当前进度"
width="120"
>
</el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220">
</el-table-column> </el-table-column>
<el-table-column prop="currentProgress" label="当前进度" width="120"> </el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220"> </el-table-column>
<el-table-column <el-table-column
prop="contractName" prop="contractName"
label="合同名称" label="合同名称"
...@@ -275,8 +187,7 @@ ...@@ -275,8 +187,7 @@
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column prop="projectLeader" label="负责人" width="110"> <el-table-column prop="projectLeader" label="负责人" width="110"> </el-table-column>
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination <el-pagination
...@@ -310,44 +221,24 @@ ...@@ -310,44 +221,24 @@
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-input v-model="ruleFormdialogBJ.batchYear" disabled></el-input> <el-input v-model="ruleFormdialogBJ.batchYear" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
label="后评估批次名称:"
prop="batchName"
class="fromItem"
>
<el-input v-model="ruleFormdialogBJ.batchName" disabled></el-input> <el-input v-model="ruleFormdialogBJ.batchName" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="计划评估日期:" prop="planReviewDate" class="fromItem">
label="计划评估日期:" <el-input v-model="ruleFormdialogBJ.planReviewDate" disabled></el-input>
prop="planReviewDate"
class="fromItem"
>
<el-input
v-model="ruleFormdialogBJ.planReviewDate"
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="工作组织情况:" class="textarea"> <el-form-item label="工作组织情况:" class="textarea">
<el-input <el-input type="textarea" v-model="ruleFormdialogBJ.description" disabled></el-input>
type="textarea"
v-model="ruleFormdialogBJ.description"
disabled
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<p class="zjBtn"> <p class="zjBtn">待评估项目 <span @click="xzExperts()">手动选择待评估项目</span></p>
待评估项目 <span @click="xzExperts()">手动选择待评估项目</span>
</p>
<div class="setscrolldialogxz"> <div class="setscrolldialogxz">
<el-table <el-table
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
:data=" :data="
addtableData.slice( addtableData.slice((addcurrentPage - 1) * pageSizeAdd, addcurrentPage * pageSizeAdd)
(addcurrentPage - 1) * pageSizeAdd,
addcurrentPage * pageSizeAdd
)
" "
tooltip-effect="dark myTooltips" tooltip-effect="dark myTooltips"
style="width: 100%" style="width: 100%"
...@@ -357,62 +248,27 @@ ...@@ -357,62 +248,27 @@
border border
> >
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </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 label="项目编码" width="150" prop="projectCode"> <el-table-column label="项目编码" width="150" prop="projectCode"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="projectName" label="项目名称" width="auto" show-overflow-tooltip>
prop="projectName"
label="项目名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="constructionForm" label="建设形式" width="100">
prop="constructionForm"
label="建设形式"
width="100"
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="140"> <el-table-column prop="issueYear" label="项目年度" width="140">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.issueYear }}</template>
{{ scope.row.issueYear }}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="startupStatus" label="启动日期" width="90"> <el-table-column prop="startupStatus" label="启动日期" width="90"> </el-table-column>
</el-table-column> <el-table-column prop="accountingStatus" label="入账状态" width="90"> </el-table-column>
<el-table-column <el-table-column prop="accountingProportion" label="累计入账占比" width="90">
prop="accountingStatus" <template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
label="入账状态"
width="90"
>
</el-table-column>
<el-table-column
prop="accountingProportion"
label="累计入账占比"
width="90"
>
<template slot-scope="scope">
{{ scope.row.accountingProportion }}%
</template>
</el-table-column>
<el-table-column
prop="entryAmount"
label="入账金额(万)"
width="120"
>
</el-table-column>
<el-table-column
prop="currentProgress"
label="当前进度"
width="120"
>
</el-table-column> </el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220"> <el-table-column prop="entryAmount" label="入账金额(万)" width="120">
</el-table-column> </el-table-column>
<el-table-column prop="currentProgress" label="当前进度" width="120"> </el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220"> </el-table-column>
<el-table-column <el-table-column
prop="contractName" prop="contractName"
label="合同名称" label="合同名称"
...@@ -420,8 +276,7 @@ ...@@ -420,8 +276,7 @@
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column prop="projectLeader" label="负责人" width="110"> <el-table-column prop="projectLeader" label="负责人" width="110"> </el-table-column>
</el-table-column>
<el-table-column label="操作" width="130"> <el-table-column label="操作" width="130">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -464,25 +319,13 @@ ...@@ -464,25 +319,13 @@
<div class="adzjdialog"> <div class="adzjdialog">
<el-form :model="ruleFormZJ" label-width="100px" class="demo-ruleForm"> <el-form :model="ruleFormZJ" label-width="100px" class="demo-ruleForm">
<el-form-item label="项目编码:" prop="projectCode" class="fromItem"> <el-form-item label="项目编码:" prop="projectCode" class="fromItem">
<el-input <el-input v-model="ruleFormZJ.projectCode" placeholder="请输入" clearable></el-input>
v-model="ruleFormZJ.projectCode"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem"> <el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input <el-input v-model="ruleFormZJ.projectName" placeholder="请输入" clearable></el-input>
v-model="ruleFormZJ.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目年度:" prop="issueYear" class="fromItem"> <el-form-item label="项目年度:" prop="issueYear" class="fromItem">
<el-select <el-select v-model="ruleFormZJ.issueYear" placeholder="请选择" clearable>
v-model="ruleFormZJ.issueYear"
placeholder="请选择"
clearable
>
<el-option <el-option
v-for="(item, index) in yearsList" v-for="(item, index) in yearsList"
:key="index" :key="index"
...@@ -491,38 +334,18 @@ ...@@ -491,38 +334,18 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="建设形式:" prop="constructionForm" class="fromItem">
label="建设形式:" <el-select v-model="ruleFormZJ.constructionForm" placeholder="请选择" clearable>
prop="constructionForm"
class="fromItem"
>
<el-select
v-model="ruleFormZJ.constructionForm"
placeholder="请选择"
clearable
>
<el-option label="独立建设" value="1"></el-option> <el-option label="独立建设" value="1"></el-option>
<el-option label="统推" value="2"></el-option> <el-option label="统推" value="2"></el-option>
<el-option label="自建" value="3"></el-option> <el-option label="自建" value="3"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="合同编码:" prop="contractNumber" class="fromItem">
label="合同编码:" <el-input v-model="ruleFormZJ.contractNumber" placeholder="请输入" clearable></el-input>
prop="contractNumber"
class="fromItem"
>
<el-input
v-model="ruleFormZJ.contractNumber"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="合同名称:" prop="contractName" class="fromItem"> <el-form-item label="合同名称:" prop="contractName" class="fromItem">
<el-input <el-input v-model="ruleFormZJ.contractName" placeholder="请输入" clearable></el-input>
v-model="ruleFormZJ.contractName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item class="cxItem"> <el-form-item class="cxItem">
<span class="zjquery" @click="xzExperts()"> 查询 </span> <span class="zjquery" @click="xzExperts()"> 查询 </span>
...@@ -543,64 +366,29 @@ ...@@ -543,64 +366,29 @@
border border
> >
<el-table-column type="selection" :selectable="selectable"> </el-table-column> <el-table-column type="selection" :selectable="selectable"> </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 prop="department" label="部门" width="150"> <!-- <el-table-column prop="department" label="部门" width="150">
</el-table-column> --> </el-table-column> -->
<el-table-column label="项目编码" width="150" prop="projectCode"> <el-table-column label="项目编码" width="150" prop="projectCode"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="projectName" label="项目名称" width="auto" show-overflow-tooltip>
prop="projectName"
label="项目名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="constructionForm" label="建设形式" width="100">
prop="constructionForm"
label="建设形式"
width="100"
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="140"> <el-table-column prop="issueYear" label="项目年度" width="140">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.issueYear }}</template>
{{ scope.row.issueYear }}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="startupStatus" label="启动日期" width="90"> <el-table-column prop="startupStatus" label="启动日期" width="90"> </el-table-column>
</el-table-column> <el-table-column prop="accountingStatus" label="入账状态" width="90"> </el-table-column>
<el-table-column <el-table-column prop="accountingProportion" label="累计入账占比" width="90">
prop="accountingStatus" <template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
label="入账状态"
width="90"
>
</el-table-column>
<el-table-column
prop="accountingProportion"
label="累计入账占比"
width="90"
>
<template slot-scope="scope">
{{ scope.row.accountingProportion }}%
</template>
</el-table-column>
<el-table-column
prop="entryAmount"
label="入账金额(万)"
width="120"
>
</el-table-column>
<el-table-column
prop="currentProgress"
label="当前进度"
width="120"
>
</el-table-column> </el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220"> <el-table-column prop="entryAmount" label="入账金额(万)" width="120">
</el-table-column> </el-table-column>
<el-table-column prop="currentProgress" label="当前进度" width="120"> </el-table-column>
<el-table-column prop="contractNumber" label="合同编号" width="220"> </el-table-column>
<el-table-column <el-table-column
prop="contractName" prop="contractName"
label="合同名称" label="合同名称"
...@@ -609,12 +397,9 @@ ...@@ -609,12 +397,9 @@
> >
</el-table-column> </el-table-column>
<el-table-column prop="zcstate" label="审核状态" width="110"> <el-table-column prop="zcstate" label="审核状态" width="110">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.zcstate | zcstatefilter }}</template>
{{ scope.row.zcstate | zcstatefilter }}</template
>
</el-table-column>
<el-table-column prop="projectLeader" label="负责人" width="110">
</el-table-column> </el-table-column>
<el-table-column prop="projectLeader" label="负责人" width="110"> </el-table-column>
</el-table> </el-table>
</div> </div>
...@@ -631,15 +416,14 @@ ...@@ -631,15 +416,14 @@
</el-pagination> </el-pagination>
<p class="midBtn"> <p class="midBtn">
<span @click="cancelZJ()">取消</span <span @click="cancelZJ()">取消</span><span @click="saveZJ()">选择</span>
><span @click="saveZJ()">选择</span>
</p> </p>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { import {
projectInfo, projectInfo,
fbProjectInfo, fbProjectInfo,
...@@ -648,43 +432,43 @@ import { ...@@ -648,43 +432,43 @@ import {
pmProInitiation, pmProInitiation,
chProjectInfo, chProjectInfo,
bcProjectInfo, bcProjectInfo,
} from "@/api/indexzc"; } from '@/api/indexzc'
import { generateYearOptions, constructionFormText } from "@/utils/cache"; import { generateYearOptions, constructionFormText } from '@/utils/cache'
export default { export default {
data() { data() {
return { return {
yearsList: generateYearOptions(), yearsList: generateYearOptions(),
oldid: "", oldid: '',
ruleForm: { ruleForm: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
postEvalState: "", postEvalState: '',
dates: [], dates: [],
}, },
ruleFormdialog: { ruleFormdialog: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
planReviewDate: "", planReviewDate: '',
fullName: "", fullName: '',
}, },
ruleFormZJ: { ruleFormZJ: {
fields: "", fields: '',
expertState: "", expertState: '',
fullName: "", fullName: '',
}, },
ruleFormdialogAdd: { ruleFormdialogAdd: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
planReviewDate: "", planReviewDate: '',
description: "", description: '',
remark: "", remark: '',
}, },
ruleFormdialogBJ: { ruleFormdialogBJ: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
planReviewDate: "", planReviewDate: '',
prjsOfExpert: "", prjsOfExpert: '',
description: "", description: '',
}, },
tableData: [], tableData: [],
tableDataQD: [], //清单列表 tableDataQD: [], //清单列表
...@@ -708,43 +492,43 @@ export default { ...@@ -708,43 +492,43 @@ export default {
pageSizeAdd: 10, pageSizeAdd: 10,
currentedit: 1, currentedit: 1,
pageSizeedit: 10, pageSizeedit: 10,
xfParam: "", xfParam: '',
dialogedit: false, dialogedit: false,
expertIdList: [], expertIdList: [],
totalBJ: 0, totalBJ: 0,
addZJList: [], addZJList: [],
expertState: "", expertState: '',
fields: "", fields: '',
zjfullName: "", zjfullName: '',
zjtotal: 0, zjtotal: 0,
zjtableData: [], zjtableData: [],
addcurrentPage: 1, addcurrentPage: 1,
addtableData: [], addtableData: [],
message: {}, message: {},
}; }
}, },
filters: { filters: {
zcstatefilter(val) { zcstatefilter(val) {
if (val == 1) { if (val == 1) {
return "待评估"; return '待评估'
} else if (val == 2) { } else if (val == 2) {
return "需整改"; return '需整改'
} else if (val == 3) { } else if (val == 3) {
return "已整改"; return '已整改'
} else if (val == 4) { } else if (val == 4) {
return "已归档"; return '已归档'
} else { } else {
return " "; return ' '
} }
}, },
}, },
watch: { watch: {
// 监听路由对象中的参数部分 // 监听路由对象中的参数部分
"$route.params": { '$route.params': {
immediate: true, immediate: true,
handler(newParams, oldParams) { handler(newParams, oldParams) {
//现在配合demo路由变化掉了两次接口等线上去掉这块时候mounted要调用 //现在配合demo路由变化掉了两次接口等线上去掉这块时候mounted要调用
this.submitForm(); this.submitForm()
}, },
}, },
}, },
...@@ -753,14 +537,14 @@ export default { ...@@ -753,14 +537,14 @@ export default {
}, },
methods: { methods: {
timeChange(time) { timeChange(time) {
console.log("tttttt", time); console.log('tttttt', time)
if (time) { if (time) {
//给后端的参数 //给后端的参数
this.ruleForm.createStartTime = time[0]; this.ruleForm.createStartTime = time[0]
this.ruleForm.createEndTime = time[1]; this.ruleForm.createEndTime = time[1]
} else { } else {
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
} }
}, },
async submitForm() { async submitForm() {
...@@ -768,101 +552,93 @@ export default { ...@@ -768,101 +552,93 @@ export default {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
module: 1, module: 1,
}; }
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm)
console.log(params); console.log(params)
let res = await projectInfo(params); let res = await projectInfo(params)
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) => {
if (item.postEvalState == "3") { if (item.postEvalState == '3') {
this.$set(item, "postEvalStateText", "执行中"); this.$set(item, 'postEvalStateText', '执行中')
} else if (item.postEvalState == "4") { } else if (item.postEvalState == '4') {
this.$set(item, "postEvalStateText", "已撤回"); this.$set(item, 'postEvalStateText', '已撤回')
} else if (item.postEvalState == "5") { } else if (item.postEvalState == '5') {
this.$set(item, "postEvalStateText", "已完成"); this.$set(item, 'postEvalStateText', '已完成')
} else { } else {
this.$set(item, "postEvalStateText", "已发起"); this.$set(item, 'postEvalStateText', '已发起')
} }
}); })
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.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
this.ruleForm.dates = []; 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.ruleFormdialogBJ = this.checkedList[0]; this.ruleFormdialogBJ = this.checkedList[0]
let params = { let params = {
current: this.currentPageXQ, current: this.currentPageXQ,
pageSize: this.pageSizeXQ, pageSize: this.pageSizeXQ,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
Object.assign(params, this.ruleFormdialogAdd); Object.assign(params, this.ruleFormdialogAdd)
this.addtableData = []; this.addtableData = []
let res = await joinProjectInfo(params); let res = await joinProjectInfo(params)
if (res.code == "200") { if (res.code == '200') {
this.addtableData = res.data.records; this.addtableData = res.data.records
this.addtableData.forEach((item) => { this.addtableData.forEach((item) => {
this.$set( this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
item, })
"constructionForm", this.addtotal = res.data.total * 1
constructionFormText(item.constructionForm) console.log(this.addtableData, 'this.addtableData')
); this.dialogXQ = true
});
this.addtotal = res.data.total * 1;
console.log(this.addtableData, "this.addtableData");
this.dialogXQ = true;
} }
}, },
//确认评估项目 //确认评估项目
async configs() { async configs() {
// 只能选中状态待评估的 // 只能选中状态待评估的
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
if (this.checkedList[0].postEvalStateText == "执行中") { if (this.checkedList[0].postEvalStateText == '执行中') {
this.$message("该项目已在执行中"); this.$message('该项目已在执行中')
return; return
} }
this.ruleFormdialogBJ = this.checkedList[0]; this.ruleFormdialogBJ = this.checkedList[0]
this.dialogAdd = true; this.dialogAdd = true
this.addtableData = []; this.addtableData = []
let params = { let params = {
current: this.addcurrentPage, current: this.addcurrentPage,
pageSize: this.pageSizeAdd, pageSize: this.pageSizeAdd,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
Object.assign(params, this.ruleFormdialogAdd); Object.assign(params, this.ruleFormdialogAdd)
let res = await joinProjectInfo(params); let res = await joinProjectInfo(params)
if (res.code == "200") { if (res.code == '200') {
this.addtableData = res.data.records; this.addtableData = res.data.records
this.addtableData.forEach((item) => { this.addtableData.forEach((item) => {
this.$set( this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
item, })
"constructionForm", this.addtotal = res.data.total * 1
constructionFormText(item.constructionForm) this.oldid = ''
);
});
this.addtotal = res.data.total * 1;
this.oldid = "";
if (this.addtableData.length > 0) { if (this.addtableData.length > 0) {
this.addtableData.forEach((item) => { this.addtableData.forEach((item) => {
this.oldid = this.oldid.concat(item.projectCode + ","); this.oldid = this.oldid.concat(item.projectCode + ',')
}); })
} }
} }
}, },
...@@ -870,170 +646,165 @@ export default { ...@@ -870,170 +646,165 @@ export default {
//表格颜色 //表格颜色
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return "warning-row"; return 'warning-row'
} }
return ""; return ''
}, },
//主列表选中行信息 //主列表选中行信息
handleSelectionChange(selection) { handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) { if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false); this.$refs.multipleTable.toggleRowSelection(selection[0], false)
this.$refs.multipleTable.toggleRowSelection(selection[1], true); this.$refs.multipleTable.toggleRowSelection(selection[1], true)
} }
this.checkedList = this.$refs.multipleTable.selection; this.checkedList = this.$refs.multipleTable.selection
this.ruleFormdialog = this.checkedList[0]; this.ruleFormdialog = this.checkedList[0]
console.log(this.checkedList, "2222"); console.log(this.checkedList, '2222')
}, },
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()
}, },
handleSizeChangeZJ(val) { handleSizeChangeZJ(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`)
this.pageSizeZJ = val; this.pageSizeZJ = val
this.xzExperts(); this.xzExperts()
}, },
handleCurrentChangeZJ(val) { handleCurrentChangeZJ(val) {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`)
this.currentZJ = val; this.currentZJ = val
this.xzExperts(); this.xzExperts()
}, },
handleSizeChangeAdd(val) { handleSizeChangeAdd(val) {
this.pageSizeAdd = val; this.pageSizeAdd = val
// this.detailsForm(); // this.detailsForm();
console.log(val, this.addcurrentPage, "1111"); console.log(val, this.addcurrentPage, '1111')
}, },
handleCurrentChangeAdd(val) { handleCurrentChangeAdd(val) {
console.log(val, this.addcurrentPage, "0000"); console.log(val, this.addcurrentPage, '0000')
this.addcurrentPage = val; this.addcurrentPage = val
// this.detailsForm(); // this.detailsForm();
}, },
handleSizeChangXQ(val) { handleSizeChangXQ(val) {
this.pageSizeXQ = val; this.pageSizeXQ = val
this.detailsForm(); this.detailsForm()
console.log(val, this.addcurrentPage, "1111"); console.log(val, this.addcurrentPage, '1111')
}, },
handleCurrentChangeXQ(val) { handleCurrentChangeXQ(val) {
console.log(val, this.addcurrentPage, "0000"); console.log(val, this.addcurrentPage, '0000')
this.currentPageXQ = val; this.currentPageXQ = val
this.detailsForm(); this.detailsForm()
}, },
//选择项目 //选择项目
saveZJ() { saveZJ() {
if (this.addZJList.length < 1) { if (this.addZJList.length < 1) {
this.$message("请选择项目"); this.$message('请选择项目')
return; return
} }
console.log(this.addtableData, this.addZJList, "55555"); console.log(this.addtableData, this.addZJList, '55555')
this.addtableData = [...this.addtableData, ...this.addZJList]; this.addtableData = [...this.addtableData, ...this.addZJList]
this.addtableData = this.addtableData.filter((obj, index, self) => { this.addtableData = this.addtableData.filter((obj, index, self) => {
return index == self.findIndex((t) => t.projectCode == obj.projectCode); return index == self.findIndex((t) => t.projectCode == obj.projectCode)
}); })
this.addtotal = this.addtableData.length; this.addtotal = this.addtableData.length
this.dialogAddzj = false; this.dialogAddzj = false
}, },
cancelZJ() { cancelZJ() {
this.dialogAddzj = false; this.dialogAddzj = false
}, },
async xzExperts() { async xzExperts() {
this.dialogAddzj = true; this.dialogAddzj = true
let params = { let params = {
current: this.currentZJ, current: this.currentZJ,
pageSize: this.pageSizeZJ, pageSize: this.pageSizeZJ,
prjStr: this.oldid, prjStr: this.oldid,
}; }
Object.assign(params, this.ruleFormZJ); Object.assign(params, this.ruleFormZJ)
let res = await pmProInitiation(params); let res = await pmProInitiation(params)
console.log(res.data.records, "res.data.recordsres.data.records"); console.log(res.data.records, 'res.data.recordsres.data.records')
this.zjtableData = res.data.records; this.zjtableData = res.data.records
this.zjtableData.forEach((item) => { this.zjtableData.forEach((item) => {
this.$set( this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
item, })
"constructionForm", this.zjtotal = res.data.total * 1
constructionFormText(item.constructionForm) console.log(res, 'xxx')
);
});
this.zjtotal = res.data.total * 1;
console.log(res, "xxx");
}, },
saveXZ() { saveXZ() {
if (this.addtableData.length < 1) { if (this.addtableData.length < 1) {
this.$message("请选择待评估项目"); this.$message('请选择待评估项目')
} }
console.log(this.addZJList, "this.addZJList"); console.log(this.addZJList, 'this.addZJList')
// 确认发布入参 // 确认发布入参
let expertIdList = ""; let expertIdList = ''
if (this.addtableData.length > 0) { if (this.addtableData.length > 0) {
this.addtableData.forEach((item) => { this.addtableData.forEach((item) => {
expertIdList = expertIdList.concat(item.projectCode + ","); expertIdList = expertIdList.concat(item.projectCode + ',')
}); })
} }
let params = { let params = {
expertStr: expertIdList, expertStr: expertIdList,
}; }
params.batchId = this.ruleFormdialogBJ.batchId; params.batchId = this.ruleFormdialogBJ.batchId
// params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert; // params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
console.log(params, "222"); console.log(params, '222')
// return // return
fbProjectInfo(params).then((res) => { fbProjectInfo(params).then((res) => {
this.dialogAdd = false; this.dialogAdd = false
this.expertIdList = expertIdList; this.expertIdList = expertIdList
this.$message("提交成功"); this.$message('提交成功')
this.resetForm(); this.resetForm()
}); })
}, },
savepro() { savepro() {
// if (this.addtableData.length < 1) { // if (this.addtableData.length < 1) {
// this.$message("没有可保存的项目"); // this.$message("没有可保存的项目");
// } // }
console.log(this.addZJList, "this.addZJList"); console.log(this.addZJList, 'this.addZJList')
// 确认发布入参 // 确认发布入参
let expertIdList = ""; let expertIdList = ''
if (this.addtableData.length > 0) { if (this.addtableData.length > 0) {
this.addtableData.forEach((item) => { this.addtableData.forEach((item) => {
expertIdList = expertIdList.concat(item.projectCode + ","); expertIdList = expertIdList.concat(item.projectCode + ',')
}); })
} }
let params = { let params = {
expertStr: expertIdList, expertStr: expertIdList,
}; }
params.batchId = this.ruleFormdialogBJ.batchId; params.batchId = this.ruleFormdialogBJ.batchId
// params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert; // params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
console.log(params, "222"); console.log(params, '222')
// return // return
bcProjectInfo(params).then((res) => { bcProjectInfo(params).then((res) => {
this.$message("保存成功"); this.$message('保存成功')
// this.dialogAdd = false; // this.dialogAdd = false;
this.expertIdList = expertIdList; this.expertIdList = expertIdList
// this.resetForm(); // this.resetForm();
}); })
}, },
cancelXZ() { cancelXZ() {
this.dialogAdd = false; this.dialogAdd = false
}, },
selectable(item,index){ selectable(item, index) {
if(item.zcstate == 1 || item.zcstate == 2 || item.zcstate == 3){ if (item.zcstate == 1 || item.zcstate == 2 || item.zcstate == 3) {
return false return false
}else{ } else {
return true return true
} }
}, },
selectAll(selection) { selectAll(selection) {
this.addZJList = this.$refs.multipleTableZJ.selection; this.addZJList = this.$refs.multipleTableZJ.selection
console.log(this.$refs.multipleTableZJ.selection, "2222222"); console.log(this.$refs.multipleTableZJ.selection, '2222222')
// selection = selection.filter(item=>{ // selection = selection.filter(item=>{
// return item.zcstate!=1&&item.zcstate!=2&&item.zcstate!=3 // return item.zcstate!=1&&item.zcstate!=2&&item.zcstate!=3
// }); // });
...@@ -1049,66 +820,63 @@ export default { ...@@ -1049,66 +820,63 @@ export default {
// ) // )
// } // }
// }); // });
// console.log(this.$refs.multipleTableZJ.selection, "2222223"); // console.log(this.$refs.multipleTableZJ.selection, "2222223");
}, },
//选中的项目 //选中的项目
handleSelectionChangeZJ(selection, row) { handleSelectionChangeZJ(selection, row) {
console.log("来了么", row); console.log('来了么', row)
if (selection.length < 1) { if (selection.length < 1) {
return; return
} }
if (selection.length === this.zjtableData.Length) { if (selection.length === this.zjtableData.Length) {
console.log("全选"); console.log('全选')
} }
let info = row.zcstate; let info = row.zcstate
if (info == 1 || info == 2 || info == 3) { if (info == 1 || info == 2 || info == 3) {
this.$refs.multipleTableZJ.toggleRowSelection( this.$refs.multipleTableZJ.toggleRowSelection(selection[selection.length - 1], false)
selection[selection.length - 1], this.$message('该项目在流程中,请选择其他项目')
false console.log('不让点')
); return
this.$message("该项目在流程中,请选择其他项目");
console.log("不让点");
return;
} }
this.addZJList = this.$refs.multipleTableZJ.selection; this.addZJList = this.$refs.multipleTableZJ.selection
console.log(this.$refs.multipleTableZJ.selection, "2222222"); console.log(this.$refs.multipleTableZJ.selection, '2222222')
}, },
//点击删除 //点击删除
async handleClick(row, index, rows) { async handleClick(row, index, rows) {
let params = { let params = {
projectId: row.projectCode, projectId: row.projectCode,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
this.$confirm("此操作将删除该项目, 是否继续?", "提示", { this.$confirm('此操作将删除该项目, 是否继续?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning", type: 'warning',
}) })
.then(async () => { .then(async () => {
let res = await delProjectInfo(params); let res = await delProjectInfo(params)
if (res.code == 200) { if (res.code == 200) {
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); })
this.addtotal--; this.addtotal--
rows.splice(index, 1)
} else { } else {
this.$message({ this.$message({
type: "info", type: 'info',
message: "删除失败!", message: '删除失败!',
}); })
} }
}) })
.catch(() => { .catch(() => {
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消删除", message: '已取消删除',
}); })
}); })
rows.splice(index, 1);
// let res = await delProjectInfo(params); // let res = await delProjectInfo(params);
// if(res.code=200){ // if(res.code=200){
...@@ -1120,38 +888,38 @@ export default { ...@@ -1120,38 +888,38 @@ export default {
//点击撤回 //点击撤回
async withdraw() { async withdraw() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
if (this.checkedList[0].postEvalStateText == "已撤回") { if (this.checkedList[0].postEvalStateText == '已撤回') {
this.$message("该项目已撤回"); this.$message('该项目已撤回')
return; return
} }
if (this.checkedList[0].postEvalStateText == "已发起") { if (this.checkedList[0].postEvalStateText == '已发起') {
this.$message("该项目还未确认评估"); this.$message('该项目还未确认评估')
return; return
} }
this.$confirm("是否撤回?", "提示", { this.$confirm('是否撤回?', '提示', {
confirmButtonText: "是", confirmButtonText: '是',
cancelButtonText: "否", cancelButtonText: '否',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
type: "warning", type: 'warning',
}) })
.then(async () => { .then(async () => {
let res = await chProjectInfo({ let res = await chProjectInfo({
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}); })
if ((res.code = "200")) { if ((res.code = '200')) {
this.$message("已撤回"); this.$message('已撤回')
this.resetForm(); this.resetForm()
} }
}) })
.catch((action) => {}); .catch((action) => {})
}, },
}, },
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.main { .main {
font-size: 14px; font-size: 14px;
position: relative; position: relative;
...@@ -1478,7 +1246,7 @@ export default { ...@@ -1478,7 +1246,7 @@ export default {
overflow-x: hidden !important; overflow-x: hidden !important;
} }
} }
.tipred{ .tipred {
color: red; color: red;
text-align: left; text-align: left;
font-size: 13px; font-size: 13px;
...@@ -1497,4 +1265,4 @@ export default { ...@@ -1497,4 +1265,4 @@ export default {
position: absolute; position: absolute;
right: 0; right: 0;
} }
</style> </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!