|
|
|
@ -15,7 +15,7 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
icon="search"
|
|
|
|
|
v-if="inputQuery.auditStatus == 0"
|
|
|
|
|
@click="onModifySubmit(0)"
|
|
|
|
|
@click="addOrModifyCompany(0)"
|
|
|
|
|
>草稿保存
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
@ -500,19 +500,25 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
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;
|
|
|
|
|