Browse Source

Merge branch '财务报表变更' of sckj/mz-cloud into master

sckj 5 months ago
parent
commit
8d2464bacc
1 changed files with 249 additions and 224 deletions
  1. 249 224
      ruoyi-ui/src/views/organization/jggl/cwxxTb/index.vue

+ 249 - 224
ruoyi-ui/src/views/organization/jggl/cwxxTb/index.vue

@@ -3,14 +3,14 @@
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
         <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="TBSDButton"
-                   v-hasPermi="['system:tb:add']">财务填报</el-button>
+                   v-hasPermi="['system:tb:add']">财务填报
+        </el-button>
       </el-col>
 
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
 
-
     <el-table v-loading="loading" :data="xjgrglList">
       <el-table-column label="序号" align="center">
         <template slot-scope="scope">
@@ -27,9 +27,9 @@
           <span>{{ special(scope.row.djsj) }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="登记部门" align="center" prop="djbm" />
-      <el-table-column label="统一信用代码" align="center" prop="tyxydm" />
-      <el-table-column label="单位名称" align="center" prop="dwmc" />
+      <el-table-column label="登记部门" align="center" prop="djbm"/>
+      <el-table-column label="统一信用代码" align="center" prop="tyxydm"/>
+      <el-table-column label="单位名称" align="center" prop="dwmc"/>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
         <template slot-scope="scope">
           <el-button
@@ -38,24 +38,25 @@
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['system:tb:edit']"
-          >修改</el-button>
+          >修改
+          </el-button>
           <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row,scope.$index)"
             v-hasPermi="['system:tb:remove']"
-          >删除</el-button>
+          >删除
+          </el-button>
         </template>
       </el-table-column>
     </el-table>
 
 
-
     <el-dialog title="选择填报时段" :visible.sync="innerVisible">
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
         <el-form-item label="填报时段" prop="tblx">
-<!--          <el-input v-model="form.tblx" placeholder="请输入填报时段"/>-->
+          <!--          <el-input v-model="form.tblx" placeholder="请输入填报时段"/>-->
           <el-select v-model="form.tblx" placeholder="请选择填报时段">
             <el-option
               v-for="dict in dict.type.CWTB003"
@@ -75,25 +76,28 @@
     <!-- 添加或修改先进个人管理对话框 -->
     <el-dialog v-dialog-drag :title="title" :visible.sync="open" width="1600px" append-to-body>
       <el-form class="add-form" ref="form" :model="form" :rules="rules" label-width="180px" :inline="true">
-        <div   v-for="(it,ind) in optData" :key="it.label">
+        <div v-for="(it,ind) in optData" :key="it.label">
           <h3>{{it.label}}:</h3>
-          <div class="formFlex">
-            <el-form-item  v-for="(i,t) in it.child"  :key="i.key"  :label="i.label" :prop="i.key" class="flex-item">
+          <div class="formFlex" style="position: relative">
+            <el-form-item v-for="(i,t) in it.child" :key="i.key" :label="i.label" :prop="i.key" class="flex-item">
               <el-date-picker
                 v-if="i.type&&i.type==='date'" v-model="form[i.key]" :placeholder="'请选择'+i.label"
                 value-format="yyyyMMdd"
                 type="date">
               </el-date-picker>
-              <el-cascader v-else-if="i.type&&i.type==='cascader'" :placeholder="'请选择'+i.label" v-model="form[i.key]" :options="dictOpt[i.dict]" :props="i.props" ></el-cascader>
-              <RegionCascaderSelect v-else-if="i.type&&i.type==='RegionCascaderSelect'" v-model="form[i.key]" style="width: 100%"></RegionCascaderSelect>
+              <el-cascader v-else-if="i.type&&i.type==='cascader'" :placeholder="'请选择'+i.label" v-model="form[i.key]"
+                           :options="dictOpt[i.dict]" :props="i.props"></el-cascader>
+              <RegionCascaderSelect v-else-if="i.type&&i.type==='RegionCascaderSelect'" v-model="form[i.key]"
+                                    style="width: 100%"></RegionCascaderSelect>
               <el-select v-else-if="i.type&&i.type==='select'" v-model="form[i.key]" :placeholder="'请选择'+i.label">
                 <el-option v-for="dict in dictOpt[i.dict]" :key="dict.value" :label="dict.label" :value="dict.value">
                 </el-option>
               </el-select>
