3
2
lining 6 yıl önce
ebeveyn
işleme
5b7d8e1821

+ 46 - 0
src/dashoo.cn/backend/api/business/limsreportheatingfurnace/limsreportheatingfurnace.go

@@ -0,0 +1,46 @@
+package limsreportheatingfurnace
+
+import "time"
+
+type LimsReportHeatingFurnace struct {
+	Id               int       `xorm:"not null pk autoincr INT(10)"`
+	EId              int       `xorm:"comment('委托单ID') INT(10)"`
+	TaskBalanceId    int       `xorm:"comment('任务分配表ID') INT(10)"`
+	DataEntryId      int       `xorm:"comment('数据记录表ID') INT(10)"`
+	TestDepartId     int       `xorm:"comment('受检单位ID') INT(10)"`
+	TestDepart       int       `xorm:"comment('受检单位') INT(10)"`
+	PositionCheckId  int       `xorm:"comment('检测地点ID') INT(10)"`
+	PositionCheck    string    `xorm:"comment('检测地点') VARCHAR(255)"`
+	CheckDate        time.Time `xorm:"comment('检测时间') DATETIME"`
+	Number           string    `xorm:"comment('被测设备编号及名称') VARCHAR(50)"`
+	HFModel          string    `xorm:"comment('加热炉型号') VARCHAR(20)"`
+	RHCapacity       string    `xorm:"comment('额定热容量') DECIMAL(10,2)"`
+	RatedPower       string    `xorm:"comment('额定效率') DECIMAL(10,2)"`
+	HFProDate        time.Time `xorm:"comment('加热炉出厂日期') DATETIME"`
+	Manufacturer     string    `xorm:"comment('制造厂家') VARCHAR(50)"`
+	Fuel             string    `xorm:"comment('燃料') VARCHAR(20)"`
+	BurnerManuf      string    `xorm:"comment('燃烧器厂家') VARCHAR(50)"`
+	BurnerModel      string    `xorm:"comment('燃烧器型号') VARCHAR(20)"`
+	BurnerProDate    time.Time `xorm:"comment('燃烧器出厂日期') DATETIME"`
+	BurnerIntel      string    `xorm:"comment('燃烧器是否智能') VARCHAR(10)"`
+	Temperature      string    `xorm:"comment('环境温度') DECIMAL(10,2)"`
+	WindSpeed        string    `xorm:"comment('风速') DECIMAL(10,2)"`
+	RelativeHumidity string    `xorm:"comment('环境相对湿度') DECIMAL(10,2)"`
+	InstrStatus      string    `xorm:"comment('仪器状态') VARCHAR(20)"`
+	InTemp           string    `xorm:"comment('介质进口温度') DECIMAL(10,2)"`
+	InPressure       string    `xorm:"comment('介质进口压力') DECIMAL(10,2)"`
+	OutTemp          string    `xorm:"comment('介质出口温度') DECIMAL(10,2)"`
+	Outpressure      string    `xorm:"comment('介质出口压力') DECIMAL(10,2)"`
+	OutPressure      string    `xorm:"comment('介质流量') DECIMAL(10,2)"`
+	MediumFlow       string    `xorm:"comment('介质含水率') DECIMAL(10,2)"`
+	MedMoiContent    string    `xorm:"comment('介质密度') DECIMAL(10,2)"`
+	MedDensity       string    `xorm:"comment('燃烧量+') DECIMAL(10,2)"`
+	Indoor           string    `xorm:"comment('室内') VARCHAR(10)"`
+	Remark           string    `xorm:"comment('备注') VARCHAR(255)"`
+	CreateUserId     int       `xorm:"INT(11)"`
+	CreateOn         time.Time `xorm:"DATETIME"`
+	CreateBy         string    `xorm:"VARCHAR(50)"`
+	ModifiedOn       time.Time `xorm:"DATETIME"`
+	ModifiedUserId   int       `xorm:"INT(11)"`
+	ModifiedBy       string    `xorm:"VARCHAR(50)"`
+}

+ 47 - 0
src/dashoo.cn/frontend_web/src/api/lims/limsreportheatingFurnace.js

