update 权限申请流程
This commit is contained in:
+7
-11
@@ -55,7 +55,7 @@
|
||||
|
||||
<!-- 业务基本信息 -->
|
||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||
<inspection-plan-table class="form-add" ref="inspectionPlanTable" :current-node="currentNode" :project-id="projectId"/>
|
||||
<inspection-plan-table style="margin-bottom: 40px;" ref="inspectionPlanTable" :current-node="currentNode" :project-id="projectId"/>
|
||||
<!-- 会签表单 -->
|
||||
<a-form :form="countersignForm" v-if="currentNode === EsInspectionPlan.liaisonCollect.value">
|
||||
<div class="form-flex-box">
|
||||
@@ -426,19 +426,15 @@ export default {
|
||||
*/
|
||||
handleSubmit () {
|
||||
if (this.loading) return
|
||||
this.loading = true
|
||||
let fn
|
||||
switch (this.currentNode) {
|
||||
case EsInspectionPlan.initiate.value:
|
||||
fn = startInspectPlan
|
||||
break
|
||||
default:
|
||||
fn = approvalInspectPlan
|
||||
break
|
||||
// 发起流程并且没有被驳回,调发起接口,否则调审批接口
|
||||
if (this.currentNode === EsInspectionPlan.initiate.value && this.$route.query.taskId) {
|
||||
this.handleAgree()
|
||||
return
|
||||
}
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
console.log(res)
|
||||
return fn && fn(res)
|
||||
return startInspectPlan(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
+3
-1
@@ -16,7 +16,7 @@
|
||||
<!-- 稽查依据标准号 -->
|
||||
<a-form-item :label="$t('workCenter.esInspectionPlan.inspectionBasisStandardNumber')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<standard-selection :placeholder="$t('pleaseSelect') + $t('workCenter.esInspectionPlan.inspectionBasisStandardNumber')"
|
||||
disabledSourceSearch source="3" @nameChange="changeStandardName" type="radio"
|
||||
disabledSourceSearch :source="StandardSource.ENTERPRISE.value" @nameChange="changeStandardName" type="radio"
|
||||
v-decorator="['inspectNo', validatorRules.inspectionBasisStandardNumber]" />
|
||||
</a-form-item>
|
||||
<!-- 稽查依据标准名称 -->
|
||||
@@ -105,6 +105,7 @@ import UserSelection from '@comp/selection/UserSelection'
|
||||
import { getWorkGroupTreeList } from '@api/api'
|
||||
import WorkGroupSelection from '@comp/selection/WorkGroupSelection'
|
||||
import { addInspectPlanTable, editInspectPlanTable } from '@api/workCenter'
|
||||
import { StandardSource } from '@/enums/commonEnums'
|
||||
|
||||
export default {
|
||||
name: 'InspectionPlanDrawer',
|
||||
@@ -118,6 +119,7 @@ export default {
|
||||
components: { WorkGroupSelection, UserSelection, StandardSelection },
|
||||
data () {
|
||||
return {
|
||||
StandardSource,
|
||||
width: 800,
|
||||
title: this.$t('workCenter.esInspectionPlan.inspectionPlan'),
|
||||
visible: false,
|
||||
|
||||
+3
-3
@@ -2,13 +2,13 @@
|
||||
<div>
|
||||
<div class="table-operator" v-if="hasTableOperator">
|
||||
<!-- 新增 -->
|
||||
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'enterpriseStandard:add'">{{ $t('newlyAdded') }}</a-button>
|
||||
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
|
||||
<!-- 导入 -->
|
||||
<a-upload name="file" :data="{projectId}" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
||||
<a-button icon="upload" type="primary" ghost v-has="'enterpriseStandard:upload'">{{ $t('import') }}</a-button>
|
||||
<a-button icon="upload" type="primary" ghost>{{ $t('import') }}</a-button>
|
||||
</a-upload>
|
||||
<!-- 批量删除 -->
|
||||
<a-button icon="delete" type="primary" ghost @click="batchDel" v-has="'enterpriseStandard:batchDel'">{{ $t('batchDelete') }}</a-button>
|
||||
<a-button icon="delete" type="primary" ghost @click="batchDel">{{ $t('batchDelete') }}</a-button>
|
||||
</div>
|
||||
<div>
|
||||
<j-table
|
||||
|
||||
Reference in New Issue
Block a user