style: eslint格式化

This commit is contained in:
zyn
2024-01-24 11:04:25 +08:00
parent a131f9bb7a
commit 3c34628cb7
@@ -7,30 +7,39 @@
<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="" <el-select
:disabled="disabledState" style="appearance: none"> 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"
:value="item.value" :value="item.value"
:label="item.label" :label="item.label"
></el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled"> <el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.standName" :disabled="disabledState" v-model="form.standName"
:disabled="disabledState"
clearable clearable
></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 v-if="form.reviseStatus === '1'" style="padding-left: 10px; color: #666666;">制定</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订 <div v-else-if="form.reviseStatus === '2'" style="padding-left: 10px; color: #666666;">
修订
</div> </div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改 <div v-else-if="form.reviseStatus === '3'" style="padding-left: 10px; color: #666666;">
修改
</div> </div>
<div style="padding-left: 10px; color: #666666;" v-else></div> <div v-else style="padding-left: 10px; color: #666666;" />
</template> </template>
</el-form-item> </el-form-item>
<!-- <el-form-item label="文本状态" prop="textStatusBuss" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="文本状态" prop="textStatusBuss" class="add-form-item form-item-disabled">-->
@@ -70,16 +79,24 @@
<!-- clearable--> <!-- clearable-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime" <el-form-item
class="add-form-item form-item-disabled"> v-show="verifySarStandard"
<el-datePicker v-model="form.putTime" :disabled="disabledState" label="企标实施日期"
:editable="false"></el-datePicker> prop="putTime"
class="add-form-item form-item-disabled"
>
<el-datePicker
v-model="form.putTime"
:disabled="disabledState"
:editable="false"
/>
</el-form-item> </el-form-item>
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled"> <el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.standEnName" :disabled="disabledState" v-model="form.standEnName"
:disabled="disabledState"
clearable clearable
></el-input> />
</el-form-item> </el-form-item>
<!-- <el-form-item v-show="verifySarStandard" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-show="verifySarStandard" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.standYear" :disabled="disabledState"--> <!-- <el-input v-model="form.standYear" :disabled="disabledState"-->
@@ -102,34 +119,50 @@
<ProcessTitle v-show="verifySarStandard"> <ProcessTitle v-show="verifySarStandard">
<template slot="title">过程稿件</template> <template slot="title">过程稿件</template>
</ProcessTitle> </ProcessTitle>
<div class="prc-content-border" v-show="verifySarStandard"> <div v-show="verifySarStandard" class="prc-content-border">
<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 style="width: 80%;margin-top: 13px" v-if="isTrue"> <div v-if="isTrue" style="width: 80%;margin-top: 13px">
<div v-if="FBGBUSSFileList.length > 0" <div
v-for="(item,index) in FBGBUSSFileList" :key="index" v-for="(item,index) in FBGBUSSFileList"
v-if="FBGBUSSFileList.length > 0"
:key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;" style="color: #409eff;cursor:pointer;margin-left: 12px;"
class="fileClass fileClassName"> class="fileClass fileClassName"
<span style="width: 80%;" v-if="index == 0 && !item.id.startsWith('ATT')" >
@click="handleFilePreviewOne(item,'preview')"> {{ item.name }} </span> <span
v-if="index == 0 && !item.id.startsWith('ATT')"
style="width: 80%;"
@click="handleFilePreviewOne(item,'preview')"
> {{ item.name }} </span>
<span v-else @click="handleFilePreview(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 && !item.id.startsWith('ATT')"> <span v-if="item.id !== '' && index == 0 && !item.id.startsWith('ATT')" style="width: 20%;margin-left: 15px;">
<el-button type="primary" size="mini" plain icon="el-icon-edit" @click="handleFilePreviewOne(item,'onlineEdit')"></el-button> <el-button
type="primary"
size="mini"
plain
icon="el-icon-edit"
@click="handleFilePreviewOne(item,'onlineEdit')"
/>
</span> </span>
<span style="margin-left: 7px;" v-if="item.id !== '' && item.id.startsWith('ATT')"> <span v-if="item.id !== '' && item.id.startsWith('ATT')" 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')" />
</span> </span>
</div> </div>
</div> </div>
<div style="width: 80%;margin-top: 13px" v-if="!isTrue"> <div v-if="!isTrue" style="width: 80%;margin-top: 13px">
<div v-if="FBGBUSSFileList.length > 0" v-for="(item,index) in FBGBUSSFileList" <div
:key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;" v-for="(item,index) in FBGBUSSFileList"
class="fileClass"> v-if="FBGBUSSFileList.length > 0"
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> :key="index"
<span style="margin-left: 7px;" v-if="item.id !== '' && item.id.startsWith('ATT')"> style="color: #409eff;cursor:pointer;margin-left: 12px;"
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> class="fileClass"
>
<span style="" :title="item.name" @click="handleFilePreview(item,'preview')"> {{ item.name }}</span>
<span v-if="item.id !== '' && item.id.startsWith('ATT')" style="margin-left: 7px;">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')" />
</span> </span>
</div> </div>
</div> </div>
@@ -140,11 +173,16 @@
<!-- </div>--> <!-- </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" <div
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> v-for="(item,index) in LSBBBUSSFileList"
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> v-if="LSBBBUSSFileList.length > 0"
<span style="margin-left: 7px;" v-if="item.id !== ''"> :key="index"
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px"
class="fileClass"
>
<span style="" :title="item.name" @click="handleFilePreview(item,'preview')"> {{ item.name }}</span>
<span v-if="item.id !== ''" style="margin-left: 7px;">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')" />
</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)">-->
@@ -155,11 +193,16 @@
</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" <div
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> v-for="(item,index) in BZSMBUSSFileList"
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> v-if="BZSMBUSSFileList.length > 0"
<span style="margin-left: 7px;" v-if="item.id !== ''"> :key="index"
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px"
class="fileClass"
>
<span style="" :title="item.name" @click="handleFilePreview(item,'preview')"> {{ item.name }}</span>
<span v-if="item.id !== ''" style="margin-left: 7px;">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')" />
</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)">-->
@@ -168,11 +211,16 @@
<!-- </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" <div
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> v-for="(item,index) in QTWJBUSSFileList"
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> v-if="QTWJBUSSFileList.length > 0"
<span style="margin-left: 7px;" v-if="item.id !== ''"> :key="index"
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px"
class="fileClass"
>
<span style="" :title="item.name" @click="handleFilePreview(item,'preview')"> {{ item.name }}</span>
<span v-if="item.id !== ''" style="margin-left: 7px;">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')" />
</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)">-->
@@ -186,37 +234,48 @@
<ProcessTitle v-show="verifySarStandard"> <ProcessTitle v-show="verifySarStandard">
<template slot="title">适用范围</template> <template slot="title">适用范围</template>
</ProcessTitle> </ProcessTitle>
<div class="prc-content-border" v-show="verifySarStandard"> <div v-show="verifySarStandard" class="prc-content-border">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="起草部门" prop="QCDW" class="add-form-item form-item-disabled"> <el-form-item label="起草部门" prop="QCDW" class="add-form-item form-item-disabled">
<el-input v-model="form.QCDW" :disabled="disabledState" clearable></el-input> <el-input v-model="form.QCDW" :disabled="disabledState" clearable />
</el-form-item> </el-form-item>
<el-form-item label="文件上传人员" prop="WJSCRYBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="文件上传人员" prop="WJSCRYBUSSName" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.WJSCRYBUSSName" v-model="form.WJSCRYBUSSName"
disabled disabled
clearable clearable
></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="" <el-select
:disabled="disabledState" multiple> v-model="form.NYLXCLASS"
:popper-append-to-body="false"
placeholder=""
:disabled="disabledState"
multiple
>
<el-option <el-option
v-for="item in categoryOptions" v-for="item in categoryOptions"
:key="item.value" :key="item.value"
:value="item.value" :value="item.value"
:label="item.label" :label="item.label"
></el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车VPPS中文名称" title="关联模块--乘用车VPPS中文名称" <el-form-item
class="add-form-item form-item-disabled"> label="关联模块--乘用车VPPS中文名称"
<el-input v-model="form.CYCVPPSBMBUSS" :disabled="disabledState"></el-input> title="关联模块--乘用车VPPS中文名称"
class="add-form-item form-item-disabled"
>
<el-input v-model="form.CYCVPPSBMBUSS" :disabled="disabledState" />
</el-form-item> </el-form-item>
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码" <el-form-item
class="add-form-item form-item-disabled"> label="关联模块--卡车VPPS编码"
<el-input v-model="form.KCVPPSBMBUSS" :disabled="disabledState"></el-input> title="关联模块--卡车VPPS编码"
class="add-form-item form-item-disabled"
>
<el-input v-model="form.KCVPPSBMBUSS" :disabled="disabledState" />
</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>-->
@@ -225,42 +284,59 @@
<!-- <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-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" <el-input
clearable></el-input> v-model="form.QCRBUSS"
:title="form.QCRBUSS"
:disabled="disabledState"
clearable
/>
</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="" <el-select
:disabled="disabledState" multiple> v-model="form.SYCXCLASS"
:popper-append-to-body="false"
placeholder=""
:disabled="disabledState"
multiple
>
<el-option <el-option
v-for="item in applyArcticOptions" v-for="item in applyArcticOptions"
:key="item.value" :key="item.value"
:value="item.value" :value="item.value"
:label="item.label" :label="item.label"
></el-option> />
</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="" <el-select
:disabled="disabledState" multiple> v-model="form.SYCPXCLASS"
:popper-append-to-body="false"
placeholder=""
:disabled="disabledState"
multiple
>
<el-option <el-option
v-for="item in sycpxOptions" v-for="item in sycpxOptions"
:key="item.value" :key="item.value"
:value="item.value" :value="item.value"
:label="item.label" :label="item.label"
></el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS" <el-form-item
class="add-form-item form-item-disabled"> label="关联模块--乘用车vpps中文名称"
<el-input v-model="form.CYCVPPSCNBUSS" clearable disabled></el-input> prop="CYCVPPSCNBUSS"
class="add-form-item form-item-disabled"
>
<el-input v-model="form.CYCVPPSCNBUSS" clearable disabled />
</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-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>-->
@@ -274,26 +350,29 @@
<ProcessTitle v-show="verifySarStandard"> <ProcessTitle v-show="verifySarStandard">
<template slot="title">关联信息</template> <template slot="title">关联信息</template>
</ProcessTitle> </ProcessTitle>
<div class="prc-content-border" v-show="verifySarStandard"> <div v-show="verifySarStandard" class="prc-content-border">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="代替企标编号" prop="DTQBBHBUSS" class="add-form-item form-item-disabled"> <el-form-item label="代替企标编号" prop="DTQBBHBUSS" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.DTQBBHBUSS" :disabled="disabledState" v-model="form.DTQBBHBUSS"
:disabled="disabledState"
clearable clearable
></el-input> />
</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
v-model="form.CYBZ" :disabled="disabledState" v-model="form.CYBZ"
:disabled="disabledState"
clearable clearable
></el-input> />
</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
v-model="form.YYBZ" :disabled="disabledState" v-model="form.YYBZ"
:disabled="disabledState"
clearable clearable
></el-input> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@@ -308,25 +387,34 @@
v-model="form.XCSJBUSS" v-model="form.XCSJBUSS"
clearable clearable
disabled disabled
></el-input> />
</el-form-item> </el-form-item>
<el-form-item label="采标程度" prop="CYCD" class="add-form-item form-item-disabled"> <el-form-item label="采标程度" prop="CYCD" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" <el-select
v-model="form.CYCD" placeholder="" :disabled="disabledState"> v-model="form.CYCD"
:popper-append-to-body="false"
placeholder=""
:disabled="disabledState"
>
<el-option <el-option
v-for="item in cbcdOptions" v-for="item in cbcdOptions"
:key="item.value" :key="item.value"
:value="item.value" :value="item.value"
:label="item.label" :label="item.label"
></el-option> />
</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" <div
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> v-for="(item,index) in GLWJBUSSFileList"
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> v-if="GLWJBUSSFileList.length > 0"
<span style="margin-left: 7px;" v-if="item.id !== ''"> :key="index"
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px"
class="fileClass"
>
<span style="" :title="item.name" @click="handleFilePreview(item,'preview')"> {{ item.name }}</span>
<span v-if="item.id !== ''" style="margin-left: 7px;">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')" />
</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)">-->
@@ -340,10 +428,10 @@
<ProcessTitle v-show="opinionsShow"> <ProcessTitle v-show="opinionsShow">
<template slot="title">意见信息</template> <template slot="title">意见信息</template>
</ProcessTitle> </ProcessTitle>
<div class="effect" style="margin-bottom: 8px" v-show="opinionsShow"> <div v-show="opinionsShow" class="effect" style="margin-bottom: 8px">
<el-button type="primary" class="common-button-primary" size="mini" @click="exportAll">导出</el-button> <el-button type="primary" class="common-button-primary" size="mini" @click="exportAll">导出</el-button>
</div> </div>
<div class="prc-content-border" v-show="opinionsShow"> <div v-show="opinionsShow" class="prc-content-border">
<el-table <el-table
ref="selection" ref="selection"
tooltip-effect="dark" tooltip-effect="dark"
@@ -353,11 +441,13 @@
row-key="id" row-key="id"
:data="form.infoList" :data="form.infoList"
border border
default-expand-all> default-expand-all
>
<el-table-column <el-table-column
label="序号" label="序号"
min-width="6%" min-width="6%"
align="center"> align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.$index + 1 }} {{ scope.$index + 1 }}
</template> </template>
@@ -367,13 +457,13 @@
label="条款号" label="条款号"
min-width="8%" min-width="8%"
align="center" align="center"
> />
</el-table-column>
<el-table-column <el-table-column
prop="modelUpdBefore" prop="modelUpdBefore"
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;"-->
@@ -386,7 +476,8 @@
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;"-->
@@ -399,7 +490,8 @@
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;"-->
@@ -412,7 +504,8 @@
prop="zrDeptIdName" prop="zrDeptIdName"
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;"-->
@@ -425,7 +518,8 @@
prop="zrUserIdName" prop="zrUserIdName"
label="责任人" label="责任人"
min-width="14%" min-width="14%"
align="center"> align="center"
>
<!-- <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;"-->
@@ -437,7 +531,8 @@
<el-table-column <el-table-column
label="意见是否采纳" label="意见是否采纳"
min-width="15%" min-width="15%"
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-->
@@ -458,7 +553,8 @@
prop="opinionsAdoptedCont" prop="opinionsAdoptedCont"
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;"-->
@@ -471,11 +567,16 @@
<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" <div
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass"> v-for="(item,index) in summaryFileList"
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span> v-if="summaryFileList.length > 0"
<span style="margin-left: 7px;" v-if="item.id !== ''"> :key="index"
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i> style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px"
class="fileClass"
>
<span style="" :title="item.name" @click="handleFilePreview(item,'preview')"> {{ item.name }}</span>
<span v-if="item.id !== ''" style="margin-left: 7px;">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')" />
</span> </span>
</div> </div>
</el-form-item> </el-form-item>
@@ -488,14 +589,36 @@
<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,
}, },
filters: {
ellipsis (value) {
if (!value) return ''
if (value.length > 35) {
return value.slice(0, 35) + '...'
}
return value
},
ellipsis2 (value) {
if (!value) return ''
if (value.length > 12) {
return value.slice(0, 12) + '...'
}
return value
},
ellipsis22 (value) {
if (!value) return ''
if (value.length > 22) {
return value.slice(0, 22) + '...'
}
return value
}
},
props: { props: {
form: { form: {
type: Object, type: Object,
@@ -546,29 +669,6 @@
default: false default: false
}, },
}, },
filters: {
ellipsis(value) {
if (!value) return ''
if (value.length > 35) {
return value.slice(0, 35) + '...'
}
return value
},
ellipsis2(value) {
if (!value) return ''
if (value.length > 12) {
return value.slice(0, 12) + '...'
}
return value
},
ellipsis22(value) {
if (!value) return ''
if (value.length > 22) {
return value.slice(0, 22) + '...'
}
return value
}
},
data () { data () {
return { return {
opinionsAdoptedOptions: [ opinionsAdoptedOptions: [
@@ -629,28 +729,31 @@
} }
}, },
}, },
mounted () {
this.getDataAsync()
},
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(type === 'preview' && file.name == this.form.standName) { if(type === 'preview' && file.name == this.form.standName) {
let fileName = "" let fileName = ''
let fileNam2 = "" let fileNam2 = ''
if (this.form.standName && this.form.standName !== '') { if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx' fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName fileNam2 = this.form.standName
@@ -658,7 +761,7 @@
fileName = '企业标准.docx' fileName = '企业标准.docx'
fileNam2 = '企业标准' fileNam2 = '企业标准'
} }
let form = JSON.parse(JSON.stringify(this.form)) const form = JSON.parse(JSON.stringify(this.form))
form.standCode = '' form.standCode = ''
form.issueDate = '' form.issueDate = ''
if(file.id.startsWith('ATT')) { if(file.id.startsWith('ATT')) {
@@ -677,9 +780,9 @@
} }
}, },
handleFilePreviewOne (file, type) { handleFilePreviewOne (file, type) {
let id = "" let id = ''
let fileName = "" let fileName = ''
let fileNam2 = "" let fileNam2 = ''
if (this.form.standName && this.form.standName !== '') { if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx' fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName fileNam2 = this.form.standName
@@ -692,7 +795,7 @@
} else { } else {
id = file.response.data.id id = file.response.data.id
} }
let form = JSON.parse(JSON.stringify(this.form)) const form = JSON.parse(JSON.stringify(this.form))
form.standCode = '' form.standCode = ''
form.issueDate = '' form.issueDate = ''
if (type === 'preview') { if (type === 'preview') {
@@ -709,7 +812,6 @@
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label)
}) })
}, },
exportAll () { exportAll () {
const arr = JSON.stringify(this.form.infoList) const arr = JSON.stringify(this.form.infoList)
@@ -740,7 +842,6 @@
} }
}).catch(error => { }).catch(error => {
}) })
}, },
busVsFunc () { busVsFunc () {
this.$http.get('sarVppsTree/list', '', { this.$http.get('sarVppsTree/list', '', {
@@ -759,7 +860,7 @@
}) })
}, },
async getDataAsync () { async getDataAsync () {
let res = await this.getDicTypeListCode() const 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
@@ -802,9 +903,6 @@
}) })
}) })
}, },
},
mounted() {
this.getDataAsync()
} }
} }
</script> </script>