[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 getLookData = (params) => getAction('/workCenter/snapshotHandle', params)
|
||||||
|
|
||||||
|
// 流程中心-加签
|
||||||
|
const processAddSign = (params) => postAction('/workCenter/delegateTask', params)
|
||||||
|
|
||||||
// 在线编辑-生成空白模板
|
// 在线编辑-生成空白模板
|
||||||
const generateEmptyFileTemplate = (params) => getAction('/onlyOffice/saveEditFile', params)
|
const generateEmptyFileTemplate = (params) => getAction('/onlyOffice/saveEditFile', params)
|
||||||
// 在线编辑-通过在线编辑的文件id获取文件信息
|
// 在线编辑-通过在线编辑的文件id获取文件信息
|
||||||
@@ -155,6 +158,8 @@ export {
|
|||||||
|
|
||||||
getLookData,
|
getLookData,
|
||||||
|
|
||||||
|
processAddSign,
|
||||||
|
|
||||||
generateEmptyFileTemplate,
|
generateEmptyFileTemplate,
|
||||||
queryFileInfoByEditId,
|
queryFileInfoByEditId,
|
||||||
getOnlineFileIdByFileId,
|
getOnlineFileIdByFileId,
|
||||||
|
|||||||
@@ -268,6 +268,7 @@ export default {
|
|||||||
currentNodeName: '',
|
currentNodeName: '',
|
||||||
currentNodeId: MarketListReleaseNodes.initiated.value, // 当前节点id
|
currentNodeId: MarketListReleaseNodes.initiated.value, // 当前节点id
|
||||||
model: {},
|
model: {},
|
||||||
|
draftModel: null, // 草稿Json转化的对象
|
||||||
processInfoForm: this.$form.createForm(this),
|
processInfoForm: this.$form.createForm(this),
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
+28
-2
@@ -107,6 +107,8 @@
|
|||||||
<a-button type="primary" :loading="loading" @click="handleStart" icon="upload">{{ $t('submit') }}</a-button>
|
<a-button type="primary" :loading="loading" @click="handleStart" icon="upload">{{ $t('submit') }}</a-button>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<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>
|
<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="userSelectModal" type="radio" @change="userSelectModalChange"></user-select-modal>
|
||||||
|
<!-- 加签选人 -->
|
||||||
|
<user-select-modal ref="addSignUserSelect" type="radio" @change="addSignUserSelectChange"></user-select-modal>
|
||||||
</internal-detail-page>
|
</internal-detail-page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -140,7 +144,7 @@ import {
|
|||||||
newRegulationImportSave,
|
newRegulationImportSave,
|
||||||
getDataDraft,
|
getDataDraft,
|
||||||
processTransfer,
|
processTransfer,
|
||||||
getLookData
|
getLookData, processAddSign
|
||||||
} from '../../../api/workCenter'
|
} from '../../../api/workCenter'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -230,7 +234,7 @@ export default {
|
|||||||
currentNodeName: '',
|
currentNodeName: '',
|
||||||
currentNodeId: NewRegulationsImportNodes.initiated.value, // 当前节点id
|
currentNodeId: NewRegulationsImportNodes.initiated.value, // 当前节点id
|
||||||
model: {},
|
model: {},
|
||||||
draftModel: {}, // 草稿Json转化的对象
|
draftModel: null, // 草稿Json转化的对象
|
||||||
processInfoForm: this.$form.createForm(this),
|
processInfoForm: this.$form.createForm(this),
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
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 () {
|
handleTurnTo () {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
|
|||||||
@@ -246,9 +246,13 @@ export default {
|
|||||||
// 拿到外面传进来的businessInfoDTO
|
// 拿到外面传进来的businessInfoDTO
|
||||||
initData (data) {
|
initData (data) {
|
||||||
// 给表单赋值
|
// 给表单赋值
|
||||||
data.applicableMarket = data.applicableMarket.split(',').map(item => {
|
if (data.applicableMarket) {
|
||||||
return { value: item }
|
data.applicableMarket = data.applicableMarket.split(',').map(item => {
|
||||||
})
|
return { value: item }
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
data.applicableMarket = []
|
||||||
|
}
|
||||||
this.formInline = Object.assign({}, data)
|
this.formInline = Object.assign({}, data)
|
||||||
this.isGetDataAfter = true
|
this.isGetDataAfter = true
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -300,7 +300,7 @@ export default {
|
|||||||
currentNodeName: '',
|
currentNodeName: '',
|
||||||
currentNodeId: RegulatoryComplianceCheckNodes.initiated.value, // 当前节点id
|
currentNodeId: RegulatoryComplianceCheckNodes.initiated.value, // 当前节点id
|
||||||
model: {},
|
model: {},
|
||||||
draftModel: {}, // 草稿Json转化的对象
|
draftModel: null, // 草稿Json转化的对象
|
||||||
processInfoForm: this.$form.createForm(this),
|
processInfoForm: this.$form.createForm(this),
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
Reference in New Issue
Block a user