nanMing vor 2 Jahren
Ursprung
Commit
997f2be5f0

+ 95 - 95
ruoyi-ui/src/views/business/fwjggl/bn/index.vue

@@ -93,14 +93,6 @@
             @click="handleBlLs(scope.row)">
             变更历史
           </el-button>
-          <!--<el-button-->
-          <!--size="mini"-->
-          <!--type="text"-->
-          <!--icon="el-icon-delete"-->
-          <!--@click="handleDelete(scope.row,scope.$index)"-->
-          <!--v-hasPermi="['business:bn:remove']"-->
-          <!--&gt;删除-->
-          <!--</el-button>-->
           <el-button size="mini" type="text" icon="el-icon-edit" v-hasPermi="['business:bn:query']"
             v-if="['02', '03'].includes(scope.row.bnLzzt)" @click="handleDy(scope.row)">
             打印
@@ -213,25 +205,25 @@
             <div class="formBox">
               <div class="formFlex">
                 <el-form-item label="全托床位数量(个)" prop="qtcws" class="formWidth">
-                  <number v-model.sync="form.qtcws" placeholder="全托床位数量" :min="0" :max="999999" :precision="0" />
+                  <number v-model="form.qtcws" placeholder="全托床位数量" :min="0" :max="999999" :precision="0" />
                 </el-form-item>
                 <el-form-item label="日托床位数量(个)" prop="rtcws" class="formWidth">
-                  <number v-model.sync="form.rtcws" placeholder="日托床位数量" :min="0" :max="999999" :precision="0" />
+                  <number v-model="form.rtcws" placeholder="日托床位数量" :min="0" :max="999999" :precision="0" />
                 </el-form-item>
                 <el-form-item label="床位总数(个)" prop="cwzs" class="formWidth">
-                  <number v-model.sync="form.cwzs" placeholder="床位总数" :disabled="true" :min="0" :max="999999"
+                  <number v-model="form.cwzs" placeholder="床位总数" :disabled="true" :min="0" :max="999999"
                     :precision="0" />
                 </el-form-item>
               </div>
               <div class="formFlex">
                 <el-form-item label="护理型床位数量(个)" prop="hlxcws" class="formWidth">
-                  <number v-model.sync="form.hlxcws" placeholder="护理型床位数量" :min="0" :max="999999" :precision="0" />
+                  <number v-model="form.hlxcws" placeholder="护理型床位数量" :min="0" :max="999999" :precision="0" />
                 </el-form-item>
                 <el-form-item label="建筑面积(㎡)" prop="jzmj" class="formWidth">
-                  <number v-model.sync="form.jzmj" placeholder="建筑面积" :min="0" :max="99999999" :precision="2" />
+                  <number v-model="form.jzmj" placeholder="建筑面积" :min="0" :max="99999999" :precision="2" />
                 </el-form-item>
                 <el-form-item label="占地面积(㎡)" prop="zdmj" class="formWidth">
-                  <number v-model.sync="form.zdmj" placeholder="占地面积" :min="0" :max="99999999" :precision="2" />
+                  <number v-model="form.zdmj" placeholder="占地面积" :min="0" :max="99999999" :precision="2" />
                 </el-form-item>
               </div>
               <div class="formFlex">
@@ -660,11 +652,12 @@
 </template>
 
 <script>
-import { addBn, delBn, getBn, getChangeBn, listBn,listBnGroup, updateBn } from '@/api/business/fwjggl/bn'
+import { addBn, delBn, getBn, getChangeBn, listBn, updateBn } from '@/api/business/fwjggl/bn'
 import { chineseOne, idCard, Mobile } from '@/utils/regular'
 import { Constant } from '@/utils/constant'
 import { decryptData_ECB, decryptRowData_ECB, decrypt_ECB } from "@/api/tool/sm4";
 
