|
|
|
@ -160,10 +160,10 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-pagination
|
|
|
|
|
:page-size="query.limit"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
:page-size="manufacturerQuery.limit"
|
|
|
|
|
@current-change="handleManufacturerChange"
|
|
|
|
|
layout="prev, pager, next"
|
|
|
|
|
:total="total"
|
|
|
|
|
:total="manufacturerTotal"
|
|
|
|
|
>
|
|
|
|
|
</el-pagination>
|
|
|
|
|
<el-dialog
|
|
|
|
@ -252,7 +252,7 @@
|
|
|
|
|
<div>
|
|
|
|
|
<p class="form-title">产品资质设置</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div style=" float: right;
|
|
|
|
|
<div style="float:right;
|
|
|
|
|
text-align: right;
|
|
|
|
|
margin-bottom: 8px;"
|
|
|
|
|
>
|
|
|
|
@ -305,10 +305,10 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<el-pagination
|
|
|
|
|
:page-size="query.limit"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
:page-size="productQuery.limit"
|
|
|
|
|
@current-change="handleProductChange"
|
|
|
|
|
layout="prev, pager, next"
|
|
|
|
|
:total="total"
|
|
|
|
|
:total="productTotal"
|
|
|
|
|
>
|
|
|
|
|
</el-pagination>
|
|
|
|
|
|
|
|
|
@ -354,7 +354,7 @@
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
<span>产品类型:</span>
|
|
|
|
|
<span>器械类别:</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
@ -501,7 +501,7 @@ export default {
|
|
|
|
|
{required: true, message: "证书名称", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
need: [
|
|
|
|
|
{required: true, message: "请选择是否禁用", trigger: "blur"}
|
|
|
|
|
{required: true, message: "请选择产地", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -537,9 +537,7 @@ export default {
|
|
|
|
|
name: [
|
|
|
|
|
{required: true, message: "请输入证书名称", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
need: [
|
|
|
|
|
{required: true, message: "请选择是否必传", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**--------产品资质设置--------------*/
|
|
|
|
@ -618,7 +616,11 @@ export default {
|
|
|
|
|
this.currentSup.type = 1;
|
|
|
|
|
addSupCertSet(this.currentSup)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.getList();
|
|
|
|
|
if(response.code==20000){
|
|
|
|
|
this.getList();
|
|
|
|
|
}else{
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
@ -628,6 +630,7 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$message.success("保存成功!");
|
|
|
|
|
} else {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -638,6 +641,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
cancelDialog() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getManufacturerList();
|
|
|
|
|
this.getProductList();
|
|
|
|
|
this.addDialogVisible = false;
|
|
|
|
|
this.addManufacturerDialogVisible = false;
|
|
|
|
|
this.addProductDialogVisible = false;
|
|
|
|
@ -645,6 +651,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**--------生产企业资质设置--------------*/
|
|
|
|
|
handleManufacturerChange(val) {
|
|
|
|
|
this.manufacturerQuery.page = val;
|
|
|
|
|
this.getManufacturerList();
|
|
|
|
|
},
|
|
|
|
|
getManufacturerList() {
|
|
|
|
|
this.manufacturerLoading = true;
|
|
|
|
|
filterCertSet(this.manufacturerQuery)
|
|
|
|
@ -690,7 +700,12 @@ export default {
|
|
|
|
|
this.currentManufacturer.type = 2;
|
|
|
|
|
addSupCertSet(this.currentManufacturer)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.getManufacturerList();
|
|
|
|
|
if(response.code==20000){
|
|
|
|
|
this.getManufacturerList();
|
|
|
|
|
}else{
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
@ -700,6 +715,7 @@ export default {
|
|
|
|
|
this.getManufacturerList();
|
|
|
|
|
this.$message.success("保存成功!");
|
|
|
|
|
} else {
|
|
|
|
|
this.getManufacturerList();
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -711,6 +727,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**--------产品资质设置--------------*/
|
|
|
|
|
handleProductChange(val) {
|
|
|
|
|
this.productQuery.page = val;
|
|
|
|
|
this.getProductList();
|
|
|
|
|
},
|
|
|
|
|
getProductList() {
|
|
|
|
|
this.productLoading = true;
|
|
|
|
|
filterCertSet(this.productQuery)
|
|
|
|
@ -757,7 +777,11 @@ export default {
|
|
|
|
|
this.currentProduct.type = 3;
|
|
|
|
|
addSupCertSet(this.currentProduct)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.getProductList();
|
|
|
|
|
if(response.code==20000){
|
|
|
|
|
this.getProductList();
|
|
|
|
|
}else{
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
@ -767,6 +791,7 @@ export default {
|
|
|
|
|
this.getProductList();
|
|
|
|
|
this.$message.success("保存成功!");
|
|
|
|
|
} else {
|
|
|
|
|
this.getProductList();
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|