配送产品增加提示

ywj_dev
郑明梁 2 years ago
parent 4ffa5747ae
commit c575681eed

@ -549,38 +549,62 @@ export default {
this.$message.error("生产企业未通过审核不能提交!");
return;
}
if(val==3){
this.$confirm( "已审核通过,是否需要重新提交变更", {
confirmButtonText: "确定",
type: "warning",
showCancelButton: false,
})
.then(() => {
this.$refs['inputQuery'].validate(valid => {
if (valid) {
// this.inputQuery.auditStatus = val;
let formData = JSON.parse(JSON.stringify(this.inputQuery));
formData.manufacturerIdFk = this.manufacturerId;
formData.auditStatus = val;
this.loading = true;
let urlName = this.editType == 0 ? 'add' : 'update';
addOrModifyRegistration(formData, urlName).then(response => {
this.loading = false;
if (response.code === 20000) {
this.closeRegistrationDialog(true);
this.$message.success("保存成功");
} else {
this.$message.error(response.message);
}
});
} else {
return false;
}
});
}
if(val==3){
this.$confirm( "已审核通过,是否需要重新提交变更", {
confirmButtonText: "确定",
type: "warning",
showCancelButton: false,
})
.then(() => {
this.$refs['inputQuery'].validate(valid => {
if (valid) {
// this.inputQuery.auditStatus = val;
let formData = JSON.parse(JSON.stringify(this.inputQuery));
formData.manufacturerIdFk = this.manufacturerId;
formData.auditStatus = val;
this.loading = true;
let urlName = this.editType == 0 ? 'add' : 'update';
addOrModifyRegistration(formData, urlName).then(response => {
this.loading = false;
if (response.code === 20000) {
this.closeRegistrationDialog(true);
this.$message.success("保存成功");
} else {
this.$message.error(response.message);
}
});
} else {
return false;
}
});
}
});
}else{
this.$refs['inputQuery'].validate(valid => {
if (valid) {
// this.inputQuery.auditStatus = val;
let formData = JSON.parse(JSON.stringify(this.inputQuery));
formData.manufacturerIdFk = this.manufacturerId;
formData.auditStatus = val;
this.loading = true;
let urlName = this.editType == 0 ? 'add' : 'update';
addOrModifyRegistration(formData, urlName).then(response => {
this.loading = false;
if (response.code === 20000) {
this.closeRegistrationDialog(true);
this.$message.success("保存成功");
} else {
this.$message.error(response.message);
}
});
} else {
return false;
}
});
}
},
toViewCompanyCert(row) {

Loading…
Cancel
Save