[update] 修改任务转交
This commit is contained in:
@@ -11,13 +11,19 @@ const getMsgDetail = (params) => getAction('/sys/sysAnnouncementSend/getDetailsB
|
||||
|
||||
// 任务转交-基础库信息-转交
|
||||
const basicInfoTransfer = (params) => postAction('/laws/taskTransfer/baseDBTransfer', params)
|
||||
// 任务转交-基础库信息-批量转交
|
||||
const basicInfoBatchTransfer = (params) => postAction('/laws/taskTransfer/baseDBTransferBatch', params)
|
||||
// 任务转交-流程信息-转交
|
||||
const processInfoTransfer = (params) => postAction('/laws/taskTransfer/processDBTransfer', params)
|
||||
// 任务转交-流程信息-转交
|
||||
const processInfoBatchTransfer = (params) => postAction('/laws/taskTransfer/processDBTransferBatch', params)
|
||||
|
||||
export {
|
||||
cancelCollect,
|
||||
clearBrowsingHistory,
|
||||
getMsgDetail,
|
||||
basicInfoTransfer,
|
||||
processInfoTransfer
|
||||
basicInfoBatchTransfer,
|
||||
processInfoTransfer,
|
||||
processInfoBatchTransfer
|
||||
}
|
||||
|
||||
@@ -79,8 +79,9 @@ import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import UserSelectModal from '@/components/selection/UserSelectModal'
|
||||
import UserSelection from '@/components/selection/UserSelection'
|
||||
import {
|
||||
basicInfoTransfer
|
||||
} from '../../../../api/personCenter'
|
||||
basicInfoTransfer,
|
||||
basicInfoBatchTransfer
|
||||
} from '@/api/personCenter'
|
||||
|
||||
export default {
|
||||
name: 'BasicLibraryInfo',
|
||||
@@ -149,7 +150,7 @@ export default {
|
||||
dataIndex: 'transferUser',
|
||||
customRender: (value, row, index) => {
|
||||
return <user-selection v-model={this.dataSource[index].transferUser}
|
||||
nameStr={this.dataSource[index].transferUser_dictText}
|
||||
ref={'userSelection'}
|
||||
disabled={this.disabled} type={'radio'}
|
||||
filedName={this.dataSource[index].id + '-' + this.dataSource[index].type}
|
||||
placeholder={this.$t('pleaseSelect')} onChange={this.transferUserChange} />
|
||||
@@ -192,9 +193,9 @@ export default {
|
||||
basicInfoTransfer(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.dataSource = []
|
||||
this.loadData()
|
||||
this.$forceUpdate()
|
||||
this.$refs.userSelection.$forceUpdate()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
@@ -221,12 +222,12 @@ export default {
|
||||
param.transferUser = value
|
||||
params.push(param)
|
||||
}
|
||||
basicInfoTransfer(params).then(res => {
|
||||
basicInfoBatchTransfer(params).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.dataSource = []
|
||||
this.loadData()
|
||||
this.$forceUpdate()
|
||||
this.selectedRowKeys = []
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
|
||||
@@ -26,14 +26,20 @@
|
||||
</j-dict-select-tag>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- 流程名称 -->
|
||||
<a-col :span="6">
|
||||
<a-form-item :label="$t('processName')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-input :placeholder="$t('pleaseEnter')+$t('processName')" v-model="queryParam.prcName"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<template v-if="toggleSearchStatus">
|
||||
<!-- 流程名称 -->
|
||||
<a-col :span="6">
|
||||
<a-form-item :label="$t('processName')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-input :placeholder="$t('pleaseEnter')+$t('processName')" v-model="queryParam.prcName"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</template>
|
||||
|
||||
<div style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
||||
<a @click="handleToggleSearch">
|
||||
{{ toggleSearchStatus ? $t('putAway') : $t('open') }}
|
||||
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
||||
</a>
|
||||
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 8px">{{ $t('query') }}</a-button>
|
||||
<a-button type="primary" ghost @click="searchReset" icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
|
||||
</div>
|
||||
@@ -74,32 +80,9 @@
|
||||
<script>
|
||||
import JTable from '@/components/jero/JTable'
|
||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import { basicInfoTransfer, processInfoTransfer } from '../../../../api/personCenter'
|
||||
import { processInfoTransfer, processInfoBatchTransfer } from '../../../../api/personCenter'
|
||||
import UserSelectModal from '@/components/selection/UserSelectModal'
|
||||
import UserSelection from '@/components/selection/UserSelection'
|
||||
import {
|
||||
ProcessType,
|
||||
FGEntryChangeProcessNode,
|
||||
ConsultationProcess,
|
||||
ProjectComplianceEvaluationProcessNode,
|
||||
NoMatchTrackingNodes,
|
||||
ProcurementProcessNodes,
|
||||
EsInitChangeNodes,
|
||||
EsRevisionPlanActivityReportNodes,
|
||||
EsRevisionPlanStandardizationInitNodes,
|
||||
EsRevisionNodes,
|
||||
EsChangeNodes,
|
||||
EsRecheckNodes,
|
||||
EsAnnulNodes,
|
||||
EsSealSaveNodes,
|
||||
EsStartUseNodes,
|
||||
EsInspectionPlan,
|
||||
EsInspectionProcess,
|
||||
InspectionExtensionRequestProcess,
|
||||
PermissionApply,
|
||||
StandardPromotion,
|
||||
PostMeetingManage
|
||||
} from '@/enums/commonEnums'
|
||||
|
||||
export default {
|
||||
name: 'ProcessInfo',
|
||||
@@ -224,12 +207,12 @@ export default {
|
||||
param.transferUser = value
|
||||
params.push(param)
|
||||
}
|
||||
processInfoTransfer(params).then(res => {
|
||||
processInfoBatchTransfer(params).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.dataSource = []
|
||||
this.loadData()
|
||||
this.$forceUpdate()
|
||||
this.selectedRowKeys = []
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user