From 34ec919649adfefeecd0418284dd7b02e9ed49b8 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Wed, 23 Apr 2025 15:42:17 +0800
Subject: [PATCH] 添加批发仓库监测预警
---
src/views/license/licenseInfo/components/licenseModForm.vue | 53 ++++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 40 insertions(+), 13 deletions(-)
diff --git a/src/views/license/licenseInfo/components/licenseModForm.vue b/src/views/license/licenseInfo/components/licenseModForm.vue
index d84f968..492b323 100644
--- a/src/views/license/licenseInfo/components/licenseModForm.vue
+++ b/src/views/license/licenseInfo/components/licenseModForm.vue
@@ -572,6 +572,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>
@@ -731,14 +737,16 @@
checked4:false,
checked5:false,
checked6:false,
+ checked7:false,
checkMore1:[],
checkMore2:[],
checkMore3:[],
checkMore4:[],
checkMore5:[],
checkMore6:[],
- checkList1:['C级'],
- checkList2:['D级'],
+ checkMore7:[],
+ checkList1:['C级','D级'],
+ checkList2:['C级','D级'],
checkMoreList:['C级','D级'],
storage1:{
id:null,
@@ -858,12 +866,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(this.dataForm.dealingrange.length > 10){
@@ -876,12 +886,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
}
},
async submit(value){
@@ -892,13 +904,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)
@@ -914,8 +926,8 @@
parseError({error: '请填写许可类型', vm: this})
return
}
- if (this.getByteLen(fullAddress) > 90 || this.getByteLen(fullStorageAddress) > 90){
- parseError({error: '注册地址或仓储地址的省市区详细地址总和不能超过50个字,请删减', vm: this})
+ if (this.getByteLen(fullAddress) > 390 || this.getByteLen(fullStorageAddress) > 390){
+ parseError({error: '注册地址或仓储地址的省市区详细地址总和不能超过200个字,请删减', vm: this})
} else {
let res = await modLicense(this.dataForm)
if(res.data.code === '200'){
@@ -968,11 +980,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
}
}
},
@@ -980,13 +998,13 @@
justifySingle(value){
if(value === 1){
if(this.checked1 === true){
- this.checkMore1 = ['C级']
+ this.checkMore1 = ['C级','D级']
}else{
this.checkMore1 = []
}
}else if(value ===2){
if(this.checked2 === true){
- this.checkMore2 = ['D级']
+ this.checkMore2 = ['C级','D级']
}else{
this.checkMore2 = []
}
@@ -998,7 +1016,7 @@
}
}else if(value === 4){
if(this.checked4 === true){
- this.checkMore4 = ['C级']
+ this.checkMore4 = ['C级','D级']
}else{
this.checkMore4 = []
}
@@ -1008,11 +1026,17 @@
}else{
this.checkMore5 = []
}
- }else{
+ }else if(value === 6){
if(this.checked6 === true){
- this.checkMore6 = ['D级']
+ this.checkMore6 = ['C级','D级']
}else{
this.checkMore6 = []
+ }
+ }else{
+ if(this.checked7 === true){
+ this.checkMore7 = ['C级','D级']
+ }else{
+ this.checkMore7 = []
}
}
},
@@ -1166,4 +1190,7 @@
height:70%;
margin-left:10px;
}
+.el-input-number{
+ width: 100%;
+}
</style>
--
Gitblit v1.9.2