配送产品增加提示

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

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

Loading…
Cancel
Save