[update] 新法规导入流程、法规符合性排查流程、市场清单发布流程
This commit is contained in:
@@ -95,6 +95,9 @@ const getDataDraft = (params) => getAction('/workCenter/draftHandle', params)
|
||||
// 流程中心-查看-获取数据
|
||||
const getLookData = (params) => getAction('/workCenter/snapshotHandle', params)
|
||||
|
||||
// 流程中心-加签
|
||||
const processAddSign = (params) => postAction('/workCenter/delegateTask', params)
|
||||
|
||||
// 在线编辑-生成空白模板
|
||||
const generateEmptyFileTemplate = (params) => getAction('/onlyOffice/saveEditFile', params)
|
||||
// 在线编辑-通过在线编辑的文件id获取文件信息
|
||||
@@ -155,6 +158,8 @@ export {
|
||||
|
||||
getLookData,
|
||||
|
||||
processAddSign,
|
||||
|
||||
generateEmptyFileTemplate,
|
||||
queryFileInfoByEditId,
|
||||
getOnlineFileIdByFileId,
|
||||
|
||||
@@ -268,6 +268,7 @@ export default {
|
||||
currentNodeName: '',
|
||||
currentNodeId: MarketListReleaseNodes.initiated.value, // 当前节点id
|
||||
model: {},
|
||||
draftModel: null, // 草稿Json转化的对象
|
||||
processInfoForm: this.$form.createForm(this),
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
|
||||
+28
-2
@@ -107,6 +107,8 @@
|
||||
<a-button type="primary" :loading="loading" @click="handleStart" icon="upload">{{ $t('submit') }}</a-button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<!-- 加签 -->
|
||||
<a-button type="primary" ghost :loading="loading" @click="handleAddSign" icon="plus">{{ $t('countersign') }}</a-button>
|
||||
<!-- 转办 -->
|
||||
<a-button type="primary" ghost :loading="loading" @click="handleTurnTo" icon="arrow-up">{{ $t('turnTo') }}</a-button>
|
||||
<!-- 保存 -->
|
||||
@@ -120,6 +122,8 @@
|
||||
|
||||
<!-- 选人弹框 -->
|
||||
<user-select-modal ref="userSelectModal" type="radio" @change="userSelectModalChange"></user-select-modal>
|
||||
<!-- 加签选人 -->
|
||||
<user-select-modal ref="addSignUserSelect" type="radio" @change="addSignUserSelectChange"></user-select-modal>
|
||||
</internal-detail-page>
|
||||
</template>
|
||||
|
||||
@@ -140,7 +144,7 @@ import {
|
||||
newRegulationImportSave,
|
||||
getDataDraft,
|
||||
processTransfer,
|
||||
getLookData
|
||||
getLookData, processAddSign
|
||||
} from '../../../api/workCenter'
|
||||
|
||||
export default {
|
||||
@@ -230,7 +234,7 @@ export default {
|
||||
currentNodeName: '',
|
||||
currentNodeId: NewRegulationsImportNodes.initiated.value, // 当前节点id
|
||||
model: {},
|
||||
draftModel: {}, // 草稿Json转化的对象
|
||||
draftModel: null, // 草稿Json转化的对象
|
||||
processInfoForm: this.$form.createForm(this),
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
@@ -451,6 +455,28 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
// 加签
|
||||
handleAddSign () {
|
||||
if (this.loading) return
|
||||
// 点击显示选人组件
|
||||
this.$refs.addSignUserSelect.open()
|
||||
},
|
||||
// 加签选完人的回调
|
||||
addSignUserSelectChange (userIds) {
|
||||
this.loading = true
|
||||
const param = {}
|
||||
param.userId = userIds
|
||||
param.taskId = this.$route.query.taskId
|
||||
processAddSign(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 转办
|
||||
handleTurnTo () {
|
||||
if (this.loading) return
|
||||
|
||||
@@ -246,9 +246,13 @@ export default {
|
||||
// 拿到外面传进来的businessInfoDTO
|
||||
initData (data) {
|
||||
// 给表单赋值
|
||||
data.applicableMarket = data.applicableMarket.split(',').map(item => {
|
||||
return { value: item }
|
||||
})
|
||||
if (data.applicableMarket) {
|
||||
data.applicableMarket = data.applicableMarket.split(',').map(item => {
|
||||
return { value: item }
|
||||
})
|
||||
} else {
|
||||
data.applicableMarket = []
|
||||
}
|
||||
this.formInline = Object.assign({}, data)
|
||||
this.isGetDataAfter = true
|
||||
},
|
||||
|
||||
+1
-1
@@ -300,7 +300,7 @@ export default {
|
||||
currentNodeName: '',
|
||||
currentNodeId: RegulatoryComplianceCheckNodes.initiated.value, // 当前节点id
|
||||
model: {},
|
||||
draftModel: {}, // 草稿Json转化的对象
|
||||
draftModel: null, // 草稿Json转化的对象
|
||||
processInfoForm: this.$form.createForm(this),
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
|
||||
Reference in New Issue
Block a user