-              <el-input v-else v-model="form[i.key]" :class="i.dw?'dw':''" :placeholder="'请输入'+i.label" >
+              <el-input v-else v-model="form[i.key]" :class="i.dw?'dw':''" :placeholder="'请输入'+i.label">
                 <template v-if="i.dw" slot="append">{{i.dw}}</template>
 
               </el-input>
+              <!--<span v-if="i.ts"  class="textStyle">{{i.ts}}</span>-->
             </el-form-item>
           </div>
         </div>
@@ -108,23 +112,23 @@
 </template>
 
 <script>
-import {addTb, delTb, getTb, listTb, updateTb, getJbxx, getCountByJgidTblx} from "@/api/system/cwxxTb";
-  import {chineseOne, idCard} from '@/utils/regular'
-  import {Constant} from "@/utils/constant";
-  import { decryptData_ECB, decryptRowData_ECB } from "@/api/tool/sm4";
+  import { addTb, delTb, getTb, listTb, updateTb, getJbxx, getCountByJgidTblx } from '@/api/system/cwxxTb'
+  import { chineseOne, idCard } from '@/utils/regular'
+  import { Constant } from '@/utils/constant'
+  import { decryptData_ECB, decryptRowData_ECB } from '@/api/tool/sm4'
 
   export default {
-    name: "Xjgrgl",
-    dicts: [ 'C0038','CH010','CWTB001','CWTB002','CWTB003','CWTB004','CWTB005'],
+    name: 'Xjgrgl',
+    dicts: ['C0038', 'CH010', 'CWTB001', 'CWTB002', 'CWTB003', 'CWTB004', 'CWTB005'],
     data() {
       return {
         outerVisible: false,
         innerVisible: false,
-        tempTblx:null,
+        tempTblx: null,
         // 遮罩层
         loading: true,
         submitFormLoading: false,
-        activeName:'name0',
+        activeName: 'name0',
         // 选中数组
         ids: [],
         // 非单个禁用
@@ -138,7 +142,7 @@ import {addTb, delTb, getTb, listTb, updateTb, getJbxx, getCountByJgidTblx} from
         // 先进个人管理表格数据
         xjgrglList: [],
         // 弹出层标题
-        title: "",
+        title: '',
         // 是否显示弹出层
         open: false,
         //表彰时间范围
@@ -146,229 +150,237 @@ import {addTb, delTb, getTb, listTb, updateTb, getJbxx, getCountByJgidTblx} from
         // 查询参数
         queryParams: {
           pageNum: 1,
-          pageSize: 10,
+          pageSize: 10
         },
-        dictOpt:{
-          C0038:[],
-          CH010:[],
-          CWTB001:[],
-          CWTB004:[],
-          CWTB005:[],
+        dictOpt: {
+          C0038: [],
+          CH010: [],
+          CWTB001: [],
+          CWTB004: [],
+          CWTB005: [],
           // CWTB003:[],
-          isOpt:[
+          isOpt: [
             {
-              value:'是',label:'是',
+              value: '是', label: '是'
             },
             {
-              value:'否',label:'否',
-            },
+              value: '否', label: '否'
+            }
           ],
-          gblxOpt:[
+          gblxOpt: [
             {
-            value:'公办',label:'公办',
-           },
+              value: '公办', label: '公办'
+            },
             {
-              value:'民办',label:'民办',
+              value: '民办', label: '民办'
             },
             {
-              value:'公建民营',label:'公建民营',
+              value: '公建民营', label: '公建民营'
             }
-          ],
+          ]
         },
         // 表单参数
         form: {},
         // 表单校验
         rules: {
-          zczj: [{ required: true, message: "资产总计不能为空", trigger: "blur" }],
-          gdzcyj: [{ required: true, message: "固定资产原价不能为空", trigger: "blur" }],
-          bnsrtj: [{ required: true, message: "本年收入合计不能为空", trigger: "blur" }],
-          jysr: [{ required: true, message: "经营收入不能为空", trigger: "blur" }],
-          bnzchj: [{ required: true, message: "本年支出合计不能为空", trigger: "blur" }],
-          qnf: [{ required: true, message: "取暖费不能为空", trigger: "blur" }],
-          gzflzc: [{ required: true, message: "工资支出不能为空", trigger: "blur" }],
+          zczj: [{ required: true, message: '资产总计不能为空', trigger: 'blur' }],
+          gdzcyj: [{ required: true, message: '固定资产原价不能为空', trigger: 'blur' }],
+          bnsrtj: [{ required: true, message: '本年收入合计不能为空', trigger: 'blur' }],
+          jysr: [{ required: true, message: '经营收入不能为空', trigger: 'blur' }],
+          bnzchj: [{ required: true, message: '本年支出合计不能为空', trigger: 'blur' }],
+          qnf: [{ required: true, message: '取暖费不能为空', trigger: 'blur' }],
+          gzflzc: [{ required: true, message: '工资支出不能为空', trigger: 'blur' }]
         },
         openXQ: false,
         dataDetails: {},
-        optData:[
+        optData: [
           {
-            label:'机构-基本信息',child:[
-              {key:'djsj',label:'登记时间',value:'',type:'date'},
+            label: '机构-基本信息', child: [
+              { key: 'djsj', label: '登记时间', value: '', type: 'date' },
               // {key:'tblx',label:'填报类型',value:'',type:'select',dict:'CWTB002'},
-              {key:'djbm',label:'登记部门',value:''},
-              {key:'tyxydm',label:'统一社会信用代码',value:''},
-              {key:'dwmc',label:'单位名称',value:''},
-              {key:'fddbr',label:'法定代表人',value:''},
-              {key:'dz',label:'地址',value:''},
-              {key:'dwszdxzqhdm',label:'单位所在地行政区划代码',value:''},
+              { key: 'djbm', label: '登记部门', value: '' },
+              { key: 'tyxydm', label: '统一社会信用代码', value: '' },
+              { key: 'dwmc', label: '单位名称', value: '' },
+              { key: 'fddbr', label: '法定代表人', value: '' },
+              { key: 'dz', label: '地址', value: '' },
+              { key: 'dwszdxzqhdm', label: '单位所在地行政区划代码', value: '' },
               // {key:'dwszdxzqhdm',label:'单位所在地行政区划代码',type:'RegionCascaderSelect',value:''},
-              {key:'dh',label:'电话',value:''},
-              {key:'gmjjhyfl',label:'国民经济行业分类',value:'社会工作'},
-              {key:'jglx',label:'机构类型',value:'',type:'select',dict:'CWTB004'},
-              {key:'lx',label:'类型',value:'社会福利院'},
-              {key:'xz',label:'性质',value:'',type:'cascader',dict:'CWTB005',props:{
+              { key: 'dh', label: '电话', value: '' },
+              { key: 'gmjjhyfl', label: '国民经济行业分类', value: '社会工作' },
+              { key: 'jglx', label: '机构类型', value: '', type: 'select', dict: 'CWTB004' },
+              { key: 'lx', label: '类型', value: '社会福利院' },
+              {
+                key: 'xz', label: '性质', value: '', type: 'cascader', dict: 'CWTB005', props: {
                   emitPath: false,
                   checkStrictly: true
-                }},
-              {key:'xbzt',label:'兴办主体',value:'',type:'select',dict:'CH010',},
-              {key:'jgjzmj',label:'机构建筑面积(平方米)',value:''},
+                }
+              },
+              { key: 'xbzt', label: '兴办主体', value: '', type: 'select', dict: 'CH010' },
+              { key: 'jgjzmj', label: '机构建筑面积(平方米)', value: '' }
 
             ]
           },
           {
-            label:'机构-其他信息',child:[
-              {key:'isfl',label:'是否为所有权、经营权分离公办养老机构',value:'',type:'select',dict:'isOpt'},
+            label: '机构-其他信息', child: [
+              { key: 'isfl', label: '是否为所有权、经营权分离公办养老机构', value: '', type: 'select', dict: 'isOpt' },
               // {key:'isrtb',label:'是否设有儿童部',value:'',type:'select',dict:'isOpt'},
-              {key:'yljgzyxkzdjh',label:'医疗机构执业许可证登记号',value:''},
-              {key:'ylbxddyljgzgzjbm',label:'医疗保险定点医疗机构资格证书编码',value:''},
-            ],
+              { key: 'yljgzyxkzdjh', label: '医疗机构执业许可证登记号', value: '' },
+              { key: 'ylbxddyljgzgzjbm', label: '医疗保险定点医疗机构资格证书编码', value: '' }
+            ]
           },
           {
-            label:'机构-床位数',child:[
-              {key:'nmcws',label:'年末床位数',value:0},
-              {key:'hlxcw',label:'护理型床位',value:0},
+            label: '机构-床位数', child: [
+              { key: 'nmcws', label: '年末床位数', value: 0 },
+              { key: 'hlxcw', label: '护理型床位', value: 0 }
             ]
           },
           {
-            label:'从业人员-年末职工信息',child:[
-              {key:'nmzgrs',label:'职工人数',value:0},
-              {key:'nzgrs',label:'女职工人数',value:0},
-              {key:'yhry',label:'医护人员',value:0},
-            ],
+            label: '从业人员-年末职工信息', child: [
+              { key: 'nmzgrs', label: '职工人数', value: 0 },
+              { key: 'nzgrs', label: '女职工人数', value: 0 },
+              { key: 'yhry', label: '医护人员', value: 0 }
+            ]
           },
           {
-            label:'从业人员-受教育程度',child:[
-              {key:'dxzkrs',label:'大学专科人数',value:0},
-              {key:'dxbkjysrs',label:'大学本科及以上人数',value:0},
-            ],
+            label: '从业人员-受教育程度', child: [
+              { key: 'dxzkrs', label: '大学专科人数', value: 0 },
+              { key: 'dxbkjysrs', label: '大学本科及以上人数', value: 0 }
+            ]
           },
           {
-            label:'从业人员-职业资格水平',child:[
-              {key:'zlshgzsrs',label:'助理社会工作师人数',value:0},
-              {key:'shgzsrs',label:'社会工作师人数',value:0},
-              {key:'gjshgzsrs',label:'高级社会工作师人数',value:0},
-            ],
+            label: '从业人员-职业资格水平', child: [
+              { key: 'zlshgzsrs', label: '助理社会工作师人数', value: 0 },
+              { key: 'shgzsrs', label: '社会工作师人数', value: 0 },
+              { key: 'gjshgzsrs', label: '高级社会工作师人数', value: 0 }
+            ]
           },
           {
-            label:'从业人员-年龄结构',child:[
-              {key:'thirtyfive',label:'35岁及以下人数',value:0},
-              {key:'fortyfive',label:'36岁至45岁人数',value:0},
-              {key:'fiftyfive',label:'46岁至55岁人数',value:0},
-              {key:'fiftysix',label:'56岁及以上人数',value:0},
-            ],
+            label: '从业人员-年龄结构', child: [
+              { key: 'thirtyfive', label: '35岁及以下人数', value: 0 },
+              { key: 'fortyfive', label: '36岁至45岁人数', value: 0 },
+              { key: 'fiftyfive', label: '46岁至55岁人数', value: 0 },
+              { key: 'fiftysix', label: '56岁及以上人数', value: 0 }
+            ]
           },
           {
-            label:'从业人员-人员性质',child:[
-              {key:'jgglry',label:'机构管理人员数',value:0},
-              {key:'zyjsjnry',label:'专业技术技能人员数',value:0},
-              {key:'ylhly',label:'养老护理员数',value:0},
-            ],
+            label: '从业人员-人员性质', child: [
+              { key: 'jgglry', label: '机构管理人员数', value: 0 },
+              { key: 'zyjsjnry', label: '专业技术技能人员数', value: 0 },
+              { key: 'ylhly', label: '养老护理员数', value: 0 }
+            ]
           },
           {
-            label:'在院人数',child:[
-              {key:'nzyzrs',label:'年在院总人数',value:0},
-              {key:'nmzyzrs',label:'年末在院总人数',value:0},
-              {key:'nmzynxrs',label:'年末在院女性总人数',value:0},
+            label: '在院人数', child: [
+              { key: 'nzyzrs', label: '年在院总人数', value: 0 },
+              { key: 'nmzyzrs', label: '年末在院总人数', value: 0 },
+              { key: 'nmzynxrs', label: '年末在院女性总人数', value: 0 }
             ]
           },
           {
-            label:'年末在院人员-按性质分',child:[
-              {key:'qtrx',label:'其他人员',value:0},
-              {key:'tkryjzgydx',label:'特困人员救助供养对象',value:0},
-              {key:'zfry',label:'自费人员',value:0},
+            label: '年末在院人员-按性质分', child: [
+              { key: 'qtrx', label: '其他人员', value: 0 },
+              { key: 'tkryjzgydx', label: '特困人员救助供养对象', value: 0 },
+              { key: 'zfry', label: '自费人员', value: 0 }
             ]
           },
           {
-            label:'年末在院人员-按年龄分',child:[
-              {key:'lnr',label:'老年人',value:0},
-              {key:'qzn',label:'青壮年',value:0},
-              {key:'et',label:'儿童',value:0},
+            label: '年末在院人员-按年龄分', child: [
+              { key: 'lnr', label: '老年人', value: 0 },
+              { key: 'qzn', label: '青壮年', value: 0 },
+              { key: 'et', label: '儿童', value: 0 }
             ]
           },
           {
-            label:'年末在院人员-按类型分类',child:[
-              {key:'nlwh',label:'能力完好',value:0},
-              {key:'bfsn',label:'部分失能',value:0},
-              {key:'wqsn',label:'完全失能',value:0},
+            label: '年末在院人员-按类型分类', child: [
+              { key: 'nlwh', label: '能力完好', value: 0 },
+              { key: 'bfsn', label: '部分失能', value: 0 },
+              { key: 'wqsn', label: '完全失能', value: 0 }
             ]
           },
           {
-            label:'财务信息',child:[
-              {key:'zczj',label:'资产总计',value:0,dw:'万元'},
-              {key:'gdzcyj',label:'固定资产原价',value:0,dw:'万元'},
-              {key:'bnsrtj',label:'本年收入合计',value:0,dw:'万元'},
-              {key:'jysr',label:'经营收入',value:0,dw:'万元'},
-              {key:'bnzchj',label:'本年支出合计',value:0,dw:'万元'},
-              {key:'qnf',label:'取暖费',value:0,dw:'万元'},
-              {key:'gzflzc',label:'工资支出',value:0,dw:'万元'},
-              {key:'zfbtsr',label:'政府补贴收入',value:0,dw:'万元'},
-              {key:'fzzj',label:'负债合计',value:0,dw:'万元'},
+            label: '财务信息', child: [
+              { key: 'zczj', label: '资产总计', value: 0, dw: '万元' },
+              { key: 'gdzcyj', label: '资产总计中固定资产原价', value: 0, dw: '万元' },
+              // {key:'gdzcyj',label:'固定资产原价',value:0,dw:'万元',ts:'固定资产原价是资产总计的其中一项'},
+              { key: 'fzzj', label: '负债合计', value: 0, dw: '万元' },
+              { key: 'bnsrtj', label: '本年收入合计', value: 0, dw: '万元' },
+              { key: 'jysr', label: '本年收入中经营收入', value: 0, dw: '万元' },
+              // {key:'jysr',label:'经营收入',value:0,dw:'万元',ts:'经营收入是本年收入合计的其中一项'},
+              { key: 'zfbtsr', label: '本年收入中政府补贴收入', value: 0, dw: '万元' },
+              // {key:'zfbtsr',label:'政府补贴收入',value:0,dw:'万元',ts:'政府补贴收入是本年收入合计的其中一项'},
+              { key: 'bnzchj', label: '本年支出合计', value: 0, dw: '万元' },
+              { key: 'qnf', label: '本年支出中取暖费', value: 0, dw: '万元' },
+              // {key:'qnf',label:'取暖费',value:0,dw:'万元',ts:'取暖费是本年支出合计的其中一项'},
+              { key: 'gzflzc', label: '本年支出中工资支出', value: 0, dw: '万元' }
+              // {key:'gzflzc',label:'工资支出',value:0,dw:'万元',ts:'工资支出是本年支出合计的其中一项'},
             ]
+
           }
         ]
-      };
+      }
     },
     created() {
-      this.getList();
+      this.getList()
     },
-    mounted(){
-      this.dictOpt.C0038=this.dict.tree.C0038;
-      this.dictOpt.CH010=this.dict.type.CH010;
-      this.dictOpt.CWTB001=this.dict.type.CWTB001;
-      this.dictOpt.CWTB004=this.dict.type.CWTB004;
-      this.dictOpt.CWTB005=this.dict.type.CWTB005;
+    mounted() {
+      this.dictOpt.C0038 = this.dict.tree.C0038
+      this.dictOpt.CH010 = this.dict.type.CH010
+      this.dictOpt.CWTB001 = this.dict.type.CWTB001
+      this.dictOpt.CWTB004 = this.dict.type.CWTB004
+      this.dictOpt.CWTB005 = this.dict.type.CWTB005
       // this.dictOpt.CWTB003=this.dict.type.CWTB003;
     },
     methods: {
-      getValid(){
-        this.valid(this.rules,'zjhm',this.form.zjlx)
+      getValid() {
+        this.valid(this.rules, 'zjhm', this.form.zjlx)
       },
       /** 查询先进个人管理列表 */
       getList() {
-        this.loading = true;
-        this.queryParams.params = {};
+        this.loading = true
+        this.queryParams.params = {}
         if (null != this.daterangeBzrq && '' != this.daterangeBzrq) {
-          this.queryParams.params["beginBzrq"] = this.daterangeBzrq[0];
-          this.queryParams.params["endBzrq"] = this.daterangeBzrq[1];
+          this.queryParams.params['beginBzrq'] = this.daterangeBzrq[0]
+          this.queryParams.params['endBzrq'] = this.daterangeBzrq[1]
         }
-        listTb({...this.queryParams}).then(response => {
-          this.xjgrglList = response.rows;
-          this.total = response.total;
-          this.loading = false;
-        });
+        listTb({ ...this.queryParams }).then(response => {
+          this.xjgrglList = response.rows
+          this.total = response.total
+          this.loading = false
+        })
       },
       // 取消按钮
       cancel() {
-        this.open = false;
-        this.reset();
+        this.open = false
+        this.reset()
       },
       // 取消按钮
       cancelXQ() {
-        this.openXQ = false;
-        this.reset();
+        this.openXQ = false
+        this.reset()
       },
       // 表单重置
       reset() {
-        this.submitFormLoading = false;
-        let form={};
-        this.optData.forEach(items=>{
-          items.child.forEach(ite=>{
+        this.submitFormLoading = false
+        let form = {}
+        this.optData.forEach(items => {
+          items.child.forEach(ite => {
             // form[ite.key]=null;
-            form[ite.key]=ite.value
+            form[ite.key] = ite.value
           })
         })
-        this.form={...form};
-        this.resetForm("form");
+        this.form = { ...form }
+        this.resetForm('form')
       },
       /** 搜索按钮操作 */
       handleQuery() {
-        this.queryParams.pageNum = 1;
-        this.getList();
+        this.queryParams.pageNum = 1
+        this.getList()
       },
       /** 重置按钮操作 */
       resetQuery() {
-        this.daterangeBzrq = [];
-        this.resetForm("queryForm");
-        this.handleQuery();
+        this.daterangeBzrq = []
+        this.resetForm('queryForm')
+        this.handleQuery()
       },
       // 多选框选中数据
       handleSelectionChange(selection) {
@@ -378,70 +390,70 @@ import {addTb, delTb, getTb, listTb, updateTb, getJbxx, getCountByJgidTblx} from
       },
       /** 选择填报时段 */
       TBSDButton() {
-        this.innerVisible = true;
-        this.form={};
+        this.innerVisible = true
+        this.form = {}
         // this.open = true;
-        this.title = "添加财政报表";
+        this.title = '添加财政报表'
 
       },
       /** 新增按钮操作 */
       handleAdd() {
-        getCountByJgidTblx({tblx:this.form.tblx}).then(response => {
-          if(response>0){
-            this.$message.info("选择填报的类型已存在,请在表格内容里修改对应的信息");
-          }else{
-            this.innerVisible = false;
-            this.tempTblx = this.form.tblx;
-            this.reset();
+        getCountByJgidTblx({ tblx: this.form.tblx }).then(response => {
+          if (response > 0) {
+            this.$message.info('选择填报的类型已存在,请在表格内容里修改对应的信息')
+          } else {
+            this.innerVisible = false
+            this.tempTblx = this.form.tblx
+            this.reset()
             getJbxx().then(response => {
-              this.form = decryptData_ECB(response.data,["fddbr", "dh", "dz"], [1, 3, 4])
-              this.form.tblx = this.tempTblx;
-              this.form.gmjjhyfl='国民经济行业分类';
-              this.form.lx='社会福利院';
-            });
-            this.open = true;
-            this.title = "添加 "+  this.translateDict('CWTB003', this.tempTblx)  +" 财政报表";
+              this.form = decryptData_ECB(response.data, ['fddbr', 'dh', 'dz'], [1, 3, 4])
+              this.form.tblx = this.tempTblx
+              this.form.gmjjhyfl = '国民经济行业分类'
+              this.form.lx = '社会福利院'
+            })
+            this.open = true
+            this.title = '添加 ' + this.translateDict('CWTB003', this.tempTblx) + ' 财政报表'
           }
         })
       },
       /** 修改按钮操作 */
       handleUpdate(row) {
-        this.reset();
+        this.reset()
         const id = row.id || this.ids
         getTb(id).then(response => {
           // this.form=response.data
-          this.form = decryptData_ECB(response.data,["fddbr","dh", "dz"], [1, 3, 4])
+          this.form = decryptData_ECB(response.data, ['fddbr', 'dh', 'dz'], [1, 3, 4])
           /****** sks 需要改动的地方 start ******/
           this.copyForm = this.deepCopy(response.data)
           /****** sks 需要改动的地方 end ******/
-          this.open = true;
-          this.title = "修改财政报表";
-        });
+          this.open = true
+          this.title = '修改财政报表'
+        })
       },
       /** 提交按钮 */
       submitForm() {
-        this.$refs["form"].validate(valid => {
+        this.$refs['form'].validate(valid => {
           if (valid) {
-            this.submitFormLoading = true;
-            console.log(this.form,'<----this.form');
+            this.submitFormLoading = true
+            console.log(this.form, '<----this.form')
             if (this.form.id != null) {
               // if (this.checkXjgrForm()) {
               //   this.$modal.msgWarning("身份证号码与出生日期/性别不符!");
               //   this.beforeSubmit = true;
               // } else {
               /****** sks 需要改动的地方 start ******/
-              let formData = this.comparisonObject(this.form, this.copyForm);
+              let formData = this.comparisonObject(this.form, this.copyForm)
               if (formData) {
                 updateTb({ ...formData, id: this.form.id }).then(response => {
-                  this.$modal.msgSuccess("修改成功");
-                  this.open = false;
-                  this.xjgrglList = this.dataReplacement(this.xjgrglList, this.form.id, formData);
+                  this.$modal.msgSuccess('修改成功')
+                  this.open = false
+                  this.xjgrglList = this.dataReplacement(this.xjgrglList, this.form.id, formData)
                   // this.getList();
-                }).finally(() => this.submitFormLoading = false);
+                }).finally(() => this.submitFormLoading = false)
               } else {
-                this.$modal.msgSuccess("修改成功");
-                this.open = false;
-                this.submitFormLoading = false;
+                this.$modal.msgSuccess('修改成功')
+                this.open = false
+                this.submitFormLoading = false
               }
               // }
               /****** sks 需要改动的地方 end ******/
@@ -450,78 +462,80 @@ import {addTb, delTb, getTb, listTb, updateTb, getJbxx, getCountByJgidTblx} from
               //   this.$modal.msgWarning("身份证号码与出生日期/性别不符!");
               //   this.beforeSubmit = true;
               // } else {
-              addTb({ ...this.form}).then(response => {
-                this.$modal.msgSuccess("新增成功");
-                this.open = false;
+              addTb({ ...this.form }).then(response => {
+                this.$modal.msgSuccess('新增成功')
+                this.open = false
                 // this.getList();
                 /****** sks 需要改动的地方 start ******/
                 if (this.queryParams.pageSize === this.xjgrglList.length) {
-                  this.xjgrglList.pop();
+                  this.xjgrglList.pop()
                 }
-                this.xjgrglList.unshift({ ...this.form, id: response.data });
-                this.total++;
+                this.xjgrglList.unshift({ ...this.form, id: response.data })
+                this.total++
                 /****** sks 需要改动的地方 end ******/
-              }).finally(() => this.submitFormLoading = false);
+              }).finally(() => this.submitFormLoading = false)
               // }
             }
           }
-        });
+        })
       },
       /** 删除按钮操作 */
       handleDelete(row, index) {
-        const ids = row.id || this.ids;
-        const xh = (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1;
-        this.$modal.confirm('确认删除记录吗?').then(function () {
-          return delTb(ids);
+        const ids = row.id || this.ids
+        const xh = (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1
+        this.$modal.confirm('确认删除记录吗?').then(function() {
+          return delTb(ids)
         }).then(() => {
           // this.getList();
           /****** sks 需要改动的地方 ind参数需要传进来 start ******/
-          this.xjgrglList.splice(index, 1);
+          this.xjgrglList.splice(index, 1)
           if (this.xjgrglList.length === 0) {
-            this.getList();
+            this.getList()
           } else {
-            this.total--;
+            this.total--
           }
-          this.$modal.msgSuccess("删除成功");
+          this.$modal.msgSuccess('删除成功')
           /****** sks 需要改动的地方 end ******/
-        }).catch(() => { });
+        }).catch(() => {
+        })
       },
       changeXjgrSfzhm(value) {
         if (value.length == 18) {
-          this.form.csrq = value.substr(6, 8);
-          this.form.xb = Number(value.substr(16, 1)) % 2 == 0 ? Constant.woman : Constant.man;
+          this.form.csrq = value.substr(6, 8)
+          this.form.xb = Number(value.substr(16, 1)) % 2 == 0 ? Constant.woman : Constant.man
         }
       },
       checkXjgrForm() {
         if (this.form.csrq !== this.form.zjhm.substr(6, 8)) {
-          return true;
+          return true
         }
-        const xb = Number(this.form.zjhm.substr(16, 1)) % 2 == 0 ? Constant.woman : Constant.man;
+        const xb = Number(this.form.zjhm.substr(16, 1)) % 2 == 0 ? Constant.woman : Constant.man
         if (this.form.xb !== xb) {
-          return true;
+          return true
         }
-        return false;
+        return false
       },
       particulars(row) {
-        this.dataDetails = {};
+        this.dataDetails = {}
         getTb(row.id).then(response => {
-          this.dataDetails = decryptData_ECB(response.data, ["zjhm", "bbzrxm"], [2,1]);
-          this.openXQ = true;
-        });
-        this.form.id = row.id;
+          this.dataDetails = decryptData_ECB(response.data, ['zjhm', 'bbzrxm'], [2, 1])
+          this.openXQ = true
+        })
+        this.form.id = row.id
         // this.getList();
       },
       translateDict(type, value) {
         return this.selectDictLabel(this.dict.type[type], value)
-      },
+      }
     }
 
-  };
+  }
 </script>
 <style ref="stylesheet/scss" lang="scss" scoped>
-  ::v-deep .el-input__inner{
+  ::v-deep .el-input__inner {
     width: 220px;
   }
+
   .formBox {
     /*margin-left: 5%;*/
     /*width: 90%;*/
@@ -532,6 +546,7 @@ import {addTb, delTb, getTb, listTb, updateTb, getJbxx, getCountByJgidTblx} from
     flex-wrap: wrap;
     /*justify-content: space-between;*/
   }
+
   .flex-item {
     width: calc(100% / 3); /* 每个元素宽度为100% / 3 */
     box-sizing: border-box;
@@ -552,8 +567,18 @@ import {addTb, delTb, getTb, listTb, updateTb, getJbxx, getCountByJgidTblx} from
     margin-bottom: 10px;
   }
 
-  .dw ::v-deep .el-input__inner{
+  .dw ::v-deep .el-input__inner {
     width: 151px !important;
   }
+
+  .textStyle {
+    color: rgb(204, 51, 51);
+    position: absolute;
+    width: 400px;
+    bottom: -17px;
+    left: -407px;
+    text-align: right;
+    font-size: 12px;
+  }
 </style>