Koishi hace 1 mes
padre
commit
a1eff13f9e
Se han modificado 2 ficheros con 635 adiciones y 324 borrados
  1. 178 0
      src/views/nxReport/scrbTest/fakeData.json
  2. 457 324
      src/views/nxReport/scrbTest/scrbCallback.vue

+ 178 - 0
src/views/nxReport/scrbTest/fakeData.json

@@ -0,0 +1,178 @@
+{
+    "fdl_plan": {
+        "all_bq": 61.2903,
+        "all_month": 1900.0,
+        "all_year": 24000.0,
+        "project1_bq": 30.6452,
+        "project1_month": 950.0,
+        "project1_year": 12000.0,
+        "project2_bq": 30.6452,
+        "project2_month": 950.0,
+        "project2_year": 12000.0
+    },
+    "fdl_actual": {
+        "all_bq": 46.2816,
+        "all_month": 1723.5331,
+        "all_year": 1723.5331,
+        "project1_bq": 15.4114,
+        "project1_month": 864.6363,
+        "project1_year": 864.6363,
+        "project2_bq": 30.8702,
+        "project2_month": 858.8968,
+        "project2_year": 858.8968
+    },
+    "lyxss": {
+        "all_bq": 4.6282,
+        "all_month": 172.3533,
+        "all_year": 172.3533,
+        "project1_bq": 3.0823,
+        "project1_month": 172.9273,
+        "project1_year": 172.9273,
+        "project2_bq": 6.174,
+        "project2_month": 171.7794,
+        "project2_year": 171.7794
+    },
+    "pjfs": {
+        "all_bq": 4.5451,
+        "all_month": 6.4064,
+        "all_year": 5.7475,
+        "project1_bq": 4.2535,
+        "project1_month": 6.3896,
+        "project1_year": 5.5364,
+        "project2_bq": 4.8366,
+        "project2_month": 6.4231,
+        "project2_year": 5.9585
+    },
+    "swdl": {
+        "all_bq": 45.099,
+        "all_month": 1688.277,
+        "all_year": 1688.277,
+        "project1_bq": null,
+        "project1_month": null,
+        "project1_year": null,
+        "project2_bq": null,
+        "project2_month": null,
+        "project2_year": null
+    },
+    "wgdl": {
+        "all_bq": 0.22,
+        "all_month": 1.977,
+        "all_year": 1.977,
+        "project1_bq": null,
+        "project1_month": null,
+        "project1_year": null,
+        "project2_bq": null,
+        "project2_month": null,
+        "project2_year": null
+    },
+    "xdli": {
+        "all_bq": 0.2132,
+        "all_month": 202.4334,
+        "all_year": 202.4334,
+        "project1_bq": 0.1489,
+        "project1_month": 105.0856,
+        "project1_year": 105.0856,
+        "project2_bq": 0.0644,
+        "project2_month": 97.3477,
+        "project2_year": 97.3477
+    },
+    "xdlv": {
+        "all_bq": 0.4585,
+        "all_month": 10.5107,
+        "all_year": 10.5107,
+        "project1_bq": 0.9569,
+        "project1_month": 10.8367,
+        "project1_year": 10.8367,
+        "project2_bq": 0.2082,
+        "project2_month": 10.1802,
+        "project2_year": 10.1802
+    },
+    "gzss": {
+        "all_bq": 0.1096,
+        "all_month": 2.86,
+        "all_year": 2.86,
+        "project1_bq": 0.1092,
+        "project1_month": 0.1092,
+        "project1_year": 0.1092,
+        "project2_bq": 4.0E-4,
+        "project2_month": 2.7508,
+        "project2_year": 2.7508
+    },
+    "djss": {
+        "all_bq": 0.1082,
+        "all_month": 0.9694,
+        "all_year": 0.9694,
+        "project1_bq": 0.0766,
+        "project1_month": 0.1939,
+        "project1_year": 0.1939,
+        "project2_bq": 0.0316,
+        "project2_month": 0.7755,
+        "project2_year": 0.7755
+    },
+    "slss": {
+        "all_bq": 0.0,
+        "all_month": 0.0,
+        "all_year": 0.0,
+        "project1_bq": 0.0,
+        "project1_month": 0.1103,
+        "project1_year": 0.1103,
+        "project2_bq": 0.0,
+        "project2_month": 0.0,
+        "project2_year": 0.0
+    },
+    "cydli": {
+        "all_bq": 0.4,
+        "all_month": 7.17,
+        "all_year": 7.17,
+        "project1_bq": null,
+        "project1_month": null,
+        "project1_year": null,
+        "project2_bq": null,
+        "project2_month": null,
+        "project2_year": null
+    },
+    "cydlv": {
+        "all_bq": 0.8643,
+        "all_month": 0.416,
+        "all_year": 0.416,
+        "project1_bq": null,
+        "project1_month": null,
+        "project1_year": null,
+        "project2_bq": null,
+        "project2_month": null,
+        "project2_year": null
+    },
+    "zhcydli": {
+        "all_bq": 1.4026,
+        "all_month": 37.2331,
+        "all_year": 37.2331,
+        "project1_bq": null,
+        "project1_month": null,
+        "project1_year": null,
+        "project2_bq": null,
+        "project2_month": null,
+        "project2_year": null
+    },
+    "zhcydlv": {
+        "all_bq": 3.0306,
+        "all_month": 2.1603,
+        "all_year": 2.1603,
+        "project1_bq": null,
+        "project1_month": null,
+        "project1_year": null,
+        "project2_bq": null,
+        "project2_month": null,
+        "project2_year": null
+    },
+    "sbklyl": {
+        "all_bq": 99.7138,
+        "all_month": 99.8773,
+        "all_year": 99.8773,
+        "project1_bq": 99.4665,
+        "project1_month": 99.9719,
+        "project1_year": 99.9719,
+        "project2_bq": 99.961,
+        "project2_month": 99.7826,
+        "project2_year": 99.7826
+    }
+}

