From ea982ec3f7877f648248e16ab8560b47f549c8f6 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期二, 23 一月 2024 15:05:21 +0800 Subject: [PATCH] 添加新删除 --- src/views/license/licenseInfo/index.vue | 44 +++++++++++++++++++++++++------------------- 1 files changed, 25 insertions(+), 19 deletions(-) diff --git a/src/views/license/licenseInfo/index.vue b/src/views/license/licenseInfo/index.vue index b9dd0f6..35b6339 100644 --- a/src/views/license/licenseInfo/index.vue +++ b/src/views/license/licenseInfo/index.vue @@ -139,7 +139,7 @@ v-if="isSupervision==='null'?false:true">删除</el-button> <br><el-button type="text" v-print="printObj1" @click="giveData(scope.row)" v-if="isSupervision==='null' && scope.row.reviewstatus === 2?true:false">打印正本(新)</el-button> - <el-button type="text" v-print="printObj2" @click="giveDetail(scope.row)" + <el-button type="text" v-print="printObj1" @click="giveDetail(scope.row)" v-if="isSupervision==='null' && scope.row.reviewstatus === 2?true:false">打印副本(新)</el-button> <el-button type="text" v-print="printObj3" @click="giveData(scope.row)" v-if="isSupervision==='null' && scope.row.reviewstatus === 2?true:false">打印正本(旧)</el-button> @@ -186,18 +186,18 @@ <el-row style="height:75px;margin-left:140px;margin-top:30px;"> <el-col :span="3" style="font-size: 27px;font-weight: bold"> <span v-if="type === 2">企业名称</span> - <span v-if="type === 3">单位名称</span> + <span v-if="type === 3 || type === 4">单位名称</span> </el-col> <el-col :span="11" style="font-size: 27px"> <span>{{name}}</span> </el-col> <el-col :span="3" style="font-size: 27px;font-weight: bold"> <span v-if="type === 2">主要负责人</span> - <span v-if="type === 3">许可类型</span> + <span v-if="type === 3 || type === 4">许可类型</span> </el-col> <el-col :span="5" style="font-size: 27px"> <span v-if="type === 2">{{mainpersonname}}</span> - <span v-if="type === 3">{{licensetype}}</span> + <span v-if="type === 3 || type === 4">{{licensetype}}</span> </el-col> <el-col :span="2" style="font-size: 27px;"> <span></span> @@ -206,20 +206,20 @@ <el-row style="height:75px;margin-left:140px;"> <el-col :span="3" style="font-size: 27px;font-weight: bold"> <span v-if="type === 2">注册地址</span> - <span v-if="type === 3">主要负责人</span> + <span v-if="type === 3 || type === 4">主要负责人</span> </el-col> <el-col :span="11" style="font-size: 27px"> <span v-if="type === 2">{{province === "新疆维吾尔自治区"? "新疆":province}}{{city}}{{district}}{{address}}</span> - <span v-if="type === 3">{{mainpersonname}}</span> + <span v-if="type === 3 || type === 4">{{mainpersonname}}</span> </el-col> <el-col :span="3" style="font-size: 27px;font-weight: bold"> <span v-if="type === 2">库区面积</span> - <span v-if="type === 3">经营方式</span> + <span v-if="type === 3 || type === 4">经营方式</span> </el-col> <el-col :span="5" style="font-size: 27px"> <span v-if="type === 2">{{area}}㎡</span> - <span v-if="type === 3">{{dealingtype}}</span> + <span v-if="type === 3 || type === 4">{{dealingtype}}</span> </el-col> <el-col :span="2" style="font-size: 27px;"> <span></span> @@ -228,21 +228,21 @@ <el-row style="height:75px;margin-left:140px;"> <el-col :span="3" style="font-size: 27px;font-weight: bold"> <span v-if="type === 2">仓储地址</span> - <span v-if="type === 3">单位地址</span> + <span v-if="type === 3 || type === 4">单位地址</span> </el-col> <el-col :span="11" style="font-size: 27px"> <span v-if="type === 2">{{storageprovince === "新疆维吾尔自治区"? "新疆":storageprovince}}{{storagecity}}{{storagedistrict}}{{storageaddress}}</span> <span - v-if="type === 3">{{province === "新疆维吾尔自治区"? "新疆":province}}{{city}}{{district}}{{address}}</span> + v-if="type === 3 || type === 4">{{province === "新疆维吾尔自治区"? "新疆":province}}{{city}}{{district}}{{address}}</span> </el-col> <el-col :span="3" style="font-size: 27px;font-weight: bold"> <span v-if="type === 2">库房面积</span> - <span v-if="type === 3">经营面积</span> + <span v-if="type === 3 || type === 4">经营面积</span> </el-col> <el-col :span="5" style="font-size: 27px"> <span v-if="type === 2">{{storagearea}}㎡</span> - <span v-if="type === 3">{{area}}㎡</span> + <span v-if="type === 3 || type === 4">{{area}}㎡</span> </el-col> <el-col :span="2" style="font-size: 27px;"> <span></span> @@ -252,12 +252,12 @@ <el-col :span="3" style="font-size: 27px;font-weight: bold"> <span>许可范围</span> </el-col> - <el-col :span="11" style="font-size: 27px;padding-right: 80px;"> + <el-col :span="11" style="font-size: 22px;padding-right: 80px;"> <span>{{dealingrange}}</span> </el-col> <el-col :span="3" style="font-size: 27px;font-weight: bold"> <span v-if="type === 2">核定药量</span> - <span v-if="type === 3">核定储量</span> + <span v-if="type === 3 || type === 4">核定储量</span> </el-col> <el-col :span="5" style="font-size: 27px;"> <span>{{powder}}kg</span> @@ -324,6 +324,9 @@ </el-row> </div> </div> + + + <div v-show="false"> <div id="printMe2"> <el-row> @@ -927,7 +930,7 @@ this.area = JSON.parse(val.licenseStorage)[0].area this.storagearea = JSON.parse(val.licenseStorage)[0].storagearea this.powder = JSON.parse(val.licenseStorage)[0].powder - } else if (val.type === 3) { + } else if (val.type === 3 || val.type === 4) { this.area = val.dealingarea this.powder = val.reservekg if (val.licensetype === 2) { @@ -935,7 +938,7 @@ } else { this.licensetype = '长期零售' } - if (val.dealingtype === 2) { + if (val.dealingtype === 2 || val.dealingtype === 4) { this.dealingtype = '专店' } else { this.dealingtype = '专柜' @@ -978,6 +981,7 @@ }, //打印正本 giveData(val) { + console.log(val) this.code = val.code this.name = val.name this.mainpersonname = val.mainpersonname @@ -989,15 +993,17 @@ this.area = JSON.parse(val.licenseStorage)[0].area this.storagearea = JSON.parse(val.licenseStorage)[0].storagearea this.powder = JSON.parse(val.licenseStorage)[0].powder - } else if (val.type === 3) { + } else if (val.type === 3 || val.type === 4) { this.area = val.dealingarea this.powder = val.reservekg if (val.licensetype === 2) { this.licensetype = '临时' - } else { + } else if(val.licensetype === 3){ this.licensetype = '长期' + }else{ + this.licensetype = '短期' } - if (val.dealingtype === 2) { + if (val.dealingtype === 2 || val.dealingtype === 4) { this.dealingtype = '专店' } else { this.dealingtype = '专柜' -- Gitblit v1.9.2