Przeglądaj źródła

Merge branch 'test'

gks 1 rok temu
rodzic
commit
751f093533

+ 9 - 0
src/api/norm/NORMFEE.js

@@ -44,6 +44,15 @@ export function updateNORMFEE(data) {
   })
 }
 
+// 修改指标计算公式
+export function updateFormulaById(data) {
+  return request({
+    url: '/normFee/updateFormulaById',
+    method: 'post',
+    data: data
+  })
+}
+
 // 删除指标权重明细
 export function delNORMFEE(id) {
   return request({

+ 9 - 1
src/api/portal/GATHER/GATHER.js

@@ -34,6 +34,14 @@ export function addGATHER(data) {
     data: data
   })
 }
+// 新增数据采集
+export function compute(data) {
+  return request({
+    url: '/gather/formula/compute',
+    method: 'post',
+    data: data
+  })
+}
 
 // 修改数据采集
 export function updateGATHER(data) {
@@ -78,7 +86,7 @@ export function setAudit(data) {
     url: '/gather/audit',
     method: 'post',
     params: data,
-    
+
   })
 }
 

+ 18 - 12
src/views/BONDEDUPPLY/index.vue

@@ -1,11 +1,14 @@
 <template>
   <div class="app-container">
-    <!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
+      <el-form-item label="录单单位名称">
+        <el-input v-model="queryParams.lddwmc"></el-input>
+      </el-form-item>
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
       </el-form-item>
-    </el-form> -->
+    </el-form>
 
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
@@ -105,6 +108,7 @@
         label="操作"
         align="center"
         class-name="small-padding fixed-width"
+        width="120px"
       >
         <template slot-scope="scope">
           <el-button
@@ -136,24 +140,26 @@
     />
 
     <!-- 添加或修改保税区供应链数据对话框 -->
-    <el-dialog
-      :title="title"
-      :visible.sync="open"
-      :close-on-click-modal="false"
-      width="35%"
-      append-to-body
-    >
-      <el-tabs v-model="activeName">
-        <el-tab-pane label="基本信息" name="first">
-          <el-form ref="forms" :model="form" :rules="rules" label-width="140px">
+    <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="65%" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="140px">
+        <el-row>
+          <el-col :span="12">
             <el-form-item label="录单单位名称" prop="lddwmc">
               <el-input v-model="form.lddwmc"></el-input>
             </el-form-item>
+          </el-col>
+          <el-col :span="12">
             <el-form-item label="进出口标志" prop="jckbz">
               <el-input v-model="form.jckbz"></el-input>
             </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row>
+          <el-col :span="12">
             <el-form-item label="进出口日期" prop="jckrq">
+              <!-- <el-input v-model="form.jckrq"></el-input> -->
               <el-date-picker
+                style="width: 100%"
                 v-model="form.jckrq"
                 type="date"
                 value-format="yyyy-MM-dd"

+ 257 - 113
src/views/GARDENBASEDATA/index.vue

@@ -132,11 +132,11 @@
       </el-table-column>
       <el-table-column label="经营期限至 " align="center" prop="jyqxz1">
       </el-table-column>
-      <el-table-column label="注册地址 " align="center" prop="zcdz">
+      <el-table-column label="注册地址 " align="center" prop="zcdz" show-overflow-tooltip>
       </el-table-column>
-      <el-table-column label="主营业务 " align="center" prop="zyyw">
+      <el-table-column label="主营业务 " align="center" prop="zyyw" show-overflow-tooltip>
       </el-table-column>
-      <el-table-column label="经营范围 " align="center" prop="jyfw">
+      <el-table-column label="经营范围 " align="center" prop="jyfw" show-overflow-tooltip>
       </el-table-column>
       <el-table-column label="企业资质 " align="center" prop="qyzz">
       </el-table-column>
@@ -212,12 +212,111 @@
       <el-tabs v-model="tabMsg" type="border-card">
         <el-tab-pane name="basicMsg" label="企业基本信息">
           <el-form ref="forms" :model="form" :rules="rules" label-width="180px">
