修改证书显示审核提交bug

tagView
zhengmingliang 3 years ago
parent fe8871768f
commit 8c1af93579

@ -484,13 +484,15 @@ export default {
if (this.$isNotBlank(row)) { if (this.$isNotBlank(row)) {
this.registrationId = row.id; this.registrationId = row.id;
this.curProductQuery = row; this.curProductQuery = row;
this.curProductQuery.cuStatus=this.currentManufacturer.auditStatus;
this.formName = "update"; this.formName = "update";
this.editProductType = 1; this.editProductType = 1;
} else { } else {
this.editProductType = 0; this.editProductType = 0;
this.formName = "add"; this.formName = "add";
this.curProductQuery = { this.curProductQuery = {
auditStatus: 0 auditStatus: 0,
cuStatus:this.currentManufacturer.auditStatus
}; };
} }
this.registrationVisible = true; this.registrationVisible = true;

@ -196,6 +196,11 @@
<el-table-column label="有效期" prop="vailDate"></el-table-column> <el-table-column label="有效期" prop="vailDate"></el-table-column>
<el-table-column label="失效期" prop="expireDate"></el-table-column> <el-table-column label="失效期" prop="expireDate"></el-table-column>
<el-table-column label="备注" prop="remark"></el-table-column> <el-table-column label="备注" prop="remark"></el-table-column>
<el-table-column label="证书状态" prop="status">
<template slot-scope="scope">
{{ supStatus[scope.row.status] }}
</template>
</el-table-column>
<el-table-column label="审核状态" prop="auditStatus" width="120"> <el-table-column label="审核状态" prop="auditStatus" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="(scope.row.auditStatus) | statusFilterType"> <el-tag :type="(scope.row.auditStatus) | statusFilterType">
@ -403,6 +408,10 @@ export default {
3: "变更未审核", 3: "变更未审核",
6: "未审核", 6: "未审核",
}, },
supStatus: {
0: "有效",
1: "失效",
},
certAuditVisible: false, certAuditVisible: false,
currentAudit: {}, currentAudit: {},
}; };

@ -211,6 +211,11 @@
<el-table-column label="有效期" prop="vailDate"></el-table-column> <el-table-column label="有效期" prop="vailDate"></el-table-column>
<el-table-column label="失效期" prop="expireDate"></el-table-column> <el-table-column label="失效期" prop="expireDate"></el-table-column>
<el-table-column label="备注" prop="remark"></el-table-column> <el-table-column label="备注" prop="remark"></el-table-column>
<el-table-column label="证书状态" prop="status">
<template slot-scope="scope">
{{ supStatus[scope.row.status] }}
</template>
</el-table-column>
<el-table-column label="审核状态" prop="auditStatus" width="120"> <el-table-column label="审核状态" prop="auditStatus" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="(scope.row.auditStatus) | statusFilterType"> <el-tag :type="(scope.row.auditStatus) | statusFilterType">
@ -423,7 +428,10 @@ export default {
3: "变更未审核", 3: "变更未审核",
6: "未审核", 6: "未审核",
}, },
supStatus: {
0: "有效",
1: "失效",
},
certAuditVisible: false, certAuditVisible: false,
currentAudit: {}, currentAudit: {},
}; };

@ -424,6 +424,7 @@ export default {
}, },
loading: false, loading: false,
classesDisplay: false, classesDisplay: false,
cuStatus:0,
selectedOptions: [], selectedOptions: [],
selectedOptions2: [], selectedOptions2: [],
options: regionDataPlus, options: regionDataPlus,
@ -543,6 +544,7 @@ export default {
this.pmQuery.customerId = this.inputQuery.customerId; this.pmQuery.customerId = this.inputQuery.customerId;
} }
this.cuStatus=this.inputQuery.cuStatus;
this.manufacturerId = this.inputQuery.manufacturerIdFk this.manufacturerId = this.inputQuery.manufacturerIdFk
this.productId = this.inputQuery.productId this.productId = this.inputQuery.productId
this.findMethod(); this.findMethod();
@ -555,6 +557,12 @@ export default {
}, },
methods: { methods: {
onModifySubmit(val) { onModifySubmit(val) {
if(val!=0){
if(this.cuStatus!=1){
this.$message.error("生产企业未通过审核不能提交!");
return;
}
}
this.$refs['inputQuery'].validate(valid => { this.$refs['inputQuery'].validate(valid => {
if (valid) { if (valid) {

Loading…
Cancel
Save