技术标准/产品标准提交加接口

This commit is contained in:
zyn
2023-06-19 11:06:37 +08:00
parent 37804b7c66
commit a903ce32ea
2 changed files with 118 additions and 72 deletions
@@ -2539,27 +2539,16 @@
}) })
} }
}, },
handleSubmit() { ifStandCodebyStandName(standCode,standName){
// this.getRule() return new Promise((resolve, reject)=>{
// const val= this.form.country; this.$http._postData('lawss/sarBussionessStand/ifStandCodebyStandName',{standCode,standName})
// if (val !== '' && val !== null && typeof (val) !== 'undefined') { .then(res => resolve(res))
// if (val instanceof Array) { .catch(e => {
// this.form.country = val.join(","); throw new Error(e)
// } else { })
// this.form.country = val })
// } },
// } else if (val === '') { completeTask(){
// this.form.country = []
// }
if(this.form.standStatus !== '1'){
this.rules.standNum[0].required = false;
}
this.fileInfoHandle()
this.$refs['form'].validate((valid) => {
if (valid) {
this.$refs['formTongGuo'].validate((valid) => {
if (valid) {
this.isSubmit = true this.isSubmit = true
this.saveLoading = true this.saveLoading = true
this.form.commentText = this.formTongGuo.commentText this.form.commentText = this.formTongGuo.commentText
@@ -2598,6 +2587,40 @@
this.$message.success(res.message) this.$message.success(res.message)
} }
}) })
},
handleSubmit() {
// this.getRule()
// const val= this.form.country;
// if (val !== '' && val !== null && typeof (val) !== 'undefined') {
// if (val instanceof Array) {
// this.form.country = val.join(",");
// } else {
// this.form.country = val
// }
// } else if (val === '') {
// this.form.country = []
// }
if(this.form.standStatus !== '1'){
this.rules.standNum[0].required = false;
}
this.fileInfoHandle()
this.$refs['form'].validate((valid) => {
if (valid) {
this.$refs['formTongGuo'].validate((valid) => {
if (valid) {
if(this.form.standStatus === '1' || this.form.standStatus === '2'){
this.ifStandCodebyStandName(this.form.standCode,this.form.standName)
.then((res)=>{
if(res.ok){
this.completeTask()
}else{
this.$message.error(res.data)
}
})
}else{
this.completeTask()
}
}}) }})
}else{ }else{
this.$message.warning('请检查基础信息表单是否填写完整') this.$message.warning('请检查基础信息表单是否填写完整')
@@ -2647,23 +2647,16 @@
this.rules.commentText[0].required = true; this.rules.commentText[0].required = true;
} }
}, },
handleSubmit() { ifStandCodebyStandName(standCode,standName){
// this.getRule() return new Promise((resolve, reject)=>{
// const val= this.form.country; this.$http._postData('lawss/sarBussionessStand/ifStandCodebyStandName',{standCode,standName})
// if (val !== '' && val !== null && typeof (val) !== 'undefined') { .then(res => resolve(res))
// if (val instanceof Array) { .catch(e => {
// this.form.country = val.join(","); throw new Error(e)
// } else { })
// this.form.country = val })
// } },
// } else if (val === '') { completeTask(){
// this.form.country = []
// }
this.fileInfoHandle()
this.$refs['form'].validate((valid) => {
if (valid) {
this.$refs['formTongGuo'].validate((valid) => {
if (valid) {
this.isSubmit = true this.isSubmit = true
this.saveLoading = true this.saveLoading = true
this.form.commentText = this.formTongGuo.commentText this.form.commentText = this.formTongGuo.commentText
@@ -2699,6 +2692,36 @@
this.$message.success(res.message) this.$message.success(res.message)
} }
}) })
},
handleSubmit() {
// this.getRule()
// const val= this.form.country;
// if (val !== '' && val !== null && typeof (val) !== 'undefined') {
// if (val instanceof Array) {
// this.form.country = val.join(",");
// } else {
// this.form.country = val
// }
// } else if (val === '') {
// this.form.country = []
// }
this.fileInfoHandle()
this.$refs['form'].validate((valid) => {
if (valid) {
this.$refs['formTongGuo'].validate((valid) => {
if (valid) {
if(this.form.reviseStatus === '1' || this.form.reviseStatus === '2'){
this.ifStandCodebyStandName(this.form.standCode,this.form.standName)
.then((res)=>{
if(res.ok){
this.completeTask()
}else{
this.$message.error(res.data)
}
})
}else{
this.completeTask()
}
} }
}) })
}else{ }else{