-            <el-form-item label="法定代表人" prop="fddbr">
-              <el-input
-                v-model="form.fddbr"
-                placeholder="请输入法定代表人"
-              ></el-input>
-            </el-form-item>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="法定代表人" prop="fddbr">
+                  <el-input
+                    v-model="form.fddbr"
+                    placeholder="请输入法定代表人"
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="部门" prop="deptName">
+                  <el-select
+                    filterable
+                    v-model="form.deptName"
+                    @change="deptSelect"
+                    placeholder="请选择部门"
+                  >
+                    <el-option
+                      v-for="(item, index) in detpList"
+                      :key="index"
+                      :label="item.deptName"
+                      :value="index"
+                    >
+                    </el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="企业代表联系方式 " prop="qydblxfs">
+                  <el-input
+                    v-model="form.qydblxfs"
+                    placeholder="请输入企业代表联系方式 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="注册资金" prop="zczj">
+                  <el-input
+                    v-model="form.zczj"
+                    placeholder="请输入注册资金"
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="企业类型 " prop="qylx">
+                  <el-input
+                    v-model="form.qylx"
+                    placeholder="请输入企业类型 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="经营状态 " prop="jyzt">
+                  <el-input
+                    v-model="form.jyzt"
+                    placeholder="请输入经营状态 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="统一社会信用代码 " prop="shtyxydm">
+                  <el-input
+                    v-model="form.shtyxydm"
+                    placeholder="请输入统一社会信用代码 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="人员规模" prop="rygm">
+                  <el-input
+                    v-model="form.rygm"
+                    placeholder="请输入人员规模"
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="成立日期 " prop="clrq">
+                  <!-- <el-input  v-model="form.clrq" placeholder="请输入成立日期 "></el-input> -->
+                  <el-date-picker
+                    value-format="yyyy-MM-dd"
+                    @change="setUpTimeSelect"
+                    v-model="form.clrq"
+                    type="date"
+                    placeholder="选择日期"
+                  >
+                  </el-date-picker>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="注册地址 " prop="zcdz">
+                  <el-input
+                    v-model="form.zcdz"
+                    placeholder="请输入注册地址 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
 
             <el-form-item label="部门" prop="deptName">
               <el-select
@@ -304,110 +403,151 @@
         <!-- 额外信息 -->
         <el-tab-pane name="extraMsg" label="额外信息">
           <el-form ref="form" :model="form" :rules="rules" label-width="180px">
