添加项目

master
李劲龙 10 months ago
parent 33638cb2ca
commit e8f69d122b

@ -6,8 +6,9 @@ ENV = 'development'
# 若依管理系统/开发环境
# VUE_APP_BASE_API = https://dev-mssm-liaoning.lesdev.cn/ggfw-api/
VUE_APP_BASE_API = http://192.168.0.109:9023/ggfw-api
# VUE_APP_BASE_API = https://dev-mssm-liaoning.lesdev.cn/ggfw-api
# VUE_APP_BASE_API = http://192.168.0.107:9023/ggfw-api
VUE_APP_BASE_API = https://dev-mssm-liaoning.lesdev.cn/ggfw-api
# VUE_APP_BASE_API = http://172.24.21.7/api/ggfw/ggfw-api
#单点登录
# 本地

@ -45,7 +45,9 @@ export default {
const data = params.get("data");
const token = params.get("token");
const leixing = params.get("leixing") || "";
const bah = params.get("bah") || "";
const bah = params.get("bah");
const qita = params.get("qita") || "";
let obj = {
type,
@ -53,7 +55,8 @@ export default {
data,
token,
leixing,
bah
bah,
qita
}
console.log(888, obj);
if (
@ -76,7 +79,7 @@ export default {
localStorage.setItem("MSSM-LIAONING__TOKEN", obj.token);
this.$store.commit("app/URLChange", obj);
}
// var obj = {};
// window.addEventListener("message", function (event) {
// console.log(888, event);
@ -104,7 +107,7 @@ export default {
cd /usr/share/nginx/html/ggfw-iframe 移动到文件夹下
unzip ggfw-iframe.zip -d . 解压
rm ./ggfw-iframe.zip 删除当前目录下的压缩包 弹出确定删除 y 并回车
@ -150,4 +153,27 @@ export default {
font-size: vb(16) !important;
}
}</style>
}
.el-select-dropdown__item {
font-size: vb(16) !important;
}
.el-tag--mini {
font-size: vb(14) !important;
padding: vh(20) vw(10);
color: #000 !important;
}
.el-table--scrollable-y .el-table__body-wrapper {
overflow-y: auto;
}
.el-table {
&::-webkit-scrollbar {
width: 4px !important;
height: 4px !important;
border-radius: 4px !important;
}
}
</style>

@ -56,5 +56,12 @@ export default {
url: `/pharmaceuticals/entrustedEnter/${e}`,
method: "get",
})
},
//通过注册证编号查询牙膏
hzpToothpaste(e) {
return request({
url: `/pharmaceuticals/hzpToothpaste/${e}`,
method: "get",
})
}
}

@ -18,10 +18,10 @@ axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分
// !本地使用
// baseURL: process.env.VUE_APP_BASE_API,
baseURL: process.env.VUE_APP_BASE_API,
// !外地使用
baseURL: location.origin + process.env.VUE_APP_URL,
// baseURL: location.origin + process.env.VUE_APP_URL,
// 超时
timeout: 60000,
});

