diff --git a/src/api/Myapi/frimCenter/index.js b/src/api/Myapi/frimCenter/index.js
index e0ddbbc..1df0331 100644
--- a/src/api/Myapi/frimCenter/index.js
+++ b/src/api/Myapi/frimCenter/index.js
@@ -111,6 +111,33 @@ export default {
data
})
},
+ //药品不良反应
+ portraitDrugsReport(data) {
+ return request({
+ baseURL: api,
+ url: `/api/arms/drugAdverse/portraitDrugsReport`,
+ method: "post",
+ data
+ })
+ },
+ //医疗器械不良反应
+ portraitYlqxReport(data) {
+ return request({
+ baseURL: api,
+ url: `/api/arms/ylqxAdverse/portraitYlqxReport`,
+ method: "post",
+ data
+ })
+ },
+ //化妆品不良反应
+ portraitHzpReport(data) {
+ return request({
+ baseURL: api,
+ url: `/api/arms/hzpAdverse/portraitHzpReport`,
+ method: "post",
+ data
+ })
+ },
//药品详情查询--省抽
productDrugInspectDetail(query) {
return request({
@@ -129,8 +156,8 @@ export default {
params: query
})
},
- //医疗器械详情查询--省抽
- productMedicalInspectDetail(query) {
+ //医疗器械详情查询--省抽
+ productMedicalInspectDetail(query) {
return request({
baseURL: api,
url: `/api/dais/GeneralTool/productMedicalInspectDetail`,
@@ -180,8 +207,8 @@ export default {
params
});
},
-//字典
- getDicts(params) {
+ //字典
+ getDicts(params) {
return request({
url: '/pharmaceuticals/groductsLabel/dict',
method: 'get',
@@ -196,16 +223,16 @@ export default {
params
})
},
- //新增数据
- groductsLabel(data) {
+ //新增数据
+ groductsLabel(data) {
return request({
url: '/pharmaceuticals/groductsLabel',
method: 'post',
data
})
},
- //删除
- deleteLabel(data) {
+ //删除
+ deleteLabel(data) {
return request({
url: '/pharmaceuticals/groductsLabel/deleteLabel',
method: 'post',
diff --git a/src/views/firmContent/drugInfo/adverseReaction/adverseReaction.vue b/src/views/firmContent/drugInfo/adverseReaction/adverseReaction.vue
index 16dca66..9b06a99 100644
--- a/src/views/firmContent/drugInfo/adverseReaction/adverseReaction.vue
+++ b/src/views/firmContent/drugInfo/adverseReaction/adverseReaction.vue
@@ -37,11 +37,12 @@
-
+
+
-
-
-
+
+
@@ -100,15 +101,11 @@ export default {
// addresName:'沈阳',
// }
],
+ tableList: [],
form1: {
- size: 10,
- current: 1,
- //抽样编号
- cybh: "",
- //批准文号
- yppzwh: '',
- zzjyjl: "",
- fsnf:""
+ pageSize: 10,
+ pageNum: 1,
+ drugApprovalNo: "",
},
options1: [
{
@@ -124,7 +121,7 @@ export default {
// adverseReactionStyle:{
// height:''
// }
- currentPage: 1,
+ pageNum: 1,
pageSize: 10,
total: 0,
}
@@ -132,6 +129,251 @@ export default {
props: ['transinformation'],
components: { blockHeader },
methods: {
+ getlist() {
+ this.loading = true;
+ if (this.urlA.type == 2) {
+ // 药品
+ this.tableList = [
+ {
+ name: "序号",
+ prop: "index",
+ width: "80"
+ },
+ {
+ name: "患者姓名",
+ prop: "name",
+ width: "100"
+ },
+ {
+ name: "不良反应名称",
+ prop: "untowardReactionName",
+ }, {
+ name: "不良反应结果",
+ prop: "untowardReactionResult",
+ width: "160"
+ },
+ {
+ name: "不良反应发生时间",
+ prop: "happenDate",
+ width: "160"
+ },
+ {
+ name: "严重程度",
+ prop: "reportType",
+ width: "180"
+ }, {
+ name: "通用名称",
+ prop: "commonName",
+ },
+ {
+ name: "报告单位类别",
+ prop: "reportUnitType",
+ width: "180"
+ },
+ // {
+ // name: "合并用药通用名称",
+ // prop: "mergeCommonName",
+ // width: "180"
+ // }, {
+ // name: "怀疑用药通用名称 ",
+ // prop: "suspectedCommonName",
+ // width: "180"
+ // },
+ ]
+ this.$api.frimCenter.portraitDrugsReport(this.form1).then(res => {
+ console.log(888, this.urlA);
+ console.log(777, res);
+ if (res.status == 200) {
+ this.tableData = res.result.list;
+ this.tableData.forEach((element, index) => {
+ element.index = index + 1;
+ });
+ this.total = res.result.total;
+ this.loading = false;
+
+ }
+
+ })
+ } else if (this.urlA.type == 3) {
+ // 器械
+ this.tableList = [
+ {
+ name: "序号",
+ prop: "index",
+ width: "80"
+ },
+ {
+ name: "单位名称",
+ prop: "company",
+ },
+ {
+ name: "持有人名称",
+ prop: "holder",
+ width: "130"
+ },
+ {
+ name: "持有人所属监测机构",
+ prop: "cyrJcjg",
+ }, {
+ name: "事发地所属监测机构",
+ prop: "userOperateEnterpriseJcjg",
+ },
+ {
+ name: "故障表现",
+ prop: "faultPerformance",
+ width: "130"
+ },
+ {
+ name: "伤害程度",
+ prop: "harm",
+ width: "100"
+ }, {
+ name: "伤害表现",
+ prop: "behavior",
+ width: "100"
+
+ },
+ {
+ name: "报告状态",
+ prop: "cyrReportStatus",
+ width: "100"
+ },
+
+ // {
+ // name: "合并用药通用名称",
+ // prop: "mergeCommonName",
+ // width: "180"
+ // }, {
+ // name: "怀疑用药通用名称 ",
+ // prop: "suspectedCommonName",
+ // width: "180"
+ // },
+ ]
+ this.$api.frimCenter.portraitYlqxReport(this.form1).then(res => {
+ this.tableList = [
+ {
+ name: "序号",
+ prop: "index",
+ width: "80"
+ },
+ {
+ name: "单位名称",
+ prop: "company",
+ },
+ {
+ name: "故障表现",
+ prop: "faultPerformance",
+ width: "130"
+ },
+ {
+ name: "伤害程度",
+ prop: "harm",
+ width: "100"
+ }, {
+ name: "伤害表现",
+ prop: "behavior",
+ width: "100"
+
+ },
+ {
+ name: "持有人名称",
+ prop: "holder",
+ width: "130"
+ },
+ {
+ name: "持有人所属监测机构",
+ prop: "cyrJcjg",
+ }, {
+ name: "事发地所属监测机构",
+ prop: "userOperateEnterpriseJcjg",
+ },
+
+ {
+ name: "报告状态",
+ prop: "cyrReportStatus",
+ width: "100"
+ },
+
+ // {
+ // name: "合并用药通用名称",
+ // prop: "mergeCommonName",
+ // width: "180"
+ // }, {
+ // name: "怀疑用药通用名称 ",
+ // prop: "suspectedCommonName",
+ // width: "180"
+ // },
+ ]
+ console.log(888, this.urlA);
+ console.log(777, res);
+ if (res.status == 200) {
+ this.tableData = res.result.list;
+ this.tableData.forEach((element, index) => {
+ element.index = index + 1;
+ });
+ this.total = res.result.total;
+ this.loading = false;
+
+ }
+ })
+ } else if (this.urlA.type == 1) {
+ this.tableList = [
+ {
+ name: "序号",
+ prop: "index",
+ width: "80"
+ },
+ {
+ name: "化妆品名称",
+ prop: "hzpName",
+ },
+ {
+ name: "报告单位",
+ prop: "reportUnit",
+ },
+ {
+ name: "报告来源",
+ prop: "reportSource",
+ width: "130"
+ },
+ {
+ name: "报告类型",
+ prop: "reportType",
+ width: "100"
+ }, {
+ name: "初步判断",
+ prop: "initialJudgement",
+
+ },
+ {
+ name: "报告区域",
+ prop: "reportArea",
+ width: "130"
+ },
+ {
+ name: "报告日期",
+ prop: "reportDate",
+ width: "100"
+ },
+
+
+ ]
+ this.$api.frimCenter.portraitHzpReport(this.form1).then(res => {
+ console.log(888, this.urlA);
+ console.log(777, res);
+ if (res.status == 200) {
+ this.tableData = res.result.list;
+ this.tableData.forEach((element, index) => {
+ element.index = index + 1;
+ });
+ this.total = res.result.total;
+ this.loading = false;
+ }
+ })
+ // 化妆品
+ }
+
+ },
// tabs某列的样式修改
columnStyle({ row, column, rowIndex, columnIndex }) {
if (columnIndex == 7 || columnIndex == 0) {
@@ -146,39 +388,41 @@ export default {
},
currentChange(index) {
+ console.log(77, index);
+ this.form1.pageNum = index;
+ this.getlist()
},
sizeChange(index) {
-
+ this.form1.pageSize = index;
+ this.getlist()
},
reset() {
this.form1 = {
- size: 10,
- current: 1,
- //抽样编号
- cybh: "",
- //批准文号
- yppzwh: '',
- zzjyjl: ""
+ pageSize: 10,
+ pageNum: 1,
+ drugApprovalNo: "",
}
},
inquire() { }
},
- computed:{
+ computed: {
...mapState({
urlA: (state) => state.app.urlA,
}),
+ },
+ mounted() {
+ this.form1.drugApprovalNo = this.urlA.data
+ this.getlist()
+ // this.$nextTick(() => {
+ // let dom = document.getElementsByClassName('adverseReaction');
+ // let height = dom[0].getBoundingClientRect();
+ // let windowWidth = window.innerWidth;
+ // let windowHeight = window.innerHeight;
+ // let relativeHeight = windowHeight - height.top - (26 / 1920 * windowWidth)
+ // this.adverseReactionStyle.height = relativeHeight + 'px'
+ // })
}
- // mounted(){
- // this.$nextTick(()=>{
- // let dom = document.getElementsByClassName('adverseReaction');
- // let height = dom[0].getBoundingClientRect();
- // let windowWidth = window.innerWidth;
- // let windowHeight = window.innerHeight;
- // let relativeHeight = windowHeight - height.top - (26 / 1920 * windowWidth)
- // this.adverseReactionStyle.height = relativeHeight + 'px'
- // })
- // }
}