技术标准/产品标准提交加接口
This commit is contained in:
@@ -2539,27 +2539,16 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
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) {
|
||||
ifStandCodebyStandName(standCode,standName){
|
||||
return new Promise((resolve, reject)=>{
|
||||
this.$http._postData('lawss/sarBussionessStand/ifStandCodebyStandName',{standCode,standName})
|
||||
.then(res => resolve(res))
|
||||
.catch(e => {
|
||||
throw new Error(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
completeTask(){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.form.commentText = this.formTongGuo.commentText
|
||||
@@ -2598,6 +2587,40 @@
|
||||
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{
|
||||
this.$message.warning('请检查基础信息表单是否填写完整')
|
||||
|
||||
@@ -2647,23 +2647,16 @@
|
||||
this.rules.commentText[0].required = true;
|
||||
}
|
||||
},
|
||||
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) {
|
||||
ifStandCodebyStandName(standCode,standName){
|
||||
return new Promise((resolve, reject)=>{
|
||||
this.$http._postData('lawss/sarBussionessStand/ifStandCodebyStandName',{standCode,standName})
|
||||
.then(res => resolve(res))
|
||||
.catch(e => {
|
||||
throw new Error(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
completeTask(){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.form.commentText = this.formTongGuo.commentText
|
||||
@@ -2699,6 +2692,36 @@
|
||||
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{
|
||||
|
||||
Reference in New Issue
Block a user