马宇豪
2024-04-15 b6a27b9ca71d636a1598751f8114c36a5d7007fe
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) {