修改onlyoffice传参

This commit is contained in:
范强强
2023-02-15 17:54:27 +08:00
parent cd1125e349
commit 4eeb7cbb81
11 changed files with 3097 additions and 2727 deletions
@@ -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>
@@ -2131,8 +2131,6 @@ export default {
}, res => { }, res => {
this.form.standEnName = res.data.standEnName this.form.standEnName = res.data.standEnName
this.form.putTime = res.data.putTime this.form.putTime = res.data.putTime
this.form.issueTime = res.data.issueTime
this.form.standCode = res.data.standCode
this.form.QCDW = res.data.attrInfoMap.QCDW this.form.QCDW = res.data.attrInfoMap.QCDW
this.form.WJSCRYBUSSName = res.data.attrInfoMap.WJSCRYBUSS this.form.WJSCRYBUSSName = res.data.attrInfoMap.WJSCRYBUSS
this.form.NYLXCLASS = res.data.attrInfoMap.NYLXCLASS.split(',') this.form.NYLXCLASS = res.data.attrInfoMap.NYLXCLASS.split(',')
@@ -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"