[update 标准解读流程] 完善
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@
|
||||
<!-- 操作按钮 -->
|
||||
<div class="detail-page-bottom-operate-box">
|
||||
<!-- 加签 -->
|
||||
<a-button v-if="btn.includes('countersign')" type="primary" ghost :loading="loading" @click="handleCountersign" icon="arrow-up">{{ $t('countersign') }}</a-button>
|
||||
<a-button v-if="btn.includes('countersign')" type="primary" ghost :loading="loading" @click="handleCountersign" icon="plus">{{ $t('countersign') }}</a-button>
|
||||
<!-- 转办 -->
|
||||
<a-button v-if="btn.includes('transfer')" type="primary" ghost :loading="loading" @click="handleTurnTo" icon="arrow-up">{{ $t('turnTo') }}</a-button>
|
||||
<!-- 保存 -->
|
||||
|
||||
+21
-9
@@ -73,7 +73,7 @@
|
||||
import SplitClauseDetail from '@views/documentTool/documentSplit/modules/SplitClauseDetail'
|
||||
import InterpretationClauseTableModal
|
||||
from '@views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTableModal'
|
||||
import { filterObj, randomUUID } from '@/utils/util'
|
||||
import { randomUUID } from '@/utils/util'
|
||||
import UserSelectModal from '@comp/selection/UserSelectModal'
|
||||
import { downFile } from '@api/manage'
|
||||
import { StandardInterpretationNodes } from '@/enums/commonEnums'
|
||||
@@ -128,6 +128,12 @@ export default {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
required: false
|
||||
},
|
||||
// 标准信息
|
||||
standardInfo: {
|
||||
type: Object,
|
||||
default: () => ({}),
|
||||
required: false
|
||||
}
|
||||
},
|
||||
data () {
|
||||
@@ -631,8 +637,13 @@ export default {
|
||||
},
|
||||
// 导出
|
||||
handleExport (fileName, fileSuffix = '.xlsx') {
|
||||
if (!fileName || typeof fileName !== 'string') {
|
||||
fileName = '导出文件'
|
||||
const { standardNumber, standardName } = this.standardInfo || {}
|
||||
if (this.isDistribute) {
|
||||
// 分发:编号 + 名称 + 解读分发
|
||||
fileName = `${standardNumber} ${standardName}-解读分发`
|
||||
} else {
|
||||
// 不分发和汇总:编号 + 名称 + 解读表
|
||||
fileName = `${standardNumber} ${standardName}-解读表`
|
||||
}
|
||||
const param = {
|
||||
projectId: this.$route.query.projectId,
|
||||
@@ -642,18 +653,19 @@ export default {
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
param.selections = this.selectedRowKeys.join(',')
|
||||
}
|
||||
console.log('导出参数', param)
|
||||
console.log('导出参数', param, fileName)
|
||||
// 加一个大的提示
|
||||
const modalLoading = this.$info({
|
||||
title: '提示',
|
||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
||||
title: this.$t('tips'),
|
||||
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||
keyboard: false,
|
||||
// 不显示 知道了 按钮
|
||||
okButtonProps: {
|
||||
style: 'display: none'
|
||||
}
|
||||
})
|
||||
let url = ''
|
||||
// 汇总节点也用不分发的导出
|
||||
let url = this.url.exportUnDistribute
|
||||
// 解读人分发节点
|
||||
if (this.isMainInterpreterDistribute) {
|
||||
// 根据是否分发选择对应的接口
|
||||
@@ -661,7 +673,7 @@ export default {
|
||||
}
|
||||
downFile(url, param).then((data) => {
|
||||
if (!data) {
|
||||
this.$message.warning('文件下载失败')
|
||||
this.$message.warning(this.$t('fileDownloadFail'))
|
||||
return
|
||||
}
|
||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||
@@ -725,7 +737,7 @@ export default {
|
||||
*/
|
||||
editCallback (formData) {
|
||||
// 过滤没有值的字段
|
||||
const form = filterObj(formData)
|
||||
const form = formData
|
||||
// 有id就是编辑,没有就是批量编辑
|
||||
if (formData[this.rowKey]) {
|
||||
const row = this.dataSource.find(item => item[this.rowKey] === formData[this.rowKey])
|
||||
|
||||
+8
@@ -303,8 +303,15 @@ export default {
|
||||
this.model = Object.assign({}, record)
|
||||
this.visible = true
|
||||
this.$nextTick(() => {
|
||||
// 是否与上一版相同(多个值就不回显)
|
||||
if (!this.model.isSameAsPrevVersion || this.model.isSameAsPrevVersion.split(',').length > 1) {
|
||||
delete this.model.isSameAsPrevVersion
|
||||
}
|
||||
// 专业领域
|
||||
if (typeof this.model.domainArea === 'string' && this.model.domainArea.length) {
|
||||
this.model.domainArea = this.model.domainArea.split(',').map(item => ({ value: item }))
|
||||
} else {
|
||||
this.model.domainArea = []
|
||||
}
|
||||
this.form.setFieldsValue(this.model)
|
||||
})
|
||||
@@ -319,6 +326,7 @@ export default {
|
||||
if (Array.isArray(formData.domainArea)) {
|
||||
formData.domainArea = formData.domainArea.map(item => item.value).join(',')
|
||||
}
|
||||
console.log(formData)
|
||||
this.$emit('ok', formData)
|
||||
this.close()
|
||||
}
|
||||
|
||||
+16
-2
@@ -3,8 +3,11 @@
|
||||
<a-spin :spinning="loading">
|
||||
<div class="process-part-title">{{ $t('dispatchInformation') }}</div>
|
||||
<!-- 条款表格 -->
|
||||
<interpretation-clause-table ref="interpretationClauseTable" :disabled="disabled" :current-node-id="currentNodeId"/>
|
||||
<a-form :form="form" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="isStandardInterpreterSummary">
|
||||
<interpretation-clause-table ref="interpretationClauseTable"
|
||||
:disabled="disabled"
|
||||
:standard-info="formInline"
|
||||
:current-node-id="currentNodeId"/>
|
||||
<a-form :form="form" class="prc-form" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="isStandardInterpreterSummary">
|
||||
<a-row>
|
||||
<a-col :span="8">
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.countersigningPerson')" :colon="false">
|
||||
@@ -164,4 +167,15 @@ export default {
|
||||
.mb-20 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.prc-form {
|
||||
/deep/ .ant-form-item-label {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
margin-right: 16px;
|
||||
}
|
||||
/deep/ .user-organ-wrap {
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
+13
-1
@@ -4,7 +4,7 @@
|
||||
<div class="process-part-title">{{ $t('dispatchInformation') }}</div>
|
||||
<!-- 条款的表格 -->
|
||||
<interpretation-clause-table v-if="showClauseTable" ref="interpretationClauseTable" :disabled="disabled" :current-node-id="currentNodeId"/>
|
||||
<a-form :form="form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-form :form="form" class="prc-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-row>
|
||||
<a-col :span="8">
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.mainInterpreter')" :colon="false">
|
||||
@@ -119,4 +119,16 @@ export default {
|
||||
.mb-20 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.prc-form {
|
||||
/deep/ .ant-form-item-label {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
margin-right: 16px;
|
||||
}
|
||||
/deep/ .user-organ-wrap {
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
+15
-2
@@ -20,7 +20,7 @@
|
||||
</template>
|
||||
</j-table>
|
||||
</div>
|
||||
<a-form :form="form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-form :form="form" class="prc-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-row>
|
||||
<a-col :span="8">
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.interpretingTasksIsDistribute')" :colon="false">
|
||||
@@ -45,10 +45,11 @@
|
||||
:current-node-id="currentNodeId"
|
||||
:import-params="importParams"
|
||||
:disabled-import="disabledImport"
|
||||
:standard-info="formInline"
|
||||
:is-distribute="isDistribute"/>
|
||||
<!-- 不分发的表单 -->
|
||||
<template v-if="!isDistribute">
|
||||
<a-form :form="userForm" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-form :form="userForm" class="prc-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-row>
|
||||
<a-col :span="8">
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.countersigningPerson')" :colon="false">
|
||||
@@ -359,4 +360,16 @@ export default {
|
||||
.mb-20 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.prc-form {
|
||||
/deep/ .ant-form-item-label {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
margin-right: 16px;
|
||||
}
|
||||
/deep/ .user-organ-wrap {
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user