[update] 企标制修订流程到评分人打分节点
This commit is contained in:
@@ -55,11 +55,15 @@
|
||||
<!-- 业务基本信息 -->
|
||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||
<!-- 节点1、主起草人起草分发 -->
|
||||
<main-drafter-sent-base-info v-if="currentNode === 1" :flowInitType="flowInitType" ref="baseInfoRef"></main-drafter-sent-base-info>
|
||||
<main-drafter-sent-base-info v-if="currentNode === 1" :flowInitType="flowInitType" :disabled="disabled" ref="baseInfoRef"></main-drafter-sent-base-info>
|
||||
<!-- 节点2、其他起草人上传企标 -->
|
||||
<other-drafter-upload-standard-base-info v-if="currentNode === 2" :flowInitType="flowInitType" :disabled="disabled" ref="baseInfoRef"></other-drafter-upload-standard-base-info>
|
||||
<!-- 节点3、主起草人汇总上传会议纪要 -->
|
||||
<main-drafter-upload-minute-base-info v-if="currentNode === 3" :flowInitType="flowInitType" :disabled="disabled" ref="baseInfoRef"></main-drafter-upload-minute-base-info>
|
||||
<!-- 节点4、标准化审核 -->
|
||||
<standardization-audit-base-info v-if="currentNode === 4" :flowInitType="flowInitType" :disabled="disabled" ref="baseInfoRef" @standardizationAuditIsMeeting="standardizationAuditIsMeeting"></standardization-audit-base-info>
|
||||
<!-- 节点5、评分人打分 -->
|
||||
<scorer-mark-base-info v-if="currentNode === 5" :flowInitType="flowInitType" :disabled="disabled" ref="baseInfoRef"></scorer-mark-base-info>
|
||||
<!-- 节点6、标准化确认是否开启征求意见 -->
|
||||
<!-- 节点7、部所联络人下发 -->
|
||||
<!-- 节点8、征求意见对象填写意见 -->
|
||||
@@ -94,7 +98,7 @@
|
||||
<!-- 人员信息 -->
|
||||
<div v-if="switchValue === 'user'" class="detail-page-scroll-content p-0">
|
||||
<process-detail-list :url="url">
|
||||
<personnel-info slot="personnelInfo" :data="personnelInfoData" :currentNode="currentNode"></personnel-info>
|
||||
<personnel-info slot="personnelInfo" ref="personnelInfo" :data="personnelInfoData" :currentNode="currentNode"></personnel-info>
|
||||
</process-detail-list>
|
||||
</div>
|
||||
|
||||
@@ -126,9 +130,9 @@
|
||||
<!-- 保存 -->
|
||||
<a-button type="primary" ghost :loading="loading" @click="handleSave"><i class="iconfont icon-save"></i> {{ $t('preservation') }}</a-button>
|
||||
<!-- 同意 -->
|
||||
<a-button type="primary" :loading="loading" @click="handleAgree" icon="check-circle">{{ $t('agree') }}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="handleAgree" icon="check-circle" :disabled="agreeBtnDisabled">{{ $t('agree') }}</a-button>
|
||||
<!-- 驳回 -->
|
||||
<a-button type="primary" :loading="loading" @click="handleReject" icon="close-circle">{{ $t('reject') }}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="handleReject" icon="close-circle" :disabled="rejectBtnDisabled">{{ $t('reject') }}</a-button>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
@@ -138,11 +142,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import pick from 'lodash.pick'
|
||||
import InternalDetailPage from '@/components/InternalDetailPage'
|
||||
import UserSelectModal from '@/components/selection/UserSelectModal'
|
||||
import ProcessDetailList from '@/components/ProcessDetailList'
|
||||
import PersonnelInfo from '@/components/PersonnelInfo'
|
||||
import MainDrafterSentBaseInfo from './modules/MainDrafterSentBaseInfo'
|
||||
import OtherDrafterUploadStandardBaseInfo from './modules/OtherDrafterUploadStandardBaseInfo'
|
||||
import MainDrafterUploadMinuteBaseInfo from './modules/MainDrafterUploadMinuteBaseInfo'
|
||||
import StandardizationAuditBaseInfo from './modules/StandardizationAuditBaseInfo'
|
||||
import ScorerMarkBaseInfo from './modules/ScorerMarkBaseInfo'
|
||||
|
||||
const personData = [
|
||||
{
|
||||
@@ -262,6 +271,10 @@ const personData = [
|
||||
export default {
|
||||
name: 'EnterpriseStandardRevisionFlow',
|
||||
components: {
|
||||
ScorerMarkBaseInfo,
|
||||
StandardizationAuditBaseInfo,
|
||||
MainDrafterUploadMinuteBaseInfo,
|
||||
OtherDrafterUploadStandardBaseInfo,
|
||||
MainDrafterSentBaseInfo,
|
||||
InternalDetailPage,
|
||||
UserSelectModal,
|
||||
@@ -332,19 +345,41 @@ export default {
|
||||
validateTrigger: 'blur'
|
||||
}
|
||||
},
|
||||
currentNode: 1,
|
||||
currentNode: 5,
|
||||
approvalInfoForm: this.$form.createForm(this), // 审批信息表单
|
||||
personnelInfoData: [], // 人员信息数据
|
||||
url: {
|
||||
list: '' // 人员信息右侧表的分页查询接口
|
||||
},
|
||||
flowInitType: 'newProcess' // 流程发起类型,是自动发起(auto)的还是从新建流程发起的(newProcess)
|
||||
flowInitType: 'newProcess', // 流程发起类型,是自动发起(auto)的还是从新建流程发起的(newProcess)
|
||||
rejectBtnDisabled: false, // 驳回按钮是否置灰
|
||||
agreeBtnDisabled: false // 同意按钮是否置灰
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
switchChange (value) {
|
||||
this.switchValue = value
|
||||
},
|
||||
// 标准化审核节点是否可进行评审会修改
|
||||
standardizationAuditIsMeeting (value) {
|
||||
// 选是的话,驳回按钮置灰,不可点击;选否,备注变成必填,内容自动带入“驳回”,下方同意按钮置灰,不可点击
|
||||
if (value === 1) {
|
||||
// 选了是
|
||||
this.validatorRules.remarks.rules[0].required = false
|
||||
this.rejectBtnDisabled = true
|
||||
this.agreeBtnDisabled = false
|
||||
} else {
|
||||
// 选了否
|
||||
this.validatorRules.remarks.rules[0].required = true
|
||||
const obj = {}
|
||||
obj.remarks = '驳回' + this.processInfoForm.getFieldValue('remarks')
|
||||
this.$nextTick(() => {
|
||||
this.processInfoForm.setFieldsValue(pick(obj, 'remarks'))
|
||||
})
|
||||
this.rejectBtnDisabled = false
|
||||
this.agreeBtnDisabled = true
|
||||
}
|
||||
},
|
||||
// 保存
|
||||
handleSave () {
|
||||
// 有任意一项填了即可
|
||||
|
||||
Reference in New Issue
Block a user