Merge remote-tracking branch 'origin/dev_20230216' into dev_20230216

This commit is contained in:
zyx.net
2023-03-15 11:32:40 +08:00
16 changed files with 14131 additions and 13222 deletions
+27 -1
View File
@@ -4,7 +4,7 @@
import { onlyOfficeUrl,kkFileViewUrl } from '@/sysConfig' import { onlyOfficeUrl,kkFileViewUrl } from '@/sysConfig'
import { processEditFile } from 'api/process' import { processEditFile } from 'api/process'
let Base64 = require('js-base64').Base64; let Base64 = require('js-base64').Base64;
export default (id,nodeName,userId,userName) => { export default (id,nodeName,userId,userName,query) => {
processEditFile({ processEditFile({
id id
}).then(res => { }).then(res => {
@@ -20,7 +20,33 @@ export default (id,nodeName,userId,userName) => {
editFileInfo.pId = editFileInfo.pid editFileInfo.pId = editFileInfo.pid
} }
const nowTime = new Date().getTime() const nowTime = new Date().getTime()
if (query){
if (!query.standEnName || query.standEnName == 'null'){
query.standEnName = ''
}
if (!query.DTQBBHBUSS || query.DTQBBHBUSS == 'null'){
query.DTQBBHBUSS = ''
}
if (!query.standName || query.standName == 'null'){
query.standName = ''
}
if (!query.issueTime || query.issueTime == 'null'){
query.issueTime = ''
}
if (!query.putTime || query.putTime == 'null'){
query.putTime = ''
}
window.open(onlyOfficeUrl+'/editor?fileId='+editFileInfo.id+'&pid='+editFileInfo.pId+
'&taskIds='+editFileInfo.taskId+'&editType='+editFileInfo.editType+'&oldFileName=' + showName +
'&fileType=' + 'docx' + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl +
'&key=' + editFileInfo.id+nowTime +'&filePath='+editFileInfo.filePath+ '&fileName='+editFileInfo.fileName+
'&userId='+editFileInfo.userId+'&userName='+editFileInfo.userName+'&standName='+query.standName+
'&standEnName='+query.standEnName+'&standCode='+query.standCode+'&putTime='+query.putTime+
'&issueTime='+query.issueTime+'&dtqbbhbuss='+query.DTQBBHBUSS+'&isEdit=123')
}else{
window.open(onlyOfficeUrl+'/editor?fileId='+editFileInfo.id+'&pid='+editFileInfo.pId+'&taskIds='+editFileInfo.taskId+'&editType='+editFileInfo.editType+'&oldFileName=' + showName + '&fileType=' + 'docx' + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id +'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName+'&userId='+editFileInfo.userId+'&userName='+editFileInfo.userName) window.open(onlyOfficeUrl+'/editor?fileId='+editFileInfo.id+'&pid='+editFileInfo.pId+'&taskIds='+editFileInfo.taskId+'&editType='+editFileInfo.editType+'&oldFileName=' + showName + '&fileType=' + 'docx' + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id +'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName+'&userId='+editFileInfo.userId+'&userName='+editFileInfo.userName)
}
} }
}).catch(e => { }).catch(e => {
}) })
+1 -1
View File
@@ -4,7 +4,7 @@
import { onlyOfficeUrl,kkFileViewUrl } from '@/sysConfig' import { onlyOfficeUrl,kkFileViewUrl } from '@/sysConfig'
import { processEditFile } from 'api/process' import { processEditFile } from 'api/process'
let Base64 = require('js-base64').Base64; let Base64 = require('js-base64').Base64;
export default (id,nodeName,userId,userName) => { export default (id,nodeName,userId,userName,query) => {
processEditFile({ processEditFile({
id id
}).then(res => { }).then(res => {
+179 -88
View File
@@ -14,21 +14,26 @@
<div class="details-content" style="position: relative"> <div class="details-content" style="position: relative">
<div class="details-content-modular basic-information"> <div class="details-content-modular basic-information">
</div> </div>
<div class="details-content-modular clearfix" v-for="(item, index) in dynamicFormField" :key="index" v-if="item.isShowImp === '0'"> <div class="details-content-modular clearfix" v-for="(item, index) in dynamicFormField" :key="index"
v-if="item.isShowImp === '0'">
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames" @change="handleChange">
<div v-if="item.label === '基础信息'" class="details-content-modular basic-information" style="border-top:none;position: absolute;right: 36px;"> </div> <div v-if="item.label === '基础信息'" class="details-content-modular basic-information"
style="border-top:none;position: absolute;right: 36px;"></div>
<el-collapse-item :name="item.label" @click.native="handleChange1(item.label)"> <el-collapse-item :name="item.label" @click.native="handleChange1(item.label)">
<template slot="title"> <template slot="title">
<div class="modular-header" v-if="item.label === '基础信息'"> <div class="modular-header" v-if="item.label === '基础信息'">
<div class="modular-header-title"><i class="icon-modular-title"/><span>{{ item.label }}</span></div> <div class="modular-header-title"><i
class="icon-modular-title"/><span>{{ item.label }}</span></div>
</div> </div>
<div class="modular-header" v-if="item.label !== '基础信息'"> <div class="modular-header" v-if="item.label !== '基础信息'">
<div class="modular-header-title"><i class="icon-modular-title"/><span>{{ item.label }}</span></div> <div class="modular-header-title"><i
class="icon-modular-title"/><span>{{ item.label }}</span></div>
</div> </div>
</template> </template>
<div class="modular-content"> <div class="modular-content">
<template v-if="item.label === '基础信息'"> <template v-if="item.label === '基础信息'">
<div class="details-content-modular basic-information" style="border-top:none; border-bottom: none;"> <div class="details-content-modular basic-information"
style="border-top:none; border-bottom: none;">
<div class="basic-information-content"> <div class="basic-information-content">
<!-- <p><label style=" margin-right: 150px;">标准类别</label><span>{{ sarStandardsInfoEO.standSort || '-' }}</span></p>--> <!-- <p><label style=" margin-right: 150px;">标准类别</label><span>{{ sarStandardsInfoEO.standSort || '-' }}</span></p>-->
<el-row :gutter="5" class=""> <el-row :gutter="5" class="">
@@ -64,8 +69,10 @@
</el-col> </el-col>
</el-row> </el-row>
<!--发布稿(必读)--> <!--发布稿(必读)-->
<template v-for="(child, childIndex) in item.child1" v-if="child.value && child.value.length > 0"> <template v-for="(child, childIndex) in item.child1"
<el-row :gutter="5" class="files-titles" style="border-bottom: 1px solid #E5E5E5"> v-if="child.value && child.value.length > 0">
<el-row :gutter="5" class="files-titles"
style="border-bottom: 1px solid #E5E5E5">
<el-col :span="8"> <el-col :span="8">
<label style="float: left">{{ child.attrName }}</label> <label style="float: left">{{ child.attrName }}</label>
</el-col> </el-col>
@@ -73,7 +80,8 @@
<template v-if="child.value && child.value.length > 0"> <template v-if="child.value && child.value.length > 0">
<!-- 单个文件时--> <!-- 单个文件时-->
<div style=" line-height: 32px"> <div style=" line-height: 32px">
<div v-for="(file, fileIndex) in child1Func(child.value)" style="display: flex;"> <div v-for="(file, fileIndex) in child1Func(child.value)"
style="display: flex;">
<span v-if="child.value && child.value.length > 0 && child.value.length === 1" <span v-if="child.value && child.value.length > 0 && child.value.length === 1"
style="display: flex; align-items: center;"> style="display: flex; align-items: center;">
<a style="font-size:0.2rem;color: #409EFF;cursor: pointer;display: inline-block;" <a style="font-size:0.2rem;color: #409EFF;cursor: pointer;display: inline-block;"
@@ -98,16 +106,20 @@
</template> </template>
<template v-else-if="child.value === null">-</template> <template v-else-if="child.value === null">-</template>
<!--发布稿(必读)--> <!--发布稿(必读)-->
<template v-for="(child, childIndex) in item.child6" v-if="child.value && child.value.length > 0"> <template v-for="(child, childIndex) in item.child6"
<el-row :gutter="5" class="files-titles" style="border-bottom: 1px solid #E5E5E5"> v-if="child.value && child.value.length > 0">
<el-row :gutter="5" class="files-titles"
style="border-bottom: 1px solid #E5E5E5">
<el-col :span="8"> <el-col :span="8">
<label style="float: left">{{ child.attrName }}</label> <label style="float: left">{{ child.attrName }}</label>
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
<template v-if="child.value && child.value.length > 0" > <template v-if="child.value && child.value.length > 0">
<div style="line-height: 32px"> <div style="line-height: 32px">
<div v-for="(file, fileIndex) in child6Func(child.value)" style="display: flex;"> <div v-for="(file, fileIndex) in child6Func(child.value)"
<span v-if="child.value && child.value.length > 0 && child.value.length === 1" style="display: flex; align-items: center;"> style="display: flex;">
<span v-if="child.value && child.value.length > 0 && child.value.length === 1"
style="display: flex; align-items: center;">
<a style="font-size: 0.2rem;color: #409EFF;cursor: pointer;display: inline-block" <a style="font-size: 0.2rem;color: #409EFF;cursor: pointer;display: inline-block"
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a> :title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a>
@@ -115,13 +127,14 @@
<!--多个文件时--> <!--多个文件时-->
<div v-else-if="child.value && child.value.length > 0"> <div v-else-if="child.value && child.value.length > 0">
<span style="display: flex; align-items: center;"> <span style="display: flex; align-items: center;">
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" <a style="font-size: 16px;color: #409EFF;cursor: pointer"
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a> :title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a>
</span> </span>
</div> </div>
</div> </div>
<!-- <el-button v-if="child.attrField === 'FBGYWBD'" @click="showItemsModel(child.attrField)" class="decomposition-btn">标准分解单--> <!-- <el-button v-if="child.attrField === 'FBGYWBD'" @click="showItemsModel(child.attrField)" class="decomposition-btn">标准分解单-->
<!-- </el-button>--> <!-- </el-button>-->
</div> </div>
</template> </template>
<template v-else-if="child.value === null">-</template> <template v-else-if="child.value === null">-</template>
@@ -144,11 +157,11 @@
:title="file.oldFileName">{{ file.oldFileName }}</a> :title="file.oldFileName">{{ file.oldFileName }}</a>
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>--> <!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
</span> </span>
<!-- <el-button v-if="child.value && child.value.length > 1"--> <!-- <el-button v-if="child.value && child.value.length > 1"-->
<!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"--> <!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"-->
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">--> <!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">-->
<!-- 更多--> <!-- 更多-->
<!-- </el-button>--> <!-- </el-button>-->
</template> </template>
<template v-if="child.value === null">-</template> <template v-if="child.value === null">-</template>
</el-col> </el-col>
@@ -161,18 +174,19 @@
<label>{{ child.attrName }}</label> <label>{{ child.attrName }}</label>
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
<template v-if="child.value && child.value.length > 0" v-for="(file, fileIndex) in child4Func(child.value)"> <template v-if="child.value && child.value.length > 0"
v-for="(file, fileIndex) in child4Func(child.value)">
<span> <span>
<a style="font-size: 16px;color: #409EFF;cursor: pointer" <a style="font-size: 16px;color: #409EFF;cursor: pointer"
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">{{ file.oldFileName }}</a> :title="file.oldFileName">{{ file.oldFileName }}</a>
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>--> <!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
</span> </span>
<!-- <el-button v-if="child.value && child.value.length > 1"--> <!-- <el-button v-if="child.value && child.value.length > 1"-->
<!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"--> <!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"-->
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">--> <!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">-->
<!-- 更多--> <!-- 更多-->
<!-- </el-button>--> <!-- </el-button>-->
</template> </template>
<template v-if="child.value === null">-</template> <template v-if="child.value === null">-</template>
</el-col> </el-col>
@@ -193,11 +207,11 @@
:title="file.oldFileName">{{ file.oldFileName }}</a> :title="file.oldFileName">{{ file.oldFileName }}</a>
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>--> <!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
</span> </span>
<!-- <el-button v-if="child.value && child.value.length > 1"--> <!-- <el-button v-if="child.value && child.value.length > 1"-->
<!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"--> <!-- style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"-->
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">--> <!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">-->
<!-- 更多--> <!-- 更多-->
<!-- </el-button>--> <!-- </el-button>-->
</template> </template>
<template v-if="child.value === null">-</template> <template v-if="child.value === null">-</template>
</el-col> </el-col>
@@ -255,14 +269,19 @@
<div class="modular-item-more" v-if="item.label === '实施日期' && item.one.length > 6"> <div class="modular-item-more" v-if="item.label === '实施日期' && item.one.length > 6">
<div class="wrap" @click="handleToggleShowAll(item)"> <div class="wrap" @click="handleToggleShowAll(item)">
<span>{{ item.showAll ? '收起' : '更多' }}</span> <span>{{ item.showAll ? '收起' : '更多' }}</span>
<img :class="{'is-show-all': item.showAll}" src="@/assets/images/shangqi/img/more.png"> <img :class="{'is-show-all': item.showAll}"
src="@/assets/images/shangqi/img/more.png">
</div> </div>
</div> </div>
<template v-for="(child, childIndex) in item.half" v-if="child.isShowImp === '0' && child.attrField !== 'CBCD'"> <template v-for="(child, childIndex) in item.half"
v-if="child.isShowImp === '0' && child.attrField !== 'CBCD'">
<!-- modular-item half 代替标准编号--> <!-- modular-item half 代替标准编号-->
<el-row :gutter="5" :key="child.id" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'" v-if=" child.attrField === 'DTBJH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'XGLC' || child.attrField === 'BDTBZBH' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ' "> <el-row :gutter="5" :key="child.id"
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
v-if=" child.attrField === 'DTBJH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'XGLC' || child.attrField === 'BDTBZBH' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ' ">
<el-col :span="8"> <el-col :span="8">
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName
}}</label>
</el-col> </el-col>
<el-col :span="16"></el-col> <el-col :span="16"></el-col>
<span class="modular-content-p-val" :title="child.value || '-'"> <span class="modular-content-p-val" :title="child.value || '-'">
@@ -271,7 +290,8 @@
<template v-if="child.attrField === 'XGLC' && child.value"> <template v-if="child.attrField === 'XGLC' && child.value">
<p class="modular-content-p-val"> <p class="modular-content-p-val">
<span v-for="(item, index) in child.value.split(',')" :key="index"> <span v-for="(item, index) in child.value.split(',')" :key="index">
<a @click="processCenterClick(item)" style="cursor: pointer;color: #0c91e5;margin-right: 5px;" <a @click="processCenterClick(item)"
style="cursor: pointer;color: #0c91e5;margin-right: 5px;"
class="span-line" :title="item">{{ item }}</a> class="span-line" :title="item">{{ item }}</a>
</span> </span>
</p> </p>
@@ -301,9 +321,12 @@
</span> </span>
</el-row> </el-row>
<!-- 其他项--> <!-- 其他项-->
<div v-else :key="child.id" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"> <div v-else :key="child.id"
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'">
<span v-if="child.attrField === 'FGWHR'" class="modular-content-p-val clearfix" :title="child.value || '-'"> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName
}}</label>
<span v-if="child.attrField === 'FGWHR'" class="modular-content-p-val clearfix"
:title="child.value || '-'">
<template v-if="child.value"> <template v-if="child.value">
{{ child.value }} {{ child.value }}
<put-question-button <put-question-button
@@ -319,19 +342,24 @@
<span v-else-if="child.attrType === 'DATE_PICKER'" class="modular-content-p-val"> <span v-else-if="child.attrType === 'DATE_PICKER'" class="modular-content-p-val">
{{ child.value ? child.value : '-' }} {{ child.value ? child.value : '-' }}
</span> </span>
<span v-else-if="child.attrType !== 'FILE'" class="modular-content-p-val" :title="child.value || '-'"> <span v-else-if="child.attrType !== 'FILE'" class="modular-content-p-val"
:title="child.value || '-'">
{{ child.value || '-' }} {{ child.value || '-' }}
</span> </span>
<div v-else class="modular-content-p-flies"> <div v-else class="modular-content-p-flies">
<p class="files-title" v-for="(file, fileIndex) in child.value" :key="fileIndex"> <p class="files-title" v-for="(file, fileIndex) in child.value"
:key="fileIndex">
<!--发布稿、增补件单独设置下载权限--> <!--发布稿、增补件单独设置下载权限-->
<template v-if="child.attrField === 'FBGBJBD' || child.attrField === 'ZBJBD'"> <template
<a :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"> v-if="child.attrField === 'FBGBJBD' || child.attrField === 'ZBJBD'">
<a :title="file.oldFileName"
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank">
{{ file.oldFileName }} {{ file.oldFileName }}
</a> </a>
</template> </template>
<template v-else> <template v-else>
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName"> <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">
{{file.oldFileName}} {{file.oldFileName}}
</a> </a>
</template> </template>
@@ -339,9 +367,12 @@
</div> </div>
</div> </div>
</template> </template>
<template v-for="(child, childIndex) in item.child" v-if="child.isShowImp === '0' && item.label === '关联信息'"> <template v-for="(child, childIndex) in item.child"
<div :key="child.id" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"> v-if="child.isShowImp === '0' && item.label === '关联信息'">
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <div :key="child.id"
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'">
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName
}}</label>
<!--相关流程--> <!--相关流程-->
<template v-if="child.attrField === 'XGLC' && child.value"> <template v-if="child.attrField === 'XGLC' && child.value">
<p class="modular-content-p-val"> <p class="modular-content-p-val">
@@ -351,7 +382,8 @@
</span> </span>
</p> </p>
</template> </template>
<template v-else-if="child.attrField === 'DTBJH'|| child.attrField === 'BDTBZH' || child.attrField === 'BDTBZBH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ'"> <template
v-else-if="child.attrField === 'DTBJH'|| child.attrField === 'BDTBZH' || child.attrField === 'BDTBZBH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ'">
<p class="modular-content-p-val" v-if="child.value"> <p class="modular-content-p-val" v-if="child.value">
<span v-for="(item, index) in child.value.split(',')" :key="index"> <span v-for="(item, index) in child.value.split(',')" :key="index">
<a @click="showReplaceStandInfo(item)" style="cursor: pointer;color: #0c91e5;margin-right: 5px;" <a @click="showReplaceStandInfo(item)" style="cursor: pointer;color: #0c91e5;margin-right: 5px;"
@@ -360,26 +392,31 @@
</p> </p>
<span class="modular-content-p-val" v-else>-</span> <span class="modular-content-p-val" v-else>-</span>
</template> </template>
<span v-else-if="child.attrField === 'SVPPS'" class="modular-content-p-val" :title="child.tips || '-'"> <span v-else-if="child.attrField === 'SVPPS'" class="modular-content-p-val"
:title="child.tips || '-'">
{{ !child.value || child.value === 'null' ? '-' : child.value }} {{ !child.value || child.value === 'null' ? '-' : child.value }}
</span> </span>
<span v-else-if="child.attrType !== 'FILE'" class="modular-content-p-val" :title="child.value || '-'"> <span v-else-if="child.attrType !== 'FILE'" class="modular-content-p-val"
:title="child.value || '-'">
{{ child.value || '-' }} {{ child.value || '-' }}
<!-- 被代替标准号--> <!-- 被代替标准号-->
</span> </span>
<div v-else class="modular-content-p-flies"> <div v-else class="modular-content-p-flies">
<p class="files-title" v-for="(file, fileIndex) in child.value" :key="fileIndex"> <p class="files-title" v-for="(file, fileIndex) in child.value"
:key="fileIndex">
<!-- <span style="cursor: pointer;" @click="openFileInPdf(file.id, file.oldFileName)">|{{file.id}}|</span>--> <!-- <span style="cursor: pointer;" @click="openFileInPdf(file.id, file.oldFileName)">|{{file.id}}|</span>-->
<!--发布稿、增补件单独设置下载权限--> <!--发布稿、增补件单独设置下载权限-->
<template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG' <template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG'
|| child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA' || child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA'
|| child.attrField === 'JDWJ' || child.attrField === 'GLWJ'"> || child.attrField === 'JDWJ' || child.attrField === 'GLWJ'">
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName"> <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">
{{file.oldFileName}} {{file.oldFileName}}
</a> </a>
</template> </template>
<template v-else> <template v-else>
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName"> <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">
{{file.oldFileName}} {{file.oldFileName}}
</a> </a>
</template> </template>
@@ -387,7 +424,8 @@
</div> </div>
</div> </div>
</template> </template>
<template v-for="(child, childIndex) in item.one" v-if="child.isShowImp === '0' && item.label == '过程稿件'"> <template v-for="(child, childIndex) in item.one"
v-if="child.isShowImp === '0' && item.label == '过程稿件'">
<!-- 增补件(必读)和勘误件不放在过程稿件里了--> <!-- 增补件(必读)和勘误件不放在过程稿件里了-->
<el-row :gutter="5" <el-row :gutter="5"
v-show="child.attrField !== 'ZBJBD' && child.attrField !== 'KWJ' && child.attrField !== 'FBGYWBD' " v-show="child.attrField !== 'ZBJBD' && child.attrField !== 'KWJ' && child.attrField !== 'FBGYWBD' "
@@ -395,7 +433,8 @@
:class="'modular-item half'" :class="'modular-item half'"
> >
<el-col :span="8"> <el-col :span="8">
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName
}}</label>
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
<span <span
@@ -416,12 +455,14 @@
<template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG' <template v-if="child.attrField === 'XGD' || child.attrField === 'FBGBJBD' || child.attrField === 'BPG'
|| child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA' || child.attrField === 'SSG'|| child.attrField === 'ZQYJG'|| child.attrField === 'CA'
|| child.attrField === 'JDWJ' || child.attrField === 'GLWJ'"> || child.attrField === 'JDWJ' || child.attrField === 'GLWJ'">
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">{{
file.oldFileName file.oldFileName
}}</a> }}</a>
</template> </template>
<template v-else> <template v-else>
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">{{
file.oldFileName file.oldFileName
}}</a> }}</a>
</template> </template>
@@ -438,7 +479,8 @@
:key="child.id" :key="child.id"
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
> >
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName
}}</label>
<!--相关流程--> <!--相关流程-->
<template v-if="child.attrField === 'XGLC' && child.value"> <template v-if="child.attrField === 'XGLC' && child.value">
<p class="modular-content-p-val"> <p class="modular-content-p-val">
@@ -482,12 +524,14 @@
<!-- <span style="cursor: pointer;" @click="openFileInPdf(file.id, file.oldFileName)">|{{file.id}}|</span>--> <!-- <span style="cursor: pointer;" @click="openFileInPdf(file.id, file.oldFileName)">|{{file.id}}|</span>-->
<!--发布稿、增补件单独设置下载权限--> <!--发布稿、增补件单独设置下载权限-->
<template v-if="child.attrField === 'GLWJ'"> <template v-if="child.attrField === 'GLWJ'">
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">{{
file.oldFileName file.oldFileName
}}</a> }}</a>
</template> </template>
<template v-else> <template v-else>
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">{{
file.oldFileName file.oldFileName
}}</a> }}</a>
</template> </template>
@@ -502,6 +546,7 @@
</el-collapse> </el-collapse>
</div> </div>
</div> </div>
<loading :loading="loadingText">加载中请稍后</loading>
</div> </div>
</template> </template>
<!--查看分解单--> <!--查看分解单-->
@@ -518,7 +563,8 @@
<el-form inline :model="standardForm" ref="ruleForm" class="label-input-form"> <el-form inline :model="standardForm" ref="ruleForm" class="label-input-form">
<el-form-item class="search-item"> <el-form-item class="search-item">
<el-input size="small" v-model="standItemSearch.orgName" v-show="false" style="height: 32px"/> <el-input size="small" v-model="standItemSearch.orgName" v-show="false" style="height: 32px"/>
<el-input size="small" v-model="standItemSearch.responsibleUnit" v-show="false" style="height: 32px"/> <el-input size="small" v-model="standItemSearch.responsibleUnit" v-show="false"
style="height: 32px"/>
<el-popover <el-popover
placement="bottom" placement="bottom"
popper-class="user-dept-popper" popper-class="user-dept-popper"
@@ -643,8 +689,10 @@
<!-- {{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}--> <!-- {{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}-->
<!-- </div>--> <!-- </div>-->
<el-tooltip placement="top"> <el-tooltip placement="top">
<div slot="content" v-html="scope.row.termsConditions" :disabled="scope.row.termsConditions"></div> <div slot="content" v-html="scope.row.termsConditions"
<div class="table-jump" style=" overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)"> :disabled="scope.row.termsConditions"></div>
<div class="table-jump" style=" overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
@click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">
{{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }} {{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}
</div> </div>
</el-tooltip> </el-tooltip>
@@ -953,7 +1001,8 @@
<el-input v-model="standItemEO.itemsNum" :disabled="itemFormdisableflag" placeholder="请输入内容"></el-input> <el-input v-model="standItemEO.itemsNum" :disabled="itemFormdisableflag" placeholder="请输入内容"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="条款名称" prop="itemsName" class="add-form-item"> <el-form-item label="条款名称" prop="itemsName" class="add-form-item">
<el-input v-model="standItemEO.itemsName" :disabled="itemFormdisableflag" placeholder="请输入内容"></el-input> <el-input v-model="standItemEO.itemsName" :disabled="itemFormdisableflag"
placeholder="请输入内容"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="内容简介" prop="termsConditions" class="add-form-item"> <el-form-item label="内容简介" prop="termsConditions" class="add-form-item">
<el-input v-model="standItemEO.termsConditions" :disabled="itemFormdisableflag" placeholder="请输入内容"/> <el-input v-model="standItemEO.termsConditions" :disabled="itemFormdisableflag" placeholder="请输入内容"/>
@@ -1460,7 +1509,6 @@
</div> </div>
</el-dialog> </el-dialog>
<loading :loading="loading">数据获取中</loading> <loading :loading="loading">数据获取中</loading>
<!-- 关联条款抽屉--> <!-- 关联条款抽屉-->
<el-drawer <el-drawer
ref="relatedTermsDrawer" ref="relatedTermsDrawer"
@@ -1482,9 +1530,11 @@
</div> </div>
<div class="demo-drawer-footer"> <div class="demo-drawer-footer">
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" :loading="btnLoading" <el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" :loading="btnLoading"
@click="handleRelatedTermsDrawerSubmit">提交</el-button> @click="handleRelatedTermsDrawerSubmit">提交
</el-button>
<el-button class="common-button-default" size="mini" icon="el-icon-close" <el-button class="common-button-default" size="mini" icon="el-icon-close"
@click="handleRelatedTermsDrawerCancel">取消</el-button> @click="handleRelatedTermsDrawerCancel">取消
</el-button>
</div> </div>
</el-drawer> </el-drawer>
<!--内容简介--> <!--内容简介-->
@@ -1504,7 +1554,8 @@
import RelatedTermsSelect from "@/pages/details/otherStandardDetails/components/RelatedTermsSelect"; import RelatedTermsSelect from "@/pages/details/otherStandardDetails/components/RelatedTermsSelect";
import {getBusStandFileByAttId} from 'api/process' import {getBusStandFileByAttId} from 'api/process'
import {dicTypeData} from "api/unqualProcess"; import {dicTypeData} from "api/unqualProcess";
import { onlyOfficeUrl,kkFileViewUrl } from '@/sysConfig' import {onlyOfficeUrl, kkFileViewUrl} from '@/sysConfig'
import Axios from "axios";
export default { export default {
@@ -1524,10 +1575,10 @@
} }
return value return value
}, },
ellipsis50 (value) { ellipsis50(value) {
if (!value) return '' if (!value) return ''
if (value.length > 50) { if (value.length > 50) {
return value.slice(0,50) + '...' return value.slice(0, 50) + '...'
} }
return value return value
} }
@@ -1536,7 +1587,8 @@
return { return {
screenWidth: document.body.offsetWidth - 141, screenWidth: document.body.offsetWidth - 141,
screenHeight: document.documentElement.clientHeight, screenHeight: document.documentElement.clientHeight,
externalStatus:'', externalStatus: '',
loadingText: false,
handleList: [], handleList: [],
CycxOptions: [], CycxOptions: [],
activeNames: ['基础信息', '过程稿件', '实施日期'], activeNames: ['基础信息', '过程稿件', '实施日期'],
@@ -1863,7 +1915,7 @@
props: {}, props: {},
watch: {}, watch: {},
methods: { methods: {
handleChangeList(data){ handleChangeList(data) {
this.handleList = data this.handleList = data
}, },
child1Func(child1) { child1Func(child1) {
@@ -2518,7 +2570,7 @@
let idList = [] let idList = []
ids.forEach(item => { ids.forEach(item => {
let a, b let a, b
a = item.substring(item.indexOf('(') +1) a = item.substring(item.indexOf('(') + 1)
b = a.substring(0, a.lastIndexOf(')')) b = a.substring(0, a.lastIndexOf(')'))
idList.push(b) idList.push(b)
}) })
@@ -2743,28 +2795,63 @@
if (fileSuffix !== undefined && fileSuffix !== null) { if (fileSuffix !== undefined && fileSuffix !== null) {
fileSuffix = fileSuffix.toUpperCase() fileSuffix = fileSuffix.toUpperCase()
} }
if(fileSuffix !== 'pdg' && fileSuffix !== 'PDG'){ if (fileSuffix !== 'pdg' && fileSuffix !== 'PDG') {
this.getBusStandFileByAttId(attId) this.getBusStandFileByAttId(attId)
.then(res => { .then(res => {
if (res) { if (res) {
const editFileInfo = res const editFileInfo = res
const nowTime = new Date().getTime() const nowTime = new Date().getTime()
if(editFileInfo.fileSuffix.toLowerCase() === 'pdf'){ this.loadingText = true
if (editFileInfo.fileSuffix.toLowerCase() === 'pdf') {
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
//alert(navigator.userAgent);
this.getFileInfo(editFileInfo.id)
} else if (/(Android)/i.test(navigator.userAgent)) {
//alert(navigator.userAgent);
this.loadingText = false
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
}else { } else {
this.loadingText = false
window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id))
}
// window.open('/#/phonePDF?fileId='+editFileInfo.id)
} else {
const nowTime = new Date().getTime() const nowTime = new Date().getTime()
// window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) // window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName)
window.open(kkFileViewUrl+'/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); window.open(kkFileViewUrl + '/onlinePreview?url=' + encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl)));
} }
} }
}).catch(e => { }).catch(e => {
this.$message.warning('文件不存在,预览失败') this.$message.warning('文件不存在,预览失败')
this.loadingText = false
}) })
}else { } else {
this.$message.warning('PDG文件,不支持手机端预览') this.$message.warning('PDG文件,不支持手机端预览')
} }
}, },
getFileInfo(fileId) {
Axios({
url: "/api/att/attFile/getFileInfo",
method: 'get',
responseType: 'blob',
params: {
fileId: fileId
},
headers: {'Content-Type': 'multipart/form-data'}
}).then(res => {
let blob = new Blob([res.data], {
type: 'application/pdf'
});
if (blob.size > 0) {
let fileURL = window.URL.createObjectURL(blob)
this.loadingText = false
window.open(fileURL, '_self')
} else {
this.getFileInfo()
}
})
},
showItemsModel(attField) { showItemsModel(attField) {
if (attField) { if (attField) {
this.fileType = attField this.fileType = attField
@@ -2819,18 +2906,18 @@
} else { } else {
this.$message.error('请选择要下载的文件') this.$message.error('请选择要下载的文件')
} }
if(this.$route.query.pageType === 'INLAND_STAND'){ if (this.$route.query.pageType === 'INLAND_STAND') {
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
this.$http.get('sarStandardsInfo/sar-standards-info/logInvalidDownload1',{ this.$http.get('sarStandardsInfo/sar-standards-info/logInvalidDownload1', {
standNumber: standNumber, standNumber: standNumber,
standName: this.sarStandardsInfoEO.standName standName: this.sarStandardsInfoEO.standName
}, { }, {
_this: this _this: this
}, res => { }, res => {
}) })
}else{ } else {
let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber let standNumber = this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear || this.sarStandardsInfoEO.standSort + ' ' + this.sarStandardsInfoEO.standNumber
this.$http.get('sarStandardsInfo/sar-standards-info/logForeignDownload1',{ this.$http.get('sarStandardsInfo/sar-standards-info/logForeignDownload1', {
standNumber: standNumber, standNumber: standNumber,
standName: this.sarStandardsInfoEO.standEnName standName: this.sarStandardsInfoEO.standEnName
}, { }, {
@@ -3270,7 +3357,7 @@
//关联成功的提示 //关联成功的提示
handleRelatedTermsDrawerSubmit() { handleRelatedTermsDrawerSubmit() {
this.btnLoading = true this.btnLoading = true
if(this.handleList.length){ if (this.handleList.length) {
this.$refs['relatedTermsSelect'].handleSubmit(() => { this.$refs['relatedTermsSelect'].handleSubmit(() => {
this.selectSarStandItems() this.selectSarStandItems()
this.btnLoading = false this.btnLoading = false
@@ -3279,7 +3366,7 @@
type: 'success' type: 'success'
}); });
}) })
}else{ } else {
this.$message.warning('请至少勾选一条条款进行关联') this.$message.warning('请至少勾选一条条款进行关联')
this.btnLoading = false this.btnLoading = false
} }
@@ -3338,7 +3425,7 @@
})() })()
} }
let external = localStorage.getItem("external"); let external = localStorage.getItem("external");
if(external !== undefined && external !== null){ if (external !== undefined && external !== null) {
this.externalStatus = external this.externalStatus = external
} }
this.sarStandardsInfoEO.id = this.$route.query.id this.sarStandardsInfoEO.id = this.$route.query.id
@@ -3444,9 +3531,9 @@
location['child2'] = [] location['child2'] = []
} else { } else {
const childList = list2[0].child.filter(item => item.attrField === 'SYRZ'); const childList = list2[0].child.filter(item => item.attrField === 'SYRZ');
if(childList.length){ if (childList.length) {
childList.forEach(item => { childList.forEach(item => {
if(item.value === "[]"){ if (item.value === "[]") {
item.value = '' item.value = ''
} }
}) })
@@ -3531,9 +3618,11 @@
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/styles/mixins'; @import '~@/assets/styles/mixins';
@import '~@/assets/styles/style'; @import '~@/assets/styles/style';
.files-title { .files-title {
display: flex; display: flex;
align-items: center; align-items: center;
a { a {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -3542,6 +3631,7 @@
display: block; display: block;
} }
} }
.files-titles { .files-titles {
a { a {
overflow: hidden; overflow: hidden;
@@ -3550,6 +3640,7 @@
display: block; display: block;
} }
} }
/deep/ .el-icon-circle-close:before { /deep/ .el-icon-circle-close:before {
margin-left: 250px; margin-left: 250px;
} }
@@ -1,5 +1,5 @@
<template> <template>
<form> <form>
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
</ProcessTitle> </ProcessTitle>
@@ -24,16 +24,19 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item v-show="fbNode" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled"> <el-form-item v-show="fbNode" label="发布日期" prop="issueTime"
class="add-form-item form-item-disabled">
<el-datePicker v-model="form.issueTime" :disabled="disabledState" <el-datePicker v-model="form.issueTime" :disabled="disabledState"
:editable="false" :editable="false"
></el-datePicker> ></el-datePicker>
</el-form-item> </el-form-item>
<el-form-item label="制修订类型" prop="reviseStatus" class="add-form-item form-item-disabled" > <el-form-item label="制修订类型" prop="reviseStatus" class="add-form-item form-item-disabled">
<template> <template>
<div style="padding-left: 10px; color: #666666;" v-if="form.reviseStatus === '1'">制定</div> <div style="padding-left: 10px; color: #666666;" v-if="form.reviseStatus === '1'">制定</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订</div> <div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改</div> </div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改
</div>
<div style="padding-left: 10px; color: #666666;" v-else></div> <div style="padding-left: 10px; color: #666666;" v-else></div>
</template> </template>
</el-form-item> </el-form-item>
@@ -81,7 +84,8 @@
<!-- clearable--> <!-- clearable-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item v-show="fbNode" label="企业标准号" prop="standCode" class="add-form-item form-item-disabled"> <el-form-item v-show="fbNode" label="企业标准号" prop="standCode"
class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.standCode" :disabled="disabledState" v-model="form.standCode" :disabled="disabledState"
clearable clearable
@@ -94,18 +98,19 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime" class="add-form-item form-item-disabled"> <el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime"
class="add-form-item form-item-disabled">
<el-datePicker v-model="form.putTime" <el-datePicker v-model="form.putTime"
:editable="false" :editable="false"
placeholder="请选择企标实施日期" placeholder="请选择企标实施日期"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
></el-datePicker> ></el-datePicker>
</el-form-item> </el-form-item>
<!-- <el-form-item v-show="verifySarStandard" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-show="verifySarStandard" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">-->
<!-- <el-datePicker v-model="form.issueTime"--> <!-- <el-datePicker v-model="form.issueTime"-->
<!-- :editable="false"--> <!-- :editable="false"-->
<!-- placeholder="请选择发布日期"></el-datePicker>--> <!-- placeholder="请选择发布日期"></el-datePicker>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item v-show="verifySarStandard" label="废止日期" prop="FZRQBUSS" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-show="verifySarStandard" label="废止日期" prop="FZRQBUSS" class="add-form-item form-item-disabled">-->
<!-- <el-datePicker v-model="form.FZRQBUSS"--> <!-- <el-datePicker v-model="form.FZRQBUSS"-->
<!-- :editable="false"--> <!-- :editable="false"-->
@@ -130,10 +135,39 @@
clearable clearable
></el-input> ></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;"> <div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px"> <div style="width: 80%;margin-top: 13px" v-if="isTrue">
<div v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;" class="fileClass"> <div v-for="(item,index) in FBGBUSSFileList" :key="index"
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span> style="color: #409eff;cursor:pointer"
<span style="margin-left: 7px;" v-if="item.id !== ''"> class="fileClass fileClassName">
<span style="width: 80%;"
v-if="index == 0"
@click="handleFilePreviewOne(item,'preview')">
{{ item.name }}
</span>
<span v-else @click="handleFilePreview(item,'preview')">
{{ item.name }}
</span>
<span style="width: 20%;margin-left: 15px;"
v-if="item.id !== '' && index == 0">
<el-button type="primary" size="mini"
plain icon="el-icon-edit"
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
</span>
<span style="margin-left: 7px;" v-if="item.id !== '' && index != 0">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span>
</div>
</div>
<div style="width: 80%;margin-top: 13px" v-if="!isTrue">
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;"
class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')"
:title="item.name">
{{ item.name }}
</span>
<span style="margin-left: 7px;"
v-if="item.id !== '' && item.name != form.standName">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span> </span>
</div> </div>
@@ -159,7 +193,8 @@
></el-input> ></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;"> <div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px"> <div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in LSBBBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass"> <div v-for="(item,index) in LSBBBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''"> <span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -189,7 +224,8 @@
></el-input> ></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;"> <div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px"> <div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in BZSMBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass"> <div v-for="(item,index) in BZSMBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''"> <span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -217,7 +253,8 @@
></el-input> ></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;"> <div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px"> <div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in QTWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass"> <div v-for="(item,index) in QTWJBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''"> <span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -263,7 +300,8 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="能源类型" prop="NYLXCLASS" class="add-form-item form-item-disabled"> <el-form-item label="能源类型" prop="NYLXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.NYLXCLASS" placeholder="请选择能源类型" multiple> <el-select :popper-append-to-body="false" v-model="form.NYLXCLASS" placeholder="请选择能源类型"
multiple>
<el-option <el-option
v-for="item in categoryOptions" v-for="item in categoryOptions"
placeholder="请选择" placeholder="请选择"
@@ -273,20 +311,25 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车VPPS编码" title="关联模块--乘用车VPPS编码" class="add-form-item form-item-disabled"> <el-form-item label="关联模块--乘用车VPPS编码" title="关联模块--乘用车VPPS编码"
<el-input v-model="form.CYCVPPSBMBUSS" readonly="readonly" placeholder="选择关联模块--乘用车VPPS编码" @click.native="choiceZRR2('car', '关联模块--乘用车VPPS编码', form.CYCVPPSBMBUSS,true)"></el-input> class="add-form-item form-item-disabled">
<el-input v-model="form.CYCVPPSBMBUSS" readonly="readonly" placeholder="选择关联模块--乘用车VPPS编码"
@click.native="choiceZRR2('car', '关联模块--乘用车VPPS编码', form.CYCVPPSBMBUSS,true)"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码" class="add-form-item form-item-disabled"> <el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码"
<el-input v-model="form.KCVPPSBMBUSS" readonly="readonly" placeholder="选择关联模块--卡车VPPS编码" @click.native="choiceZRR3('struck', '关联模块--卡车VPPS编码', form.KCVPPSBMBUSS,false)"></el-input> class="add-form-item form-item-disabled">
<el-input v-model="form.KCVPPSBMBUSS" readonly="readonly" placeholder="选择关联模块--卡车VPPS编码"
@click.native="choiceZRR3('struck', '关联模块--卡车VPPS编码', form.KCVPPSBMBUSS,false)"></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item label="模块结构单元变型号(卡车)" title="模块结构单元变型号(卡车)" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="模块结构单元变型号(卡车)" title="模块结构单元变型号(卡车)" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.DYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号(卡车)" @click.native="choiceZRR4('TRUCK', '模块结构单元变型号(卡车)', form.DYBXHBUSS,false)"></el-input>--> <!-- <el-input v-model="form.DYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号(卡车)" @click.native="choiceZRR4('TRUCK', '模块结构单元变型号(卡车)', form.DYBXHBUSS,false)"></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item label="模块结构单元变型号(乘用车)" title="模块结构单元变型号(乘用车)" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="模块结构单元变型号(乘用车)" title="模块结构单元变型号(乘用车)" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.CYCDYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号(乘用车)" @click.native="choiceZRR5('CAR', '模块结构单元变型号(乘用车)', form.CYCDYBXHBUSS,false)"></el-input>--> <!-- <el-input v-model="form.CYCDYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号(乘用车)" @click.native="choiceZRR5('CAR', '模块结构单元变型号(乘用车)', form.CYCDYBXHBUSS,false)"></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="体系类别" prop="TXLBBUSS" class="add-form-item form-item-disabled"> <el-form-item label="体系类别" prop="TXLBBUSS" class="add-form-item form-item-disabled">
<el-input v-model="form.TXLBBUSS" placeholder="选择体系类别" clearable @click.native="choiceZRR1('TXLBBUSS', '体系类别', form.TXLBBUSS)"></el-input> <el-input v-model="form.TXLBBUSS" placeholder="选择体系类别" clearable
@click.native="choiceZRR1('TXLBBUSS', '体系类别', form.TXLBBUSS)"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@@ -299,7 +342,8 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="适用车型" prop="SYCXCLASS" class="add-form-item form-item-disabled"> <el-form-item label="适用车型" prop="SYCXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.SYCXCLASS" placeholder="请选择适用车型" multiple> <el-select :popper-append-to-body="false" v-model="form.SYCXCLASS" placeholder="请选择适用车型"
multiple>
<el-option <el-option
v-for="item in applyArcticOptions" v-for="item in applyArcticOptions"
placeholder="请选择" placeholder="请选择"
@@ -310,7 +354,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="适用产品线" prop="SYCPXCLASS" class="add-form-item form-item-disabled"> <el-form-item label="适用产品线" prop="SYCPXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.SYCPXCLASS" placeholder="请选择适用认证" multiple> <el-select :popper-append-to-body="false" v-model="form.SYCPXCLASS" placeholder="请选择适用认证"
multiple>
<el-option <el-option
v-for="item in sycpxOptions" v-for="item in sycpxOptions"
placeholder="请选择" placeholder="请选择"
@@ -320,18 +365,20 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS" class="add-form-item form-item-disabled"> <el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS"
class="add-form-item form-item-disabled">
<el-input v-model="form.CYCVPPSCNBUSS" placeholder="请输入模块中文名称" clearable disabled></el-input> <el-input v-model="form.CYCVPPSCNBUSS" placeholder="请输入模块中文名称" clearable disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled"> <el-form-item label="关联模块--卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled">
<el-input v-model="form.KCVPPSCNBUSS" placeholder="关联模块--卡车VPPS编码" clearable disabled></el-input> <el-input v-model="form.KCVPPSCNBUSS" placeholder="关联模块--卡车VPPS编码" clearable
disabled></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item label="模块结构单元名称(卡车)" prop="DYMCBUSS" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="模块结构单元名称(卡车)" prop="DYMCBUSS" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.DYMCBUSS" placeholder="模块结构单元名称(卡车)" clearable disabled></el-input>--> <!-- <el-input v-model="form.DYMCBUSS" placeholder="模块结构单元名称(卡车)" clearable disabled></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item label="模块结构单元名称(乘用车)" prop="CYCDYMCBUSS" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="模块结构单元名称(乘用车)" prop="CYCDYMCBUSS" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.CYCDYMCBUSS" placeholder="模块结构单元名称(乘用车)" clearable disabled></el-input>--> <!-- <el-input v-model="form.CYCDYMCBUSS" placeholder="模块结构单元名称(乘用车)" clearable disabled></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -356,7 +403,8 @@
size="mini" size="mini"
style="position:absolute;top: 10px;right: 0;" style="position:absolute;top: 10px;right: 0;"
@click="selectLaws('DTQBBHBUSS','代替企标编号')" @click="selectLaws('DTQBBHBUSS','代替企标编号')"
>{{'手动查找'}}</el-button> >{{'手动查找'}}
</el-button>
</el-form-item> </el-form-item>
<el-form-item label="采用标准" prop="CYBZ" class="add-form-item form-item-disabled"> <el-form-item label="采用标准" prop="CYBZ" class="add-form-item form-item-disabled">
<el-input <el-input
@@ -370,7 +418,8 @@
size="mini" size="mini"
style="position:absolute;top: 10px;right: 0;" style="position:absolute;top: 10px;right: 0;"
@click="selectLaws('CYBZ','采用标准')" @click="selectLaws('CYBZ','采用标准')"
>{{'手动查找'}}</el-button> >{{'手动查找'}}
</el-button>
</el-form-item> </el-form-item>
<el-form-item label="引用标准" prop="YYBZ" class="add-form-item form-item-disabled"> <el-form-item label="引用标准" prop="YYBZ" class="add-form-item form-item-disabled">
<el-input <el-input
@@ -384,7 +433,8 @@
size="mini" size="mini"
style="position:absolute;top: 10px;right: 0;" style="position:absolute;top: 10px;right: 0;"
@click="selectLaws('YYBZ','引用标准')" @click="selectLaws('YYBZ','引用标准')"
>{{'手动查找'}}</el-button> >{{'手动查找'}}
</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@@ -431,7 +481,8 @@
></el-input> ></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;"> <div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px"> <div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in GLWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass"> <div v-for="(item,index) in GLWJBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''"> <span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -584,7 +635,8 @@
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="汇总评审意见文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="汇总评审意见文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
<div v-if="summaryFileList.length > 0" v-for="(item,index) in summaryFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass"> <div v-if="summaryFileList.length > 0" v-for="(item,index) in summaryFileList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')">{{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''"> <span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -609,7 +661,8 @@
></el-input> ></el-input>
<div style="display: flex;justify-content: left;margin-top: 5px;padding-left: 20px;"> <div style="display: flex;justify-content: left;margin-top: 5px;padding-left: 20px;">
<div style="width: 80%;margin-top: 13px"> <div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in madelSubList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass"> <div v-for="(item,index) in madelSubList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')">{{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
<span style="margin-left: 7px;"> <span style="margin-left: 7px;">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -631,15 +684,15 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</form> </form>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import {mapGetters} from 'vuex'
import ProcessTitle from '../../../components/ProcessTitle' import ProcessTitle from '../../../components/ProcessTitle'
export default { export default {
name: 'formEditList', name: 'formEditList',
components: { components: {
ProcessTitle, ProcessTitle,
@@ -701,29 +754,33 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
isTrue: {
type: Boolean,
default: false
},
}, },
filters: { filters: {
ellipsis (value) { ellipsis(value) {
if (!value) return '' if (!value) return ''
if (value.length > 35) { if (value.length > 35) {
return value.slice(0,35) + '...' return value.slice(0, 35) + '...'
} }
return value return value
}, },
ellipsis2 (value) { ellipsis2(value) {
if (!value) return '' if (!value) return ''
if (value.length > 12) { if (value.length > 12) {
return value.slice(0,12) + '...' return value.slice(0, 12) + '...'
} }
return value return value
} }
}, },
data () { data() {
return { return {
fileId:'', fileId: '',
dialogVisible: false, dialogVisible: false,
config: { config: {
attrName : '', attrName: '',
}, },
replaceLawsNumModel: false, replaceLawsNumModel: false,
replaceLawType: '', replaceLawType: '',
@@ -732,9 +789,9 @@ export default {
}, },
// 代替标准号 // 代替标准号
replaceLawsNumForm: { replaceLawsNumForm: {
lawsNumber:'', lawsNumber: '',
numberName:'', numberName: '',
lawsTextState:'', lawsTextState: '',
dataSource: '', dataSource: '',
standNumber: '', // 标准编号 standNumber: '', // 标准编号
page: 1, page: 1,
@@ -747,7 +804,7 @@ export default {
}, },
replaceLawsNumRow: [], // 代替政策号 数组内容 replaceLawsNumRow: [], // 代替政策号 数组内容
replaceTotal: 0, replaceTotal: 0,
form:{}, form: {},
fileList: [], fileList: [],
FBGBUSSFileList: [], FBGBUSSFileList: [],
BZSMBUSSFileList: [], BZSMBUSSFileList: [],
@@ -756,7 +813,7 @@ export default {
GLWJBUSSFileList: [], GLWJBUSSFileList: [],
summaryFileList: [], summaryFileList: [],
madelSubList: [], madelSubList: [],
countryOptions:[],//国家地区 countryOptions: [],//国家地区
standSortOptions: [], // 标准类别 standSortOptions: [], // 标准类别
standNatureOptions: [], // 标准性质 standNatureOptions: [], // 标准性质
standStateOptions: [], // 文本状态 standStateOptions: [], // 文本状态
@@ -782,10 +839,10 @@ export default {
emergyKindOptions: [], // 能源种类下拉框 emergyKindOptions: [], // 能源种类下拉框
categoryConfigOptions: [], // 所属类别下拉框 categoryConfigOptions: [], // 所属类别下拉框
assemClassOptions: [], // 总成分类下拉框 assemClassOptions: [], // 总成分类下拉框
qcdwOptions:[],//起草单位下拉框 qcdwOptions: [],//起草单位下拉框
qcrOptions:[],//起草人下拉框 qcrOptions: [],//起草人下拉框
nylxOptions:[],//能源类型下拉框 nylxOptions: [],//能源类型下拉框
syrzOptions:[],//适用认证下拉框 syrzOptions: [],//适用认证下拉框
data: [], // 标准列表数据 data: [], // 标准列表数据
ListForm: {}, // 新增数据 ListForm: {}, // 新增数据
} }
@@ -794,44 +851,44 @@ export default {
...mapGetters(['userInfo']) ...mapGetters(['userInfo'])
}, },
methods: { methods: {
filterOp(data){ filterOp(data) {
if(!data){ if (!data) {
return "" return ""
} }
const map = new Map(); const map = new Map();
map.set("1","采纳"); map.set("1", "采纳");
map.set("2","部分采纳"); map.set("2", "部分采纳");
map.set("3","不采纳"); map.set("3", "不采纳");
return map.get(data) return map.get(data)
}, },
choiceZRR1(type, title, id) { choiceZRR1(type, title, id) {
this.$emit('formChoiceZRR1',type,title,id) this.$emit('formChoiceZRR1', type, title, id)
}, },
choiceZRR2(type, title, id,flag) { choiceZRR2(type, title, id, flag) {
this.$emit('formChoiceZRR2',type,title,id,flag) this.$emit('formChoiceZRR2', type, title, id, flag)
}, },
choiceZRR3(type, title, id) { choiceZRR3(type, title, id) {
this.$emit('formChoiceZRR3',type,title,id) this.$emit('formChoiceZRR3', type, title, id)
}, },
choiceZRR4(type, title, id) { choiceZRR4(type, title, id) {
this.$emit('formChoiceZRR4',type,title,id) this.$emit('formChoiceZRR4', type, title, id)
}, },
choiceZRR5(type, title, id) { choiceZRR5(type, title, id) {
this.$emit('formChoiceZRR5',type,title,id) this.$emit('formChoiceZRR5', type, title, id)
}, },
choiceQCDW(type, title, id) { choiceQCDW(type, title, id) {
this.$emit('formChoiceQCDW',type,title,id) this.$emit('formChoiceQCDW', type, title, id)
}, },
choiceZRRList (type, title, id) { choiceZRRList(type, title, id) {
this.$emit('formChoiceZRRListCancel',type,title,id) this.$emit('formChoiceZRRListCancel', type, title, id)
}, },
// 代替企标编号 请求数据 // 代替企标编号 请求数据
getReplaceLawsNumRow () { getReplaceLawsNumRow() {
this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', this.replaceLawsNumForm, { this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', this.replaceLawsNumForm, {
_this: this, _this: this,
loading: 'replaceLoading' loading: 'replaceLoading'
@@ -850,7 +907,7 @@ export default {
}, e => { }, e => {
}) })
}, },
selectLaws (type,title) { selectLaws(type, title) {
// if (this.standNumFlag === 1) { // if (this.standNumFlag === 1) {
// this.$refs.selections.selectAll(false) // this.$refs.selections.selectAll(false)
// } // }
@@ -858,53 +915,70 @@ export default {
this.replaceLawsNumModel = true this.replaceLawsNumModel = true
this.replaceLawType = '' this.replaceLawType = ''
this.replaceLawType = type this.replaceLawType = type
this.$emit('formSelectLawsCancel', this.replaceLawsNumModel,this.replaceLawType,title); this.$emit('formSelectLawsCancel', this.replaceLawsNumModel, this.replaceLawType, title);
}, },
fileUpload (type) { fileUpload(type) {
// this.fileMadel = true;//此句应在最后执行,否则会有先显示没变换的的文件列表,在显示变换了的文件列表 // this.fileMadel = true;//此句应在最后执行,否则会有先显示没变换的的文件列表,在显示变换了的文件列表
const fileType = type; const fileType = type;
switch (this.fileType){ switch (this.fileType) {
case 'FBGBUSS': case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList this.fileList = this.FBGBUSSFileList
break; break;
case 'BZSMBUSS' : case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList this.fileList = this.BZSMBUSSFileList
break; break;
case 'LSBBBUSS': case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList this.fileList = this.LSBBBUSSFileList
break; break;
case 'QTWJBUSS': case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList this.fileList = this.QTWJBUSSFileList
break; break;
case 'GLWJBUSS': case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList this.fileList = this.GLWJBUSSFileList
break; break;
case 'madelSub': case 'madelSub':
this.fileList=this.madelSubList this.fileList = this.madelSubList
break; break;
default : ; default :
;
} }
this.fileMadel = true; this.fileMadel = true;
this.$emit('formCancel', this.form, this.FBGBUSSFileList,this.LSBBBUSSFileList,this.BZSMBUSSFileList,this.QTWJBUSSFileList,this.GLWJBUSSFileList,this.fileMadel,this.fileList,fileType,this.madelSubList); this.$emit('formCancel', this.form, this.FBGBUSSFileList, this.LSBBBUSSFileList, this.BZSMBUSSFileList, this.QTWJBUSSFileList, this.GLWJBUSSFileList, this.fileMadel, this.fileList, fileType, this.madelSubList);
}, },
filePreview(){ filePreview() {
this.$preview(this.fileId) this.$preview(this.fileId)
this.dialogVisible = false this.dialogVisible = false
}, },
down(){ down() {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + this.fileId window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + this.fileId
this.dialogVisible = false this.dialogVisible = false
}, },
// 文件预览及下载 // 文件预览及下载
handleFilePreview(file,type) { handleFilePreview(file, type) {
let attId = "" let attId = ""
if(file && file.id){ if (file && file.id) {
attId = file.id attId = file.id
}else { } else {
attId = file.response.data.id attId = file.response.data.id
} }
if (file.name == this.form.standName) {
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
let form = JSON.parse(JSON.stringify(this.form))
form.standCode = ''
form.issueDate = ''
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
return
}
if (type === 'down') { if (type === 'down') {
if (attId) { if (attId) {
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId) window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
@@ -915,17 +989,42 @@ export default {
this.$preview(attId) this.$preview(attId)
} }
}, },
downloadFile (data) { handleFilePreviewOne(file, type) {
let id = ""
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
if (file && file.id) {
id = file.id
} else {
id = file.response.data.id
}
let form = JSON.parse(JSON.stringify(this.form))
form.standCode = ''
form.issueDate = ''
if (type === 'preview') {
this.$onlineEditPreview(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
} else {
this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
}
},
downloadFile(data) {
//文件id中出现了','字符,去除掉 //文件id中出现了','字符,去除掉
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + data.id window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + data.id
}, },
setMap(data){ setMap(data) {
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label)
}) })
}, },
busVsFunc(){ busVsFunc() {
this.$http.get('sarVppsTree/list', '', { this.$http.get('sarVppsTree/list', '', {
_this: this _this: this
}, res => { }, res => {
@@ -933,7 +1032,7 @@ export default {
this.busVppsOptions = res.data this.busVppsOptions = res.data
}) })
}, },
modelFunc(){ modelFunc() {
this.$http.get('sarModelTree/list', '', { this.$http.get('sarModelTree/list', '', {
_this: this _this: this
}, res => { }, res => {
@@ -941,10 +1040,10 @@ export default {
this.modelOptions = res.data this.modelOptions = res.data
}) })
}, },
async getDataAsync(){ async getDataAsync() {
let res = await this.getDicTypeListCode() let res = await this.getDicTypeListCode()
console.log(res) console.log(res)
if(res && res.data){ if (res && res.data) {
this.countryOptions = res.data.COUNTRY this.countryOptions = res.data.COUNTRY
this.applyCountryOptions = res.data.COUNTRY this.applyCountryOptions = res.data.COUNTRY
this.regionOptions = res.data.REGION // 区域 this.regionOptions = res.data.REGION // 区域
@@ -969,12 +1068,12 @@ export default {
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线 this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师 this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
this.gkglbmOptions=res.data.GKGLBM;//归口管理部门 this.gkglbmOptions = res.data.GKGLBM;//归口管理部门
this.cbcdOptions=res.data.DEGREESTANDARD;//采标程度 this.cbcdOptions = res.data.DEGREESTANDARD;//采标程度
this.$emit('emitDataLoading',false) this.$emit('emitDataLoading', false)
} }
}, },
getDicTypeListCode(res,json) { getDicTypeListCode(res, json) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this _this: this
@@ -984,62 +1083,88 @@ export default {
}) })
}) })
}, },
assemble(ids, names) {
let list = new Array();
if (ids && ids !== '' && names && names !== '') {
let idArray = ids.split(',');
let nameArray = names.split(',');
for (let i = 0; i < idArray.length; i++) {
list.push({id: idArray[i], name: nameArray[i]});
}
}
return list;
}, },
mounted () { },
if(this.formSub && this.formSub.standSort && this.formSub.standSort !== ''){ mounted() {
if (this.formSub && this.formSub.standSort && this.formSub.standSort !== '') {
this.getDataAsync() this.getDataAsync()
this.form = JSON.parse(JSON.stringify(this.formSub)) this.form = JSON.parse(JSON.stringify(this.formSub))
console.log(this.QTWJBUSSFileListSub) console.log(this.QTWJBUSSFileListSub)
this.FBGBUSSFileList= this.FBGBUSSFileListSub?JSON.parse(JSON.stringify(this.FBGBUSSFileListSub)):[] this.FBGBUSSFileList = this.FBGBUSSFileListSub ? JSON.parse(JSON.stringify(this.FBGBUSSFileListSub)) : []
this.LSBBBUSSFileList= this.LSBBBUSSFileListSub?JSON.parse(JSON.stringify(this.LSBBBUSSFileListSub)):[] this.LSBBBUSSFileList = this.LSBBBUSSFileListSub ? JSON.parse(JSON.stringify(this.LSBBBUSSFileListSub)) : []
this.BZSMBUSSFileList=this.BZSMBUSSFileListSub?JSON.parse(JSON.stringify(this.BZSMBUSSFileListSub)):[] this.BZSMBUSSFileList = this.BZSMBUSSFileListSub ? JSON.parse(JSON.stringify(this.BZSMBUSSFileListSub)) : []
this.QTWJBUSSFileList= this.QTWJBUSSFileListSub?JSON.parse(JSON.stringify(this.QTWJBUSSFileListSub)):[] this.QTWJBUSSFileList = this.QTWJBUSSFileListSub ? JSON.parse(JSON.stringify(this.QTWJBUSSFileListSub)) : []
this.GLWJBUSSFileList= this.GLWJBUSSFileListSub?JSON.parse(JSON.stringify(this.GLWJBUSSFileListSub)):[] this.GLWJBUSSFileList = this.GLWJBUSSFileListSub ? JSON.parse(JSON.stringify(this.GLWJBUSSFileListSub)) : []
this.summaryFileList= this.summaryFileListSub?JSON.parse(JSON.stringify(this.summaryFileListSub)):[] this.summaryFileList = this.summaryFileListSub ? JSON.parse(JSON.stringify(this.summaryFileListSub)) : []
this.madelSubList= this.madelSubListSub?JSON.parse(JSON.stringify(this.madelSubListSub)):[] this.madelSubList = this.madelSubListSub ? JSON.parse(JSON.stringify(this.madelSubListSub)) : []
} }
}, },
watch: { watch: {
form: { form: {
handler: function (val) { handler: function (val) {
if(val){ if (val) {
this.fileMadel = false this.fileMadel = false
this.$emit('formCancel', this.form, this.FBGBUSSFileList,this.LSBBBUSSFileList,this.BZSMBUSSFileList,this.QTWJBUSSFileList,this.GLWJBUSSFileList,this.fileMadel,this.fileList,'',this.madelSubList); this.$emit('formCancel', this.form, this.FBGBUSSFileList, this.LSBBBUSSFileList, this.BZSMBUSSFileList, this.QTWJBUSSFileList, this.GLWJBUSSFileList, this.fileMadel, this.fileList, '', this.madelSubList);
} }
}, },
deep: true //对象的深度验证 deep: true //对象的深度验证
}, },
// 删除文件后监听已上传的文件 并回显 // 删除文件后监听已上传的文件 并回显
FBGBUSSFileListSub:function(val){ FBGBUSSFileListSub: function (val) {
this.FBGBUSSFileList = val this.FBGBUSSFileList = val
}, },
LSBBBUSSFileListSub:function(val) { LSBBBUSSFileListSub: function (val) {
this.LSBBBUSSFileList = val this.LSBBBUSSFileList = val
}, },
BZSMBUSSFileListSub:function(val) { BZSMBUSSFileListSub: function (val) {
this.BZSMBUSSFileList = val this.BZSMBUSSFileList = val
}, },
QTWJBUSSFileListSub:function(val) { QTWJBUSSFileListSub: function (val) {
this.QTWJBUSSFileList = val this.QTWJBUSSFileList = val
}, },
GLWJBUSSFileListSub:function(val) { GLWJBUSSFileListSub: function (val) {
this.GLWJBUSSFileList = val this.GLWJBUSSFileList = val
}, },
summaryFileListSub:function(val) { summaryFileListSub: function (val) {
this.summaryFileList = val this.summaryFileList = val
}, },
madelSubListSub:function(val) { madelSubListSub: function (val) {
this.madelSubList = val this.madelSubList = val
}, },
'form.standName': {
handler: function (val) {
console.log(val);
if (val && val !== '') {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = val
}
} else {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = '企业标准'
}
}
}
},
}
} }
}
</script> </script>
<style scoped> <style scoped>
/deep/ .fileClass{ /deep/ .fileClass {
line-height: 22px !important; line-height: 22px !important;
} }
.process-manuscript /deep/ .el-form-item__error{
right:45px !important; .process-manuscript /deep/ .el-form-item__error {
right: 45px !important;
} }
</style> </style>
@@ -131,10 +131,38 @@
clearable clearable
></el-input> ></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;"> <div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px"> <div style="width: 80%;margin-top: 13px" v-if="isTrue">
<div v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;" class="fileClass"> <div v-for="(item,index) in FBGBUSSFileList" :key="index"
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span> style="color: #409eff;cursor:pointer"
<span style="margin-left: 7px;" v-if="item.id !== ''"> class="fileClass fileClassName">
<span style="width: 80%;"
v-if="index == 0"
@click="handleFilePreviewOne(item,'preview')">
{{ item.name }}
</span>
<span v-else @click="handleFilePreview(item,'preview')">
{{ item.name }}
</span>
<span style="width: 20%;margin-left: 15px;"
v-if="item.id !== '' && index == 0">
<el-button type="primary" size="mini"
plain icon="el-icon-edit"
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
</span>
<span style="margin-left: 7px;" v-if="item.id !== '' && index != 0">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span>
</div>
</div>
<div style="width: 80%;margin-top: 13px" v-if="!isTrue">
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;"
class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')"
:title="item.name">
{{ item.name }}
</span>
<span style="margin-left: 7px;" v-if="item.id !== '' && item.name != form.standName">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span> </span>
</div> </div>
@@ -702,6 +730,10 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
isTrue: {
type: Boolean,
default: false
},
}, },
filters: { filters: {
ellipsis (value) { ellipsis (value) {
@@ -905,6 +937,22 @@ export default {
attId = file.id attId = file.id
}else { }else {
attId = file.response.data.id attId = file.response.data.id
}
if (file.name == this.form.standName) {
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
let form = JSON.parse(JSON.stringify(this.form))
form.standCode = ''
form.issueDate = ''
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
return
} }
if (type === 'down') { if (type === 'down') {
if (attId) { if (attId) {
@@ -916,6 +964,31 @@ export default {
this.$preview(attId) this.$preview(attId)
} }
}, },
handleFilePreviewOne(file, type) {
let id = ""
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
if (file && file.id) {
id = file.id
} else {
id = file.response.data.id
}
if (this.form.issueTime){
this.form.issueTime = this.form.issueTime.slice(0,10)
}
if (type === 'preview') {
this.$onlineEditPreview(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, this.form)
} else {
this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, this.form)
}
},
downloadFile (data) { downloadFile (data) {
//文件id中出现了','字符,去除掉 //文件id中出现了','字符,去除掉
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + data.id window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + data.id
@@ -1010,6 +1083,20 @@ export default {
}, },
deep: true //对象的深度验证 deep: true //对象的深度验证
}, },
'form.standName': {
handler: function (val) {
console.log(val);
if (val && val !== '') {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = val
}
} else {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = '企业标准'
}
}
}
},
} }
} }
</script> </script>
@@ -1,5 +1,5 @@
<template> <template>
<form> <form>
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
</ProcessTitle> </ProcessTitle>
@@ -7,7 +7,8 @@
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="企标类别" prop="standSort" class="add-form-item form-item-disabled"> <el-form-item label="企标类别" prop="standSort" class="add-form-item form-item-disabled">
<el-select v-model="form.standSort" filterable clearable placeholder="" :disabled="disabledState" style="appearance: none"> <el-select v-model="form.standSort" filterable clearable placeholder=""
:disabled="disabledState" style="appearance: none">
<el-option <el-option
v-for="item in standSortOptions" v-for="item in standSortOptions"
:key="item.value" :key="item.value"
@@ -22,11 +23,13 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="制修订类型" prop="reviseStatus" class="add-form-item form-item-disabled" > <el-form-item label="制修订类型" prop="reviseStatus" class="add-form-item form-item-disabled">
<template> <template>
<div style="padding-left: 10px; color: #666666;" v-if="form.reviseStatus === '1'">制定</div> <div style="padding-left: 10px; color: #666666;" v-if="form.reviseStatus === '1'">制定</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订</div> <div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改</div> </div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改
</div>
<div style="padding-left: 10px; color: #666666;" v-else></div> <div style="padding-left: 10px; color: #666666;" v-else></div>
</template> </template>
</el-form-item> </el-form-item>
@@ -67,7 +70,8 @@
<!-- clearable--> <!-- clearable-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime" class="add-form-item form-item-disabled"> <el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime"
class="add-form-item form-item-disabled">
<el-datePicker v-model="form.putTime" :disabled="disabledState" <el-datePicker v-model="form.putTime" :disabled="disabledState"
:editable="false"></el-datePicker> :editable="false"></el-datePicker>
</el-form-item> </el-form-item>
@@ -81,11 +85,11 @@
<!-- <el-input v-model="form.standYear" :disabled="disabledState"--> <!-- <el-input v-model="form.standYear" :disabled="disabledState"-->
<!-- clearable></el-input>--> <!-- clearable></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item v-show="verifySarStandard" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-show="verifySarStandard" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">-->
<!-- <el-datePicker v-model="form.issueTime" :disabled="disabledState"--> <!-- <el-datePicker v-model="form.issueTime" :disabled="disabledState"-->
<!-- :editable="false"--> <!-- :editable="false"-->
<!-- ></el-datePicker>--> <!-- ></el-datePicker>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item v-show="verifySarStandard" label="废止日期" prop="FZRQBUSS" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-show="verifySarStandard" label="废止日期" prop="FZRQBUSS" class="add-form-item form-item-disabled">-->
<!-- <el-datePicker v-model="form.FZRQBUSS" :disabled="disabledState"--> <!-- <el-datePicker v-model="form.FZRQBUSS" :disabled="disabledState"-->
<!-- :editable="false"--> <!-- :editable="false"-->
@@ -102,54 +106,87 @@
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="发布稿" prop="FBGBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="发布稿" prop="FBGBUSSName" class="add-form-item form-item-disabled">
<div v-if="FBGBUSSFileList.length > 0" v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> <div style="width: 80%;margin-top: 13px" v-if="isTrue">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> <div v-if="FBGBUSSFileList.length > 0"
<span style="margin-left: 7px;" v-if="item.id !== ''"> v-for="(item,index) in FBGBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;"
class="fileClass fileClassName">
<span style="width: 80%;"
v-if="index == 0"
@click="handleFilePreviewOne(item,'preview')">
{{ item.name }}
</span>
<span v-else @click="handleFilePreview(item,'preview')">
{{ item.name }}
</span>
<span style="width: 20%;margin-left: 15px;"
v-if="item.id !== '' && index == 0">
<el-button type="primary" size="mini"
plain icon="el-icon-edit"
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
</span>
<span style="margin-left: 7px;" v-if="item.id !== '' && index != 0">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span> </span>
</div> </div>
<!-- <div v-if="FBGBUSSFileList.length>0" v-for="(value,index) in this.FBGBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">--> </div>
<!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;-->
<!-- {{value.name}}--> <div style="width: 80%;margin-top: 13px" v-if="!isTrue">
<!-- </div>--> <div v-if="FBGBUSSFileList.length > 0" v-for="(item,index) in FBGBUSSFileList"
:key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;"
class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== '' && item.name != form.standName">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span>
</div>
</div>
<!-- <div v-if="FBGBUSSFileList.length>0" v-for="(value,index) in this.FBGBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">-->
<!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;-->
<!-- {{value.name}}-->
<!-- </div>-->
</el-form-item> </el-form-item>
<el-form-item label="历史版本" prop="LSBBBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="历史版本" prop="LSBBBUSSName" class="add-form-item form-item-disabled">
<div v-if="LSBBBUSSFileList.length > 0" v-for="(item,index) in LSBBBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> <div v-if="LSBBBUSSFileList.length > 0" v-for="(item,index) in LSBBBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''"> <span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span> </span>
</div> </div>
<!-- <div v-if="LSBBBUSSFileList.length>0" v-for="(value,index) in this.LSBBBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">--> <!-- <div v-if="LSBBBUSSFileList.length>0" v-for="(value,index) in this.LSBBBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">-->
<!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;--> <!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;-->
<!-- {{value.name}}--> <!-- {{value.name}}-->
<!-- </div>--> <!-- </div>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="编制说明" prop="BZSMBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="编制说明" prop="BZSMBUSSName" class="add-form-item form-item-disabled">
<div v-if="BZSMBUSSFileList.length > 0" v-for="(item,index) in BZSMBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> <div v-if="BZSMBUSSFileList.length > 0" v-for="(item,index) in BZSMBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''"> <span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span> </span>
</div> </div>
<!-- <div v-if="BZSMBUSSFileList.length>0" v-for="(value,index) in this.BZSMBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">--> <!-- <div v-if="BZSMBUSSFileList.length>0" v-for="(value,index) in this.BZSMBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">-->
<!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;--> <!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;-->
<!-- {{value.name}}--> <!-- {{value.name}}-->
<!-- </div>--> <!-- </div>-->
</el-form-item> </el-form-item>
<el-form-item label="其他文件" prop="QTWJBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="其他文件" prop="QTWJBUSSName" class="add-form-item form-item-disabled">
<div v-if="QTWJBUSSFileList.length > 0" v-for="(item,index) in QTWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> <div v-if="QTWJBUSSFileList.length > 0" v-for="(item,index) in QTWJBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''"> <span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span> </span>
</div> </div>
<!-- <div v-if="QTWJBUSSFileList.length>0" v-for="(value,index) in this.QTWJBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">--> <!-- <div v-if="QTWJBUSSFileList.length>0" v-for="(value,index) in this.QTWJBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">-->
<!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;--> <!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;-->
<!-- {{value.name}}--> <!-- {{value.name}}-->
<!-- </div>--> <!-- </div>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -171,7 +208,8 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="能源类型" prop="NYLXCLASS" class="add-form-item form-item-disabled"> <el-form-item label="能源类型" prop="NYLXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.NYLXCLASS" placeholder="" :disabled="disabledState" multiple> <el-select :popper-append-to-body="false" v-model="form.NYLXCLASS" placeholder=""
:disabled="disabledState" multiple>
<el-option <el-option
v-for="item in categoryOptions" v-for="item in categoryOptions"
:key="item.value" :key="item.value"
@@ -180,28 +218,32 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车VPPS中文名称" title="关联模块--乘用车VPPS中文名称" class="add-form-item form-item-disabled"> <el-form-item label="关联模块--乘用车VPPS中文名称" title="关联模块--乘用车VPPS中文名称"
class="add-form-item form-item-disabled">
<el-input v-model="form.CYCVPPSBMBUSS" :disabled="disabledState"></el-input> <el-input v-model="form.CYCVPPSBMBUSS" :disabled="disabledState"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码" class="add-form-item form-item-disabled"> <el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码"
class="add-form-item form-item-disabled">
<el-input v-model="form.KCVPPSBMBUSS" :disabled="disabledState"></el-input> <el-input v-model="form.KCVPPSBMBUSS" :disabled="disabledState"></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item label="模块结构单元变型号(卡车)" title="模块结构单元变型号(卡车)" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="模块结构单元变型号(卡车)" title="模块结构单元变型号(卡车)" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.DYBXHBUSS" :disabled="disabledState"></el-input>--> <!-- <el-input v-model="form.DYBXHBUSS" :disabled="disabledState"></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item label="模块结构单元变型号(乘用车)" title="模块结构单元变型号(乘用车)" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="模块结构单元变型号(乘用车)" title="模块结构单元变型号(乘用车)" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.CYCDYBXHBUSS" :disabled="disabledState"></el-input>--> <!-- <el-input v-model="form.CYCDYBXHBUSS" :disabled="disabledState"></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="体系类别" prop="TXLBBUSS" class="add-form-item form-item-disabled"> <el-form-item label="体系类别" prop="TXLBBUSS" class="add-form-item form-item-disabled">
<el-input v-model="form.TXLBBUSS" :disabled="disabledState" clearable></el-input> <el-input v-model="form.TXLBBUSS" :disabled="disabledState" clearable></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="起草人" prop="QCRBUSS" class="add-form-item form-item-disabled"> <el-form-item label="起草人" prop="QCRBUSS" class="add-form-item form-item-disabled">
<el-input v-model="form.QCRBUSS" :title="form.QCRBUSS" :disabled="disabledState" clearable></el-input> <el-input v-model="form.QCRBUSS" :title="form.QCRBUSS" :disabled="disabledState"
clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="适用车型" prop="SYCXCLASS" class="add-form-item form-item-disabled"> <el-form-item label="适用车型" prop="SYCXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.SYCXCLASS" placeholder="" :disabled="disabledState" multiple> <el-select :popper-append-to-body="false" v-model="form.SYCXCLASS" placeholder=""
:disabled="disabledState" multiple>
<el-option <el-option
v-for="item in applyArcticOptions" v-for="item in applyArcticOptions"
:key="item.value" :key="item.value"
@@ -211,7 +253,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="适用产品线" prop="SYCPXCLASS" class="add-form-item form-item-disabled"> <el-form-item label="适用产品线" prop="SYCPXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.SYCPXCLASS" placeholder="" :disabled="disabledState" multiple> <el-select :popper-append-to-body="false" v-model="form.SYCPXCLASS" placeholder=""
:disabled="disabledState" multiple>
<el-option <el-option
v-for="item in sycpxOptions" v-for="item in sycpxOptions"
:key="item.value" :key="item.value"
@@ -220,18 +263,19 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS" class="add-form-item form-item-disabled"> <el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS"
class="add-form-item form-item-disabled">
<el-input v-model="form.CYCVPPSCNBUSS" clearable disabled></el-input> <el-input v-model="form.CYCVPPSCNBUSS" clearable disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled"> <el-form-item label="关联模块--卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled">
<el-input v-model="form.KCVPPSCNBUSS" clearable disabled></el-input> <el-input v-model="form.KCVPPSCNBUSS" clearable disabled></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item label="模块结构单元名称(卡车)" prop="DYMCBUSS" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="模块结构单元名称(卡车)" prop="DYMCBUSS" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.DYMCBUSS" clearable disabled></el-input>--> <!-- <el-input v-model="form.DYMCBUSS" clearable disabled></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item label="模块结构单元名称(乘用车)" prop="CYCDYMCBUSS" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="模块结构单元名称(乘用车)" prop="CYCDYMCBUSS" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.CYCDYMCBUSS" clearable disabled></el-input>--> <!-- <el-input v-model="form.CYCDYMCBUSS" clearable disabled></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -261,12 +305,12 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<!-- <el-form-item label="被代替企标编号" prop="BDTWJHLAWS" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="被代替企标编号" prop="BDTWJHLAWS" class="add-form-item form-item-disabled">-->
<!-- <el-input--> <!-- <el-input-->
<!-- v-model="form.BDTWJHLAWS" :disabled="disabledState"--> <!-- v-model="form.BDTWJHLAWS" :disabled="disabledState"-->
<!-- clearable--> <!-- clearable-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="上传时间" prop="XCSJBUSS" class="add-form-item form-item-disabled"> <el-form-item label="上传时间" prop="XCSJBUSS" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.XCSJBUSS" v-model="form.XCSJBUSS"
@@ -286,16 +330,17 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
<div v-if="GLWJBUSSFileList.length > 0" v-for="(item,index) in GLWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> <div v-if="GLWJBUSSFileList.length > 0" v-for="(item,index) in GLWJBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''"> <span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span> </span>
</div> </div>
<!-- <div v-if="GLWJBUSSFileList.length>0" v-for="(value,index) in this.GLWJBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">--> <!-- <div v-if="GLWJBUSSFileList.length>0" v-for="(value,index) in this.GLWJBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">-->
<!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;--> <!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;-->
<!-- {{value.name}}--> <!-- {{value.name}}-->
<!-- </div>--> <!-- </div>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -337,39 +382,39 @@
label="修改前" label="修改前"
align="center" align="center"
min-width="20%"> min-width="20%">
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-form-item--> <!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"--> <!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >--> <!-- >-->
<!-- <el-input v-model="scope.row.modelUpdBefore" :title="scope.row.modelUpdBefore" :disabled="scope.row.disabled" placeholder="请维护章节修改前内容" @blur="modelNameFunc1(scope.row)"/>--> <!-- <el-input v-model="scope.row.modelUpdBefore" :title="scope.row.modelUpdBefore" :disabled="scope.row.disabled" placeholder="请维护章节修改前内容" @blur="modelNameFunc1(scope.row)"/>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </template>--> <!-- </template>-->
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="modelUpdAfter" prop="modelUpdAfter"
label="修改后" label="修改后"
align="center" align="center"
min-width="20%"> min-width="20%">
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-form-item--> <!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"--> <!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >--> <!-- >-->
<!-- <el-input v-model="scope.row.modelUpdAfter" :title="scope.row.modelUpdAfter" :disabled="scope.row.disabled" placeholder="请维护章节修改后内容" @blur="modelNameFunc2(scope.row)"/>--> <!-- <el-input v-model="scope.row.modelUpdAfter" :title="scope.row.modelUpdAfter" :disabled="scope.row.disabled" placeholder="请维护章节修改后内容" @blur="modelNameFunc2(scope.row)"/>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </template>--> <!-- </template>-->
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="modelContent" prop="modelContent"
label="修改理由" label="修改理由"
align="center" align="center"
min-width="20%"> min-width="20%">
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-form-item--> <!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"--> <!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >--> <!-- >-->
<!-- <el-input v-model="scope.row.modelContent" :disabled="scope.row.disabled" placeholder="请填写修改理由"/>--> <!-- <el-input v-model="scope.row.modelContent" :disabled="scope.row.disabled" placeholder="请填写修改理由"/>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </template>--> <!-- </template>-->
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zrDeptIdName" prop="zrDeptIdName"
@@ -403,18 +448,18 @@
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{filterOp(scope.row.opinionsAdopted)}} {{filterOp(scope.row.opinionsAdopted)}}
<!-- <el-form-item--> <!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"--> <!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >--> <!-- >-->
<!-- <el-select style="margin-left: -223px;" v-model="scope.row.opinionsAdopted" filterable clearable :disabled="disabledState">--> <!-- <el-select style="margin-left: -223px;" v-model="scope.row.opinionsAdopted" filterable clearable :disabled="disabledState">-->
<!-- <el-option--> <!-- <el-option-->
<!-- v-for="item in opinionsAdoptedOptions"--> <!-- v-for="item in opinionsAdoptedOptions"-->
<!-- :key="item.value"--> <!-- :key="item.value"-->
<!-- :value="item.value"--> <!-- :value="item.value"-->
<!-- :label="item.label"--> <!-- :label="item.label"-->
<!-- ></el-option>--> <!-- ></el-option>-->
<!-- </el-select>--> <!-- </el-select>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -422,19 +467,20 @@
label="采纳理由" label="采纳理由"
align="center" align="center"
min-width="15%"> min-width="15%">
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-form-item--> <!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"--> <!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >--> <!-- >-->
<!-- <el-input v-model="scope.row.opinionsAdoptedCont" clearable placeholder="请选择提出人自动带入部门"/>--> <!-- <el-input v-model="scope.row.opinionsAdoptedCont" clearable placeholder="请选择提出人自动带入部门"/>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </template>--> <!-- </template>-->
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="汇总评审意见文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="汇总评审意见文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
<div v-if="summaryFileList.length > 0" v-for="(item,index) in summaryFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> <div v-if="summaryFileList.length > 0" v-for="(item,index) in summaryFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> <span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''"> <span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> <i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -444,16 +490,16 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</form> </form>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import {mapGetters} from 'vuex'
import ProcessTitle from '../../../components/ProcessTitle' import ProcessTitle from '../../../components/ProcessTitle'
import axios from "axios"; import axios from "axios";
export default { export default {
name: 'formList', name: 'formList',
components: { components: {
ProcessTitle, ProcessTitle,
@@ -503,38 +549,42 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
isTrue: {
type: Boolean,
default: false
},
}, },
filters: { filters: {
ellipsis (value) { ellipsis(value) {
if (!value) return '' if (!value) return ''
if (value.length > 35) { if (value.length > 35) {
return value.slice(0,35) + '...' return value.slice(0, 35) + '...'
} }
return value return value
}, },
ellipsis2 (value) { ellipsis2(value) {
if (!value) return '' if (!value) return ''
if (value.length > 12) { if (value.length > 12) {
return value.slice(0,12) + '...' return value.slice(0, 12) + '...'
} }
return value return value
}, },
ellipsis22 (value) { ellipsis22(value) {
if (!value) return '' if (!value) return ''
if (value.length > 22) { if (value.length > 22) {
return value.slice(0,22) + '...' return value.slice(0, 22) + '...'
} }
return value return value
} }
}, },
data () { data() {
return { return {
opinionsAdoptedOptions:[ opinionsAdoptedOptions: [
{value: '1',label: '采纳'}, {value: '1', label: '采纳'},
{value: '2',label: '部分采纳'}, {value: '2', label: '部分采纳'},
{value: '3',label: '不采纳'}, {value: '3', label: '不采纳'},
], ],
countryOptions:[],//国家地区 countryOptions: [],//国家地区
standSortOptions: [], // 标准类别 standSortOptions: [], // 标准类别
standNatureOptions: [], // 标准性质 standNatureOptions: [], // 标准性质
standStateOptions: [], // 文本状态 standStateOptions: [], // 文本状态
@@ -560,10 +610,10 @@ export default {
emergyKindOptions: [], // 能源种类下拉框 emergyKindOptions: [], // 能源种类下拉框
categoryConfigOptions: [], // 所属类别下拉框 categoryConfigOptions: [], // 所属类别下拉框
assemClassOptions: [], // 总成分类下拉框 assemClassOptions: [], // 总成分类下拉框
qcdwOptions:[],//起草单位下拉框 qcdwOptions: [],//起草单位下拉框
qcrOptions:[],//起草人下拉框 qcrOptions: [],//起草人下拉框
nylxOptions:[],//能源类型下拉框 nylxOptions: [],//能源类型下拉框
syrzOptions:[],//适用认证下拉框 syrzOptions: [],//适用认证下拉框
data: [], // 标准列表数据 data: [], // 标准列表数据
ListForm: {}, // 新增数据 ListForm: {}, // 新增数据
} }
@@ -571,25 +621,57 @@ export default {
computed: { computed: {
...mapGetters(['userInfo']) ...mapGetters(['userInfo'])
}, },
watch:{
'form.standName': {
handler: function (val) {
console.log(val);
if (val && val !== '') {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = val
}
} else {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = '企业标准'
}
}
}
},
},
methods: { methods: {
filterOp(data){ filterOp(data) {
if(!data){ if (!data) {
return "" return ""
} }
const map = new Map(); const map = new Map();
map.set("1","采纳"); map.set("1", "采纳");
map.set("2","部分采纳"); map.set("2", "部分采纳");
map.set("3","不采纳"); map.set("3", "不采纳");
return map.get(data) return map.get(data)
}, },
// 文件预览及下载 // 文件预览及下载
handleFilePreview(file,type) { handleFilePreview(file, type) {
let attId = "" let attId = ""
if(file && file.id){ if (file && file.id) {
attId = file.id attId = file.id
}else { } else {
attId = file.response.data.id attId = file.response.data.id
} }
if (file.name == this.form.standName) {
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
let form = JSON.parse(JSON.stringify(this.form))
form.standCode = ''
form.issueDate = ''
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
return
}
if (type === 'down') { if (type === 'down') {
if (attId) { if (attId) {
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId) window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
@@ -600,11 +682,36 @@ export default {
this.$preview(attId) this.$preview(attId)
} }
}, },
downloadFile (data) { handleFilePreviewOne(file, type) {
let id = ""
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
if (file && file.id) {
id = file.id
} else {
id = file.response.data.id
}
let form = JSON.parse(JSON.stringify(this.form))
form.standCode = ''
form.issueDate = ''
if (type === 'preview') {
this.$onlineEditPreview(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
} else {
this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
}
},
downloadFile(data) {
//文件id中出现了','字符,去除掉 //文件id中出现了','字符,去除掉
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + data.id) window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + data.id)
}, },
setMap(data){ setMap(data) {
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label)
}) })
@@ -641,7 +748,7 @@ export default {
}) })
}, },
busVsFunc(){ busVsFunc() {
this.$http.get('sarVppsTree/list', '', { this.$http.get('sarVppsTree/list', '', {
_this: this _this: this
}, res => { }, res => {
@@ -649,7 +756,7 @@ export default {
this.busVppsOptions = res.data this.busVppsOptions = res.data
}) })
}, },
modelFunc(){ modelFunc() {
this.$http.get('sarModelTree/list', '', { this.$http.get('sarModelTree/list', '', {
_this: this _this: this
}, res => { }, res => {
@@ -657,10 +764,10 @@ export default {
this.modelOptions = res.data this.modelOptions = res.data
}) })
}, },
async getDataAsync(){ async getDataAsync() {
let res = await this.getDicTypeListCode() let res = await this.getDicTypeListCode()
console.log(res) console.log(res)
if(res && res.data){ if (res && res.data) {
this.countryOptions = res.data.COUNTRY this.countryOptions = res.data.COUNTRY
this.applyCountryOptions = res.data.COUNTRY this.applyCountryOptions = res.data.COUNTRY
this.regionOptions = res.data.REGION // 区域 this.regionOptions = res.data.REGION // 区域
@@ -685,13 +792,13 @@ export default {
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线 this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师 this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
this.gkglbmOptions=res.data.GKGLBM;//归口管理部门 this.gkglbmOptions = res.data.GKGLBM;//归口管理部门
this.cbcdOptions=res.data.DEGREESTANDARD;//采标程度 this.cbcdOptions = res.data.DEGREESTANDARD;//采标程度
this.$emit('emitDataLoading',false) this.$emit('emitDataLoading', false)
} }
}, },
getDicTypeListCode(res,json) { getDicTypeListCode(res, json) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this _this: this
@@ -702,14 +809,14 @@ export default {
}) })
}, },
}, },
mounted () { mounted() {
this.getDataAsync() this.getDataAsync()
} }
} }
</script> </script>
<style scoped> <style scoped>
/deep/ .fileClass{ /deep/ .fileClass {
line-height: 22px !important; line-height: 22px !important;
} }
</style> </style>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -21,6 +21,7 @@
<formEditList <formEditList
:key = "formKey" :key = "formKey"
:formSub = "form" :formSub = "form"
:isTrue="true"
:FBGBUSSFileListSub = "FBGBUSSFileList" :FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList" :LSBBBUSSFileListSub = "LSBBBUSSFileList"
:BZSMBUSSFileListSub = "BZSMBUSSFileList" :BZSMBUSSFileListSub = "BZSMBUSSFileList"
@@ -21,6 +21,7 @@
<formEditList <formEditList
:key = "formKey" :key = "formKey"
:formSub = "form" :formSub = "form"
:isTrue="true"
:FBGBUSSFileListSub = "FBGBUSSFileList" :FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList" :LSBBBUSSFileListSub = "LSBBBUSSFileList"
:BZSMBUSSFileListSub = "BZSMBUSSFileList" :BZSMBUSSFileListSub = "BZSMBUSSFileList"
@@ -20,6 +20,7 @@
<div style="flex: auto;" v-show="active === '1'"> <div style="flex: auto;" v-show="active === '1'">
<formList <formList
:form = "form" :form = "form"
:isTrue="true"
:FBGBUSSFileList = "FBGBUSSFileList" :FBGBUSSFileList = "FBGBUSSFileList"
:LSBBBUSSFileList = "LSBBBUSSFileList" :LSBBBUSSFileList = "LSBBBUSSFileList"
:BZSMBUSSFileList = "BZSMBUSSFileList" :BZSMBUSSFileList = "BZSMBUSSFileList"
File diff suppressed because it is too large Load Diff
@@ -145,6 +145,7 @@
<formEditList <formEditList
:key = "formKey" :key = "formKey"
:formSub = "form" :formSub = "form"
:is-true="true"
:FBGBUSSFileListSub = "FBGBUSSFileList" :FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList" :LSBBBUSSFileListSub = "LSBBBUSSFileList"
:BZSMBUSSFileListSub = "BZSMBUSSFileList" :BZSMBUSSFileListSub = "BZSMBUSSFileList"
@@ -21,6 +21,7 @@
<formEditList <formEditList
:key = "formKey" :key = "formKey"
:formSub = "form" :formSub = "form"
:isTrue="true"
:FBGBUSSFileListSub = "FBGBUSSFileList" :FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList" :LSBBBUSSFileListSub = "LSBBBUSSFileList"
:BZSMBUSSFileListSub = "BZSMBUSSFileList" :BZSMBUSSFileListSub = "BZSMBUSSFileList"
@@ -150,6 +150,7 @@
<formEditList <formEditList
:key = "formKey" :key = "formKey"
:formSub = "form" :formSub = "form"
:is-true="true"
:FBGBUSSFileListSub = "FBGBUSSFileList" :FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList" :LSBBBUSSFileListSub = "LSBBBUSSFileList"
:BZSMBUSSFileListSub = "BZSMBUSSFileList" :BZSMBUSSFileListSub = "BZSMBUSSFileList"
+11 -12
View File
@@ -1,18 +1,17 @@
/** /*** @description: 通用配置
* @description: 通用配置 * @author: chenxiaoxi
* @author: chenxiaoxi * @date: 2018-09-04 17:47:46
* @date: 2018-09-04 17:47:46 */
*/
// 服务器地址 // 服务器地址
// const devIp = '39.98.140.126' // const devIp = '39.98.140.126'
// const devInterfacePORT = '4202' // const devInterfacePORT = '4202'
// const devIp = '192.168.1.42' // const devIp = '192.168.1.42'
// const devInterfacePORT = '9999' // const devInterfacePORT = '9999'
// const devIp = '10.10.10.46' const devIp = '10.10.10.46'
// const devInterfacePORT = '4202' const devInterfacePORT = '4202'
// const devIp = '10.0.3.10' // // const devIp = '10.0.3.10'
const devIp = 'localhost' // const devIp = 'localhost'
const devInterfacePORT = '10086' // const devInterfacePORT = '10086'
// const devIp = '62.234.136.153' // const devIp = '62.234.136.153'
// const devInterfacePORT = '8033' // const devInterfacePORT = '8033'
// 配置 idm 认证 // 配置 idm 认证
@@ -23,8 +22,8 @@ const devWebUrl = 'http://62.234.136.153:8038/#/'
const webLoginType = 'dev' const webLoginType = 'dev'
// 配置onlyOffice 前端服务 // 配置onlyOffice 前端服务
const onlyOfficeUrl = 'http://127.0.0.1:8080' // const onlyOfficeUrl = 'http://127.0.0.1:8080'
// const onlyOfficeUrl = 'http://10.10.10.46:8103' const onlyOfficeUrl = 'http://10.10.10.46:8889'
// 云端端口号 // 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const DEV_CLOUD_RES_INTERFACE_PORT = '7777'