From 1cf4ed5237b2ed61504cdd2f7c567a86d82fb6fd Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期五, 29 十二月 2023 16:09:58 +0800 Subject: [PATCH] 添加状态 --- src/views/license/licenseInfo/components/licenseInfoForm.vue | 36 +++++++++++++++++++++++++++++++----- 1 files changed, 31 insertions(+), 5 deletions(-) diff --git a/src/views/license/licenseInfo/components/licenseInfoForm.vue b/src/views/license/licenseInfo/components/licenseInfoForm.vue index fbacdc3..1977932 100644 --- a/src/views/license/licenseInfo/components/licenseInfoForm.vue +++ b/src/views/license/licenseInfo/components/licenseInfoForm.vue @@ -575,6 +575,12 @@ <el-checkbox v-for="item in checkList2" :label="item" :key="item">{{item}}</el-checkbox> </el-checkbox-group> </el-col> + <el-col :span="8"> + <el-checkbox v-model="checked7" @change="justifySingle(7)">升空类</el-checkbox> + <el-checkbox-group v-model="checkMore7" style="display:inline-block;" @change="justify(7)"> + <el-checkbox v-for="item in checkList2" :label="item" :key="item">{{item}}</el-checkbox> + </el-checkbox-group> + </el-col> </el-row> </el-form-item> </el-col> @@ -726,12 +732,14 @@ checked4:false, checked5:false, checked6:false, + checked7:false, checkMore1:[], checkMore2:[], checkMore3:[], checkMore4:[], checkMore5:[], checkMore6:[], + checkMore7:[], checkList1:['C级','D级'], checkList2:['C级','D级'], checkMoreList:['C级','D级'], @@ -874,12 +882,14 @@ this.checked4 = false this.checked5 = false this.checked6 = false + this.checked7 = false this.checkMore1=[] this.checkMore2=[] this.checkMore3=[] this.checkMore4=[] this.checkMore5=[] this.checkMore6=[] + this.checkMore7=[] this.id=null this.area=null this.firststoragenum=null @@ -914,12 +924,14 @@ this.checked4 = dealingrange[3].checked4 this.checked5 = dealingrange[4].checked5 this.checked6 = dealingrange[5].checked6 + this.checked7 = dealingrange[6].checked7 this.checkMore1=dealingrange[0].checkMore1 this.checkMore2=dealingrange[1].checkMore2 this.checkMore3=dealingrange[2].checkMore3 this.checkMore4=dealingrange[3].checkMore4 this.checkMore5=dealingrange[4].checkMore5 this.checkMore6=dealingrange[5].checkMore6 + this.checkMore7=dealingrange[6].checkMore7 }else if(roleType === '烟花爆竹零售经营(长期)' || roleType === '烟花爆竹零售经营(短期)' || (roleType === 'null'&& this.dataForm.type ===3)){ this.type = 3 if(value.dealingrange.length > 10){ @@ -934,12 +946,14 @@ this.checked4 = dealingrange[3].checked4 this.checked5 = dealingrange[4].checked5 this.checked6 = dealingrange[5].checked6 + this.checked7 = dealingrange[6].checked7 this.checkMore1=dealingrange[0].checkMore1 this.checkMore2=dealingrange[1].checkMore2 this.checkMore3=dealingrange[2].checkMore3 this.checkMore4=dealingrange[3].checkMore4 this.checkMore5=dealingrange[4].checkMore5 this.checkMore6=dealingrange[5].checkMore6 + this.checkMore7=dealingrange[6].checkMore7 } } }, @@ -951,13 +965,13 @@ this.dataForm.licenseStorage.push(storageOne) this.dataForm.licenseStorage.push(storageTwo) this.dataForm.licenseStorage.push(storageThree) - this.dataForm.dealingrange = JSON.stringify([{checked1:this.checked1,checkMore1:this.checkMore1},{checked2:this.checked2,checkMore2:this.checkMore2},{checked3:this.checked3,checkMore3:this.checkMore3},{checked4:this.checked4,checkMore4:this.checkMore4},{checked5:this.checked5,checkMore5:this.checkMore5},{checked6:this.checked6,checkMore6:this.checkMore6},]) + this.dataForm.dealingrange = JSON.stringify([{checked1:this.checked1,checkMore1:this.checkMore1},{checked2:this.checked2,checkMore2:this.checkMore2},{checked3:this.checked3,checkMore3:this.checkMore3},{checked4:this.checked4,checkMore4:this.checkMore4},{checked5:this.checked5,checkMore5:this.checkMore5},{checked6:this.checked6,checkMore6:this.checkMore6},{checked7:this.checked7,checkMore7:this.checkMore7}]) this.dataForm.licenseStorage = JSON.stringify(this.dataForm.licenseStorage) }else if(this.dataForm.type === 2){ this.dataForm.licenseStorage = JSON.stringify([{id:this.id,area:this.area,storagenum:this.storagenum,storagearea:this.storagearea,powder:this.powder,firststoragenum:this.firststoragenum,firststoragearea:this.firststoragearea,firstpowder:this.firstpowder,thirdstoragenum:this.thirdstoragenum,thirdstoragearea:this.thirdstoragearea,thirdpowder:this.thirdpowder,type:3}]) - this.dataForm.dealingrange = JSON.stringify([{checked1:this.checked1,checkMore1:this.checkMore1},{checked2:this.checked2,checkMore2:this.checkMore2},{checked3:this.checked3,checkMore3:this.checkMore3},{checked4:this.checked4,checkMore4:this.checkMore4},{checked5:this.checked5,checkMore5:this.checkMore5},{checked6:this.checked6,checkMore6:this.checkMore6},]) + this.dataForm.dealingrange = JSON.stringify([{checked1:this.checked1,checkMore1:this.checkMore1},{checked2:this.checked2,checkMore2:this.checkMore2},{checked3:this.checked3,checkMore3:this.checkMore3},{checked4:this.checked4,checkMore4:this.checkMore4},{checked5:this.checked5,checkMore5:this.checkMore5},{checked6:this.checked6,checkMore6:this.checkMore6},{checked7:this.checked7,checkMore7:this.checkMore7}]) }else{ - this.dataForm.dealingrange = JSON.stringify([{checked1:this.checked1,checkMore1:this.checkMore1},{checked2:this.checked2,checkMore2:this.checkMore2},{checked3:this.checked3,checkMore3:this.checkMore3},{checked4:this.checked4,checkMore4:this.checkMore4},{checked5:this.checked5,checkMore5:this.checkMore5},{checked6:this.checked6,checkMore6:this.checkMore6},]) + this.dataForm.dealingrange = JSON.stringify([{checked1:this.checked1,checkMore1:this.checkMore1},{checked2:this.checked2,checkMore2:this.checkMore2},{checked3:this.checked3,checkMore3:this.checkMore3},{checked4:this.checked4,checkMore4:this.checkMore4},{checked5:this.checked5,checkMore5:this.checkMore5},{checked6:this.checked6,checkMore6:this.checkMore6},{checked7:this.checked7,checkMore7:this.checkMore7}]) this.dataForm.licenseStorage = JSON.stringify([]) } let fullAddress = (this.dataForm.province ==='新疆维吾尔自治区'? '新疆': this.dataForm.province) @@ -1076,11 +1090,17 @@ }else{ this.checked5 = false } - }else{ + }else if(value === 6){ if(this.checkMore6.length !== 0){ this.checked6 = true }else{ this.checked6 = false + } + }else{ + if(this.checkMore7.length !== 0){ + this.checked7 = true + }else{ + this.checked7 = false } } }, @@ -1116,12 +1136,18 @@ }else{ this.checkMore5 = [] } - }else{ + }else if(value === 6){ if(this.checked6 === true){ this.checkMore6 = ['C级','D级'] }else{ this.checkMore6 = [] } + }else{ + if(this.checked7 === true){ + this.checkMore7 = ['C级','D级'] + }else{ + this.checkMore7 = [] + } } }, -- Gitblit v1.9.2