<template>
  <div class="app-container">
    <el-form :model="meterResult" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="创建人名称" prop="createName">
        <el-input v-model="meterResult.createName" placeholder="请输入创建人名称" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="更新人名称" prop="updateName">
        <el-input v-model="meterResult.updateName" placeholder="请输入更新人名称" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="流量计编号" prop="ybbh">
        <el-input v-model="meterResult.ybbh" placeholder="请输入流量计编号" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="求渐近速度系数 E" prop="dE">
        <el-input v-model="meterResult.dE" placeholder="请输入求渐近速度系数 E" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="求相对密度系数 FG" prop="dFG">
        <el-input v-model="meterResult.dFG" placeholder="请输入求相对密度系数 FG" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="求流动温度系数 FT" prop="dFT">
        <el-input v-model="meterResult.dFT" placeholder="请输入求流动温度系数 FT" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="求动力粘度dlnd" prop="dDViscosity">
        <el-input v-model="meterResult.dDViscosity" placeholder="请输入求动力粘度dlnd" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="求可膨胀系数" prop="dDExpCoefficient">
        <el-input v-model="meterResult.dDExpCoefficient" placeholder="请输入求可膨胀系数" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="管道雷诺数" prop="dRnPipe">
        <el-input v-model="meterResult.dRnPipe" placeholder="请输入管道雷诺数" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="孔板锐利度系数Bk" prop="dBk">
        <el-input v-model="meterResult.dBk" placeholder="请输入孔板锐利度系数Bk" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="管道粗糙度系数 Gme" prop="dRoughNessPipe">
        <el-input v-model="meterResult.dRoughNessPipe" placeholder="请输入管道粗糙度系数 Gme" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="修正后的流出系数" prop="dCdCorrect">
        <el-input v-model="meterResult.dCdCorrect" placeholder="请输入修正后的流出系数" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="喷嘴的流出系数" prop="dCdNozell">
        <el-input v-model="meterResult.dCdNozell" placeholder="请输入喷嘴的流出系数" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="标况体积流量m³/s" prop="dVFlowb">
        <el-input v-model="meterResult.dVFlowb" placeholder="请输入标况体积流量m³/s" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="工况体积流量" prop="dVFlowf">
        <el-input v-model="meterResult.dVFlowf" placeholder="请输入工况体积流量" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="标况质量流量" prop="dMFlowb">
        <el-input v-model="meterResult.dMFlowb" placeholder="请输入标况质量流量" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="标况能量流量" prop="dEFlowb">
        <el-input v-model="meterResult.dEFlowb" placeholder="请输入标况能量流量" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="管道内天然气流速" prop="dVelocityFlow">
        <el-input v-model="meterResult.dVelocityFlow" placeholder="请输入管道内天然气流速" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="压力损失" prop="dPressLost">
        <el-input v-model="meterResult.dPressLost" placeholder="请输入压力损失" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="直径比" prop="dBeta">
        <el-input v-model="meterResult.dBeta" placeholder="请输入直径比" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="等熵指数" prop="dKappa">
        <el-input v-model="meterResult.dKappa" placeholder="请输入等熵指数" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="取样编号" prop="sampleno">
        <el-input v-model="meterResult.sampleno" placeholder="请输入取样编号" clearable @keyup.enter="handleQuery" />
      </el-form-item>
      <el-form-item label="仪表编号" prop="meterno">
        <el-input v-model="meterResult.meterno" placeholder="请输入仪表编号" clearable @keyup.enter="handleQuery" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { listMeterresult, getMeterresult, delMeterresult, addMeterresult, updateMeterresult } from '@/api/ngtools/meterresult';

export default {
  name: 'MeterresultComponent',
  props: {
    meterResult: {
      type: Object,
      default: () => ({
        pageNum: 1,
        pageSize: 10,
        createName: null,
        updateName: null,
        ybbh: null,
        dE: null,
        dFG: null,
        dFT: null,
        dDViscosity: null,
        dDExpCoefficient: null,
        dRnPipe: null,
        dBk: null,
        dRoughNessPipe: null,
        dCdCorrect: null,
        dCdNozell: null,
        dVFlowb: null,
        dVFlowf: null,
        dMFlowb: null,
        dEFlowb: null,
        dVelocityFlow: null,
        dPressLost: null,
        dBeta: null,
        dKappa: null,
        sampleno: null,
        meterno: null
      })
    }
  },
  data() {
    return {
      meterresultList: [],
      open: false,
      loading: true,
      showSearch: true,
      ids: [],
      single: true,
      multiple: true,
      total: 0,
      title: '',
      form: {},
      rules: {}
    };
  },
  watch: {
    meterResult: {
      deep: true,
      handler(newVal) {
        this.$emit('update:meterResult', newVal);
      }
    }
  },
  created() {},
  methods: {}
};
</script>

<style scoped>
/* 可按需添加样式 */
</style>
