Merge branch 'develop_new' into develop

This commit is contained in:
liyawei
2022-11-23 12:40:07 +08:00
7 changed files with 49 additions and 43 deletions
@@ -1698,6 +1698,17 @@ export default {
prcType: row.prcType prcType: row.prcType
} }
}) })
}else if(row.taskInfo === '技术标准起草') {
this.$router.push({
name: 'qbzxdjhgkStep6',
query:{
taskIds: row.taskIds,
prcId: row.prcId,
prcNum: row.prcNum,
prcName: row.prcName,
prcType: row.prcType
}
})
} }
break; break;
case "26": case "26":
@@ -403,16 +403,14 @@ export default {
}) })
}, },
methods: { methods: {
validateForm () { validateForm (callback) {
let flag = null
this.$refs['qbfsForm'].validate((valid) => { this.$refs['qbfsForm'].validate((valid) => {
if (valid) { if (valid) {
flag = true callback && callback()
} else { } else{
flag = false this.$message.warning("请完善基础信息");
} }
}) })
return flag
}, },
choiceShow(){ choiceShow(){
this.getStandDataBtn() this.getStandDataBtn()
@@ -425,16 +425,14 @@ export default {
}) })
}, },
methods: { methods: {
validateForm () { validateForm (callback) {
let flag = null
this.$refs['qbfsForm'].validate((valid) => { this.$refs['qbfsForm'].validate((valid) => {
if (valid) { if (valid) {
flag = true callback && callback()
} else { } else{
flag = false this.$message.warning("请完善基础信息");
} }
}) })
return flag
}, },
choiceShow(){ choiceShow(){
this.getStandDataBtn() this.getStandDataBtn()
@@ -446,7 +446,6 @@ export default {
} }
}; };
const standNameVerify = async (rule, value, callback) => { const standNameVerify = async (rule, value, callback) => {
debugger
if (value === '' || value === null) { if (value === '' || value === null) {
return callback(new Error('请输入企标名称')) return callback(new Error('请输入企标名称'))
} else { } else {
@@ -1021,16 +1020,14 @@ export default {
this.$refs.qbfsForm.validateField('resPersonName'); this.$refs.qbfsForm.validateField('resPersonName');
} }
}, },
validateForm () { validateForm (callback) {
let flag = null
this.$refs['qbfsForm'].validate((valid) => { this.$refs['qbfsForm'].validate((valid) => {
if (valid) { if (valid) {
flag = true callback && callback()
} else { } else{
flag = false this.$message.warning("请完善基础信息");
} }
}) })
return flag
} }
}, },
}; };
@@ -1021,16 +1021,14 @@ export default {
this.$refs.qbfsForm.validateField('resPersonName'); this.$refs.qbfsForm.validateField('resPersonName');
} }
}, },
validateForm () { validateForm (callback) {
let flag = null
this.$refs['qbfsForm'].validate((valid) => { this.$refs['qbfsForm'].validate((valid) => {
if (valid) { if (valid) {
flag = true callback && callback()
} else { } else{
flag = false this.$message.warning("请完善基础信息");
} }
}) })
return flag
}, },
choiceShow(){ choiceShow(){
this.showType = 'one' this.showType = 'one'
@@ -412,16 +412,14 @@ export default {
}) })
}, },
methods: { methods: {
validateForm () { validateForm (callback) {
let flag = null
this.$refs['qbfsForm'].validate((valid) => { this.$refs['qbfsForm'].validate((valid) => {
if (valid) { if (valid) {
flag = true callback && callback()
} else { } else{
flag = false this.$message.warning("请完善基础信息");
} }
}) })
return flag
}, },
choiceShow(){ choiceShow(){
this.getStandDataBtn() this.getStandDataBtn()
@@ -527,9 +527,8 @@ export default {
this.$message.warning('企标名称已存在,请更改!') this.$message.warning('企标名称已存在,请更改!')
}else { }else {
if (this.$route.query.prcNum === undefined) { if (this.$route.query.prcNum === undefined) {
let flag = this.$refs["childForm"].validateForm(); this.$refs["childForm"].validateForm(()=>{
let qbzxdFrom = this.$refs["childForm"].qbfsForm; let qbzxdFrom = this.$refs["childForm"].qbfsForm;
if (flag) {
this.$refs["roleForm"].validate((valid) => { this.$refs["roleForm"].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true; this.isSubmit = true;
@@ -578,13 +577,16 @@ export default {
this.$message.warning("请完善人员信息"); this.$message.warning("请完善人员信息");
} }
}); });
} else { });
this.$message.warning("请完善基础信息");
} // if (flag) {
//
// } else {
// this.$message.warning("请完善基础信息");
// }
} else { } else {
let flag = this.$refs["childForm"].validateForm(); let flag = this.$refs["childForm"].validateForm(() => {
let qbzxdFrom = this.$refs["childForm"].qbfsForm; let qbzxdFrom = this.$refs["childForm"].qbfsForm;
if (flag) {
this.$refs["roleForm"].validate((valid) => { this.$refs["roleForm"].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true; this.isSubmit = true;
@@ -609,9 +611,13 @@ export default {
this.$message.warning("请完善人员信息"); this.$message.warning("请完善人员信息");
} }
}); });
} else { });
this.$message.warning("请完善基础信息");
} // if (flag) {
//
// } else {
// this.$message.warning("请完善基础信息");
// }
} }
} }
}, },