+ 457 - 324
src/views/nxReport/scrbTest/scrbCallback.vue

@@ -15,113 +15,173 @@
           </el-date-picker>
         </div>
         <div class="but">
-          <el-button type="primary" round size="mini">查询</el-button>
-          <el-button type="warning" round size="mini">保存</el-button>
-          <el-button
+          <el-button type="primary" round size="mini" @click="getTableData"
+            >查询</el-button
+          >
+          <el-button type="warning" round size="mini" @click="save"
+            >保存</el-button
+          >
+          <!-- <el-button
             round
             size="mini"
             type="danger"
             @click="exportPDFop"
             :loading="loading"
             >导出
-          </el-button>
+          </el-button> -->
         </div>
       </div>
     </div>
     <div class="main_bot">
-      <h2>新能源分公司生产日报 {{reportParamDate}}</h2>
+      <h2>新能源分公司生产日报 {{ reportParamDate }}</h2>
       <div class="callbackTable warn-table">
-        <el-table :data="tableData" border style="width: 100%;">
+        <el-table :data="tableData" border style="width: 100%">
           <el-table-column label="生产指标完成情况" align="center">
             <!-- 主要指标列 -->
-            <el-table-column prop="indicator" label="主要指标" width="300" />
+            <el-table-column prop="prop" label="主要指标" width="300" />
             <!-- 风电合计(惠安全场) -->
             <el-table-column label="风电合计" align="center">
               <el-table-column label="惠安全场" align="center">
-                <el-table-column prop="total_current" label="本期" >
+                <el-table-column prop="all_bq" label="本期" align="center">
                   <template #default="scope">
                     <span v-if="showInput(scope.row, arrColumn1)">
