From b6a27b9ca71d636a1598751f8114c36a5d7007fe Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期一, 15 四月 2024 16:52:36 +0800 Subject: [PATCH] 修改 --- src/views/license/licenseInfo/index.vue | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/views/license/licenseInfo/index.vue b/src/views/license/licenseInfo/index.vue index 059d9b6..37ebacd 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> @@ -930,15 +930,15 @@ 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 { + if (val.licensetype === 1) { this.licensetype = '长期零售' + } else{ + this.licensetype = '短期零售' } - if (val.dealingtype === 2) { + if (val.dealingtype === 2 || val.dealingtype === 4) { this.dealingtype = '专店' } else { this.dealingtype = '专柜' @@ -981,6 +981,7 @@ }, //打印正本 giveData(val) { + console.log(val) this.code = val.code this.name = val.name this.mainpersonname = val.mainpersonname @@ -995,11 +996,9 @@ } else if (val.type === 3 || val.type === 4) { this.area = val.dealingarea this.powder = val.reservekg - if (val.licensetype === 2) { - this.licensetype = '临时' - } else if(val.licensetype === 3){ + if (val.licensetype === 1) { this.licensetype = '长期' - }else{ + } else{ this.licensetype = '短期' } if (val.dealingtype === 2 || val.dealingtype === 4) { -- Gitblit v1.9.2