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,13 +441,15 @@
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>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -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,9 +531,10 @@
<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-->
<!-- style="margin-left: 0;margin-bottom:0;"--> <!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >--> <!-- >-->
@@ -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>
@@ -486,16 +587,38 @@
</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,
}, },
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,37 +669,14 @@
default: false default: false
}, },
}, },
filters: { data () {
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() {
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: [], // 文本状态
@@ -602,18 +702,18 @@
emergyKindOptions: [], // 能源种类下拉框 emergyKindOptions: [], // 能源种类下拉框
categoryConfigOptions: [], // 所属类别下拉框 categoryConfigOptions: [], // 所属类别下拉框
assemClassOptions: [], // 总成分类下拉框 assemClassOptions: [], // 总成分类下拉框
qcdwOptions: [],//起草单位下拉框 qcdwOptions: [], // 起草单位下拉框
qcrOptions: [],//起草人下拉框 qcrOptions: [], // 起草人下拉框
nylxOptions: [],//能源类型下拉框 nylxOptions: [], // 能源类型下拉框
syrzOptions: [],//适用认证下拉框 syrzOptions: [], // 适用认证下拉框
data: [], // 标准列表数据 data: [], // 标准列表数据
ListForm: {}, // 新增数据 ListForm: {}, // 新增数据
} }
}, },
computed: { computed: {
...mapGetters(['userInfo']) ...mapGetters([ 'userInfo' ])
}, },
watch:{ watch: {
'form.standName': { 'form.standName': {
handler: function (val) { handler: function (val) {
console.log(val); console.log(val);
@@ -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,10 +761,10 @@
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')) {
this.$preview(file.id) this.$preview(file.id)
}else { }else {
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form) this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
@@ -676,10 +779,10 @@
this.$preview(attId) this.$preview(attId)
} }
}, },
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') {
@@ -701,17 +804,16 @@
this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form) this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
} }
}, },
downloadFile(data) { 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)
}) })
}, },
exportAll() { exportAll () {
const arr = JSON.stringify(this.form.infoList) const arr = JSON.stringify(this.form.infoList)
axios({ axios({
method: 'post', method: 'post',
@@ -722,7 +824,7 @@
dataType: 'json', dataType: 'json',
responseType: 'blob', responseType: 'blob',
}).then(res => { }).then(res => {
const blob = new Blob([res.data]); const blob = new Blob([ res.data ]);
const fileName = '意见信息.xlsx'; const fileName = '意见信息.xlsx';
if ('download' in document.createElement('a')) { // 非IE下载 if ('download' in document.createElement('a')) { // 非IE下载
const elink = document.createElement('a'); const elink = document.createElement('a');
@@ -740,9 +842,8 @@
} }
}).catch(error => { }).catch(error => {
}) })
}, },
busVsFunc() { busVsFunc () {
this.$http.get('sarVppsTree/list', '', { this.$http.get('sarVppsTree/list', '', {
_this: this _this: this
}, res => { }, res => {
@@ -750,7 +851,7 @@
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 => {
@@ -758,8 +859,8 @@
this.modelOptions = res.data this.modelOptions = res.data
}) })
}, },
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
@@ -786,13 +887,13 @@
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
@@ -802,11 +903,8 @@
}) })
}) })
}, },
},
mounted() {
this.getDataAsync()
}
} }
}
</script> </script>
<style scoped> <style scoped>