From 4344963c34aa50159b91b226cc7c6c8ed249def9 Mon Sep 17 00:00:00 2001 From: Lvtf Date: Mon, 7 Aug 2023 11:10:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Myapi/productDetails/index.js | 14 + .../drugInfo/drugBasicInfo/drugBasicInfo.vue | 94 +++++-- .../drugBasicInfo/qxBasicInfo/index.vue | 251 +++++++++++++++++- src/views/firmContent/drugInfo/index.vue | 44 ++- 4 files changed, 369 insertions(+), 34 deletions(-) diff --git a/src/api/Myapi/productDetails/index.js b/src/api/Myapi/productDetails/index.js index fd776df..a984d77 100644 --- a/src/api/Myapi/productDetails/index.js +++ b/src/api/Myapi/productDetails/index.js @@ -14,6 +14,13 @@ export default { method: "get", }); }, + // 通过注册证号查询单条进口特殊化妆品数据 + jktshzp(data) { + return request({ + url: `/pharmaceuticals/jktshzp/${data}`, + method: "get", + }); + }, // 根据备案号查询单条国产化妆品数据 gccp(data) { return request({ @@ -21,6 +28,13 @@ export default { method: "get", }); }, + // 通过注册证号查询单条国产特殊化妆品 + gctshzp(data) { + return request({ + url: `/pharmaceuticals/gctshzp/${data}`, + method: "get", + }); + }, // 通过注册证编号查询单条器械品种数据 ylqxJnyelcp(data) { return request({ diff --git a/src/views/firmContent/drugInfo/drugBasicInfo/drugBasicInfo.vue b/src/views/firmContent/drugInfo/drugBasicInfo/drugBasicInfo.vue index 8ca3e98..74589c8 100644 --- a/src/views/firmContent/drugInfo/drugBasicInfo/drugBasicInfo.vue +++ b/src/views/firmContent/drugInfo/drugBasicInfo/drugBasicInfo.vue @@ -3,7 +3,7 @@ - + diff --git a/src/views/firmContent/drugInfo/drugBasicInfo/qxBasicInfo/index.vue b/src/views/firmContent/drugInfo/drugBasicInfo/qxBasicInfo/index.vue index 982b322..bfa2a75 100644 --- a/src/views/firmContent/drugInfo/drugBasicInfo/qxBasicInfo/index.vue +++ b/src/views/firmContent/drugInfo/drugBasicInfo/qxBasicInfo/index.vue @@ -1,21 +1,226 @@ diff --git a/src/views/firmContent/drugInfo/index.vue b/src/views/firmContent/drugInfo/index.vue index 69e5477..1b854ff 100644 --- a/src/views/firmContent/drugInfo/index.vue +++ b/src/views/firmContent/drugInfo/index.vue @@ -162,14 +162,36 @@ export default { let relativeHeight = windowHeight - height.top - 10 this.drugExitStyle.height = relativeHeight + 'px' }, + // 药品 async getVRdgYpwhGxwz(res){ let data = await this.$api.productDetails.vRdgYpwhGxwz(res); this.name = data.data.yptymc; }, + // 医疗器械 async ylqxJnyelcp(res){ let data = await this.$api.productDetails.ylqxJnyelcp(res); this.name = data.data.cpmc; - } + }, + // 国产化妆品 + async getGccp(res){ + let data = await this.$api.productDetails.gccp(res); + this.name = data.data.mc; + }, + // 国产特殊化妆品 + async gctshzp(res){ + let data = await this.$api.productDetails.gctshzp(res); + this.name = data.data.cpmc; + }, + // 进口化妆品 + async jkcp(res) { + let data = await this.$api.productDetails.jkcp(res); + this.name = data.data.mc; + }, + // 进口特殊化妆品 + async jktshzp(res){ + let data = await this.$api.productDetails.gccp(res); + this.name = data.data.cpmc; + }, }, // watch: { // $route: { @@ -221,6 +243,26 @@ export default { this.getVRdgYpwhGxwz(params[2].split('=')[1]); } else if(paramsLabel == 'qxzczh') { this.ylqxJnyelcp(params[2].split('=')[1]); + } else if(paramsLabel == 'bah') { + // 判断是哪种化妆品 + let cosmeticsType = params[3].split('=')[1]; + if(cosmeticsType == '1') { + // 国产化妆品 + this.getGccp(params[2].split('=')[1]); + } else if(cosmeticsType == '3') { + // 进口化妆品 + this.jkcp(params[2].split('=')[1]); + } + } else if(paramsLabel == 'zczh') { + // 判断是哪种化妆品 + let cosmeticsType = params[3].split('=')[1]; + if(cosmeticsType == '2') { + // 国产特殊化妆品 + this.gctshzp(params[2].split('=')[1]); + } else if(cosmeticsType == '4') { + // 进口特殊化妆品 + this.jktshzp(params[2].split('=')[1]); + } } // 判断是用⌈ 返回 ⌋ 还是用⌈ X ⌋ 用来返回上一级