[update] 联调企标计划立项/变更流程
This commit is contained in:
@@ -3,15 +3,16 @@
|
||||
<!-- 基础信息部分 -->
|
||||
<div class="collapsible-panel-form">
|
||||
<div class="collapsible-panel-form-header">
|
||||
<span>基础信息</span>
|
||||
<!-- 基础信息 -->
|
||||
<span>{{ $t('basicInformation') }}</span>
|
||||
<div class="retractable-btn" @click="handleChangeRetractable('baseInfo')">
|
||||
<a-icon type="double-right" :class="retractableFlag.baseInfo ? 'pack-up-btn' : 'unfold-btn'" />
|
||||
{{ retractableFlag.baseInfo ? '收起' : '展开' }}
|
||||
{{ retractableFlag.baseInfo ? $t('putAway') : $t('open') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-flex-box collapsible-panel-form-content" v-show="retractableFlag.baseInfo">
|
||||
<!-- 标准立项-制定 -->
|
||||
<template v-if="itemCategory && itemCategory === 1">
|
||||
<template v-if="projectType && projectType === ProjectType.ENACT.value">
|
||||
<!-- 企标编号 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
@@ -20,9 +21,9 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="enterpriseStandardNum">
|
||||
<a-form-model-item class="item-model" prop="newEnStandardNo">
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.enterpriseStandardNum"
|
||||
v-model="formInline.newEnStandardNo"
|
||||
:maxLength="50"
|
||||
disabled
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum')" />
|
||||
@@ -36,9 +37,9 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.enterpriseStandardName') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="enterpriseStandardName">
|
||||
<a-form-model-item class="item-model" prop="newEnStandardName">
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.enterpriseStandardName"
|
||||
v-model="formInline.newEnStandardName"
|
||||
:disabled="disabled"
|
||||
:maxLength="50"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')" />
|
||||
@@ -52,10 +53,10 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.enterpriseStandardCode') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="enterpriseStandardCode">
|
||||
<a-form-model-item class="item-model" prop="enStandardCode">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.enterpriseStandardCode"
|
||||
v-model="formInline.enStandardCode"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardCode')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
@@ -70,10 +71,10 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.enterpriseNameCode') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="enterpriseNameCode">
|
||||
<a-form-model-item class="item-model" prop="enNameCode">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.enterpriseNameCode"
|
||||
v-model="formInline.enNameCode"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.enterpriseNameCode')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
@@ -106,18 +107,18 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.yearNumber') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="yearNumber">
|
||||
<a-form-model-item class="item-model" prop="decadeCode">
|
||||
<j-date show-type="year"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.yearNumber"
|
||||
:default-value="yearNumberDefaultValue"
|
||||
v-model="formInline.decadeCode"
|
||||
date-format="YYYY"
|
||||
@change="decadeCodeChange"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.yearNumber')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</template>
|
||||
<!-- 标准立项-修订 -->
|
||||
<template v-else-if="itemCategory && itemCategory === 2">
|
||||
<template v-else-if="projectType && projectType === ProjectType.MODIFY.value">
|
||||
<!-- 企标编号 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
@@ -126,12 +127,12 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="enterpriseStandardNum">
|
||||
<a-form-model-item class="item-model" prop="originEnStandardNo">
|
||||
<standard-selection :source="StandardSource.ENTERPRISE.value"
|
||||
:disabled="disabled"
|
||||
:disabledSourceSearch="true"
|
||||
type="radio"
|
||||
v-model="formInline.enterpriseStandardNum"
|
||||
v-model="formInline.originEnStandardNo"
|
||||
@nameChange="nameChange"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -142,9 +143,9 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.enterpriseStandardName') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="enterpriseStandardName">
|
||||
<a-form-model-item class="item-model" prop="originEnStandardName">
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.enterpriseStandardName"
|
||||
v-model="formInline.originEnStandardName"
|
||||
:maxLength="50"
|
||||
disabled
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')" />
|
||||
@@ -158,9 +159,9 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.newEnterpriseStandardNum') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="newEnterpriseStandardNum">
|
||||
<a-form-model-item class="item-model" prop="newEnStandardNo">
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.newEnterpriseStandardNum"
|
||||
v-model="formInline.newEnStandardNo"
|
||||
:maxLength="50"
|
||||
disabled
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.newEnterpriseStandardNum')" />
|
||||
@@ -174,10 +175,10 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.newEnterpriseStandardName') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="newEnterpriseStandardName">
|
||||
<a-form-model-item class="item-model" prop="newEnStandardName">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.newEnterpriseStandardName"
|
||||
v-model="formInline.newEnStandardName"
|
||||
:maxLength="50"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.newEnterpriseStandardName')" />
|
||||
</a-form-model-item>
|
||||
@@ -190,12 +191,12 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.yearNumber') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="yearNumber">
|
||||
<a-form-model-item class="item-model" prop="decadeCode">
|
||||
<j-date show-type="year"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.yearNumber"
|
||||
:default-value="yearNumberDefaultValue"
|
||||
v-model="formInline.decadeCode"
|
||||
date-format="YYYY"
|
||||
@change="decadeCodeChange"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.yearNumber')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -207,10 +208,10 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardEnglishName') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardEnglishName">
|
||||
<a-form-model-item class="item-model" prop="enStandardEnglishName">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.standardEnglishName"
|
||||
v-model="formInline.enStandardEnglishName"
|
||||
:maxLength="50"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.standardEnglishName')" />
|
||||
</a-form-model-item>
|
||||
@@ -222,14 +223,15 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardSystem') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardSystem">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.standardSystem"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.standardSystem')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
dictCode="standard_system" />
|
||||
<a-form-model-item class="item-model" prop="enStandardSystem">
|
||||
<a-tree-select
|
||||
v-model="formInline.enStandardSystem"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
style="width: 100%"
|
||||
:tree-data="standardSystemOptions"
|
||||
tree-checkable
|
||||
treeCheckStrictly
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.standardSystem')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 标准类型 -->
|
||||
@@ -256,10 +258,10 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardGradeClassification') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardGradeClassification">
|
||||
<a-form-model-item class="item-model" prop="enStandardClassification">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.standardGradeClassification"
|
||||
v-model="formInline.enStandardClassification"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.standardGradeClassification')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
@@ -273,11 +275,11 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.compilationIllustration') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="compilationIllustration">
|
||||
<a-button type="primary" class="button-text" @click="clickButtonToUpload('compilationIllustration')">
|
||||
<a-form-model-item class="item-model" prop="compilationDescription">
|
||||
<a-button type="primary" class="button-text" @click="clickButtonToUpload('compilationDescription')">
|
||||
{{
|
||||
(formInline.compilationIllustration === 'null' || formInline.compilationIllustration === ''
|
||||
|| formInline.compilationIllustration === null || formInline.compilationIllustration === undefined)
|
||||
(formInline.compilationDescription === 'null' || formInline.compilationDescription === ''
|
||||
|| formInline.compilationDescription === null || formInline.compilationDescription === undefined)
|
||||
? $t('uploadFile.clickUpload')
|
||||
: $t('uploadFile.viewUploadedFiles')
|
||||
}}
|
||||
@@ -289,10 +291,11 @@
|
||||
<!-- 完成日期部分 -->
|
||||
<div class="collapsible-panel-form">
|
||||
<div class="collapsible-panel-form-header">
|
||||
<span>完成日期</span>
|
||||
<!-- 完成日期 -->
|
||||
<span>{{ $t('finishDate') }}</span>
|
||||
<div class="retractable-btn" @click="handleChangeRetractable('finishDate')">
|
||||
<a-icon type="double-right" :class="retractableFlag.finishDate ? 'pack-up-btn' : 'unfold-btn'" />
|
||||
{{ retractableFlag.finishDate ? '收起' : '展开' }}
|
||||
{{ retractableFlag.finishDate ? $t('putAway') : $t('open') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-flex-box collapsible-panel-form-content" v-show="retractableFlag.finishDate">
|
||||
@@ -304,9 +307,9 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.draftPlanFinishDate') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="draftPlanFinishDate">
|
||||
<a-form-model-item class="item-model" prop="draftPlannedCompleteDate">
|
||||
<a-date-picker
|
||||
v-model="formInline.draftPlanFinishDate"
|
||||
v-model="formInline.draftPlannedCompleteDate"
|
||||
:showTime="false"
|
||||
:disabled="disabled"
|
||||
value-format="YYYY-MM-DD">
|
||||
@@ -321,9 +324,9 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.exposureDraftPlanFinishDate') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="exposureDraftPlanFinishDate">
|
||||
<a-form-model-item class="item-model" prop="solicitationDraftPlanCompleteDate">
|
||||
<a-date-picker
|
||||
v-model="formInline.exposureDraftPlanFinishDate"
|
||||
v-model="formInline.solicitationDraftPlanCompleteDate"
|
||||
:showTime="false"
|
||||
:disabled="disabled"
|
||||
value-format="YYYY-MM-DD">
|
||||
@@ -338,9 +341,9 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.planSubmissionDate') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="planSubmissionDate">
|
||||
<a-form-model-item class="item-model" prop="planApprovalDate">
|
||||
<a-date-picker
|
||||
v-model="formInline.planSubmissionDate"
|
||||
v-model="formInline.planApprovalDate"
|
||||
:showTime="false"
|
||||
:disabled="disabled"
|
||||
value-format="YYYY-MM-DD">
|
||||
@@ -352,10 +355,11 @@
|
||||
<!-- 适用范围部分 -->
|
||||
<div class="collapsible-panel-form">
|
||||
<div class="collapsible-panel-form-header">
|
||||
<span>适用范围</span>
|
||||
<!-- 适用范围 -->
|
||||
<span>{{ $t('rangeOfApplication') }}</span>
|
||||
<div class="retractable-btn" @click="handleChangeRetractable('rangeOfApplication')">
|
||||
<a-icon type="double-right" :class="retractableFlag.rangeOfApplication ? 'pack-up-btn' : 'unfold-btn'" />
|
||||
{{ retractableFlag.rangeOfApplication ? '收起' : '展开' }}
|
||||
{{ retractableFlag.rangeOfApplication ? $t('putAway') : $t('open') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-flex-box collapsible-panel-form-content" v-show="retractableFlag.rangeOfApplication">
|
||||
@@ -367,8 +371,8 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.partName') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="partName">
|
||||
<a-tree-select v-model="formInline.partName"
|
||||
<a-form-model-item class="item-model" prop="componentName">
|
||||
<a-tree-select v-model="formInline.componentName"
|
||||
:disabled="disabled"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
style="width: 100%"
|
||||
@@ -385,8 +389,8 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.authorizationDepart') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="authorizationDepart">
|
||||
<j-select-depart v-model="formInline.authorizationDepart"
|
||||
<a-form-model-item class="item-model" prop="authDept">
|
||||
<j-select-depart v-model="formInline.authDept"
|
||||
:disabled="disabled"
|
||||
:backDepart="true" />
|
||||
</a-form-model-item>
|
||||
@@ -399,13 +403,13 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.principalDrafter') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="principalDrafter">
|
||||
<a-form-model-item class="item-model" prop="mainDraftingUser">
|
||||
<user-selection :placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.principalDrafter')"
|
||||
v-model="formInline.principalDrafter"
|
||||
v-model="formInline.mainDraftingUser"
|
||||
:disabled="disabled"
|
||||
filedName="principalDrafter"
|
||||
filedName="mainDraftingUser"
|
||||
@nameChange="userSelectNameChange"
|
||||
:nameStr="formInline.principalDrafter_dictText"
|
||||
:nameStr="formInline.mainDraftingUser_dictText"
|
||||
type="radio" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -417,8 +421,8 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.mainDraftUnit') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="mainDraftUnit">
|
||||
<j-select-depart v-model="formInline.mainDraftUnit"
|
||||
<a-form-model-item class="item-model" prop="mainDraftingUnit">
|
||||
<j-select-depart v-model="formInline.mainDraftingUnit"
|
||||
:disabled="disabled"
|
||||
:backDepart="true" />
|
||||
</a-form-model-item>
|
||||
@@ -431,13 +435,13 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.headOfMainDraftingUnit') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="headOfMainDraftingUnit">
|
||||
<a-form-model-item class="item-model" prop="mainDraftingUnitResponsiblePerson">
|
||||
<user-selection :placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.headOfMainDraftingUnit')"
|
||||
v-model="formInline.headOfMainDraftingUnit"
|
||||
v-model="formInline.mainDraftingUnitResponsiblePerson"
|
||||
:disabled="disabled"
|
||||
filedName="headOfMainDraftingUnit"
|
||||
filedName="mainDraftingUnitResponsiblePerson"
|
||||
@nameChange="userSelectNameChange"
|
||||
:nameStr="formInline.headOfMainDraftingUnit_dictText"
|
||||
:nameStr="formInline.mainDraftingUnitResponsiblePerson_dictText"
|
||||
type="radio" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -449,13 +453,13 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardPusher') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardPusher">
|
||||
<a-form-model-item class="item-model" prop="standardPromoter">
|
||||
<user-selection :placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.standardPusher')"
|
||||
v-model="formInline.standardPusher"
|
||||
v-model="formInline.standardPromoter"
|
||||
:disabled="disabled"
|
||||
filedName="standardPusher"
|
||||
filedName="standardPromoter"
|
||||
@nameChange="userSelectNameChange"
|
||||
:nameStr="formInline.standardPusher_dictText"
|
||||
:nameStr="formInline.standardPromoter_dictText"
|
||||
type="radio" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -467,8 +471,8 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.suitUnit') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="suitUnit">
|
||||
<j-select-depart v-model="formInline.suitUnit"
|
||||
<a-form-model-item class="item-model" prop="cooperationUnit">
|
||||
<j-select-depart v-model="formInline.cooperationUnit"
|
||||
:disabled="disabled"
|
||||
:backDepart="true" />
|
||||
</a-form-model-item>
|
||||
@@ -478,10 +482,11 @@
|
||||
<!-- 立项说明部分 -->
|
||||
<div class="collapsible-panel-form">
|
||||
<div class="collapsible-panel-form-header">
|
||||
<span>立项说明</span>
|
||||
<!-- 立项说明 -->
|
||||
<span>{{ $t('projectStatement') }}</span>
|
||||
<div class="retractable-btn" @click="handleChangeRetractable('projectStatement')">
|
||||
<a-icon type="double-right" :class="retractableFlag.projectStatement ? 'pack-up-btn' : 'unfold-btn'" />
|
||||
{{ retractableFlag.projectStatement ? '收起' : '展开' }}
|
||||
{{ retractableFlag.projectStatement ? $t('putAway') : $t('open') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-flex-box collapsible-panel-form-content" v-show="retractableFlag.projectStatement">
|
||||
@@ -492,11 +497,11 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.projectApprovalChangeReason') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="projectApprovalChangeReason">
|
||||
<a-form-model-item class="item-model" prop="changeReason">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.projectApprovalChangeReason')"
|
||||
:maxLength="500"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.projectApprovalChangeReason" :rows="4" />
|
||||
v-model="formInline.changeReason" :rows="4" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 立项背景、立项依据 -->
|
||||
@@ -520,11 +525,11 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.homogeneousStandardAnalysis') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="homogeneousStandardAnalysis">
|
||||
<a-form-model-item class="item-model" prop="similarNaStandardsAnalysis">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.homogeneousStandardAnalysis')"
|
||||
:maxLength="500"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.homogeneousStandardAnalysis" :rows="4" />
|
||||
v-model="formInline.similarNaStandardsAnalysis" :rows="4" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 企业同类标准对比分析 -->
|
||||
@@ -534,11 +539,11 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardContrastiveAnalysis') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardContrastiveAnalysis">
|
||||
<a-form-model-item class="item-model" prop="similarEnStandardsAnalysis">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.standardContrastiveAnalysis')"
|
||||
:maxLength="500"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.standardContrastiveAnalysis" :rows="4" />
|
||||
v-model="formInline.similarEnStandardsAnalysis" :rows="4" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 立项标准的领先性与必要性 -->
|
||||
@@ -548,11 +553,11 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.leadershipAndNecessity') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="leadershipAndNecessity">
|
||||
<a-form-model-item class="item-model" prop="standardLeadingNecessity">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.leadershipAndNecessity')"
|
||||
:maxLength="500"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.leadershipAndNecessity" :rows="4" />
|
||||
v-model="formInline.standardLeadingNecessity" :rows="4" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 立项目的及预期效果等 -->
|
||||
@@ -562,11 +567,11 @@
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.initiatedProject') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="initiatedProject">
|
||||
<a-form-model-item class="item-model" prop="projectExpectedEffects">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.initiatedProject')"
|
||||
:maxLength="500"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.initiatedProject" :rows="4" />
|
||||
v-model="formInline.projectExpectedEffects" :rows="4" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 上传附件 -->
|
||||
@@ -598,20 +603,22 @@
|
||||
<script>
|
||||
import Vue from 'vue'
|
||||
import { USER_INFO } from '@/store/mutation-types'
|
||||
import { StandardSource } from '@/enums/commonEnums.js'
|
||||
import { StandardSource, ProjectType } from '@/enums/commonEnums.js'
|
||||
import StandardSelection from '@/components/selection/StandardSelection'
|
||||
import UserSelection from '@/components/selection/UserSelection'
|
||||
import UploadFile from '@/components/UploadFile'
|
||||
import { getFormDictTreeList } from '@/api/api'
|
||||
import { getEnStandardNo } from '@/api/workCenter'
|
||||
import { getTreeList } from '../../../../api/enterpriseStandardLibraryApi'
|
||||
|
||||
export default {
|
||||
name: 'ApprovalBaseInfo',
|
||||
components: { StandardSelection, UserSelection, UploadFile },
|
||||
props: {
|
||||
itemCategory: {
|
||||
type: Number,
|
||||
projectType: {
|
||||
type: [Number, String],
|
||||
required: false,
|
||||
default: 1
|
||||
default: ProjectType.ENACT.value
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
@@ -619,20 +626,44 @@ export default {
|
||||
default: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
yearNumberDefaultValue () {
|
||||
return new Date().getFullYear() + ''
|
||||
// computed: {
|
||||
// yearNumberDefaultValue () {
|
||||
// return new Date().getFullYear() + ''
|
||||
// }
|
||||
// },
|
||||
watch: {
|
||||
projectType () {
|
||||
console.log('projectType改变了————————————————————————---')
|
||||
this.formInline.decadeCode = new Date().getFullYear() + ''
|
||||
},
|
||||
// 企业标准代号
|
||||
'formInline.enStandardCode' (value) {
|
||||
this.getEnStandardNo()
|
||||
},
|
||||
// 企业名称代号
|
||||
'formInline.enNameCode' (value) {
|
||||
this.getEnStandardNo()
|
||||
},
|
||||
// 标准类别代号
|
||||
'formInline.standardCategoryCode' (value) {
|
||||
this.getEnStandardNo()
|
||||
},
|
||||
// 原企标编号改变,新企标编号随之改变
|
||||
'formInline.originEnStandardNo' (value) {
|
||||
this.getEnStandardNo()
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
StandardSource,
|
||||
partNameOptions: [],
|
||||
ProjectType,
|
||||
partNameOptions: [], // 零部件名称下拉框数据
|
||||
standardSystemOptions: [], // 标准体系下拉框数据
|
||||
formInline: {},
|
||||
isFormInline: true,
|
||||
rules: {
|
||||
// 企标编号
|
||||
enterpriseStandardNum: [
|
||||
originEnStandardNo: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum') + this.$t('cannotEmpty'),
|
||||
@@ -640,23 +671,23 @@ export default {
|
||||
}
|
||||
],
|
||||
// 企标名称
|
||||
enterpriseStandardName: [
|
||||
originEnStandardName: [
|
||||
{
|
||||
required: true,
|
||||
required: false,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
// 企业标准代号
|
||||
enterpriseStandardCode: [
|
||||
enStandardCode: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName') + this.$t('cannotEmpty'),
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.enterpriseStandardCode') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
// 企业名称代号
|
||||
enterpriseNameCode: [
|
||||
enNameCode: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.enterpriseNameCode') + this.$t('cannotEmpty'),
|
||||
@@ -672,7 +703,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 年代号
|
||||
yearNumber: [
|
||||
decadeCode: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.yearNumber') + this.$t('cannotEmpty'),
|
||||
@@ -680,7 +711,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 新企标号
|
||||
newEnterpriseStandardNum: [
|
||||
newEnStandardNo: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.newEnterpriseStandardNum') + this.$t('cannotEmpty'),
|
||||
@@ -688,7 +719,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 新企标名称
|
||||
newEnterpriseStandardName: [
|
||||
newEnStandardName: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.newEnterpriseStandardName') + this.$t('cannotEmpty'),
|
||||
@@ -696,7 +727,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 标准体系
|
||||
standardSystem: [
|
||||
enStandardSystem: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.standardSystem') + this.$t('cannotEmpty'),
|
||||
@@ -712,7 +743,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 标准等级分类
|
||||
standardGradeClassification: [
|
||||
enStandardClassification: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.standardGradeClassification') + this.$t('cannotEmpty'),
|
||||
@@ -720,7 +751,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 草稿计划完成日期
|
||||
draftPlanFinishDate: [
|
||||
draftPlannedCompleteDate: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.draftPlanFinishDate') + this.$t('cannotEmpty'),
|
||||
@@ -728,7 +759,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 征求意见稿计划完成日期
|
||||
exposureDraftPlanFinishDate: [
|
||||
solicitationDraftPlanCompleteDate: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.exposureDraftPlanFinishDate') + this.$t('cannotEmpty'),
|
||||
@@ -736,7 +767,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 计划报批日期
|
||||
planSubmissionDate: [
|
||||
planApprovalDate: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.planSubmissionDate') + this.$t('cannotEmpty'),
|
||||
@@ -744,7 +775,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 授权部门
|
||||
authorizationDepart: [
|
||||
authDept: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.authorizationDepart') + this.$t('cannotEmpty'),
|
||||
@@ -752,7 +783,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 主起草人
|
||||
principalDrafter: [
|
||||
mainDraftingUser: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.principalDrafter') + this.$t('cannotEmpty'),
|
||||
@@ -760,7 +791,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 主起草单位
|
||||
mainDraftUnit: [
|
||||
mainDraftingUnit: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.mainDraftUnit') + this.$t('cannotEmpty'),
|
||||
@@ -768,7 +799,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 起草单位负责人
|
||||
headOfMainDraftingUnit: [
|
||||
mainDraftingUnitResponsiblePerson: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.headOfMainDraftingUnit') + this.$t('cannotEmpty'),
|
||||
@@ -776,7 +807,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 标准推进人
|
||||
standardPusher: [
|
||||
standardPromoter: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.standardPusher') + this.$t('cannotEmpty'),
|
||||
@@ -784,7 +815,7 @@ export default {
|
||||
}
|
||||
],
|
||||
// 配合单位
|
||||
suitUnit: [
|
||||
cooperationUnit: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('workCenter.enterpriseInitChangePlan.suitUnit') + this.$t('cannotEmpty'),
|
||||
@@ -806,14 +837,48 @@ export default {
|
||||
mounted () {
|
||||
const userInfo = Vue.ls.get(USER_INFO)
|
||||
// 初始化主起草人信息
|
||||
this.formInline.principalDrafter = userInfo.id
|
||||
this.formInline.principalDrafter_dictText = userInfo.realname
|
||||
this.formInline.mainDraftingUser = userInfo.id
|
||||
this.formInline.mainDraftingUser_dictText = userInfo.realname
|
||||
// 初始化主起草单位信息
|
||||
this.formInline.mainDraftUnit = userInfo.departIds
|
||||
this.formInline.mainDraftingUnit = userInfo.departIds
|
||||
// 获取零部件名称下拉框数据
|
||||
this.initPartNameOptions()
|
||||
// 获取标准体系下拉框数据
|
||||
this.initStandardSystemOptions()
|
||||
// 初始化年代号
|
||||
this.formInline.decadeCode = new Date().getFullYear() + ''
|
||||
},
|
||||
methods: {
|
||||
// watch监视年代号会滞后
|
||||
decadeCodeChange (value) {
|
||||
this.getEnStandardNo()
|
||||
},
|
||||
// 根据三个代号和一个年代号获取企标编号
|
||||
getEnStandardNo () {
|
||||
// 如果是制定根据填的三个代号和一个年代号获取
|
||||
if (this.projectType === ProjectType.ENACT.value) {
|
||||
if (!this.formInline.enStandardCode || !this.formInline.enNameCode ||
|
||||
!this.formInline.standardCategoryCode || !this.formInline.decadeCode) {
|
||||
return
|
||||
}
|
||||
const param = {}
|
||||
param.enStandardCode = this.formInline.enStandardCode
|
||||
param.enNameCode = this.formInline.enNameCode
|
||||
param.standardCategoryCode = this.formInline.standardCategoryCode
|
||||
param.decadeCode = this.formInline.decadeCode
|
||||
getEnStandardNo(param).then(res => {
|
||||
console.log(res)
|
||||
if (res.success) {
|
||||
this.$set(this.formInline, 'newEnStandardNo', res.message)
|
||||
this.$forceUpdate()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
const standardNo = this.formInline.originEnStandardNo.split('-')[0] + '-' + this.formInline.decadeCode
|
||||
this.$set(this.formInline, 'newEnStandardNo', standardNo)
|
||||
this.$forceUpdate()
|
||||
}
|
||||
},
|
||||
// 获取零部件名称下拉框数据
|
||||
initPartNameOptions () {
|
||||
getFormDictTreeList({ dictId: '1696821512600637441' }).then(res => {
|
||||
@@ -822,6 +887,14 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取标准体系下拉框数据
|
||||
initStandardSystemOptions () {
|
||||
getTreeList({ option: 1 }).then(res => {
|
||||
if (res.success) {
|
||||
this.standardSystemOptions = res.result
|
||||
}
|
||||
})
|
||||
},
|
||||
// 改变内容区域收起和展开
|
||||
handleChangeRetractable (module) {
|
||||
this.$set(this.retractableFlag, module, !this.retractableFlag[module])
|
||||
@@ -829,7 +902,7 @@ export default {
|
||||
},
|
||||
// 标准选择组件返回标准名称的回调
|
||||
nameChange (value) {
|
||||
this.formInline.enterpriseStandardName = value
|
||||
this.formInline.originEnStandardName = value
|
||||
},
|
||||
// 点击文件上传
|
||||
clickButtonToUpload (fieldName) {
|
||||
@@ -874,6 +947,6 @@ export default {
|
||||
}
|
||||
|
||||
.title-text-long {
|
||||
width: 220px;
|
||||
width: 220px !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user