-            <el-form-item label="控股企业 " prop="kgqy">
-              <el-input
-                v-model="form.kgqy"
-                placeholder="请输入控股企业 "
-              ></el-input>
-            </el-form-item>
-
-            <el-form-item label="行业大类 " prop="hydl">
-              <el-input
-                v-model="form.hydl"
-                placeholder="请输入行业大类 "
-              ></el-input>
-            </el-form-item>
-            <el-form-item label="行业小类 " prop="hyxl">
-              <el-input
-                v-model="form.hyxl"
-                placeholder="请输入行业小类 "
-              ></el-input>
-            </el-form-item>
-
-            <el-form-item label="是否外资企业 " prop="sfwzqy">
-              <el-input
-                v-model="form.sfwzqy"
-                placeholder="请输入是否外资企业 "
-              ></el-input>
-            </el-form-item>
-
-            <el-form-item label="企业海关编码 " prop="qyhgbm">
-              <el-input
-                v-model="form.qyhgbm"
-                placeholder="请输入企业海关编码 "
-              ></el-input>
-            </el-form-item>
-
-            <el-form-item label="投产时间 " prop="tcsj">
-              <!-- <el-input  v-model="form.tcsj" placeholder="请输入投产时间 "></el-input> -->
-              <el-date-picker
-                value-format="yyyy-MM-dd"
-                @change="putTimeSelect"
-                v-model="form.tcsj"
-                type="date"
-                placeholder="选择日期"
-              >
-              </el-date-picker>
-            </el-form-item>
-            <el-form-item label="经营期限自 " prop="jyqxz">
-              <el-input
-                v-model="form.jyqxz"
-                placeholder="请输入经营期限自 "
-              ></el-input>
-            </el-form-item>
-            <el-form-item label="经营期限至 " prop="jyqxz1">
-              <el-input
-                v-model="form.jyqxz1"
-                placeholder="请输入经营期限至 "
-              ></el-input>
-            </el-form-item>
-
-            <el-form-item label="主营业务 " prop="zyyw">
-              <el-input
-                v-model="form.zyyw"
-                placeholder="请输入主营业务 "
-              ></el-input>
-            </el-form-item>
-
-            <el-form-item label="企业资质  " prop="qyzz">
-              <el-input
-                v-model="form.qyzz"
-                placeholder="请输入企业资质  "
-              ></el-input>
-            </el-form-item>
-            <el-form-item label="主要市场  " prop="zysc">
-              <el-input
-                v-model="form.zysc"
-                placeholder="请输入主要市场  "
-              ></el-input>
-            </el-form-item>
-            <el-form-item label="一般纳税人情况  " prop="ybnsrqk">
-              <el-input
-                v-model="form.ybnsrqk"
-                placeholder="请输入一般纳税人情况  "
-              ></el-input>
-            </el-form-item>
-            <el-form-item label="国家级奖项、发明专利   " prop="gjjjxfmzl">
-              <el-input
-                v-model="form.gjjjxfmzl"
-                placeholder="请输入国家级奖项、发明专利   "
-              ></el-input>
-            </el-form-item>
-            <el-form-item label="AEO情况   " prop="aeoqk">
-              <el-input
-                v-model="form.aeoqk"
-                placeholder="请输入AEO情况   "
-              ></el-input>
-            </el-form-item>
-            <el-form-item
-              label="检测、服务外包、文化服务创新   "
-              prop="jcfwwbwhfwcx"
-            >
-              <el-input
-                v-model="form.jcfwwbwhfwcx"
-                placeholder="请输入检测、服务外包、文化服务创新   "
-              ></el-input>
-            </el-form-item>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="控股企业 " prop="kgqy">
+                  <el-input
+                    v-model="form.kgqy"
+                    placeholder="请输入控股企业 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="行业大类 " prop="hydl">
+                  <el-input
+                    v-model="form.hydl"
+                    placeholder="请输入行业大类 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="行业小类 " prop="hyxl">
+                  <el-input
+                    v-model="form.hyxl"
+                    placeholder="请输入行业小类 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="是否外资企业 " prop="sfwzqy">
+                  <el-input
+                    v-model="form.sfwzqy"
+                    placeholder="请输入是否外资企业 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="企业海关编码 " prop="qyhgbm">
+                  <el-input
+                    v-model="form.qyhgbm"
+                    placeholder="请输入企业海关编码 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="投产时间 " prop="tcsj">
+                  <!-- <el-input  v-model="form.tcsj" placeholder="请输入投产时间 "></el-input> -->
+                  <el-date-picker
+                    value-format="yyyy-MM-dd"
+                    @change="putTimeSelect"
+                    v-model="form.tcsj"
+                    type="date"
+                    placeholder="选择日期"
+                  >
+                  </el-date-picker>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="经营期限自 " prop="jyqxz">
+                  <el-input
+                    v-model="form.jyqxz"
+                    placeholder="请输入经营期限自 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="经营期限至 " prop="jyqxz1">
+                  <el-input
+                    v-model="form.jyqxz1"
+                    placeholder="请输入经营期限至 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="主营业务 " prop="zyyw">
+                  <el-input
+                    v-model="form.zyyw"
+                    placeholder="请输入主营业务 "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="企业资质  " prop="qyzz">
+                  <el-input
+                    v-model="form.qyzz"
+                    placeholder="请输入企业资质  "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="主要市场  " prop="zysc">
+                  <el-input
+                    v-model="form.zysc"
+                    placeholder="请输入主要市场  "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="一般纳税人情况  " prop="ybnsrqk">
+                  <el-input
+                    v-model="form.ybnsrqk"
+                    placeholder="请输入一般纳税人情况  "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item label="国家级奖项、发明专利   " prop="gjjjxfmzl">
+                  <el-input
+                    v-model="form.gjjjxfmzl"
+                    placeholder="请输入国家级奖项、发明专利   "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="AEO情况   " prop="aeoqk">
+                  <el-input
+                    v-model="form.aeoqk"
+                    placeholder="请输入AEO情况   "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="12">
+                <el-form-item
+                  label="检测、服务外包、文化服务创新   "
+                  prop="jcfwwbwhfwcx"
+                >
+                  <el-input
+                    v-model="form.jcfwwbwhfwcx"
+                    placeholder="请输入检测、服务外包、文化服务创新   "
+                  ></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12"></el-col>
+            </el-row>
           </el-form>
         </el-tab-pane>
       </el-tabs>
