[update] 修改企标制修订流程
This commit is contained in:
+6
-4
@@ -96,7 +96,6 @@ export default {
|
||||
}
|
||||
],
|
||||
loading: false,
|
||||
data: {}, // 初始化获取的数据
|
||||
userInfo: {}, // 当前登录人信息
|
||||
currentDate: '',
|
||||
uploadIndex: undefined // 正在上传企标的下标
|
||||
@@ -109,7 +108,6 @@ export default {
|
||||
methods: {
|
||||
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
||||
initData (data) {
|
||||
this.data = data
|
||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||
// this.dataSource =
|
||||
// 给表单赋值
|
||||
@@ -124,6 +122,7 @@ export default {
|
||||
},
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
getDataValidate () {
|
||||
let data = {}// 需要返回的值
|
||||
if (this.dataSource && this.dataSource.length > 0) {
|
||||
// 看能上传企标的行是否都上传了
|
||||
let hasErr = false
|
||||
@@ -136,11 +135,14 @@ export default {
|
||||
// 根据hasErr看有没有通过校验
|
||||
if (hasErr) {
|
||||
this.$message.warning(this.$t('workCenter.enStandardRevision.pleaseUploadStandard'))
|
||||
return false
|
||||
data = false
|
||||
} else {
|
||||
return this.dataSource
|
||||
data.dataSource = this.dataSource
|
||||
}
|
||||
} else {
|
||||
data = false
|
||||
}
|
||||
return data
|
||||
},
|
||||
// 上传企标
|
||||
handleUploadStandard (record, index) {
|
||||
|
||||
Reference in New Issue
Block a user