|
|
@ -223,6 +223,17 @@ export default { |
|
|
if (this.status === '1'){ |
|
|
if (this.status === '1'){ |
|
|
this.isAble = true; |
|
|
this.isAble = true; |
|
|
this.pageDisabled = true; |
|
|
this.pageDisabled = true; |
|
|
|
|
|
this.hideUpload = true; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.status === '2'){ |
|
|
|
|
|
this.isAble = true; |
|
|
|
|
|
this.pageDisabled = true; |
|
|
|
|
|
this.hideUpload = true; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.status === '3'){ |
|
|
|
|
|
this.isAble = true; |
|
|
|
|
|
this.pageDisabled = true; |
|
|
|
|
|
this.hideUpload = true; |
|
|
} |
|
|
} |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
if (this.dataForm.id) { |
|
|
if (this.dataForm.id) { |
|
|
@ -448,10 +459,27 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 表单提交 |
|
|
// 表单提交 |
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
this.pageloading = true; |
|
|
|
|
|
this.isAble = true; |
|
|
|
|
|
// 统计项非0校验 |
|
|
// 统计项非0校验 |
|
|
let remindInfo = '' |
|
|
let remindInfo = '' |
|
|
|
|
|
for (var i = 0; i < this.checkDiction.length; i++) { |
|
|
|
|
|
let childSub = this.checkDiction[i].childDiction; |
|
|
|
|
|
if (childSub.length>0){ |
|
|
|
|
|
for (let b = 0; b <childSub.length ; b++) { |
|
|
|
|
|
let cds = childSub[b].describe; |
|
|
|
|
|
if (cds === undefined || cds === ''){ |
|
|
|
|
|
remindInfo += '第' + (i + 1) + '大项有的描述、' |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}else { |
|
|
|
|
|
let ds = this.checkDiction[i].describe; |
|
|
|
|
|
if (ds === undefined || ds === ''){ |
|
|
|
|
|
remindInfo += '第' + (i + 1) + '大项有的描述、' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//封装考核内容提报详情表数据 |
|
|
//封装考核内容提报详情表数据 |
|
|
let subChild =[]; |
|
|
let subChild =[]; |
|
|
for (let i of this.checkDiction){ |
|
|
for (let i of this.checkDiction){ |
|
|
@ -492,15 +520,9 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
for (var i = 0; i < subChild.length; i++) { |
|
|
|
|
|
let x = subChild[i].desribe; |
|
|
|
|
|
if (x === undefined || x === ''){ |
|
|
|
|
|
remindInfo += '第' + (i + 1) + '项、' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (remindInfo.length > 0) { |
|
|
if (remindInfo.length > 0) { |
|
|
remindInfo = remindInfo.substring(0, remindInfo.length - 1) |
|
|
remindInfo = remindInfo.substring(0, remindInfo.length - 1) |
|
|
this.$confirm(remindInfo + '描述未完善,请完善后提交!', '提示', { |
|
|
this.$confirm(remindInfo + '未完善,请完善后提交!', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
@ -526,6 +548,8 @@ export default { |
|
|
infoDetail:subChild |
|
|
infoDetail:subChild |
|
|
} |
|
|
} |
|
|
console.log(pateDate); |
|
|
console.log(pateDate); |
|
|
|
|
|
this.pageloading = true; |
|
|
|
|
|
this.isAble = true; |
|
|
this.$http[!this.dataForm.id ? 'post' : 'put'](`kpi/subdetail/addDetail`,pateDate).then(({ data: res }) => { |
|
|
this.$http[!this.dataForm.id ? 'post' : 'put'](`kpi/subdetail/addDetail`,pateDate).then(({ data: res }) => { |
|
|
this.pageloading = false; |
|
|
this.pageloading = false; |
|
|
this.isAble = false; |
|
|
this.isAble = false; |
|
|
@ -545,5 +569,7 @@ export default { |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|
|
|
.hide .el-upload--picture-card { |
|
|
|
|
|
display: none; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |