[update] 处理流程中人员信息

This commit is contained in:
lideqin
2023-11-08 15:37:19 +08:00
parent ea6aac0329
commit 7cee81d2b5
17 changed files with 385 additions and 255 deletions
@@ -287,9 +287,8 @@ export default {
methods: {
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
initData (data) {
this.data = data
// 给表格赋值
// this.dataSource =
this.dataSource = data.dataList
},
// 外层要获取数据
getData () {
@@ -301,10 +300,10 @@ export default {
return data
},
// 外层获取数据要过校验,返回false表示没有通过校验
getDataValidate (callback) {
getDataValidate () {
// 校验表格是否每行都有数据,每行的联络人是否都有
let data = {}
if (this.dataSource && this.dataSource.length > 0) {
const data = {}
data.dataSource = this.dataSource.map(item => {
return { ...item, enStandardSystem: item.enStandardSystem ? item.enStandardSystem.join(',') : ''}
})
@@ -318,16 +317,13 @@ export default {
}
if (hasErr) {
this.$message.warning(this.$t('workCenter.revisionPlanActivelyReport.pleaseSelectContact'))
const data = false
callback(data)
} else {
callback(data)
data = false
}
} else {
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
const data = false
callback(data)
data = false
}
return data
},
// 企标编号,企标名称跳转详情,原企标
handleGoDetailOld (record) {
@@ -375,6 +371,12 @@ export default {
},
// 导入
handleImportExcel (info) {
// 限制导入大于500MB
if (info.file.size > 1024 * 1024 * 500) {
this.$message.error('导入文件最大500MB')
info.fileList.pop()
return
}
// 加一个大的提示
if (!this.loading) {
importModalLoading = this.$info({