|
|
@ -5,7 +5,7 @@
|
|
|
|
<div class="drug-name">
|
|
|
|
<div class="drug-name">
|
|
|
|
<span>{{ pruduct.key }} :</span>
|
|
|
|
<span>{{ pruduct.key }} :</span>
|
|
|
|
<!-- <span class="Name">{{ 暂无 }}</span> -->
|
|
|
|
<!-- <span class="Name">{{ 暂无 }}</span> -->
|
|
|
|
<span class="Name">{{ pruduct.value || '暂无' }}</span>
|
|
|
|
<span class="Name">{{ pruduct.value || "暂无" }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="drug-tag">
|
|
|
|
<div class="drug-tag">
|
|
|
|
<span v-for="item in tags" :key="item.id">{{ item.name }}</span>
|
|
|
|
<span v-for="item in tags" :key="item.id">{{ item.name }}</span>
|
|
|
@ -18,16 +18,50 @@
|
|
|
|
<div class="drugInfo-bottom">
|
|
|
|
<div class="drugInfo-bottom">
|
|
|
|
<div class="content-tabs">
|
|
|
|
<div class="content-tabs">
|
|
|
|
<div class="tabs">
|
|
|
|
<div class="tabs">
|
|
|
|
<div class="tab" @click="actionTab(1)" :class="action == 1 ? 'actionTab':''">
|
|
|
|
<div
|
|
|
|
<img :class="action !== 1 ? 'actionImage' : ''" :src="action == 1 ? `${require('@/assets/images/home/icon1-1@2x.png')}`:`${require('@/assets/images/home/icon1-2@2x.png')}`" alt="">
|
|
|
|
class="tab"
|
|
|
|
|
|
|
|
@click="actionTab(1)"
|
|
|
|
|
|
|
|
:class="action == 1 ? 'actionTab' : ''"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<img
|
|
|
|
|
|
|
|
:class="action !== 1 ? 'actionImage' : ''"
|
|
|
|
|
|
|
|
:src="
|
|
|
|
|
|
|
|
action == 1
|
|
|
|
|
|
|
|
? `${require('@/assets/images/home/icon1-1@2x.png')}`
|
|
|
|
|
|
|
|
: `${require('@/assets/images/home/icon1-2@2x.png')}`
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
alt=""
|
|
|
|
|
|
|
|
/>
|
|
|
|
<span>基本信息</span>
|
|
|
|
<span>基本信息</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab" @click="actionTab(2)" :class="action == 2 ? 'actionTab':''">
|
|
|
|
<div
|
|
|
|
<img :src="action == 2 ? `${require('@/assets/images/home/icon2-1@2x.png')}`:`${require('@/assets/images/home/icon2-2@2x.png')}`" alt="">
|
|
|
|
class="tab"
|
|
|
|
|
|
|
|
@click="actionTab(2)"
|
|
|
|
|
|
|
|
:class="action == 2 ? 'actionTab' : ''"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<img
|
|
|
|
|
|
|
|
:src="
|
|
|
|
|
|
|
|
action == 2
|
|
|
|
|
|
|
|
? `${require('@/assets/images/home/icon2-1@2x.png')}`
|
|
|
|
|
|
|
|
: `${require('@/assets/images/home/icon2-2@2x.png')}`
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
alt=""
|
|
|
|
|
|
|
|
/>
|
|
|
|
<span>品种抽样</span>
|
|
|
|
<span>品种抽样</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab" @click="actionTab(3)" :class="action == 3 ? 'actionTab':''">
|
|
|
|
<div
|
|
|
|
<img :src="action == 3 ? `${require('@/assets/images/home/icon5-1@2x.png')}`:`${require('@/assets/images/home/icon5-2@2x.png')}`" alt="">
|
|
|
|
class="tab"
|
|
|
|
|
|
|
|
@click="actionTab(3)"
|
|
|
|
|
|
|
|
:class="action == 3 ? 'actionTab' : ''"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<img
|
|
|
|
|
|
|
|
:src="
|
|
|
|
|
|
|
|
action == 3
|
|
|
|
|
|
|
|
? `${require('@/assets/images/home/icon5-1@2x.png')}`
|
|
|
|
|
|
|
|
: `${require('@/assets/images/home/icon5-2@2x.png')}`
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
alt=""
|
|
|
|
|
|
|
|
/>
|
|
|
|
<span>不良反应</span>
|
|
|
|
<span>不良反应</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -65,15 +99,19 @@
|
|
|
|
</div> -->
|
|
|
|
</div> -->
|
|
|
|
<div class="drug-exit" :style="drugExitStyle">
|
|
|
|
<div class="drug-exit" :style="drugExitStyle">
|
|
|
|
<!-- <router-view></router-view> -->
|
|
|
|
<!-- <router-view></router-view> -->
|
|
|
|
<component :is="currentComponent" :transinformation="transinformation" @getCPName="getCPName"></component>
|
|
|
|
<component
|
|
|
|
|
|
|
|
:is="currentComponent"
|
|
|
|
|
|
|
|
:transinformation="transinformation"
|
|
|
|
|
|
|
|
@getCPName="getCPName"
|
|
|
|
|
|
|
|
></component>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import basicInfo from "./drugBasicInfo/drugBasicInfo"
|
|
|
|
import basicInfo from "./drugBasicInfo/drugBasicInfo";
|
|
|
|
import PZchouyang from "./PZchouyang/PZchouyang"
|
|
|
|
import PZchouyang from "./PZchouyang/PZchouyang";
|
|
|
|
import adverseReaction from "./adverseReaction/adverseReaction"
|
|
|
|
import adverseReaction from "./adverseReaction/adverseReaction";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -81,71 +119,72 @@ export default {
|
|
|
|
tags: [
|
|
|
|
tags: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
id: 1,
|
|
|
|
name:'百年产品'
|
|
|
|
name: "百年产品",
|
|
|
|
},{
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
id: 2,
|
|
|
|
name:'疗效显著'
|
|
|
|
name: "疗效显著",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
action: 1,
|
|
|
|
action: 1,
|
|
|
|
currentComponent:'basicInfo',
|
|
|
|
currentComponent: "basicInfo",
|
|
|
|
drugExitStyle: {
|
|
|
|
drugExitStyle: {
|
|
|
|
height:'',
|
|
|
|
height: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// isOne:false,
|
|
|
|
// isOne:false,
|
|
|
|
id: null,
|
|
|
|
id: null,
|
|
|
|
token: null,
|
|
|
|
token: null,
|
|
|
|
//产品名称
|
|
|
|
//产品名称
|
|
|
|
pruduct: {
|
|
|
|
pruduct: {
|
|
|
|
key:'某某产品',
|
|
|
|
key: "某某产品",
|
|
|
|
value:'-'
|
|
|
|
value: "-",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
basicInfo,
|
|
|
|
basicInfo,
|
|
|
|
PZchouyang,
|
|
|
|
PZchouyang,
|
|
|
|
adverseReaction
|
|
|
|
adverseReaction,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
//获取名称
|
|
|
|
//获取名称
|
|
|
|
getCPName(e) {
|
|
|
|
getCPName(e) {
|
|
|
|
this.pruduct.key = e.key
|
|
|
|
this.pruduct.key = e.key;
|
|
|
|
this.pruduct.value = e.value
|
|
|
|
this.pruduct.value = e.value;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goBack() {
|
|
|
|
goBack() {
|
|
|
|
this.$router.go(-1)
|
|
|
|
this.$router.go(-1);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// tabs切换
|
|
|
|
// tabs切换
|
|
|
|
actionTab(id) {
|
|
|
|
actionTab(id) {
|
|
|
|
this.action = id;
|
|
|
|
this.action = id;
|
|
|
|
if (id == 1) {
|
|
|
|
if (id == 1) {
|
|
|
|
this.currentComponent = 'basicInfo'
|
|
|
|
this.currentComponent = "basicInfo";
|
|
|
|
// this.$router.push({ name:'drugBasicInfo' })
|
|
|
|
// this.$router.push({ name:'drugBasicInfo' })
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.getHeight();
|
|
|
|
this.getHeight();
|
|
|
|
})
|
|
|
|
});
|
|
|
|
} else if (id == 2) {
|
|
|
|
} else if (id == 2) {
|
|
|
|
this.currentComponent = 'PZchouyang'
|
|
|
|
this.currentComponent = "PZchouyang";
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.getHeight();
|
|
|
|
this.getHeight();
|
|
|
|
})
|
|
|
|
});
|
|
|
|
// this.$router.push({ name:'PZchouyang' })
|
|
|
|
// this.$router.push({ name:'PZchouyang' })
|
|
|
|
} else if (id == 3) {
|
|
|
|
} else if (id == 3) {
|
|
|
|
this.currentComponent = 'adverseReaction'
|
|
|
|
this.currentComponent = "adverseReaction";
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.getHeight();
|
|
|
|
this.getHeight();
|
|
|
|
})
|
|
|
|
});
|
|
|
|
// this.$router.push({ name:'adverseReaction' })
|
|
|
|
// this.$router.push({ name:'adverseReaction' })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getHeight() {
|
|
|
|
getHeight() {
|
|
|
|
let dom = document.getElementsByClassName('drug-exit');
|
|
|
|
let dom = document.getElementsByClassName("drug-exit");
|
|
|
|
let height = dom[0].getBoundingClientRect();
|
|
|
|
let height = dom[0].getBoundingClientRect();
|
|
|
|
let windowWidth = window.innerWidth;
|
|
|
|
let windowWidth = window.innerWidth;
|
|
|
|
let windowHeight = window.innerHeight;
|
|
|
|
let windowHeight = window.innerHeight;
|
|
|
|
let relativeHeight = windowHeight - height.top - 10
|
|
|
|
let relativeHeight = windowHeight - height.top - 10;
|
|
|
|
this.drugExitStyle.height = relativeHeight + 'px'
|
|
|
|
this.drugExitStyle.height = relativeHeight + "px";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async getVRdgYpwhGxwz(res) {
|
|
|
|
async getVRdgYpwhGxwz(res) {
|
|
|
|
let data = await this.$api.productDetails.vRdgYpwhGxwz(res);
|
|
|
|
let data = await this.$api.productDetails.vRdgYpwhGxwz(res);
|
|
|
@ -154,7 +193,7 @@ export default {
|
|
|
|
async ylqxJnyelcp(res) {
|
|
|
|
async ylqxJnyelcp(res) {
|
|
|
|
let data = await this.$api.productDetails.ylqxJnyelcp(res);
|
|
|
|
let data = await this.$api.productDetails.ylqxJnyelcp(res);
|
|
|
|
this.name = data.data.cpmc;
|
|
|
|
this.name = data.data.cpmc;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// watch: {
|
|
|
|
// watch: {
|
|
|
|
// $route: {
|
|
|
|
// $route: {
|
|
|
@ -168,29 +207,29 @@ export default {
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
transinformation() {
|
|
|
|
transinformation() {
|
|
|
|
switch (this.currentComponent) {
|
|
|
|
switch (this.currentComponent) {
|
|
|
|
case 'basicInfo':
|
|
|
|
case "basicInfo":
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
b: this.id,
|
|
|
|
b: this.id,
|
|
|
|
token: this.token,
|
|
|
|
token: this.token,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
case 'PZchouyang':
|
|
|
|
case "PZchouyang":
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
b: this.id,
|
|
|
|
b: this.id,
|
|
|
|
token: this.token,
|
|
|
|
token: this.token,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
case 'adverseReaction':
|
|
|
|
case "adverseReaction":
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
b: this.id,
|
|
|
|
b: this.id,
|
|
|
|
token: this.token,
|
|
|
|
token: this.token,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
b: 4,
|
|
|
|
b: 4,
|
|
|
|
token:'暂无'
|
|
|
|
token: "暂无",
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
// params刷新数据会丢失
|
|
|
|
// params刷新数据会丢失
|
|
|
|
// console.log(this.$route.params)
|
|
|
|
// console.log(this.$route.params)
|
|
|
@ -207,7 +246,6 @@ export default {
|
|
|
|
// } else if(paramsLabel == 'qxzczh') {
|
|
|
|
// } else if(paramsLabel == 'qxzczh') {
|
|
|
|
// this.ylqxJnyelcp(params[2].split('=')[1]);
|
|
|
|
// this.ylqxJnyelcp(params[2].split('=')[1]);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// // 判断是用⌈ 返回 ⌋ 还是用⌈ X ⌋ 用来返回上一级
|
|
|
|
// // 判断是用⌈ 返回 ⌋ 还是用⌈ X ⌋ 用来返回上一级
|
|
|
|
// if(this.id == '1') {
|
|
|
|
// if(this.id == '1') {
|
|
|
|
// this.goback = true;
|
|
|
|
// this.goback = true;
|
|
|
@ -217,8 +255,8 @@ export default {
|
|
|
|
// this.$nextTick(()=>{
|
|
|
|
// this.$nextTick(()=>{
|
|
|
|
// this.getHeight();
|
|
|
|
// this.getHeight();
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import "@/assets/styles/utils.scss";
|
|
|
|
@import "@/assets/styles/utils.scss";
|
|
|
@ -232,7 +270,7 @@ export default {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: vh(15) vw(25);
|
|
|
|
padding: vh(15) vw(25);
|
|
|
|
border-bottom: vw(1) solid #EDEEF0;
|
|
|
|
border-bottom: vw(1) solid #edeef0;
|
|
|
|
.close {
|
|
|
|
.close {
|
|
|
|
cursor: pointer;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -248,12 +286,12 @@ export default {
|
|
|
|
font-size: vw(18);
|
|
|
|
font-size: vw(18);
|
|
|
|
font-family: Source Han Sans CN;
|
|
|
|
font-family: Source Han Sans CN;
|
|
|
|
font-weight: 400;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #6A6C6F;
|
|
|
|
color: #6a6c6f;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.Name {
|
|
|
|
.Name {
|
|
|
|
// margin-left: ;
|
|
|
|
// margin-left: ;
|
|
|
|
color: #292F38;
|
|
|
|
color: #292f38;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.drug-tag {
|
|
|
|
.drug-tag {
|
|
|
@ -267,19 +305,18 @@ export default {
|
|
|
|
margin-right: vw(10);
|
|
|
|
margin-right: vw(10);
|
|
|
|
font-family: Source Han Sans CN;
|
|
|
|
font-family: Source Han Sans CN;
|
|
|
|
font-weight: 400;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #FFFFFF;
|
|
|
|
color: #ffffff;
|
|
|
|
padding: vh(4) vw(13);
|
|
|
|
padding: vh(4) vw(13);
|
|
|
|
background-color: #66C691;
|
|
|
|
background-color: #66c691;
|
|
|
|
border-radius: vw(2);
|
|
|
|
border-radius: vw(2);
|
|
|
|
|
|
|
|
|
|
|
|
&:nth-of-type(2) {
|
|
|
|
&:nth-of-type(2) {
|
|
|
|
background-color: #EABB48;
|
|
|
|
background-color: #eabb48;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -290,9 +327,9 @@ export default {
|
|
|
|
.tabs {
|
|
|
|
.tabs {
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
border-bottom: vw(1) solid #DBE0E8;
|
|
|
|
border-bottom: vw(1) solid #dbe0e8;
|
|
|
|
.tab {
|
|
|
|
.tab {
|
|
|
|
border: vw(1) solid #DBE0E8;
|
|
|
|
border: vw(1) solid #dbe0e8;
|
|
|
|
padding: vh(7) vw(22);
|
|
|
|
padding: vh(7) vw(22);
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
@ -321,11 +358,11 @@ export default {
|
|
|
|
font-size: vw(16);
|
|
|
|
font-size: vw(16);
|
|
|
|
font-family: Source Han Sans CN;
|
|
|
|
font-family: Source Han Sans CN;
|
|
|
|
font-weight: 400;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #2F3742;
|
|
|
|
color: #2f3742;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.actionTab {
|
|
|
|
.actionTab {
|
|
|
|
background-color: #1E80EB;
|
|
|
|
background-color: #1e80eb;
|
|
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
span {
|
|
|
|
color: #fff;
|
|
|
|
color: #fff;
|
|
|
@ -340,5 +377,8 @@ export default {
|
|
|
|
overflow-y: scroll;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
::v-deep.pzChouyang .tables .el-table td{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|