@@ -774,3 +914,7 @@ export default {
   },
 };
 </script>
+
+<style>
+.el-tooltip__popper{font-size: 14px; max-width:40% }/* 设置显示隐藏部分内容,按40%显示 */
+</style>

+ 33 - 11
src/views/GATHER/index.vue

@@ -247,7 +247,7 @@
             v-if="scope.row.approveStatus == 0 && scope.row.approveTime == null"
             >未审核</span
           >
-          
+
           <span v-if="scope.row.approveStatus == 1">审核通过</span>
           <span v-if="scope.row.approveStatus == 2">审核拒绝</span>
         </template>
@@ -474,7 +474,7 @@
           <template v-for="listItem in form.feeLists">
             <el-form
               v-if="listItem.normId == item.normId"
-              :rules="validatorList(listItem.normfeeName)"
+              :rules="validatorList(listItem.normfeeCode,listItem.normfeeName)"
               :model="listItem"
               :ref="'form' + listItem.normfeeId"
               :key="listItem.normfeeId"
@@ -669,6 +669,7 @@
 <script>
 import { getInfo } from "@/api/login.js";
 import {
+  compute,
   listGATHER,
   getGATHER,
   delGATHER,
@@ -825,10 +826,29 @@ export default {
         callback();
       }
     },
