GaoYuPeng 3 年之前
父节点
当前提交
aa8be24d8c

+ 33 - 27
shanXiPlatform/src/views/reservesManagement/grainCheck/allGrain/index.vue

@@ -10,16 +10,7 @@
10 10
                 >起始日期时刻为 12:00:00,结束日期时刻为 08:00:00</span
11 11
               > -->
12 12
               <span class="demonstration">检测时间:</span>
13
-              <!-- <el-date-picker
14
-                v-model="value2"
15
-                type="datetimerange"
16
-                align="right"
17
-                start-placeholder="开始日期"
18
-                end-placeholder="结束日期"
19
-                :default-time="['00:00:00', '12:00:00']"
20
-                value-format="yyyy-MM-dd HH:mm:ss"
21
-              >
22
-              </el-date-picker> -->
13
+
23 14
               <el-date-picker
24 15
                 v-model="value2"
25 16
                 type="daterange"
@@ -38,13 +29,7 @@
38 29
             <div class="top_select">
39 30
               <span class="demonstration"> 检查类型: </span>
40 31
               <el-select v-model="kind" placeholder="请选择">
41
-                <!-- <el-option
42
-                  v-for="item in options"
43
-                  :key="item.value"
44
-                  :label="item.label"
45
-                  :value="item.label"
46
-                >
47
-                </el-option> -->
32
+
48 33
                 <el-option
49 34
               v-for="item in grainKind"
50 35
               :key="item.enumId"
@@ -95,7 +80,7 @@
95 80
           :index="indexMethod"
96 81
         >
97 82
         </el-table-column>
98
-        <el-table-column prop="operationTime" label="记录时间" align="center" >
83
+        <el-table-column prop="operationTime" label="记录时间" align="center" width='250'>
99 84
            <template slot-scope="scope">
100 85
             <span>{{
101 86
               scope.row.operationTime == null
@@ -105,7 +90,7 @@
105 90
           </template>
106 91
         </el-table-column>
107 92
 
108
-        <el-table-column prop="enumId" label="检查类型" align="center">
93
+        <el-table-column prop="enumId" label="检查类型" align="center" width='300'>
109 94
           <template slot-scope="scope">
110 95
             <p v-for="item in grainKind" :key="item.enumId">
111 96
               <span v-if="scope.row.enumId == item.enumId">{{
@@ -118,7 +103,7 @@
118 103
           prop="anomalousStatus"
119 104
           label="有无异常"
120 105
           align="center"
121
-          width="100px"
106
+          
122 107
         >
123 108
           <template slot-scope="scope">
124 109
 
@@ -132,7 +117,7 @@
132 117
             </div>
133 118
           </template>
134 119
         </el-table-column>
135
-        <el-table-column prop="recordStatus" label="状态" align="center">
120
+        <el-table-column prop="recordStatus" label="状态" align="center" width='150'>
136 121
           <template slot-scope="scope">
137 122
             <div
138 123
               disable-transitions
@@ -154,12 +139,20 @@
154 139
             </p>
155 140
           </template>
156 141
         </el-table-column>
157
-        <!--         <el-table-column prop="checkList" label="异常项" align="center">
142
+         <!-- <el-table-column prop="checkList" label="异常项" align="center"  width="250">
158 143
           <template slot-scope="scope">
159
-            <div>
160
-              {{ scope.row.waterAbnormal == "1" ? "水分检测异常" : "" }}
161
-              {{ scope.row.grainAbnormal == "1" ? "粮情异常" : "" }}
162
-              {{ scope.row.pestAbnormal == "1" ? "虫害异常" : "" }}
144
+            <div disable-transitions>
145
+              <p class="anomalousItem" v-for="item in checkItems" :key="item.enumId">
146
+              <span v-show="scope.row.insectPestError == item.enumId">
147
+                {{item.enumName}}
148
+              </span>
149
+              <span v-show="scope.row.grainError == item.enumId">
150
+                {{item.enumName}}
151
+              </span>
152
+              <span v-show="scope.row.wetCheckError == item.enumId">
153
+                 {{item.enumName}}
154
+              </span>
155
+            </p>
163 156
             </div>
164 157
           </template>
165 158
         </el-table-column> -->
@@ -252,7 +245,7 @@ export default {
252 245
       depotId: this.$store.state.depotId,
253 246
       houseId: this.$store.state.houseId,
254 247
       grainKind: [], //粮情检查类别
255
-
248
+      checkItems:[],
256 249
       // select 选项数据
257 250
       options: [
258 251
         {
@@ -327,6 +320,19 @@ export default {
327 320
         .catch(err => {
328 321
           console.log(err)
329 322
         })
323
+
324
+    // 保管员检查类型下的检查项字典表
325
+       getGrainItems(19)
326
+          .then(res => {
327
+            if (res.code == 200) {
328
+              // console.log(res, "保管员检查项字典")
329
+              this.checkItems = res.data
330
+              // console.log(this.checkItems, "checkItems.......")
331
+            }
332
+          })
333
+          .catch(err => {
334
+            console.log(err)
335
+          })
330 336
     },
331 337
     // 获取数据
332 338
     getList() {

+ 1 - 1
shanXiPlatform/src/views/reservesManagement/grainCheck/newGrain/index.vue

@@ -678,7 +678,7 @@ export default {
678 678
   display: inline-block;
679 679
   word-break: keep-all;
680 680
   white-space: nowrap;
681
-  font-size: 12px;
681
+  font-size: 14px;
682 682
   font-weight: 800;
683 683
   span {
684 684
     padding-right: 5px;