[update] 企标更改流程发起联调
This commit is contained in:
+34
-37
@@ -58,75 +58,73 @@ const standardizationInitGetDataById = (taskId, params) => getAction(`/process/e
|
||||
|
||||
// 企标更改流程
|
||||
// 保存
|
||||
const enStandardChangeSave = (params) => postAction('', params)
|
||||
const enStandardChangeSave = (params) => postAction('/process/es/change/save', params)
|
||||
// 发起
|
||||
const enStandardChangeApproval = (params) => postAction('', params)
|
||||
const enStandardChangeApproval = (params) => postAction('/process/es/change/start', params)
|
||||
// 转办
|
||||
const enStandardChangeTurnTo = (params) => postAction('', params)
|
||||
const enStandardChangeTurnTo = (params) => postAction('/process/es/change/transfer', params)
|
||||
// 同意
|
||||
const enStandardChangeAgree = (params) => postAction('', params)
|
||||
const enStandardChangeAgree = (params) => postAction('/process/es/change/agree', params)
|
||||
// 拒绝
|
||||
const enStandardChangeReject = (params) => postAction('', params)
|
||||
const enStandardChangeReject = (params) => postAction('/process/es/change/reject', params)
|
||||
// 根据id查流程数据
|
||||
const enStandardChangeGetDataById = (params) => getAction('', params)
|
||||
const enStandardChangeGetDataById = (taskId, params) => getAction(`/process/es/change/handle/${taskId}`, params)
|
||||
|
||||
// 企标复审流程
|
||||
// 根据id查询流程数据
|
||||
const enStandardRecheckGetDataById = (params) => getAction('', params)
|
||||
// 保存
|
||||
const enStandardRecheckSave = (params) => postAction('', params)
|
||||
const enStandardRecheckSave = (params) => postAction('/process/es/recheck/save', params)
|
||||
// 发起
|
||||
const enStandardRecheckApproval = (params) => postAction('', params)
|
||||
const enStandardRecheckApproval = (params) => postAction('/process/es/recheck/start', params)
|
||||
// 转办
|
||||
const enStandardRecheckTurnTo = (params) => postAction('', params)
|
||||
// 提交
|
||||
const enStandardRecheckSubmit = (params) => postAction('', params)
|
||||
const enStandardRecheckTurnTo = (params) => postAction('/process/es/recheck/transfer', params)
|
||||
// 同意
|
||||
const enStandardRecheckAgree = (params) => postAction('', params)
|
||||
const enStandardRecheckAgree = (params) => postAction('/process/es/recheck/agree', params)
|
||||
// 驳回
|
||||
const enStandardRecheckReject = (params) => postAction('', params)
|
||||
const enStandardRecheckReject = (params) => postAction('/process/es/recheck/reject', params)
|
||||
// 根据id查询流程数据
|
||||
const enStandardRecheckGetDataById = (taskId, params) => getAction(`/process/es/recheck/handle/${taskId}`, params)
|
||||
|
||||
// 企标废止流程
|
||||
// 根据id查询流程数据--办理
|
||||
const enStandardAnnulGetDataById = (params) => getAction('', params)
|
||||
// 保存
|
||||
const enStandardAnnulSave = (params) => postAction('', params)
|
||||
const enStandardAnnulSave = (params) => postAction('/process/es/abolish/save', params)
|
||||
// 发起
|
||||
const enStandardAnnulApproval = (params) => postAction('', params)
|
||||
const enStandardAnnulApproval = (params) => postAction('/process/es/abolish/start', params)
|
||||
// 转办
|
||||
const enStandardAnnulTurnTo = (params) => postAction('', params)
|
||||
const enStandardAnnulTurnTo = (params) => postAction('/process/es/abolish/transfer', params)
|
||||
// 同意
|
||||
const enStandardAnnulAgree = (params) => postAction('', params)
|
||||
const enStandardAnnulAgree = (params) => postAction('/process/es/abolish/agree', params)
|
||||
// 驳回
|
||||
const enStandardAnnulReject = (params) => postAction('', params)
|
||||
const enStandardAnnulReject = (params) => postAction('/process/es/abolish/reject', params)
|
||||
// 根据id查询流程数据--办理
|
||||
const enStandardAnnulGetDataById = (taskId, params) => getAction(`/process/es/abolish/handle/${taskId}`, params)
|
||||
|
||||
// 企标封存流程
|
||||
// 根据id查询流程数据--办理
|
||||
const enStandardSealSaveGetDataById = (params) => getAction('', params)
|
||||
// 保存
|
||||
const enStandardSealSaveSave = (params) => postAction('', params)
|
||||
const enStandardSealSaveSave = (params) => postAction('/process/es/archive/save', params)
|
||||
// 发起
|
||||
const enStandardSealSaveApproval = (params) => postAction('', params)
|
||||
const enStandardSealSaveApproval = (params) => postAction('/process/es/archive/start', params)
|
||||
// 转办
|
||||
const enStandardSealSaveTurnTo = (params) => postAction('', params)
|
||||
const enStandardSealSaveTurnTo = (params) => postAction('/process/es/archive/transfer', params)
|
||||
// 同意
|
||||
const enStandardSealSaveAgree = (params) => postAction('', params)
|
||||
const enStandardSealSaveAgree = (params) => postAction('/process/es/archive/agree', params)
|
||||
// 驳回
|
||||
const enStandardSealSaveReject = (params) => postAction('', params)
|
||||
const enStandardSealSaveReject = (params) => postAction('/process/es/archive/reject', params)
|
||||
// 根据id查询流程数据--办理
|
||||
const enStandardSealSaveGetDataById = (taskId, params) => getAction(`/process/es/archive/handle/${taskId}`, params)
|
||||
|
||||
// 已封存企标启用流程
|
||||
// 根据id查询流程数据--办理
|
||||
const enStandardStartUseGetDataById = (params) => getAction('', params)
|
||||
// 保存
|
||||
const enStandardStartUseSave = (params) => postAction('', params)
|
||||
const enStandardStartUseSave = (params) => postAction('/process/es/enable/save', params)
|
||||
// 发起
|
||||
const enStandardStartUseApproval = (params) => postAction('', params)
|
||||
const enStandardStartUseApproval = (params) => postAction('/process/es/enable/start', params)
|
||||
// 转办
|
||||
const enStandardStartUseTurnTo = (params) => postAction('', params)
|
||||
const enStandardStartUseTurnTo = (params) => postAction('/process/es/enable/transfer', params)
|
||||
// 同意
|
||||
const enStandardStartUseAgree = (params) => postAction('', params)
|
||||
const enStandardStartUseAgree = (params) => postAction('/process/es/enable/agree', params)
|
||||
// 驳回
|
||||
const enStandardStartUseReject = (params) => postAction('', params)
|
||||
const enStandardStartUseReject = (params) => postAction('/process/es/enable/reject', params)
|
||||
// 根据id查询流程数据--办理
|
||||
const enStandardStartUseGetDataById = (taskId, params) => getAction(`/process/es/enable/handle/${taskId}`, params)
|
||||
|
||||
// 流程中心
|
||||
// 待办-转办
|
||||
@@ -189,7 +187,6 @@ export {
|
||||
enStandardRecheckSave,
|
||||
enStandardRecheckApproval,
|
||||
enStandardRecheckTurnTo,
|
||||
enStandardRecheckSubmit,
|
||||
enStandardRecheckAgree,
|
||||
enStandardRecheckReject,
|
||||
|
||||
|
||||
@@ -157,10 +157,15 @@ export const ProcessKey = {
|
||||
ES_ANNUAL_INIT: { text: 'es-annual-init', value: 'es-annual-init' },
|
||||
// 企标制修订流程
|
||||
// 企标更改流程
|
||||
ES_CHANGE: { text: 'es-change', value: 'es-change' },
|
||||
// 企标复审流程
|
||||
ES_RECHECK: { text: 'es-recheck', value: 'es-recheck' },
|
||||
// 企标废止流程
|
||||
ES_ABOLISH: { text: 'es-abolish', value: 'es-abolish' },
|
||||
// 企标封存流程
|
||||
ES_ARCHIVE: { text: 'es-archive', value: 'es-archive' },
|
||||
// 已封存企标启用流程
|
||||
ES_ENABLE: { text: 'es-enable', value: 'es-enable' },
|
||||
// 标准法规入库/变更流程
|
||||
FB_ENTRY_CHANGE: { text: 'fb-entry-change', value: 'fb-entry-change' }
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
</div>
|
||||
<!-- 人员信息 -->
|
||||
<div v-show="switchValue === 'user'" class="detail-page-scroll-content p-0">
|
||||
<process-detail-list :url="url">
|
||||
<process-detail-list>
|
||||
<personnel-info slot="personnelInfo" ref="personnelInfo" :data="personnelInfoData" :currentNode="currentNode + ''"></personnel-info>
|
||||
</process-detail-list>
|
||||
</div>
|
||||
@@ -113,8 +113,6 @@ import InternalDetailPage from '@/components/InternalDetailPage'
|
||||
import ProcessDetailList from '@/components/ProcessDetailList'
|
||||
import PersonnelInfo from '@/components/PersonnelInfo'
|
||||
import UserSelectModal from '@/components/selection/UserSelectModal'
|
||||
import { USER_INFO } from '@/store/mutation-types'
|
||||
import Vue from 'vue'
|
||||
import pick from 'lodash.pick'
|
||||
import {
|
||||
enStandardChangeSave,
|
||||
@@ -127,50 +125,7 @@ import {
|
||||
import MainDrafterInitBaseInfo from './modules/MainDrafterInitBaseInfo'
|
||||
import ApproveBaseInfo from './modules/ApproveBaseInfo'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
|
||||
// 人员信息
|
||||
const personalInfo = [ // 人员信息的数据
|
||||
{
|
||||
id: 1,
|
||||
nodeName: '主起草人发起',
|
||||
nodeRoleName: '发起人',
|
||||
canChoose: false,
|
||||
userList: Vue.ls.get(USER_INFO).realname + '(' + Vue.ls.get(USER_INFO).username + ')',
|
||||
fieldName: 'mainDraftUser'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
nodeName: '相关人员校对',
|
||||
nodeRoleName: '相关人员',
|
||||
canChoose: true,
|
||||
chooseType: 'checkbox',
|
||||
fieldName: 'relatedUser'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
nodeName: '起草人主管级领导审批',
|
||||
nodeRoleName: '起草人主管级领导',
|
||||
canChoose: true,
|
||||
chooseType: 'radio',
|
||||
fieldName: 'mainDraftUserLeader'
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
nodeName: '标准化审批',
|
||||
nodeRoleName: '标准化',
|
||||
canChoose: true,
|
||||
chooseType: 'radio',
|
||||
fieldName: 'standardizationUser'
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
nodeName: '起草人主管级上一级领导审批',
|
||||
nodeRoleName: '起草人主管级上一级领导',
|
||||
canChoose: true,
|
||||
chooseType: 'radio',
|
||||
fieldName: 'mainDraftUserLeaderLeader'
|
||||
}
|
||||
]
|
||||
import { ProcessKey } from '../../../enums/commonEnums'
|
||||
|
||||
export default {
|
||||
name: 'EnterpriseStandardChangeFlow',
|
||||
@@ -190,7 +145,7 @@ export default {
|
||||
},
|
||||
mounted () {
|
||||
// 获取人员信息结构
|
||||
this.getPersonInfoStructure()
|
||||
this.getPersonInfoStructure(ProcessKey.ES_CHANGE.value)
|
||||
if (this.$route.query.taskId) {
|
||||
this.currentNodeName = this.$route.query.taskName
|
||||
// 有流程id说明是从流程中心来的,需要初始化数据
|
||||
|
||||
@@ -1,344 +1,348 @@
|
||||
<template>
|
||||
<a-form-model :model="formInline" class="form-add" :rules="rules" ref="ruleForm">
|
||||
<div class="collapsible-panel-form">
|
||||
<div class="form-flex-box collapsible-panel-form-content collapsible-content-no-head">
|
||||
<!-- 制修订类型 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.typeOfRevision')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.typeOfRevision') }}
|
||||
</span>
|
||||
<a-spin :spinning="loading">
|
||||
<a-form-model :model="formInline" class="form-add" :rules="rules" ref="ruleForm">
|
||||
<div class="collapsible-panel-form">
|
||||
<div class="form-flex-box collapsible-panel-form-content collapsible-content-no-head">
|
||||
<!-- 制修订类型 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.typeOfRevision')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.typeOfRevision') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model">
|
||||
<a-input class="box-input"
|
||||
:maxLength="50"
|
||||
defaultValue="更改"
|
||||
disabled
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.typeOfRevision')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model">
|
||||
<a-input class="box-input"
|
||||
:maxLength="50"
|
||||
defaultValue="更改"
|
||||
disabled
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.typeOfRevision')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 企标编号 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum') }}
|
||||
</span>
|
||||
<!-- 企标编号 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardNumber">
|
||||
<standard-selection :source="StandardSource.ENTERPRISE.value"
|
||||
:disabled="disabled"
|
||||
:disabledSourceSearch="true"
|
||||
type="radio"
|
||||
v-model="formInline.standardNumber"
|
||||
@listChange="listChange" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardNumber">
|
||||
<standard-selection :source="StandardSource.ENTERPRISE.value"
|
||||
:disabled="disabled"
|
||||
:disabledSourceSearch="true"
|
||||
type="radio"
|
||||
v-model="formInline.standardNumber"
|
||||
@listChange="listChange" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 企标名称 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.enterpriseStandardName') }}
|
||||
</span>
|
||||
<!-- 企标名称 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.enterpriseStandardName') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardName">
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.standardName"
|
||||
:maxLength="50"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardName">
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.standardName"
|
||||
:maxLength="50"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 标准等级分类 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.standardGradeClassification')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardGradeClassification') }}
|
||||
</span>
|
||||
<!-- 标准等级分类 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.standardGradeClassification')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardGradeClassification') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="gradeClassification">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.gradeClassification"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.standardGradeClassification')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
dictCode="standard_grade_classify" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="gradeClassification">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.gradeClassification"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.standardGradeClassification')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
dictCode="standard_grade_classify" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 标准体系 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.standardSystem')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardSystem') }}
|
||||
</span>
|
||||
<!-- 标准体系 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.standardSystem')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardSystem') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardSystem">
|
||||
<a-tree-select
|
||||
v-model="formInline.standardSystem"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
style="width: 100%"
|
||||
:disabled="disabled"
|
||||
:tree-data="standardSystemOptions"
|
||||
tree-checkable
|
||||
treeCheckStrictly
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.standardSystem')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardSystem">
|
||||
<a-tree-select
|
||||
v-model="formInline.standardSystem"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
style="width: 100%"
|
||||
:disabled="disabled"
|
||||
:tree-data="standardSystemOptions"
|
||||
tree-checkable
|
||||
treeCheckStrictly
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.standardSystem')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 标准英文名称 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.standardEnglishName')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardEnglishName') }}
|
||||
</span>
|
||||
<!-- 标准英文名称 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.standardEnglishName')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.standardEnglishName') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardEnglishName">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.standardEnglishName"
|
||||
:maxLength="50"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.standardEnglishName')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="englishName">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.englishName"
|
||||
:maxLength="50"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.standardEnglishName')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 发布日期 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text title-text-long">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.releaseDate')">
|
||||
{{ $t('workCenter.enStandardChange.releaseDate') }}
|
||||
</span>
|
||||
<!-- 发布日期 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text title-text-long">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.releaseDate')">
|
||||
{{ $t('workCenter.enStandardChange.releaseDate') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="releaseDate">
|
||||
<a-date-picker
|
||||
v-model="formInline.releaseDate"
|
||||
:showTime="false"
|
||||
:disabled="disabled"
|
||||
value-format="YYYY-MM-DD">
|
||||
</a-date-picker>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="releaseDate">
|
||||
<a-date-picker
|
||||
v-model="formInline.releaseDate"
|
||||
:showTime="false"
|
||||
:disabled="disabled"
|
||||
value-format="YYYY-MM-DD">
|
||||
</a-date-picker>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 实施日期 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text title-text-long">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.materialDate')">
|
||||
{{ $t('workCenter.enStandardChange.materialDate') }}
|
||||
</span>
|
||||
<!-- 实施日期 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text title-text-long">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.materialDate')">
|
||||
{{ $t('workCenter.enStandardChange.materialDate') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="implementationDate">
|
||||
<a-date-picker
|
||||
v-model="formInline.implementationDate"
|
||||
:showTime="false"
|
||||
:disabled="disabled"
|
||||
value-format="YYYY-MM-DD">
|
||||
</a-date-picker>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="implementationDate">
|
||||
<a-date-picker
|
||||
v-model="formInline.implementationDate"
|
||||
:showTime="false"
|
||||
:disabled="disabled"
|
||||
value-format="YYYY-MM-DD">
|
||||
</a-date-picker>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 是否试行 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.isTry')">
|
||||
{{ $t('workCenter.enStandardChange.isTry') }}
|
||||
</span>
|
||||
<!-- 是否试行 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.isTry')">
|
||||
{{ $t('workCenter.enStandardChange.isTry') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="tryFlag">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.tryFlag"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enStandardChange.isTry')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
dictCode="is_trial" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="tryFlag">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.tryFlag"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enStandardChange.isTry')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
dictCode="is_trial" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 试行周期 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.trialPeriod')">
|
||||
{{ $t('workCenter.enStandardChange.trialPeriod') }}
|
||||
</span>
|
||||
<!-- 试行周期 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.trialPeriod')">
|
||||
{{ $t('workCenter.enStandardChange.trialPeriod') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="trialPeriod">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.trialPeriod"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enStandardChange.trialPeriod')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
dictCode="trial_period" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="trialPeriod">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.trialPeriod"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enStandardChange.trialPeriod')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
dictCode="trial_period" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 零部件名称 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.partName')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.partName') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="partName">
|
||||
<a-tree-select v-model="formInline.partName"
|
||||
:disabled="disabled"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
style="width: 100%"
|
||||
:tree-data="partNameOptions"
|
||||
:label-in-value="false"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.partName')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 主起草人 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.principalDrafter')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.principalDrafter') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="mainDraftingUser">
|
||||
<user-selection :placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.principalDrafter')"
|
||||
v-model="formInline.mainDraftingUser"
|
||||
:disabled="disabled"
|
||||
filedName="mainDraftingUser"
|
||||
@nameChange="userSelectNameChange"
|
||||
:nameStr="formInline.mainDraftingUser_dictText"
|
||||
type="radio" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 主起草单位 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.mainDraftUnit')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.mainDraftUnit') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="mainDraftingUnit">
|
||||
<j-select-depart v-model="formInline.mainDraftingUnit"
|
||||
<!-- 零部件名称 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.partName')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.partName') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="partName">
|
||||
<a-tree-select v-model="formInline.partName"
|
||||
:disabled="disabled"
|
||||
:backDepart="true" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 标准适用范围 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text title-text-long">
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.scopeOfApplication')">
|
||||
{{ $t('workCenter.enStandardChange.scopeOfApplication') }}
|
||||
</span>
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
style="width: 100%"
|
||||
:tree-data="partNameOptions"
|
||||
:label-in-value="false"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.partName')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardScope">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.scopeOfApplication')"
|
||||
:maxLength="500"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.standardScope" :rows="4" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 代替标准号 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.substituteStandardNumber')">
|
||||
{{ $t('workCenter.enStandardChange.substituteStandardNumber') }}
|
||||
</span>
|
||||
<!-- 主起草人 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.principalDrafter')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.principalDrafter') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="mainDraftingUser">
|
||||
<user-selection :placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.principalDrafter')"
|
||||
v-model="formInline.mainDraftingUser"
|
||||
:disabled="disabled"
|
||||
filedName="mainDraftingUser"
|
||||
@nameChange="userSelectNameChange"
|
||||
:nameStr="formInline.mainDraftingUser_dictText"
|
||||
type="radio" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="substitute_standard_number">
|
||||
<standard-selection :source="StandardSource.ENTERPRISE.value"
|
||||
:disabled="disabled"
|
||||
:disabledSourceSearch="true"
|
||||
type="radio"
|
||||
v-model="formInline.substitute_standard_number" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 引用标准 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.quotedStandard')">
|
||||
{{ $t('workCenter.enStandardChange.quotedStandard') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="quoted_standard">
|
||||
<standard-selection :source="StandardSource.ENTERPRISE.value"
|
||||
:disabled="disabled"
|
||||
:disabledSourceSearch="true"
|
||||
type="radio"
|
||||
v-model="formInline.quoted_standard" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 关联文件 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text title-text-long">
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.relevantFile')">
|
||||
{{ $t('workCenter.enStandardChange.relevantFile') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="associated_file">
|
||||
<a-button type="primary" class="button-text" style="width: 200px" @click="clickButtonToUpload('associated_file')">
|
||||
{{
|
||||
(formInline.associated_file === 'null' || formInline.associated_file === ''
|
||||
|| formInline.associated_file === null || formInline.associated_file === undefined)
|
||||
? $t('uploadFile.clickUpload')
|
||||
: $t('uploadFile.viewUploadedFiles')
|
||||
}}
|
||||
</a-button>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 采标程度 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.degreeOfBidAcquisition')">
|
||||
{{ $t('workCenter.enStandardChange.degreeOfBidAcquisition') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="acquisition_degree">
|
||||
<j-dict-select-tag class="box-input"
|
||||
<!-- 主起草单位 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enterpriseInitChangePlan.mainDraftUnit')">
|
||||
{{ $t('workCenter.enterpriseInitChangePlan.mainDraftUnit') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="mainDraftingUnit">
|
||||
<j-select-depart v-model="formInline.mainDraftingUnit"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.acquisition_degree"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enStandardChange.degreeOfBidAcquisition')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
dictCode="degree_bid_acquisition" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 采用国际标准号 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.adoptInternationalStandardNumber')">
|
||||
{{ $t('workCenter.enStandardChange.adoptInternationalStandardNumber') }}
|
||||
</span>
|
||||
:backDepart="true" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 标准适用范围 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text title-text-long">
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.scopeOfApplication')">
|
||||
{{ $t('workCenter.enStandardChange.scopeOfApplication') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="standardScope">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.scopeOfApplication')"
|
||||
:maxLength="500"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.standardScope" :rows="4" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 代替标准号 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.substituteStandardNumber')">
|
||||
{{ $t('workCenter.enStandardChange.substituteStandardNumber') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="substituteStandardNumber">
|
||||
<standard-selection :source="StandardSource.ENTERPRISE.value"
|
||||
:disabled="disabled"
|
||||
:disabledSourceSearch="true"
|
||||
type="radio"
|
||||
v-model="formInline.substituteStandardNumber" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 引用标准 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.quotedStandard')">
|
||||
{{ $t('workCenter.enStandardChange.quotedStandard') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="quotedStandard">
|
||||
<standard-selection :source="StandardSource.ENTERPRISE.value"
|
||||
:disabled="disabled"
|
||||
:disabledSourceSearch="true"
|
||||
type="radio"
|
||||
v-model="formInline.quotedStandard" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 关联文件 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text title-text-long">
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.relevantFile')">
|
||||
{{ $t('workCenter.enStandardChange.relevantFile') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="associatedFile">
|
||||
<a-button type="primary" class="button-text" style="width: 200px" @click="clickButtonToUpload('associatedFile')">
|
||||
{{
|
||||
(formInline.associatedFile === 'null' || formInline.associatedFile === ''
|
||||
|| formInline.associatedFile === null || formInline.associatedFile === undefined)
|
||||
? $t('uploadFile.clickUpload')
|
||||
: $t('uploadFile.viewUploadedFiles')
|
||||
}}
|
||||
</a-button>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 采标程度 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.degreeOfBidAcquisition')">
|
||||
{{ $t('workCenter.enStandardChange.degreeOfBidAcquisition') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="acquisitionDegree">
|
||||
<j-dict-select-tag class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.acquisitionDegree"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enStandardChange.degreeOfBidAcquisition')"
|
||||
:type="'select'"
|
||||
:triggerChange="false"
|
||||
dictCode="degree_bid_acquisition" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 采用国际标准号 -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
<div class="title-text">
|
||||
<span class="required">*</span>
|
||||
<span class="title-text-text" :title="$t('workCenter.enStandardChange.adoptInternationalStandardNumber')">
|
||||
{{ $t('workCenter.enStandardChange.adoptInternationalStandardNumber') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="internationalStandardNum">
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.internationalStandardNum"
|
||||
:disabled="disabled"
|
||||
:maxLength="50"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.adoptInternationalStandardNumber')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="international_standard_num">
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.international_standard_num"
|
||||
:disabled="disabled"
|
||||
:maxLength="50"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.adoptInternationalStandardNumber')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 上传文件弹框 -->
|
||||
<upload-file ref="uploadFile" @change="uploadFileChange" :return-url="false" :disabled="disabled"></upload-file>
|
||||
</a-form-model>
|
||||
<!-- 上传文件弹框 -->
|
||||
<upload-file ref="uploadFile" @change="uploadFileChange" :return-url="false" :disabled="disabled"></upload-file>
|
||||
</a-form-model>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { StandardSource } from '@/enums/commonEnums'
|
||||
import { getTreeList } from '@/api/enterpriseStandardLibraryApi'
|
||||
import { getTreeList, getEnterpriseStandardInfoById } from '@/api/enterpriseStandardLibraryApi'
|
||||
import { getFormDictTreeList } from '@/api/api'
|
||||
import StandardSelection from '@/components/selection/StandardSelection'
|
||||
import UserSelection from '@/components/selection/UserSelection'
|
||||
import UploadFile from '@/components/UploadFile'
|
||||
|
||||
export default {
|
||||
name: 'BaseInfoForm',
|
||||
components: {
|
||||
StandardSelection,
|
||||
UserSelection
|
||||
UserSelection,
|
||||
UploadFile
|
||||
},
|
||||
props: {
|
||||
disabled: {
|
||||
@@ -360,6 +364,7 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
StandardSource,
|
||||
loading: false,
|
||||
standardSystemOptions: [], // 标准体系下拉框数据
|
||||
partNameOptions: [], // 零部件名称下拉框数据
|
||||
formInline: {},
|
||||
@@ -441,25 +446,52 @@ export default {
|
||||
// 选完企标编号了,需要回显内容
|
||||
listChange (value) {
|
||||
console.log(value)
|
||||
this.loading = true
|
||||
// 企标名称
|
||||
this.formInline.standardName = value[0].standardName
|
||||
// 标准等级分类
|
||||
// this.formInline.gradeClassification = value[0].
|
||||
// 标准体系
|
||||
// 标准英文名称
|
||||
// 发布日期
|
||||
// 实施日期
|
||||
// 是否试行
|
||||
// 试行周期
|
||||
// 零部件名称
|
||||
// 主起草人
|
||||
// 主起草单位
|
||||
// 标准适用范围
|
||||
// 代替标准号
|
||||
// 引用标准
|
||||
// 关联文件
|
||||
// 采标程度
|
||||
// 采用国际标准号
|
||||
// 根据返回的id查询企标数据
|
||||
getEnterpriseStandardInfoById({ id: value[0].id, type: '2' }).then(res => {
|
||||
if (res.success) {
|
||||
const result = res.result
|
||||
// 标准等级分类
|
||||
this.formInline.gradeClassification = result.grade_classification
|
||||
// 标准体系
|
||||
this.formInline.standardSystem = result.standard_system ? result.standard_system.split(',').map(item => {
|
||||
return { value: item }
|
||||
}) : []
|
||||
console.log(this.formInline.standardSystem)
|
||||
// 标准英文名称
|
||||
this.formInline.standardEnglishName = result.standard_english_name
|
||||
// 发布日期
|
||||
this.formInline.releaseDate = result.release_date
|
||||
// 实施日期
|
||||
this.formInline.implementationDate = result.implementation_date
|
||||
// 是否试行
|
||||
this.formInline.tryFlag = result.try_flag
|
||||
// 试行周期
|
||||
this.formInline.trialPeriod = result.trial_period
|
||||
// 零部件名称
|
||||
this.formInline.partName = result.part_name
|
||||
// 主起草人
|
||||
this.formInline.mainDraftingUser = result.main_drafting_user
|
||||
this.formInline.mainDraftingUser_dictText = result.main_drafting_user_dictText
|
||||
// 主起草单位
|
||||
this.formInline.mainDraftingUnit = result.main_drafting_unit
|
||||
// 代替标准号
|
||||
this.formInline.substituteStandardNumber = result.substitute_standard_number
|
||||
// 引用标准
|
||||
this.formInline.quotedStandard = result.reference_standard
|
||||
// 关联文件
|
||||
this.formInline.associatedFile = result.associated_file
|
||||
// 采标程度
|
||||
this.formInline.acquisitionDegree = result.acquisition_degree || null
|
||||
// 采用国际标准号
|
||||
this.formInline.internationalStandardNum = result.international_standard_num
|
||||
this.formInline = Object.assign({}, this.formInline)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 选择用户得到用户名
|
||||
userSelectNameChange (value, fieldName) {
|
||||
|
||||
@@ -149,19 +149,23 @@ export default {
|
||||
// 把数据抛出,在线编辑不知道要不要抛
|
||||
const data = {}
|
||||
data.formInline = this.$refs.baseInfoForm.formInline
|
||||
data.formInline.standardSystem = data.formInline.standardSystem.map(item => item.value).join(',')
|
||||
data.dataSource = this.dataSource
|
||||
return data
|
||||
},
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
getDataValidate (callback) {
|
||||
this.$refs.baseInfoForm.$refs.ruleForm.validate(valid => {
|
||||
async getDataValidate () {
|
||||
let data = {}
|
||||
await this.$refs.baseInfoForm.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
const data = {}
|
||||
data.formInline = this.$refs.baseInfoForm.formInline
|
||||
data.formInline.standardSystem = data.formInline.standardSystem.map(item => item.value).join(',')
|
||||
data.dataSource = this.dataSource
|
||||
callback(data)
|
||||
} else {
|
||||
data = false
|
||||
}
|
||||
})
|
||||
return data
|
||||
},
|
||||
// 企标编号和名称修改触发流程名称的修改
|
||||
processNameChange (value) {
|
||||
|
||||
Reference in New Issue
Block a user