恢复三大库详情的收藏按钮

This commit is contained in:
yanyizhou
2021-11-29 15:09:52 +08:00
parent ccbe352cf0
commit 797035ad88
3 changed files with 3082 additions and 3114 deletions
@@ -4,29 +4,29 @@
<!--title 标题--> <!--title 标题-->
<div class="details-header"> <div class="details-header">
<span>{{sarStandardsInfoEO.standCode}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span> <span>{{sarStandardsInfoEO.standCode}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span>
<!-- 之前的,先注掉--> <!-- 之前的,先注掉-->
<!-- <span>{{sarStandardsInfoEO.standCode}}-{{sarStandardsInfoEO.standYear}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span>--> <!-- <span>{{sarStandardsInfoEO.standCode}}-{{sarStandardsInfoEO.standYear}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span>-->
</div> </div>
<!--主体内容--> <!--主体内容-->
<div class="details-content" style="position: relative"> <div class="details-content" style="position: relative">
<div class="details-content-modular basic-information" style="border-top: 2px dashed #D1D1D1;"> <div class="details-content-modular basic-information" style="border-top: 2px dashed #D1D1D1;">
</div> </div>
<div <div
class="details-content-modular clearfix" class="details-content-modular clearfix"
v-for="(item, index) in dynamicFormField" v-for="(item, index) in dynamicFormField"
:key="index" :key="index"
v-if="item.isShowImp === '0'" v-if="item.isShowImp === '0'"
> >
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames" @change="handleChange">
<div v-if="item.label === '基础信息'" class="details-content-modular basic-information" <div v-if="item.label === '基础信息'" class="details-content-modular basic-information"
style="border-top:none;position: absolute;right: 36px;"> style="border-top:none;position: absolute;right: 36px;">
<div class="modular-header" style="height: 50px;"> <div class="modular-header" style="height: 50px;">
<div class="modular-header-btn"> <div class="modular-header-btn">
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" style="color: #f56c6c;" icon="el-icon-star-off" :loading="isSubmit"></el-button> <el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" icon="icon-collection" :loading="isSubmit"></el-button>
<el-button v-else @click="collectClick()" title="收藏" class="collection-btn" style="color: #4788c0;" icon="el-icon-star-off" :loading="isSubmit"></el-button> <el-button v-else @click="collectClick()" title="收藏" class="collection-btn" icon="el-icon-star-off" :loading="isSubmit"></el-button>
<el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新记录</el-button> <el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新记录</el-button>
</div>
</div> </div>
</div>
</div> </div>
<el-collapse-item :name="item.label" @click.native="handleChange1(item.label)"> <el-collapse-item :name="item.label" @click.native="handleChange1(item.label)">
<template slot="title"> <template slot="title">
@@ -52,32 +52,32 @@
<span> <span>
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName | ellipsis }}</a> <a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName | ellipsis }}</a>
<i <i
title="下载" title="下载"
@click="downloadFile(file.id)" @click="downloadFile(file.id)"
class="icon-download" class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : '9882f477aad895ec56a7464f3e9c0b11'" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : '9882f477aad895ec56a7464f3e9c0b11'"
/> />
<i <i
title="下载带水印" title="下载带水印"
v-show="file.fileSuffix === 'pdf' || file.fileSuffix === 'PDF'" v-show="file.fileSuffix === 'pdf' || file.fileSuffix === 'PDF'"
@click="downloadFileByWater(file.id, file.fileSuffix)" @click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2" class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '02fd6eff0537c283dd071683de10689f' : '9bab2662fbd9d0507b39be813371a597'" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '02fd6eff0537c283dd071683de10689f' : '9bab2662fbd9d0507b39be813371a597'"
/> />
<!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>--> <!-- <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>-->
</span> </span>
<!-- <el-button--> <!-- <el-button-->
<!-- v-if="child.attrField === itemNam "--> <!-- v-if="child.attrField === itemNam "-->
<!-- v-for="(itemNam,index) in itemExistList"--> <!-- v-for="(itemNam,index) in itemExistList"-->
<!-- :key="index"--> <!-- :key="index"-->
<!-- @click="showItemsModel(child.attrField)"--> <!-- @click="showItemsModel(child.attrField)"-->
<!-- class="decomposition-btn"--> <!-- class="decomposition-btn"-->
<!-- style="right:62px"--> <!-- style="right:62px"-->
<!-- icon="icon-separate"--> <!-- icon="icon-separate"-->
<!-- >标准分解单--> <!-- >标准分解单-->
<!-- </el-button>--> <!-- </el-button>-->
<el-button v-if="child.value.length > 1" style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);" <el-button v-if="child.value.length > 1" style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"
class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">更多</el-button> class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">更多</el-button>
</template> </template>
<template v-if="child.value === null" >-</template> <template v-if="child.value === null" >-</template>
</p> </p>
@@ -92,8 +92,8 @@
<p class="half"><label style=" margin-right: 157px;">发布日期</label><span>{{ sarStandardsInfoEO.issueTime || '-' }}</span></p> <p class="half"><label style=" margin-right: 157px;">发布日期</label><span>{{ sarStandardsInfoEO.issueTime || '-' }}</span></p>
<p class="half" style=""><label style=" margin-right: 122px;">标准实施日期</label><span>{{ sarStandardsInfoEO.putTime || '-' }}</span></p> <p class="half" style=""><label style=" margin-right: 122px;">标准实施日期</label><span>{{ sarStandardsInfoEO.putTime || '-' }}</span></p>
<template <template
v-for="(child, childIndex) in item.child" v-for="(child, childIndex) in item.child"
v-if="child.isShowImp === '0'" v-if="child.isShowImp === '0'"
> >
<p class="half"> <p class="half">
<label style=" margin-right: 157px;" :title="child.attrName">{{child.attrName}}</label> <label style=" margin-right: 157px;" :title="child.attrName">{{child.attrName}}</label>
@@ -111,25 +111,25 @@
</div> </div>
</template> </template>
<template <template
v-for="(child, childIndex) in item.child" v-for="(child, childIndex) in item.child"
v-if="child.isShowImp === '0' && item.label !== '基础信息'" v-if="child.isShowImp === '0' && item.label !== '基础信息'"
> >
<div <div
:key="childIndex" :key="childIndex"
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
> >
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
<span <span
v-if="child.attrField === 'ZYQCR'" v-if="child.attrField === 'ZYQCR'"
class="modular-content-p-val clearfix" class="modular-content-p-val clearfix"
:title="child.value || '-'" :title="child.value || '-'"
> >
<template v-if="child.value"> <template v-if="child.value">
{{ child.value }} {{ child.value }}
<put-question-button <put-question-button
style="float: right;" style="float: right;"
:resId="sarStandardsInfoEO.id" :resId="sarStandardsInfoEO.id"
:resType="saveStandType" :resType="saveStandType"
></put-question-button> ></put-question-button>
</template> </template>
<template v-else> <template v-else>
@@ -155,9 +155,9 @@
<!--相关计划--> <!--相关计划-->
<template v-else-if="child.attrField === 'XGJH' && child.value"> <template v-else-if="child.attrField === 'XGJH' && child.value">
<span <span
v-if="child.value.length === 0" v-if="child.value.length === 0"
class="modular-content-p-val" class="modular-content-p-val"
:title="'-'" :title="'-'"
> >
{{ '-' }} {{ '-' }}
</span> </span>
@@ -168,24 +168,24 @@
</p> </p>
</template> </template>
<span <span
v-else-if="child.attrField === 'SVPPS'" v-else-if="child.attrField === 'SVPPS'"
class="modular-content-p-val" class="modular-content-p-val"
:title="child.tips || '-'" :title="child.tips || '-'"
> >
{{ !child.value || child.value === 'null' ? '-' : child.value }} {{ !child.value || child.value === 'null' ? '-' : child.value }}
</span> </span>
<span <span
v-else-if="child.attrType !== 'FILE'" v-else-if="child.attrType !== 'FILE'"
class="modular-content-p-val" class="modular-content-p-val"
:title="child.value || '-'" :title="child.value || '-'"
> >
{{ child.value || '-' }} {{ child.value || '-' }}
</span> </span>
<div v-else class="modular-content-p-flies"> <div v-else class="modular-content-p-flies">
<p <p
class="files-title" class="files-title"
v-for="(file, fileIndex) in child.value" v-for="(file, fileIndex) in child.value"
:key="fileIndex" :key="fileIndex"
> >
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">{{ file.oldFileName }}</a> <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">{{ file.oldFileName }}</a>
<i title="下载" @click="downloadFile(file.id)" class="icon-download" v-btn-permission="'9882f477aad895ec56a7464f3e9c0b11'"/> <i title="下载" @click="downloadFile(file.id)" class="icon-download" v-btn-permission="'9882f477aad895ec56a7464f3e9c0b11'"/>
@@ -206,15 +206,15 @@
</el-collapse> </el-collapse>
</div> </div>
</div> </div>
<!-- <div v-show="!isMoreAwayBtn" class="more" @click="moreClick">更多<img src="@/assets/images/shangqi/img/more.png"></div>--> <!-- <div v-show="!isMoreAwayBtn" class="more" @click="moreClick">更多<img src="@/assets/images/shangqi/img/more.png"></div>-->
<!-- <div v-show="isMoreAwayBtn" class="put-away" @click="putAwayClick">收起<img src="@/assets/images/shangqi/img/more.png"></div>--> <!-- <div v-show="isMoreAwayBtn" class="put-away" @click="putAwayClick">收起<img src="@/assets/images/shangqi/img/more.png"></div>-->
<!--查看标准条目列表--> <!--查看标准条目列表-->
<el-drawer <el-drawer
title="查看分解单" title="查看分解单"
:wrapperClosable="false" :wrapperClosable="false"
:visible.sync="modalStandItemflag" :visible.sync="modalStandItemflag"
size="80%" size="80%"
class="not-footer-drawer" class="not-footer-drawer"
> >
<div class="search-area"> <div class="search-area">
<div class="left"> <div class="left">
@@ -223,19 +223,19 @@
<el-input size="small" v-model="standItemSearch.orgName" v-show="false" style="height: 32px"/> <el-input size="small" v-model="standItemSearch.orgName" v-show="false" style="height: 32px"/>
<el-input size="small" v-model="standItemSearch.responsibleUnit" v-show="false" style="height: 32px"/> <el-input size="small" v-model="standItemSearch.responsibleUnit" v-show="false" style="height: 32px"/>
<el-popover <el-popover
placement="bottom" placement="bottom"
popper-class="user-dept-popper" popper-class="user-dept-popper"
trigger="click" trigger="click"
:value="false" :value="false"
> >
<el-input <el-input
v-model="standItemSearch.orgName" v-model="standItemSearch.orgName"
slot="reference" slot="reference"
placeholder="请选择部门" placeholder="请选择部门"
readonly readonly
id="searchInlandDeptBtn" id="searchInlandDeptBtn"
@on-change="inputChange" @on-change="inputChange"
style="margin-right: 0;"/> style="margin-right: 0;"/>
<div class="api"> <div class="api">
<laws-tree :zNodes="searchInlandNodes" <laws-tree :zNodes="searchInlandNodes"
treeDivId="domesticTree1" treeDivId="domesticTree1"
@@ -251,25 +251,25 @@
<el-form-item class="search-item"> <el-form-item class="search-item">
<el-input v-model="standItemSearch.nameOrRequest" size="small" placeholder="根据条款名称/内容查找" clearable maxlength="100"></el-input> <el-input v-model="standItemSearch.nameOrRequest" size="small" placeholder="根据条款名称/内容查找" clearable maxlength="100"></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item class="search-item">--> <!-- <el-form-item class="search-item">-->
<!-- <el-input v-model="standItemSearch.parts" size="small" placeholder="根据涉及零部件查找" clearable maxlength="100"></el-input>--> <!-- <el-input v-model="standItemSearch.parts" size="small" placeholder="根据涉及零部件查找" clearable maxlength="100"></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
<el-button <el-button
:loading="searching" :loading="searching"
icon="el-icon-search" icon="el-icon-search"
type="primary" type="primary"
round round
class="common-button-primary" class="common-button-primary"
@click="searchSarStandItems"> @click="searchSarStandItems">
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
<el-button <el-button
class="common-button-default" class="common-button-default"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
@click="clearAllSearch" @click="clearAllSearch"
round> round>
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -277,13 +277,13 @@
</div> </div>
<div class="action-bar"> <div class="action-bar">
<el-button <el-button
round round
type="primary" type="primary"
class="common-button-primary add-button" class="common-button-primary add-button"
:loading="searching" :loading="searching"
icon="add" icon="add"
@click="addItemModal" @click="addItemModal"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '84a37ea1e1' : '3D87NJR8N3'">新增</el-button> v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '84a37ea1e1' : '3D87NJR8N3'">新增</el-button>
<el-button class="common-button-default" :loading="searching" @click="uploadImportModal">模板下载</el-button> <el-button class="common-button-default" :loading="searching" @click="uploadImportModal">模板下载</el-button>
<el-button class="common-button-default in-button" :loading="searching" icon="in" @click="addImportModal(2)" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '9ca97b05b2' : '6JM97X9W9C'">导入</el-button> <el-button class="common-button-default in-button" :loading="searching" icon="in" @click="addImportModal(2)" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '9ca97b05b2' : '6JM97X9W9C'">导入</el-button>
<el-button class="common-button-default export-button" icon="export" @click="exportStandardItem">导出</el-button> <el-button class="common-button-default export-button" icon="export" @click="exportStandardItem">导出</el-button>
@@ -291,73 +291,73 @@
</div> </div>
<div class="content"> <div class="content">
<el-table <el-table
ref="multipleTable" ref="multipleTable"
:data="standItemList" :data="standItemList"
tooltip-effect="dark" tooltip-effect="dark"
border border
style="width: 100%" style="width: 100%"
:height="tableHeight" :height="tableHeight"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectAllStand"> @selection-change="selectAllStand">
<el-table-column <el-table-column
type="selection" type="selection"
width="55" width="55"
fixed="left" fixed="left"
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itemsNum" prop="itemsNum"
label="条款号" label="条款号"
width="150" width="150"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itemsName" prop="itemsName"
label="条款名称" label="条款名称"
width="150" width="150"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="termsConditions" prop="termsConditions"
label="内容简介" label="内容简介"
width="250" width="250"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="responsibleUnitShow" prop="responsibleUnitShow"
label="责任部门" label="责任部门"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="fo" prop="fo"
label="FO" label="FO"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="dutyEngineerShow" prop="dutyEngineerShow"
label="责任工程师" label="责任工程师"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="svpps" prop="svpps"
label="SVPPS" label="SVPPS"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="applyArcticShow" prop="applyArcticShow"
label="适用车辆类型" label="适用车辆类型"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="claimTypeShow" prop="claimTypeShow"
label="要求类型" label="要求类型"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="busStandCover" prop="busStandCover"
label="覆盖关系" label="覆盖关系"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="50" fixed="right"> <el-table-column label="操作" align="center" width="50" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -380,18 +380,18 @@
</el-drawer> </el-drawer>
<!--新增标准条目--> <!--新增标准条目-->
<el-drawer <el-drawer
:title="itemModalTitle" :title="itemModalTitle"
:wrapperClosable="false" :wrapperClosable="false"
:visible.sync="modalItemaddShowflag" :visible.sync="modalItemaddShowflag"
size="800px" size="800px"
> >
<div class="demo-drawer-content"> <div class="demo-drawer-content">
<el-form <el-form
ref="sarStandardsItemForm" ref="sarStandardsItemForm"
:model="standItemEO" :model="standItemEO"
class="label-input-form" class="label-input-form"
:rules="sarStandardItemRules" :rules="sarStandardItemRules"
label-width="150px" label-width="150px"
> >
<el-form-item label="条款号" prop="itemsNum" class="add-form-item"> <el-form-item label="条款号" prop="itemsNum" class="add-form-item">
<el-input v-model="standItemEO.itemsNum" :disabled="itemFormdisableflag" placeholder="请输入内容"></el-input> <el-input v-model="standItemEO.itemsNum" :disabled="itemFormdisableflag" placeholder="请输入内容"></el-input>
@@ -403,33 +403,33 @@
<el-input v-model="standItemEO.termsConditions" :disabled="itemFormdisableflag" placeholder="请输入内容"/> <el-input v-model="standItemEO.termsConditions" :disabled="itemFormdisableflag" placeholder="请输入内容"/>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="责任部门" label="责任部门"
prop="responsibleUnit" prop="responsibleUnit"
class="add-form-item" class="add-form-item"
> >
<el-input v-model="standItemEO.responsibleUnit" v-show="false" /> <el-input v-model="standItemEO.responsibleUnit" v-show="false" />
<el-popover <el-popover
placement="bottom" placement="bottom"
popper-class="user-dept-popper" popper-class="user-dept-popper"
trigger="click" trigger="click"
:value="false" :value="false"
> >
<el-input <el-input
slot="reference" slot="reference"
v-model="standItemEO.orgName" v-model="standItemEO.orgName"
placeholder="根据责任部门查找" placeholder="根据责任部门查找"
readonly readonly
clearable clearable
id="deptBtnS" id="deptBtnS"
/> />
<div class="api"> <div class="api">
<laws-tree <laws-tree
:zNodes="zNodesSItem" :zNodes="zNodesSItem"
treeDivId="zNodesSItem" treeDivId="zNodesSItem"
deptSelect deptSelect
showRMenu showRMenu
@treeDblClick="treeDblClickS" @treeDblClick="treeDblClickS"
class="ztree" style="width: 200px;height: 400px;overflow: auto"> class="ztree" style="width: 200px;height: 400px;overflow: auto">
</laws-tree> </laws-tree>
</div> </div>
</el-popover> </el-popover>
@@ -441,11 +441,11 @@
<el-input v-model="standItemEO.dutyEngineer" v-show="false"></el-input> <el-input v-model="standItemEO.dutyEngineer" v-show="false"></el-input>
<el-popover placement="bottom" popper-class="user-dept-popper" trigger="click"> <el-popover placement="bottom" popper-class="user-dept-popper" trigger="click">
<el-input <el-input
v-model="standItemEO.dutyEngineerShow" v-model="standItemEO.dutyEngineerShow"
placeholder="请选择责任工程师" placeholder="请选择责任工程师"
readonly readonly
id="enginBtnS" id="enginBtnS"
slot="reference" slot="reference"
/> />
<div class="api"> <div class="api">
<dept-tree treeDivId="zNodesSItemEngin" <dept-tree treeDivId="zNodesSItemEngin"
@@ -465,20 +465,20 @@
<el-form-item label="适用车辆类型" prop="applyArctic" class="add-form-item"> <el-form-item label="适用车辆类型" prop="applyArctic" class="add-form-item">
<el-select v-model="standItemEO.applyArctic" multiple placeholder="请选择" :filterable="true"> <el-select v-model="standItemEO.applyArctic" multiple placeholder="请选择" :filterable="true">
<el-option <el-option
v-for="opt in applyArcticOptions" v-for="opt in applyArcticOptions"
:key="opt.value" :key="opt.value"
:label="opt.label" :label="opt.label"
:value="opt.value"> :value="opt.value">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="要求类型" prop="claimType" class="add-form-item"> <el-form-item label="要求类型" prop="claimType" class="add-form-item">
<el-select v-model="standItemEO.claimType" placeholder="请选择" :filterable="true"> <el-select v-model="standItemEO.claimType" placeholder="请选择" :filterable="true">
<el-option <el-option
v-for="opt in requestOptions" v-for="opt in requestOptions"
:key="opt.value" :key="opt.value"
:label="opt.label" :label="opt.label"
:value="opt.value"> :value="opt.value">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@@ -495,17 +495,17 @@
<!--导入模态窗--> <!--导入模态窗-->
<el-dialog width="400px" :visible.sync="importModalshowflag" title="导入文件" :footer-hide="true"> <el-dialog width="400px" :visible.sync="importModalshowflag" title="导入文件" :footer-hide="true">
<el-upload <el-upload
multiple multiple
drag drag
:show-file-list="showUploadlist" :show-file-list="showUploadlist"
:on-success="importFileSuccess" :on-success="importFileSuccess"
:on-remove="removeOneFile" :on-remove="removeOneFile"
:before-upload="beforeUpload" :before-upload="beforeUpload"
:action="importExcelUrl" :action="importExcelUrl"
:file-list="defaultFileList" :file-list="defaultFileList"
accept=".xlsx" accept=".xlsx"
name="file" name="file"
ref="importFileAboutStand"> ref="importFileAboutStand">
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
<p>点击或拖拽上传文件</p> <p>点击或拖拽上传文件</p>
@@ -514,10 +514,10 @@
</el-dialog> </el-dialog>
<!--分解单-查看 (标准拆分-属性)--> <!--分解单-查看 (标准拆分-属性)-->
<el-drawer <el-drawer
:wrapperClosable="false" :wrapperClosable="false"
size="800px" size="800px"
title="查看属性信息" title="查看属性信息"
:visible.sync="showItemInfoModal" :visible.sync="showItemInfoModal"
> >
<div class="see-drawer-content"> <div class="see-drawer-content">
<div class="see-drawer-div"> <div class="see-drawer-div">
@@ -564,20 +564,20 @@
</el-drawer> </el-drawer>
<!-- 更新LOG --> <!-- 更新LOG -->
<el-dialog <el-dialog
title="更新LOG" title="更新LOG"
:visible.sync="relateDialog" :visible.sync="relateDialog"
width="60%" width="60%"
class="relateClass" class="relateClass"
:before-close="relateDialogClose"> :before-close="relateDialogClose">
<div <div
v-for="(item, index) in relateNowList" v-for="(item, index) in relateNowList"
:key="index" :key="index"
v-if="relateNowList" v-if="relateNowList"
style="margin-bottom: 10px;line-height: 20px" style="margin-bottom: 10px;line-height: 20px"
> >
{{index+1}}. {{item.creationUserName}} {{item.creationTime}} {{item.content}} {{index+1}}. {{item.creationUserName}} {{item.creationTime}} {{item.content}}
<div v-if="relateNowList.length >1"> <div v-if="relateNowList.length >1">
<el-divider></el-divider> <el-divider></el-divider>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
@@ -585,30 +585,30 @@
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="更多发布稿" title="更多发布稿"
:visible.sync="relateDialog1" :visible.sync="relateDialog1"
class="relateClass" class="relateClass"
width="40%" width="40%"
:before-close="relateDialogClose1"> :before-close="relateDialogClose1">
<div <div
v-for="(file, index) in relateNowList1" v-for="(file, index) in relateNowList1"
:key="index" :key="index"
v-if="relateNowList1" v-if="relateNowList1"
style="margin-bottom: 10px;line-height: 20px;max-height: 300px" style="margin-bottom: 10px;line-height: 20px;max-height: 300px"
> >
{{ index + 1 }}. {{ index + 1 }}.
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName }}</a> <a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName }}</a>
<i <i
title="下载" title="下载"
@click="downloadFile(file.id)" @click="downloadFile(file.id)"
class="icon-download" class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : '9882f477aad895ec56a7464f3e9c0b11'" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : '9882f477aad895ec56a7464f3e9c0b11'"
/> />
<i <i
title="下载带水印" title="下载带水印"
@click="downloadFileByWater(file.id, file.fileSuffix)" @click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2" class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '02fd6eff0537c283dd071683de10689f' : '9bab2662fbd9d0507b39be813371a597'" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '02fd6eff0537c283dd071683de10689f' : '9bab2662fbd9d0507b39be813371a597'"
/> />
<div v-if="relateNowList.length >1"> <div v-if="relateNowList.length >1">
<el-divider></el-divider> <el-divider></el-divider>
@@ -1205,8 +1205,8 @@ export default {
}, },
handleChange1(val) { handleChange1(val) {
if(val && val === '基础信息'){ if(val && val === '基础信息'){
this.activeState = true this.activeState = true
} }
}, },
getPlanStatusName(status) { getPlanStatusName(status) {
switch (status) { switch (status) {
@@ -1243,10 +1243,10 @@ export default {
let levelName = "-"; let levelName = "-";
if (this.mjOptions) { if (this.mjOptions) {
this.mjOptions.map((item) => { this.mjOptions.map((item) => {
if (item.value === standLevel) { if (item.value === standLevel) {
levelName = item.label; levelName = item.label;
} }
}); });
} }
return levelName; return levelName;
}, },
@@ -1518,24 +1518,24 @@ export default {
// 获取组织机构数据 // 获取组织机构数据
getOrgTreeSource () { getOrgTreeSource () {
this.$http.get('sys/org/getTree', {}, {_this: this}, this.$http.get('sys/org/getTree', {}, {_this: this},
res => { res => {
if (res.ok) { if (res.ok) {
let treeNode = [] let treeNode = []
res.data.map((item, index) => { res.data.map((item, index) => {
let treeItem = {} let treeItem = {}
for (let key in item) { for (let key in item) {
if (key === 'orgName') { if (key === 'orgName') {
treeItem.name = item[key] treeItem.name = item[key]
} else { } else {
treeItem[key] = item[key] treeItem[key] = item[key]
}
} }
} treeNode[index] = treeItem
treeNode[index] = treeItem })
}) this.zNodesSItem = treeNode
this.zNodesSItem = treeNode this.searchInlandNodes = treeNode
this.searchInlandNodes = treeNode }
} }, e => {})
}, e => {})
}, },
// 查询相近标准 // 查询相近标准
selectCloseStand (id) { selectCloseStand (id) {
@@ -1948,19 +1948,19 @@ export default {
getAddFormFieldList (isEdit) { getAddFormFieldList (isEdit) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$http.get('lawss/sarStandAttrDetails/list', {}, {_this: this}, this.$http.get('lawss/sarStandAttrDetails/list', {}, {_this: this},
res => { res => {
if (res.ok) { if (res.ok) {
// const { data: { STAND: data } } = res // const { data: { STAND: data } } = res
const { data = {} } = res const { data = {} } = res
this.formFieldListData = data[this.sarType] this.formFieldListData = data[this.sarType]
// this.resolveFormFieldList() // this.resolveFormFieldList()
resolve(data[this.sarType]) resolve(data[this.sarType])
} else { } else {
reject(res) reject(res)
} }
}, e => { }, e => {
reject(e) reject(e)
}) })
}) })
}, },
// 点击更多按钮事件 // 点击更多按钮事件
@@ -2204,10 +2204,10 @@ export default {
for (let i = 0; i < displayLocation.length; i++) { for (let i = 0; i < displayLocation.length; i++) {
// sss // sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){ if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== ''); const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){ if(childList.length === 0){
displayLocation.splice(i,1) displayLocation.splice(i,1)
} }
} }
} }
@@ -2369,6 +2369,7 @@ export default {
padding: 0; padding: 0;
border: none; border: none;
i { i {
color: #F2CB51;
font-size: 18px; font-size: 18px;
width: 18px; width: 18px;
height: 18px; height: 18px;
+207 -206
View File
@@ -10,18 +10,18 @@
<div class="details-content-modular basic-information" style="border-top: 2px dashed #D1D1D1;"> <div class="details-content-modular basic-information" style="border-top: 2px dashed #D1D1D1;">
</div> </div>
<div <div
class="details-content-modular clearfix" class="details-content-modular clearfix"
v-for="(item, index) in dynamicFormField" v-for="(item, index) in dynamicFormField"
:key="index" :key="index"
v-if="item.isShowImp === '0'" v-if="item.isShowImp === '0'"
> >
<el-collapse v-model="activeNames" @change="handleChange"> <el-collapse v-model="activeNames" @change="handleChange">
<div v-if="item.label === '基础信息'" class="details-content-modular basic-information" <div v-if="item.label === '基础信息'" class="details-content-modular basic-information"
style="border-top:none;position: absolute;right: 36px;border: none"> style="border-top:none;position: absolute;right: 36px;border: none">
<div class="modular-header" style="height: 50px;"> <div class="modular-header" style="height: 50px;">
<div class="modular-header-btn"> <div class="modular-header-btn">
<el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" style="color: #f56c6c;" icon="el-icon-star-off" :loading="isSubmit"></el-button> <el-button v-if="sarStandardsInfoEO.collectId" @click="collectClick(sarStandardsInfoEO.collectId)" title="取消收藏" class="collection-btn" icon="icon-collection" :loading="isSubmit"></el-button>
<el-button v-else @click="collectClick()" title="收藏" class="collection-btn" style="color: #4788c0;" icon="el-icon-star-off" :loading="isSubmit"></el-button> <el-button v-else @click="collectClick()" title="收藏" class="collection-btn" icon="el-icon-star-off" :loading="isSubmit"></el-button>
<el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新LOG</el-button> <el-button class="relation-btn" icon="icon-relation" @click="relateEvent()">更新LOG</el-button>
</div> </div>
</div> </div>
@@ -72,25 +72,25 @@
</div> </div>
</template> </template>
<template <template
v-for="(child, childIndex) in item.child" v-for="(child, childIndex) in item.child"
v-if="child.isShowImp === '0'" v-if="child.isShowImp === '0'"
> >
<div <div
:key="childIndex" :key="childIndex"
:class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
> >
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
<span <span
v-if="child.attrField === 'ZYQCR'" v-if="child.attrField === 'ZYQCR'"
class="modular-content-p-val clearfix" class="modular-content-p-val clearfix"
:title="child.value || '-'" :title="child.value || '-'"
> >
<template v-if="child.value"> <template v-if="child.value">
{{ child.value }} {{ child.value }}
<put-question-button <put-question-button
style="float: right;" style="float: right;"
:resId="sarStandardsInfoEO.id" :resId="sarStandardsInfoEO.id"
:resType="saveStandType" :resType="saveStandType"
></put-question-button> ></put-question-button>
</template> </template>
<template v-else> <template v-else>
@@ -116,9 +116,9 @@
<!--相关计划--> <!--相关计划-->
<template v-else-if="child.attrField === 'XGJH' && child.value"> <template v-else-if="child.attrField === 'XGJH' && child.value">
<span <span
v-if="child.value.length === 0" v-if="child.value.length === 0"
class="modular-content-p-val" class="modular-content-p-val"
:title="'-'" :title="'-'"
> >
{{ '-' }} {{ '-' }}
</span> </span>
@@ -129,24 +129,24 @@
</p> </p>
</template> </template>
<span <span
v-else-if="child.attrField === 'SVPPS'" v-else-if="child.attrField === 'SVPPS'"
class="modular-content-p-val" class="modular-content-p-val"
:title="child.tips || '-'" :title="child.tips || '-'"
> >
{{ !child.value || child.value === 'null' ? '-' : child.value }} {{ !child.value || child.value === 'null' ? '-' : child.value }}
</span> </span>
<span <span
v-else-if="child.attrType !== 'FILE'" v-else-if="child.attrType !== 'FILE'"
class="modular-content-p-val" class="modular-content-p-val"
:title="child.value || '-'" :title="child.value || '-'"
> >
{{ child.value || '-' }} {{ child.value || '-' }}
</span> </span>
<div v-else class="modular-content-p-flies"> <div v-else class="modular-content-p-flies">
<p <p
class="files-title" class="files-title"
v-for="(file, fileIndex) in child.value" v-for="(file, fileIndex) in child.value"
:key="fileIndex" :key="fileIndex"
> >
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">{{ file.oldFileName }}</a> <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">{{ file.oldFileName }}</a>
<i title="下载" @click="downloadFile(file.id)" class="icon-download" v-btn-permission="''"/> <i title="下载" @click="downloadFile(file.id)" class="icon-download" v-btn-permission="''"/>
@@ -171,11 +171,11 @@
<!-- <div v-show="isMoreAwayBtn" class="put-away" @click="putAwayClick">收起<img src="@/assets/images/shangqi/img/more.png"></div>--> <!-- <div v-show="isMoreAwayBtn" class="put-away" @click="putAwayClick">收起<img src="@/assets/images/shangqi/img/more.png"></div>-->
<!--查看标准条目列表--> <!--查看标准条目列表-->
<el-drawer <el-drawer
title="查看分解单" title="查看分解单"
:wrapperClosable="false" :wrapperClosable="false"
:visible.sync="modalStandItemflag" :visible.sync="modalStandItemflag"
size="80%" size="80%"
class="not-footer-drawer" class="not-footer-drawer"
> >
<div class="search-area"> <div class="search-area">
<div class="left"> <div class="left">
@@ -184,19 +184,19 @@
<el-input size="small" v-model="standItemSearch.orgName" v-show="false" style="height: 32px"/> <el-input size="small" v-model="standItemSearch.orgName" v-show="false" style="height: 32px"/>
<el-input size="small" v-model="standItemSearch.responsibleUnit" v-show="false" style="height: 32px"/> <el-input size="small" v-model="standItemSearch.responsibleUnit" v-show="false" style="height: 32px"/>
<el-popover <el-popover
placement="bottom" placement="bottom"
popper-class="user-dept-popper" popper-class="user-dept-popper"
trigger="click" trigger="click"
:value="false" :value="false"
> >
<el-input <el-input
v-model="standItemSearch.orgName" v-model="standItemSearch.orgName"
slot="reference" slot="reference"
placeholder="请选择部门" placeholder="请选择部门"
readonly readonly
id="searchInlandDeptBtn" id="searchInlandDeptBtn"
@on-change="inputChange" @on-change="inputChange"
style="margin-right: 0;"/> style="margin-right: 0;"/>
<div class="api"> <div class="api">
<laws-tree :zNodes="searchInlandNodes" <laws-tree :zNodes="searchInlandNodes"
treeDivId="domesticTree1" treeDivId="domesticTree1"
@@ -212,25 +212,25 @@
<el-form-item class="search-item"> <el-form-item class="search-item">
<el-input v-model="standItemSearch.nameOrRequest" size="small" placeholder="根据条款名称/内容查找" clearable maxlength="100"></el-input> <el-input v-model="standItemSearch.nameOrRequest" size="small" placeholder="根据条款名称/内容查找" clearable maxlength="100"></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item class="search-item">--> <!-- <el-form-item class="search-item">-->
<!-- <el-input v-model="standItemSearch.parts" size="small" placeholder="根据涉及零部件查找" clearable maxlength="100"></el-input>--> <!-- <el-input v-model="standItemSearch.parts" size="small" placeholder="根据涉及零部件查找" clearable maxlength="100"></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
<el-button <el-button
:loading="searching" :loading="searching"
icon="el-icon-search" icon="el-icon-search"
type="primary" type="primary"
round round
class="common-button-primary" class="common-button-primary"
@click="searchSarStandItems"> @click="searchSarStandItems">
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
<el-button <el-button
class="common-button-default" class="common-button-default"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
@click="clearAllSearch" @click="clearAllSearch"
round> round>
</el-button> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -238,13 +238,13 @@
</div> </div>
<div class="action-bar"> <div class="action-bar">
<el-button <el-button
round round
type="primary" type="primary"
class="common-button-primary add-button" class="common-button-primary add-button"
:loading="searching" :loading="searching"
icon="add" icon="add"
@click="addItemModal" @click="addItemModal"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '84a37ea1e1' : '3D87NJR8N3'">新增</el-button> v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '84a37ea1e1' : '3D87NJR8N3'">新增</el-button>
<el-button class="common-button-default" :loading="searching" @click="uploadImportModal">模板下载</el-button> <el-button class="common-button-default" :loading="searching" @click="uploadImportModal">模板下载</el-button>
<el-button class="common-button-default in-button" :loading="searching" icon="in" @click="addImportModal(2)" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '9ca97b05b2' : '6JM97X9W9C'">导入</el-button> <el-button class="common-button-default in-button" :loading="searching" icon="in" @click="addImportModal(2)" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '9ca97b05b2' : '6JM97X9W9C'">导入</el-button>
<el-button class="common-button-default export-button" icon="export" @click="exportStandardItem">导出</el-button> <el-button class="common-button-default export-button" icon="export" @click="exportStandardItem">导出</el-button>
@@ -252,73 +252,73 @@
</div> </div>
<div class="content"> <div class="content">
<el-table <el-table
ref="multipleTable" ref="multipleTable"
:data="standItemList" :data="standItemList"
tooltip-effect="dark" tooltip-effect="dark"
border border
style="width: 100%" style="width: 100%"
:height="tableHeight" :height="tableHeight"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectAllStand"> @selection-change="selectAllStand">
<el-table-column <el-table-column
type="selection" type="selection"
width="55" width="55"
fixed="left" fixed="left"
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itemsNum" prop="itemsNum"
label="条款号" label="条款号"
width="150" width="150"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itemsName" prop="itemsName"
label="条款名称" label="条款名称"
width="150" width="150"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="termsConditions" prop="termsConditions"
label="内容简介" label="内容简介"
width="250" width="250"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="responsibleUnitShow" prop="responsibleUnitShow"
label="责任部门" label="责任部门"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="fo" prop="fo"
label="FO" label="FO"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="dutyEngineerShow" prop="dutyEngineerShow"
label="责任工程师" label="责任工程师"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="svpps" prop="svpps"
label="SVPPS" label="SVPPS"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="applyArcticShow" prop="applyArcticShow"
label="适用车辆类型" label="适用车辆类型"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="claimTypeShow" prop="claimTypeShow"
label="要求类型" label="要求类型"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="busStandCover" prop="busStandCover"
label="覆盖关系" label="覆盖关系"
width="150"> width="150">
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="50" fixed="right"> <el-table-column label="操作" align="center" width="50" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -341,18 +341,18 @@
</el-drawer> </el-drawer>
<!--新增标准条目--> <!--新增标准条目-->
<el-drawer <el-drawer
:title="itemModalTitle" :title="itemModalTitle"
:wrapperClosable="false" :wrapperClosable="false"
:visible.sync="modalItemaddShowflag" :visible.sync="modalItemaddShowflag"
size="800px" size="800px"
> >
<div class="demo-drawer-content"> <div class="demo-drawer-content">
<el-form <el-form
ref="sarStandardsItemForm" ref="sarStandardsItemForm"
:model="standItemEO" :model="standItemEO"
class="label-input-form" class="label-input-form"
:rules="sarStandardItemRules" :rules="sarStandardItemRules"
label-width="150px" label-width="150px"
> >
<el-form-item label="条款号" prop="itemsNum" class="add-form-item"> <el-form-item label="条款号" prop="itemsNum" class="add-form-item">
<el-input v-model="standItemEO.itemsNum" :disabled="itemFormdisableflag" placeholder="请输入内容"></el-input> <el-input v-model="standItemEO.itemsNum" :disabled="itemFormdisableflag" placeholder="请输入内容"></el-input>
@@ -364,33 +364,33 @@
<el-input v-model="standItemEO.termsConditions" :disabled="itemFormdisableflag" placeholder="请输入内容"/> <el-input v-model="standItemEO.termsConditions" :disabled="itemFormdisableflag" placeholder="请输入内容"/>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="责任部门" label="责任部门"
prop="responsibleUnit" prop="responsibleUnit"
class="add-form-item" class="add-form-item"
> >
<el-input v-model="standItemEO.responsibleUnit" v-show="false" /> <el-input v-model="standItemEO.responsibleUnit" v-show="false" />
<el-popover <el-popover
placement="bottom" placement="bottom"
popper-class="user-dept-popper" popper-class="user-dept-popper"
trigger="click" trigger="click"
:value="false" :value="false"
> >
<el-input <el-input
slot="reference" slot="reference"
v-model="standItemEO.orgName" v-model="standItemEO.orgName"
placeholder="根据责任部门查找" placeholder="根据责任部门查找"
readonly readonly
clearable clearable
id="deptBtnS" id="deptBtnS"
/> />
<div class="api"> <div class="api">
<laws-tree <laws-tree
:zNodes="zNodesSItem" :zNodes="zNodesSItem"
treeDivId="zNodesSItem" treeDivId="zNodesSItem"
deptSelect deptSelect
showRMenu showRMenu
@treeDblClick="treeDblClickS" @treeDblClick="treeDblClickS"
class="ztree" style="width: 200px;height: 400px;overflow: auto"> class="ztree" style="width: 200px;height: 400px;overflow: auto">
</laws-tree> </laws-tree>
</div> </div>
</el-popover> </el-popover>
@@ -402,11 +402,11 @@
<el-input v-model="standItemEO.dutyEngineer" v-show="false"></el-input> <el-input v-model="standItemEO.dutyEngineer" v-show="false"></el-input>
<el-popover placement="bottom" popper-class="user-dept-popper" trigger="click"> <el-popover placement="bottom" popper-class="user-dept-popper" trigger="click">
<el-input <el-input
v-model="standItemEO.dutyEngineerShow" v-model="standItemEO.dutyEngineerShow"
placeholder="请选择责任工程师" placeholder="请选择责任工程师"
readonly readonly
id="enginBtnS" id="enginBtnS"
slot="reference" slot="reference"
/> />
<div class="api"> <div class="api">
<dept-tree treeDivId="zNodesSItemEngin" <dept-tree treeDivId="zNodesSItemEngin"
@@ -426,20 +426,20 @@
<el-form-item label="适用车辆类型" prop="applyArctic" class="add-form-item"> <el-form-item label="适用车辆类型" prop="applyArctic" class="add-form-item">
<el-select v-model="standItemEO.applyArctic" multiple placeholder="请选择" :filterable="true"> <el-select v-model="standItemEO.applyArctic" multiple placeholder="请选择" :filterable="true">
<el-option <el-option
v-for="opt in applyArcticOptions" v-for="opt in applyArcticOptions"
:key="opt.value" :key="opt.value"
:label="opt.label" :label="opt.label"
:value="opt.value"> :value="opt.value">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="要求类型" prop="claimType" class="add-form-item"> <el-form-item label="要求类型" prop="claimType" class="add-form-item">
<el-select v-model="standItemEO.claimType" placeholder="请选择" :filterable="true"> <el-select v-model="standItemEO.claimType" placeholder="请选择" :filterable="true">
<el-option <el-option
v-for="opt in requestOptions" v-for="opt in requestOptions"
:key="opt.value" :key="opt.value"
:label="opt.label" :label="opt.label"
:value="opt.value"> :value="opt.value">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@@ -456,17 +456,17 @@
<!--导入模态窗--> <!--导入模态窗-->
<el-dialog width="400px" :visible.sync="importModalshowflag" title="导入文件" :footer-hide="true"> <el-dialog width="400px" :visible.sync="importModalshowflag" title="导入文件" :footer-hide="true">
<el-upload <el-upload
multiple multiple
drag drag
:show-file-list="showUploadlist" :show-file-list="showUploadlist"
:on-success="importFileSuccess" :on-success="importFileSuccess"
:on-remove="removeOneFile" :on-remove="removeOneFile"
:before-upload="beforeUpload" :before-upload="beforeUpload"
:action="importExcelUrl" :action="importExcelUrl"
:file-list="defaultFileList" :file-list="defaultFileList"
accept=".xlsx" accept=".xlsx"
name="file" name="file"
ref="importFileAboutStand"> ref="importFileAboutStand">
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
<p>点击或拖拽上传文件</p> <p>点击或拖拽上传文件</p>
@@ -475,10 +475,10 @@
</el-dialog> </el-dialog>
<!--分解单-查看 (标准拆分-属性)--> <!--分解单-查看 (标准拆分-属性)-->
<el-drawer <el-drawer
:wrapperClosable="false" :wrapperClosable="false"
size="800px" size="800px"
title="查看属性信息" title="查看属性信息"
:visible.sync="showItemInfoModal" :visible.sync="showItemInfoModal"
> >
<div class="see-drawer-content"> <div class="see-drawer-content">
<div class="see-drawer-div"> <div class="see-drawer-div">
@@ -525,20 +525,20 @@
</el-drawer> </el-drawer>
<!-- 更新LOG --> <!-- 更新LOG -->
<el-dialog <el-dialog
title="更新LOG" title="更新LOG"
:visible.sync="relateDialog" :visible.sync="relateDialog"
width="60%" width="60%"
class="relateClass" class="relateClass"
:before-close="relateDialogClose"> :before-close="relateDialogClose">
<div <div
v-for="(item, index) in relateNowList" v-for="(item, index) in relateNowList"
:key="index" :key="index"
v-if="relateNowList" v-if="relateNowList"
style="margin-bottom: 10px;line-height: 20px" style="margin-bottom: 10px;line-height: 20px"
> >
{{index+1}}. {{item.creationUserName}} {{item.creationTime}} {{item.content}} {{index+1}}. {{item.creationUserName}} {{item.creationTime}} {{item.content}}
<div v-if="relateNowList.length >1"> <div v-if="relateNowList.length >1">
<el-divider></el-divider> <el-divider></el-divider>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
@@ -1162,10 +1162,10 @@ export default {
let levelName = "-"; let levelName = "-";
if (this.mjOptions) { if (this.mjOptions) {
this.mjOptions.map((item) => { this.mjOptions.map((item) => {
if (item.value === standLevel) { if (item.value === standLevel) {
levelName = item.label; levelName = item.label;
} }
}); });
} }
return levelName; return levelName;
}, },
@@ -1437,24 +1437,24 @@ export default {
// 获取组织机构数据 // 获取组织机构数据
getOrgTreeSource () { getOrgTreeSource () {
this.$http.get('sys/org/getTree', {}, {_this: this}, this.$http.get('sys/org/getTree', {}, {_this: this},
res => { res => {
if (res.ok) { if (res.ok) {
let treeNode = [] let treeNode = []
res.data.map((item, index) => { res.data.map((item, index) => {
let treeItem = {} let treeItem = {}
for (let key in item) { for (let key in item) {
if (key === 'orgName') { if (key === 'orgName') {
treeItem.name = item[key] treeItem.name = item[key]
} else { } else {
treeItem[key] = item[key] treeItem[key] = item[key]
}
} }
} treeNode[index] = treeItem
treeNode[index] = treeItem })
}) this.zNodesSItem = treeNode
this.zNodesSItem = treeNode this.searchInlandNodes = treeNode
this.searchInlandNodes = treeNode }
} }, e => {})
}, e => {})
}, },
// 查询相近标准 // 查询相近标准
selectCloseStand (id) { selectCloseStand (id) {
@@ -1867,19 +1867,19 @@ export default {
getAddFormFieldList (isEdit) { getAddFormFieldList (isEdit) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$http.get('lawss/sarStandAttrDetails/list', {}, {_this: this}, this.$http.get('lawss/sarStandAttrDetails/list', {}, {_this: this},
res => { res => {
if (res.ok) { if (res.ok) {
// const { data: { STAND: data } } = res // const { data: { STAND: data } } = res
const { data = {} } = res const { data = {} } = res
this.formFieldListData = data[this.sarType] this.formFieldListData = data[this.sarType]
// this.resolveFormFieldList() // this.resolveFormFieldList()
resolve(data[this.sarType]) resolve(data[this.sarType])
} else { } else {
reject(res) reject(res)
} }
}, e => { }, e => {
reject(e) reject(e)
}) })
}) })
}, },
// 点击更多按钮事件 // 点击更多按钮事件
@@ -2279,6 +2279,7 @@ export default {
padding: 0; padding: 0;
border: none; border: none;
i { i {
color: #F2CB51;
font-size: 18px; font-size: 18px;
width: 18px; width: 18px;
height: 18px; height: 18px;
File diff suppressed because it is too large Load Diff