浏览代码

[Mod 0000] 瓦斯抽采达标能力核定添加计算参数并对小数进行处理

houzekong 3 周之前
父节点
当前提交
cbf0280c71
共有 2 个文件被更改,包括 23 次插入9 次删除
  1. 10 0
      src/views/vent/gas/gasVerify/gasPumpSetting.data.ts
  2. 13 9
      src/views/vent/gas/gasVerify/index.vue

+ 10 - 0
src/views/vent/gas/gasVerify/gasPumpSetting.data.ts

@@ -168,6 +168,11 @@ export const pipeFormSchema: FormSchema[] = [
     field: 'averagegasconcentrationc2',
     component: 'Input',
   },
+  {
+    label: '年均运行负压Pb(kPa)',
+    field: 'AnnualAverageNegativePressurePb',
+    component: 'Input',
+  },
 ];
 
 /** 装机能力核定表单 */
@@ -283,6 +288,11 @@ export const pipeTableColumns: BasicColumn[] = [
     key: 'averagegasconcentrationc2',
   },
   {
+    title: '年均运行负压Pb(kPa)',
+    dataIndex: 'AnnualAverageNegativePressurePb',
+    key: 'AnnualAverageNegativePressurePb',
+  },
+  {
     width: 120,
     title: '操作',
     fixed: false,

+ 13 - 9
src/views/vent/gas/gasVerify/index.vue

@@ -3,14 +3,14 @@
   <div class="gas-verify">
     <CustomHeader> 瓦斯抽采达标能力核定 </CustomHeader>
     <div class="flex mt-90px">
-      <div class="nav-l"> 瓦斯抽采达标生产能力:{{ data.gasExtractionSystemCapacityResultLarge }} t/a </div>
+      <div class="nav-l"> 瓦斯抽采达标生产能力:{{ floor(data.gasExtractionSystemCapacityResultLarge, 2) }} t/a </div>
       <div class="nav">
         <Tabs v-model:active-key="actived" :tabBarStyle="{ color: 'red' }">
           <TabPane key="product" tab="矿井瓦斯抽采达标生产能力核定" />
           <TabPane key="extract" tab="矿井瓦斯抽采能力核定" />
         </Tabs>
       </div>
-      <div class="nav-r"> 瓦斯抽采能力:{{ data.gasExtractionSystemCapacityResultSmall }} m<sup>3</sup>/min </div>
+      <div class="nav-r"> 瓦斯抽采能力:{{ floor(data.gasExtractionSystemCapacityResultSmall, 2) }} m<sup>3</sup>/min </div>
     </div>
     <div class="flex">
       <div :style="{ flex: 1 }">
@@ -31,14 +31,18 @@
         </div>
         <div v-show="actived === 'product'">
           <div class="flex flex-justify-between flex-items-center">
-            <FormTitle class="flex-grow-1" icon="pump" :title="`根据矿井实际抽采瓦斯量核定:${data.gasExtractionVolumeVerificationTotal}`" />
+            <FormTitle
+              class="flex-grow-1"
+              icon="pump"
+              :title="`根据矿井实际抽采瓦斯量核定:${floor(data.gasExtractionVolumeVerificationTotal, 2)}`"
+            />
             <Button type="primary" @click="submitGasvalForm">提交</Button>
           </div>
           <BasicForm :schemas="valFormSchema" @register="regGasvalForm" />
         </div>
         <div v-show="actived === 'product'">
           <div class="flex flex-justify-between flex-items-center">
-            <FormTitle class="flex-grow-1" icon="pump" :title="`根据矿井瓦斯抽采率核定:${data.gasExtractionRateVerificationTotal}`" />
+            <FormTitle class="flex-grow-1" icon="pump" :title="`根据矿井瓦斯抽采率核定:${floor(data.gasExtractionRateVerificationTotal, 2)}`" />
             <Button class="mr-10px" @click="calculateGasrateForm">计算</Button>
             <Button type="primary" @click="submitGasrateForm">提交</Button>
           </div>
@@ -57,8 +61,8 @@
             class="flex-grow-1"
             :title="
               {
-                extract: `按瓦斯抽采泵站装机能力核定:${data.gasExtractionPumpStationCapacitySmall}`,
-                product: `按矿井瓦斯抽采泵站装机能力核定:${data.gasExtractionMainPipelineCapacityLarge}`,
+                extract: `按瓦斯抽采泵站装机能力核定:${floor(data.gasExtractionPumpStationCapacitySmall, 2)}`,
+                product: `按矿井瓦斯抽采泵站装机能力核定:${floor(data.gasExtractionMainPipelineCapacityLarge, 2)}`,
               }[actived]
             "
           />
@@ -76,8 +80,8 @@
             class="flex-grow-1"
             :title="
               {
-                extract: `按矿井瓦斯主管道系统能力核定:${data.gasExtractionMainPipelineCapacitySmall}`,
-                product: `按矿井瓦斯抽采主管道系统能力核定:${data.gasExtractionMainPipelineCapacityLarge}`,
+                extract: `按矿井瓦斯主管道系统能力核定:${floor(data.gasExtractionMainPipelineCapacitySmall, 2)}`,
+                product: `按矿井瓦斯抽采主管道系统能力核定:${floor(data.gasExtractionMainPipelineCapacityLarge, 2)}`,
               }[actived]
             "
           />
@@ -138,7 +142,7 @@
   } from './gasPumpSetting.data';
   import { BasicTable, useTable } from '/@/components/Table';
   import { BasicModal, useModal } from '/@/components/Modal';
-  import { get, inRange, isNil } from 'lodash-es';
+  import { get, inRange, floor } from 'lodash-es';
 
   const actived = ref<'extract' | 'product'>('product');