修复采购产品新增提交bug

tagView
zhengmingliang 2 years ago
parent c55e25105c
commit c5ec7a6ed5

@ -15,7 +15,7 @@
size="mini"
icon="search"
v-if="inputQuery.auditStatus == 0"
@click="onModifySubmit(0)"
@click="addOrModifyCompany(0)"
>草稿保存
</el-button
>
@ -502,17 +502,23 @@ export default {
onModifySubmit(type) {
//
if(type==3){
let query = {
customerId: this.$store.getters.customerId
}
getCompany(query)
.then((response) => {
}
getCompany(query)
.then((response) => {
if(response.data.auditStatus!=1){
this.$message.error("本企业信息还未通过审核!");
falg=false;
return;
}else{
this.$refs["inputQuery"].validate(valid => {
this.addOrModifyCompany(type);
}}).catch(() => {
});
},
addOrModifyCompany (type){
this.$refs["inputQuery"].validate(valid => {
if (valid) {
let formData = JSON.parse(JSON.stringify(this.inputQuery));
@ -533,13 +539,6 @@ export default {
return false;
}
});
}
}).catch(() => {
});
}
},
certHandleCurrentChange(val) {
this.certQuery.page = val;

Loading…
Cancel
Save