新增首页

master
李劲龙 2 years ago
parent 1f079f2235
commit 958a6bb2c1

@ -24,7 +24,7 @@ export default {
}; };
}, },
mounted() { mounted() {
/* /* npm run build:prod
sudo mv ggfw-dangan.zip /usr/share/nginx/html/ggfw-dangan MSSM-Dev 文件夹下 移动压缩包到 ggfw文件夹下 sudo mv ggfw-dangan.zip /usr/share/nginx/html/ggfw-dangan MSSM-Dev 文件夹下 移动压缩包到 ggfw文件夹下
cd /usr/share/nginx/html/ggfw-dangan 移动到文件夹下 cd /usr/share/nginx/html/ggfw-dangan 移动到文件夹下

@ -3,8 +3,8 @@ export default {
// 登录 // 登录
frimLogin() { frimLogin() {
return request({ return request({
baseURL: process.env.VUE_APP_USER_LOGIN, // baseURL: process.env.VUE_APP_USER_LOGIN,
// url: "/pharmaceuticals/login", url: "/pharmaceuticals/login",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
isToken: true, isToken: true,

@ -3,7 +3,7 @@ import request from "@/utils/request";
//获取用户信息 //获取用户信息
export function getselfInfo() { export function getselfInfo() {
return request({ return request({
// baseURL: location.origin, baseURL: location.origin,
url: "/api/admin/user/getSelfInfo", url: "/api/admin/user/getSelfInfo",
method: "GET", method: "GET",
}); });

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

@ -5,10 +5,14 @@
<div class="logo-name">产品档案管理系统</div> <div class="logo-name">产品档案管理系统</div>
</div> </div>
<div class="header-user"> <div class="header-user">
<div class="btn-back" @click="goBack()"> <div class="btn-back" @click="goBack(0)" v-if="$route.meta.title && $route.meta.title == '首页'">
<span class="back-btn-icon"></span> <span class="back-btn-icon"></span>
返回门户 返回门户
</div> </div>
<div class="btn-back" @click="goBack(1)" v-else>
<span class="back-btn-icon"></span>
返回首页
</div>
<div class="separate-line"></div> <div class="separate-line"></div>
<div class="user-data"> <div class="user-data">
<div class="user-icon"></div> <div class="user-icon"></div>
@ -32,11 +36,16 @@ export default {
...mapGetters(["realName"]), ...mapGetters(["realName"]),
}, },
methods: { methods: {
goBack() { goBack(type) {
if (type == 0) {
if (process.env.NODE_ENV === "production") { if (process.env.NODE_ENV === "production") {
// window.open(location.origin + "/sdsp/home", "_self"); // window.open(location.origin + "/sdsp/home", "_self");
window.open(location.origin + "/ims/workbench/", "_self"); window.open(location.origin + "/ims/workbench/", "_self");
} }
} else {
this.$router.push({ name: "portal" })
}
}, },
toggleSideBar() { toggleSideBar() {
this.$store.dispatch("app/toggleSideBar"); this.$store.dispatch("app/toggleSideBar");
@ -56,9 +65,11 @@ export default {
justify-content: space-between; justify-content: space-between;
padding: 0 15px; padding: 0 15px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
.header-logo { .header-logo {
display: flex; display: flex;
align-items: center; align-items: center;
.logo-item { .logo-item {
cursor: pointer; cursor: pointer;
width: 44px; width: 44px;
@ -67,6 +78,7 @@ export default {
background-size: cover; background-size: cover;
margin-right: 10px; margin-right: 10px;
} }
.logo-name { .logo-name {
font-size: 22px; font-size: 22px;
font-family: Source Han Sans SC-Bold, Source Han Sans SC; font-family: Source Han Sans SC-Bold, Source Han Sans SC;
@ -76,10 +88,12 @@ export default {
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
} }
} }
.header-user { .header-user {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.btn-back { .btn-back {
cursor: pointer; cursor: pointer;
font-size: 13px; font-size: 13px;
@ -92,6 +106,7 @@ export default {
border-radius: 24px 24px 24px 24px; border-radius: 24px 24px 24px 24px;
display: flex; display: flex;
align-items: center; align-items: center;
.back-btn-icon { .back-btn-icon {
display: inline-block; display: inline-block;
width: 18px; width: 18px;
@ -101,6 +116,7 @@ export default {
margin-right: 6px; margin-right: 6px;
} }
} }
.separate-line { .separate-line {
margin: 0 20px; margin: 0 20px;
height: 17px; height: 17px;
@ -108,16 +124,19 @@ export default {
opacity: 0.6; opacity: 0.6;
background: #fff; background: #fff;
} }
.avatar-wrapper { .avatar-wrapper {
cursor: pointer; cursor: pointer;
display: flex; display: flex;
align-items: center; align-items: center;
color: #fff; color: #fff;
.user-avatar { .user-avatar {
width: 34px; width: 34px;
height: 34px; height: 34px;
border-radius: 50%; border-radius: 50%;
} }
.user-name { .user-name {
margin: 0 6px; margin: 0 6px;
font-size: 16px; font-size: 16px;

@ -8,7 +8,9 @@ import { getToken } from "@/utils/auth";
// 踢出系统 // 踢出系统
function kickOut() { function kickOut() {
if (process.env.NODE_ENV === "production") { if (process.env.NODE_ENV === "production") {
setTimeout(() => {
location.href = location.origin + "/login"; location.href = location.origin + "/login";
}, 1000);
} }
} }
// const whiteList = [ // const whiteList = [

@ -64,7 +64,7 @@ export const constantRoutes = [
{ {
path: '', path: '',
component: () => import("@/views/index"), component: () => import("@/views/index"),
redirect: "drugArchives", redirect: "portal",
isDiy: true, isDiy: true,
children: [ children: [
{ {

@ -74,7 +74,7 @@ const selfPermission = {
fileTreeOut[4].meta.affix = true fileTreeOut[4].meta.affix = true
commit("SET_ROUTER", fileTreeOut); commit("SET_ROUTER", fileTreeOut);
resolve(fileTreeOut.length > 0 ? fileTreeOut[0].path : []); resolve(fileTreeOut.length > 0 ? fileTreeOut[4].path : []);
}) })
.catch((error) => { .catch((error) => {
reject(error); reject(error);

@ -45,6 +45,7 @@ export default {
myRouter() { myRouter() {
return this.$store.state.myselfPermission.routerList.slice(0,this.$store.state.myselfPermission.routerList.length-1); return this.$store.state.myselfPermission.routerList.slice(0,this.$store.state.myselfPermission.routerList.length-1);
// return this.$store.state.myselfPermission.routerList; // return this.$store.state.myselfPermission.routerList;
//.slice(0,this.$store.state.myselfPermission.routerList.length-1)
}, },
}, },
created() {}, created() {},

@ -1,23 +1,192 @@
<template> <template>
<div class="portal-L"> <div class="portal-L">
<div class="portal_content">
<div class="portal_content_top">
<el-tabs v-model="tabPosition">
<el-tab-pane label="药品" name="drugArchives"></el-tab-pane>
<el-tab-pane label="医疗器械" name="health"></el-tab-pane>
<el-tab-pane label="化妆品" name="cosmeticsArchives"></el-tab-pane>
<el-tab-pane label="传统中药制剂" name="zyzj"></el-tab-pane>
</el-tabs>
</div>
<div class="portal_input">
<el-input placeholder="请输入产品名称、备案编号/注册证号" v-model="inputvalue" class="input-with-select">
<el-button slot="append" icon="el-icon-search" @click="goyemian"></el-button>
</el-input>
</div>
<div class="portal_box">
<div class="portal_box_item" v-for="(item, index) in data "
:style="'background: url(' + item.bg + ');backgroundSize:100% 100%;backgroundPosition: center center; backgroundRepeat: no - repeat'"
@click="pushRouter(item.name)">
<img :src="item.image" alt="">
<span>{{ item.value }}</span>
</div>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
tabPosition: "drugArchives",
inputvalue: "",
data: [
{
value: "药品档案",
image: require('@/assets/images/home/dangan1.png'),
bg: require('@/assets/images/home/danganbg1.png'),
name: "drugArchives"
},
{
value: "医疗器械档案"
,
image: require('@/assets/images/home/dangan2.png'),
bg: require('@/assets/images/home/danganbg2.png'),
name: "health"
},
{
value: "化妆品档案"
,
image: require('@/assets/images/home/dangan3.png'),
bg: require('@/assets/images/home/danganbg3.png'),
name: "cosmeticsArchives"
},
{
value: "传统中药制剂档案"
,
image: require('@/assets/images/home/dangan4.png'),
bg: require('@/assets/images/home/danganbg4.png'),
name: "zyzj"
},
]
} }
}, },
methods:{ methods: {
pushRouter(){ pushRouter(name) {
this.$router.push('/drugArchives') this.$router.push({ name: name })
},
goyemian() {
console.log(this.tabPosition);
if (this.inputvalue) {
this.$router.push({ name: this.tabPosition, query: { value: this.inputvalue } })
} else {
this.$message({
message: '请输入搜索内容',
type: 'warning'
});
}
} }
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.portal-L { .portal-L {
width: 100vw;
height: 92.7vh;
background-image: url('../../assets/images/home/bg.png');
background-size: 100% 100%;
background-position: center center;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
.portal_content {
height: 80vh;
width: 60vw;
}
}
//
::v-deep .portal_input {
position: relative;
.el-input-group--append .el-input__inner {
width: 100%;
height: 50px;
border-radius: 10px;
padding-right: 65px;
box-sizing: border-box;
}
.el-input-group__append {
position: absolute;
right: 20px;
top: 5px;
width: 40px;
height: 40px;
background: linear-gradient(-90deg, #057DFF 0%, #31ACFE 100%);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
button.el-button {
text-align: center;
align-items: center;
.el-icon-search {
align-items: center;
color: #ffffff;
font-size: 20px;
font-weight: 600;
}
}
}
}
//
.portal_box {
width: 100%;
height: 60vh;
padding: 40px 0;
background-image: url('../../assets/images/home/danganbg.png');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
display: flex;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
.portal_box_item {
cursor: pointer;
width: 400px;
height: 150px;
display: flex;
justify-content: center;
align-items: center;
img {
width: 40px;
height: 40px;
}
span {
font-weight: 600;
color: #39404D;
font-size: 20px;
margin-left: 20px;
}
}
}
// tab
::v-deep .el-tabs__item {
font-size: 18px;
font-weight: 600;
}
::v-deep .el-tabs__nav-wrap::after {
display: none;
} }
</style> </style>

@ -6,65 +6,109 @@
</div> </div>
<el-form ref="form1" :model="form1" label-width="100px"> <el-form ref="form1" :model="form1" label-width="100px">
<div style="margin-top: 10px"> <div style="margin-top: 10px">
<el-row>
<div class="title-box">基本信息查询</div>
<el-col :span="21">
<el-form-item label="查询条件">
<el-input v-model="form1.name" placeholder="请输入产品名称"></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
<el-row> <el-row>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="产品名称"> <el-form-item label="产品名称">
<el-input <el-input v-model="form1.cpmc" placeholder="请输入产品名称"></el-input>
v-model="form1.cpmc"
placeholder="请输入产品名称"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="备案编号"> <el-form-item label="备案编号">
<el-input <el-input v-model="form1.babm" placeholder="请输入备案编号"></el-input>
v-model="form1.babm"
placeholder="请输入备案编号"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="生产企业"> <el-form-item label="生产企业">
<el-input <el-input v-model="form1.scqy" placeholder="请输入生产企业"></el-input>
v-model="form1.scqy"
placeholder="请输入生产企业"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="7"> <!-- <el-col :span="7">
<el-form-item label="注册证编号"> <el-form-item label="注册证编号">
<el-input <el-input v-model="form1.name" placeholder="请输入注册证编号"></el-input>
v-model="form1.name"
placeholder="请输入注册证编号"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="7"> <el-col :span="7">
<el-form-item label="化妆品类型" placeholder="请输入化妆品类型"> <el-form-item label="化妆品类型" placeholder="请输入化妆品类型">
<el-select <el-select v-model="types" placeholder="请选择化妆品类型" @change="changeType">
v-model="types" <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
placeholder="请选择化妆品类型"
@change="changeType"
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</el-select> </el-form-item </el-select> </el-form-item></el-col>
></el-col> <div class="footBox" v-show="bthshow">
<div class="footBox">
<el-button icon="el-icon-refresh-left" @click="reset"></el-button> <el-button icon="el-icon-refresh-left" @click="reset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="searchList" <el-button type="primary" icon="el-icon-search" @click="searchList"></el-button>
>查询</el-button
>
</div> </div>
</el-row> </el-row>
<el-collapse @change="collapsechange">
<el-collapse-item :title="scoltitle" name="1">
<el-row>
<div class="title-box">产品抽检信息查询</div>
<el-col :span="7">
<el-form-item label="检验项目">
<el-input v-model="form1.cjxm" placeholder="请输入检验项目"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="检验受理编号">
<el-input v-model="form1.jyslbh" placeholder="请输入检验受理编号"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="抽样编号">
<el-input v-model="form1.cybh" placeholder="请输入抽样编号"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="7">
<el-form-item label="抽样级别">
<el-input v-model="form1.cyjb" placeholder="请输入抽样级别"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="抽样日期" placeholder="请输入化抽样日期">
<el-select v-model="form1.cyrq" placeholder="请选择抽样日期" @change="changeType">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select> </el-form-item></el-col>
</el-row>
<el-row>
<div class="title-box">不良反应信息查询</div>
<el-col :span="7">
<el-form-item label="发生年份">
<el-input v-model="form1.fsnf" placeholder="请输入发生年份"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="不良反应报告编号">
<el-input v-model="form1.blfybgbh" placeholder="请输入不良反应报告编号"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="不良反应类型">
<el-input v-model="form1.blfylx" placeholder="请输入不良反应类型"></el-input>
</el-form-item>
</el-col>
</el-row>
<div class="footBox" v-show="!bthshow">
<el-button icon="el-icon-refresh-left" @click="reset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="searchList"></el-button>
</div> </div>
</el-collapse-item>
</el-collapse>
</el-form> </el-form>
</div> </div>
@ -74,29 +118,13 @@
<div class="searchP">产品列表</div> <div class="searchP">产品列表</div>
</div> </div>
<div class="exportBtn"> <div class="exportBtn">
<el-button <el-button type="primary" icon="el-icon-edit-outline" @click="exportList()"></el-button>
type="primary"
icon="el-icon-edit-outline"
@click="exportList()"
>导出</el-button
>
</div> </div>
<section class="table-box"> <section class="table-box">
<div class="table-item"> <div class="table-item">
<el-table <el-table v-loading="loading" :data="tableData" border height="43vh" :stripe="false">
v-loading="loading"
:data="tableData"
border
height="43vh"
:stripe="false"
>
<el-table-column type="selection" width="35" align="center" /> <el-table-column type="selection" width="35" align="center" />
<el-table-column <el-table-column type="index" label="序号" width="55" align="center" />
type="index"
label="序号"
width="55"
align="center"
/>
<el-table-column label="产品名称" align="center"> <el-table-column label="产品名称" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.cpmc }} {{ scope.row.cpmc }}
@ -112,33 +140,17 @@
{{ scope.row.qymc || scope.row.sf || scope.row.zcr }} {{ scope.row.qymc || scope.row.sf || scope.row.zcr }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="操作" class-name="small-padding fixed-width" width="140" align="center">
label="操作"
class-name="small-padding fixed-width"
width="140"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button size="mini" plain type="primary" @click="toDetail(scope.row)"></el-button>
size="mini"
plain
type="primary"
@click="toDetail(scope.row)"
>详情</el-button
>
<!-- <el-button size="mini" plain type="warning">编辑</el-button> --> <!-- <el-button size="mini" plain type="warning">编辑</el-button> -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</section> </section>
<pagination <pagination :total="total" :page="form.current" :limit="form.size" @pagination="getPagination"
:total="total" :current-page.sync="form.current"></pagination>
:page="form.current"
:limit="form.size"
@pagination="getPagination"
:current-page.sync="form.current"
></pagination>
</div> </div>
</div> </div>
<el-dialog title="提示" :visible.sync="showCK" width="30%"> <el-dialog title="提示" :visible.sync="showCK" width="30%">
@ -189,6 +201,16 @@ export default {
cpmc: "", cpmc: "",
name: "", name: "",
scqy: "", scqy: "",
//
name: "",
cjxm: "",
jyslbh: "",
cybh: "",
cyjb: "",
cyrq: "",
blfybgbh: "",
blfylx: "",
fsnf: "",
}, },
form: { form: {
size: 10, size: 10,
@ -199,13 +221,34 @@ export default {
loadA: null, loadA: null,
showCK: false, showCK: false,
src: "", src: "",
bthshow: true,
scoltitle: "展开"
}; };
}, },
mounted() {}, mounted() {
created() { console.log(this.$route.query.value, 88888);
this.form1.name = this.$route.query.value || "";
if (this.form1.name) {
this.searchList();
} else {
this.changeType("1"); this.changeType("1");
}
},
created() {
}, },
methods: { methods: {
collapsechange(e) {
console.log(e);
if (e.length == 0) {
this.bthshow = true
this.scoltitle = "展开"
} else {
this.bthshow = false
this.scoltitle = "收起"
}
console.log(this.bthshow);
},
openDC() { openDC() {
this.showCK = false; this.showCK = false;
this.loadA = Loading.service({ this.loadA = Loading.service({
@ -258,12 +301,9 @@ export default {
}); });
}, },
exportList() { exportList() {
this.src = `确定导出${ this.src = `确定导出${this.form1.cpmc ? `产品名称为${this.form1.cpmc}` : ""
this.form1.cpmc ? `产品名称为${this.form1.cpmc}` : "" }${this.form1.babm ? `备案编号为${this.form1.babm}` : ""}${this.form1.scqy ? `生产企业为${this.form1.scqy}` : ""
}${this.form1.babm ? `备案编号为${this.form1.babm}` : ""}${ }${this.form1.name ? `注册证编号为${this.form1.name}` : ""
this.form1.scqy ? `生产企业为${this.form1.scqy}` : ""
}${
this.form1.name ? `注册证编号为${this.form1.name}` : ""
}${`化妆品类型为${this.filterTypes(this.types)}`}数据吗?`; }${`化妆品类型为${this.filterTypes(this.types)}`}数据吗?`;
this.showCK = true; this.showCK = true;
}, },
@ -299,7 +339,7 @@ export default {
data = e.zczh; data = e.zczh;
} }
//type //type
//flag //flag gt
this.$router.push({ this.$router.push({
path: `/cosmeticsDetail`, path: `/cosmeticsDetail`,
query: { type: "1", flag: this.types, data }, query: { type: "1", flag: this.types, data },
@ -408,12 +448,15 @@ export default {
::v-deep .el-dialog:not(.is-fullscreen) { ::v-deep .el-dialog:not(.is-fullscreen) {
margin-top: 30vh !important; margin-top: 30vh !important;
} }
::v-deep .el-dialog__body { ::v-deep .el-dialog__body {
padding: 15px; padding: 15px;
} }
::v-deep .el-select { ::v-deep .el-select {
width: 100% !important; width: 100% !important;
} }
.container { .container {
height: 100%; height: 100%;
// overflow: auto; // overflow: auto;
@ -426,9 +469,11 @@ export default {
color: #323233; color: #323233;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
.searchP { .searchP {
position: relative; position: relative;
cursor: pointer; cursor: pointer;
&::before { &::before {
content: ""; content: "";
width: 78px; width: 78px;
@ -439,22 +484,27 @@ export default {
} }
} }
} }
.tabs { .tabs {
width: 100%; width: 100%;
height: 30%;
background: #fff; background: #fff;
} }
} }
//=================== //===================
::v-deep .el-button--medium { ::v-deep .el-button--medium {
padding: 8px; padding: 8px;
} }
.footBox { .footBox {
width: 87.5%; width: 87.5%;
text-align: right; text-align: right;
} }
.tabsBottom { .tabsBottom {
padding-top: 10px; padding-top: 10px;
.foot-main { .foot-main {
height: 100%; height: 100%;
// min-height: 600px; // min-height: 600px;
@ -462,23 +512,52 @@ export default {
background: white; background: white;
} }
} }
.exportBtn { .exportBtn {
padding: 10px 20px; padding: 10px 20px;
} }
.table-box { .table-box {
padding: 10px 20px; padding: 10px 20px;
.table-item {
} .table-item {}
} }
.pagination { .pagination {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 15px 20px; padding: 15px 20px;
} }
::v-deep.el-table--medium .el-table__cell { ::v-deep.el-table--medium .el-table__cell {
padding: 5.3px 0; padding: 5.3px 0;
} }
::v-deep .el-table { ::v-deep .el-table {
overflow: auto; overflow: auto;
} }
::v-deep .el-collapse-item__header {
padding-left: 80vw;
font-size: 20px;
font-weight: 600;
.el-collapse-item__arrow {
margin-left: 20px;
}
}
.title-box {
position: relative;
padding-left: 30px;
font-size: 16px;
font-weight: 600;
margin-bottom: 20px;
}
::v-deep .el-collapse {
border: none;
}
</style> </style>

@ -4,8 +4,18 @@
<div class="headerText"> <div class="headerText">
<div class="searchP">查询条件</div> <div class="searchP">查询条件</div>
</div> </div>
<el-form ref="form1" :model="form1" label-width="150px"> <el-form ref="form1" :model="form1" label-width="90px">
<div style="margin-top: 10px"> <div style="margin-top: 10px">
<el-row>
<div class="title-box">基本信息查询</div>
<el-col :span="21">
<el-form-item label="查询条件">
<el-input v-model="form1.name" placeholder="请输入产品名称"></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
<el-row> <el-row>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="产品名称"> <el-form-item label="产品名称">
@ -34,12 +44,104 @@
</el-form-item> </el-form-item>
</div> </div>
</el-col> </el-col>
<div class="footBox"> <div class="footBox" v-show="bthshow">
<el-button icon="el-icon-refresh-left" @click="reset"></el-button> <el-button icon="el-icon-refresh-left" @click="reset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="searchList"></el-button> <el-button type="primary" icon="el-icon-search" @click="searchList"></el-button>
</div> </div>
</el-row> </el-row>
<el-collapse @change="collapsechange">
<el-collapse-item :title="scoltitle" name="1">
<el-row>
<div class="title-box">审评受理信息查询</div>
<el-col :span="7">
<el-form-item label="受理号">
<el-input v-model="form1.cjxm" placeholder="请输入受理号"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="申请事项">
<el-input v-model="form1.jyslbh" placeholder="请输入申请事项"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="受理日期">
<el-input v-model="form1.cybh" placeholder="请输入受理日期"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<div class="title-box">注册检验体系核查信息查询</div>
<el-col :span="7">
<el-form-item label="样品编号">
<el-input v-model="form1.blfybgbh" placeholder="请输入样品编号"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="检验类别">
<el-input v-model="form1.blfylx" placeholder="请输入检验类别"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="检验日期">
<el-input v-model="form1.fsnf" placeholder="请输入检验日期"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="7">
<el-form-item label="核查受理号">
<el-input v-model="form1.cyjb" placeholder="请输入核查受理号"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="核查结论" placeholder="请输入核查结论">
<el-select v-model="form1.cyrq" placeholder="请选择核查结论">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select> </el-form-item></el-col>
<el-col :span="7">
<el-form-item label="核查日期">
<el-input v-model="form1.jcrq" placeholder="请输入核查日期"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<div class="title-box">临床试验信息查询</div>
<el-col :span="7">
<el-form-item label="试验日期">
<el-input v-model="form1.syrq" placeholder="请输入试验日期"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="临床试验名称">
<el-input v-model="form1.lcsymc" placeholder="请输入临床试验名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="7">
<el-form-item label="临床试验备案号">
<el-input v-model="form1.lcsybah" placeholder="请输入临床试验备案号"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="7">
<el-form-item label="试验核查日期">
<el-input v-model="form1.syhcrq" placeholder="请输入试验核查日期"></el-input>
</el-form-item>
</el-col>
<div class="footBox" v-show="!bthshow">
<el-button icon="el-icon-refresh-left" @click="reset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="searchList"></el-button>
</div> </div>
</el-row>
</el-collapse-item>
</el-collapse>
</el-form> </el-form>
</div> </div>
@ -114,6 +216,21 @@ export default {
zczh: "", zczh: "",
size: 10, size: 10,
current: 1, current: 1,
//
name: "",
cjxm: "",
jyslbh: "",
cybh: "",
cyjb: "",
cyrq: "",
blfybgbh: "",
blfylx: "",
fsnf: "",
lcsymc: "",
jcrq: "",
syrq: "",
syhcrq: "",
}, },
form: { form: {
size: 10, size: 10,
@ -124,13 +241,34 @@ export default {
loadA: null, loadA: null,
showCK: false, showCK: false,
src: "", src: "",
bthshow: true,
scoltitle:"展开"
}; };
}, },
mounted() { }, mounted() {
console.log(this.$route.query.value, 88888);
this.form1.name = this.$route.query.value || "";
if (this.form1.name) {
this.searchList();
} else {
this.chinaCosmetics(1);
}
},
created() { created() {
this.chinaCosmetics();
}, },
methods: { methods: {
collapsechange(e) {
console.log(e);
if (e.length == 0) {
this.bthshow = true
this.scoltitle = "展开"
} else {
this.bthshow = false
this.scoltitle = "收起"
}
console.log(this.bthshow);
},
openDC() { openDC() {
this.showCK = false; this.showCK = false;
this.loadA = Loading.service({ this.loadA = Loading.service({
@ -177,7 +315,7 @@ export default {
this.jieliuShow = false; this.jieliuShow = false;
setTimeout(() => { setTimeout(() => {
this.jieliuShow = true; this.jieliuShow = true;
}, 3000); }, 500);
} else { } else {
this.$message("点击过快"); this.$message("点击过快");
} }
@ -275,7 +413,6 @@ export default {
.tabs { .tabs {
width: 100%; width: 100%;
height: 30%;
background: #fff; background: #fff;
} }
} }
@ -331,4 +468,28 @@ export default {
line-height: 25px; line-height: 25px;
} }
} }
::v-deep .el-collapse {
border: none;
}
::v-deep .el-collapse-item__header {
padding-left: 80vw;
font-size: 20px;
font-weight: 600;
.el-collapse-item__arrow {
margin-left: 20px;
}
}
.title-box {
position: relative;
padding-left: 30px;
font-size: 16px;
font-weight: 600;
margin-bottom: 20px;
}
</style> </style>

@ -14,12 +14,10 @@ export default {
}, },
Url: `${location.origin}/ggfw-iframe/#/productinformation?type=${this.$route.query.type Url: `${location.origin}/ggfw-iframe/#/productinformation?type=${this.$route.query.type
}&flag=${this.$route.query.flag}&data=${this.$route.query.data }&flag=${this.$route.query.flag}&data=${this.$route.query.data
}&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}`, }&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}&bah=${this.$route.query.bah}`,
// url: `http://localhost:81?type=${this.$route.query.type}&flag=${ // Url: `http://localhost:81?type=${this.$route.query.type
// this.$route.query.flagyppzwh // }&flag=${this.$route.query.flag}&data=${this.$route.query.data
// }&data=${this.$route.query.data}&token=${localStorage.getItem( // }&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}&bah=${this.$route.query.bah}`,
// "MSSM-LIAONING__TOKEN"
// )}`,
}; };
}, },
methods: {}, methods: {},

@ -6,6 +6,15 @@
</div> </div>
<el-form ref="form1" :model="form1" label-width="80px"> <el-form ref="form1" :model="form1" label-width="80px">
<div style="margin-top: 10px"> <div style="margin-top: 10px">
<el-row>
<el-col :span="21">
<el-form-item label="查询条件">
<el-input v-model="form1.name" placeholder="请输入产品名称"></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
<el-row> <el-row>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="产品名称"> <el-form-item label="产品名称">
@ -26,7 +35,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div>
<el-row> <el-row>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="生产企业"> <el-form-item label="生产企业">
@ -39,7 +47,6 @@
<el-option v-for="item in jxType" :key="item" :label="item" :value="item"> <el-option v-for="item in jxType" :key="item" :label="item" :value="item">
</el-option> </el-option>
</el-select> </el-form-item></el-col> </el-select> </el-form-item></el-col>
<div class="footBox"> <div class="footBox">
<el-button icon="el-icon-refresh-left" @click="reset"></el-button> <el-button icon="el-icon-refresh-left" @click="reset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="searchList"></el-button> <el-button type="primary" icon="el-icon-search" @click="searchList"></el-button>
@ -95,7 +102,7 @@
</div> </div>
</section> </section>
<pagination :total="total" :page="form.current" :limit="form.size" @pagination="getPagination" <pagination :total="total" :page="form.current" :limit="form.size" @pagination="getPagination"
:current-page.sync="form.current"></pagination> :current-page.sync="form.current" :page-sizes="[10, 20, 50]"></pagination>
</div> </div>
</div> </div>
<el-dialog title="提示" :visible.sync="showCK" width="30%"> <el-dialog title="提示" :visible.sync="showCK" width="30%">
@ -130,6 +137,8 @@ export default {
scqy: "", scqy: "",
// //
ypfl: "", ypfl: "",
//
name: ""
}, },
form: { form: {
size: 10, size: 10,
@ -157,9 +166,17 @@ export default {
src: "", src: "",
}; };
}, },
mounted() { }, mounted() {
created() { console.log(this.$route.query.value, 88888);
this.form1.name = this.$route.query.value || "";
if (this.form1.name) {
this.searchList();
} else {
this.chinaCosmetics(1); this.chinaCosmetics(1);
}
},
created() {
}, },
methods: { methods: {
openDC() { openDC() {
@ -208,7 +225,7 @@ export default {
this.jieliuShow = false; this.jieliuShow = false;
setTimeout(() => { setTimeout(() => {
this.jieliuShow = true; this.jieliuShow = true;
}, 3000); }, 500);
} else { } else {
this.$message("点击过快"); this.$message("点击过快");
} }
@ -313,7 +330,6 @@ export default {
.tabs { .tabs {
width: 100%; width: 100%;
height: 30%;
background: #fff; background: #fff;
} }
} }

@ -6,6 +6,14 @@
</div> </div>
<el-form ref="form1" :model="form1" label-width="80px"> <el-form ref="form1" :model="form1" label-width="80px">
<div style="margin-top: 10px"> <div style="margin-top: 10px">
<el-row>
<el-col :span="21">
<el-form-item label="查询条件">
<el-input v-model="form1.name" placeholder="请输入产品名称"></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
<el-row> <el-row>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="通用名称"> <el-form-item label="通用名称">
@ -26,7 +34,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div>
<el-row> <el-row>
<el-col :span="7"> <el-col :span="7">
<div class="logformitem"> <div class="logformitem">
@ -119,6 +126,8 @@ export default {
scqy: "", scqy: "",
// //
yljgmc: "", yljgmc: "",
//
name: ""
}, },
form: { form: {
size: 10, size: 10,
@ -146,9 +155,16 @@ export default {
src: "", src: "",
}; };
}, },
mounted() { }, mounted() {
created() { console.log(this.$route.query.value, 88888);
this.form1.name = this.$route.query.value || "";
if (this.form1.name) {
this.searchList();
} else {
this.chinaCosmetics(1); this.chinaCosmetics(1);
}
},
created() {
}, },
methods: { methods: {
openDC() { openDC() {
@ -197,16 +213,17 @@ export default {
this.jieliuShow = false; this.jieliuShow = false;
setTimeout(() => { setTimeout(() => {
this.jieliuShow = true; this.jieliuShow = true;
}, 3000); }, 500);
} else { } else {
this.$message("点击过快"); this.$message("点击过快");
} }
}, },
// //
toDetail(e) { toDetail(e) {
console.log(e);
this.$router.push({ this.$router.push({
path: `/cosmeticsDetail`, path: `/cosmeticsDetail`,
query: { type: "4", data: e.id }, query: { type: "4", data: e.id, bah: e.bah },
}); });
}, },
@ -303,7 +320,6 @@ export default {
.tabs { .tabs {
width: 100%; width: 100%;
height: 30%;
background: #fff; background: #fff;
} }
} }

Loading…
Cancel
Save