Browse Source

硬件测试

Shan9312 11 months ago
parent
commit
f5e188fca1

+ 2 - 1
src/lang/en/langModule/InventoryManagement.js

@@ -21,7 +21,8 @@ export default{
    rq:"Date",
    tmrsbbh:"TMR Equipment Number",
    lbxs:"List Display",
-   qhzs:"Switch Display"
+   qhzs:"Switch Display",
+   tmrbcc:"TMRshif"
    
    
    

+ 14 - 0
src/lang/en/langModule/hardwareTest.js

@@ -0,0 +1,14 @@
+export default{
+
+  tmrList:"TMR List",
+  sbmc:"Equipment Name",
+  sbbh:"Equipment Number",
+  sszl:"Real-Time Weight",
+  kszl:"Starting Weight",
+  jszl:"Ending Weight",
+  lr:"Entry",
+  xx:"Information"
+ 
+ 
+ 
+ }

+ 2 - 1
src/lang/zn/langModule/InventoryManagement.js

@@ -22,7 +22,8 @@ export default{
    tmrsbbh:"TMR设备编号",
    lbxs:"列表显示",
    tjlx:"统计类型",
-   qhzs:"切换展示"
+   qhzs:"切换展示",
+   tmrbcc:"TMR班次"
 
    
 

+ 1 - 1
src/lang/zn/langModule/errorAnalysis.js

@@ -49,7 +49,7 @@ export default{
    hlzqs:'混料正确数',
    yclczs:'已撒料操作数',
 
-   statisticalTypeList: [{ id: '7', name: '无分类' }, { id: '0', name: '驾驶员' }, { id: '1', name: '配方名称' }, { id: '2', name: '栏舍名称' }, { id: '3', name: '牲畜类别' }, { id: '4', name: '车次' }, { id: '5', name: 'TMR名称' }, { id: '6', name: '饲料' }],
+   statisticalTypeList: [{ id: '7', name: '无分类' }, { id: '0', name: '驾驶员' }, { id: '1', name: '配方名称' }, { id: '2', name:'栏舍名称' }, { id: '3', name: '牲畜类别' }, { id: '4', name: "车次" }, { id: '5', name: 'TMR名称' }, { id: '6', name: '饲料' }],
 
    planName:"计划统计",
    day:"日",

+ 12 - 4
src/lang/zn/langModule/hardwareTest.js

@@ -1,6 +1,14 @@
 export default{
- tmrList:""
 
-
-
-}
+  tmrList:"TMR列表",
+  sbmc:"设备名称",
+  sbbh:"设备编号",
+  sszl:"实时重量",
+  kszl:"开始重量",
+  jszl:"结束重量",
+  lr:"录入",
+  xx:"信息"
+ 
+ 
+ 
+ }

+ 1 - 1
src/views/statisticalAnalysis/errorAnalysis/group/tab1.vue

@@ -767,7 +767,7 @@ export default {
       textMap: {
         pasture: '牧场'
       },
-      statisticalTypeList: [{ id: '0', name: '驾驶员' }, { id: '1', name: '配方名称' }, { id: '2', name: '栏舍名称' }, { id: '3', name: '牲畜类别' }, { id: '4', name: '车次' }],
+      statisticalTypeList: [{ id: '0', name: '驾驶员' }, { id: '1', name: '配方名称' }, { id: '2', name: this.$t('errorAnalysis.isHouseName') }, { id: '3', name: this.$t('errorAnalysis.sxlb') }, { id: '4', name: this.$t('errorAnalysis.projname') }],
       rowStyle: { maxHeight: 30 + 'px', height: 30 + 'px' },
       cellStyle: { padding: 0 + 'px' }
     }

+ 32 - 32
src/views/statisticalAnalysis/hardwareTest/index.vue

@@ -1,15 +1,15 @@
-<template>
+<template>
   <div class="app-container">
     <el-row :gutter="20">
       <el-col :span="12">
         <el-form ref="temp" :rules="rules" :model="temp" label-position="right" label-width="130px" style="width: 100%">
           <el-row>
             <el-col :span="24">
-              <el-form-item label="TMR列表:" prop="eqcode">
-                <el-autocomplete v-model="temp.eqcode" class="inline-input" :fetch-suggestions="tmrSearch" placeholder="TMR列表" style="width:100%" @select="handleTmrSelect">
+              <el-form-item :label="$t('hardwareTest.tmrList')" prop="eqcode">
+                <el-autocomplete v-model="temp.eqcode" class="inline-input" :fetch-suggestions="tmrSearch" :placeholder="$t('hardwareTest.tmrList')" style="width:100%" @select="handleTmrSelect">
                   <template slot-scope="{ item }">
-                    <b>设备名称:</b>{{ item.tname }}
-                    &nbsp;&nbsp;|&nbsp;&nbsp;<b>设备编号:</b>{{ item.eqcode }}
+                    <b>{{$t('hardwareTest.sbmc')}}</b>{{ item.tname }}
+                    &nbsp;&nbsp;|&nbsp;&nbsp;<b>{{$t('hardwareTest.sbbh')}}</b>{{ item.eqcode }}
                   </template>
                 </el-autocomplete>
               </el-form-item>
@@ -17,24 +17,24 @@
           </el-row>
           <el-row>
             <el-col :span="12">
-              <el-form-item label="开始重量:" prop="startW">
+              <el-form-item :label="$t('hardwareTest.kszl')" prop="startW">
                 <el-input v-model="temp.startW" type="number" style="width:100%" />
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="结束重量:" prop="stopW">
+              <el-form-item :label="$t('hardwareTest.jszl')" prop="stopW">
                 <el-input v-model="temp.stopW" type="number" style="width:100%" />
               </el-form-item>
             </el-col>
           </el-row>
           <div style="width: 100%;height: 100px;border-radius: 10px;border: 1px solid #001528;color: #000;font-size: 20px;line-height: 100px;margin-top: 20px;margin-bottom: 20px;padding-left: 20px;">
-            <el-row>信息:{{ temp.feedstr }}</el-row>
+            <el-row>{{$t('hardwareTest.xx')}}:{{ temp.feedstr }}</el-row>
           </div>
           <el-row style="width: 500px;margin: 0 auto;">
-            <el-button :disabled="isokDisable" class="successBorder" style="height:60px;width:80px;" @click="handleSubmit(1)">F1</el-button>
-            <el-button :disabled="isokDisable" class="successBorder" style="height:60px;width:80px;" @click="handleSubmit(2)">F2</el-button>
-            <el-button :disabled="isokDisable" class="successBorder" style="height:60px;width:80px;" @click="handleSubmit(3)">F3</el-button>
-            <el-button :disabled="isokDisable" class="successBorder" style="height:60px;width:80px;" @click="handleSubmit(4)">F4</el-button>
+            <el-button :disabled="isokDisable" class="successBorder" style="height:60px;width:80px;" @click="handleSubmit(1)">F1</el-button>
+            <el-button :disabled="isokDisable" class="successBorder" style="height:60px;width:80px;" @click="handleSubmit(2)">F2</el-button>
+            <el-button :disabled="isokDisable" class="successBorder" style="height:60px;width:80px;" @click="handleSubmit(3)">F3</el-button>
+            <el-button :disabled="isokDisable" class="successBorder" style="height:60px;width:80px;" @click="handleSubmit(4)">F4</el-button>
             <el-button :disabled="isokDisable" class="successBorder" style="height:60px;width:80px;" @click="handleSubmit(5)">F5</el-button>
           </el-row>
         </el-form>
@@ -44,27 +44,27 @@
           <el-row>
             <el-row>
               <el-col :span="12">
-                <el-form-item label="实时重量:">
+                <el-form-item :label="$t('hardwareTest.sszl')">
                   <el-input v-model="temp.SW" type="number" style="width:100%" />
                 </el-form-item>
               </el-col>
               <el-col :span="12">
-                <el-button :disabled="isokDisable" class="successBorder" style="margin-left: 10px;" @click="handleInput()">录入</el-button>
+                <el-button :disabled="isokDisable" class="successBorder" style="margin-left: 10px;" @click="handleInput()">{{$t('hardwareTest.lr')}}</el-button>
               </el-col>
             </el-row>
           </el-row>
         </el-form></el-col>
-    </el-row>
-  </div>
-
-</template>
-
-<script>
+    </el-row>
+  </div>
+
+</template>
+
+<script>
 import { GetDataByName, failproccess } from '@/api/common'
-import Cookies from 'js-cookie'
-export default {
-  name: 'HardwareTest',
-  data() {
+import Cookies from 'js-cookie'
+export default {
+  name: 'HardwareTest',
+  data() {
     return {
       rules: {
         eqcode: [{ type: 'string', required: true, message: '必填', trigger: 'blur' }],
@@ -91,11 +91,11 @@ export default {
       },
       requestParam: {},
       isokDisable: false
-    }
-  },
-
-  created() { },
-
+    }
+  },
+
+  created() { },
+
   methods: {
     tmrSearch(queryString, cb) {
       this.getTmrListParam.parammaps.eqcode = queryString
@@ -179,6 +179,6 @@ export default {
       })
     }
 
-  }
-}
-</script>
+  }
+}
+</script>