-                      <el-input-number v-model="scope.row.total_current" :min="1" />
-                      </span>
-                    <span v-else>{{scope.row.total_current}}</span>
+                      <el-input-number
+                        class="currentInputNumber"
+                        size="small"
+                        v-model="scope.row.all_bq"
+                      />
+                    </span>
+                    <span v-else>{{ scope.row.all_bq }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column prop="total_month" label="月累/均">
+                <el-table-column
+                  prop="all_month"
+                  label="月累/均"
+                  align="center"
+                >
                   <template #default="scope">
                     <span v-if="showInput(scope.row, arrColumn2)">
-                      <el-input-number v-model="scope.row.total_month" :min="1" />
-                      </span>
-                    <span v-else>{{scope.row.total_month}}</span>
+                      <el-input-number
+                        class="currentInputNumber"
+                        size="small"
+                        v-model="scope.row.all_month"
+                      />
+                    </span>
+                    <span v-else>{{ scope.row.all_month }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column prop="total_year" label="年累/均">
+                <el-table-column prop="all_year" label="年累/均" align="center">
                   <template #default="scope">
-                        <span v-if="showInput(scope.row, arrColumn3)">
-                          <el-input-number v-model="scope.row.total_year" :min="1" />
-                          </span>
-                        <span v-else>{{scope.row.total_year}}</span>
-                      </template>
+                    <span v-if="showInput(scope.row, arrColumn3)">
+                      <el-input-number
+                        class="currentInputNumber"
+                        size="small"
+                        v-model="scope.row.all_year"
+                      />
+                    </span>
+                    <span v-else>{{ scope.row.all_year }}</span>
+                  </template>
                 </el-table-column>
               </el-table-column>
               <!-- 一期风机 -->
               <el-table-column label="一期风机" align="center">
-                <el-table-column prop="phase1_current" label="本期">
+                <el-table-column prop="project1_bq" label="本期" align="center">
                   <template #default="scope">
                     <span v-if="showInput(scope.row, arrColumn4)">
-                      <el-input-number v-model="scope.row.phase1_current" :min="1" />
-                      </span>
-                    <span v-else>{{scope.row.phase1_current}}</span>
+                      <el-input-number
+                        class="currentInputNumber"
+                        size="small"
+                        v-model="scope.row.project1_bq"
+                      />
+                    </span>
+                    <span v-else>{{ scope.row.project1_bq }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column prop="phase1_month" label="月累/均">
+                <el-table-column
+                  prop="project1_month"
+                  label="月累/均"
+                  align="center"
+                >
                   <template #default="scope">
                     <span v-if="showInput(scope.row, arrColumn5)">
-                      <el-input-number v-model="scope.row.phase1_month" :min="1" />
-                      </span>
-                    <span v-else>{{scope.row.phase1_month}}</span>
+                      <el-input-number
+                        class="currentInputNumber"
+                        size="small"
+                        v-model="scope.row.project1_month"
+                      />
+                    </span>
+                    <span v-else>{{ scope.row.project1_month }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column prop="phase1_year" label="年累/均" >
+                <el-table-column
+                  prop="project1_year"
+                  label="年累/均"
+                  align="center"
+                >
                   <template #default="scope">
                     <span v-if="showInput(scope.row, arrColumn6)">
-                      <el-input-number v-model="scope.row.phase1_year" :min="1" />
-                      </span>
-                    <span v-else>{{scope.row.phase1_year}}</span>
+                      <el-input-number
+                        class="currentInputNumber"
+                        size="small"
+                        v-model="scope.row.project1_year"
+                      />
+                    </span>
+                    <span v-else>{{ scope.row.project1_year }}</span>
                   </template>
                 </el-table-column>
               </el-table-column>
 
               <!-- 二期风机 -->
               <el-table-column label="二期风机" align="center">
-                <el-table-column prop="phase2_current" label="本期">
+                <el-table-column prop="project2_bq" label="本期" align="center">
                   <template #default="scope">
                     <span v-if="showInput(scope.row, arrColumn7)">
-                      <el-input-number v-model="scope.row.phase2_current" :min="1" />
-                      </span>
-                    <span v-else>{{scope.row.phase2_current}}</span>
+                      <el-input-number
+                        class="currentInputNumber"
+                        size="small"
+                        v-model="scope.row.project2_bq"
+                      />
+                    </span>
+                    <span v-else>{{ scope.row.project2_bq }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column prop="phase2_month" label="月累/均">
+                <el-table-column
+                  prop="project2_month"
+                  label="月累/均"
+                  align="center"
+                >
                   <template #default="scope">
                     <span v-if="showInput(scope.row, arrColumn8)">
-                      <el-input-number v-model="scope.row.phase2_month" :min="1" />
-                      </span>
-                    <span v-else>{{scope.row.phase2_month}}</span>
+                      <el-input-number
+                        class="currentInputNumber"
+                        size="small"
+                        v-model="scope.row.project2_month"
+                      />
+                    </span>
+                    <span v-else>{{ scope.row.project2_month }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column prop="phase2_year" label="年累/均" >
-                <template #default="scope">
+                <el-table-column
+                  prop="project2_year"
+                  label="年累/均"
+                  align="center"
+                >
+                  <template #default="scope">
                     <span v-if="showInput(scope.row, arrColumn9)">
-                      <el-input-number v-model="scope.row.phase2_year" :min="1" />
-                      </span>
-                    <span v-else>{{scope.row.phase2_year}}</span>
+                      <el-input-number
+                        class="currentInputNumber"
+                        size="small"
+                        v-model="scope.row.project2_year"
+                      />
+                    </span>
+                    <span v-else>{{ scope.row.project2_year }}</span>
                   </template>
                 </el-table-column>
               </el-table-column>
             </el-table-column>
           </el-table-column>
         </el-table>
-        <el-table :data="tableData1" border style="width: 100%;" class="tableH">
+        <el-table :data="tableData1" border style="width: 100%" class="tableH">
           <el-table-column label="当前运行方式" align="center">
             <el-table-column label="" prop="name" align="center" />
             <el-table-column label="" prop="phase1" align="center" />
@@ -134,37 +194,81 @@
             <el-table-column label="" prop="phase8" align="center" />
           </el-table-column>
         </el-table>
-        <el-table :data="tableData2" border style="width: 100%;">
+        <el-table :data="tableData2" border style="width: 100%">
           <el-table-column label="风功率预测" align="center">
-            <el-table-column label="超短期功率预测准确率(%)" prop="name1" align="center" />
-            <el-table-column label="短期功率预测准确率(%)" prop="name2" align="center" />
+            <el-table-column
+              label="超短期功率预测准确率(%)"
+              prop="name1"
+              align="center"
+            />
+            <el-table-column
+              label="短期功率预测准确率(%)"
+              prop="name2"
+              align="center"
+            />
           </el-table-column>
         </el-table>
-        <el-table :data="tableData3" border style="width: 100%;">
+        <el-table :data="tableData3" border style="width: 100%">
           <el-table-column label="两票统计" align="center">
             <el-table-column label="" prop="name" align="center" />
-            <el-table-column label="操作票" prop="total_current" align="center" />
+            <el-table-column
+              label="操作票"
+              prop="total_current"
+              align="center"
+            />
             <el-table-column label="月累" prop="total_current" align="center" />
             <el-table-column label="电气一种" align="center">
-              <el-table-column label="许可" prop="total_current" align="center" />
-              <el-table-column label="终结" prop="total_current" align="center" />
+              <el-table-column
+                label="许可"
+                prop="total_current"
+                align="center"
+              />
+              <el-table-column
+                label="终结"
+                prop="total_current"
+                align="center"
+              />
             </el-table-column>
             <el-table-column label="电气二种" align="center">
-              <el-table-column label="许可" prop="total_current" align="center" />
-              <el-table-column label="终结" prop="total_current" align="center" />
+              <el-table-column
+                label="许可"
+                prop="total_current"
+                align="center"
+              />
+              <el-table-column
+                label="终结"
+                prop="total_current"
+                align="center"
+              />
             </el-table-column>
             <el-table-column label="动火票" align="center">
-              <el-table-column label="许可" prop="total_current" align="center" />
-              <el-table-column label="终结" prop="total_current" align="center" />
+              <el-table-column
+                label="许可"
+                prop="total_current"
+                align="center"
+              />
+              <el-table-column
+                label="终结"
+                prop="total_current"
+                align="center"
+              />
             </el-table-column>
             <el-table-column label="风机/线路票" align="center">
-              <el-table-column label="许可" prop="total_current" align="center" />
-              <el-table-column label="终结" prop="total_current" align="center" />
+              <el-table-column
+                label="许可"
+                prop="total_current"
+                align="center"
+              />
+              <el-table-column
+                label="终结"
+                prop="total_current"
+                align="center"
+              />
             </el-table-column>
             <el-table-column label="月累" prop="total_current" />
           </el-table-column>
         </el-table>
-        <el-table :data="tableData4" border style="width: 100%;">
+        <el-table :data="tableData4" border style="width: 100%">
           <el-table-column label="缺陷情况" align="center">
             <el-table-column label="" prop="name" align="center" />
             <el-table-column label="当日新增" prop="phase1" align="center" />
@@ -174,13 +278,13 @@
             <el-table-column label="年发生" prop="phase1" align="center" />
           </el-table-column>
         </el-table>
-        <el-table :data="tableData5" border style="width: 100%;" class="tableH">
+        <el-table :data="tableData5" border style="width: 100%" class="tableH">
           <el-table-column label="重要缺陷处理进度" align="center">
             <el-table-column label="" prop="name1" align="center" />
             <el-table-column label="" prop="phase1" align="center" />
           </el-table-column>
         </el-table>
-        <el-table :data="tableData6" border style="width: 100%;" class="tableH">
+        <el-table :data="tableData6" border style="width: 100%" class="tableH">
           <el-table-column label="主要工作" align="center">
             <el-table-column label="" prop="name1" align="center" />
             <el-table-column label="" prop="phase1" align="center" />
@@ -192,7 +296,9 @@
 </template>
 
 <script>
+import axios from "axios";
 import dayjs from "dayjs";
+import fakeJsonData from "./fakeData.json";
 export default {
   data() {
     return {
@@ -204,225 +310,187 @@ export default {
       tableData4: [],
       tableData5: [],
       tableData6: [],
-      arrColumn1: ["上网电量", "网购电量", "限电量Y", "故障损失", "定检维护", "受累损失", "场用电量"],
+      arrColumn1: [
+        "上网电量",
+        "网购电量",
+        "限电量Y",
+        "故障损失",
+        "定检维护",
+        "受累损失",
+        "场用电量",
+      ],
       arrColumn2: ["场用电量"],
       arrColumn3: ["场用电量"],
-      arrColumn4: ["发电量(万kW·h)实发", "平均风速(m/s)", "限电量Y", "故障损失", "定检维护", "受累损失", "设备可利用率(%)"],
+      arrColumn4: [
+        "发电量(万kW·h)实发",
+        "平均风速(m/s)",
+        "限电量Y",
+        "故障损失",
+        "定检维护",
+        "受累损失",
+        "设备可利用率(%)",
+      ],
       arrColumn5: ["设备可利用率(%)"],
       arrColumn6: ["设备可利用率(%)"],
       arrColumn7: ["发电量(万kW·h)实发", "平均风速(m/s)", "设备可利用率(%)"],
       arrColumn8: ["设备可利用率(%)"],
       arrColumn9: ["设备可利用率(%)"],
-    }
+      tdMap: [
+        {
+          key: "fdl_plan",
+          name: "发电量(万kW·h)计划",
+        },
+        {
+          key: "fdl_actual",
+          name: "发电量(万kW·h)实发",
+        },
+        {
+          key: "lyxss",
+          name: "利用小时数(h)",
+        },
+        {
+          key: "pjfs",
+          name: "平均风速(m/s)",
+        },
+        {
+          key: "swdl",
+          name: "上网电量(万kWh)",
+        },
+        {
+          key: "wgdl",
+          name: "网购电量(万kWh)",
+        },
+        {
+          key: "xdli",
+          name: "限电量Y(万kWh)",
+        },
+        {
+          key: "xdlv",
+          name: "限电率Y(%)",
+        },
+        {
+          key: "gzss",
+          name: "损失电量(万kWh)\n故障损失",
+        },
+        {
+          key: "djss",
+          name: "损失电量(万kWh)\n定检维护",
+        },
+        {
+          key: "slss",
+          name: "损失电量(万kWh)\n受累损失",
+        },
+        {
+          key: "cydli",
+          name: "场用电量(万kWh)",
+        },
+        {
+          key: "cydlv",
+          name: "场用电率(%)",
+        },
+        {
+          key: "zhcydli",
+          name: "综合场用电量(万kWh)",
+        },
+        {
+          key: "zhcydlv",
+          name: "综合场用电率(%)",
+        },
+        {
+          key: "sbklyl",
+          name: "设备可利用率(%)",
+        },
+      ],
+      sumbitMap: [
+        {
+          key: "区域集控.惠安风场.一期本期实际发电量",
+          tdMapKey: "fdl_actual.project1_bq",
+        },
+        {
+          key: "区域集控.惠安风场.二期本期实际发电量",
+          tdMapKey: "fdl_actual.project2_bq",
+        },
+        {
+          key: "区域集控.惠安风场.一期本期平均风速",
+          tdMapKey: "pjfs.project1_bq",
+        },
+        {
+          key: "区域集控.惠安风场.二期本期平均风速",
+          tdMapKey: "pjfs.project2_bq",
+        },
+        { key: "区域集控.惠安风场.全场本期上网电量", tdMapKey: "swdl.all_bq" },
+        { key: "区域集控.惠安风场.全场本期购网电量", tdMapKey: "wgdl.all_bq" },
+        { key: "区域集控.惠安风场.全场本期限电量", tdMapKey: "xdli.all_bq" },
+        {
+          key: "区域集控.惠安风场.一期本期限电量",
+          tdMapKey: "xdli.project1_bq",
+        },
+        {
+          key: "区域集控.惠安风场.全场本期故障损失电量",
+          tdMapKey: "gzss.all_bq",
+        },
+        {
+          key: "区域集控.惠安风场.一期本期故障损失电量",
+          tdMapKey: "gzss.project1_bq",
+        },
+        {
+          key: "区域集控.惠安风场.全场本期定检维护电量",
+          tdMapKey: "djss.all_bq",
+        },
+        {
+          key: "区域集控.惠安风场.一期本期定检维护电量",
+          tdMapKey: "djss.project1_bq",
+        },
+        {
+          key: "区域集控.惠安风场.全场本期受累损失电量",
+          tdMapKey: "slss.all_bq",
+        },
+        {
+          key: "区域集控.惠安风场.一期本期受累损失电量",
+          tdMapKey: "slss.project1_bq",
+        },
+        { key: "区域集控.惠安风场.全场本期场用电量", tdMapKey: "cydli.all_bq" },
+        {
+          key: "区域集控.惠安风场.全场月累场用电量",
+          tdMapKey: "cydli.all_month",
+        },
+        {
+          key: "区域集控.惠安风场.全场年累场用电量",
+          tdMapKey: "cydli.all_year",
+        },
+        {
+          key: "区域集控.惠安风场.一期本期设备可利用率",
+          tdMapKey: "sbklyl.project1_bq",
+        },
+        {
+          key: "区域集控.惠安风场.一期月累设备可利用率",
+          tdMapKey: "sbklyl.project1_month",
+        },
+        {
+          key: "区域集控.惠安风场.一期年累设备可利用率",
+          tdMapKey: "sbklyl.project1_year",
+        },
+        {
+          key: "区域集控.惠安风场.二期本期设备可利用率",
+          tdMapKey: "sbklyl.project2_bq",
+        },
+        {
+          key: "区域集控.惠安风场.二期月累设备可利用率",
+          tdMapKey: "sbklyl.project2_month",
+        },
+        {
+          key: "区域集控.惠安风场.二期年累设备可利用率",
+          tdMapKey: "sbklyl.project2_year",
+        },
+      ],
+    };
   },
+
   mounted() {
-    this.reportParamDate = dayjs(new Date()).format("YYYY-MM-DD")
-    this.tableData = [
-      {
-        indicator: '风机发电数量(台)',
-        total_current: 50,
-        total_month: 50,
-        total_year: 50,
-        phase1_current: 25,
-        phase1_month: 25,
-        phase1_year: 25,
-        phase2_current: 25,
-        phase2_month: 25,
-        phase2_year: 25,
-      },
-      {
-        indicator: '发电量(万kW·h)计划',
-        total_current: '',
-        total_month: '',
-        total_year: '',
-        phase1_current: '',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '发电量(万kW·h)实发',
-        total_current: '',
-        total_month: '',
-        total_year: '',
-        phase1_current: '区域集控.惠安风场.一期本期实际发电量',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '区域集控.惠安风场.二期本期实际发电量',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '利用小时数(h)',
-        total_current: '',
-        total_month: '',
-        total_year: '',
-        phase1_current: '',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '平均风速(m/s)',
-        total_current: '',
-        total_month: '',
-        total_year: '',
-        phase1_current: '区域集控.惠安风场.一期本期平均风速',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '区域集控.惠安风场.二期本期平均风速',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '上网电量(万kWh)',
-        total_current: '区域集控.惠安风场.全场本期上网电量',
-        total_month: '',
-        total_year: '',
-        phase1_current: '',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '网购电量(万kWh)',
-        total_current: '区域集控.惠安风场.全场本期购网电量',
-        total_month: '',
-        total_year: '',
-        phase1_current: '',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '限电量Y(万kWh)',
-        total_current: '区域集控.惠安风场.全场本期限电量',
-        total_month: '',
-        total_year: '',
-        phase1_current: '区域集控.惠安风场.一期本期限电量',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '限电率Y(%)',
-        total_current: '',
-        total_month: '',
-        total_year: '',
-        phase1_current: '',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '损失电量(万kWh)\n故障损失',
-        total_current: '区域集控.惠安风场.全场本期故障损失电量',
-        total_month: '',
-        total_year: '',
-        phase1_current: '区域集控.惠安风场.一期本期故障损失电量',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '损失电量(万kWh)\n定检维护',
-        total_current: '区域集控.惠安风场.全场本期定检维护电量',
-        total_month: '',
-        total_year: '',
-        phase1_current: '区域集控.惠安风场.一期本期定检维护电量',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '损失电量(万kWh)\n受累损失',
-        total_current: '区域集控.惠安风场.全场本期受累损失电量',
-        total_month: '',
-        total_year: '',
-        phase1_current: '区域集控.惠安风场.一期本期受累损失电量',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '场用电量(万kWh)',
-        total_current: '区域集控.惠安风场.全场本期场用电量',
-        total_month: '区域集控.惠安风场.全场月累场用电量',
-        total_year: '区域集控.惠安风场.全场年累场用电量',
-        phase1_current: '',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '场用电率(%)',
-        total_current: '',
-        total_month: '',
-        total_year: '',
-        phase1_current: '',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '综合场用电量(万kWh)',
-        total_current: '',
-        total_month: '',
-        total_year: '',
-        phase1_current: '',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '综合场用电率(%)',
-        total_current: '',
-        total_month: '',
-        total_year: '',
-        phase1_current: '',
-        phase1_month: '',
-        phase1_year: '',
-        phase2_current: '',
-        phase2_month: '',
-        phase2_year: '',
-      },
-      {
-        indicator: '设备可利用率(%)',
-        total_current: '',
-        total_month: '',
-        total_year: '',
-        phase1_current: '区域集控.惠安风场.一期本期设备可利用率',
-        phase1_month: '区域集控.惠安风场.一期月累设备可利用率',
-        phase1_year: '区域集控.惠安风场.一期年累设备可利用率',
-        phase2_current: '区域集控.惠安风场.二期本期设备可利用率',
-        phase2_month: '区域集控.惠安风场.二期月累设备可利用率',
-        phase2_year: '区域集控.惠安风场.二期年累设备可利用率',
-      },
-    ]
+    this.reportParamDate = dayjs(new Date()).format("YYYY-MM-DD");
+
+    this.getTableData();
+
     this.tableData1 = [
       {
         name: "惠安风电",
@@ -445,59 +513,116 @@ export default {
         phase6: "#2SVG",
         phase7: "二期风机",
         phase8: "运行25台,故障0台",
-      }
-    ]
+      },
+    ];
     this.tableData2 = [
       {
         name1: "-",
-        name2: "-"
-      }
-    ]
+        name2: "-",
+      },
+    ];
     this.tableData3 = [
       {
         name: "惠安风电",
-        total_current: "-"
-      }
-    ]
+        all_bq: "-",
+      },
+    ];
     this.tableData4 = [
       {
         name: "惠安风电",
-        phase1: "-"
-      }
-    ]
+        phase1: "-",
+      },
+    ];
     this.tableData5 = [
       {
         name1: "惠安风电",
-        phase1: "-"
-      }
-    ]
+        phase1: "-",
+      },
+    ];
     this.tableData6 = [
       {
         name1: "惠安风电",
-        phase1: "-"
-      }
-    ]
+        phase1: "-",
+      },
+    ];
   },
