GaoYuPeng 3 years ago
parent
commit
aa8be24d8c

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

@@ -10,16 +10,7 @@
10
                 >起始日期时刻为 12:00:00,结束日期时刻为 08:00:00</span
10
                 >起始日期时刻为 12:00:00,结束日期时刻为 08:00:00</span
11
               > -->
11
               > -->
12
               <span class="demonstration">检测时间:</span>
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
               <el-date-picker
14
               <el-date-picker
24
                 v-model="value2"
15
                 v-model="value2"
25
                 type="daterange"
16
                 type="daterange"
@@ -38,13 +29,7 @@
38
             <div class="top_select">
29
             <div class="top_select">
39
               <span class="demonstration"> 检查类型: </span>
30
               <span class="demonstration"> 检查类型: </span>
40
               <el-select v-model="kind" placeholder="请选择">
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
                 <el-option
33
                 <el-option
49
               v-for="item in grainKind"
34
               v-for="item in grainKind"
50
               :key="item.enumId"
35
               :key="item.enumId"
@@ -95,7 +80,7 @@
95
           :index="indexMethod"
80
           :index="indexMethod"
96
         >
81
         >
97
         </el-table-column>
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
            <template slot-scope="scope">
84
            <template slot-scope="scope">
100
             <span>{{
85
             <span>{{
101
               scope.row.operationTime == null
86
               scope.row.operationTime == null
@@ -105,7 +90,7 @@
105
           </template>
90
           </template>
106
         </el-table-column>
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
           <template slot-scope="scope">
94
           <template slot-scope="scope">
110
             <p v-for="item in grainKind" :key="item.enumId">
95
             <p v-for="item in grainKind" :key="item.enumId">
111
               <span v-if="scope.row.enumId == item.enumId">{{
96
               <span v-if="scope.row.enumId == item.enumId">{{
@@ -118,7 +103,7 @@
118
           prop="anomalousStatus"
103
           prop="anomalousStatus"
119
           label="有无异常"
104
           label="有无异常"
120
           align="center"
105
           align="center"
121
-          width="100px"
106
+          
122
         >
107
         >
123
           <template slot-scope="scope">
108
           <template slot-scope="scope">
124
 
109
 
@@ -132,7 +117,7 @@
132
             </div>
117
             </div>
133
           </template>
118
           </template>
134
         </el-table-column>
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
           <template slot-scope="scope">
121
           <template slot-scope="scope">
137
             <div
122
             <div
138
               disable-transitions
123
               disable-transitions
@@ -154,12 +139,20 @@
154
             </p>
139
             </p>
155
           </template>
140
           </template>
156
         </el-table-column>
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
           <template slot-scope="scope">
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
             </div>
156
             </div>
164
           </template>
157
           </template>
165
         </el-table-column> -->
158
         </el-table-column> -->
@@ -252,7 +245,7 @@ export default {
252
       depotId: this.$store.state.depotId,
245
       depotId: this.$store.state.depotId,
253
       houseId: this.$store.state.houseId,
246
       houseId: this.$store.state.houseId,
254
       grainKind: [], //粮情检查类别
247
       grainKind: [], //粮情检查类别
255
-
248
+      checkItems:[],
256
       // select 选项数据
249
       // select 选项数据
257
       options: [
250
       options: [
258
         {
251
         {
@@ -327,6 +320,19 @@ export default {
327
         .catch(err => {
320
         .catch(err => {
328
           console.log(err)
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
     getList() {
338
     getList() {

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

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