-    validatorList(name) {
+    validatorList(code,name) {
       if (typeof name != "string") return;
 
-      if (
+      if(code == 'A001' || code == 'A002' || code == 'A003' || code == 'A004' || code == 'A005' || code == 'A006' || code == 'A007' || code == 'A008' ||
+        code == 'C002' || code == 'C003' || code == 'D001' ||
+        code == 'E001' || code == 'E002' || code == 'E003' || code == 'E004' ||
+        code == 'F001' || code == 'F002'
+      ) {
+        return {
+          collCalue: [
+            { required: true, message: "不能为空", trigger: "blur" },
+            { trigger: "blur", validator: this.validatorFloatNum },
+          ],
+        };
+      } else if(code == 'A009' || code == 'A010') {
+        return {
+          collCalue: [
+            { required: true, message: "不能为空", trigger: "blur" },
+            { pattern: /^[1-9]\d*$/, message: "请输入正整数", trigger: "blur" },
+          ],
+        };
+      }
+      /*if (
         name.includes("增幅") ||
         name.includes("验收率") ||
         name.includes("开发率") ||
@@ -840,7 +860,7 @@ export default {
             { trigger: "blur", validator: this.validatorFloatNum },
           ],
         };
-      }
+      }*/
 
       // if (name == '期末单位面积企业从业人员' || name == '活跃企业数' || name == '期末企业从业人员') {
       //   return {
@@ -857,7 +877,7 @@ export default {
       //     ]
       //   };
       // }
-      switch (name) {
+      /*switch (name) {
         case "期末单位面积企业从业人员":
         case "活跃企业数":
         case "期末企业从业人员":
@@ -881,7 +901,7 @@ export default {
             ],
           };
           break;
-      }
+      }*/
     },
     importFile(param) {
       let title = param.mark == "1" ? "海关一般数据导入" : "海关特殊数据导入";
@@ -1168,7 +1188,7 @@ export default {
       });
     },
 
-   
+
     handleAudit(row) {
       let data = {
         type: "1",
@@ -1274,9 +1294,11 @@ export default {
         .then(() => {
           if (type == "add") {
             addGATHER(this.form).then((response) => {
-              this.$modal.msgSuccess("录入成功");
-              this.open = false;
-              this.getList();
+              compute(this.form).then((response) => {
+                this.$modal.msgSuccess("录入成功");
+                this.open = false;
+                this.getList();
+              });
             });
           } else if (type == "edit") {
             updateGATHER(this.form).then((response) => {

+ 1 - 1
src/views/RightDistribution/index.vue

@@ -103,7 +103,7 @@
           <!-- </el-link> -->
         </template>
       </el-table-column>
-      <el-table-column label="指标分类编号" align="center" prop="feeId">
+      <el-table-column label="指标编号" align="center" prop="feeId">
       </el-table-column>
       <el-table-column label="排序" align="center" prop="senId">
       </el-table-column>

+ 52 - 2
src/views/norm/feeindex.vue

@@ -81,6 +81,22 @@
           width="150"
         />
         <el-table-column
+          label="指标编码"
+          align="center"
+          prop="fcode"
+          width="150"
+        />
+        <el-table-column
+          label="计算公式"
+          align="center"
+          prop="formula"
+          width="150"
+        >
+          <template slot-scope="scope">
+            <el-link style="text-decoration: underline;color: #36aafd" @click="formulaDialog(scope.row.id,scope.row.formula)">{{scope.row.formula}}</el-link>
+          </template>
+        </el-table-column>
+        <el-table-column
           label="计量单位"
           align="center"
           prop="funit_dictText"
@@ -164,6 +180,13 @@
               v-hasPermi="['business:NORMFEE:remove']"
               >删除</el-button
             >
+            <el-button
+              size="mini"
+              type="text"
+              icon="el-icon-edit"
+              @click="formulaDialog(scope.row.id,scope.row.formula)"
+              v-hasPermi="['business:NORMFEE:edit']"
+            >计算公式</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -248,6 +271,9 @@
         </div>
       </el-dialog>
     </div>
+
+    <formula @closeFormulaHandler="closeFormulaHandler" @dataFormulaHandler="dataFormulaHandler" :id="id" :normId="normId" reset :isShowFormulaDialog="isShowFormulaDialog" />
+
   </el-dialog>
 </template>
 
@@ -259,6 +285,7 @@ import {
   addNORMFEE,
   updateNORMFEE,
 } from "@/api/norm/NORMFEE";
+import formula from './formula';
 
 import { listData } from "@/api/system/dict/data";
 
@@ -266,6 +293,9 @@ import { formatDate } from "@/utils/index";
 
 export default {
   name: "NORMFEE",
+  components: {
+    formula
+  },
   props: {
     isShowNormDialog: {
       type: Boolean,
@@ -311,7 +341,8 @@ export default {
       showSearch: true,
       // 总条数
       total: 0,
-
+      isShowFormulaDialog: false,
+      id: '',
       // 弹出层标题
       title: "",
       // 是否显示弹出层
@@ -388,10 +419,27 @@ export default {
     this.getList();
   },
   methods: {
+    formulaDialog(id,formula) {
+      this.isShowFormulaDialog = true;
+      this.id = id;
+    },
+    dataFormulaHandler(data) {
+      this.isShowFormulaDialog = false;
+      console.log("dataHandler111",data)
+      this.queryParams.normId = data;
+      console.log("11111111111",this.queryParams)
+      listNORMFEE(this.queryParams).then((response) => {
+        response.rows.forEach((item, index) => {
+          response.rows[index].status = item.status == 0 ? false : true;
+        });
+        this.normData = response.rows;
+      });
+    },
     /** 查询指标权重明细列表 */
     getList() {
       this.loading = true;
       this.queryParams.normId = this.normId;
+      console.log("11111111111",this.queryParams)
       listNORMFEE(this.queryParams).then((response) => {
         response.rows.forEach((item, index) => {
           response.rows[index].status = item.status == 0 ? false : true;
@@ -571,7 +619,9 @@ export default {
     closeHandler() {
       this.$emit("closeHandler");
     },
-
+    closeFormulaHandler() {
+      this.isShowFormulaDialog = false;
+    },
     // 选择单位处理
     selUnitHandler(val) {
       this.form.funit = val;

+ 357 - 0
src/views/norm/formula.vue

@@ -0,0 +1,357 @@
+<template>
+  <el-dialog title="编辑计算公式" width="700px"
+             :visible.sync="isShowFormulaDialog"
+             :before-close="closeFormulaHandler"
+             @close="close"
+  >
+    <el-form ref="add_metadata_form" label-width="50px" :model="add_metadata_form" :rules="add_metadata_rules">
+
+      <!--设置等式中指标元素的样式-->
+      <div class="outside_border">
+        <div class="fee">指标元素
+          <el-button size="mini" class="fee_button" @click="input">
+            <i class="el-icon-plus" style="color: white;font-weight: bolder;display: flex;justify-content: center;align-items: center"></i>
+          </el-button>
+        </div>
+
+        <!--设置指标元素下拉框空白部分(默认显示添加下拉框之后隐藏)-->
+        <div style="height: 30px;" v-show="feeBoxShow"></div>
+
+        <!--设置指标元素下拉框的效果(默认隐藏点击添加按钮之后显示)-->
+        <div v-for="(item,index) in inputData" :key="item.id" v-show="add_metadata_inside_select" class="fee_inside_style">
+          <el-form-item :label="item.id">
+            <el-select style="width: 400px;" v-model="addMetadataSelect[index]" value-key="id" @change="metadataSelect(addMetadataSelect[index])">
+              <el-option v-for="(inside_item,index) in  NORMFEEList" :key="index" :value="inside_item.fcode" :label="inside_item.fname"></el-option>
+            </el-select>
+          </el-form-item>
+        </div>
+      </div>
+      <br/>
+
+      <!--设置计算公式的样式-->
+      <div class="outside_border">
+        <div class="add_metadata_left">计算公式</div>
+        <div style="display:flex;justify-content: space-around;margin: 15px">
+          <el-input class="input-border-style" id="number_input" v-model="number_input" :readonly="true"/>
+          <el-button type="danger" style="margin: 0 10px;" @click="number_input_delete">回删</el-button>
+        </div>
+
+        <!--实现新增统计指标弹窗计算公式的按钮方法-->
+        <div>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(1)">
+            <span class="add_metadata_compute_number">1</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(2)">
+            <span class="add_metadata_compute_number">2</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(3)">
+            <span class="add_metadata_compute_number">3</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(4)">
+            <span class="add_metadata_compute_number">4</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(5)">
+            <span class="add_metadata_compute_number">5</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(6)">
+            <span class="add_metadata_compute_number">6</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(7)">
+            <span class="add_metadata_compute_number">7</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(8)">
+            <span class="add_metadata_compute_number">8</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(9)">
+            <span class="add_metadata_compute_number">9</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(0)">
+            <span class="add_metadata_compute_number">0</span>
+          </el-button>
+          <br/>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc('(')">
+            <span class="add_metadata_compute_number">(</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc(')')">
+            <span class="add_metadata_compute_number">)</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc('+')">
+            <span class="add_metadata_compute_number">+</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc('-')">
+            <span class="add_metadata_compute_number">-</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc('*')">
+            <span class="add_metadata_compute_number">*</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc('/')">
+            <span class="add_metadata_compute_number">/</span>
+          </el-button>
+          <el-button size="mini" class="add_metadata_right_outside_button" @click="calc('.')">
+            <span class="add_metadata_compute_number">.</span>
+          </el-button>
+          <br/>
+
+          <div style="display: flex;flex-wrap: wrap">
+            <div v-show="add_metadata_inside_select">
+              <el-button size="mini" class="add_metadata_right_outside_cell_button"
+                         v-for="(item,index) in inputData"
+                         :key="index"
+                         @click="cell(addMetadataSelect[index])"
+              >
+                <span class="add_metadata_compute_number">{{ item.id }}</span>
+              </el-button>
+            </div>
+          </div>
+
+          <el-button type="danger" class="clear_compute" @click="clear_compute_btn">清空计算公式</el-button>
+        </div>
+      </div>
+
+    </el-form>
+
+    <div slot="footer" class="dialog-footer">
+      <el-button type="primary" @click="submit">确 定</el-button>
+      <el-button @click="cancel">取 消</el-button>
+    </div>
+  </el-dialog>
+</template>
+
+<script>
+  import { listNORMFEE, updateFormulaById } from "@/api/norm/NORMFEE";
+  export default {
+    name: 'formula',
+    data() {
+      return {
+        // 存放新增统计指标弹窗等式右边元素的添加按钮数据
+        inputData: [],
+        // 存放新增统计指标弹窗计算公式的选中下拉框对应的code数据
+        metadataCode: '',
+        // 存放新增统计指标弹窗计算公式的选中下拉框对应的name数据
+        metadataName: '',
+        // 存放新增统计指标弹窗计算公式的选中下拉框对应的code和name数据
+        add_metadata_name_and_code: [],
+        // 新增指标信息弹窗等式右边元素的下拉框递增
+        dataNum: 1,
+        // 新增指标元素的下拉框默认隐藏
+        add_metadata_inside_select: false,
+        feeBoxShow: true,
+        // 修改指标信息的标题
+        update_metadata_title: '',
+        // 修改指标信息的弹窗
+        update_metadata_open: false,
+        // 存放新增指标信息的表单数据
+        add_metadata_form: {},
+        // 存放新增统计指标计算公式输入框的值
+        number_input: '',
+        // 存放新增统计指标计算公式输入框的值(name)
+        no_show_number_input: '',
+        // 存放修改指标信息的表单数据
+        update_metadata_form: {},
+        // 新增添加指标弹窗等式右边元素的下拉框
+        NORMFEEList: [],
+        addMetadataSelect: [],
+        metadataList: [],
+        // 新增指标信息的校验方法
+        add_metadata_rules: {
+          statistical_object_name: [{ required: true, message: '请输入指标名称', trigger: 'blur' }],
+          name_code: [{ required: true, message: '请输入编号', trigger: 'blur' }],
+          unit: [{ required: true, message: '请输入单位', trigger: 'blur' }]
+        },
+      }
+    },
+    props: {
+      isShowFormulaDialog: {
+        type: Boolean,
+        default: () => {
+          return false;
+        },
+      },
+      id: {
+        type: String,
+        defaultL: () => {
+          return null;
+        },
+      },
+      normId: {
+        type: String,
+        default: () => {
+          return null;
+        },
+      },
+    },
+    mounted() {
+      listNORMFEE().then((response) => {
+        response.rows.forEach((item, index) => {
+          response.rows[index].status = item.status == 0 ? false : true;
+        });
+        this.NORMFEEList = response.rows;
+      });
+    },
+    methods: {
+      close () {
+        this.addMetadataSelect = [];
+        this.no_show_number_input = '';
+      },
+      // 关闭Dialog窗口
+      closeFormulaHandler() {
+        this.$emit("closeFormulaHandler");
+      },
+      cancel() {
+        this.isShowFormulaDialog = false;
+      },
+      // 回删功能
+      number_input_delete() {
+        this.number_input = this.number_input.replace(/.$/, '')
+        this.no_show_number_input = this.no_show_number_input.replace(/.$/, '')
+      },
+      // 指标元素下拉框的改变方法
+      metadataSelect(val) {
+        console.log("111111111",val)
+        let metadataCode = ''
+        let metadataName = ''
+        let metadataId = ''
+        for (let i = 0; i < this.inputData.length; i++) {
+          for (let j = 0; j < this.inputData[i].data.length; j++) {
+            if (val == this.inputData[i].data[j].fname) {
+              metadataCode = (this.inputData[i].data[j].fcode)
+              metadataName = (this.inputData[i].data[j].fname)
+              metadataId = (this.inputData[i].id)
+            }
+          }
+        }
+        this.metadataCode = metadataCode
+        this.metadataName = metadataName
+        this.add_metadata_name_and_code = [{
+          name: this.metadataName,
+          code: this.metadataCode,
+          id: metadataId
+        }]
+      },
+      // 计算公式的按钮方法
+      calc(number) {
+        this.number_input = this.number_input + number
+        this.no_show_number_input = this.no_show_number_input + number
+      },
+      // 新增选择下拉框对应的按钮方法
+      cell(data) {
+        console.log("22222222",data)
+        // 拿到对应的编码
+        let select_data_code = ''
+        // 拿到对应的名称
+        let select_data_name = ''
+        for (let i = 0; i < this.NORMFEEList.length; i++) {
+          if (data == this.NORMFEEList[i].fcode) {
+            select_data_code = (this.NORMFEEList[i].fcode)
+            select_data_name = (this.NORMFEEList[i].fname)
+          }
+        }
+        this.number_input = this.number_input  + select_data_name
+        this.no_show_number_input = this.no_show_number_input + select_data_code
+
+      },
+      // 实现指标元素添加输入框的按钮
+      input() {
+        this.feeBoxShow = false
+        this.add_metadata_inside_select = true
+        this.inputData.push({
+          id: 'cell' + this.dataNum++,
+          data: this.metadataList
+        })
+      },
+      // 清空计算公式的按钮实现
+      clear_compute_btn() {
+        this.number_input = ''
+        this.no_show_number_input = ''
+      },
+      // 实现新增指标信息弹窗的确定按钮方法
+      submit() {
+        this.$refs['add_metadata_form'].validate(valid => {
+          if (valid) {
+            // 拿到下拉框的全部数据
+            console.log("33333",this.addMetadataSelect)
+            //拿到输入框的数据
+            console.log("444444",this.no_show_number_input,"555555",this.id)
+            updateFormulaById({formula: this.no_show_number_input, id: this.id}).then((response) => {
+              this.$emit("dataFormulaHandler",this.normId);
+              this.$modal.msgSuccess("修改成功");
+              this.addMetadataSelect = [];
+              this.number_input = '';
+              this.no_show_number_input = '';
+            });
+          }
+        })
+
+      },
+    }
+  }
+</script>
+
+<style scoped>
+  /*设置新增添加指标弹窗的表格外边框样式*/
+  .outside_border {
+    border: 1px solid #c7c6c6;
+    border-radius: 5px
+  }
+  /*设置新增添加指标弹窗的表格等式右边元素的样式*/
+  .fee {
+    background-color: #f5f1f1;
+    height: 50px;
+    padding: 10px
+  }
+  /*设置新增统计指标弹窗的等式右边元素添加按钮的样式*/
+  .fee_button {
+    margin: 0 5px;
+    background: rgb(64, 142, 186);
+    width: 20px;
+  }
+
+
+  /*设置新增添加指标弹窗的表格等式左边元素的样式*/
+  .add_metadata_left {
+    background-color: #f5f1f1;
+    height: 40px;
+    padding: 10px;
+    border-radius: 5px
+  }
+
+
+
+
+  /*设置新增统计指标弹窗的计算公式按钮外部的样式*/
+  .add_metadata_right_outside_button {
+    background: rgb(64, 142, 186);
+    width: 20px;
+    margin: 10px 13px;
+  }
+
+  /*设置新增统计指标弹窗的计算公式按钮cell的样式*/
+  .add_metadata_right_outside_cell_button {
+    background: rgb(64, 142, 186);
+    width: 50px;
+    margin: 10px 13px;
+  }
+
+  /*设置新增统计指标弹窗的等式右边元素下拉框的外部样式的样式*/
+  .fee_inside_style {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    margin: 15px;
+  }
+
+  /*设置新增统计指标弹窗的计算公式的按钮*/
+  .add_metadata_compute_number {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    color: white
+  }
+
+  /*设置新增统计指标弹窗的计算公式的清空计算公式的样式*/
+  .clear_compute {
+    width: 535px;
+    margin: 12px
+  }
+
+</style>