+
   methods: {
-    showInput(row, arr){
-      let show = false
-      arr.forEach(it => {
-        if (row.indicator.indexOf(it) > -1) {
-          show = true
+    showInput(row, arr) {
+      let show = false;
+      arr.forEach((it) => {
+        if (row.prop.indexOf(it) > -1) {
+          show = true;
         }
-        if (row.indicator.indexOf("综合场用电量") > -1) {
-          show = false
+        if (row.prop.indexOf("综合场用电量") > -1) {
+          show = false;
         }
-      })
-      return show
+      });
+      return show;
       // return arr.some(item => row.indicator.indexOf(item) > 0)
-    }
-  }
-}
+    },
+
+    getTableData() {
+      axios
+        .get(
+          `${process.env.VUE_APP_API}/equipmentInfoJs/queryAll?date=${this.reportParamDate}`
+        )
+        .then((res) => {
+          console.log(111, res);
+        });
+
+      let tData = [
+        {
+          prop: "风机发电数量(台)",
+          all_bq: 50,
+          all_month: 50,
+          all_year: 50,
+          project1_bq: 25,
+          project1_month: 25,
+          project1_year: 25,
+          project2_bq: 25,
+          project2_month: 25,
+          project2_year: 25,
+        },
+      ];
+      this.tdMap.forEach((ele) => {
+        let item = { prop: ele.name };
+        for (let fdKey in fakeJsonData[ele.key]) {
+          item[fdKey] = fakeJsonData[ele.key][fdKey];
+        }
+        item.key = ele.key;
+        tData.push(item);
+      });
+      this.tableData = tData;
+    },
+
+    save() {
+      let submitParms = [];
+
+      this.sumbitMap.forEach((ele) => {
+        const splitParam = ele.tdMapKey.split(".");
+        const findRes = this.tableData.find((findEle) => {
+          return findEle?.key === splitParam[0];
+        });
+        submitParms.push({
+          recordDate: this.reportParamDate,
+          meterName: ele.key,
+          stopCode: findRes[splitParam[1]],
+        });
+      });
+
+      axios
+        .put(`${process.env.VUE_APP_API}//equipmentInfoJs`, submitParms)
+        .then((res) => {
+          console.log(222, res);
+        });
+    },
+  },
+};
 </script>
 
 <style lang="less">
