修复采购产品新增提交bug

tagView
zhengmingliang 2 years ago
parent c55e25105c
commit c5ec7a6ed5

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

Loading…
Cancel
Save