3797 lines
204 KiB
Vue
3797 lines
204 KiB
Vue
<template>
|
|
<div class="bzrkStep1">
|
|
<!-- 标准入库流程-->
|
|
<ProcessHeader toggle>
|
|
<template slot="proName">企标制修订-技术标准</template>
|
|
<template slot="proNode">起草</template>
|
|
</ProcessHeader>
|
|
<div class="headerTabs">
|
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
|
<!-- <div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">模块信息</div>-->
|
|
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">人员信息</div>
|
|
</div>
|
|
<div class="content">
|
|
<el-form
|
|
ref="form"
|
|
:model="form"
|
|
:rules="rules"
|
|
class="label-input-form"
|
|
label-width="210px"
|
|
>
|
|
<div style="flex: auto;" v-show="active === '1'">
|
|
<ProcessTitle>
|
|
<template slot="title">基础信息</template>
|
|
</ProcessTitle>
|
|
<div class="prc-content-border">
|
|
<el-row :gutter="24">
|
|
<el-col :span="12">
|
|
<el-form-item label="企标类别" prop="standSort" class="add-form-item form-item-disabled">
|
|
<el-select v-model="form.standSort" filterable clearable
|
|
:disabled="planDisabled || disabledXX"
|
|
placeholder="请先选择计划带入企标类别"
|
|
>
|
|
<el-option
|
|
v-for="item in standSortOptions"
|
|
:key="item.value"
|
|
:value="item.value"
|
|
:label="item.label"
|
|
></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
|
|
<el-input
|
|
:disabled="planDisabled || disabledXX"
|
|
v-model="form.standName"
|
|
placeholder="请先选择计划带入企标名称"
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="制修订类型" prop="reviseStatus"
|
|
class="add-form-item form-item-disabled">
|
|
<template>
|
|
<div style="padding-left: 10px; color: #666666;"
|
|
v-if="form.reviseStatus === '1'">制定
|
|
</div>
|
|
<div style="padding-left: 10px; color: #666666;"
|
|
v-else-if="form.reviseStatus === '2'">修订
|
|
</div>
|
|
<div style="padding-left: 10px; color: #666666;"
|
|
v-else-if="form.reviseStatus === '3'">修改
|
|
</div>
|
|
<div style="padding-left: 10px; color: #666666;" v-else></div>
|
|
</template>
|
|
<!-- <el-select v-model="form.reviseStatus" filterable clearable>-->
|
|
<!-- <el-option-->
|
|
<!-- v-for="item in opinionsStand"-->
|
|
<!-- :key="item.value"-->
|
|
<!-- :value="item.value"-->
|
|
<!-- :label="item.label"-->
|
|
<!-- ></el-option>-->
|
|
<!-- </el-select>-->
|
|
</el-form-item>
|
|
<!-- <el-form-item label="文本状态" prop="textStatusBuss" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-select :disabled="disabledXX" :popper-append-to-body="false" v-model="form.textStatusBuss" placeholder="请选择文本状态">-->
|
|
<!-- <el-option-->
|
|
<!-- v-for="item in standStateOptions"-->
|
|
<!-- placeholder="请选择"-->
|
|
<!-- :key="item.value"-->
|
|
<!-- :value="item.value"-->
|
|
<!-- :label="item.label"-->
|
|
<!-- ></el-option>-->
|
|
<!-- </el-select>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item v-show="verifySarStandard" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-input :disabled="disabledXX" v-model="form.standYear"-->
|
|
<!-- placeholder="请输入标准年份"-->
|
|
<!-- clearable></el-input>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item v-show="verifySarStandard" label="复审日期" prop="FSRQBUSS" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-datePicker :disabled="disabledXX" v-model="form.FSRQBUSS"-->
|
|
<!-- :editable="false"-->
|
|
<!-- disabled-->
|
|
<!-- placeholder="请选择废止日期"-->
|
|
<!-- value-format="yyyy-MM-dd"-->
|
|
<!-- clearable></el-datePicker>-->
|
|
<!-- </el-form-item>-->
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<!-- <el-form-item label="国家/地区" prop="country" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-select :disabled="disabledXX" :popper-append-to-body="false" v-model="form.country" multiple placeholder="国家/地区">-->
|
|
<!-- <el-option-->
|
|
<!-- v-for="item in countryOptions"-->
|
|
<!-- placeholder="请选择"-->
|
|
<!-- :key="item.value"-->
|
|
<!-- :value="item.value"-->
|
|
<!-- :label="item.label"-->
|
|
<!-- ></el-option>-->
|
|
<!-- </el-select>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item label="企标编号" prop="standNumber" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-input :disabled="disabledXX" -->
|
|
<!-- v-model="form.standNumber"-->
|
|
<!-- placeholder="请输入企标编号"-->
|
|
<!-- clearable-->
|
|
<!-- ></el-input>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item class="add-form-item form-item-disabled" style="margin-left: -210px">-->
|
|
<!-- <el-button :disabled="disabledXX"-->
|
|
<!-- type="primary"-->
|
|
<!-- :loading="loadSarStandard"-->
|
|
<!-- @click="handleSearchStandard">-->
|
|
<!-- 根据企标名称、起草责任单位查询-->
|
|
<!-- </el-button>-->
|
|
<!-- </el-form-item>-->
|
|
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
v-model="form.standEnName"
|
|
placeholder="请输入英文名称"
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime"
|
|
class="add-form-item form-item-disabled">
|
|
<el-datePicker :disabled="disabledXX" v-model="form.putTime"
|
|
:editable="false"
|
|
placeholder="请选择企标实施日期"
|
|
value-format="yyyy-MM-dd"
|
|
></el-datePicker>
|
|
</el-form-item>
|
|
<!-- <el-form-item v-show="verifySarStandard" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-datePicker :disabled="disabledXX" v-model="form.issueTime"-->
|
|
<!-- :editable="false"-->
|
|
<!-- placeholder="请选择发布日期"></el-datePicker>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item v-show="verifySarStandard" label="废止日期" prop="FZRQBUSS" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-datePicker :disabled="disabledXX" v-model="form.FZRQBUSS"-->
|
|
<!-- :editable="false"-->
|
|
<!-- placeholder="请选择废止日期"-->
|
|
<!-- value-format="yyyy-MM-dd"-->
|
|
<!-- clearable></el-datePicker>-->
|
|
<!-- </el-form-item>-->
|
|
</el-col>
|
|
</el-row>
|
|
</div>
|
|
<ProcessTitle v-show="verifySarStandard">
|
|
<template slot="title">过程稿件</template>
|
|
</ProcessTitle>
|
|
<div class="prc-content-border" v-show="verifySarStandard">
|
|
<el-row :gutter="24">
|
|
<el-col :span="12">
|
|
<el-form-item label="发布稿" prop="FBGBUSSName" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
disabled
|
|
style="display: none;"
|
|
v-model="form.FBGBUSSName"
|
|
clearable
|
|
></el-input>
|
|
<div style="display: flex;justify-content: space-between">
|
|
<div style="width: 80%;margin-top: 13px">
|
|
<!-- <div v-for="(item,index) in FBGBUSSFileList"-->
|
|
<!-- :key="index" @click="handleFilePreview(item)"-->
|
|
<!-- style="color: #409eff;cursor:pointer" -->
|
|
<!-- class="fileClass">{{ item.name }}</div>-->
|
|
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
|
|
style="color: #409eff;cursor:pointer"
|
|
class="fileClass fileClassName">
|
|
<span style="width: 80%;"
|
|
v-if="index == 0"
|
|
@click="handleFilePreviewOne(item,'preview')">
|
|
{{ item.name }}
|
|
</span>
|
|
<span v-else @click="handleFilePreview(item)">
|
|
{{ item.name }}
|
|
</span>
|
|
<span style="width: 20%;margin-left: 15px;"
|
|
v-if="item.id !== '' && index == 0">
|
|
<el-button type="primary" size="mini"
|
|
plain icon="el-icon-edit"
|
|
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div style="width: 20%;">
|
|
<!-- :disabled="disabledXX"-->
|
|
<!-- disabled-->
|
|
<el-button
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="mini"
|
|
style="margin-left: 10px; margin-top: 11px; float: right;"
|
|
@click="fileUpload('FBGBUSS')">
|
|
<i class="el-icon-upload"></i>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
<el-form-item label="历史版本" prop="LSBBBUSSName" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
disabled
|
|
style="display: none;"
|
|
v-model="form.LSBBBUSSName"
|
|
clearable
|
|
></el-input>
|
|
<div style="display: flex;justify-content: space-between">
|
|
<div style="width: 80%;margin-top: 13px">
|
|
<div v-for="(item,index) in LSBBBUSSFileList" :key="index"
|
|
style="color: #409eff;cursor:pointer"
|
|
class="fileClass">
|
|
<span style="" @click="handleFilePreview2(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
|
<i class="el-icon-download" title="下载" @click="handleFilePreview2(item,'down')"></i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div style="width: 20%;">
|
|
<el-button :disabled="disabledXX"
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="mini"
|
|
style="margin-left: 10px; margin-top: 11px; float: right;"
|
|
@click="fileUpload('LSBBBUSS')">
|
|
<i class="el-icon-upload"></i>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-form-item label="编制说明" prop="BZSMBUSSName" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
disabled
|
|
style="display: none;"
|
|
v-model="form.BZSMBUSSName"
|
|
clearable
|
|
></el-input>
|
|
<div style="display: flex;justify-content: space-between">
|
|
<div style="width: 80%;margin-top: 13px">
|
|
<div v-for="(item,index) in BZSMBUSSFileList" :key="index"
|
|
@click="handleFilePreview(item)" style="color: #409eff;cursor:pointer"
|
|
class="fileClass">{{ item.name }}
|
|
</div>
|
|
</div>
|
|
<div style="width: 20%;">
|
|
<el-button :disabled="disabledXX"
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="mini"
|
|
style="margin-left: 10px; margin-top: 11px; float: right;"
|
|
@click="fileUpload('BZSMBUSS')">
|
|
<i class="el-icon-upload"></i>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
<el-form-item label="其他文件" prop="QTWJBUSSName" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
disabled
|
|
style="display: none;"
|
|
v-model="form.QTWJBUSSName"
|
|
clearable
|
|
></el-input>
|
|
<div style="display: flex;justify-content: space-between">
|
|
<div style="width: 80%;margin-top: 13px">
|
|
<div v-for="(item,index) in QTWJBUSSFileList" :key="index"
|
|
@click="handleFilePreview(item)" style="color: #409eff;cursor:pointer"
|
|
class="fileClass">{{ item.name }}
|
|
</div>
|
|
</div>
|
|
<div style="width: 20%;">
|
|
<el-button :disabled="disabledXX"
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="mini"
|
|
style="margin-left: 10px; margin-top: 11px; float: right;"
|
|
@click="fileUpload('QTWJBUSS')">
|
|
<i class="el-icon-upload"></i>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
</el-row>
|
|
</div>
|
|
<ProcessTitle v-show="verifySarStandard">
|
|
<template slot="title">适用范围</template>
|
|
</ProcessTitle>
|
|
<div class="prc-content-border" v-show="verifySarStandard">
|
|
<el-row :gutter="24">
|
|
<el-col :span="12">
|
|
<el-form-item label="起草部门" prop="QCDW" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
readonly="readonly"
|
|
v-model="form.QCDW"
|
|
placeholder="选择起草部门"
|
|
@click.native="choiceQCDW('QCDWId', '起草部门', form.QCDW)">
|
|
</el-input>
|
|
</el-form-item>
|
|
<el-form-item label="文件上传人员" prop="WJSCRYBUSSName"
|
|
class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
v-model="form.WJSCRYBUSSName"
|
|
placeholder="请输入文件上传人员"
|
|
disabled
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="能源类型" prop="NYLXCLASS" class="add-form-item form-item-disabled">
|
|
<el-select :disabled="disabledXX" :popper-append-to-body="false"
|
|
v-model="form.NYLXCLASS" placeholder="请选择能源类型" multiple>
|
|
<el-option
|
|
v-for="item in categoryOptions"
|
|
placeholder="请选择"
|
|
:key="item.value"
|
|
:value="item.value"
|
|
:label="item.label"
|
|
></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="关联模块--乘用车VPPS编码" title="关联模块--乘用车VPPS编码"
|
|
class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX" v-model="form.CYCVPPSBMBUSS" readonly="readonly"
|
|
placeholder="关联模块--乘用车VPPS编码"
|
|
@click.native="choiceZRR2('car', '关联模块--乘用车VPPS编码', form.CYCVPPSBMBUSS,true)"></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码"
|
|
class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX" v-model="form.KCVPPSBMBUSS" readonly="readonly"
|
|
placeholder="关联模块--卡车VPPS编码"
|
|
@click.native="choiceZRR3('struck', '关联模块--卡车VPPS编码', form.KCVPPSBMBUSS,false)"></el-input>
|
|
</el-form-item>
|
|
<!-- <el-form-item label="模块结构单元变型号(卡车)" title="模块结构单元变型号(卡车)" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-input :disabled="disabledXX" v-model="form.DYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号(卡车)" @click.native="choiceZRR4('TRUCK', '模块结构单元变型号(卡车)', form.DYBXHBUSS,false)"></el-input>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item label="模块结构单元变型号(乘用车)" title="模块结构单元变型号(乘用车)" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-input :disabled="disabledXX" v-model="form.CYCDYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号(乘用车)" @click.native="choiceZRR5('CAR', '模块结构单元变型号(乘用车)', form.CYCDYBXHBUSS,false)"></el-input>-->
|
|
<!-- </el-form-item>-->
|
|
<el-form-item label="体系类别" prop="TXLBBUSS" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX" v-model="form.TXLBBUSS" placeholder="选择体系类别"
|
|
clearable
|
|
@click.native="choiceZRR1('TXLBBUSS', '体系类别', form.TXLBBUSS)"></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-form-item label="起草人" prop="QCRBUSS" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
v-model="form.QCRBUSS"
|
|
placeholder="选择起草人"
|
|
:title="form.QCRBUSS"
|
|
readonly="readonly"
|
|
@click.native="choiceZRRList('QCRBUSS', '选择起草人', form.QCRBUSS)">
|
|
</el-input>
|
|
</el-form-item>
|
|
<el-form-item label="适用车型" prop="SYCXCLASS" class="add-form-item form-item-disabled">
|
|
<el-select :disabled="disabledXX" :popper-append-to-body="false"
|
|
v-model="form.SYCXCLASS" placeholder="请选择适用车型" multiple @change="selectChange">
|
|
<el-option
|
|
v-for="item in applyArcticOptions"
|
|
placeholder="请选择"
|
|
:key="item.value"
|
|
:value="item.value"
|
|
:label="item.label"
|
|
></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="适用产品线" prop="SYCPXCLASS" class="add-form-item form-item-disabled">
|
|
<el-select :disabled="disabledXX" :popper-append-to-body="false"
|
|
v-model="form.SYCPXCLASS" placeholder="请选择适用认证" multiple>
|
|
<el-option
|
|
v-for="item in sycpxOptions"
|
|
placeholder="请选择"
|
|
:key="item.value"
|
|
:value="item.value"
|
|
:label="item.label"
|
|
></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS"
|
|
class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX" v-model="form.CYCVPPSCNBUSS"
|
|
placeholder="请输入模块中文名称" clearable disabled></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="关联模块--卡车VPPS编码" prop="KCVPPSCNBUSS"
|
|
class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX" v-model="form.KCVPPSCNBUSS"
|
|
placeholder="关联模块--卡车VPPS编码" clearable disabled></el-input>
|
|
</el-form-item>
|
|
<!-- <el-form-item label="模块结构单元名称(卡车)" prop="DYMCBUSS" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-input :disabled="disabledXX" v-model="form.DYMCBUSS" placeholder="模块结构单元名称(卡车)" clearable disabled></el-input>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item label="模块结构单元名称(乘用车)" prop="CYCDYMCBUSS" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-input :disabled="disabledXX" v-model="form.CYCDYMCBUSS" placeholder="模块结构单元名称(乘用车)" clearable disabled></el-input>-->
|
|
<!-- </el-form-item>-->
|
|
</el-col>
|
|
</el-row>
|
|
</div>
|
|
<ProcessTitle v-show="verifySarStandard">
|
|
<template slot="title">关联信息</template>
|
|
</ProcessTitle>
|
|
<div class="prc-content-border" v-show="verifySarStandard">
|
|
<el-row :gutter="24">
|
|
<el-col :span="12">
|
|
<el-form-item label="代替企标编号"
|
|
prop="DTQBBHBUSS"
|
|
:rules="form.reviseStatus === '1' ? rules.DTQBBHBUSSNot : rules.DTQBBHBUSS"
|
|
class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
v-model="form.DTQBBHBUSS"
|
|
placeholder="请输入代替标准号"
|
|
clearable
|
|
></el-input>
|
|
<el-button :disabled="disabledXX"
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="mini"
|
|
style="position:absolute;top: 10px;right: 0;"
|
|
@click="selectLaws('DTQBBHBUSS'),config.attrName = '代替企标编号'"
|
|
>{{'手动查找'}}
|
|
</el-button>
|
|
</el-form-item>
|
|
<el-form-item label="采用标准" prop="CYBZ" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
v-model="form.CYBZ"
|
|
placeholder="请输入采用标准"
|
|
clearable
|
|
></el-input>
|
|
<el-button :disabled="disabledXX"
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="mini"
|
|
style="position:absolute;top: 10px;right: 0;"
|
|
@click="selectLaws('CYBZ'),config.attrName = '采用标准'"
|
|
>{{'手动查找'}}
|
|
</el-button>
|
|
</el-form-item>
|
|
<el-form-item label="引用标准" prop="YYBZ" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
v-model="form.YYBZ"
|
|
placeholder="请输入引用标准"
|
|
clearable
|
|
></el-input>
|
|
<el-button :disabled="disabledXX"
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="mini"
|
|
style="position:absolute;top: 10px;right: 0;"
|
|
@click="selectLaws('YYBZ'),config.attrName = '引用标准'"
|
|
>{{'手动查找'}}
|
|
</el-button>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<!-- <el-form-item label="被代替企标编号" prop="BDTWJHLAWS" class="add-form-item form-item-disabled">-->
|
|
<!-- <el-input :disabled="disabledXX" -->
|
|
<!-- v-model="form.BDTWJHLAWS"-->
|
|
<!-- placeholder="请输入被代替企标编号"-->
|
|
<!-- clearable-->
|
|
<!-- ></el-input>-->
|
|
<!-- <el-button :disabled="disabledXX" -->
|
|
<!-- type="primary"-->
|
|
<!-- class="common-button-primary"-->
|
|
<!-- size="mini"-->
|
|
<!-- style="position:absolute;top: 10px;right: 0;"-->
|
|
<!-- @click="selectLaws('bfbdtbzh'),config.attrName = '被代替企标编号'"-->
|
|
<!-- >{{'手动查找'}}</el-button>-->
|
|
<!-- </el-form-item>-->
|
|
<el-form-item label="上传时间" prop="XCSJBUSS" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
v-model="form.XCSJBUSS"
|
|
placeholder=""
|
|
clearable
|
|
disabled
|
|
></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="采标程度" prop="CYCD" class="add-form-item form-item-disabled">
|
|
<el-select :disabled="disabledXX" v-model="form.CYCD" filterable clearable
|
|
placeholder="请先选择采标程度"
|
|
>
|
|
<el-option
|
|
v-for="item in cbcdOptions"
|
|
:key="item.value"
|
|
:value="item.value"
|
|
:label="item.label"
|
|
></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
|
|
<el-input :disabled="disabledXX"
|
|
disabled
|
|
style="display: none;"
|
|
v-model="form.GLWJBUSSName"
|
|
clearable
|
|
></el-input>
|
|
<div style="display: flex;justify-content: space-between">
|
|
<div style="width: 80%;margin-top: 13px">
|
|
<div v-for="(item,index) in GLWJBUSSFileList" :key="index"
|
|
@click="handleFilePreview(item)" style="color: #409eff;cursor:pointer"
|
|
class="fileClass">{{ item.name }}
|
|
</div>
|
|
</div>
|
|
<div style="width: 20%;">
|
|
<el-button :disabled="disabledXX"
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="mini"
|
|
style="margin-left: 10px; margin-top: 11px; float: right;"
|
|
@click="fileUpload('GLWJBUSS')">
|
|
<i class="el-icon-upload"></i>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
</div>
|
|
<el-collapse v-show="verifySarStandard && active !== '2'" v-model="activeName" accordion>
|
|
<el-collapse-item title="回执说明" name="1">
|
|
<div style="margin: 10px 0;">
|
|
<el-input :disabled="disabledXX"
|
|
type="textarea"
|
|
:rows="3"
|
|
resize="none"
|
|
placeholder="请输入意见"
|
|
v-model="commentText">
|
|
</el-input>
|
|
</div>
|
|
</el-collapse-item>
|
|
</el-collapse>
|
|
</div>
|
|
<!-- <div class="block" id="active2" v-show="active === '2'">-->
|
|
<!-- <ProcessTitle>-->
|
|
<!-- <template slot="title">模块信息</template>-->
|
|
<!-- </ProcessTitle>-->
|
|
<!-- <template>-->
|
|
<!-- <div class="prc-content-border" style="height: 66vh;position: relative;">-->
|
|
<!-- <div class="action-bar">-->
|
|
<!-- <el-button :disabled="disabledXX" type="primary" class="common-button-primary add-button" size="mini" @click="choiceZRRS('', 2, '')">-->
|
|
<!-- 批量编辑-->
|
|
<!-- </el-button>-->
|
|
<!-- <el-button :disabled="disabledXX" -->
|
|
<!-- type="primary"-->
|
|
<!-- size="mini"-->
|
|
<!-- class="common-button-primary add-button"-->
|
|
<!-- @click="createRow"-->
|
|
<!-- >创建模块</el-button>-->
|
|
<!-- </div>-->
|
|
<!-- <el-table-->
|
|
<!-- ref="selection"-->
|
|
<!-- tooltip-effect="dark"-->
|
|
<!-- style="width: 100%;margin-bottom: 20px;overflow-y:auto;height:56vh;border-bottom: 1px solid #EBEEF5;"-->
|
|
<!-- :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',-->
|
|
<!-- fontWeight: 'bold', height: '48px'}"-->
|
|
<!-- @selection-change="handleSelectionChange"-->
|
|
<!-- row-key="id"-->
|
|
<!-- :data="form.modelData"-->
|
|
<!-- border-->
|
|
<!-- default-expand-all-->
|
|
<!-- :tree-props="{children: 'children', hasChildren: 'hasChildren'}">-->
|
|
<!-- <el-table-column type="selection" min-width="5%" :selectable="checkSelect" align="center"/>-->
|
|
<!-- <el-table-column-->
|
|
<!-- prop="modelNum"-->
|
|
<!-- label="序号"-->
|
|
<!-- min-width="15%"-->
|
|
<!-- align="center"-->
|
|
<!-- :tree-props="{children: 'children', hasChildren: 'hasChildren'}">-->
|
|
<!-- </el-table-column>-->
|
|
<!-- <el-table-column-->
|
|
<!-- label="名称"-->
|
|
<!-- align="center"-->
|
|
<!-- min-width="30%">-->
|
|
<!-- <template slot-scope="scope">-->
|
|
<!-- <el-form-item-->
|
|
<!-- style="margin-left: 0;margin-bottom:0;"-->
|
|
<!-- >-->
|
|
<!-- <el-input :disabled="disabledXX" v-model="scope.row.modelName" :disabled="scope.row.disabled" placeholder="请维护模块名称" @blur="modelNameFunc(scope.row)"/>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- </template>-->
|
|
<!-- </el-table-column>-->
|
|
<!-- <el-table-column-->
|
|
<!-- label="责任人"-->
|
|
<!-- min-width="15%"-->
|
|
<!-- align="center">-->
|
|
<!-- <template slot-scope="scope">-->
|
|
<!-- <el-form-item-->
|
|
<!-- style="margin-left: 0;margin-bottom:0;"-->
|
|
<!-- >-->
|
|
<!-- <el-input :disabled="disabledXX" v-model="scope.row.zrUserIdName" v-if="scope.row.pid === '0'" placeholder="请选择责任人" @click.native="choiceZRRS(scope.row.zrUserId, 1, scope.$index)"/>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- </template>-->
|
|
<!-- </el-table-column>-->
|
|
<!-- <el-table-column label="操作" align="center" min-width="5%">-->
|
|
<!-- <template slot-scope="scope">-->
|
|
<!-- <div @click.stop style="display: inline-block">-->
|
|
<!-- <el-dropdown trigger="click" @command="handleCommand">-->
|
|
<!-- <i class="iconfont"></i>-->
|
|
<!-- <el-dropdown-menu slot="dropdown">-->
|
|
<!--<!– <el-dropdown-item :command="[scope.$index,scope.row, '新增']" v-btn-permission="''">新增</el-dropdown-item>–>-->
|
|
<!-- <el-dropdown-item :command="[scope.$index,scope.row, '维护']" v-btn-permission="''">维护</el-dropdown-item>-->
|
|
<!-- <el-dropdown-item :command="[scope.$index,scope.row, '删除']" v-btn-permission="''">删除</el-dropdown-item>-->
|
|
<!-- </el-dropdown-menu>-->
|
|
<!-- </el-dropdown>-->
|
|
<!-- </div>-->
|
|
<!-- </template>-->
|
|
<!-- </el-table-column>-->
|
|
<!-- </el-table>-->
|
|
<!-- </div>-->
|
|
<!-- </template>-->
|
|
<!-- </div>-->
|
|
<div class="block" style="padding-top: 20px;" v-show="active === '3'">
|
|
<el-timeline>
|
|
<el-form
|
|
ref="userForm"
|
|
:model="roleForm"
|
|
:rules="roleRules"
|
|
class="label-input-form">
|
|
<el-timeline-item timestamp="起草" placement="top"
|
|
:color="roleForm.prcCreateUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="prcCreateUserName" style="margin-bottom: 0">
|
|
<h4>标准起草人</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" disabled
|
|
v-model="roleForm.prcCreateUserName"
|
|
placeholder="标准起草人"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="企标编写" prop="qcUserName" placement="top"
|
|
:color="roleForm.qcUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="qcUserName" style="margin-bottom: 0">
|
|
<h4>其他起草人</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" v-model="roleForm.qcUserName" clearable
|
|
readonly="readonly" placeholder="其他起草人"
|
|
@click.native="choiceZRRList('qcUserId', '选择其他起草人', roleForm.qcUserId)"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="企标编写汇总" placement="top"
|
|
:color="roleForm.hzUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="hzUserName" style="margin-bottom: 0">
|
|
<h4>标准起草人</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" disabled v-model="roleForm.hzUserName"
|
|
readonly="readonly" clearable placeholder="标准起草人"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="标准化初审" prop="bzhUserName" placement="top"
|
|
:color="roleForm.bzhUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="bzhUserName" style="margin-bottom: 0">
|
|
<h4>总院各中心兼职标准化员/各事业部标准化员</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" v-model="roleForm.bzhUserName"
|
|
readonly="readonly" placeholder="选择总院各中心兼职标准化员/各事业部标准化员"
|
|
@click.native="choiceZRR('bzhUserId', '选择总院各中心兼职标准化员/各事业部标准化员', roleForm.bzhUserId)"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item
|
|
timestamp="征求意见(张建芳、蒋敏、吴娟、李中立、尧燕、耿红静、赵淑珍、符清萍、杨卫利、技术委员会相关成员、总院相关中心总工及四五级工程师)"
|
|
prop="hqUserName" placement="top" :color="roleForm.hqUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="hqUserName" style="margin-bottom: 0">
|
|
<h4>张建芳、蒋敏、吴娟、李中立、尧燕、耿红静、赵淑珍、符清萍、杨卫利、技术委员会相关成员、总院相关中心总工及四五级工程师</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" v-model="roleForm.hqUserName"
|
|
placeholder="选择张建芳、蒋敏、吴娟、李中立、尧燕、耿红静、赵淑珍、符清萍、杨卫利、技术委员会相关成员、总院相关中心总工及四五级工程师"
|
|
readonly="readonly"
|
|
@click.native="choiceZRRList('hqUserId', '选择张建芳、蒋敏、吴娟、李中立、尧燕、耿红静、赵淑珍、符清萍、杨卫利、技术委员会相关成员、总院相关中心总工及四五级工程师', roleForm.hqUserId)"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="技术委员会评审、评审意见修改" placement="top"
|
|
:color="roleForm.xdUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="xdUserName" style="margin-bottom: 0">
|
|
<h4>标准起草人</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" disabled v-model="roleForm.xdUserName"
|
|
readonly="readonly" placeholder="标准起草人"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="标准化复审" prop="fggcsUserName" placement="top"
|
|
:color="roleForm.fggcsUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="fggcsUserName" style="margin-bottom: 0">
|
|
<h4>标准法规工程师</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" v-model="roleForm.fggcsUserName"
|
|
readonly="readonly" placeholder="标准法规工程师"
|
|
@click.native="choiceZRR('fggcsUserId', '选择标准法规工程师', roleForm.fggcsUserId)"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="审核" prop="jsfzrUserName" placement="top"
|
|
:color="roleForm.jsfzrUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="jsfzrUserName" style="margin-bottom: 0">
|
|
<h4>起草单位高级经理</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" v-model="roleForm.jsfzrUserName"
|
|
readonly="readonly" placeholder="选择起草单位高级经理"
|
|
@click.native="choiceZRR('jsfzrUserId', '选择起草单位高级经理', roleForm.jsfzrUserId)"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="审核" prop="bzUserName" placement="top"
|
|
:color="roleForm.bzUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="bzUserName" style="margin-bottom: 0">
|
|
<h4>标准法规部高级经理</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" v-model="roleForm.bzUserName"
|
|
readonly="readonly" placeholder="选择标准法规部高级经理"
|
|
@click.native="choiceZRR('bzUserId', '选择标准法规部高级经理', roleForm.bzUserId)"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="审定" prop="fzrUserName" placement="top"
|
|
:color="roleForm.fzrUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="fzrUserName" style="margin-bottom: 0">
|
|
<h4>起草单位中心主任</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" v-model="roleForm.fzrUserName"
|
|
readonly="readonly" placeholder="选择起草单位中心主任"
|
|
@click.native="choiceZRR('fzrUserId', '选择起草单位中心主任', roleForm.fzrUserId)"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="批准" prop="zhrUserName" placement="top"
|
|
:color="roleForm.zhrUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="zhrUserName" style="margin-bottom: 0">
|
|
<h4>总院技术委员会覆盖领域企业标准:专委会主任;总院技术委员会未覆盖领域企业标准:总院院长或总院主管副院长</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" v-model="roleForm.zhrUserName"
|
|
readonly="readonly"
|
|
placeholder="选择总院技术委员会覆盖领域企业标准:专委会主任;总院技术委员会未覆盖领域企业标准:总院院长或总院主管副院长"
|
|
@click.native="choiceZRR('zhrUserId', '选择总院技术委员会覆盖领域企业标准:专委会主任;总院技术委员会未覆盖领域企业标准:总院院长或总院主管副院长', roleForm.zhrUserId)"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="培训" placement="top"
|
|
:color="roleForm.pxUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="hzUserName" style="margin-bottom: 0">
|
|
<h4>标准起草人</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" disabled v-model="roleForm.pxUserName"
|
|
readonly="readonly" clearable placeholder="标准起草人"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
<el-timeline-item timestamp="发布" prop="fbUserName" placement="top"
|
|
:color="roleForm.fbUserName ? '#66b1ff' : ''">
|
|
<el-card>
|
|
<el-form-item prop="fbUserName" style="margin-bottom: 0">
|
|
<h4>标准法规工程师</h4>
|
|
<div style="margin-top: 10px;width: 300px;">
|
|
<el-input :disabled="disabledXX" v-model="roleForm.fbUserName"
|
|
readonly="readonly" placeholder="选择标准法规工程师"
|
|
@click.native="choiceZRR('fbUserId', '选择标准法规工程师', roleForm.fbUserId)"></el-input>
|
|
</div>
|
|
</el-form-item>
|
|
</el-card>
|
|
</el-timeline-item>
|
|
</el-form>
|
|
</el-timeline>
|
|
</div>
|
|
</el-form>
|
|
</div>
|
|
<!-- 保存||提交-->
|
|
<ProcessFooter
|
|
v-show="verifySarStandard && !disabledXX"
|
|
show-save
|
|
show-submit
|
|
:submitLoading="isSubmit"
|
|
:saveLoading="saveLoading"
|
|
@save="handleSave"
|
|
@receive="handleReceive"
|
|
@submit="handleSubmit"
|
|
>
|
|
</ProcessFooter>
|
|
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
|
|
<el-upload
|
|
multiple
|
|
drag
|
|
:file-list="fileList"
|
|
:action="fileUrl"
|
|
ref="importfile"
|
|
name="file"
|
|
accept=".pdf, .PDF, .ppt, .PPT, .pptx,.PPTX, .doc, .DOC, .docx, .DOCX, .xls, .xlsx"
|
|
:before-upload="beginImportFile"
|
|
:on-success="importFileSuccess"
|
|
:on-preview="handleFilePreview"
|
|
:on-remove="removeOneFile"
|
|
:show-file-list="true"
|
|
>
|
|
<div style="padding: 20px 0">
|
|
<i class="el-icon-upload" style="color: #3399ff"></i>
|
|
<p>点击或拖拽上传文件</p>
|
|
</div>
|
|
</el-upload>
|
|
</el-dialog>
|
|
<el-dialog
|
|
:title="config.attrName"
|
|
:visible.sync="replaceLawsNumModel"
|
|
width="875px"
|
|
:close-on-click-modal="false"
|
|
@close="replaceLawsNumModelCancel"
|
|
:append-to-body="true"
|
|
>
|
|
<div class="search-area">
|
|
<div class="left">
|
|
<el-form :modal="replaceLawsNumForm" :inline="true" class="label-input-form">
|
|
<el-form-item label="标准来源" class="search-item" v-if="dataSource">
|
|
<el-select :disabled="disabledXX"
|
|
:popper-append-to-body="false"
|
|
v-model="replaceLawsNumForm.standType"
|
|
placeholder="请选择标准来源"
|
|
@change="dataSourceChange">
|
|
<el-option value="INLAND" label="国内标准库"></el-option>
|
|
<el-option value="FOREIGN" label="海外标准库"></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="编号/名称" class="search-item">
|
|
<el-input :disabled="disabledXX"
|
|
v-model="replaceLawsNumForm.numberName"
|
|
placeholder="根据编号/名称查找"
|
|
clearable
|
|
:maxlength="100"></el-input>
|
|
</el-form-item>
|
|
<el-form-item class="search-item btn-box">
|
|
<el-button :disabled="disabledXX"
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="small"
|
|
@click="getReplaceLawsNumRowFirst">
|
|
查询
|
|
</el-button>
|
|
</el-form-item>
|
|
<el-form-item class="search-item btn-box">
|
|
<el-button :disabled="disabledXX"
|
|
class="common-button-default"
|
|
size="small"
|
|
@click="getResetLawsNumRow">清空
|
|
</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<el-table
|
|
ref="selections"
|
|
:data="replaceLawsNumRow"
|
|
tooltip-effect="dark"
|
|
style="width: 100%;overflow-y: auto;overflow-x: hidden;"
|
|
border
|
|
:height="300"
|
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
|
fontWeight: 'bold', height: '48px'}"
|
|
@selection-change="selectReplaceStandNumRowChange">
|
|
<el-table-column
|
|
type="selection"
|
|
width="55"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
label="企标编号">
|
|
<template slot-scope="scope">
|
|
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standCode }}</a>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="standName"
|
|
label="企标名称">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="issueTime"
|
|
label="发布日期"
|
|
width="130">
|
|
<template slot-scope="scope">{{ scope.row.issueTime ?
|
|
$moment(scope.row.issueTime).format('YYYY-MM-DD') : '' }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="textStatusBuss"
|
|
label="文本状态"
|
|
width="130">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.standStatusShow }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
|
|
<!--分页-->
|
|
<pagination
|
|
style="position: relative;"
|
|
:page="replacePage"
|
|
:total="replaceTotal"
|
|
@pageChange="pageChangeReplace"
|
|
@pageSizeChange="pageSizeChangeReplace"></pagination>
|
|
<div slot="footer" class="demo-drawer-footer">
|
|
<el-button :disabled="disabledXX" class="common-button-default" round icon="el-icon-close"
|
|
@click="replaceLawsNumModel = false">取消
|
|
</el-button>
|
|
<el-button :disabled="disabledXX" type="primary" round class="common-button-primary"
|
|
icon="el-icon-check" @click="replaceLawsNumModelBt">提交
|
|
</el-button>
|
|
</div>
|
|
</el-dialog>
|
|
<Role-tree v-if="!disabledXX"
|
|
:is-title="drawerTitle"
|
|
:is-visible.sync="modalShowRoleFlag"
|
|
@checkedRole="checkedRole2"
|
|
:nodeList="nodeList2"
|
|
></Role-tree>
|
|
<Role-tree v-if="!disabledXX"
|
|
check-box
|
|
:is-title="drawerTitle"
|
|
:is-visible.sync="modalShowFlag"
|
|
@checkedRole="checkedRole"
|
|
:nodeList="nodeList"
|
|
></Role-tree>
|
|
<!-- <el-drawer v-if="!disabledXX" -->
|
|
<!-- :title="drawerTitle"-->
|
|
<!-- :visible.sync="modalShowFlag"-->
|
|
<!-- :wrapperClosable="false"-->
|
|
<!-- size="800px">-->
|
|
<!-- <el-input :disabled="disabledXX" -->
|
|
<!-- style="width:70%;padding: 10px"-->
|
|
<!-- placeholder="请输入姓名"-->
|
|
<!-- v-model="filterText">-->
|
|
<!-- </el-input>-->
|
|
<!-- <el-tree-->
|
|
<!-- :filter-node-method="filterNode"-->
|
|
<!-- v-if="modalShowFlag"-->
|
|
<!-- node-key="id"-->
|
|
<!-- style="height: 100%; overflow: auto;"-->
|
|
<!-- class="filter-tree"-->
|
|
<!-- :data="treeData"-->
|
|
<!-- :props="defaultUserProps"-->
|
|
<!-- :default-checked-keys="nodeList"-->
|
|
<!-- highlight-current-->
|
|
<!-- check-strictly-->
|
|
<!-- @check="drawerCheck"-->
|
|
<!-- default-expand-all-->
|
|
<!-- :expand-on-click-node="false"-->
|
|
<!-- show-checkbox-->
|
|
<!-- ref="tree">-->
|
|
<!-- </el-tree>-->
|
|
<!-- <div id="roleFormButton" class="demo-drawer-footer">-->
|
|
<!-- <el-button :disabled="disabledXX" class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="saveUserInfo">确定</el-button>-->
|
|
<!-- <el-button :disabled="disabledXX" class="common-button-default" size="mini" icon="el-icon-close" @click="cancelUserInfo">取消</el-button>-->
|
|
<!-- </div>-->
|
|
<!-- </el-drawer>-->
|
|
<!-- 选择标准的弹框 -->
|
|
<el-drawer v-if="!disabledXX"
|
|
ref="standard"
|
|
title="查询结果"
|
|
size="1300px"
|
|
:visible.sync="standardDrawer"
|
|
direction="rtl"
|
|
:before-close="handleReviseDrawerClose">
|
|
<div class="standard-content">
|
|
<div class="content">
|
|
<div class="standard-table-search">
|
|
<el-form :model="standardSearchForm" inline class="label-input-form search-area"
|
|
style="justify-content:left">
|
|
<!-- <el-form-item label="计划状态" style="margin-right:-20px" prop="planStatus" class="search-item" >-->
|
|
<!-- <el-select :disabled="disabledXX" v-model="standardSearchForm.planStatus" placeholder="请选择计划状态">-->
|
|
<!-- <el-option label="制定" value="2"></el-option>-->
|
|
<!-- <el-option label="修订" value="1"></el-option>-->
|
|
<!-- <el-option label="完成" value="0"></el-option>-->
|
|
<!-- </el-select>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item label="制修订状态" style="margin-right:-20px" prop="reviseStatus" class="search-item" >-->
|
|
<!-- <el-select :disabled="disabledXX" v-model="standardSearchForm.reviseStatus" placeholder="请选择制修订状态">-->
|
|
<!-- <el-option label="制定完成" value="0"></el-option>-->
|
|
<!-- <el-option label="制定中" value="1"></el-option>-->
|
|
<!-- <el-option label="未制定" value="2"></el-option>-->
|
|
<!-- </el-select>-->
|
|
<!-- </el-form-item>-->
|
|
<el-form-item v-if="this.form.reviseStatus != '3'" label="企标名称" style="margin-right:20px"
|
|
prop="esName" class="search-item">
|
|
<el-input :disabled="disabledXX"
|
|
v-model="standardSearchForm.esName"
|
|
placeholder="请输入企标名称"
|
|
clearable
|
|
:maxlength="100"></el-input>
|
|
</el-form-item>
|
|
<el-form-item v-if="this.form.reviseStatus != '3'" label="起草责任单位" style="margin-right:20px"
|
|
prop="unit" class="search-item">
|
|
<el-input :disabled="disabledXX"
|
|
style="width:176px"
|
|
v-model="standardSearchForm.unit"
|
|
placeholder="请输入起草责任单位"
|
|
clearable
|
|
:maxlength="100"></el-input>
|
|
</el-form-item>
|
|
<el-form-item v-if="this.form.reviseStatus === '3'" label="企标编号" style="margin-right:20px"
|
|
prop="unit" class="search-item">
|
|
<el-input :disabled="disabledXX"
|
|
style="width:176px"
|
|
v-model="standardSearchForm.standCode"
|
|
placeholder="请输入企标编号"
|
|
clearable
|
|
:maxlength="100"></el-input>
|
|
</el-form-item>
|
|
<el-form-item v-if="this.form.reviseStatus === '3'" label="起草单位" style="margin-right:20px"
|
|
prop="unit" class="search-item">
|
|
<el-input :disabled="disabledXX"
|
|
style="width:176px"
|
|
v-model="standardSearchForm.QCDW"
|
|
placeholder="请输入起草单位"
|
|
clearable
|
|
:maxlength="100"></el-input>
|
|
</el-form-item>
|
|
<el-form-item v-if="this.form.reviseStatus === '3'" label="中文名称" style="margin-right:20px"
|
|
prop="unit" class="search-item">
|
|
<el-input :disabled="disabledXX"
|
|
style="width:176px"
|
|
v-model="standardSearchForm.standName"
|
|
placeholder="请输入中文名称"
|
|
clearable
|
|
:maxlength="100"></el-input>
|
|
</el-form-item>
|
|
<el-form-item class="search-item btn-box">
|
|
<el-button :disabled="disabledXX"
|
|
type="primary"
|
|
class="common-button-primary"
|
|
size="small"
|
|
@click="handleSearchStandard">
|
|
查询
|
|
</el-button>
|
|
</el-form-item>
|
|
<el-form-item class="search-item btn-box">
|
|
<el-button :disabled="disabledXX"
|
|
class="common-button-default"
|
|
size="small"
|
|
@click="handleResetSearch">清空
|
|
</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
</div>
|
|
<div class="standard-table-wrap">
|
|
<el-table
|
|
ref="reviseDrawerTable"
|
|
:data="tableData.standardData"
|
|
tooltip-effect="dark"
|
|
style="width: 100%;"
|
|
:height="tableHeight.standardTableHeight"
|
|
border
|
|
class="drag-table"
|
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
|
@selection-change="standSelectChange">
|
|
<el-table-column
|
|
type="selection"
|
|
width="55"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
type="index"
|
|
label="序号"
|
|
width="80"
|
|
align="center"
|
|
></el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus === '3'"
|
|
align="center"
|
|
prop="standCode"
|
|
label="企标编号">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus === '3'"
|
|
align="center"
|
|
prop="standName"
|
|
label="中文名称">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus === '3'"
|
|
align="center"
|
|
prop="standStatusShow"
|
|
label="文本状态">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus === '3'"
|
|
align="center"
|
|
prop="dtqbbhbuss"
|
|
label="代替企标编号">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus === '3'"
|
|
align="center"
|
|
prop="issueTime"
|
|
label="发布日期">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus === '3'"
|
|
align="center"
|
|
prop="putTime"
|
|
label="实施日期">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus != '3'"
|
|
prop="bussSort"
|
|
label="企标类别"
|
|
align="center"
|
|
width="120">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus != '3'"
|
|
prop="esName"
|
|
label="企标名称"
|
|
align="center"
|
|
width="120">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus != '3'"
|
|
prop="planStatus"
|
|
label="计划状态"
|
|
align="center"
|
|
width="150">
|
|
<template slot-scope="scope">
|
|
<div>{{ getMap1(scope.row.planStatus)}}</div>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus != '3'"
|
|
prop="reviseStatus"
|
|
width="150"
|
|
align="center"
|
|
label="制修订状态">
|
|
<template slot-scope="scope">
|
|
<div>{{ scope.row.reviseStatus === ''? '' : (scope.row.reviseStatus === '1'? '制定' :
|
|
'修订') }}
|
|
</div>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus != '3'"
|
|
prop="drafterName"
|
|
width="120"
|
|
align="center"
|
|
label="起草人">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus != '3'"
|
|
prop="resPersonName"
|
|
width="120"
|
|
align="center"
|
|
label="评审责任人">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus != '3'"
|
|
prop="wgLeaderName"
|
|
width="120"
|
|
align="center"
|
|
label="工作组组长">
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus != '3'"
|
|
prop="draftTime"
|
|
width="200"
|
|
align="center"
|
|
label="计划标准初稿完成时间">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.draftTime ? $moment(scope.row.draftTime).format("YYYY-MM-DD") : "" }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus != '3'"
|
|
width="200"
|
|
prop="releaseTime"
|
|
align="center"
|
|
label="计划标准发布时间">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.releaseTime ? $moment(scope.row.releaseTime).format("YYYY-MM-DD") : "" }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="this.form.reviseStatus != '3'"
|
|
align="center"
|
|
prop="unitName"
|
|
label="起草责任单位">
|
|
</el-table-column>
|
|
|
|
<!-- <el-table-column-->
|
|
<!-- v-if="this.form.reviseStatus === '3'"-->
|
|
<!-- align="center"-->
|
|
<!-- prop="revisionStatus"-->
|
|
<!-- label="企标制修订状态">-->
|
|
<!-- </el-table-column>-->
|
|
<!-- <el-table-column label="操作" align="center" width="80">-->
|
|
<!-- <template slot-scope="scope">-->
|
|
<!-- <el-button :disabled="disabledXX" -->
|
|
<!-- class="opera-btn"-->
|
|
<!-- size="mini"-->
|
|
<!-- type="primary"-->
|
|
<!-- @click="handlePreview(scope.row)">查看-->
|
|
<!-- </el-button>-->
|
|
<!-- </template>-->
|
|
<!-- </el-table-column>-->
|
|
</el-table>
|
|
</div>
|
|
<pagination
|
|
:page="standardSearchForm.page"
|
|
:total="tableCount"
|
|
@pageChange="handleStandardPageChange"
|
|
@pageSizeChange="handleStandardPageSizeChange"></pagination>
|
|
<loading :loading="loadSarStandard">数据获取中</loading>
|
|
</div>
|
|
</div>
|
|
<div class="demo-drawer-footer">
|
|
<el-button :disabled="disabledXX"
|
|
round
|
|
class="common-button-primary"
|
|
icon="el-icon-check"
|
|
type="primary"
|
|
@click="handleProcessStandardNext(2)">带入
|
|
</el-button>
|
|
<el-button :disabled="disabledXX"
|
|
round
|
|
class="common-button-default"
|
|
icon="el-icon-close"
|
|
@click="handleProcessStandardNext(3)">取消
|
|
</el-button>
|
|
</div>
|
|
</el-drawer>
|
|
<Mechanism-tree v-if="!disabledXX"
|
|
is-title="选择部门信息"
|
|
:is-visible.sync="modalShowFlagZRBM"
|
|
:nodeList="nodeListZRBM"
|
|
@checkedRole="drawerCheckZRBM"
|
|
/>
|
|
<!-- 组件树-->
|
|
<tree-select-new v-if="!disabledXX"
|
|
:multiple=false
|
|
:lazy=false
|
|
:modalShowFlag="modalShowFlag1"
|
|
:drawerTitle="drawerTitle"
|
|
width="500"
|
|
:data="standSystemOptions"
|
|
:defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys"
|
|
:nodeKey="nodeKey" @popoverHide="popoverHide"
|
|
@popoverHideCancel="popoverHideCancel"></tree-select-new>
|
|
<tree-select-new v-if="!disabledXX"
|
|
width="500"
|
|
:lazy=true
|
|
:multiple="multipleFlag2"
|
|
:check-strictly=true
|
|
:modalShowFlag="modalShowFlag2"
|
|
:drawerTitle="drawerTitle"
|
|
:type="type"
|
|
:url="url"
|
|
:urlChild="urlChild"
|
|
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1"
|
|
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs"
|
|
@popoverHideCancel="popoverHideBusVsCancel"></tree-select-new>
|
|
<tree-select-new v-if="!disabledXX"
|
|
width="500"
|
|
:lazy=true
|
|
:multiple=true
|
|
:check-strictly=true
|
|
:modalShowFlag="modalShowFlag3"
|
|
:drawerTitle="drawerTitle"
|
|
:url="url"
|
|
:type="'truck'"
|
|
:urlChild="urlChild"
|
|
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
|
|
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs"
|
|
@popoverHideCancel="popoverHideCarVsCancel()"></tree-select-new>
|
|
<tree-select-module v-if="!disabledXX"
|
|
width="500"
|
|
:lazy=true
|
|
:multiple=true
|
|
:check-strictly=true
|
|
:modalShowFlag="modalShowFlag4"
|
|
:drawerTitle="drawerTitle"
|
|
:url="url"
|
|
:urlChild="urlChild"
|
|
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
|
|
:nodeKey="nodeKeyModel" @popoverHide="popoverHideModel"
|
|
@popoverHideCancel="popoverHideModelCancel()"></tree-select-module>
|
|
<tree-select-module v-if="!disabledXX"
|
|
width="500"
|
|
:lazy=true
|
|
:multiple=true
|
|
:check-strictly=true
|
|
:modalShowFlag="modalShowFlag5"
|
|
:drawerTitle="drawerTitle"
|
|
:url="url"
|
|
:type="modelType"
|
|
:urlChild="urlChild"
|
|
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys4"
|
|
:nodeKey="nodeKeyModel" @popoverHide="popoverCarHideModel"
|
|
@popoverHideCancel="popoverCarHideModelCancel()"></tree-select-module>
|
|
<loading :loading="ccc">加载数据</loading>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ProcessHeader from '../../components/ProcessHeader'
|
|
import ProcessFooter from '../../components/ProcessFooter'
|
|
import ProcessTitle from '../../components/ProcessTitle'
|
|
import {
|
|
saveTaskFirst,
|
|
updateBusProcessNew,
|
|
queryTaskFirst,
|
|
getBusStandFileByAttId,
|
|
taskDel,
|
|
inboundLiaisonDetail,
|
|
execTask
|
|
} from "api/process";
|
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
|
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
|
import treeSelectModule from "@/components/treeSelect/treeSelectModule.vue";
|
|
|
|
let Base64 = require('js-base64').Base64;
|
|
|
|
export default {
|
|
name: "bussLibrary1",
|
|
components: {
|
|
ProcessHeader,
|
|
ProcessFooter,
|
|
ProcessTitle,
|
|
TreeSelect,
|
|
TreeSelectNew,
|
|
treeSelectModule
|
|
},
|
|
filters: {
|
|
ellipsis(value) {
|
|
if (!value) return ''
|
|
if (value.length > 35) {
|
|
return value.slice(0, 35) + '...'
|
|
}
|
|
return value
|
|
}
|
|
},
|
|
data() {
|
|
const validateZrUserIdName = (rule, value, callback) => {
|
|
if (this.FBGBUSSFileList.length === 0) {
|
|
callback(new Error('请上传发布稿文件!'))
|
|
}
|
|
// callback()
|
|
};
|
|
|
|
const validateStandName = (rule, value, callback) => {
|
|
if (this.form.planId === undefined || this.form.planId === null || this.form.planId === '') {
|
|
callback(new Error('请先选择企标计划带入企标名称!'))
|
|
} else if (value === undefined || value === null || value === '') {
|
|
callback(new Error('请输入企标名称!'))
|
|
} else {
|
|
callback()
|
|
}
|
|
};
|
|
|
|
const validateStandSort = (rule, value, callback) => {
|
|
if (this.form.planId === undefined || this.form.planId === null || this.form.planId === '') {
|
|
callback(new Error('请先选择企标计划带入企标类别!'))
|
|
} else if (value === undefined || value === null || value === '') {
|
|
callback(new Error('请选择企标类别!'))
|
|
} else {
|
|
callback()
|
|
}
|
|
callback()
|
|
};
|
|
|
|
const validateModelName = (rule, value, callback) => {
|
|
if (this.FBGBUSSFileList.length === 0) {
|
|
callback(new Error('请上传发布稿文件!'))
|
|
}
|
|
// callback()
|
|
};
|
|
const validateFBGBUSS = (rule, value, callback) => {
|
|
// if(this.FBGBUSSFileList.length === 0){
|
|
// callback(new Error('请上传发布稿文件!'))
|
|
// }
|
|
callback()
|
|
};
|
|
const validateBZSMBUSS = (rule, value, callback) => {
|
|
if (this.BZSMBUSSFileList.length === 0) {
|
|
callback(new Error('请上传编辑说明文件!'))
|
|
}
|
|
callback()
|
|
};
|
|
return {
|
|
pickerOptions: {
|
|
shortcuts: [{
|
|
text: '最近一周',
|
|
onClick(picker) {
|
|
const end = new Date();
|
|
const start = new Date();
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
picker.$emit('pick', [start, end]);
|
|
}
|
|
}, {
|
|
text: '最近一个月',
|
|
onClick(picker) {
|
|
const end = new Date();
|
|
const start = new Date();
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
picker.$emit('pick', [start, end]);
|
|
}
|
|
}, {
|
|
text: '最近三个月',
|
|
onClick(picker) {
|
|
const end = new Date();
|
|
const start = new Date();
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
picker.$emit('pick', [start, end]);
|
|
}
|
|
}]
|
|
},
|
|
ccc: false,
|
|
disabledXX: !!this.$route.query.disabledXX,
|
|
bpnId: this.$route.query.bpnId,
|
|
opinionsStand: [
|
|
{value: '1', label: '制定'},
|
|
{value: '2', label: '修订'},
|
|
{value: '3', label: '修改'},
|
|
],
|
|
fileList: [],
|
|
FBGBUSSFileList: [],
|
|
BZSMBUSSFileList: [],
|
|
LSBBBUSSFileList: [],
|
|
QTWJBUSSFileList: [],
|
|
GLWJBUSSFileList: [],
|
|
caFileList: [],
|
|
FBGBJBDFileList: [],
|
|
xgdFileList: [],
|
|
ZCWBLAWSFileList: [],
|
|
GCWBLAWSFileList: [],
|
|
JDWJLAWSFileList: [],
|
|
GLWJLAWSFileList: [],
|
|
ssgFileList: [],
|
|
zqyjgFileList: [],
|
|
jdwjFileList: [],
|
|
zbjbdFileList: [],
|
|
kwjFileList: [],
|
|
glwjFileList: [],
|
|
filterText: '',
|
|
todoId: '',
|
|
nowEsId: '',
|
|
esId1: '',
|
|
esId2: '',
|
|
textStatusMap: {}, // 文本状态id与name对应
|
|
standardDrawer: false,
|
|
loadSarStandard: false,
|
|
verifySarStandard: true,
|
|
standardSearchForm: {
|
|
standName: '',
|
|
standCode: '',
|
|
QCDW: '',
|
|
page: 1,
|
|
pageSize: this.$store.getters.userInfo.configContent,
|
|
unit: '',
|
|
esName: '',
|
|
planStatus: '0,3,6',
|
|
reviseStatus: '',
|
|
},
|
|
tableData: {
|
|
// 标准表格数据
|
|
standardData: [],
|
|
// 任务分解单数据
|
|
taskTableData: []
|
|
},
|
|
tableCount: 0,
|
|
tableHeight: {
|
|
standardTableHeight: null
|
|
},
|
|
selectedList: [],
|
|
standardCheckedList: [],
|
|
activeName: '1',
|
|
roleRow: {},
|
|
commentText: '', // 意见
|
|
title: '', // 新增编辑抽屉标题
|
|
config: {
|
|
attrName: '',
|
|
},
|
|
dataSource: false,
|
|
replaceLawsNumModel: false,
|
|
replaceLawType: '',
|
|
sarBussionessLawsEO: {
|
|
replaceLawsNum: ''
|
|
},
|
|
// 代替标准号
|
|
replaceLawsNumForm: {
|
|
lawsNumber: '',
|
|
numberName: '',
|
|
lawsTextState: '',
|
|
dataSource: '',
|
|
standNumber: '', // 标准编号
|
|
page: 1,
|
|
pageSize: this.$store.getters.userInfo.configContent,
|
|
total: 0,
|
|
standType: 'BUSINESS',
|
|
quoteIdList: '',
|
|
validFlag: '0',
|
|
menuId: 'nomenu'
|
|
},
|
|
replaceLawsNumRow: [], // 代替政策号 数组内容
|
|
replaceTotal: 0,
|
|
selectedListRep: [],
|
|
replaceLoading: true,
|
|
replacePage: 1,
|
|
ListModel: false, // 新增编辑抽屉开关
|
|
active: '1', // 默认显示
|
|
isSubmit: false,
|
|
saveLoading: false,
|
|
defaultProps: {
|
|
children: 'children',
|
|
label: 'menuName'
|
|
},
|
|
defaultCodeProps: {
|
|
children: 'children',
|
|
label: 'code'
|
|
},
|
|
defaultModelProps: {
|
|
children: 'children',
|
|
label: 'model'
|
|
},
|
|
modalShowFlagZRBM: false,
|
|
nodeListZRBM: [],
|
|
nodeList: [],
|
|
nodeList2: [],
|
|
zrType: '',
|
|
zrIndex: '',
|
|
zrIdList: [],
|
|
type: '',
|
|
taskType: '',
|
|
defaultUserProps: {
|
|
children: 'children',
|
|
label: 'name'
|
|
},
|
|
key: 1,
|
|
key1: 2,
|
|
key2: 3,
|
|
key3: 4,
|
|
treeData: [], // 人员数据
|
|
modalShowFlag: false, // drawer开关
|
|
showreceive: false,
|
|
modalShowRoleFlag: false, // drawer开关
|
|
modalShowFlag1: false, // drawer开关
|
|
modalShowFlag2: false, // drawer开关
|
|
modalShowFlag3: false, // drawer开关
|
|
modalShowFlag4: false, // drawer开关
|
|
modalShowFlag5: false, // drawer开关
|
|
drawerTitle1: '',
|
|
multipleFlag2: '',
|
|
url: '',
|
|
urlChild: '',
|
|
modelType: '',
|
|
drawerTitle: '', //drawer标题
|
|
showCheckBox: true, // 树形控件是否展示多选框
|
|
nodeKey: 'id',
|
|
defaultCheckedKeys: [],
|
|
nodeKeyCode: 'code',
|
|
nodeKeyModel: 'model',
|
|
defaultCheckedKeys1: [],
|
|
defaultCheckedKeys2: [],
|
|
defaultCheckedKeys3: [],
|
|
defaultCheckedKeys4: [],
|
|
fileUrl: 'api/att/attFile/uploadNew',
|
|
fileMadel: false,
|
|
fileType: '',
|
|
countryArr: '',
|
|
commentCycleDate: '',
|
|
planDisabled: true,
|
|
form: {
|
|
fsRejectStatus: '',
|
|
planId: '',
|
|
planStatus: '',
|
|
reviseStatus: '',
|
|
modelData: [],
|
|
modelDataNameVerify: [],
|
|
modelDataZrUserVerify: [],
|
|
// 基础信息
|
|
country: [],
|
|
// 基础信息
|
|
standSort: '',
|
|
standCode: '',
|
|
standYear: '',
|
|
standName: '',
|
|
standEnName: '',
|
|
textStatusBuss: '',
|
|
issueTime: '',
|
|
putTime: '',
|
|
FZRQBUSS: '',
|
|
FSRQBUSS: '',
|
|
// 过程稿件
|
|
FBGBUSS: '',
|
|
FBGBUSSName: '',
|
|
BZSMBUSS: '',
|
|
BZSMBUSSName: '',
|
|
LSBBBUSS: '',
|
|
LSBBBUSSName: '',
|
|
QTWJBUSS: '',
|
|
QTWJBUSSName: '',
|
|
// 适用范围
|
|
QCDW: '',
|
|
QCDWID: '',
|
|
QCRBUSS: '',
|
|
QCRBUSSID: '',
|
|
WJSCRYBUSS: this.$store.getters.userInfo.userId,
|
|
WJSCRYBUSSName: this.$store.getters.userInfo.userName,
|
|
SYCXCLASS: '',
|
|
NYLXCLASS: '',
|
|
SYCPXCLASS: '',
|
|
TXLBBUSS: '',
|
|
VPPSBMBUSS: '',
|
|
VPPSCNBUSS: '',
|
|
KCVPPSBMBUSS: '',
|
|
KCVPPSCNBUSS: '',
|
|
CYCVPPSBMBUSS: '',
|
|
CYCVPPSCNBUSS: '',
|
|
DYBXHBUSS: '',
|
|
DYMCBUSS: '',
|
|
// 关联信息
|
|
DTQBBHBUSS: '',
|
|
BDTQBBHBUSS: '',
|
|
XGJLBUSS: '',
|
|
XGLC: '',
|
|
GLWJBUSS: '',
|
|
GLWJBUSSName: '',
|
|
XCSJBUSS: this.dateFormatter(),
|
|
CYCD: '',
|
|
CYBZ: '',
|
|
YYBZ: '',
|
|
standNum: '',
|
|
}, // 标准信息
|
|
roleForm: {
|
|
cfqUserId: this.$store.getters.userInfo.userId,
|
|
cfqUserName: this.$store.getters.userInfo.userName,
|
|
hzUserId: this.$store.getters.userInfo.userId,
|
|
hzUserName: this.$store.getters.userInfo.userName,
|
|
xdUserId: this.$store.getters.userInfo.userId,
|
|
xdUserName: this.$store.getters.userInfo.userName,
|
|
pxUserId: this.$store.getters.userInfo.userId,
|
|
pxUserName: this.$store.getters.userInfo.userName,
|
|
fbUserId: '',
|
|
fbUserName: '',
|
|
qcUserId: '', // 多实例
|
|
qcUserName: '', // 多实例
|
|
bzhUserId: '',
|
|
bzhUserName: '',
|
|
hqUserId: '', // 多实例
|
|
hqUserName: '', // 多实例
|
|
fggcsUserId: '',
|
|
fggcsUserName: '',
|
|
jsfzrUserId: '',
|
|
jsfzrUserName: '',
|
|
bzUserId: '',
|
|
bzUserName: '',
|
|
fzrUserId: '',
|
|
fzrUserName: '',
|
|
zhrUserId: '',
|
|
zhrUserName: '',
|
|
zrUserId: '',
|
|
zrUserName: '',
|
|
jlUserId: '',
|
|
jlUserName: '',
|
|
applyUpdUserId: this.$store.getters.userInfo.userId,
|
|
applyUpdUserName: this.$store.getters.userInfo.userName,
|
|
prcCreateUser: this.$store.getters.userInfo.userId,
|
|
prcCreateUserName: this.$store.getters.userInfo.userName,
|
|
},
|
|
modelRules: {
|
|
zrUserIdName: [
|
|
{required: true, message: '选择会签征求意见人员', trigger: 'blur'},
|
|
],
|
|
modelName: [
|
|
{required: true, message: '选择维护模块名称', trigger: 'blur'},
|
|
],
|
|
},
|
|
roleRules: {
|
|
qcUserName: [
|
|
{required: true, message: '选择其他起草人', trigger: 'blur'},
|
|
],
|
|
bzhUserName: [
|
|
{required: true, message: '选择总院各中心兼职标准化员/各事业部标准化员', trigger: 'blur'},
|
|
],
|
|
hqUserName: [
|
|
{
|
|
required: true,
|
|
message: '选择张建芳、蒋敏、吴娟、李中立、尧燕、耿红静、赵淑珍、符清萍、杨卫利、技术委员会相关成员、总院相关中心总工及四五级工程师',
|
|
trigger: 'blur'
|
|
},
|
|
],
|
|
fggcsUserName: [
|
|
{required: true, message: '选择标准法规工程师', trigger: 'blur'},
|
|
],
|
|
jsfzrUserName: [
|
|
{required: true, message: '选择起草单位高级经理', trigger: 'blur'},
|
|
],
|
|
bzUserName: [
|
|
{required: true, message: '选择标准法规部高级经理', trigger: 'blur'},
|
|
],
|
|
fzrUserName: [
|
|
{required: true, message: '选择起草单位中心主任', trigger: 'blur'},
|
|
],
|
|
zhrUserName: [
|
|
{
|
|
required: true,
|
|
message: '选择总院技术委员会覆盖领域企业标准:专委会主任;总院技术委员会未覆盖领域企业标准:总院院长或总院主管副院长',
|
|
trigger: 'blur'
|
|
},
|
|
],
|
|
fbUserName: [
|
|
{required: true, message: '选择标准法规工程师', trigger: 'blur'},
|
|
],
|
|
},
|
|
rules: {
|
|
zrUserIdName: [
|
|
{required: true, message: '请选择会签责任人', validator: validateZrUserIdName, trigger: 'blur'},
|
|
],
|
|
modelName: [
|
|
{required: true, message: '选择维护模块名称', validator: validateModelName, trigger: 'blur'},
|
|
],
|
|
// standSort: [
|
|
// { required: true, validator:validateStandSort,trigger: 'change' }
|
|
// ],
|
|
standNumber: [
|
|
{required: true, message: '请输入企标编号', trigger: 'blur'},
|
|
{min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur'},
|
|
],
|
|
standYear: [
|
|
{required: true, message: '请输入标准年份'},
|
|
{min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur'},
|
|
],
|
|
// standName: [
|
|
// { required: true, validator:validateStandName, trigger: 'blur' },
|
|
// { min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' },
|
|
// {validator: this.verify.checkSpecialCharacterOftags, trigger: 'change'}
|
|
// ],
|
|
standEnName: [
|
|
{required: false, message: '请输入企标英文名称', trigger: 'blur'},
|
|
{min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur'},
|
|
{validator: this.verify.valiateEnName, trigger: 'change'}
|
|
],
|
|
textStatusBuss: [
|
|
{required: true, message: '请选择文本状态', trigger: 'change'}
|
|
],
|
|
issueTime: [
|
|
{required: false, message: '请选择企标发布日期', trigger: 'change'}
|
|
],
|
|
// putTime: [
|
|
// {required: true, message: '请选择企标实施日期', trigger: 'change'}
|
|
// ],
|
|
FBGBUSSName: [
|
|
{required: false, message: '请上传发布稿', validator: validateFBGBUSS, trigger: 'blur'}
|
|
],
|
|
BZSMBUSSName: [
|
|
{required: true, message: '请上传编制说明', validator: validateBZSMBUSS, trigger: 'blur'}
|
|
],
|
|
QCDW: [
|
|
{required: true, message: '请选择起草部门', trigger: 'change'}
|
|
],
|
|
QCRBUSS: [
|
|
{required: true, message: '请选择起草人', trigger: 'change'}
|
|
],
|
|
// DTQBBHBUSS: [
|
|
// { required: true, message: '请选择代替企标编号', trigger: 'change' }
|
|
// ],
|
|
DTQBBHBUSSNot: [],
|
|
},
|
|
zrUserIds: [], // 选择多个会签责任人
|
|
userType: '', // 选择用户ID判断
|
|
countryOptions: [],//国家地区
|
|
standSortOptions: [], // 标准类别
|
|
standNatureOptions: [], // 标准性质
|
|
standStateOptions: [], // 文本状态
|
|
standSystemOptions: [], // 标准体系
|
|
busVppsOptions: [], // 车系体系架构
|
|
busVppsChildOptions: [], // 车系体系架构子集合
|
|
modelOptions: [], // 模块体系架构
|
|
modelChildOptions: [], // 模块体系架构子集合
|
|
applyArcticOptions: [], // 适用车型
|
|
gkglbmOptions: [], // 归口管理部门
|
|
categoryOptions: [], // 能源类型
|
|
applyAuthOptions: [], // 适用认证
|
|
cysdOptions: [], // 我司参与深度
|
|
cbcdOptions: [], // 采标程度
|
|
wssmrOptions: [], // 我司署名人
|
|
sycpxOptions: [], // 适用产品线
|
|
zrbmOptions: [], // 责任部门
|
|
zrgcsOptions: [], // 责任工程师
|
|
qcdwOption: [], // 起草单位
|
|
txlbOptions: [], // 体系类别
|
|
standSortConfigOptions: [], // 标准类别下拉框
|
|
adoptExtentOptions: [], // 采标程度下拉框
|
|
emergyKindOptions: [], // 能源种类下拉框
|
|
categoryConfigOptions: [], // 所属类别下拉框
|
|
assemClassOptions: [], // 总成分类下拉框
|
|
qcdwOptions: [],//起草单位下拉框
|
|
qcrOptions: [],//起草人下拉框
|
|
nylxOptions: [],//能源类型下拉框
|
|
syrzOptions: [],//适用认证下拉框
|
|
data: [], // 标准列表数据
|
|
ListForm: {}, // 新增数据
|
|
}
|
|
},
|
|
watch: {
|
|
'form.issueTime': {
|
|
handler: function () {
|
|
if (this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== '') {
|
|
let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
|
|
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
|
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
|
|
|
let year = date.getFullYear() + 5;
|
|
let month = (date.getMonth() + 1).toString();
|
|
let day = (date.getDate()).toString();
|
|
if (month.length == 1) {
|
|
month = "0" + month;
|
|
}
|
|
if (day.length == 1) {
|
|
day = "0" + day;
|
|
}
|
|
const FSRQBUSS = year + "-" + month + "-" + day;
|
|
this.form["FSRQBUSS"] = FSRQBUSS
|
|
|
|
}
|
|
},
|
|
},
|
|
'form.country': {
|
|
handler(val) {
|
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
|
if (val instanceof Array) {
|
|
this.countryArr = val.join(",");
|
|
} else {
|
|
this.countryArr = val
|
|
}
|
|
} else if (val === '') {
|
|
this.countryArr = []
|
|
}
|
|
}
|
|
},
|
|
'roleForm.qcUserName': {
|
|
handler(val) {
|
|
console.log(val)
|
|
}
|
|
},
|
|
filterText(val) {
|
|
this.$refs.tree.filter(val);
|
|
},
|
|
// 'form.standName': {
|
|
// handler: function (val) {
|
|
// if (val && val !== '') {
|
|
// this.form.FBGBUSSName = val
|
|
// this.FBGBUSSFileList = []
|
|
// this.FBGBUSSFileList = this.assemble(this.form.FBGBUSS, val);
|
|
// } else {
|
|
// this.form.FBGBUSSName = '企业标准'
|
|
// this.FBGBUSSFileList = []
|
|
// this.FBGBUSSFileList = this.assemble(this.form.FBGBUSS, '企业标准');
|
|
// }
|
|
// }
|
|
// },
|
|
},
|
|
methods: {
|
|
getMap1(item) {
|
|
const map = new Map();
|
|
map.set('0', '未开始')
|
|
map.set('1', '制定中')
|
|
map.set('2', '修订中')
|
|
map.set('3', '已取消')
|
|
map.set('4', '已完成')
|
|
map.set('5', '立项已完成')
|
|
map.set('6', '计划已确认')
|
|
return map.get(item)
|
|
},
|
|
modelProp(row, index) {
|
|
console.log(row)
|
|
console.log(index)
|
|
if (row.pid === '0') {
|
|
console.log('modelData.' + index + '.modelName')
|
|
return 'modelData.' + index + '.modelName';
|
|
} else {
|
|
let propStr = "";
|
|
const indexList = row.modelIndex.split(",");
|
|
for (let i = 0; i < indexList.length; i++) {
|
|
if (i === 0) {
|
|
propStr += 'modelData.' + indexList[i]
|
|
} else {
|
|
propStr += '.children.' + indexList[i]
|
|
}
|
|
}
|
|
console.log(propStr + '.modelName')
|
|
return propStr + '.modelName';
|
|
}
|
|
},
|
|
modelNameFunc(row) {
|
|
if (row.modelName && row.modelName !== '') {
|
|
row.disabled = true
|
|
}
|
|
},
|
|
//判断是否可选
|
|
checkSelect(row, index) {
|
|
let isChecked = true;
|
|
if (row.pid !== '0') { // 判断里面是否存在某个参数
|
|
isChecked = false
|
|
} else {
|
|
isChecked = true
|
|
}
|
|
return isChecked
|
|
},
|
|
handleDelete(val, row) {
|
|
console.log(row)
|
|
console.log(this.form.modelData)
|
|
// 模态框删除按钮
|
|
this.$confirm("是否确认删除本条数据?", "提示", {
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
type: "info"
|
|
}).then(() => {
|
|
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
|
const ids = []
|
|
ids.push(row.id)
|
|
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData, ids))
|
|
console.log(this.form.modelData)
|
|
this.$message({
|
|
message: "删除成功",
|
|
type: "success",
|
|
duration: 2000
|
|
});
|
|
this.$forceUpdate()
|
|
});
|
|
},
|
|
handleSelectionChange(val) {
|
|
this.zrIdList = []
|
|
val.forEach(item => {
|
|
this.zrIdList.push(item.id)
|
|
})
|
|
},
|
|
createRow() {
|
|
// 创建行
|
|
// if (this.diaTable.length >= 6) { // 判断当前表格是否可继续创建
|
|
// this.$message({
|
|
// message: "超出数量,无法创建",
|
|
// type: "info",
|
|
// duration: 2000
|
|
// });
|
|
// return false;
|
|
// }
|
|
const list = {
|
|
id: this.form.modelData.length + 1,
|
|
modelNum: this.form.modelData.length + 1 + '',
|
|
orderNum: this.form.modelData.length + 1, // orderNum为新创建行的索引
|
|
pid: '0',
|
|
modelIndex: this.form.modelData.length,
|
|
disabled: false,
|
|
modelName: "",
|
|
modelContent: "",
|
|
zrUserId: "",
|
|
zrUserIdName: "",
|
|
children: [],
|
|
};
|
|
this.form.modelData.push(list);
|
|
},
|
|
createChildRow(index, row) {
|
|
// 创建行
|
|
// if (this.diaTable.length >= 6) { // 判断当前表格是否可继续创建
|
|
// this.$message({
|
|
// message: "超出数量,无法创建",
|
|
// type: "info",
|
|
// duration: 2000
|
|
// });
|
|
// return false;
|
|
// }
|
|
const list = {
|
|
id: row.modelNum + '.' + (row.children.length + 1),
|
|
modelNum: row.modelNum + '.' + (row.children.length + 1),
|
|
orderNum: row.children.length + 1, // orderNum为新创建行的索引
|
|
pid: row.modelNum,
|
|
modelIndex: row.children.length,
|
|
disabled: false,
|
|
modelName: "",
|
|
modelContent: "",
|
|
zrUserId: "",
|
|
zrUserIdName: "",
|
|
children: [],
|
|
};
|
|
row.children.push(list)
|
|
},
|
|
dateFormatter() {
|
|
//默认返回yyyy-MM-dd HH-mm-ss
|
|
const d = new Date();
|
|
const year = d.getFullYear();//得到年
|
|
const month = (d.getMonth() + 1) < 10 ? '0' + (d.getMonth() + 1) : (d.getMonth() + 1);//得到月
|
|
const day = d.getDate() < 10 ? '0' + d.getDate() : d.getDate();//得到日
|
|
const hour = d.getHours() < 10 ? '0' + d.getHours() : d.getHours();//得到时
|
|
const minute = d.getMinutes() < 10 ? '0' + d.getMinutes() : d.getMinutes();//得到分
|
|
const second = d.getSeconds() < 10 ? '0' + d.getSeconds() : d.getSeconds();//得到秒
|
|
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//格式为:YY-MM-DD hh:mm:ss(当前时间)
|
|
},
|
|
// choiceZRRS () {
|
|
// if (this.userType === 'zrUserId') {
|
|
// this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
|
// this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
|
// }
|
|
// this.modalshowflag2 = true
|
|
// },
|
|
checkedRole2(data) {
|
|
let idList = ''
|
|
let nameList = ''
|
|
data.forEach(item => {
|
|
if (nameList.length > 0) {
|
|
nameList += ','
|
|
idList += ','
|
|
}
|
|
idList += item.id
|
|
nameList += item.name
|
|
})
|
|
if (this.userType === 'qcUserId') {
|
|
this.roleForm.qcUserId = idList;
|
|
this.roleForm.qcUserName = nameList;
|
|
} else if (this.userType === 'hqUserId') {
|
|
this.roleForm.hqUserId = idList;
|
|
this.roleForm.hqUserName = nameList;
|
|
} else if (this.userType === 'QCRBUSS') {
|
|
this.form.QCRBUSSID = idList;
|
|
this.form.QCRBUSS = nameList;
|
|
if (data && data.length > 0) {
|
|
console.log(data)
|
|
const institutionIdList = this.unique(data.map(item => item.topUnitId)).join(",")
|
|
const institutionNameList = this.unique(data.map(item => item.topUnit)).join(",")
|
|
this.form.QCDWID = institutionIdList
|
|
this.form.QCDW = institutionNameList
|
|
}
|
|
} else if (this.userType === 'bzUserId') {
|
|
this.roleForm.bzUserId = idList
|
|
this.roleForm.bzUserName = nameList
|
|
}
|
|
|
|
this.modalShowRoleFlag = false
|
|
},
|
|
unique(newArr) {
|
|
const res = new Map();
|
|
return newArr.filter((newArr) => !res.has(newArr) && res.set(newArr, 1));
|
|
},
|
|
checkedRole(data) {
|
|
if (this.type === 0) {
|
|
this.roleForm.deptUserId = data[0].id
|
|
this.roleForm.deptUserIdName = data[0].name
|
|
} else if (this.type === 1) {
|
|
this.form.modelData[this.zrIndex].zrUserId = data[0].id
|
|
this.form.modelData[this.zrIndex].zrUserIdName = data[0].name
|
|
} else {
|
|
try{
|
|
this.form.modelData.forEach(item => {
|
|
this.zrIdList.forEach(items => {
|
|
if (item.id === items) {
|
|
item.zrUserId = data[0].id
|
|
item.zrUserIdName = data[0].name
|
|
}
|
|
})
|
|
})
|
|
}catch(e){
|
|
console.log(e)
|
|
}
|
|
}
|
|
if (this.userType === 'bzhUserId') {
|
|
this.roleForm.bzhUserId = data[0].id
|
|
this.roleForm.bzhUserName = data[0].name
|
|
} else if (this.userType === 'fggcsUserId') {
|
|
console.log(data)
|
|
this.roleForm.fggcsUserId = data[0].id
|
|
this.roleForm.fggcsUserName = data[0].name
|
|
} else if (this.userType === 'jsfzrUserId') {
|
|
this.roleForm.jsfzrUserId = data[0].id
|
|
this.roleForm.jsfzrUserName = data[0].name
|
|
} else if (this.userType === 'bzUserId') {
|
|
this.roleForm.bzUserId = data[0].id
|
|
this.roleForm.bzUserName = data[0].name
|
|
} else if (this.userType === 'fzrUserId') {
|
|
this.roleForm.fzrUserId = data[0].id
|
|
this.roleForm.fzrUserName = data[0].name
|
|
} else if (this.userType === 'zhrUserId') {
|
|
this.roleForm.zhrUserId = data[0].id
|
|
this.roleForm.zhrUserName = data[0].name
|
|
} else if (this.userType === 'qcUserId') {
|
|
this.roleForm.qcUserId = data[0].id
|
|
this.roleForm.qcUserName = data[0].name
|
|
} else if (this.userType === 'pxUserId') {
|
|
this.roleForm.pxUserId = data[0].id
|
|
this.roleForm.pxUserName = data[0].name
|
|
} else if (this.userType === 'fbUserId') {
|
|
this.roleForm.fbUserId = data[0].id
|
|
this.roleForm.fbUserName = data[0].name
|
|
}
|
|
this.modalShowFlag = false
|
|
},
|
|
// 责任人会签姓名搜索
|
|
filterNode(value, data) {
|
|
if (!value) return true;
|
|
return data.name.indexOf(value) !== -1;
|
|
},
|
|
getTaskId() {
|
|
if (this.$route.query.bpnId) {
|
|
this.ccc = true
|
|
queryTaskFirst({
|
|
bpnId: this.$route.query.bpnId
|
|
}).then(res => {
|
|
this.verifySarStandard = this.$route.query.verifySarStandard
|
|
let mes = JSON.parse(res.mes)
|
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
|
this.form = mes.form
|
|
this.form.XCSJBUSS = this.dateFormatter()
|
|
this.FBGBUSSFileList = this.assemble(this.form.FBGBUSS, this.form.FBGBUSSName);
|
|
this.BZSMBUSSFileList = this.assemble(this.form.BZSMBUSS, this.form.BZSMBUSSName);
|
|
this.LSBBBUSSFileList = this.assemble(this.form.LSBBBUSS, this.form.LSBBBUSSName);
|
|
this.QTWJBUSSFileList = this.assemble(this.form.QTWJBUSS, this.form.QTWJBUSSName);
|
|
this.GLWJBUSSFileList = this.assemble(this.form.GLWJBUSS, this.form.GLWJBUSSName);
|
|
this.roleForm = mes.roleForm
|
|
this.commentText = mes.commentText
|
|
this.ccc = false
|
|
})
|
|
} else {
|
|
this.form.XCSJBUSS = this.dateFormatter()
|
|
}
|
|
},
|
|
assemble(ids, names) {
|
|
let list = new Array();
|
|
if (ids && ids !== '' && names && names !== '') {
|
|
let idArray = ids.split(',');
|
|
let nameArray = names.split(',');
|
|
for (let i = 0; i < idArray.length; i++) {
|
|
list.push({id: idArray[i], name: nameArray[i]});
|
|
}
|
|
}
|
|
return list;
|
|
},
|
|
// 将文本状态的id与name对应
|
|
setMap(data) {
|
|
data.forEach(item => {
|
|
this.$set(this.textStatusMap, item.value, item.label)
|
|
})
|
|
|
|
},
|
|
clearFormData(data) {
|
|
this.form = {
|
|
// 基础信息
|
|
standInData: data.standInData ? data.standInData : '0', // 标准类型
|
|
standSort: data.standSort ? data.standSort : '', // 标准类别
|
|
standNumber: data.standNumber ? data.standNumber : '', // 标准编号
|
|
standNature: data.standNature ? data.standNature : '', // 标准性质
|
|
standEnName: data.standEnName ? data.standEnName : '', // 英文名称
|
|
standName: data.standName ? data.standName : '', // 中文名称
|
|
signFlag: data.signFlag ? data.signFlag : '1', // 是否需要会签
|
|
// 基础信息
|
|
standCode: '',
|
|
standYear: '',
|
|
textStatusBuss: '',
|
|
issueTime: '',
|
|
putTime: '',
|
|
FZRQBUSS: '',
|
|
FSRQBUSS: '',
|
|
// 过程稿件
|
|
FBGBUSS: '',
|
|
FBGBUSSName: '',
|
|
BZSMBUSS: '',
|
|
BZSMBUSSName: '',
|
|
LSBBBUSS: '',
|
|
LSBBBUSSName: '',
|
|
QTWJBUSS: '',
|
|
QTWJBUSSName: '',
|
|
// 适用范围
|
|
QCDW: '',
|
|
QCRBUSS: '',
|
|
WJSCRYBUSS: '',
|
|
SYCXCLASS: '',
|
|
NYLXCLASS: '',
|
|
SYCPXCLASS: '',
|
|
TXLBBUSS: '',
|
|
VPPSBMBUSS: '',
|
|
VPPSCNBUSS: '',
|
|
// 关联信息
|
|
DTQBBHBUSS: '',
|
|
BDTQBBHBUSS: '',
|
|
XGJLBUSS: '',
|
|
XGLC: '',
|
|
GLWJBUSS: '',
|
|
GLWJBUSSName: '',
|
|
XCSJBUSS: this.dateFormatter(),
|
|
} // 标准信息
|
|
},
|
|
filterObj(obj) {
|
|
if (obj && obj !== '') {
|
|
if (obj instanceof Array) {
|
|
return obj;
|
|
} else {
|
|
return obj.split(",")
|
|
}
|
|
}
|
|
return "";
|
|
},
|
|
filterDate(data) {
|
|
if (data === undefined || data === null || data === '' || data === 'null') {
|
|
return ""
|
|
} else if (data.toString().indexOf(",") !== -1) {
|
|
data = data.toString().split(",")
|
|
} else {
|
|
data = data.toString()
|
|
}
|
|
return data
|
|
},
|
|
filterStringDate(data) {
|
|
if (data === undefined || data === null || data === '' || data === 'null') {
|
|
return ""
|
|
} else {
|
|
data = data.toString()
|
|
}
|
|
return data
|
|
},
|
|
handleProcessStandardNext(status) {
|
|
switch (status) {
|
|
// 新增
|
|
case 1:
|
|
this.selectedList = []
|
|
this.standardCheckedList = []
|
|
this.standardDrawer = false
|
|
this.verifySarStandard = true
|
|
this.clearFormData(this.form)
|
|
break
|
|
// 带入
|
|
case 2:
|
|
if (this.standardCheckedList.length === 1) {
|
|
console.log(this.standardCheckedList);
|
|
this.form.standName = this.standardCheckedList[0].esName || this.standardCheckedList[0].standName
|
|
this.form.standSort = this.standardCheckedList[0].bussSort || this.standardCheckedList[0].standSort
|
|
this.form.planId = this.standardCheckedList[0].id
|
|
this.form.planStatus = this.standardCheckedList[0].planStatus
|
|
this.form.reviseStatus = this.form.reviseStatus === '3' ? this.form.reviseStatus : this.standardCheckedList[0].reviseStatus
|
|
// 代替企标编号
|
|
this.form.DTQBBHBUSS = this.filterDate(this.standardCheckedList[0].rqbName)
|
|
// 标准编号
|
|
this.form.standNum = this.filterDate(this.standardCheckedList[0].standNum)
|
|
// 适用车型
|
|
this.form.SYCXCLASS = this.filterObj(this.standardCheckedList[0].area)
|
|
// 采标程度
|
|
this.form.CYCD = this.filterDate(this.standardCheckedList[0].useLevel)
|
|
// 采用标准drafter
|
|
this.form.CYBZ = this.filterDate(this.standardCheckedList[0].esStandRelations)
|
|
// 引用标准
|
|
this.form.YYBZ = this.filterDate(this.standardCheckedList[0].esMatingRelations)
|
|
// 起草人带入
|
|
this.form.QCRBUSS = this.filterStringDate(this.standardCheckedList[0].drafterName)
|
|
this.form.QCRBUSSID = this.filterStringDate(this.standardCheckedList[0].drafter)
|
|
// 起草部门带入
|
|
this.form.QCDW = this.filterStringDate(this.standardCheckedList[0].unitName)
|
|
this.form.QCDWID = this.filterStringDate(this.standardCheckedList[0].unit)
|
|
this.form.TXLBBUSS = this.filterDate(this.standardCheckedList[0].tsJsonName)
|
|
this.form.menuId = this.filterDate(this.standardCheckedList[0].tsJson)
|
|
this.form.treeType = 'sarMs'
|
|
this.standardDrawer = false
|
|
this.verifySarStandard = true
|
|
this.planDisabled = false
|
|
this.$forceUpdate()
|
|
|
|
} else if (this.standardCheckedList.length > 1) {
|
|
this.$message.warning('最多可以带入一条计划信息')
|
|
} else {
|
|
this.$message.warning('请选择要带入的计划信息')
|
|
}
|
|
break
|
|
// 取消
|
|
case 3:
|
|
this.selectedList = []
|
|
this.standardCheckedList = []
|
|
this.standardDrawer = false
|
|
break
|
|
}
|
|
},
|
|
initializeFileList(property, value) {
|
|
switch (property) {
|
|
case 'xgd':
|
|
this.getFileList(value, this.xgdFileList);
|
|
break;
|
|
case 'fbgbjbd':
|
|
this.getFileList(value, this.FBGBJBDFileList);
|
|
break;
|
|
|
|
case 'ssg':
|
|
this.getFileList(value, this.ssgFileList);
|
|
break;
|
|
case 'ca':
|
|
this.getFileList(value, this.caFileList);
|
|
break;
|
|
case 'zbjbd':
|
|
this.getFileList(value, this.zbjbdFileList);
|
|
break;
|
|
case 'kwj':
|
|
this.getFileList(value, this.kwjFileList);
|
|
break;
|
|
case 'jdwj':
|
|
this.getFileList(value, this.jdwjFileList);
|
|
break;
|
|
case 'bpg':
|
|
this.getFileList(value, this.bpgFileList);
|
|
break;
|
|
case 'zqyjg':
|
|
this.getFileList(value, this.zqyjgFileList);
|
|
break;
|
|
case 'glwj':
|
|
this.getFileList(value, this.glwjFileList);
|
|
break;
|
|
default:
|
|
;
|
|
}
|
|
}, getFileList(fileIds, defaultFileList) {
|
|
|
|
// 对象为引用传递
|
|
this.$http.get('att/attFile/getMultiFileInfos', {
|
|
fileIds: fileIds
|
|
}, {
|
|
_this: this
|
|
}, res => {
|
|
|
|
let fileList = res.data
|
|
if (fileList != null && fileList.length > 0) {
|
|
for (let i = 0; i < fileList.length; i++) {
|
|
let obj = {name: '', response: {}}
|
|
obj.name = fileList[i].oldFileName
|
|
obj.response.data = fileList[i]
|
|
|
|
|
|
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
|
defaultFileList.push(obj)
|
|
console.log("defaultFileList", defaultFileList);
|
|
}
|
|
}
|
|
}, e => {
|
|
})
|
|
},
|
|
handleStandardPageChange(page) {
|
|
this.standardSearchForm.page = page
|
|
this.handleSearchStandard()
|
|
},
|
|
handleStandardPageSizeChange(pageSize) {
|
|
this.standardSearchForm.pageSize = pageSize
|
|
this.handleSearchStandard()
|
|
},
|
|
standSelectChange(data) {
|
|
this.selectedList = []
|
|
for (let i = 0; i < data.length; i++) {
|
|
this.selectedList.push(data[i].id)
|
|
}
|
|
this.standardCheckedList = data
|
|
},
|
|
handleResetSearch() {
|
|
this.standardSearchForm.page = 1
|
|
this.standardSearchForm.unit = ''
|
|
this.standardSearchForm.esName = ''
|
|
this.standardSearchForm.planStatus = '0,3,6'
|
|
this.standardSearchForm.standCode = ''
|
|
this.standardSearchForm.standName = ''
|
|
this.standardSearchForm.QCDW = ''
|
|
this.standardSearchForm.reviseStatus = ''
|
|
setTimeout(() => {
|
|
this.handleSearchStandard()
|
|
}, 100)
|
|
},
|
|
/**
|
|
* 关闭修订 Drawer 的监听
|
|
* @param done
|
|
*/
|
|
handleReviseDrawerClose(done) {
|
|
done()
|
|
},
|
|
getDomesticStandardTable() {
|
|
console.log(this.form.reviseStatus);
|
|
this.loadSarStandard = true
|
|
let url = ''
|
|
let userInfo;
|
|
userInfo = JSON.parse(localStorage.getItem('userInfo'));
|
|
if (this.form.reviseStatus === '3') {
|
|
url = 'lawss/sarBussionessStand/getSarBussionStandPage'
|
|
} else {
|
|
url = 'esRevisePlan/es-revise-plan/queryAllPlans'
|
|
}
|
|
this.standardSearchForm = {...this.standardSearchForm}
|
|
if (this.form.reviseStatus === '3') {
|
|
this.standardSearchForm.userId = userInfo.userId
|
|
this.standardSearchForm.isKu = 1
|
|
this.standardSearchForm.vaildFlag = 0
|
|
delete this.standardSearchForm.planStatus
|
|
}
|
|
if (this.form.reviseStatus === '3') {
|
|
this.$http.get(url, this.standardSearchForm, {
|
|
_this: this
|
|
}, res => {
|
|
this.loadSarStandard = false
|
|
if (res.ok) {
|
|
this.tableData.standardData = res.data.list
|
|
this.tableCount = res.data.count
|
|
}
|
|
}, e => {
|
|
this.loadSarStandard = false
|
|
})
|
|
} else {
|
|
this.$http.post(url, this.standardSearchForm, {
|
|
_this: this
|
|
}, res => {
|
|
this.loadSarStandard = false
|
|
if (res.ok) {
|
|
this.tableData.standardData = res.data.list
|
|
this.tableCount = res.data.count
|
|
}
|
|
}, e => {
|
|
this.loadSarStandard = false
|
|
})
|
|
}
|
|
},
|
|
handleSearchStandard() {
|
|
this.tableData.standardData = []
|
|
this.standardDrawer = true
|
|
this.$nextTick(() => {
|
|
// 动态设置表格高度
|
|
this.tableHeight.standardTableHeight = $('.standard-table-wrap').height()
|
|
window.onresize = () => {
|
|
this.tableHeight.standardTableHeight = $('.standard-table-wrap').height()
|
|
}
|
|
})
|
|
this.getDomesticStandardTable()
|
|
},
|
|
saveUserInfo() {
|
|
this.filterText = ''
|
|
if (this.userType === 'zrUserId') {
|
|
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
|
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
|
} else if (this.userType === 'jlUserId') {
|
|
this.roleForm.jlUserId = this.roleRow.id
|
|
this.roleForm.jlUserName = this.roleRow.name
|
|
}
|
|
|
|
this.modalShowFlag = false
|
|
},
|
|
cancelUserInfo() {
|
|
this.filterText = ''
|
|
this.modalShowFlag = false
|
|
},
|
|
drawerCheck(data) {
|
|
if (this.userType === 'zrUserId') {
|
|
|
|
if (this.zrUserIds.length > 0) {
|
|
const list = this.zrUserIds.filter(item => item.id === data.id);
|
|
if (list.length === 0) {
|
|
this.zrUserIds.push(data)
|
|
} else {
|
|
this.zrUserIds.forEach((item, index) => {
|
|
if (item.id === data.id) {
|
|
this.zrUserIds.splice(index, 1)
|
|
}
|
|
})
|
|
}
|
|
} else {
|
|
this.zrUserIds.push(data)
|
|
}
|
|
|
|
} else {
|
|
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
|
|
if (getlist.length == 1) {
|
|
this.roleRow = getlist[0]
|
|
} else {
|
|
this.$refs.tree.setCheckedKeys([data.id]);
|
|
this.roleRow = this.$refs.tree.getCheckedNodes()[0]
|
|
}
|
|
}
|
|
},
|
|
// 更多
|
|
handleCommand(command) {
|
|
switch (command[2]) {
|
|
case '新增':
|
|
this.createChildRow(command[0], command[1])
|
|
break
|
|
case '维护':
|
|
command[1].disabled = false
|
|
break
|
|
case '删除':
|
|
this.handleDelete(command[0], command[1])
|
|
break
|
|
}
|
|
},
|
|
choiceZRRList(type, title, id) {
|
|
this.nodeList2 = []
|
|
if (type === 'qcUserId') {
|
|
if (this.roleForm.qcUserId.length > 0) {
|
|
this.nodeList2 = this.roleForm.qcUserId.split(',')
|
|
}
|
|
} else if (type === 'hqUserId') {
|
|
if (this.roleForm.hqUserId.length > 0) {
|
|
this.nodeList2 = this.roleForm.hqUserId.split(',')
|
|
}
|
|
} else if (type === 'bzUserId') {
|
|
if (this.roleForm.bzUserId.length > 0) {
|
|
this.nodeList2 = this.roleForm.bzUserId.split(',')
|
|
}
|
|
} else if (type === 'QCRBUSS') {
|
|
if (this.form.QCRBUSSID.length > 0) {
|
|
this.nodeList2 = this.form.QCRBUSSID.split(',')
|
|
}
|
|
}
|
|
this.userType = type
|
|
this.drawerTitle = title
|
|
this.modalShowRoleFlag = true
|
|
},
|
|
choiceZRR(type, title, id) {
|
|
this.nodeList = []
|
|
this.nodeList.push(id)
|
|
this.userType = type
|
|
this.drawerTitle = title
|
|
this.modalShowFlag = true
|
|
},
|
|
choiceZRRS(row, type, index) {
|
|
this.type = type
|
|
if (type === 1) {
|
|
this.drawerTitle = '选择责任人'
|
|
this.nodeList = []
|
|
this.zrIndex = index
|
|
this.zrType = type
|
|
this.nodeList.push(row)
|
|
this.modalShowFlag = true
|
|
} else if (type === 2) {
|
|
// 批量
|
|
if (this.zrIdList.length > 0) {
|
|
this.zrType = type
|
|
this.nodeList = []
|
|
this.modalShowFlag = true
|
|
this.drawerTitle = '批量选择责任人'
|
|
} else {
|
|
this.$message.warning('请选择要编辑的数据')
|
|
}
|
|
} else {
|
|
this.nodeList = []
|
|
this.nodeList.push(row)
|
|
this.drawerTitle = ''
|
|
this.modalShowFlag = true
|
|
}
|
|
},
|
|
// choiceZRRS (type, title, id) {
|
|
// this.nodeList = []
|
|
// this.nodeList.push(id)
|
|
// this.userType = type
|
|
// this.drawerTitle = title
|
|
// this.modalShowRoleFlag = true
|
|
// },
|
|
choiceQCR(type, title, id) {
|
|
this.nodeList = []
|
|
this.nodeList.push(id)
|
|
this.userType = type
|
|
this.drawerTitle = title
|
|
this.modalShowRoleFlag = true
|
|
},
|
|
choiceQCDW(type, title, id) {
|
|
this.nodeListZRBM = []
|
|
if (this.form.QCDWID.length > 0) {
|
|
this.nodeListZRBM = this.form.QCDWID.split(',')
|
|
}
|
|
this.drawerTitle = title
|
|
this.modalShowFlagZRBM = true
|
|
},
|
|
choiceZRR1(type, title, id) {
|
|
this.drawerTitle = title
|
|
this.modalShowFlag1 = true
|
|
this.key++
|
|
},
|
|
choiceZRR2(type, title, id, flag) {
|
|
this.drawerTitle = title
|
|
this.modalShowFlag2 = true
|
|
this.multipleFlag2 = flag
|
|
this.url = ''
|
|
this.urlChild = ''
|
|
this.type = type
|
|
this.url = "sarVppsTree/list"
|
|
this.urlChild = "sarVppsTree/childByList"
|
|
},
|
|
choiceZRR3(type, title, id) {
|
|
this.drawerTitle = title
|
|
this.modalShowFlag3 = true
|
|
this.url = ''
|
|
this.urlChild = ''
|
|
this.url = "sarVppsTree/list"
|
|
this.urlChild = "sarVppsTree/childByList"
|
|
},
|
|
choiceZRR4(type, title, id) {
|
|
this.drawerTitle = title
|
|
this.modalShowFlag4 = true
|
|
this.url = ''
|
|
this.urlChild = ''
|
|
this.modelType = type
|
|
this.url = "sarModelTree/list"
|
|
this.urlChild = "sarModelTree/childByList"
|
|
},
|
|
choiceZRR5(type, title, id) {
|
|
this.drawerTitle = title
|
|
this.modalShowFlag5 = true
|
|
this.url = ''
|
|
this.urlChild = ''
|
|
this.modelType = type
|
|
this.url = "sarModelTree/listByType"
|
|
this.urlChild = "sarModelTree/childByList"
|
|
},
|
|
getTree() {
|
|
this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res => {
|
|
|
|
this.treeData = res.data
|
|
})
|
|
},
|
|
// 代替政策号 请求数据
|
|
getReplaceLawsNumRowFirst() {
|
|
this.replaceLawsNumForm.page = 1
|
|
this.replacePage = 1
|
|
this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', this.replaceLawsNumForm, {
|
|
_this: this,
|
|
loading: 'replaceLoading'
|
|
}, res => {
|
|
this.replaceLawsNumRow = res.data.list
|
|
this.replaceTotal = res.data.count
|
|
if (this.selectedListRep.length !== 0) {
|
|
this.selectedListRep.map((list) => {
|
|
this.replaceLawsNumRow.map((item) => {
|
|
if (list.id === item.id) {
|
|
item._checked = true
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}, e => {
|
|
})
|
|
},
|
|
dataSourceChange(val) {
|
|
},
|
|
handleChange(event) {
|
|
// const value = event.target.value
|
|
const value = event
|
|
this.$emit('input', value)
|
|
if (value.length == 1000) {
|
|
return this.$message({
|
|
message: '相关标准不能输入超过1000个字符',
|
|
type: 'warning'
|
|
});
|
|
}
|
|
},
|
|
// 代替政策编号-取消
|
|
replaceLawsNumModelCancel() {
|
|
// this.replaceLawsNumModel = false
|
|
this.$refs.selections.clearSelection()
|
|
},
|
|
// 代替政策号 table选择事件
|
|
selectReplaceStandNumRowChange(row) {
|
|
this.selectedListRep = row
|
|
},
|
|
// 代替政策分页
|
|
pageChangeReplace(page) {
|
|
this.replacePage = page
|
|
this.replaceLawsNumForm.page = page
|
|
this.getReplaceLawsNumRow()
|
|
},
|
|
pageSizeChangeReplace(pageSize) {
|
|
// this.replaceRows = pageSize
|
|
this.replaceLawsNumForm.pageSize = pageSize
|
|
this.getReplaceLawsNumRow()
|
|
},
|
|
// 代替政策编号确定
|
|
replaceLawsNumModelBt() {
|
|
let textArr = []
|
|
let textArr2 = []
|
|
|
|
if (typeof this.value === 'string') {
|
|
if (this.value) {
|
|
textArr = this.value.split(',')
|
|
}
|
|
}
|
|
if (this.selectedListRep.length === 0) {
|
|
return this.$message({
|
|
message: '请先选择数据',
|
|
type: 'warning'
|
|
})
|
|
}
|
|
if (this.form.reviseStatus === '1' && this.selectedListRep.length + textArr.length > 20) {
|
|
return this.$message({
|
|
message: '标准最多选择20项',
|
|
type: 'warning'
|
|
})
|
|
}
|
|
// else if (this.form.reviseStatus === '2' && this.selectedListRep.length + textArr.length > 1) {
|
|
// return this.$message({
|
|
// message: '标准最多选择1项',
|
|
// type: 'warning'
|
|
// })
|
|
// }
|
|
this.selectedListRep.map((item) => {
|
|
let texts = ''
|
|
if (item.standCode !== null && item.standCode !== '') {
|
|
texts = item.standCode
|
|
} else {
|
|
if (item.standYear != null && item.standYear !== '') {
|
|
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
|
|
} else {
|
|
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
|
|
}
|
|
}
|
|
textArr.push(texts)
|
|
textArr = [...new Set(textArr)]
|
|
textArr2.push(item.standNumber)
|
|
textArr2 = [...new Set(textArr2)]
|
|
this.replaceLawsNumModel = false
|
|
})
|
|
|
|
this.form.rqbJson = this.selectedListRep[0].id
|
|
|
|
// this.SarLawsInfoEO.replaceLawsNum = textArr.join(',')
|
|
// 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖
|
|
if (this.replaceLawType === 'DTQBBHBUSS') {
|
|
// let arr1 = this.form.DTQBBHBUSS ? this.form.DTQBBHBUSS + ',' + textArr.join(',') : textArr.join(',')
|
|
// this.form.DTQBBHBUSS = this.filterSetData(arr1)
|
|
this.form.DTQBBHBUSS = textArr.join(',')
|
|
this.form.standNum = this.filterSetData(textArr2.join(','))
|
|
} else if (this.replaceLawType === 'CYBZ') {
|
|
let arr1 = this.form.CYBZ ? this.form.CYBZ + ',' + textArr.join(',') : textArr.join(',')
|
|
this.form.CYBZ = this.filterSetData(arr1)
|
|
} else if (this.replaceLawType === 'YYBZ') {
|
|
let arr1 = this.form.YYBZ ? this.form.YYBZ + ',' + textArr.join(',') : textArr.join(',')
|
|
this.form.YYBZ = this.filterSetData(arr1)
|
|
} else if (this.replaceLawType === 'bfbdtbzh') {
|
|
this.form.bfbdtbzh = this.form.bfbdtbzh ? this.form.bfbdtbzh + ',' + textArr.join(',') : textArr.join(',')
|
|
} else {
|
|
this.form.byybj = this.form.byybj ? this.form.byybj + ',' + textArr.join(',') : textArr.join(',')
|
|
}
|
|
// this.$emit('input', textArr.join(','))
|
|
|
|
// 修订 时 手动查找代替企标编号 发布稿放到历史版本
|
|
if(this.replaceLawType === 'DTQBBHBUSS' && this.form.reviseStatus === '2' && this.selectedListRep.length){
|
|
let ids = this.selectedListRep.reduce((init,item,index,arr)=>{
|
|
let result
|
|
if(index === arr.length - 1){
|
|
result = init + item.id
|
|
}else{
|
|
result = init + item.id + ','
|
|
}
|
|
return result
|
|
},'')
|
|
// const id = this.selectedListRep[0].id
|
|
this.selectByIdAtt(ids).then(res =>{
|
|
if (res && res.data && res.data.length && res.data[0].fbgbuss !== '') {
|
|
this.form.LSBBBUSSName = res.data.reduce((init,item,index,arr)=>{
|
|
if(index === 0){
|
|
init = item.fbgbussNmae
|
|
}else{
|
|
init = init + ',' + item.fbgbussNmae
|
|
}
|
|
return init
|
|
},'')
|
|
this.form.LSBBBUSS = res.data.reduce((init,item,index,arr)=>{
|
|
if(index === 0){
|
|
init = item.fbgbuss
|
|
}else{
|
|
init = init + ',' + item.fbgbuss
|
|
}
|
|
return init
|
|
},'')
|
|
// this.form.LSBBBUSSName = res.data[0].fbgbussNmae
|
|
// this.form.LSBBBUSS = res.data[0].fbgbuss
|
|
}else if(res && res.data && res.data.length === 0){
|
|
this.form.LSBBBUSS = ''
|
|
this.form.LSBBBUSSName = ''
|
|
}
|
|
this.LSBBBUSSFileList = this.assemble(this.form.LSBBBUSS, this.form.LSBBBUSSName);
|
|
})
|
|
}
|
|
|
|
this.$refs.selections.clearSelection()
|
|
},
|
|
filterSetData(data) {
|
|
const arr = new Set()
|
|
let permission = data.split(",");
|
|
permission.forEach((item, index) => {
|
|
arr.add(item)
|
|
})
|
|
return Array.from(arr).join(',');
|
|
},
|
|
// 点击查看
|
|
handlePreview(item) {
|
|
let routeUrl = this.$router.resolve({
|
|
name: 'OtherBussStandardDetails',
|
|
params: {
|
|
id: item.id,
|
|
pageType: 'BUSINESS_STAND'
|
|
}
|
|
})
|
|
window.open(routeUrl.href, '_blank')
|
|
},
|
|
getResetLawsNumRow() {
|
|
this.replaceLawsNumForm = {
|
|
standNumber: '', // 标准编号
|
|
page: 1,
|
|
pageSize: this.$store.getters.userInfo.configContent,
|
|
total: 0,
|
|
standType: 'BUSINESS',
|
|
quoteIdList: '',
|
|
validFlag: '0'
|
|
}
|
|
this.getReplaceLawsNumRow()
|
|
},
|
|
selectLaws(type) {
|
|
// if (this.standNumFlag === 1) {
|
|
// this.$refs.selections.selectAll(false)
|
|
// }
|
|
// this.sarBussionessLawsEO.replaceLawsNum = ''
|
|
this.replaceLawsNumForm.numberName = ""
|
|
this.replaceLawsNumModel = true
|
|
this.replaceLawType = ''
|
|
this.replaceLawType = type
|
|
this.getReplaceLawsNumRow()
|
|
},
|
|
// 代替企标编号 请求数据
|
|
getReplaceLawsNumRow() {
|
|
if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') {
|
|
this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1
|
|
} else {
|
|
this.quoteIdList1 = []
|
|
this.replaceLawsNumForm.quoteIdList = ''
|
|
}
|
|
this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', this.replaceLawsNumForm, {
|
|
_this: this,
|
|
loading: 'replaceLoading'
|
|
}, res => {
|
|
this.replaceLawsNumRow = res.data.list
|
|
this.replaceTotal = res.data.count
|
|
if (this.selectedListRep.length !== 0) {
|
|
this.selectedListRep.map((list) => {
|
|
this.replaceLawsNumRow.map((item) => {
|
|
if (list.id === item.id) {
|
|
item._checked = true
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}, e => {
|
|
})
|
|
},
|
|
beginImportFile(file) {
|
|
var filename = file.name
|
|
var index1 = filename.lastIndexOf('.')
|
|
var index2 = filename.length
|
|
var fileSuffix = filename.substring(index1, index2)
|
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
|
// 判断上传文件格式
|
|
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt' || fileSuffix === '.PPT' || fileSuffix === '.pptx' || fileSuffix === '.PPTX' || fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
|
return true
|
|
} else {
|
|
this.spinShow = false
|
|
this.$message.error('文件' + file.name + '格式不正确,请上传PDF/PPT/PPTX/DOC/DOCX或XLS文件')
|
|
return false
|
|
}
|
|
// 判断文件上传大小
|
|
// eslint-disable-next-line no-unreachable
|
|
if (file.size / 1024 / 1024 <= 200) {
|
|
return true
|
|
} else {
|
|
this.$message.error('文件' + file.name + '大小不超过200M')
|
|
return false
|
|
}
|
|
return true
|
|
},
|
|
getBusStandFileByAttId(attId) {
|
|
return new Promise((resolve, reject) => {
|
|
getBusStandFileByAttId({
|
|
attId
|
|
}).then(res => {
|
|
if (res.ok) {
|
|
resolve(res.data)
|
|
} else {
|
|
reject()
|
|
}
|
|
}).catch(e => {
|
|
reject(e)
|
|
})
|
|
})
|
|
},
|
|
// 文件预览及下载
|
|
handleFilePreview(file) {
|
|
let attId = ""
|
|
if (file && file.id) {
|
|
attId = file.id
|
|
} else {
|
|
attId = file.response.data.id
|
|
}
|
|
if (this.preview) {
|
|
if (attId) {
|
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
|
|
} else {
|
|
this.$message.warning('文件不存在,下载失败')
|
|
}
|
|
} else {
|
|
this.$preview(attId)
|
|
}
|
|
},
|
|
handleFilePreview2(file, type) {
|
|
let attId = ""
|
|
if (file && file.id) {
|
|
attId = file.id
|
|
} else {
|
|
attId = file.response.data.id
|
|
}
|
|
if (file.name == this.form.standName) {
|
|
let fileName = ""
|
|
let fileNam2 = ""
|
|
if (this.form.standName && this.form.standName !== '') {
|
|
fileName = this.form.standName + '-企业标准.docx'
|
|
fileNam2 = this.form.standName
|
|
} else {
|
|
fileName = '企业标准.docx'
|
|
fileNam2 = '企业标准'
|
|
}
|
|
let form = JSON.parse(JSON.stringify(this.form))
|
|
form.standCode = ''
|
|
form.issueDate = ''
|
|
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
|
|
return
|
|
}
|
|
if (type === 'down') {
|
|
if (attId) {
|
|
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
|
|
} else {
|
|
this.$message.warning('文件不存在,下载失败')
|
|
}
|
|
} else {
|
|
this.$preview(attId)
|
|
}
|
|
},
|
|
handleFilePreviewOne(file, type) {
|
|
let id = ""
|
|
let fileName = ""
|
|
let fileNam2 = ""
|
|
if (this.form.standName && this.form.standName !== '') {
|
|
fileName = this.form.standName + '-企业标准.docx'
|
|
fileNam2 = this.form.standName
|
|
} else {
|
|
fileName = '企业标准.docx'
|
|
fileNam2 = '企业标准'
|
|
}
|
|
if (file && file.id) {
|
|
id = file.id
|
|
} else {
|
|
id = file.response.data.id
|
|
}
|
|
if (type === 'preview') {
|
|
this.$onlineEditPreview(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, this.form)
|
|
} else {
|
|
this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, this.form)
|
|
}
|
|
},
|
|
// 导入标准数据成功后执行
|
|
importFileSuccess(response, file, fileList) {
|
|
// 上传成功后判断是否是两条数据是的话替换掉旧数据
|
|
// if (fileList.length > 1) {
|
|
// this.fileList = fileList.splice(0, 1)
|
|
// }
|
|
if (response.ok) {
|
|
const fileObj = {}
|
|
fileObj.id = file.response.data.id
|
|
fileObj.name = file.response.data.name
|
|
switch (this.fileType) {
|
|
case 'FBGBUSS':
|
|
this.FBGBUSSFileList = this.FBGBUSSFileList.filter(item => item.response === undefined);
|
|
this.FBGBUSSFileList.push(fileObj)
|
|
break;
|
|
case 'BZSMBUSS' :
|
|
this.BZSMBUSSFileList = this.BZSMBUSSFileList.filter(item => item.response === undefined);
|
|
this.BZSMBUSSFileList.push(fileObj)
|
|
break;
|
|
case 'LSBBBUSS':
|
|
this.LSBBBUSSFileList = this.LSBBBUSSFileList.filter(item => item.response === undefined);
|
|
this.LSBBBUSSFileList.push(fileObj)
|
|
break;
|
|
case 'QTWJBUSS':
|
|
this.QTWJBUSSFileList = this.QTWJBUSSFileList.filter(item => item.response === undefined);
|
|
this.QTWJBUSSFileList.push(fileObj)
|
|
break;
|
|
case 'GLWJBUSS':
|
|
this.GLWJBUSSFileList = this.GLWJBUSSFileList.filter(item => item.response === undefined);
|
|
this.GLWJBUSSFileList.push(fileObj)
|
|
break;
|
|
default :
|
|
;
|
|
}
|
|
this.$message({
|
|
// showClose: true,
|
|
message: response.message,
|
|
type: 'success'
|
|
})
|
|
}
|
|
},
|
|
fileUpload(type) {
|
|
this.fileType = '';
|
|
// this.fileMadel = true;//此句应在最后执行,否则会有先显示没变换的的文件列表,在显示变换了的文件列表
|
|
|
|
this.fileType = type;
|
|
|
|
switch (this.fileType) {
|
|
case 'FBGBUSS':
|
|
this.fileList = this.FBGBUSSFileList
|
|
break;
|
|
case 'BZSMBUSS' :
|
|
this.fileList = this.BZSMBUSSFileList
|
|
break;
|
|
case 'LSBBBUSS':
|
|
this.fileList = this.LSBBBUSSFileList
|
|
break;
|
|
case 'QTWJBUSS':
|
|
this.fileList = this.QTWJBUSSFileList
|
|
break;
|
|
case 'GLWJBUSS':
|
|
this.fileList = this.GLWJBUSSFileList
|
|
break;
|
|
default :
|
|
;
|
|
}
|
|
this.fileMadel = true;
|
|
|
|
},
|
|
removeOneFile(file, fileList) {
|
|
|
|
switch (this.fileType) {
|
|
case 'FBGBUSS':
|
|
this.FBGBUSSFileList = fileList
|
|
break;
|
|
case 'BZSMBUSS' :
|
|
this.BZSMBUSSFileList = fileList
|
|
break;
|
|
case 'LSBBBUSS':
|
|
this.LSBBBUSSFileList = fileList
|
|
break;
|
|
case 'QTWJBUSS':
|
|
this.QTWJBUSSFileList = fileList
|
|
break;
|
|
case 'GLWJBUSS':
|
|
this.GLWJBUSSFileList = fileList
|
|
break;
|
|
default :
|
|
;
|
|
}
|
|
},
|
|
drawerCheckZRBM(data) {
|
|
let idList = ''
|
|
let nameList = ''
|
|
data.forEach(item => {
|
|
// if (item.hasChild === '0') {
|
|
if (nameList.length > 0) {
|
|
nameList += ','
|
|
idList += ','
|
|
}
|
|
idList += item.id
|
|
nameList += item.name
|
|
// }
|
|
})
|
|
this.form.QCDW = nameList
|
|
this.form.QCDWID = idList
|
|
|
|
// if(this.form.QCDWID !== undefined && this.form.QCDWID && this.form.QCDWID.length > 0){
|
|
// this.$http.get('SarInstitution/institution/getInstitutionIdToDept', {institutionIds:this.form.QCDWID}, {
|
|
// _this: this,
|
|
// }, res=> {
|
|
// if(res){
|
|
// this.form.QCRBUSSID = res.map(item => item.id).join(",")
|
|
// this.form.QCRBUSS = res.map(item => item.name).join(",")
|
|
// }
|
|
// })
|
|
// }
|
|
|
|
},
|
|
popoverHide(checkedIds, checkedData, isShow, isLoadChild, topId) {
|
|
if (checkedData) {
|
|
if (checkedData.length > 0) {
|
|
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
|
this.form.menuId = checkedData.map(item => item.menuId).join(",")
|
|
this.form.treeType = checkedData.map(item => item.treeType).join(",")
|
|
} else {
|
|
if (checkedData.parentId == null || checkedData.parentId === '') {
|
|
this.$message.error('请选择二级及以下目录')
|
|
return
|
|
}
|
|
this.form.TXLBBUSS = checkedData.menuName
|
|
this.form.menuId = checkedData.id
|
|
this.form.treeType = 'sarMs'
|
|
}
|
|
}
|
|
this.modalShowFlag1 = false
|
|
this.$forceUpdate()
|
|
},
|
|
|
|
popoverHideCancel() {
|
|
this.modalShowFlag1 = false
|
|
},
|
|
popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
|
|
if (checkedData && checkedData.length != 0) {
|
|
if (checkedData.length > 0) {
|
|
this.form.CYCVPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
|
this.form.CYCVPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
|
} else {
|
|
this.form.CYCVPPSBMBUSS = checkedData.code
|
|
this.form.CYCVPPSCNBUSS = checkedData.chineseName
|
|
}
|
|
} else {
|
|
this.form.CYCVPPSBMBUSS = ''
|
|
this.form.CYCVPPSCNBUSS = ''
|
|
}
|
|
this.modalShowFlag2 = false
|
|
this.$forceUpdate()
|
|
},
|
|
popoverHideBusVsCancel() {
|
|
this.modalShowFlag2 = false
|
|
},
|
|
popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
|
|
if (checkedData && checkedData.length != 0) {
|
|
if (checkedData.length > 0) {
|
|
this.form.KCVPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
|
this.form.KCVPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
|
} else {
|
|
this.form.KCVPPSBMBUSS = checkedData.code
|
|
this.form.KCVPPSCNBUSS = checkedData.chineseName
|
|
}
|
|
} else {
|
|
this.form.KCVPPSBMBUSS = ''
|
|
this.form.KCVPPSCNBUSS = ''
|
|
}
|
|
this.modalShowFlag3 = false
|
|
this.$forceUpdate()
|
|
},
|
|
popoverHideCarVsCancel() {
|
|
this.modalShowFlag3 = false
|
|
},
|
|
popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) {
|
|
console.log(checkedData)
|
|
if (checkedData && checkedData.length != 0) {
|
|
if (checkedData.length > 0) {
|
|
this.form.DYBXHBUSS = checkedData.map(item => item.model).join(",")
|
|
this.form.DYMCBUSS = checkedData.map(item => item.name).join(",")
|
|
} else {
|
|
this.form.DYBXHBUSS = checkedData.model
|
|
this.form.DYMCBUSS = checkedData.name
|
|
}
|
|
} else {
|
|
this.form.DYBXHBUSS = ''
|
|
this.form.DYMCBUSS = ''
|
|
}
|
|
this.modalShowFlag4 = false
|
|
this.$forceUpdate()
|
|
},
|
|
popoverHideModelCancel() {
|
|
this.modalShowFlag4 = false
|
|
},
|
|
popoverCarHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) {
|
|
if (checkedData && checkedData.length != 0) {
|
|
if (checkedData.length > 0) {
|
|
this.form.CYCDYBXHBUSS = checkedData.map(item => item.model).join(",")
|
|
this.form.CYCDYMCBUSS = checkedData.map(item => item.name).join(",")
|
|
} else {
|
|
this.form.CYCDYBXHBUSS = checkedData.model
|
|
this.form.CYCDYMCBUSS = checkedData.name
|
|
}
|
|
this.modalShowFlag5 = false
|
|
}
|
|
this.$forceUpdate()
|
|
},
|
|
popoverCarHideModelCancel() {
|
|
this.modalShowFlag5 = false
|
|
},
|
|
closeDrawer() {
|
|
this.ListModel = false
|
|
},
|
|
OkDrawer() {
|
|
this.ListModel = false
|
|
var item = {
|
|
remarks: '123'
|
|
}
|
|
this.data.push(item)
|
|
},
|
|
addList() {
|
|
this.title = '新增标准'
|
|
this.ListModel = true
|
|
},
|
|
handleTabs(name) {
|
|
this.active = name
|
|
},
|
|
//保存
|
|
handleSave() {
|
|
this.form.country = this.countryArr;
|
|
// if(item.country !== undefined && item.country !== null){
|
|
// this.sarStandardsInfoEO.country = item.country.split(",");
|
|
// }
|
|
|
|
this.saveLoading = true
|
|
let _formData = new FormData()
|
|
this.fileInfoHandle()
|
|
console.log(this.todoId)
|
|
_formData.append('id', this.todoId || '')
|
|
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
|
_formData.append('prcType', '25')
|
|
_formData.append('prcName', '企标制修订计划管控')
|
|
_formData.append('json', JSON.stringify({
|
|
taskInfo: '技术标准起草',
|
|
form: this.form,
|
|
roleForm: this.roleForm,
|
|
commentText: this.commentText
|
|
}))
|
|
updateBusProcessNew(_formData).then(res => {
|
|
this.saveLoading = false
|
|
this.$message.success('保存成功')
|
|
this.bpnId = res.result
|
|
}).catch(e => {
|
|
this.saveLoading = false
|
|
})
|
|
},
|
|
fileInfoHandle() {
|
|
|
|
//拼接文件名和id 提交到流程Activity
|
|
this.form.FBGBUSS = this.FBGBUSSFileList.map(item => item.id).join(",")
|
|
this.form.FBGBUSSName = this.FBGBUSSFileList.map(item => item.name).join(",")
|
|
|
|
this.form.BZSMBUSS = this.BZSMBUSSFileList.map(item => item.id).join(",")
|
|
this.form.BZSMBUSSName = this.BZSMBUSSFileList.map(item => item.name).join(",")
|
|
|
|
this.form.LSBBBUSS = this.LSBBBUSSFileList.map(item => item.id).join(",")
|
|
this.form.LSBBBUSSName = this.LSBBBUSSFileList.map(item => item.name).join(",")
|
|
|
|
this.form.QTWJBUSS = this.QTWJBUSSFileList.map(item => item.id).join(",")
|
|
this.form.QTWJBUSSName = this.QTWJBUSSFileList.map(item => item.name).join(",")
|
|
|
|
this.form.GLWJBUSS = this.GLWJBUSSFileList.map(item => item.id).join(",")
|
|
this.form.GLWJBUSSName = this.GLWJBUSSFileList.map(item => item.name).join(",")
|
|
|
|
},
|
|
// 删除方法
|
|
deletedId(data, ids) {
|
|
let m = 0, n = data.length;
|
|
for (; m < n; m++) {
|
|
let i = 0, j = ids.length;
|
|
for (; i < j; i++) {
|
|
if (data[m] && data[m].id === ids[i]) {
|
|
data.splice(m, 1)
|
|
}
|
|
}
|
|
if (data[m] && data[m].children.length > 0) {
|
|
this.deletedId(data[m].children, ids)
|
|
}
|
|
}
|
|
return data
|
|
},
|
|
changeRestTree(val) {
|
|
let arr = [];
|
|
if (val.length !== 0) {
|
|
val.forEach(item => {
|
|
if (item.children.length >= 1) {
|
|
item.children = this.changeTree(item.children);
|
|
}
|
|
if (item.pid === '0') {
|
|
item.id = arr.length + 1,
|
|
item.modelNum = arr.length + 1 + ''
|
|
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
|
item.modelIndex = arr.length
|
|
} else {
|
|
item.id = item.modelNum + '.' + (arr.length + 1)
|
|
item.modelNum = item.modelNum + '.' + (arr.length + 1)
|
|
item.orderNum = arr.length + 1
|
|
item.pid = item.modelNum
|
|
item.modelIndex = arr.length
|
|
}
|
|
arr.push(item);
|
|
});
|
|
}
|
|
|
|
return arr;
|
|
},
|
|
changeTree(val) {
|
|
let arr = [];
|
|
this.modelDataNameVerify = []
|
|
this.modelDataZrUserVerify = []
|
|
if (val.length !== 0) {
|
|
val.forEach(item => {
|
|
let obj = {};
|
|
obj.modelName = item.modelName;
|
|
obj.zrUserIdName = item.zrUserIdName;
|
|
if (!obj.modelName || obj.modelName === '') {
|
|
this.modelDataNameVerify.push("1")
|
|
}
|
|
if (item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')) {
|
|
this.modelDataZrUserVerify.push("1")
|
|
}
|
|
if (item.children.length >= 1) {
|
|
item.children = this.changeTree(item.children);
|
|
}
|
|
arr.push(item);
|
|
});
|
|
}
|
|
|
|
return arr;
|
|
},
|
|
// 接受按钮
|
|
handleReceive() {
|
|
this.isSubmit = true
|
|
// execTask({
|
|
// todoId: this.todoId // 当前节点ID
|
|
// }).then(res => {
|
|
// if (res.sign && res.sign === '0') {
|
|
// this.$message.success('接收成功')
|
|
// this.$router.push('/processCenter')
|
|
// }
|
|
// this.isSubmit = false
|
|
// })
|
|
// if(!this.tableData.standardData[0]){
|
|
// this.$message.warning('请先选择企标计划')
|
|
// this.isSubmit = false
|
|
// return
|
|
// }
|
|
this.$http.get("lawss/activiti/acceptTack", {
|
|
nowEsId: this.nowEsId,
|
|
oaFlag: '0',
|
|
taskId: this.$route.query.taskIds,
|
|
}, {
|
|
_this: this
|
|
}, res => {
|
|
// if (res.sign && res.sign === '0') {
|
|
this.$message.success('接收成功')
|
|
this.isSubmit = false
|
|
this.showreceive = false
|
|
// this.$router.push('/processCenter')
|
|
// }
|
|
})
|
|
},
|
|
handleSubmit() {
|
|
// this.form.country=this.countryArr;
|
|
// test
|
|
this.isSubmit = false
|
|
this.saveLoading = false
|
|
// this.changeTree(this.form.modelData)
|
|
this.$refs['form'].validate((valid) => {
|
|
if (valid) {
|
|
// if(this.form.modelData === undefined || this.form.modelData.length === 0){
|
|
// this.$message.warning('请检查模块信息是否填写完整')
|
|
// }else if( this.modelDataNameVerify !== undefined && this.modelDataNameVerify.length > 0){
|
|
// this.$message.warning('请检查模块信息模块名称是否填写完整')
|
|
// }else if( this.modelDataZrUserVerify !== undefined && this.modelDataZrUserVerify.length > 0){
|
|
// this.$message.warning('请检查模块信息责任人是否填写完整')
|
|
// }else {
|
|
// }
|
|
this.$refs['userForm'].validate((valid) => {
|
|
if (valid) {
|
|
this.fileInfoHandle()
|
|
this.isSubmit = true
|
|
this.saveLoading = true
|
|
this.form.country = this.countryArr;
|
|
var json = Object.assign(this.form, this.roleForm)
|
|
json.zrUserId = this.form.zrUserId
|
|
json.jlUserId = this.form.jlUserId
|
|
json.commentText = this.commentText
|
|
json.type = this.taskType
|
|
if (this.taskType == '1') {
|
|
json.esId1 = this.esId1
|
|
json.esId2 = this.esId2
|
|
}
|
|
json.applyUpdUserId = this.form.applyUpdUserId
|
|
json.prcCreateUser = this.form.prcCreateUser
|
|
json.prcCreateUserName = this.form.prcCreateUserName
|
|
if (this.form.reviseStatus == '1' || this.form.reviseStatus == '2') {
|
|
json.nowEsId = this.nowEsId
|
|
} else if (this.form.reviseStatus == '3') {
|
|
json.standCode = this.tableData.standardData[0].standCode
|
|
}
|
|
this.$http.post('lawss/activiti/completeTask', {
|
|
taskIds: this.$route.query.taskIds,
|
|
userId: this.$store.getters.userInfo.userId,
|
|
json: JSON.stringify(json)
|
|
}, {
|
|
_this: this
|
|
}, res => {
|
|
if (res.success) {
|
|
this.$http.post('lawss/activiti/startProcessRollBack', {
|
|
createUser: this.$store.getters.userInfo.userId,
|
|
createUserName: this.$store.getters.userInfo.userName,
|
|
type: 'buss1',
|
|
json: JSON.stringify({
|
|
form: this.form,
|
|
roleForm: this.roleForm,
|
|
commentText: this.commentText
|
|
})
|
|
}, {}, res => {
|
|
if (res.ok) {
|
|
this.$http.post('lawss/activiti/completeTask', {
|
|
taskIds: res.data,
|
|
userId: this.$store.getters.userInfo.userId,
|
|
json: JSON.stringify(json)
|
|
}, {
|
|
_this: this
|
|
}, res => {
|
|
if (res.success) {
|
|
this.$message.success(res.message)
|
|
const planForm = {}
|
|
planForm.id = this.form.planId
|
|
planForm.reviseStatus = this.form.reviseStatus
|
|
planForm.standCode = this.form.DTQBBHBUSS
|
|
planForm.processType = "buss1"
|
|
this.$http.post("esRevisePlan/es-revise-plan/modPlanByState", planForm, {
|
|
_this: this
|
|
}, res => {
|
|
if (res.ok) {
|
|
if (res.data === '操作成功') {
|
|
this.submitLoading = false
|
|
this.isSubmit = false
|
|
if (this.$route.query.bpnId !== '') {
|
|
let taskId = {
|
|
id: this.$route.query.bpnId
|
|
}
|
|
taskDel(taskId).then(res => {
|
|
return res
|
|
})
|
|
}
|
|
// 流程提交之后,应该流转至待办任务页面
|
|
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
|
} else {
|
|
}
|
|
} else {
|
|
this.$message.warning(res.data)
|
|
}
|
|
})
|
|
}
|
|
})
|
|
}
|
|
})
|
|
}
|
|
})
|
|
// this.$http.get('lawss/activiti/startProcess', {type: 'buss1'}, {
|
|
// _this: this
|
|
// }, res => {
|
|
// })
|
|
} else {
|
|
this.$message.warning('请检查人员信息表单是否填写完整')
|
|
}
|
|
})
|
|
} else {
|
|
this.$message.warning('请检查基础信息表单是否填写完整')
|
|
}
|
|
})
|
|
},
|
|
busVsFunc() {
|
|
this.$http.get('sarVppsTree/list', '', {
|
|
_this: this
|
|
}, res => {
|
|
this.busVppsOptions = []
|
|
this.busVppsOptions = res.data
|
|
})
|
|
},
|
|
busVsChildFunc(id) {
|
|
this.$http.get('sarVppsTree/childByList', {id: id}, {
|
|
_this: this
|
|
}, res => {
|
|
this.busVppsChildOptions = []
|
|
this.busVppsChildOptions = res.data
|
|
})
|
|
},
|
|
modelFunc() {
|
|
this.$http.get('sarModelTree/list', '', {
|
|
_this: this
|
|
}, res => {
|
|
this.modelOptions = []
|
|
this.modelOptions = res.data
|
|
})
|
|
},
|
|
selectByIdAtt(id){
|
|
return new Promise((resolve,reject)=>{
|
|
this.$http.get('/lawss/sarBussionessStand/selectByIdAtt', {
|
|
id
|
|
}, {
|
|
_this: this
|
|
}, res => {
|
|
resolve(res)
|
|
})
|
|
})
|
|
},
|
|
selectChange(){
|
|
this.$forceUpdate()
|
|
},
|
|
getData() {
|
|
if (this.$route.query.taskIds && this.$route.query.prcId) {
|
|
return new Promise((resolve, reject) => {
|
|
inboundLiaisonDetail({
|
|
taskIds: this.$route.query.taskIds,
|
|
pId: this.$route.query.prcId
|
|
}).then(res => {
|
|
if (res) {
|
|
let processForm = JSON.parse(res.mesg)
|
|
this.commentText = processForm.commentText
|
|
if(processForm.form){
|
|
processForm = processForm.form
|
|
}
|
|
this.todoId = res.id
|
|
if (processForm.reviseStatus == '制定') {
|
|
processForm.reviseStatus = '1'
|
|
} else if (processForm.reviseStatus == '修订') {
|
|
processForm.reviseStatus = '2'
|
|
}
|
|
this.form = processForm
|
|
this.form.standSort = processForm.bussSort
|
|
this.form.planId = processForm.nowEsId
|
|
this.nowEsId = processForm.nowEsId
|
|
this.form.reviseStatus = processForm.reviseStatus
|
|
this.form.standName = processForm.renameEs ? processForm.renameEs : processForm.esName
|
|
|
|
|
|
|
|
this.FBGBUSSFileList=this.assemble(processForm.FBGBUSS,processForm.FBGBUSSName)
|
|
|
|
if(this.FBGBUSSFileList.length === 0){
|
|
this.$http.get('/lawss/activiti/saveEditFile', {
|
|
model: 'model_qb'
|
|
}, {
|
|
_this: this
|
|
}, res => {
|
|
if (res) {
|
|
this.form.FBGBUSS = res.id + ',' + this.form.FBGBUSS
|
|
this.form.FBGBUSSName = this.form.standName + ',' + this.form.FBGBUSSName
|
|
this.FBGBUSSFileList = [...this.assemble(res.id, this.form.standName),...this.FBGBUSSFileList];
|
|
}
|
|
})
|
|
}
|
|
|
|
this.BZSMBUSSFileList=this.assemble(processForm.BZSMBUSS,processForm.BZSMBUSSName);
|
|
this.LSBBBUSSFileList=this.assemble(processForm.LSBBBUSS,processForm.LSBBBUSSName);
|
|
this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName);
|
|
this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName);
|
|
// 企标制修订计划管控 进入 技术标准起草 修订类型: 发布稿放到历史版本
|
|
if(processForm.reviseStatus === '2'){
|
|
this.selectByIdAtt(processForm.rqbJson).then(res =>{
|
|
// if (res && res.data && res.data.fbgbuss !== '') {
|
|
// this.form.LSBBBUSSName = res.data.fbgbussNmae
|
|
// this.form.LSBBBUSS = res.data.fbgbuss
|
|
// this.LSBBBUSSFileList = this.assemble(this.form.LSBBBUSS, this.form.LSBBBUSSName);
|
|
// }
|
|
if (res && res.data && res.data[0].fbgbuss !== '') {
|
|
const names = res.data.reduce((init,item,index,arr)=>{
|
|
if(index === 0){
|
|
init = item.fbgbussNmae
|
|
}else{
|
|
init = init + ',' + item.fbgbussNmae
|
|
}
|
|
return init
|
|
},'')
|
|
const ids = res.data.reduce((init,item,index,arr)=>{
|
|
if(index === 0){
|
|
init = item.fbgbuss
|
|
}else{
|
|
init = init + ',' + item.fbgbuss
|
|
}
|
|
return init
|
|
},'')
|
|
if(this.form.LSBBBUSSName === undefined || this.form.LSBBBUSSName.indexOf(names) === -1){
|
|
if(this.form.LSBBBUSSName === undefined){
|
|
this.form.LSBBBUSSName = names
|
|
this.form.LSBBBUSS = ids
|
|
}else{
|
|
this.form.LSBBBUSSName = names + ',' + this.form.LSBBBUSSName
|
|
this.form.LSBBBUSS = ids + ',' + this.form.LSBBBUSS
|
|
}
|
|
}
|
|
this.LSBBBUSSFileList = this.assemble(this.form.LSBBBUSS, this.form.LSBBBUSSName);
|
|
}
|
|
})
|
|
}
|
|
|
|
try{
|
|
this.form.QCDW = processForm.QCDW || processForm.unitName
|
|
this.form.QCDWID = processForm.QCDWID || processForm.unit
|
|
this.form.QCRBUSSID = processForm.QCRBUSSID || processForm.drafter
|
|
this.form.QCRBUSS = processForm.QCRBUSS || processForm.drafterName
|
|
this.form.SYCXCLASS = processForm.SYCXCLASS && processForm.SYCXCLASS.length > 0 ? processForm.SYCXCLASS : processForm.area
|
|
if (processForm.type == '1') {
|
|
this.esId1 = processForm.esId1
|
|
this.esId2 = processForm.esId2
|
|
}
|
|
this.taskType = processForm.type
|
|
|
|
// 关联信息
|
|
this.form.DTQBBHBUSS = processForm.DTQBBHBUSS || processForm.rqbName
|
|
this.form.CYBZ = processForm.CYBZ || processForm.esStandRelations
|
|
this.form.YYBZ = processForm.YYBZ || processForm.esMatingRelations
|
|
let useLevel = this.form.CYCD || processForm.useLevel
|
|
this.form.CYCD = useLevel === '29l0zgltnq' ? 'IDT等同采用' : processForm.useLevel === '9te26649ne' ? 'NEQ非等效采用' : 'MOD修改采用'
|
|
}catch(e){
|
|
console.log(e)
|
|
}
|
|
this.$http.get('lawss/activiti/judgeAcceptTack', {
|
|
nowEsId: this.nowEsId,
|
|
oaFlag: '1',
|
|
prcIdGk: this.$route.query.prcId,
|
|
}, {
|
|
_this: this
|
|
}, res => {
|
|
if (res.data === true) {
|
|
this.showreceive = true
|
|
} else {
|
|
this.showreceive = false
|
|
}
|
|
})
|
|
|
|
// 人员信息
|
|
let roleForm = JSON.parse(res.mesg).roleForm
|
|
this.roleForm.qcUserName = roleForm.qcUserName
|
|
this.roleForm.bzhUserName = roleForm.bzhUserName
|
|
this.roleForm.hqUserName = roleForm.hqUserName
|
|
this.roleForm.xdUserName = roleForm.xdUserName
|
|
this.roleForm.fggcsUserName = roleForm.fggcsUserName
|
|
this.roleForm.jsfzrUserName = roleForm.jsfzrUserName
|
|
this.roleForm.bzUserName = roleForm.bzUserName
|
|
this.roleForm.fzrUserName = roleForm.fzrUserName
|
|
this.roleForm.zhrUserName = roleForm.zhrUserName
|
|
this.roleForm.fbUserName = roleForm.fbUserName
|
|
}
|
|
}).catch(e => {
|
|
})
|
|
})
|
|
}
|
|
},
|
|
},
|
|
|
|
mounted() {
|
|
this.getTaskId()
|
|
this.getTree()
|
|
this.getData()
|
|
if (this.$route.query) {
|
|
this.form.reviseStatus = this.$route.query.reviseStatus
|
|
}
|
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
|
_this: this
|
|
}, res => {
|
|
this.countryOptions = res.data.COUNTRY
|
|
this.applyCountryOptions = res.data.COUNTRY
|
|
this.regionOptions = res.data.REGION // 区域
|
|
this.standStateOptions = res.data.BUSSSTATE
|
|
this.energyKindOptions = res.data.ENERGYTYPES
|
|
this.standGeneraOptions = res.data.BUSSBIGCLASS
|
|
this.standSubclassOptions = res.data.BUSSFINECLASS
|
|
this.standSortOptions = res.data.BUSSSTANDCLASS // 标准类别
|
|
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
|
this.standStateOptions = res.data.TEXTSTATUSBUSS // 文本状态
|
|
this.standSystemOptions = res.data.TXLBBUSS // 标准体系
|
|
this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
|
|
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
|
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
|
this.cysdOptions = res.data.WSCYSD // 我司参与深度
|
|
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
|
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
|
this.qcdwOptions = res.data.QCDW // 起草单位
|
|
this.qcrOptions = res.data.QCRBUSS // 起草人
|
|
this.nylxOptions = res.data.NYLXCLASS // 能源类型
|
|
this.syrzOptions = res.data.SYRZCLASS // 适用认证
|
|
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
|
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
|
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
|
this.gkglbmOptions = res.data.GKGLBM;//归口管理部门
|
|
this.cbcdOptions = res.data.DEGREESTANDARD;//采标程度
|
|
})
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
@import '~@/assets/styles/style';
|
|
|
|
/deep/ .fileClass {
|
|
line-height: 22px !important;
|
|
}
|
|
|
|
.fileClassName {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/deep/ #active2 .el-form-item__content {
|
|
margin-left: 0px !important;
|
|
}
|
|
|
|
.bzrkStep1 {
|
|
/deep/ .el-drawer__container {
|
|
.prc-content-border {
|
|
border: none;
|
|
padding: 0 20px 0;
|
|
}
|
|
}
|
|
|
|
position: relative;
|
|
height: 100%;
|
|
|
|
.headerTabs {
|
|
height: 52px;
|
|
display: flex;
|
|
align-items: center;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 10px;
|
|
|
|
.headerTabsItem {
|
|
border: 1px solid #c1c1c1;
|
|
padding: 0 5px;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.active {
|
|
border: 1px solid #E6A23C;
|
|
color: #fff;
|
|
background: #E6A23C;
|
|
}
|
|
}
|
|
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
height: calc(~'100% - 103px');
|
|
overflow: auto;
|
|
|
|
.tableTitle {
|
|
margin-bottom: 10px;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
position: relative;
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
|
|
.tableButton {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.standard-content {
|
|
height: 100%;
|
|
padding: 10px 0 0;
|
|
|
|
.content {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 10px;
|
|
|
|
.standard-table-wrap {
|
|
flex: auto;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.pagination {
|
|
position: static;
|
|
|
|
/deep/ .pagination-slot {
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/deep/ .el-form-item__error {
|
|
right: 50px !important;
|
|
}
|
|
</style>
|