[update] 流程驳回传JSON
This commit is contained in:
@@ -51,7 +51,8 @@ module.exports = {
|
||||
salvageListTemplateName: 'Decomposes a single file upload template',
|
||||
carTypeFileTemplateDownload: 'Model project file template download',
|
||||
carTypeFileTemplateName: 'Model project file upload template',
|
||||
pleaseGenerate: 'Please generate data'
|
||||
pleaseGenerate: 'Please generate data',
|
||||
pleaseClickNext: 'Please click Next to display the information'
|
||||
},
|
||||
// 市场清单发布流程
|
||||
marketListReleaseProcess: {
|
||||
|
||||
@@ -51,7 +51,8 @@ module.exports = {
|
||||
salvageListTemplateName: '分解单文件上传模板',
|
||||
carTypeFileTemplateDownload: '车型项目文件模板下载',
|
||||
carTypeFileTemplateName: '车型项目文件上传模板',
|
||||
pleaseGenerate: '请先生成数据'
|
||||
pleaseGenerate: '请先生成数据',
|
||||
pleaseClickNext: '请点击下一步显示信息'
|
||||
},
|
||||
// 市场清单发布流程
|
||||
marketListReleaseProcess: {
|
||||
|
||||
@@ -638,9 +638,26 @@ export default {
|
||||
this.approvalInfoForm.validateFields({ force: true }, (err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
// 保存快照需要的JSON start
|
||||
const jasonObj = {}
|
||||
// 流程信息表单
|
||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||
// 流程审批信息
|
||||
const approvalInfoForm = this.approvalInfoForm.getFieldsValue()
|
||||
// 业务基本信息
|
||||
const baseInfo = this.$refs.baseInfoRef.getData()
|
||||
// 流程信息
|
||||
jasonObj.basicProcessInfoDTO = Object.assign({}, processInfoForm)
|
||||
// 流程审批信息
|
||||
jasonObj.basicTaskInfoDTO = Object.assign({}, approvalInfoForm)
|
||||
// 业务信息
|
||||
jasonObj.businessInfoDTO = baseInfo
|
||||
// 保存快照需要的JSON end
|
||||
const param = {}
|
||||
param.basicTaskInfoDTO = Object.assign({}, values)
|
||||
param.basicTaskInfoDTO.taskId = this.$route.query.taskId
|
||||
// 草稿JSON
|
||||
param.infoJsonStr = JSON.stringify(jasonObj)
|
||||
marketListReleaseReject(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
+17
@@ -557,9 +557,26 @@ export default {
|
||||
this.approvalInfoForm.validateFields({ force: true }, (err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
// 保存快照需要的JSON start
|
||||
const jasonObj = {}
|
||||
// 流程信息表单
|
||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||
// 流程审批信息
|
||||
const approvalInfoForm = this.approvalInfoForm.getFieldsValue()
|
||||
// 业务基本信息
|
||||
const baseInfo = this.$refs.baseInfoRef.getData()
|
||||
// 流程信息
|
||||
jasonObj.basicProcessInfoDTO = Object.assign({}, processInfoForm)
|
||||
// 流程审批信息
|
||||
jasonObj.basicTaskInfoDTO = Object.assign({}, approvalInfoForm)
|
||||
// 业务信息
|
||||
jasonObj.businessInfoDTO = baseInfo
|
||||
// 保存快照需要的JSON end
|
||||
const param = {}
|
||||
param.basicTaskInfoDTO = Object.assign({}, values)
|
||||
param.basicTaskInfoDTO.taskId = this.$route.query.taskId
|
||||
// 草稿JSON
|
||||
param.infoJsonStr = JSON.stringify(jasonObj)
|
||||
newRegulationImportReject(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
+19
-1
@@ -153,7 +153,7 @@
|
||||
<!-- 保存 -->
|
||||
<a-button type="primary" ghost :loading="loading" @click="handleSave"><i class="iconfont icon-save"></i> {{ $t('preservation') }}</a-button>
|
||||
<!-- 提交 -->
|
||||
<a-button type="primary" :loading="loading" @click="handleAgree" icon="upload">{{ $t('submit') }}</a-button>
|
||||
<a-button type="primary" :loading="loading" @click="handleSubmit" icon="upload">{{ $t('submit') }}</a-button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<!-- 转办 -->
|
||||
@@ -563,6 +563,7 @@ export default {
|
||||
if (this.loading) return
|
||||
this.approvalInfoForm.validateFields(async (err, values) => {
|
||||
const data = await this.$refs.baseInfoRef.getDataValidate()
|
||||
console.log('---------', data)
|
||||
if (!err && data) {
|
||||
this.loading = true
|
||||
// 保存快照需要的JSON start
|
||||
@@ -656,9 +657,26 @@ export default {
|
||||
this.approvalInfoForm.validateFields({ force: true }, (err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
// 保存快照需要的JSON start
|
||||
const jasonObj = {}
|
||||
// 流程信息表单
|
||||
const processInfoForm = this.processInfoForm.getFieldsValue()
|
||||
// 流程审批信息
|
||||
const approvalInfoForm = this.approvalInfoForm.getFieldsValue()
|
||||
// 业务基本信息
|
||||
const baseInfo = this.$refs.baseInfoRef.getData()
|
||||
// 流程信息
|
||||
jasonObj.basicProcessInfoDTO = Object.assign({}, processInfoForm)
|
||||
// 流程审批信息
|
||||
jasonObj.basicTaskInfoDTO = Object.assign({}, approvalInfoForm)
|
||||
// 业务信息
|
||||
jasonObj.businessInfoDTO = baseInfo
|
||||
// 保存快照需要的JSON end
|
||||
const param = {}
|
||||
param.common = Object.assign({}, values)
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
// 草稿JSON
|
||||
param.infoJsonStr = JSON.stringify(jasonObj)
|
||||
regulatoryComplianceCheckReject(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
+54
-9
@@ -17,7 +17,8 @@
|
||||
<j-dict-select-tag
|
||||
:placeholder="$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.checkWhetherTheTaskIsDelivered')"
|
||||
dict-code="yn"
|
||||
v-model="formInline.distributeFlag">
|
||||
v-model="formInline.distributeFlag"
|
||||
@change="distributeFlagChange">
|
||||
</j-dict-select-tag>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -47,9 +48,10 @@
|
||||
rowKey="standardNumber"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="false"
|
||||
:pagination="ipagination"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
:loading="loading">
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
</j-table>
|
||||
</div>
|
||||
</template>
|
||||
@@ -82,7 +84,9 @@
|
||||
:dataSource="dataSourceEvaluate"
|
||||
formIsDepend="result"
|
||||
:extraForm="extraForm"
|
||||
:loading="loading">
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
|
||||
<template slot="result" slot-scope="{text, record}">
|
||||
<j-dict-select-tag
|
||||
@@ -96,7 +100,7 @@
|
||||
</j-expand-table>
|
||||
</div>
|
||||
|
||||
<a-form-model :model="personFormInline" class="form-add" :rules="rules" ref="ruleForm">
|
||||
<a-form-model :model="personFormInline" class="form-add" :rules="rules" ref="personRuleForm">
|
||||
<div class="form-flex-box">
|
||||
<!-- 会签人员 自动带出法规工程师。可多选其他人?? -->
|
||||
<div class="box-title-text form-flex-item">
|
||||
@@ -204,6 +208,18 @@ export default {
|
||||
YesOrNoEnum,
|
||||
loading: false,
|
||||
formInline: {},
|
||||
/* 分页参数 */
|
||||
ipagination: {
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||
showTotal: (total, range) => {
|
||||
return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip')
|
||||
},
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: true,
|
||||
total: 0
|
||||
},
|
||||
rules: {
|
||||
// 排查任务是否下发
|
||||
distributeFlag: [
|
||||
@@ -502,7 +518,8 @@ export default {
|
||||
url: {
|
||||
downTemplateUrl: '',
|
||||
importExcelUrl: ''
|
||||
}
|
||||
},
|
||||
dataSourceCopy: [] // 列表数组备份,防止切换排查任务是否下发后,填的数据带到新数组里
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -511,6 +528,7 @@ export default {
|
||||
// 给表单赋值
|
||||
this.formInline = Object.assign({}, data.standardInfo)
|
||||
this.dataSource = JSON.parse(JSON.stringify(data.detailInfoList))
|
||||
this.dataSourceCopy = JSON.parse(JSON.stringify(data.detailInfoList))
|
||||
this.isGetDataAfter = true
|
||||
},
|
||||
// 外层要获取数据
|
||||
@@ -524,16 +542,40 @@ export default {
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
async getDataValidate () {
|
||||
let data = {}
|
||||
await this.$refs.ruleForm.validate(valid => {
|
||||
await this.$refs.ruleForm.validate(async valid => {
|
||||
if (valid) {
|
||||
data.standardInfo = Object.assign({}, this.formInline)
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
if (!this.$refs.personRuleForm) {
|
||||
this.$message.warning(this.$t('workCenter.regulatoryComplianceCheckProcess.pleaseClickNext'))
|
||||
data = false
|
||||
} else {
|
||||
if (this.formInline.distributeFlag === YesOrNoEnum.YES.value) {
|
||||
if (valid) {
|
||||
data.standardInfo = Object.assign({}, this.formInline)
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
} else {
|
||||
data = false
|
||||
}
|
||||
} else {
|
||||
await this.$refs.personRuleForm.validate(personValid => {
|
||||
if (valid && personValid) {
|
||||
data.standardInfo = Object.assign({}, this.formInline, this.personFormInline)
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
} else {
|
||||
data = false
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
} else {
|
||||
data = false
|
||||
}
|
||||
})
|
||||
return data
|
||||
},
|
||||
// 排查任务是否下发改变
|
||||
distributeFlagChange (value) {
|
||||
this.dataSource = JSON.parse(JSON.stringify(this.dataSourceCopy))
|
||||
},
|
||||
// 下一步
|
||||
handleNext () {
|
||||
this.clickNextAfter = true
|
||||
@@ -543,6 +585,9 @@ export default {
|
||||
this.selectedRowKeys = selectedRowKeys
|
||||
this.selectionRows = selectionRows
|
||||
},
|
||||
handleTableChange (pagination) {
|
||||
this.ipagination = pagination
|
||||
},
|
||||
// 批量选择人员
|
||||
batchCheckPerson () {
|
||||
if (this.selectedRowKeys.length <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user