+ 2 - 2
src/views/statisticalAnalysis/inventoryManagement/pasture/index.vue

@@ -337,8 +337,8 @@ export default {
       rowHeight: 30,
       isDispayTable2:false,
       isDispayTable3:false,
-      statisticalTypeList2: [{ id: '1', name: '牲畜类别' }, { id: '2', name: '栏舍名称' }, { id: '3', name:this.$t('errorAnalysis.date')  }, { id: '4', name: 'TMR设备编号' }, { id: '5', name: 'TMR班次' }, { id: '6', name: '车次' }],
-      statisticalTypeList3: [{ id: '1', name: '牲畜类别' }, { id: '2', name: '栏舍名称' }, { id: '3', name:this.$t('errorAnalysis.date')  }, { id: '4', name: 'TMR设备编号' }],
+      statisticalTypeList2: [{ id: '1', name: this.$t('errorAnalysis.sxlb') }, { id: '2', name: this.$t('errorAnalysis.isHouseName') }, { id: '3', name:this.$t('errorAnalysis.date')  }, { id: '4', name: this.$t('InventoryManagement.tmrsbbh') }, { id: '5', name: 'TMR班次' }, { id: '6', name: this.$t('errorAnalysis.projname') }],
+      statisticalTypeList3: [{ id: '1', name: this.$t('errorAnalysis.sxlb') }, { id: '2', name: this.$t('errorAnalysis.isHouseName') }, { id: '3', name:this.$t('errorAnalysis.date')  }, { id: '4', name: this.$t('InventoryManagement.tmrsbbh') }],
       frequencyList: [], // 班次
       isTable1:true,
       spanObj: {},

+ 2 - 2
src/views/systemManagement/customboard2/ChartPanel2/index.vue

@@ -197,7 +197,7 @@ export default {
         { id: '分日', name: '分日' }
       ],
       typeList: [
-        { id: '车次', name: '车次' }, 
+        { id: '车次', name: this.$t('errorAnalysis.projname') }, 
         { id: '栏舍', name: '栏舍' }
       ],
 
@@ -205,7 +205,7 @@ export default {
         { id: '栏舍', name: '栏舍' }, 
         { id: '配方', name: '配方' }, 
         { id: '班次', name: '班次' }, 
-        { id: '车次', name: '车次' }, 
+        { id: '车次', name: this.$t('errorAnalysis.projname') }, 
         { id: 'TMR', name: 'TMR' }, 
         { id: '牲畜大类', name: '牲畜大类' }, 
         { id: '牲畜小类', name: '牲畜小类' }

+ 2 - 2
src/views/systemManagement/dataSynchronization/index.vue

@@ -64,7 +64,7 @@ export default {
         // { id: '配方', name: '配方' },
         // { id: '饲料', name: '饲料' },
         // { id: '饲料分类', name: '饲料分类' },
-        // { id: '牲畜类别', name: '牲畜类别' },
+        // { id: '牲畜类别', name: this.$t('errorAnalysis.sxlb') },
         // { id: '驾驶员', name: '驾驶员' }
       ],
       autoArr2: [
@@ -72,7 +72,7 @@ export default {
         // { id: '配方', name: '配方' },
         // { id: '搅拌数据', name: '饲料' },
         // { id: '发料数据', name: '饲料分类' },
-        // { id: '剩料数据', name: '牲畜类别' },
+        // { id: '剩料数据', name: this.$t('errorAnalysis.sxlb') },
         // { id: '干物质信息', name: '干物质信息' },
         // { id: '滨州筛', name: '滨州筛' },
         // { id: '粪便筛', name: '粪便筛' },