[update] 修改企标制修订流程,企标复审流程发起传标准id
This commit is contained in:
@@ -113,6 +113,8 @@ const enStandardRecheckGetDataById = (taskId, params) => getAction(`/process/es/
|
||||
const enStandardRecheckGetDataDraft = (params) => getAction('/process/es/recheck/draftHandle', params)
|
||||
// 根据dataId查询是否显示第一个节点的人员信息
|
||||
const enStandardRecheckIsShowFirstPerson = (params) => getAction('/process/es/recheck/isShowFirstNode', params)
|
||||
// 选择企标复审计划,列表获取
|
||||
const getEsRecheckPlanList = (params) => getAction('/process/es/recheck/page', params)
|
||||
|
||||
// 企标废止流程
|
||||
// 保存
|
||||
@@ -455,6 +457,7 @@ export {
|
||||
enStandardRecheckReject,
|
||||
enStandardRecheckGetDataDraft,
|
||||
enStandardRecheckIsShowFirstPerson,
|
||||
getEsRecheckPlanList,
|
||||
|
||||
enStandardAnnulGetDataById,
|
||||
enStandardAnnulSave,
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
|
||||
<script>
|
||||
import { queryDepartTreeList } from '@/api/api'
|
||||
import { getEnterpriseRecheckPlanPage } from '@/api/enterpriseStandardLibraryApi'
|
||||
import { getEsRecheckPlanList } from '@/api/workCenter'
|
||||
|
||||
export default {
|
||||
name: 'EnterpriseRecheckPlanSelectionModal',
|
||||
@@ -235,7 +235,7 @@ export default {
|
||||
}
|
||||
this.selectedRowKeys = []
|
||||
this.loading = true
|
||||
getEnterpriseRecheckPlanPage(query).then((res) => {
|
||||
getEsRecheckPlanList(query).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataList = res.result.records
|
||||
this.ipagination.total = res.result.total
|
||||
|
||||
@@ -212,6 +212,8 @@ export default {
|
||||
listChange (value) {
|
||||
console.log(value)
|
||||
this.loading = true
|
||||
// 企标id
|
||||
this.formInline.standardId = value[0].standardId
|
||||
// 企标编号
|
||||
this.formInline.standardNumber = value[0].standardNo
|
||||
// 企标名称
|
||||
|
||||
@@ -128,6 +128,8 @@ export default {
|
||||
// 选完企标编号了,需要回显内容,返回流程名称
|
||||
listChange (value) {
|
||||
console.log(value)
|
||||
// 企标id
|
||||
this.formInline.standardId = value[0].standardId
|
||||
// 企标名称
|
||||
this.formInline.standardName = value[0].standardName
|
||||
// 主起草人赋值给联络人
|
||||
|
||||
@@ -369,8 +369,8 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getForm()
|
||||
this.getStandardGradeClassificationArr()
|
||||
this.getForm()
|
||||
},
|
||||
methods: {
|
||||
initData (data) {
|
||||
@@ -381,6 +381,20 @@ export default {
|
||||
}) : []
|
||||
this.isEditSetData = false
|
||||
},
|
||||
getData () {
|
||||
const formInline = Object.assign({}, this.formInline)
|
||||
Object.keys(formInline).forEach(res => {
|
||||
if (formInline[res] instanceof Array) {
|
||||
if (formInline[res][0] instanceof Object) {
|
||||
// 说明是树选择
|
||||
formInline[res] = formInline[res].map(item => item.value).join(',')
|
||||
} else {
|
||||
formInline[res] = formInline[res].join(',')
|
||||
}
|
||||
}
|
||||
})
|
||||
return formInline
|
||||
},
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
async getDataValidate () {
|
||||
let data = {}
|
||||
|
||||
+2
-6
@@ -284,7 +284,8 @@ export default {
|
||||
loading: false,
|
||||
fileMaxSize: undefined,
|
||||
image: false,
|
||||
imageUrl: ''
|
||||
imageUrl: '',
|
||||
uploadName: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -378,11 +379,6 @@ export default {
|
||||
},
|
||||
// 点击文件上传
|
||||
clickButtonToUpload (fieldName) {
|
||||
if (fieldName === 'uploadAttachment') {
|
||||
this.fileMaxSize = 10
|
||||
} else {
|
||||
this.fileMaxSize = undefined
|
||||
}
|
||||
this.$refs.uploadFile.open(this.formInline[fieldName])
|
||||
this.uploadName = fieldName
|
||||
},
|
||||
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
// 把数据抛出,在线编辑不知道要不要抛
|
||||
const data = {}
|
||||
data.otherDraftUserVOS = this.dataSource
|
||||
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.formInline)
|
||||
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.getData())
|
||||
return data
|
||||
},
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
|
||||
@@ -313,7 +313,7 @@ export default {
|
||||
}
|
||||
}
|
||||
data.reviewMeetingDetails = arr
|
||||
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.formInline)
|
||||
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.getData())
|
||||
return data
|
||||
},
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
|
||||
Reference in New Issue
Block a user