@@ -0,0 +1,47 @@
+export default {
+  getList (CreateOn, params, myAxios) {
+    return myAxios({
+      url: '/limsreportheatingfurnace/list?CreateOn=' + CreateOn,
+      method: 'GET',
+      params: params
+    })
+  },
+  getDictList (myAxios) {
+    return myAxios({
+      url: '/limsreportheatingfurnace/dictlist/',
+      method: 'GET'
+    })
+  },
+  getEntity (entityId, myAxios) {
+    return myAxios({
+      url: '/limsreportheatingfurnace/get/' + entityId,
+      method: 'GET'
+    })
+  },
+  getEntityByDataEntryId (entityId, myAxios) {
+    return myAxios({
+      url: '/limsreportheatingfurnace/getEntityByDataEntryId/' + entityId,
+      method: 'GET'
+    })
+  },
+  addEntity (formData, myAxios) {
+    return myAxios({
+      url: '/limsreportheatingfurnace/add',
+      method: 'post',
+      data: formData
+    })
+  },
+  updateEntity (entityId, formData, myAxios) {
+    return myAxios({
+      url: '/limsreportheatingfurnace/update/' + entityId,
+      method: 'post',
+      data: formData
+    })
+  },
+  deleteEntity (entityId, myAxios) {
+    return myAxios({
+      url: '/limsreportheatingfurnace/delete/' + entityId,
+      method: 'delete'
+    })
+  }
+}

+ 50 - 66
src/dashoo.cn/frontend_web/src/pages/lims/reportheatingfurnace/_opera/operation.vue

@@ -58,18 +58,16 @@
           </el-col>
           <el-col :span="8">
             <el-form-item label="额定热容量"
-                          prop="RHCapacity"
-                          :rules="[ { type: 'number', message: '必须为数字'}]">
-              <el-input v-model.number="formData.RHCapacity" placeholder="请输入" style="width: 100%">
+                          prop="RHCapacity">
+              <el-input type="number" step="0.01" v-model.number="formData.RHCapacity" placeholder="请输入" style="width: 100%">
                 <template slot="append">MW</template>
               </el-input>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="额定效率"
-                          prop="RatedPower"
-                          :rules="[ { type: 'number', message: '必须为数字'}]">
-              <el-input v-model.number="formData.RatedPower" placeholder="请输入" style="width: 100%">
+                          prop="RatedPower">
+              <el-input type="number" step="0.01" v-model.number="formData.RatedPower" placeholder="请输入" style="width: 100%">
                 <template slot="append">%</template>
               </el-input>
             </el-form-item>
@@ -118,27 +116,24 @@
           </el-col>
           <el-col :span="8">
             <el-form-item label="环境温度"
-                          prop="Temperature"
-                          :rules="[ { type: 'number', message: '必须为数字'}]">
-              <el-input v-model.number="formData.Temperature" placeholder="请输入" style="width: 100%">
+                          prop="Temperature">
+              <el-input type="number" step="0.01" v-model.number="formData.Temperature" placeholder="请输入" style="width: 100%">
                 <template slot="append">℃</template>
               </el-input>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="风速"
-                          prop="WindSpeed"
-                          :rules="[ { type: 'number', message: '必须为数字'}]">
-              <el-input v-model.number="formData.WindSpeed" placeholder="请输入" style="width: 100%">
+                          prop="WindSpeed">
+              <el-input type="number" step="0.01" v-model.number="formData.WindSpeed" placeholder="请输入" style="width: 100%">
                 <template slot="append">m/s</template>
               </el-input>
             </el-form-item>
           </el-col>
           <el-col :span="8">
             <el-form-item label="环境相对湿度"
-                          prop="RelativeHumidity"
-                          :rules="[ { type: 'number', message: '必须为数字'}]">
-              <el-input v-model.number="formData.RelativeHumidity" placeholder="请输入" style="width: 100%">
+                          prop="RelativeHumidity">
+              <el-input type="number" step="0.01" v-model.number="formData.RelativeHumidity" placeholder="请输入" style="width: 100%">
                 <template slot="append">%</template>
               </el-input>
             </el-form-item>
@@ -154,72 +149,64 @@
           <el-card>
             <el-col :span="8">
               <el-form-item label="介质进口温度"
