update 企标稽查计划

This commit is contained in:
danshihao
2023-11-22 11:53:14 +08:00
parent e006798d74
commit 12631c2eec
6 changed files with 40 additions and 26 deletions
@@ -231,16 +231,25 @@ export default {
this.loadPage({ projectId, taskId })
return
}
// 否则就是创建一个新的流程
getInspectPlanProjectId().then(res => {
if (res) {
this.projectId = res + ''
this.currentNode = EsInspectionPlan.initiate.value
this.btn = EsInspectionPlan.initiate.btn
}
})
this.getProjectId()
},
methods: {
/**
* 获取项目id
*/
getProjectId () {
this.loading = true
// 否则就是创建一个新的流程
getInspectPlanProjectId().then(res => {
if (res) {
this.projectId = res + ''
this.currentNode = EsInspectionPlan.initiate.value
this.btn = EsInspectionPlan.initiate.btn
}
}).finally(() => {
this.loading = false
})
},
/**
* 获取页面详情
*/
@@ -295,7 +304,7 @@ export default {
personnelObj = this.$refs.personnelInfo.getDataObjVerify()
// List拆成数组
for (const key in personnelObj) {
if (key.includes('List')) {
if (personnelObj[key] && key.includes('List')) {
personnelObj[key] = personnelObj[key].split(',')
}
}
@@ -332,7 +341,7 @@ export default {
personnelObj = this.$refs.personnelInfo.getDataObj()
// List拆成数组
for (const key in personnelObj) {
if (key.includes('List')) {
if (personnelObj[key] && key.includes('List')) {
personnelObj[key] = personnelObj[key].split(',')
}
}