-.scrbCallback{
+.scrbCallback {
   width: 100%;
   height: 100%;
   padding: 10px;
@@ -550,39 +675,47 @@ export default {
       }
     }
   }
-  .main_bot{
-    .callbackTable{
+  .main_bot {
+    .callbackTable {
       .el-table {
-          .el-table__header-wrapper {
-              .el-table__header {
-                  thead {
-                      tr {
-                        background: #e4e4e4 !important;
-                          th {
-                              background: #284071 !important;
-                              border: 1px solid #fff !important; // 确保文本垂直居中
-                          }
-                          .el-table__cell {
-                            line-height: 50px;
-                            border: 1px solid #fff !important; // 确保文本垂直居中
-                          }
-                      }
-                  }
+        .el-table__header-wrapper {
+          .el-table__header {
+            thead {
+              tr {
+                background: #e4e4e4 !important;
+                th {
+                  background: #284071 !important;
+                  border: 1px solid #fff !important; // 确保文本垂直居中
+                }
+                .el-table__cell {
+                  line-height: 50px;
+                  border: 1px solid #fff !important; // 确保文本垂直居中
+                }
               }
+            }
           }
+        }
       }
-      .tableH{
+      .tableH {
         .el-table__header thead tr:nth-child(2) th {
           display: none;
         }
       }
-      .el-input-number{
+      .el-input-number {
         width: 100%;
       }
     }
   }
-  
-}
 
+  .currentInputNumber {
+    .el-input-number__decrease,
+    .el-input-number__increase {
+      width: 20px;
+    }
 
+    .el-input__inner {
+      padding: 0 27px;
+    }
+  }
+}
 </style>