@ -31,7 +31,7 @@
</div> -->
<block-header title="查询结果">
<div class="tables">
<el-table :data="tableData" style="width: 100%" :cell-style="columnStyle" v-loading="loading" border>
<el-table :data="tableData" height="430" :cell-style="columnStyle" v-loading="loading" border >
<el-table-column type="index" header-align="center" label="序号" width="80">
</el-table-column>
<el-table-column prop="sampleType" header-align="center" label="抽样级别">
@ -52,7 +52,6 @@
<el-table-column prop="sampleDate" label="抽样日期" header-align="center">
</el-table-column>
<el-table-column label="操作" header-align="center" width="100">
<template slot-scope="scope">
<div class="button">
<el-button size="mini" class="informant-btn" plain type="primary"
@ -143,7 +142,7 @@ export default {
label: "合格",
},
],
tableData: [],
tableData: [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
loading: false,
action: 1,
currentComponent: "basicInfo",
@ -490,7 +489,7 @@ export default {
}),
},
created() {
this.getDAList();
this.getDAList();
},
methods: {
inquire() {
@ -540,10 +539,10 @@ export default {
},
//
async listyp() {
// this.form1.approvalNumber = this.$store.state.app.urlA.data
this.form1.approvalNumber = this.$store.state.app.urlA.data
// this.form1.approvalNumber = "G2018000945"
// this.form1.approvalNumber = "H21021787"
this.form1.approvalNumber = "8"
// this.form1.approvalNumber = "8"
// 2 1
if (this.urlA.type == 2) this.form1.type = 1
if (this.urlA.type == 1) this.form1.type = 2
@ -681,8 +680,11 @@ export default {
.pzChouyang {
// overflow-y: scroll;
overflow-y: scroll;
.tables {
.button {
display: flex;
justify-content: center;

@ -1086,6 +1086,99 @@ export default {
{ id: 71, label: " 防晒类产品PA值", value: "", data: "" },
{ id: 72, label: " 防晒类产品PA值", value: "", data: "" },
],
yagaoList: [
{
id: 1,
label: "产品名称(中文)",
value: "",
data: "cpmc",
},
{
id: 3,
label: "备案号",
value: "",
data: "bah",
},
{
id: 31,
label: "生产企业名称",
value: "",
data: "scqymc",
},
{
id: 15,
label: "注册人",
value: "",
data: "qymc",
},
{
id: 4,
label: "注册人所在市",
value: "",
data: "qyszshi",
},
{
id: 6,
label: "境内责任人名称",
value: "",
data: "jnzrr",
},
{
id: 7,
label: "生产企业统一社会信用代码",
value: "",
data: "tyshxydmSc",
},
{
id: 8,
label: "注册人/备案人统一社会信用代码",
value: "",
data: "tyshxydm",
},
{
id: 9,
label: "注册证号",
value: "",
data: "xkzbh",
},
{
id: 10,
label: "申请时间",
value: "",
data: "sqsj",
},
{
id: 11,
label: "使用人群",
value: "",
data: "syrq",
},
{
id: 12,
label: "备注",
value: "",
data: "",
},
{
id: 13,
label: "产品的执行标准",
value: "-",
data: "",
},
{
id: 14,
label: "状态",
value: "",
data: "status",
},
{
id: 14,
label: "生产状态",
value: "",
data: "sczt",
},
],
// /
descriptionsFourmale: [
{
@ -1668,6 +1761,9 @@ export default {
} else if (this.obj.type == "5") {
//5
this.yuanliao(this.obj.data);
} else if (this.obj.type == "yagao") {
//yagao
this.yagao(this.obj.data);
}
},
mounted() { this.huoqulist(0) },
@ -1763,7 +1859,6 @@ export default {
},
//
async yuanliao(e) {
console.log("啊哈", e);
this.loading = true;
let msg1 = await this.$api.cosmetics.vRdgYpwhGxwzgetYlypz(e);
console.log(msg1);
@ -1823,7 +1918,7 @@ export default {
console.log(msg1, 798798);
this.$emit("getCPName", {
key: "进口特殊化妆品名称",
value: msg1.data.zczh,
value: msg1.data.cpmc,
code: msg1.data.bah,
name: msg1.data.cpmc,
type: 6
@ -1846,6 +1941,22 @@ export default {
this.list = this.filter(msg1.data, this.descriptionsFourmale);
this.loading = false;
},
//
async yagao(e) {
this.loading = true;
let msg1 = await this.$api.cosmetics.hzpToothpaste(e);
console.log(msg1, 798798);
this.$emit("getCPName", {
key: "牙膏产品名称",
value: msg1.data.cpmc,
code: msg1.data.bah,
name: msg1.data.cpmc,
type: "牙膏"
});
this.list = this.filter(msg1.data, this.yagaoList);
this.loading = false;
},
//
filter(A, B) {
//

@ -8,17 +8,17 @@
<span class="Name">{{ pruduct.value || "暂无" }}</span>
</div>
<div class="drug-tag">
<el-tag :key="index" v-for="(tag, index) in dynamicTags" :closable="urlA.leixing != 'ggfw'" :disable-transitions="false"
@close="handleClose(tag)">
<el-tag :key="index" v-for="(tag, index) in dynamicTags" :closable="urlA.leixing != 'ggfw'"
:disable-transitions="false" @close="handleClose(tag)">
{{ tag }}
</el-tag>
<el-button class="button-new-tag" size="small" @click="showInput"
v-if="urlA.leixing != 'ggfw'">+添加标签</el-button>
</div>
</div>
<el-dialog title="编辑产品标签" :visible.sync="inputVisible" width="30%">
<el-select class="input-new-tag" v-model="inputValue" ref="saveTagInput" size="small" @change="">
<el-dialog title="编辑产品标签" :visible.sync="inputVisible" width="40%">
<el-select class="input-new-tag" v-model="inputValue" ref="saveTagInput" size="small" @change="" multiple
clearable @remove-tag="handleCloseTow">
<el-option v-for="item in options" :key="item" :label="item" :value="item">
</el-option>
</el-select>
@ -39,52 +39,52 @@
<div class="content-tabs">
<div class="tabs" ref="tabs">
<div class="tab" @click="actionTab(1, $event)" :class="action == 1 ? 'actionTab' : ''"
v-show="urlA.type != 4">
v-show="urlA.type != 4 || urlA.type == 'yagao'">
<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="" />
? `${require('@/assets/images/home/icon1-1@2x.png')}`
: `${require('@/assets/images/home/icon1-2@2x.png')}`
" alt="" />
<span>基本信息</span>
</div>
<div class="tab" @click="actionTab(2, $event)" :class="action == 2 ? 'actionTab' : ''"
v-show="urlA.type != 4 && pruduct.type != '原料药'">
v-show="urlA.type != 4 && pruduct.type != '原料药'&& urlA.type != 'yagao'">
<img :src="action == 2
? `${require('@/assets/images/home/icon2-1@2x.png')}`
: `${require('@/assets/images/home/icon2-2@2x.png')}`
" alt="" />
? `${require('@/assets/images/home/icon2-1@2x.png')}`
: `${require('@/assets/images/home/icon2-2@2x.png')}`
" alt="" />
<span>抽样信息</span>
</div>
<div class="tab" @click="actionTab(3, $event)" :class="action == 3 ? 'actionTab' : ''"
v-show="urlA.type != 4 && pruduct.type != '原料药'">
v-show="urlA.type != 4 && pruduct.type != '原料药'&& urlA.type != 'yagao'">
<img :src="action == 3
? `${require('@/assets/images/home/icon5-1@2x.png')}`
: `${require('@/assets/images/home/icon5-2@2x.png')}`
" alt="" />
? `${require('@/assets/images/home/icon5-1@2x.png')}`
: `${require('@/assets/images/home/icon5-2@2x.png')}`
" alt="" />
<span>不良反应</span>
</div>
<div class="tab" @click="actionTab(4, $event)" :class="action == 4 ? 'actionTab' : ''"
v-show="urlA.type != 1 && urlA.type != 4 && pruduct.type != '原料药'">
v-show="urlA.type != 1 && urlA.type != 4 && pruduct.type != '原料药'&& urlA.type != 'yagao'">
<img :src="action == 4
? `${require('@/assets/images/home/icon1-1@2x.png')}`
: `${require('@/assets/images/home/icon1-2@2x.png')}`
" alt="" />
? `${require('@/assets/images/home/icon1-1@2x.png')}`
: `${require('@/assets/images/home/icon1-2@2x.png')}`
" alt="" />
<span>召回信息</span>
</div>
<div class="tab" @click="actionTab(6, $event)" :class="action == 6 ? 'actionTab' : ''"
v-show="urlA.type == 4">
<img :class="action !== 6 ? 'actionImage' : ''" :src="action == 6
? `${require('@/assets/images/home/icon1-1@2x.png')}`
: `${require('@/assets/images/home/icon1-2@2x.png')}`
" alt="" />
? `${require('@/assets/images/home/icon1-1@2x.png')}`
: `${require('@/assets/images/home/icon1-2@2x.png')}`
" alt="" />
<span>基本信息</span>
</div>
<div class="tab" @click="actionTab(7, $event)" :class="action == 7 ? 'actionTab' : ''"
v-show="urlA.type == 4">
v-show="urlA.type == 4&& urlA.type != 'yagao'">
<img :src="action == 7
? `${require('@/assets/images/home/icon2-1@2x.png')}`
: `${require('@/assets/images/home/icon2-2@2x.png')}`
" alt="" />
? `${require('@/assets/images/home/icon2-1@2x.png')}`
: `${require('@/assets/images/home/icon2-2@2x.png')}`
" alt="" />
<span>变更记录</span>
</div>
<!-- <div class="tab" @click="actionTab(5, $event)" :class="action == 5 ? 'actionTab' : ''" v-show="urlA.type == 3">
@ -183,11 +183,11 @@
<span>产品名称命名依据</span>
</div> -->
<div class="tab" @click="actionTab(19, $event)" :class="action == 19 ? 'actionTab' : ''"
v-show="urlA.type != 4 && urlA.leixing != 'ggfw' && pruduct.type != 7 && pruduct.type != '原料药'">
v-show="urlA.type != 4 && urlA.leixing != 'ggfw' && pruduct.type != 7 && pruduct.type != '原料药'&& urlA.type != 'yagao'">
<img :src="action == 19
? `${require('@/assets/images/home/icon1-1@2x.png')}`
: `${require('@/assets/images/home/icon1-2@2x.png')}`
" alt="" />
? `${require('@/assets/images/home/icon1-1@2x.png')}`
: `${require('@/assets/images/home/icon1-2@2x.png')}`
" alt="" />
<span>产品画像</span>
</div>
</div>
@ -316,12 +316,15 @@ export default {
this.currentComponent = "zhongyao"
}
let obj = {
1: "yp",
2: "hzp",
3: "labelTypeYLQX"
1: "labelTypeHZP",
"yagao": "labelTypeHZP",
2: "labelTypeYP",
3: "labelTypeYLQX",
4: "labelTypeYP",
5: "labelTypeYP",
}
this.options = []
this.$api.frimCenter.getDicts({ dict: obj[this.urlA.type] }).then(res => {
this.$api.frimCenter.getDicts({ dict: obj[this.urlA.type] || "zw" }).then(res => {
console.log(798, res);
if (res.code == 200) {
res.data.map(element => {
@ -335,13 +338,36 @@ export default {
methods: {
//
getDicAndList() {
let mystring = ""
this.dynamicTags = []
this.$api.frimCenter.findBySoleInfo({ soleInfo: this.urlA.data }).then(res => {
console.log(890, res);
this.inputValue = []
let datamy = ""
if (this.urlA.type == "5" || this.urlA.type == "4") {
if (this.urlA.bah.substr(-2) === "#/") {
console.log("后两位是 '#/'");
let bah = this.urlA.bah.slice(0, -2); // 使 slice()
console.log("删除后两位后的字符串是: " + bah);
datamy = bah
} else {
console.log("后两位不是 '#/'");
datamy = this.urlA.bah
}
} else {
datamy = this.urlA.data
}
this.$api.frimCenter.findBySoleInfo({ soleInfo: datamy }).then(res => {
if (res.code == 200) {
console.log(res);
res.data.map(element => {
this.dynamicTags.push(element.label)
// mystring = element.label
// var arr = mystring.split(',');
// arr.map((item) => {
// this.dynamicTags.push(item)
// })
});
this.inputValue = this.dynamicTags
}
})
},
@ -353,15 +379,10 @@ export default {
},
//
handleClose(tag) {
handleCloseTow(tag) {
console.log(this.urlA);
this.$confirm('是否删除该标签?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
// this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
// localStorage.setItem("dynamicTags", JSON.stringify(this.dynamicTags))
console.log(tag);
if (this.dynamicTags.includes(tag)) {
let obj = {
label: tag,
soleInfo: this.urlA.data,
@ -376,13 +397,64 @@ export default {
});
}
})
}
},
handleClose(tag) {
console.log(this.urlA);
console.log(tag);
if (this.dynamicTags.includes(tag)) {
this.$confirm('是否删除该标签?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
// this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
// localStorage.setItem("dynamicTags", JSON.stringify(this.dynamicTags))
let obj = {}
if (this.urlA.type == "5" || this.urlA.type == "4") {
if (this.urlA.bah.substr(-2) === "#/") {
console.log("后两位是 '#/'");
let bah = this.urlA.bah.slice(0, -2); // 使 slice()
console.log("删除后两位后的字符串是: " + bah);
obj = {
label: tag,
soleInfo: bah,
}
} else {
console.log("后两位不是 '#/'");
obj = {
label: tag,
soleInfo: this.urlA.bah,
}
}
} else {
obj = {
label: tag,
soleInfo: this.urlA.data,
}
}
this.$api.frimCenter.deleteLabel(obj).then(res => {
console.log(101010, res);
if (res.code == 200) {
this.getDicAndList()
this.$message({
type: 'success',
message: '删除成功!'
});
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
});
}
},
//
showInput() {
@ -395,29 +467,65 @@ export default {
handleInputConfirm() {
console.log(123);
console.log(this.inputValue);
let inputValue = this.inputValue;
if (inputValue) {
if (this.dynamicTags.indexOf(inputValue) == -1) {
let obj = {
label: inputValue,
soleInfo: this.urlA.data,
let this_ = this;
function add(inputValue) {
return new Promise((resolve, reject) => {
let obj = {}
if (this_.urlA.type == "5" || this_.urlA.type == "4") {
if (this_.urlA.bah.substr(-2) === "#/") {
console.log("后两位是 '#/'");
let bah = this_.urlA.bah.slice(0, -2); // 使 slice()
console.log("删除后两位后的字符串是: " + bah);
obj = {
label: inputValue,
soleInfo: bah,
}
} else {
console.log("后两位不是 '#/'");
obj = {
label: inputValue,
soleInfo: this_.urlA.bah,
}
}
} else {
obj = {
label: inputValue,
soleInfo: this_.urlA.data,
}
}
this.$api.frimCenter.groductsLabel(obj).then(res => {
console.log(obj);
this_.$api.frimCenter.groductsLabel(obj).then(res => {
console.log(101010, res);
if (res.code == 200) {
this.getDicAndList()
this.inputVisible = false;
this.inputValue = '';
resolve(true)
}
})
}else{
this.$message({
type: 'info',
message: '请勿重复添加标签'
});
})
}
Promise.all(this.inputValue.map(inputValue => {
if (!this.dynamicTags.includes(inputValue)) {
return add(inputValue)
}
})).then(responses => {
//
console.log('所有接口都成功了', responses);
this.getDicAndList()
this.inputValue = []
this.inputVisible = false
})
.catch(error => {
//
console.error('其中一个接口失败了', error);
this.inputValue = []
this.inputVisible = false
});
}
},
//
@ -685,7 +793,7 @@ export default {
height: 100%;
background: rgba(255, 255, 255, 0.9);
box-shadow: 0px 0px vw(12) 0px rgba(194, 212, 226, 0.64);
border-radius: vw(10) vw(10) 0 0;
border-radius: vw(10) vw(10) 0 0;
.drugInfo-top {
display: flex;
@ -719,8 +827,10 @@ export default {
}
.drug-tag {
width: vw(1000);
display: flex;
align-items: center;
flex-wrap: wrap;
margin-left: vw(10);
.input-new-tag {
@ -728,6 +838,7 @@ export default {
}
span {
margin: vh(10) vw(10);
margin-right: vw(10);
}
@ -824,4 +935,26 @@ export default {
::v-deep .el-select {
width: 100%;
}
::v-deep .el-dialog__title {
font-size: vb(16);
font-weight: bold;
}
::v-deep .el-dialog__headerbtn .el-dialog__close {
font-size: vb(14);
font-weight: bold;
color: #000;
margin-top: vh(-8);
}
::v-deep .el-dialog__body {
.el-input__inner {
height: vh(55);
font-size: vb(16);
}
}
/* 修改滚动条样式 .title_state为div盒子*/
</style>

@ -112,7 +112,6 @@ export default {
} else {
console.log("后两位不是 '#/'");
this.pagelist.filingNum = this.urlA.bah
}
let reque = await this.$api.frimCenter.deasCorpTcmpFilingChangeHis(this.pagelist)
console.log(reque);

Loading…
Cancel
Save