|
|
@ -179,42 +179,6 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="允许无批次号">
|
|
|
|
|
|
|
|
<el-select v-model="inputQuery.allowNoBatch" style="width: 100%" size="small">
|
|
|
|
|
|
|
|
<el-option label="是" :value="true"></el-option>
|
|
|
|
|
|
|
|
<el-option label="否" :value="false"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="允许无失效日期">
|
|
|
|
|
|
|
|
<el-select v-model="inputQuery.allowNoExpire" style="width: 100%" size="small">
|
|
|
|
|
|
|
|
<el-option label="是" :value="true"></el-option>
|
|
|
|
|
|
|
|
<el-option label="否" :value="false"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="允许无生产日期">
|
|
|
|
|
|
|
|
<el-select v-model="inputQuery.allowNoProduct" style="width: 100%" size="small">
|
|
|
|
|
|
|
|
<el-option label="是" :value="true"></el-option>
|
|
|
|
|
|
|
|
<el-option label="否" :value="false"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="允许无序列号">
|
|
|
|
|
|
|
|
<el-select v-model="inputQuery.allowNoSerial" style="width: 100%" size="small">
|
|
|
|
|
|
|
|
<el-option label="是" :value="true"></el-option>
|
|
|
|
|
|
|
|
<el-option label="否" :value="false"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
|
|
|
|
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
|
|
|
@ -585,30 +549,39 @@ export default {
|
|
|
|
this.$message.error("生产企业未通过审核不能提交!");
|
|
|
|
this.$message.error("生产企业未通过审核不能提交!");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(val==3){
|
|
|
|
this.$refs['inputQuery'].validate(valid => {
|
|
|
|
this.$confirm( "已审核通过,是否需要重新提交变更", {
|
|
|
|
if (valid) {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
// this.inputQuery.auditStatus = val;
|
|
|
|
type: "warning",
|
|
|
|
|
|
|
|
showCancelButton: false,
|
|
|
|
|
|
|
|
})
|
|
|
|
let formData = JSON.parse(JSON.stringify(this.inputQuery));
|
|
|
|
.then(() => {
|
|
|
|
formData.manufacturerIdFk = this.manufacturerId;
|
|
|
|
this.$refs['inputQuery'].validate(valid => {
|
|
|
|
formData.auditStatus = val;
|
|
|
|
if (valid) {
|
|
|
|
this.loading = true;
|
|
|
|
// this.inputQuery.auditStatus = val;
|
|
|
|
let urlName = this.editType == 0 ? 'add' : 'update';
|
|
|
|
|
|
|
|
addOrModifyRegistration(formData, urlName).then(response => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
let formData = JSON.parse(JSON.stringify(this.inputQuery));
|
|
|
|
if (response.code === 20000) {
|
|
|
|
formData.manufacturerIdFk = this.manufacturerId;
|
|
|
|
this.closeRegistrationDialog(true);
|
|
|
|
formData.auditStatus = val;
|
|
|
|
this.$message.success("保存成功");
|
|
|
|
this.loading = true;
|
|
|
|
} else {
|
|
|
|
let urlName = this.editType == 0 ? 'add' : 'update';
|
|
|
|
this.$message.error(response.message);
|
|
|
|
addOrModifyRegistration(formData, urlName).then(response => {
|
|
|
|
}
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
if (response.code === 20000) {
|
|
|
|
} else {
|
|
|
|
this.closeRegistrationDialog(true);
|
|
|
|
return false;
|
|
|
|
this.$message.success("保存成功");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
toViewCompanyCert(row) {
|
|
|
|
toViewCompanyCert(row) {
|
|
|
|
window.open(this.certFileUrl + row.filePath);
|
|
|
|
window.open(this.certFileUrl + row.filePath);
|
|
|
|