From 5a4edca45d9d966560c276b6b158f2e65a96f72c Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Fri, 30 Jan 2026 16:39:34 +0800
Subject: [PATCH] 添加产品修改

---
 src/views/license/licenseInfo/components/licenseModForm.vue |   62 ++++++++++++++++++++++++------
 1 files changed, 49 insertions(+), 13 deletions(-)

diff --git a/src/views/license/licenseInfo/components/licenseModForm.vue b/src/views/license/licenseInfo/components/licenseModForm.vue
index d84f968..e4a63a5 100644
--- a/src/views/license/licenseInfo/components/licenseModForm.vue
+++ b/src/views/license/licenseInfo/components/licenseModForm.vue
@@ -229,6 +229,7 @@
                         <!--                </el-col>-->
                     </el-row>
                     <el-row>
+                        <el-col :span="8">
                         <el-form-item label="经济类型:" prop="economictype" >
                             <el-select v-model.trim="dataForm.economictype"  placeholder="" clearable class="enterpriseBasicInformation_input">
                                 <el-option
@@ -240,6 +241,13 @@
                                 </el-option>
                             </el-select>
                         </el-form-item>
+                        </el-col>
+                        <el-col :span="16">
+                            <el-form-item label="许可证编号:" prop="licensecode">
+                                <el-input v-model.trim="dataForm.licensecode" class="carrierLicense_select">
+                                </el-input>
+                            </el-form-item>
+                        </el-col>
                     </el-row>
 
                     <div v-if="roleType==='烟花爆竹批发经营' || type === 2 ? true : false">
@@ -572,6 +580,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>
@@ -714,6 +728,7 @@
                 effectdate:'',
                 noeffectdate:'',
                 economictype:'',
+                licensecode: '',
                 licenseStorage:[
 
                 ],
@@ -731,14 +746,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 +875,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 +895,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 +913,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 +935,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 +989,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 +1007,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 +1025,7 @@
                 }
             }else if(value === 4){
                 if(this.checked4 === true){
-                    this.checkMore4 = ['C级']
+                    this.checkMore4 = ['C级','D级']
                 }else{
                     this.checkMore4 = []
                 }
@@ -1008,11 +1035,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 +1199,7 @@
     height:70%;
     margin-left:10px;
 }
+.el-input-number{
+    width: 100%;
+}
 </style>

--
Gitblit v1.9.2