-                            prop="InTemp"
-                            :rules="[ { type: 'number', message: '必须为数字'}]">
-                <el-input v-model.number="formData.InTemp" placeholder="请输入" style="width: 100%">
+                            prop="InTemp">
+                <el-input type="number" step="0.01" v-model.number="formData.InTemp" placeholder="请输入" style="width: 100%">
                   <template slot="append">℃</template>
                 </el-input>
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="介质进口压力"
-                            prop="InPressure"
-                            :rules="[ { type: 'number', message: '必须为数字'}]">
-                <el-input v-model.number="formData.InPressure" placeholder="请输入" style="width: 100%">
+                            prop="InPressure">
+                <el-input type="number" step="0.01" v-model.number="formData.InPressure" placeholder="请输入" style="width: 100%">
                   <template slot="append">MPa</template>
                 </el-input>
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="介质出口温度"
-                            prop="OutTemp"
-                            :rules="[ { type: 'number', message: '必须为数字'}]">
-                <el-input v-model.number="formData.OutTemp" placeholder="请输入" style="width: 100%">
+                            prop="OutTemp">
+                <el-input type="number" step="0.01" v-model.number="formData.OutTemp" placeholder="请输入" style="width: 100%">
                   <template slot="append">℃</template>
                 </el-input>
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="介质出口压力"
-                            prop="OutPressure"
-                            :rules="[ { type: 'number', message: '必须为数字'}]">
-                <el-input v-model.number="formData.OutPressure" placeholder="请输入" style="width: 100%">
+                            prop="OutPressure">
+                <el-input type="number" step="0.01" v-model.number="formData.OutPressure" placeholder="请输入" style="width: 100%">
                   <template slot="append">MPa</template>
                 </el-input>
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="介质流量"
-                            prop="MediumFlow"
-                            :rules="[ { type: 'number', message: '必须为数字'}]">
-                <el-input v-model.number="formData.MediumFlow" placeholder="请输入" style="width: 100%">
+                            prop="MediumFlow">
+                <el-input type="number" step="0.01" v-model.number="formData.MediumFlow" placeholder="请输入" style="width: 100%">
                   <template slot="append">m3/h</template>
                 </el-input>
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="介质含水率"
-                            prop="MedMoiContent"
-                            :rules="[ { type: 'number', message: '必须为数字'}]">
-                <el-input v-model.number="formData.MedMoiContent" placeholder="请输入" style="width: 100%">
+                            prop="MedMoiContent">
+                <el-input type="number" step="0.01" v-model.number="formData.MedMoiContent" placeholder="请输入" style="width: 100%">
                   <template slot="append">%</template>
                 </el-input>
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="介质密度"
-                            prop="MedDensity"
-                            :rules="[ { type: 'number', message: '必须为数字'}]">
-                <el-input v-model.number="formData.MedDensity" placeholder="请输入" style="width: 100%">
+                            prop="MedDensity">
+                <el-input type="number" step="0.01" v-model.number="formData.MedDensity" placeholder="请输入" style="width: 100%">
                   <template slot="append">kg/m<sup>3</sup></template>
                 </el-input>
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="燃料量"
-                            prop="CombustionQty"
-                            :rules="[ { type: 'number', message: '必须为数字'}]">
-                <el-input v-model.number="formData.CombustionQty" placeholder="请输入" style="width: 100%">
+                            prop="CombustionQty">
+                <el-input type="number" step="0.01" v-model.number="formData.CombustionQty" placeholder="请输入" style="width: 100%">
                   <template slot="append">Nm<sup>3</sup>/h</template>
                 </el-input>
               </el-form-item>
@@ -377,37 +364,34 @@
           TaskBalanceId: '',
           DataEntryId: '',
           TestDepartId: '',
-          InstalPositionId: '',
           TestDepart: '',
-          InstalPosition: '',
+          PositionCheckId: '',
+          PositionCheck: '',
+          CheckDate: '',
           Number: '',
-          Type: '',
+          HFModel: '',
+          RHCapacity: '',
+          RatedPower: '',
+          HFProDate: '',
           Manufacturer: '',
-          ProductionDate: '',
-          Capacity: '',
-          RatedVoltage: '',
-          RatedCurrent: '',
-          NoloadLoss: '',
-          LoadLoss: '',
-          LoadCurrent: '',
-          ImpedanceVoltage: '',
-          JoinGroupMode: '',
-          Standard: '',
-          AvgVoltage: '',
-          Active: '',
-          AvgCurrent: '',
-          NegativeActive: '',
-          AvgActive: '',
-          Reactive: '',
-          AvgReactive: '',
-          NegativeReactive: '',
-          Apparent: '',
-          TestTime: '',
-          PowerFactor: '',
-          EquipName: '',
-          EquipStatus: '',
+          Fuel: '',
+          BurnerManuf: '',
+          BurnerModel: '',
+          BurnerProDate: '',
+          BurnerIntel: '',
           Temperature: '',
-          Humidity: '',
+          WindSpeed: '',
+          RelativeHumidity: '',
+          InstrStatus: '',
+          InTemp: '',
+          InPressure: '',
+          OutTemp: '',
+          OutPressure: '',
+          MediumFlow: '',
+          MedMoiContent: '',
+          MedDensity: '',
+          CombustionQty: '',
+          Indoor: '',
           Remark: '',
           CreateUserId: '',
           CreateOn: '',