+
 export default {
   name: 'Bn',
   dicts: ['CH010', 'CZ035', 'XZ036', 'CH052', 'CZ005', 'CZ026', 'CZ004', 'C0038', 'C0015', 'CH012', 'CH007', 'CH009', 'XZ065', 'XZ070'],
@@ -674,6 +667,7 @@ export default {
         emitPath: false,
         checkStrictly: true
       },
+      decodeStr:{},
       // 遮罩层
       loading: true,
       submitFormLoading: false,
@@ -752,7 +746,7 @@ export default {
         ],
         frlxfs: [
           { required: true, message: '法定代表人或负责人联系方式不能为空', trigger: 'blur' },
-          { validator: Mobile, trigger: 'blur'}
+          { validator: Mobile, trigger: 'blur' }
         ],
         frdjjg: [
           { required: true, message: '法人登记机关不能为空', trigger: 'blur' },
@@ -814,7 +808,7 @@ export default {
         ],
         barLxfs: [
           { required: true, message: '备案人联系方式不能为空', trigger: 'blur' },
-          { validator: Mobile, trigger: 'blur'}
+          { validator: Mobile, trigger: 'blur' }
         ],
 
         babgXm: [
@@ -831,7 +825,7 @@ export default {
         ],
         babgLxfs: [
           { required: true, message: '备案人联系方式不能为空', trigger: 'blur' },
-          { validator: Mobile, trigger: 'blur'}
+          { validator: Mobile, trigger: 'blur' }
         ],
         babgMs: [
           { required: true, message: '变更原因描述不能为空', trigger: 'blur' }
@@ -888,7 +882,6 @@ export default {
           { required: true, message: '落款名称不能为空', trigger: 'blur' }
         ]
       },
-      decodeStr: {},
       qtDispaly: true,
       xzqh: null,
       isBg: true,
@@ -1273,14 +1266,6 @@ export default {
       this.resetBl()
       getChangeBn(row.id).then(response => {
         this.form.id = row.id
-        this.decodeStr.txdz = decrypt_ECB(response.data.txdz)
-        this.decodeStr.frxm = decrypt_ECB(response.data.frxm)
-        this.decodeStr.frzjhm = decrypt_ECB(response.data.frzjhm)
-        this.decodeStr.frlxfs = decrypt_ECB(response.data.frlxfs)
-        console.log('txdz11111  ', this.decodeStr.txdz);
-
-        this.form = decryptData_ECB(response.data, ["txdz", "frxm", "frlxfs", "frzjhm", "barXm", "barZjhm", "barLxfs", "babgXm", "babgSfzhm", "babgLxfs"], [4, 1, 3, 2, 1, 2, 3, 1, 2, 3]);
-
         if (row.bnCjzt == '1') {
           this.title = '养老机构备案详情'
           this.xqList = [...this.jcList, this.jgList]
@@ -1306,7 +1291,7 @@ export default {
         if (row.bnLzzt === '03' || row.bnLzzt === '05') {
           this.xqList = [...this.xqList, this.baNOList]
         }
-        this.xqData = response.data
+        this.xqData = decryptData_ECB(response.data, ["txdz", "frxm", "frlxfs", "frzjhm", "barXm", "barZjhm", "barLxfs", "babgXm", "babgSfzhm", "babgLxfs"], [4, 1, 3, 2, 1, 2, 3, 1, 2, 3]);
         this.xqList = this.xqList.map(items => {
           items.data = items.data.map(it => {
             return it.map(item => {
@@ -1376,41 +1361,44 @@ export default {
         this.$modal.msgWarning('该机构未存在备案,请勿变更申请')
         return false
       }
-      this.form.tyshxydm = res.data.tyshxydm
-      this.form.jgId = res.data.id
-      this.form.xydm = res.data.tyshxydm
-      this.form.jgmc = res.data.jgmc
-      this.form.jlrq = res.data.jlrq
-      this.form.ssxzqh = res.data.ssxzqh
-      this.form.txdz = res.data.txdz
-      this.form.frxm = res.data.frxm
-      this.form.frlxfs = res.data.frlxfs
-      this.form.dwxz = res.data.dwxz
-      this.form.xbzt = res.data.xbzt
-      this.form.isTbzrx = res.data.isTbzrx
-      this.form.frxm = res.data.frxm
-      this.form.frzjlx = res.data.frzjlx
-      this.form.frzjhm = res.data.frzjhm
-      this.form.frdjjg = res.data.frdjjg
-      this.form.frlx = res.data.frlx
-      this.form.csxz = res.data.csxz
-      this.form.scwz = res.data.scwz
-      this.form.qtcws = res.data.qtcws
-      this.form.rtcws = res.data.rtcws
-      this.form.hlxcws = res.data.hlxcws
-      this.form.cwzs = res.data.cwzs
-      this.form.ssxzqhName = res.data.ssxzqhName
-      this.form.jzmj = res.data.jzmj
-      this.form.zdmj = res.data.zdmj
-      this.form.bhsqs = res.data.bhsqs
-      this.form.cns = res.data.cns
-      this.form.jgdjzs = res.data.jgdjzs
-      this.form.qtcl = res.data.jgUrl
-      this.form.jglxdh = res.data.frlxfs
-      this.form.szlrlxQt = res.data.szlrlxQt
-      this.form.szlrlx = res.data.szlrlx.split(',')
-      this.form.szxzqh = res.data.szxzqh.split(',')
-      this.form.ssxzqh = res.data.ssxzqh.split(',')
+      this.decodeStr = {}
+      this.decodeStr = decryptData_ECB(this.deepCopy(res.data), ['frxm', 'frzjhm', 'frlxfs', 'txdz'], [99, 99, 99, 99])
+      let data = decryptData_ECB(res.data, ['frxm', 'frzjhm', 'frlxfs', 'txdz'], [1, 2, 3, 4])
+      this.form.tyshxydm = data.tyshxydm
+      this.form.jgId = data.id
+      this.form.xydm = data.tyshxydm
+      this.form.jgmc = data.jgmc
+      this.form.jlrq = data.jlrq
+      this.form.ssxzqh = data.ssxzqh
+      this.form.txdz = data.txdz
+      this.form.frxm = data.frxm
+      this.form.frlxfs = data.frlxfs
+      this.form.dwxz = data.dwxz
+      this.form.xbzt = data.xbzt
+      this.form.isTbzrx = data.isTbzrx
+      this.form.frxm = data.frxm
+      this.form.frzjlx = data.frzjlx
+      this.form.frzjhm = data.frzjhm
+      this.form.frdjjg = data.frdjjg
+      this.form.frlx = data.frlx
+      this.form.csxz = data.csxz
+      this.form.scwz = data.scwz
+      this.form.qtcws = data.qtcws
+      this.form.rtcws = data.rtcws
+      this.form.hlxcws = data.hlxcws
+      this.form.cwzs = data.cwzs
+      this.form.ssxzqhName = data.ssxzqhName
+      this.form.jzmj = data.jzmj
+      this.form.zdmj = data.zdmj
+      this.form.bhsqs = data.bhsqs
+      this.form.cns = data.cns
+      this.form.jgdjzs = data.jgdjzs
+      this.form.qtcl = data.jgUrl
+      this.form.jglxdh = data.frlxfs
+      this.form.szlrlxQt = data.szlrlxQt
+      this.form.szlrlx = data.szlrlx.split(',')
+      this.form.szxzqh = data.szxzqh.split(',')
+      this.form.ssxzqh = data.ssxzqh.split(',')
       this.changeFrzjlx()
       this.getSzlrlx(this.form.szlrlx)
       this.searchXydm = false
@@ -1440,8 +1428,7 @@ export default {
     /** 查询机构备案列表 */
     getList() {
       this.loading = true
-      // listBn(this.queryParams).then(response => {
-      listBnGroup(this.queryParams).then(response => {
+      listBn(this.queryParams).then(response => {
         this.bnList = response.rows
         this.total = response.total
         this.loading = false
@@ -1564,8 +1551,13 @@ export default {
       this.reset()
       const id = row.id || this.ids
       getBn(id).then(response => {
-        this.form = decryptData_ECB(response.data, ["txdz", "frxm", "frzjhm", "frlxfs", "barXm", "barZjhm", "barLxfs","babgXm","babgSfzhm","babgLxfs"], [4, 1, 2, 3, 1, 2, 3, 1, 2, 3]);
-        this.form = { barXm: '', barZjlx: '', barZjhm: '', babgXm: '', barLxfs: '', babgZjlx: '', babgSfzhm: '', babgMs: '', babgLxfs: '', ...response.data }
+        this.decodeStr = {}
+        this.decodeStr = decryptData_ECB(this.deepCopy(response.data), ["txdz", "frxm", "frzjhm", "frlxfs", "barXm", "barZjhm", "barLxfs", "babgXm", "babgSfzhm", "babgLxfs"], [99, 99, 99, 99, 99, 99, 99, 99, 99, 99]);
+
+        let data = decryptData_ECB(response.data, ["txdz", "frxm", "frzjhm", "frlxfs", "barXm", "barZjhm", "barLxfs", "babgXm", "babgSfzhm", "babgLxfs"], [4, 1, 2, 3, 1, 2, 3, 1, 2, 3]);
+        
+        this.form = { barXm: '', barZjlx: '', barZjhm: '', babgXm: '', barLxfs: '', babgZjlx: '', babgSfzhm: '', babgMs: '', babgLxfs: '', ...data }
+        console.log(this.form,'handleUpdate');
         if (this.form.szxzqhIds) {
           // this.form.szxzqh = JSON.stringify(this.form.szxzqhName.split(','))
           this.form.szxzqh = JSON.stringify(this.form.szxzqhIds.split(','))
@@ -1646,50 +1638,58 @@ export default {
         bnLzzt: bnLzzt,
         bnCjzt: this.isBg ? '2' : '1'
       }
-      // this.form.szlrlx = this.form.szlrlx.join(",");
       this.submitFormLoading = true
       if (this.form.id != null) {
-
-        /****** sks 需要改动的地方 start ******/
-        // let formData=this.comparisonObject(this.form,this.copyForm);
+        console.log('修改');
         let formData = this.comparisonObject({ ...this.form, ...pamar }, this.copyForm)
-        console.log('formData  ', formData);
-
+        if (formData.barXm) {
+          formData.barXm = formData.barXm.includes('✱') ? this.decodeStr.frxm : formData.barXm
+        }
+        if (formData.barZjhm) {
+          formData.barZjhm = formData.barZjhm.includes('✱') ? this.decodeStr.frzjhm : formData.barZjhm
+        }
+        if (formData.barLxfs) {
+          formData.barLxfs = formData.barLxfs.includes('✱') ? this.decodeStr.frlxfs : formData.barLxfs
+        }
         if (formData) {
-          let copyform = {
-            ...formData,
-            txdz: this.decodeStr.frdjjg,
-            frxm: this.decodeStr.frxm,
-            frzjhm: this.decodeStr.frzjhm,
-            frlxfs: this.decodeStr.frlxfs
-          }
-          console.log('txdz2222  ', this.copyform.txdz);
-          updateBn(copyform).then(response => {
-          // updateBn({ ...formData, id: this.form.id }).then(response => {
+          updateBn({ ...formData, id: this.form.id }).then(response => {
             this.$modal.msgSuccess('修改成功')
             this.open = false
             this.bnList = this.dataReplacement(this.bnList, this.form.id, formData)
-            // this.getList();
           }).finally(() => this.submitFormLoading = false)
         } else {
           this.$modal.msgSuccess('修改成功')
           this.open = false
           this.submitFormLoading = false
         }
-        /****** sks 需要改动的地方 end ******/
       } else {
-        // addBn(this.form).then(response => {
-        addBn({ ...this.form, ...pamar }).then(response => {
+        console.log('新增');
+        console.log(this.form,'form');
+        console.log(this.decodeStr,'decoder');
+        let copyForm = {
+          ...this.form,
+          ...pamar,
+          frxm: this.form.frxm.includes('✱') ? this.decodeStr.frxm : this.form.frxm,
+          frzjhm: this.form.frzjhm.includes('✱') ? this.decodeStr.frzjhm : this.form.frzjhm,
+          frlxfs: this.form.frlxfs.includes('✱') ? this.decodeStr.frlxfs : this.form.frlxfs,
+          txdz: this.form.txdz.includes('✱') ? this.decodeStr.txdz : this.form.txdz,
+          jglxdh: this.form.jglxdh.includes('✱') ? this.decodeStr.jglxdh : this.form.jglxdh,
+          
+        }
+        if(copyForm.barXm || copyForm.barZjhm || copyForm.barLxfs){
+          copyForm.barXm = this.form.barXm.includes('✱') ? this.decodeStr.frxm : this.form.barXm,
+          copyForm.barZjhm = this.form.barZjhm.includes('✱') ? this.decodeStr.frzjhm : this.form.barZjhm,
+          copyForm.barLxfs = this.form.barLxfs.includes('✱') ? this.decodeStr.frlxfs : this.form.barLxfs
+        }else if(copyForm.babgXm || copyForm.babgSfzhm || copyForm.babgLxfs){
+          copyForm.babgXm = this.form.babgXm.includes('✱') ? this.decodeStr.frxm : this.form.babgXm,
+          copyForm.babgSfzhm = this.form.babgSfzhm.includes('✱') ? this.decodeStr.frzjhm : this.form.babgSfzhm,
+          copyForm.babgLxfs = this.form.babgLxfs.includes('✱') ? this.decodeStr.frlxfs : this.form.babgLxfs
+        }
+        console.log(copyForm,'cpysdfsdf');
+        addBn(copyForm).then(response => {
           this.$modal.msgSuccess('新增成功')
           this.open = false
           this.getList()
-          // /****** sks 需要改动的地方 start ******/
-          // if (this.queryParams.pageSize === this.bnList.length) {
-          //   this.bnList.pop()
-          // }
-          // this.bnList.unshift({ ...this.form, id: response.data, ...pamar  })
-          // this.total++
-          // /****** sks 需要改动的地方 end ******/
         }).finally(() => this.submitFormLoading = false)
       }
     },
@@ -1845,4 +1845,4 @@ h3 {
   font-size: 1.1rem;
   margin-bottom: 10px;
 }
-</style>
+</style>

+ 98 - 93
ruoyi-ui/src/views/organization/jggl/xfaqzcxx/index.vue

@@ -3,7 +3,7 @@
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="140px">
       <el-form-item label="是否存在安全隐患" prop="isYh">
         <el-radio-group v-model="queryParams.isYh">
-          <el-radio v-for="dict in dict.type.CZ035" :key="dict.value" :label="dict.value">{{dict.label}}
+          <el-radio v-for="dict in dict.type.CZ035" :key="dict.value" :label="dict.value">{{ dict.label }}
           </el-radio>
         </el-radio-group>
       </el-form-item>
@@ -37,7 +37,7 @@
     <el-table v-loading="loading" :data="xfaqzcxxList">
       <el-table-column label="序号" align="center">
         <template slot-scope="scope">
-          {{(queryParams.pageNum-1)*queryParams.pageSize + scope.$index + 1}}
+          {{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}
         </template>
       </el-table-column>
       <el-table-column label="统一社会信用代码" align="center" prop="tyshxydm" width="240" />
@@ -51,18 +51,18 @@
       <el-table-column label="自查负责人" align="center" prop="zcfzer" />
       <el-table-column label="状态" align="center" prop="zt">
         <template slot-scope="scope">
-          {{scope.row.zt=='2'?'提交':'暂存'}}
+          {{ scope.row.zt == '2' ? '提交' : '暂存' }}
         </template>
       </el-table-column>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
             v-hasPermi="['organization:xfaqzcxx:edit']">
-            {{scope.row.zt=='1'?'继续填写':'修改'}}
+            {{ scope.row.zt == '1' ? '继续填写' : '修改' }}
           </el-button>
 
           <el-button size="mini" type="text" icon="el-icon-delete"
-            @click="handleDelete(scope.row,(queryParams.pageNum-1)*queryParams.pageSize + scope.$index + 1,scope.$index)"
+            @click="handleDelete(scope.row, (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1, scope.$index)"
             v-hasPermi="['organization:xfaqzcxx:remove']">删除
           </el-button>
           <el-button size="mini" type="text" icon="el-icon-edit" @click="particulars(scope.row)"
@@ -72,7 +72,7 @@
       </el-table-column>
     </el-table>
 
-    <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
+    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
       @pagination="getList" />
 
     <!-- 添加或修改消防安全自查对话框 -->
@@ -84,19 +84,19 @@
               <table class="formStyle">
                 <tr>
                   <td>统一社会信用代码</td>
-                  <td>{{fixation.tyshxydm}}</td>
+                  <td>{{ fixation.tyshxydm }}</td>
                   <td>单位名称</td>
-                  <td>{{fixation.jgmc}}</td>
+                  <td>{{ fixation.jgmc }}</td>
                 </tr>
                 <tr>
                   <td>单位所属行政区划</td>
-                  <td>{{fixation.ssxzqh}}</td>
+                  <td>{{ fixation.ssxzqh }}</td>
                   <td>兴办主体</td>
-                  <td>{{fixation.xbzt}}</td>
+                  <td>{{ fixation.xbzt }}</td>
                 </tr>
                 <tr>
                   <td>单位通信地址</td>
-                  <td colspan="3">{{fixation.szxzqhName + fixation.txdz}}</td>
+                  <td colspan="3">{{ fixation.szxzqhName + fixation.txdz }}</td>
                 </tr>
                 <tr>
                   <td class="tdX">消防安全负责人姓名(法定代表人或主要负责人)</td>
@@ -176,7 +176,7 @@
                     <!--</el-form-item>-->
                     <el-form-item label="" prop="mhhjyssya">
                       <el-badge :value="mhhjyssyaLenght" class="item" type="primary">
-                        <el-button type="primary" size="mini" @click="xfaqglrOpen=true;accessoryIs=false">上传预案
+                        <el-button type="primary" size="mini" @click="xfaqglrOpen = true; accessoryIs = false">上传预案
                         </el-button>
                       </el-badge>
                       <span class="explain">请上传相关预案材料</span>
@@ -189,7 +189,7 @@
                   <td colspan="3">
                     <el-form-item label="">
                       <el-radio-group v-model="form.xfsyhbaqk" @change="changeXfsyhbaqk(form.xfsyhbaqk)">
-                        <el-radio v-for="dict in dict.type.CZ035" :key="dict.value" :label="dict.value">{{dict.label}}
+                        <el-radio v-for="dict in dict.type.CZ035" :key="dict.value" :label="dict.value">{{ dict.label }}
                         </el-radio>
                       </el-radio-group>
                     </el-form-item>
@@ -198,7 +198,7 @@
                     </el-form-item>
                     <el-form-item prop="jtqk" v-else>
                       <el-badge :value="jtqkLenght" class="item" type="primary">
-                        <el-button type="primary" size="mini" @click="xfsyhbaqkOpen=true;accessoryIs=false">上传材料
+                        <el-button type="primary" size="mini" @click="xfsyhbaqkOpen = true; accessoryIs = false">上传材料
                         </el-button>
                       </el-badge>
                       <span class="explain">请上传消防审验报告等材料</span>
@@ -226,7 +226,7 @@
                   <td colspan="3">
                     <el-form-item class="el-form-item1" label="" prop="aqzd">
                       <el-badge :value="aqzdLenght" class="item" type="primary">
-                        <el-button type="primary" size="mini" @click="aqzdOpen=true;accessoryIs=false">上传材料</el-button>
+                        <el-button type="primary" size="mini" @click="aqzdOpen = true; accessoryIs = false">上传材料</el-button>
                       </el-badge>
                     </el-form-item>
                   </td>
@@ -235,63 +235,63 @@
             </el-tab-pane>
             <el-tab-pane label="检查信息" name="second">
               <table style="margin-bottom: 10px">
-                <tr v-for="(item,indexs) in form.yljgJcxmxxList" :key="item.id">
+                <tr v-for="(item, indexs) in form.yljgJcxmxxList" :key="item.id">
                   <td style="text-align: left">
                     <!--<div class="tdX">-->
                     <!--{{item.jcxx}}-->
                     <el-form-item class="el-form-item1" :label="item.jcxx"
-                      :rules="{required: true, message:item.jcxx+ '不能为空', trigger: 'change'}"
-                      :prop="'yljgJcxmxxList.'+indexs+'.isSf'">
-                      <el-radio-group v-model="item.isSf" @change="changeIsSf(indexs,item.isSf)">
-                        <el-radio v-for="(dict,index) in item.daxx.split(',')" :key="index" :label="dict">{{dict}}
+                      :rules="{ required: true, message: item.jcxx + '不能为空', trigger: 'change' }"
+                      :prop="'yljgJcxmxxList.' + indexs + '.isSf'">
+                      <el-radio-group v-model="item.isSf" @change="changeIsSf(indexs, item.isSf)">
+                        <el-radio v-for="(dict, index) in item.daxx.split(',')" :key="index" :label="dict">{{ dict }}
                         </el-radio>
                       </el-radio-group>
                     </el-form-item>
                     <!--</div>-->
                     <div v-if="item.zbxz" class="red">
-                      {{item.zbxz}}
+                      {{ item.zbxz }}
                     </div>
-                    <div v-if="item.isSf=='是'">
+                    <div v-if="item.isSf == '是'">
                       <el-form-item label="不完善的具体情况" :rules="item.rules.bwsdjtqk"
-                        :prop="'yljgJcxmxxList.'+indexs+'.bwsdjtqk'">
+                        :prop="'yljgJcxmxxList.' + indexs + '.bwsdjtqk'">
                         <el-input v-model="item.bwsdjtqk" placeholder="请输入不完善的具体情况" />
                       </el-form-item>
-                      <el-form-item label="整改措施" :rules="item.rules.zgcs" :prop="'yljgJcxmxxList.'+indexs+'.zgcs'">
+                      <el-form-item label="整改措施" :rules="item.rules.zgcs" :prop="'yljgJcxmxxList.' + indexs + '.zgcs'">
                         <el-input v-model="item.zgcs" placeholder="请输入整改措施" />
                       </el-form-item>
-                      <el-form-item label="责任人" :rules="item.rules.fzr" :prop="'yljgJcxmxxList.'+indexs+'.fzr'">
+                      <el-form-item label="责任人" :rules="item.rules.fzr" :prop="'yljgJcxmxxList.' + indexs + '.fzr'">
                         <el-input v-model="item.fzr" placeholder="请输入责任人" />
                       </el-form-item>
                       <el-form-item label="整改完成时限" :rules="item.rules.zgwcsx"
-                        :prop="'yljgJcxmxxList.'+indexs+'.zgwcsx'">
+                        :prop="'yljgJcxmxxList.' + indexs + '.zgwcsx'">
                         <el-date-picker clearable v-model="item.zgwcsx" type="date" value-format="yyyyMMdd"
                           placeholder="请选择完成整改日期">
                         </el-date-picker>
                       </el-form-item>
                       <el-form-item class="el-form-item1" label="是否完成整改" :rules="item.rules.isWczg"
-                        :prop="'yljgJcxmxxList.'+indexs+'.isWczg'">
-                        <el-radio-group v-model="item.isWczg" @change="changeIsWczg(item.isWczg,indexs)">
+                        :prop="'yljgJcxmxxList.' + indexs + '.isWczg'">
+                        <el-radio-group v-model="item.isWczg" @change="changeIsWczg(item.isWczg, indexs)">
                           <el-radio v-for="(dict) in dict.type.CZ035" :key="dict.value" :label="dict.value">
-                            {{dict.label}}
+                            {{ dict.label }}
                           </el-radio>
                         </el-radio-group>
                       </el-form-item>
-                      <el-form-item label="完成整改日期" :rules="item.rules.wczfsj" v-if="item.isWczg==='1'"
-                        :prop="'yljgJcxmxxList.'+indexs+'.wczfsj'">
+                      <el-form-item label="完成整改日期" :rules="item.rules.wczfsj" v-if="item.isWczg === '1'"
+                        :prop="'yljgJcxmxxList.' + indexs + '.wczfsj'">
                         <el-date-picker clearable v-model="item.wczfsj" type="date" value-format="yyyyMMdd"
                           placeholder="请选择完成整改日期">
                         </el-date-picker>
                       </el-form-item>
-                      <el-form-item label="整改完成情况" :rules="item.rules.zgwcqk" v-if="item.isWczg==='1'"
-                        :prop="'yljgJcxmxxList.'+indexs+'.zgwcqk'">
+                      <el-form-item label="整改完成情况" :rules="item.rules.zgwcqk" v-if="item.isWczg === '1'"
+                        :prop="'yljgJcxmxxList.' + indexs + '.zgwcqk'">
                         <el-input v-model="item.zgwcqk" maxlength="500" show-word-limit type="textarea"
                           placeholder="请输入整改完成情况" />
                       </el-form-item>
                     </div>
-                    <div v-if="item.isSf=='否'&&item.isUpload=='1'">
-                      <el-form-item label="" :rules="item.rules.fj" :prop="'yljgJcxmxxList.'+indexs+'.fj'">
+                    <div v-if="item.isSf == '否' && item.isUpload == '1'">
+                      <el-form-item label="" :rules="item.rules.fj" :prop="'yljgJcxmxxList.' + indexs + '.fj'">
                         <el-badge :value="getValue(item.fj)" class="item" type="primary">
-                          <el-button type="primary" size="mini" @click="accessory(indexs,item.jcxx)">附件上传</el-button>
+                          <el-button type="primary" size="mini" @click="accessory(indexs, item.jcxx)">附件上传</el-button>
                         </el-badge>
                       </el-form-item>
                     </div>
@@ -311,8 +311,8 @@
       </el-scrollbar>
       <div slot="footer" class="dialog-footer">
         <el-button @click="cancel">取 消</el-button>
-        <el-button type="primary" @click="changeTabs('first')" v-if="activeName=='second'">上一步</el-button>
-        <el-button type="primary" @click="changeTabs('second')" v-if="activeName=='first'">下一步</el-button>
+        <el-button type="primary" @click="changeTabs('first')" v-if="activeName == 'second'">上一步</el-button>
+        <el-button type="primary" @click="changeTabs('second')" v-if="activeName == 'first'">下一步</el-button>
         <el-button type="primary" @click="hold('1')" :loading="submitFormLoading">暂 存</el-button>
         <el-button type="primary" @click="submitForm" :loading="submitFormLoading">提 交</el-button>
       </div>
@@ -333,7 +333,7 @@
       <span>消防设施配备情况:</span>
       <el-checkbox-group v-model="pbqk" @change="getSzlrlx(pbqk)" style="margin-top: 5px;margin-bottom: 5px;">
         <el-checkbox v-for="dict in dict.type.XZ012" :key="dict.value" :label="dict.value">
-          {{dict.label}}
+          {{ dict.label }}
         </el-checkbox>
       </el-checkbox-group>
       <el-input v-model="pbqkqt" :disabled="qtDispaly" placeholder="请输入其他消防设施配备情况" />
@@ -343,7 +343,7 @@
       </div>
     </el-dialog>
     <el-dialog v-dialog-drag :title="accessoryTitle" :visible.sync="accessoryOpen" width="800px" append-to-body>
-      <file-upload v-if="form.yljgJcxmxxList&&form.yljgJcxmxxList[accessoryIndex]"
+      <file-upload v-if="form.yljgJcxmxxList && form.yljgJcxmxxList[accessoryIndex]"
         v-model="form.yljgJcxmxxList[accessoryIndex].fj" :fileType="fileType" :fileSize="fileSize" :limit="limit"
         :isFile="!accessoryIs"></file-upload>
     </el-dialog>
@@ -354,55 +354,55 @@
           <table>
             <tr>
               <td>统一社会信用代码</td>
-              <td>{{fixation.tyshxydm}}</td>
+              <td>{{ fixation.tyshxydm }}</td>
               <td>单位名称</td>
-              <td>{{fixation.jgmc}}</td>
+              <td>{{ fixation.jgmc }}</td>
             </tr>
             <tr>
               <td>单位所属行政区划</td>
-              <td>{{fixation.ssxzqh}}</td>
+              <td>{{ fixation.ssxzqh }}</td>
               <td>兴办主体</td>
-              <td>{{fixation.xbzt}}</td>
+              <td>{{ fixation.xbzt }}</td>
             </tr>
             <tr>
               <td>单位通信地址</td>
-              <td colspan="3">{{fixation.txdz}}</td>
+              <td colspan="3">{{ fixation.txdz }}</td>
             </tr>
             <tr>
               <td>消防安全负责人姓名(法定代表人或主要负责人)</td>
-              <td>{{form.xfaqfzr}}</td>
+              <td>{{ form.xfaqfzr }}</td>
               <td>消防安全负责人证件类型</td>
-              <td>{{translateDict('C0015',form.xfaqfzrzjlx)}}
+              <td>{{ translateDict('C0015', form.xfaqfzrzjlx) }}
                 <!--C0015-->
               </td>
             </tr>
             <tr>
               <td>消防安全负责人证件号码</td>
-              <td>{{form.xfaqfzrzjhm}}</td>
+              <td>{{ form.xfaqfzrzjhm }}</td>
               <td>消防安全负责人手机号码</td>
-              <td>{{form.xfaqfzrdh}}</td>
+              <td>{{ form.xfaqfzrdh }}</td>
             </tr>
             <tr>
               <td>消防安全管理人姓名</td>
               <td colspan="3">
-                {{form.xfaqglr}}
+                {{ form.xfaqglr }}
               </td>
             </tr>
             <tr>
               <td>消防安全管理人证件类型</td>
-              <td colspan="3">{{translateDict('C0015',form.xfaqglrzjlx)}}</td>
+              <td colspan="3">{{ translateDict('C0015', form.xfaqglrzjlx) }}</td>
               <!--C0015-->
             </tr>
             <tr>
               <td>消防安全管理人证件号码</td>
               <td>
-                {{form.xfaqglrzjhm}}
+                {{ form.xfaqglrzjhm }}
               </td>
               <td>
                 消防安全管理人手机号码
               </td>
               <td>
-                {{form.xfaqglrdh}}
+                {{ form.xfaqglrdh }}
               </td>
             </tr>
             <tr>
@@ -410,8 +410,8 @@
                 灭火和应急疏散预案
               </td>
               <td colspan="3">
-                <el-badge :value="mhhjyssyaLenght" class="item" type="primary" v-if="mhhjyssyaLenght!==0">
-                  <el-button type="primary" size="mini" @click="xfaqglrOpen=true;accessoryIs=true">查看附件</el-button>
+                <el-badge :value="mhhjyssyaLenght" class="item" type="primary" v-if="mhhjyssyaLenght !== 0">
+                  <el-button type="primary" size="mini" @click="xfaqglrOpen = true; accessoryIs = true">查看附件</el-button>
                 </el-badge>
                 <span v-else>
                   暂放附件
@@ -421,7 +421,7 @@
             <tr>
               <td>消防审验或备案情况</td>
               <td colspan="3">
-                {{translateDict('CZ035',form.xfsyhbaqk)}}
+                {{ translateDict('CZ035', form.xfsyhbaqk) }}
                 <!--CZ035-->
               </td>
             </tr>
@@ -430,7 +430,7 @@
                 消防审验或备案不到位的具体情况
               </td>
               <td colspan="3">
-                {{form.jtqk}}
+                {{ form.jtqk }}
               </td>
             </tr>
             <tr>
@@ -438,8 +438,8 @@
                 消防审验或备案情况证明材料
               </td>
               <td colspan="3">
-                <el-badge :value="jtqkLenght" class="item" type="primary" v-if="jtqkLenght!==0">
-                  <el-button type="primary" size="mini" @click="xfsyhbaqkOpen=true;accessoryIs=true">查看附件</el-button>
+                <el-badge :value="jtqkLenght" class="item" type="primary" v-if="jtqkLenght !== 0">
+                  <el-button type="primary" size="mini" @click="xfsyhbaqkOpen = true; accessoryIs = true">查看附件</el-button>
                 </el-badge>
                 <span v-else>
                   暂放附件
@@ -449,14 +449,14 @@
             <tr>
               <td> 消防设施配备情况</td>
               <td colspan="3">
-                {{xfsspbqk}}
+                {{ xfsspbqk }}
               </td>
             </tr>
             <tr>
               <td class="tdX">消防安全制度</td>
               <td colspan="3">
-                <el-badge :value="aqzdLenght" class="item" type="primary" v-if="aqzdLenght!==0">
-                  <el-button type="primary" size="mini" @click="aqzdOpen=true;accessoryIs=true">查看附件</el-button>
+                <el-badge :value="aqzdLenght" class="item" type="primary" v-if="aqzdLenght !== 0">
+                  <el-button type="primary" size="mini" @click="aqzdOpen = true; accessoryIs = true">查看附件</el-button>
                 </el-badge>
                 <span v-else>
                   暂放附件
@@ -466,44 +466,44 @@
           </table>
         </el-tab-pane>
         <el-tab-pane label="检查信息" name="second">
-          <table v-for="(item,indexs) in form.yljgJcxmxxList" :key="item.id" style="margin-bottom: 10px">
+          <table v-for="(item, indexs) in form.yljgJcxmxxList" :key="item.id" style="margin-bottom: 10px">
             <tr>
               <td class="textFont">
-                {{item.jcxx}}
+                {{ item.jcxx }}
               </td>
               <td colspan="3">
-                {{item.isSf}}
+                {{ item.isSf }}
               </td>
             </tr>
-            <tr v-if="item.isSf=='是'">
+            <tr v-if="item.isSf == '是'">
               <td class="textFont">不完善的具体情况:</td>
-              <td> {{item.bwsdjtqk}}</td>
+              <td> {{ item.bwsdjtqk }}</td>
               <td class="textFont">整改措施:</td>
-              <td>{{item.zgcs}}</td>
+              <td>{{ item.zgcs }}</td>
             </tr>
-            <tr v-if="item.isSf=='是'">
+            <tr v-if="item.isSf == '是'">
               <td>责任人:</td>
-              <td>{{item.fzr}}</td>
+              <td>{{ item.fzr }}</td>
               <td>整改完成时限:</td>
-              <td>{{special(item.zgwcsx)}}</td>
+              <td>{{ special(item.zgwcsx) }}</td>
             </tr>
-            <tr v-if="item.isSf=='是'">
+            <tr v-if="item.isSf == '是'">
               <td class="textFont">是否完成整改:</td>
-              <td>{{translateDict('CZ035',item.isWczg)}}</td>
+              <td>{{ translateDict('CZ035', item.isWczg) }}</td>
               <td class="textFont">完成整改日期:</td>
-              <td>{{special(item.wczfsj)}}</td>
+              <td>{{ special(item.wczfsj) }}</td>
             </tr>
-            <tr v-if="item.isSf=='是'">
+            <tr v-if="item.isSf == '是'">
               <td class="textFont">整改完成情况:</td>
-              <td colspan="3">{{item.zgwcqk}}</td>
+              <td colspan="3">{{ item.zgwcqk }}</td>
             </tr>
-            <tr v-if="item.isSf=='否'&&item.isUpload=='1'">
+            <tr v-if="item.isSf == '否' && item.isUpload == '1'">
               <td class="textFont">
                 附件
               </td>
               <td colspan="3">
                 <el-badge :value="getValue(item.fj)" class="item" type="primary">
-                  <el-button type="primary" size="mini" @click="accessory(indexs,item.jcxx,'true')">查看附件</el-button>
+                  <el-button type="primary" size="mini" @click="accessory(indexs, item.jcxx, 'true')">查看附件</el-button>
                 </el-badge>
               </td>
             </tr>
@@ -511,9 +511,9 @@
           <table>
             <tr>
               <td>自查日期</td>
-              <td>{{special(form.zcsj)}}</td>
+              <td>{{ special(form.zcsj) }}</td>
               <td>自查人</td>
-              <td>{{form.zcfzer}}</td>
+              <td>{{ form.zcfzer }}</td>
             </tr>
           </table>
         </el-tab-pane>
@@ -535,7 +535,7 @@ import {
 import { Constant } from '@/utils/constant'
 import { chineseOne, idCard, Mobile } from '@/utils/regular'
 import TreeNodeDialog from '../../../tool/build/TreeNodeDialog'
-import { decryptData_ECB, decryptRowData_ECB,decrypt_ECB } from "@/api/tool/sm4";
+import { decryptData_ECB, decryptRowData_ECB } from "@/api/tool/sm4";
 
 export default {
   name: 'Xfaqzcxx',
@@ -672,7 +672,7 @@ export default {
         ]
       },
       fixation: {},
-      decodeStr:{},
+      decodeStr: {},
       // xfsspbqk:null,
       pbqk: [],
       pbqkqt: null,
@@ -826,14 +826,8 @@ export default {
     selectYlJgMsg() {
       selectYlJgMsg().then(response => {
         this.fixation = response.data
-        this.decodeStr = {
-          frxm: decrypt_ECB(response.data.frxm),
-          frzjhm: decrypt_ECB(response.data.frzjhm),
-          frlxfs: decrypt_ECB(response.data.frlxfs),
-          txdz: decrypt_ECB(response.data.txdz),
-        }
-        console.log(this.decodeStr);
-        // this.fixation = decryptData_ECB(response.data, ["frxm", "frzjhm", "frlxfs","txdz"], [1, 2, 3, 4]);
+        this.decodeStr = decryptData_ECB(this.deepCopy(response.data), ['frxm', 'frzjhm', 'frlxfs', 'txdz'], [99, 99, 99, 99])
+        this.fixation = decryptData_ECB(response.data, ["frxm", "frzjhm", "frlxfs", "txdz"], [1, 2, 3, 4]);
       })
     },
     rightList() {
@@ -966,7 +960,7 @@ export default {
       this.reset()
       const id = row.id || this.ids
       getXfaqzcxx(id).then(response => {
-        let data = decryptData_ECB(response.data, ["xfaqfzr", "xfaqfzrdh", "xfaqfzrzjhm", "xfaqglr", "xfaqglrdh", "xfaqglrzjhm", "zcfzer","txdz"], [1, 3, 2, 1, 3, 2, 1,4]);
+        let data = decryptData_ECB(response.data, ["xfaqfzr", "xfaqfzrdh", "xfaqfzrzjhm", "xfaqglr", "xfaqglrdh", "xfaqglrzjhm", "zcfzer", "txdz"], [1, 3, 2, 1, 3, 2, 1, 4]);
         this.form = { jtqk: '', ...data }
 
         this.changeXfaqglrzjlx()
@@ -1021,7 +1015,7 @@ export default {
       this.reset()
       getXfaqzcxx(row.id).then(response => {
         this.openXQ = true
-        this.form = decryptData_ECB(response.data, ["xfaqfzr", "xfaqfzrdh", "xfaqfzrzjhm", "xfaqglr", "xfaqglrdh", "xfaqglrzjhm", "zcfzer","txdz"], [1, 3, 2, 1, 3, 2, 1,4]);
+        this.form = decryptData_ECB(response.data, ["xfaqfzr", "xfaqfzrdh", "xfaqfzrzjhm", "xfaqglr", "xfaqglrdh", "xfaqglrzjhm", "zcfzer", "txdz"], [1, 3, 2, 1, 3, 2, 1, 4]);
         this.form.pbqk = this.form.pbqk ? this.form.pbqk.split(',') : []
         this.form.yljgJcxmxxList = this.form.yljgJcxmxxList.map((item, index) => {
           let rules = {}
@@ -1087,12 +1081,22 @@ export default {
     },
     hold(zt) {
       this.submitFormLoading = true;
+      console.log(this.decodeStr);
       let formList = {
         ...this.form,
         pbqk: this.form.pbqk.join(','),
-        zt: zt
+        zt: zt,
+        xfaqfzr: this.decodeStr.frxm,
+        xfaqfzrzjlx: this.decodeStr.frzjlx,
+        xfaqfzrzjhm: this.decodeStr.frzjhm,
+        xfaqfzrdh: this.decodeStr.frlxfs,
+        xfaqglr: this.decodeStr.frxm,
+        xfaqglrzjlx: this.decodeStr.frzjlx,
+        xfaqglrzjhm: this.decodeStr.frzjhm,
+        xfaqglrdh: this.decodeStr.frlxfs
       }
       if (this.form.id != null) {
+        console.log('aaa', this.form.id);
         let formData = this.comparisonObject(formList, this.copyForm, 'id')
         if (formData) {
           if (formData.yljgJcxmxxList) {
@@ -1110,6 +1114,7 @@ export default {
           this.submitFormLoading = false;
         }
       } else {
+        console.log('bbbb', this.form.id);
         addXfaqzcxx(formList).then(response => {
           this.$modal.msgSuccess('新增成功')
           this.open = false

+ 15 - 38
ruoyi-ui/src/views/organization/zwyw/babgsq/module/index.vue

@@ -957,10 +957,10 @@ export default {
         return false
       }
       if (is) {
-        this.form.barXm = this.form.frxm
-        this.form.barZjlx = this.form.frzjlx
-        this.form.barZjhm = this.form.frzjhm
-        this.form.barLxfs = this.form.frlxfs
+        this.form.barXm = this.decodeStr.frxm
+        this.form.barZjlx = this.decodeStr.frzjlx
+        this.form.barZjhm = this.decodeStr.frzjhm
+        this.form.barLxfs = this.decodeStr.frlxfs
         this.changeBarzjlx()
       } else {
         this.form.barXm = null
@@ -977,10 +977,10 @@ export default {
         return false
       }
       if (is) {
-        this.form.babgXm = this.form.frxm
-        this.form.babgZjlx = this.form.frzjlx
-        this.form.babgSfzhm = this.form.frzjhm
-        this.form.babgLxfs = this.form.frlxfs
+        this.form.babgXm = this.decodeStr.frxm
+        this.form.babgZjlx = this.decodeStr.frzjlx
+        this.form.babgSfzhm = this.decodeStr.frzjhm
+        this.form.babgLxfs = this.decodeStr.frlxfs
         this.changeBabgZjlx()
       } else {
         this.form.babgXm = null
@@ -1246,13 +1246,8 @@ export default {
           this.$modal.msgWarning('该机构未存在备案,请勿变更申请')
           return false;
         }
-        this.decodeStr = {
-          frxm: decrypt_ECB(res.data.frxm),
-          frzjhm: decrypt_ECB(res.data.frzjhm),
-          frlxfs: decrypt_ECB(res.data.frlxfs),
-          txdz: decrypt_ECB(res.data.txdz),
-          jglxdh: decrypt_ECB(res.data.jglxdh),
-        }
+
+        this.decodeStr = decryptData_ECB(this.deepCopy(res.data), ['frxm', 'frzjhm', 'frlxfs', 'txdz'], [99, 99,99, 99])
         let data = decryptData_ECB(res.data, ['frxm', 'frzjhm', 'frlxfs', 'txdz'], [1, 2, 3, 4])
         this.form.tyshxydm = data.tyshxydm
         this.form.jgId = data.id
@@ -1356,10 +1351,8 @@ export default {
         bnLzzt: bnLzzt,
         bnCjzt: this.isBg ? '2' : '1'
       }
-      // this.form.szlrlx = this.form.szlrlx.join(",");
       this.submitFormLoading = true
       if (this.form.id != null) {
-      console.log('aaaa');
         /****** sks 需要改动的地方 start ******/
         // let formData=this.comparisonObject(this.form,this.copyForm);
         let formData = this.comparisonObject({ ...this.form, ...pamar }, this.copyForm)
@@ -1377,35 +1370,19 @@ export default {
         }
         /****** sks 需要改动的地方 end ******/
       } else {
-        console.log('bbbbb',this.checked);
         let copyForm = {
           ...this.form,
           ...pamar,
-          frxm: this.decodeStr.frxm,
-          frzjhm: this.decodeStr.frzjhm,
-          frlxfs: this.decodeStr.frlxfs,
-          txdz: this.decodeStr.txdz,
-          jglxdh: this.decodeStr.jglxdh
-        }
-        if (this.checked) {
-          copyForm.barXm = this.decodeStr.frxm
-          copyForm.barZjhm = this.decodeStr.frzjhm
-          copyForm.barLxfs = this.decodeStr.frlxfs
-          copyForm.babgXm = this.decodeStr.frxm
-          copyForm.babgSfzhm = this.decodeStr.frzjhm
-          copyForm.babgLxfs = this.decodeStr.frlxfs
+          frxm: this.form.frxm.includes('✱') ? this.decodeStr.frxm : this.form.frxm,
+          frzjhm: this.form.frzjhm.includes('✱') ? this.decodeStr.frzjhm : this.form.frzjhm,
+          frlxfs: this.form.frlxfs.includes('✱') ? this.decodeStr.frlxfs : this.form.frlxfs,
+          txdz: this.form.txdz.includes('✱') ? this.decodeStr.txdz : this.form.txdz,
+          jglxdh: this.form.jglxdh.includes('✱') ? this.decodeStr.jglxdh : this.form.jglxdh
         }
         addBn(copyForm).then(response => {
           this.$modal.msgSuccess('新增成功')
           this.open = false
           this.getList()
-          // /****** sks 需要改动的地方 start ******/
-          // if (this.queryParams.pageSize === this.bnList.length) {
-          //   this.bnList.pop()
-          // }
-          // this.bnList.unshift({ ...this.form, id: response.data, ...pamar  })
-          // this.total++
-          // /****** sks 需要改动的地方 end ******/
         }).finally(() => this.submitFormLoading = false)
       }
     },

+ 1 - 1
ruoyi-ui/src/views/search/xxcx/lrxx/lrslhgzcx/index.vue

@@ -246,7 +246,7 @@ export default {
       handleUpdate(row) {
         const id = row.id || this.ids
         getLrslhgz(id).then(response => {
-          this.form = response.data
+          this.form = decryptData_ECB(response.data, ['lxdh', 'tbrSjhm', 'tbrXm', 'xm', 'xxdz'], [3, 3, 1, 1, 4])
           this.form.gznr = this.form.gznr.split(',')
           this.open = true
           this.title = '适老化改造详情'