GaoYuPeng před 4 roky
rodič
revize
7fa0eb2d88

Diff nebyl zobrazen, protože je příliš veliký
+ 0 - 228
shanXiPlatform/README.es.md


Diff nebyl zobrazen, protože je příliš veliký
+ 0 - 224
shanXiPlatform/README.ja.md


+ 41 - 1
shanXiPlatform/src/api/countQuality/index.js

@@ -118,4 +118,44 @@ export function  deletekcck( id ) {
118 118
     url: `/csc-szls-business/quantityQuality/authority_button/deleteById?id=${id}`,
119 119
     method: 'delete',
120 120
   })
121
-}
121
+}
122
+
123
+/* 入库质量管理 */
124
+// 全部记录&&查询
125
+export function  getIncomingInfo( data ) {
126
+  return request({
127
+    url: `/csc-szls-business/warehousingQuality/authority/getPage`,
128
+    method: 'post',
129
+    data:data
130
+  })
131
+}
132
+//根据id查询
133
+export function  getIncomingById( id ) {
134
+  return request({
135
+    url: `/csc-szls-business/warehousingQuality/authority/getById?id=${id}`,
136
+    method: 'get',
137
+  })
138
+}
139
+// 修改
140
+export function  updateInQuality( data ) {
141
+  return request({
142
+    url: `/csc-szls-business/warehousingQuality/authority_button/update`,
143
+    method: 'post',
144
+    data:data
145
+  })
146
+}
147
+// 删除
148
+export function  deleteInQuality( id ) {
149
+  return request({
150
+    url: `/csc-szls-business/warehousingQuality/authority_button/deleteById?id=${id}`,
151
+    method: 'delete',
152
+  })
153
+}
154
+// 新增
155
+export function  saveInQuality( data ) {
156
+  return request({
157
+    url: `/csc-szls-business/warehousingQuality/authority_button/add`,
158
+    method: 'post',
159
+    data:data
160
+  })
161
+}

+ 7 - 6
shanXiPlatform/src/router/index.js

@@ -673,24 +673,25 @@ export const constantRoutes = [
673 673
         resourceCode:174,
674 674
       },
675 675
 
676
-      //  数量质量/库存质量管理
676
+
677
+      // 数量质量/入库质量
677 678
       {
678 679
         path: 'warehousingQuality/StorageQuality',
679 680
         component: () => import('@/views/countQuality/warehousingQuality/StorageQuality'),
680 681
         name: 'StorageQuality',
681 682
         resourceCode:174,
682
-        meta: { title: '入库质量', icon: 'dashboard', affix: false, noCache: true, relation: 'house', istable: false }
683
-        
683
+        meta: { title: '入库质量', icon: 'dashboard', affix: false, noCache: true, relation: 'house', istable: true }
684
+
684 685
       },
685 686
       {
686 687
         path: 'warehousingQuality/steps',
687 688
         component: () => import('@/views/countQuality/warehousingQuality/steps'),
688 689
         name: 'steps',
689 690
         hidden: true,
690
-        meta: { title: '新增', icon: 'dashboard', affix: false/* , noCache: true, relation: 'house', istable: false */ }
691
+        meta: { title: '新增', icon: 'dashboard', affix: false , noCache: true, relation: 'house',/* istable: false */ }
691 692
       },
692 693
      /*  {
693
-        // 数量质量/入库质量
694
+
694 695
 
695 696
         path: 'warehousingQuality',
696 697
         // component: () => import('@/views/countQuality/warehousingQuality/StorageQuality'),
@@ -716,7 +717,7 @@ export const constantRoutes = [
716 717
             },
717 718
         ]
718 719
       }, */
719
-
720
+       //  数量质量/库存质量管理
720 721
       {
721 722
         path: 'inventory',
722 723
         component: storeTabs,

+ 3 - 3
shanXiPlatform/src/views/countQuality/inventory/allinventoryQuality.vue

@@ -78,10 +78,10 @@ export default {
78 78
             houseId: this.$store.state.houseId
79 79
         }
80 80
     },
81
-   
81
+
82 82
     created() {
83 83
         this.id = JSON.parse(getUser()).depotId
84
-        this.name = JSON.parse(getUser()).depotName
84
+        this.depotName = JSON.parse(getUser()).depotName
85 85
         if (this.$route.query.state == "more") {
86 86
             this.qType = this.$route.query.qtype
87 87
         }
@@ -238,4 +238,4 @@ export default {
238 238
     margin-right: 20px;
239 239
     text-align: right;
240 240
 }
241
-</style>
241
+</style>

+ 211 - 90
shanXiPlatform/src/views/countQuality/warehousingQuality/StorageQuality.vue

@@ -1,27 +1,21 @@
1
-<!--
2
- * @Author: your name
3
- * @Date: 2021-04-13 10:48:09
4
- * @LastEditTime: 2021-04-15 16:41:54
5
- * @LastEditors: Please set LastEditors
6
- * @Description: In User Settings Edit
7
- * @FilePath: \csc-szls-vue\shanXiPlatform\src\views\countQuality\warehousingQuality\StorageQuality.vue
8
--->
1
+
9 2
 <template>
10 3
   <div class="global">
11 4
     <div class="contentContainer">
12 5
       <div class="top">入库质量</div>
13 6
       <div class="container">
14 7
         <div class="header">
15
-          <el-form :inline="true" :model="query" class="demo-form-inline">
8
+          <el-form :inline="true" class="demo-form-inline">
16 9
             <el-form-item label="检测时间">
17 10
               <el-date-picker
18
-                v-model="query.value1"
11
+                v-model="time"
12
+                @change="timechange"
19 13
                 type="daterange"
20
-                format="yyyy 年 MM 月 dd 日"
21
-                value-format="yyyy-MM-dd"
22 14
                 range-separator="至"
23 15
                 start-placeholder="开始日期"
24 16
                 end-placeholder="结束日期"
17
+                :default-time="['00:00:00', '23:59:59']"
18
+                value-format="yyyy-MM-dd HH:mm:ss"
25 19
               >
26 20
               </el-date-picker>
27 21
             </el-form-item>
@@ -50,7 +44,7 @@
50 44
               type="success"
51 45
               icon="el-icon-circle-plus"
52 46
               plain
53
-              @click="add()"
47
+              @click="add(1)"
54 48
               >新增</el-button
55 49
             >
56 50
           </div>
@@ -65,72 +59,78 @@
65 59
           :header-cell-style="{ background: '#f8f8f8' }"
66 60
         >
67 61
           <el-table-column
68
-            :index="indexMethod"
69
-            type="index"
62
+            prop="creationTime"
70 63
             align="center"
71 64
             label="记录时间"
72 65
             width="150px"
73 66
           >
74 67
           </el-table-column>
75 68
 
76
-          <el-table-column prop="type" label="检测结果">
77
-            <template>
69
+          <el-table-column prop="checkType" align="center" label="检测结果">
70
+            <template slot-scope="scope">
78 71
               <div class="steps">
79
-                <!-- :active="stepActive" direction="horizontal"-->
80 72
                 <el-steps
73
+                  v-if="scope.row.stepTitle"
81 74
                   align-center
82
-                  :active="stepActive"
83
-                  finish-status="success"
75
+                  :active="scope.row.checkType"
84 76
                   direction="horizontal"
85 77
                 >
86
-                  <!--  v-for="(item, index) in totalData"
87
-            :key="index"
88
-            @click.native="stepClick(index)" -->
89
-                  <el-step id="el_step" title="1/3">
78
+                  <el-step
79
+                    id="el_step"
80
+                    v-for="(item, index) in scope.row.stepTitle"
81
+                    :title="item"
82
+                    :key="index"
83
+                  >
90 84
                     <svg-icon
91 85
                       class="icon_wai"
92 86
                       slot="icon"
93
-                      icon-class="finished"
87
+                      icon-class="NotStarted"
88
+                      v-if="scope.row.qualityChildrens.length < index"
94 89
                     />
95
-                    <!-- <svg-icon
96
-             class='icon_wai'
97
-              slot="icon"
98
-              icon-class="current"
99
-              v-if="stepActive == index"
100
-            />
101
-            <svg-icon
102
-             class='icon_wai'
103
-              slot="icon"
104
-              icon-class="finished"
105
-              v-if="stepActive > index"
106
-            /> -->
107
-                  </el-step>
108
-                  <el-step title="1/2">
109 90
                     <svg-icon
110 91
                       class="icon_wai"
111 92
                       slot="icon"
112 93
                       icon-class="current"
94
+                      v-if="scope.row.qualityChildrens.length == index"
113 95
                     />
114
-                  </el-step>
115
-                  <el-step title="2/3">
116 96
                     <svg-icon
117 97
                       class="icon_wai"
118 98
                       slot="icon"
119
-                      icon-class="NotStarted"
99
+                      icon-class="finished"
100
+                      v-if="scope.row.qualityChildrens.length > index"
120 101
                     />
102
+                    <!-- <i class="el-icon-eleme" v-if="item == '巡查'"></i> -->
121 103
                   </el-step>
122
-                  <el-step title="自验收">
104
+                </el-steps>
105
+                <el-steps
106
+                  v-else
107
+                  align-center
108
+                  :active="scope.row.checkType"
109
+                  direction="horizontal"
110
+                >
111
+                  <el-step
112
+                    id="el_step"
113
+                    v-for="(item, index) in stepTitle"
114
+                    :title="item"
115
+                    :key="index"
116
+                  >
123 117
                     <svg-icon
124 118
                       class="icon_wai"
125 119
                       slot="icon"
126 120
                       icon-class="NotStarted"
121
+                      v-if="scope.row.qualityChildrens.length < index"
127 122
                     />
128
-                  </el-step>
129
-                  <el-step title="质检验收">
130 123
                     <svg-icon
131 124
                       class="icon_wai"
132 125
                       slot="icon"
133
-                      icon-class="NotStarted"
126
+                      icon-class="current"
127
+                      v-if="scope.row.qualityChildrens.length == index"
128
+                    />
129
+                    <svg-icon
130
+                      class="icon_wai"
131
+                      slot="icon"
132
+                      icon-class="finished"
133
+                      v-if="scope.row.qualityChildrens.length > index"
134 134
                     />
135 135
                   </el-step>
136 136
                 </el-steps>
@@ -140,30 +140,26 @@
140 140
           <!-- <el-table-column prop="applyTime" label="时间" align="center">
141 141
           </el-table-column> -->
142 142
           <el-table-column
143
-            prop="auditState"
143
+            prop="qualityState"
144 144
             label="状态"
145 145
             align="center"
146 146
             width="150px"
147 147
           >
148 148
             <template slot-scope="scope">
149
-              <!-- <div v-if="scope.row.auditState == 0">待审批</div>
150
-              <div v-if="scope.row.auditState == 1">待审批</div>
151
-              <div v-if="scope.row.auditState == 2">审批不通过</div>
152
-              <div v-if="scope.row.auditState == 3">进行中</div>-->
153
-              <div v-if="scope.row.auditState == 4">已完成</div>
154
-              <div>进行中</div>
149
+              <div v-if="scope.row.qualityState == 1">已完成</div>
150
+              <div
151
+                v-if="
152
+                  scope.row.qualityState == 0 || scope.row.qualityState == null
153
+                "
154
+              >
155
+                进行中
156
+              </div>
155 157
             </template>
156 158
           </el-table-column>
157 159
 
158
-          <el-table-column
159
-            prop="operation"
160
-            label="操作"
161
-            align="center"
162
-            width="300px"
163
-          >
160
+          <el-table-column label="操作" align="center" width="300px">
164 161
             <template slot-scope="scope">
165 162
               <el-button
166
-                v-if="$tools.IsPermission(205)"
167 163
                 size="mini"
168 164
                 type="detailbtn"
169 165
                 @click="handleCheck(3, scope.$index, scope.row)"
@@ -174,13 +170,7 @@
174 170
                 size="mini"
175 171
                 type="editbtn"
176 172
                 @click="handleEdit(2, scope.$index, scope.row)"
177
-                v-if="
178
-                  scope.row.auditState != 0 &&
179
-                    scope.row.auditState != 4 &&
180
-                    scope.row.auditState != 1 &&
181
-                    scope.row.auditState != 2 &&
182
-                    $tools.IsPermission(204)
183
-                "
173
+                v-if="scope.row.qualityState != 1"
184 174
                 >修改</el-button
185 175
               >
186 176
               <el-button
@@ -193,11 +183,11 @@
193 183
             </template>
194 184
           </el-table-column>
195 185
         </el-table>
186
+        <!-- :page-count="5" -->
196 187
         <el-pagination
197 188
           background
198 189
           @size-change="sizeChange"
199 190
           @current-change="handleCurrentChange"
200
-          :page-count="5"
201 191
           :page-sizes="[10, 20, 30, 40]"
202 192
           :page-size="pagination.pageSize"
203 193
           layout="total, sizes, prev, pager, next, jumper"
@@ -210,6 +200,7 @@
210 200
 
211 201
 <script>
212 202
 import Pagination from "@/components/Pagination"
203
+import { getIncomingInfo, deleteInQuality } from "@/api/countQuality/index"
213 204
 export default {
214 205
   components: { Pagination },
215 206
   data() {
@@ -219,6 +210,7 @@ export default {
219 210
       //初始化步骤高亮显示到第几步
220 211
       stepActive: 0,
221 212
       //步骤1
213
+      stepTitle: ["1/3", "1/2", "2/3", "自验收", "质检中心验收"],
222 214
       //存储用户信息
223 215
       userInfo: {},
224 216
       //仓房编号
@@ -226,43 +218,172 @@ export default {
226 218
       //库编号
227 219
       depotId: this.$store.state.depotId,
228 220
       //类型
229
-      type: "yjly",
230
-      value: "",
231
-      query: {
232
-        // startTime: "",
233
-        // endTime: "",
234
-        value1: ""
235
-      },
236
-      //分页
221
+      time: [],
222
+      startTime: "",
223
+      endTime: "",
237 224
 
225
+      //分页
238 226
       pagination: {
239 227
         //当前页数
240
-        curPage: 1,
228
+        pageIndex: 1,
241 229
         //每页显示的条数
242
-        pageSize: 10,
230
+        pageSize: 20,
243 231
         //总条数
244 232
         total: 0
245 233
       },
246 234
       // 列表数据
247
-      StorageData: [
248
-        {
249
-          time: "2021-034-13",
250
-          check: ""
251
-        }
252
-      ]
235
+      StorageData: []
236
+    }
237
+  },
238
+  created() {
239
+    // this.getIncomingInfoData()
240
+  },
241
+  mounted() {
242
+    this.getIncomingInfoData()
243
+  },
244
+  computed: {
245
+    HouseId() {
246
+      return this.$store.state.houseId
247
+    }
248
+  },
249
+  watch: {
250
+    HouseId: function(val) {
251
+      this.houseId = val
252
+      // console.log(this.houseId, "houseId 改变了")
253
+      this.getIncomingInfoData()
253 254
     }
254 255
   },
255
-  methods:{
256
+  methods: {
257
+    timechange(val) {
258
+      this.startTime = val[0]
259
+      this.endTime = val[1]
260
+    },
261
+    sizeChange(v) {
262
+      this.pagination.pageSize = v
263
+      // this.getList()
264
+      this.getIncomingInfoData()
265
+    },
266
+    handleCurrentChange(v) {
267
+      this.pagination.pageIndex = v
268
+      // this.getList()
269
+      this.getIncomingInfoData()
270
+    },
256 271
     // 新增流程
257
-    add()  {
272
+    add(type) {
273
+      this.$router.push({
274
+        path: "steps",
275
+        query: { type: type }
276
+      })
277
+    },
278
+    // 修改流程
279
+    handleEdit(type, index, data) {
258 280
       this.$router.push({
259 281
         path: "steps",
260
-       /*  query: {
261
-          type: type,
262
-        }, */
282
+        query: { type: type, data: data }
263 283
       })
284
+    },
285
+    // 查看流程
286
+    handleCheck(type, index, data) {
287
+      this.$router.push({
288
+        path: "steps",
289
+        query: { type: type, data: data }
290
+      })
291
+    },
292
+
293
+    // 获取列表数据
294
+    getIncomingInfoData() {
295
+      var condition = {
296
+        depotId: this.depotId,
297
+        warehouseId: this.houseId,
298
+        creationTimeStart: this.startTime,
299
+        creaetionTimeEnd: this.endTime
300
+      }
301
+      var data = {
302
+        pageIndex: this.pagination.pageIndex,
303
+        pageSize: this.pagination.pageSize,
304
+        condition: JSON.stringify(condition)
305
+      }
306
+      getIncomingInfo(data)
307
+        .then(res => {
308
+          if (res.code == 200) {
309
+            this.StorageData = res.data.records
310
+            this.pagination.pageSize = res.data.size
311
+            this.pagination.total = res.data.total
312
+            // 遍历为每一项添加各自不同的步骤
313
+            for (let i = 0; i < this.StorageData.length; i++) {
314
+              // 此处的数组赋值要进行深拷贝
315
+              this.StorageData[i].stepTitle = JSON.parse(
316
+                JSON.stringify(this.stepTitle)
317
+              )
318
+              for (
319
+                let j = 0;
320
+                j < this.StorageData[i].qualityChildrens.length;
321
+                j++
322
+              ) {
323
+                if (
324
+                  this.StorageData[i].qualityChildrens[j].checkName.indexOf(
325
+                    "巡"
326
+                  ) != -1
327
+                ) {
328
+                  this.StorageData[i].stepTitle.splice(
329
+                    j,
330
+                    0,
331
+                    this.StorageData[i].qualityChildrens[j].checkName
332
+                  )
333
+                }
334
+              }
335
+            }
336
+          } else {
337
+            console.log("其他错误")
338
+          }
339
+          console.log(res, "res 初始化数据返回")
340
+        })
341
+        .catch(err => {
342
+          console.log(err, "err")
343
+        })
344
+    },
345
+    //删除
346
+    handleDelete(index, data) {
347
+      deleteInQuality(data.id)
348
+        .then(res => {
349
+          this.$message({
350
+            message: res.msg,
351
+            type: "success"
352
+          })
353
+          this.getIncomingInfoData()
354
+        })
355
+        .catch(res => {
356
+          console.log(res, "删除失败")
357
+        })
358
+    },
359
+    clear() {
360
+      // this.qType = ""
361
+      this.time = []
362
+      this.statTime = ""
363
+      this.endTime = ""
364
+      // this.getList()
365
+    },
366
+    search() {
367
+      var condition = {
368
+        depotId: this.depotId,
369
+        warehouseId: this.houseId,
370
+        creationTimeStart: this.startTime,
371
+        creaetionTimeEnd: this.endTime
372
+      }
373
+      var data = {
374
+        pageIndex: this.pagination.pageIndex,
375
+        pageSize: this.pagination.pageSize,
376
+        condition: JSON.stringify(condition)
377
+      }
378
+      getIncomingInfo(data)
379
+        .then(res => {
380
+          console.log(res, "查询返回数据")
381
+        })
382
+        .catch(err => {
383
+          console.log(err, "查询错误返回")
384
+        })
264 385
     }
265
-  },
386
+  }
266 387
 }
267 388
 </script>
268 389
 

+ 374 - 183
shanXiPlatform/src/views/countQuality/warehousingQuality/steps.vue

@@ -2,92 +2,72 @@
2 2
   <div class="container">
3 3
     <div id="mainRight">
4 4
       <div class="steps">
5
-        <!-- :active="stepActive" direction="horizontal"-->
6
-        <el-steps
7
-          align-center
8
-          :active="stepActive"
9
-          finish-status="success"
10
-          direction="horizontal"
11
-        >
12
-          <!--  v-for="(item, index) in totalData"
5
+        <el-steps align-center :active="active" direction="horizontal">
6
+          <el-step
7
+            id="el_step"
8
+            :title="item"
9
+            v-for="(item, index) in stepTitle"
13 10
             :key="index"
14
-            @click.native="stepClick(index)" -->
15
-          <el-step id="el_step" title="1/3">
16
-            <svg-icon class="icon_wai" slot="icon" icon-class="finished" />
17
-            <!-- <svg-icon
18
-             class='icon_wai'
11
+          >
12
+            <i class="el-icon-eleme" v-if="item == '巡查'"></i>
13
+
14
+            <svg-icon
15
+              class="icon_wai"
16
+              slot="icon"
17
+              icon-class="NotStarted"
18
+              v-if="active < index"
19
+            />
20
+            <svg-icon
21
+              class="icon_wai"
19 22
               slot="icon"
20 23
               icon-class="current"
21
-              v-if="stepActive == index"
24
+              v-if="active == index"
22 25
             />
23 26
             <svg-icon
24
-             class='icon_wai'
27
+              class="icon_wai"
25 28
               slot="icon"
26 29
               icon-class="finished"
27
-              v-if="stepActive > index"
28
-            /> -->
29
-          </el-step>
30
-          <el-step title="1/2">
31
-            <svg-icon class="icon_wai" slot="icon" icon-class="current" />
32
-          </el-step>
33
-          <el-step title="2/3">
34
-            <svg-icon class="icon_wai" slot="icon" icon-class="NotStarted" />
35
-          </el-step>
36
-          <el-step title="自验收">
37
-            <svg-icon class="icon_wai" slot="icon" icon-class="NotStarted" />
38
-          </el-step>
39
-          <el-step title="质检验收">
40
-            <svg-icon class="icon_wai" slot="icon" icon-class="NotStarted" />
30
+              v-if="active > index"
31
+            />
41 32
           </el-step>
33
+          <el-button
34
+            type="savebtn"
35
+            v-show="checkShow"
36
+            class="addcheck"
37
+            @click="add"
38
+            >添加巡查</el-button
39
+          >
42 40
         </el-steps>
43 41
       </div>
44 42
       <div>
45 43
         <el-table
46
-          :header-row-class-name="goodsInfo"
47
-          :cell-class-name="goodsInfo"
44
+          :data="personData1"
48 45
           border
49
-          :data="personData"
50
-          highlight-current-row
51
-          @current-change="handleCurrentChange"
52
-          style="width: 100%"
53 46
           :header-cell-style="{ background: '#f8f8f8' }"
54
-        >
47
+          :row-style="{ height: '60px' }"
48
+          :cell-style="{ padding: '0' }"
49
+          ref="personData1"
50
+          >
55 51
           <el-table-column
56
-            property="qtypeName"
52
+            v-if="type == 1 || type == 2"
53
+            prop="checkType"
57 54
             label="检查类型"
58 55
             align="center"
59
-            width='200'
60
-          ></el-table-column>
61
-         <el-table-column
62
-            property="checkTime"
63
-            style="padding:0;"
64
-            label="记录时间"
56
+            >{{ (checkType = this.stepTitle[this.active]) }}</el-table-column
57
+          >
58
+          <el-table-column
59
+            v-if="type == 3"
60
+            prop="checkName"
61
+            label="检查类型"
65 62
             align="center"
66
-
67 63
           >
68
-            <template>
69
-              <p
70
-                style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
71
-              >
72
-            1
73
-              </p>
74
-              <p
75
-                style="height:45px;line-height:45px;margin:0; padding-top:7px;border-top:1px solid #dfe6ec;border-bottom:1px solid #dfe6ec;"
76
-              >
77
-2
78
-              </p>
79
-              <p style="height:45px;line-height:45px;margin:0;padding-top:7px;">
80
-3
81
-              </p>
82
-            </template>
83 64
           </el-table-column>
84 65
           <el-table-column
85
-            property="ppost"
86
-            style="padding:0;"
87
-            label="检查项"
66
+            prop="creationTime"
67
+            label="记录时间"
88 68
             align="center"
89
-
90
-          >
69
+          ></el-table-column>
70
+          <el-table-column label="检查项" align="center" style="padding:0;">
91 71
             <template>
92 72
               <p
93 73
                 style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
@@ -105,133 +85,358 @@
105 85
             </template>
106 86
           </el-table-column>
107 87
           <el-table-column
108
-
109
-            property="operation"
110 88
             label="选项"
111 89
             align="center"
112
-            min-width='250'
90
+            style="padding:0;"
91
+            min-width="280px"
113 92
           >
114
-             <template slot-scope="scope">
115
-              <!-- <el-radio-group
116
-                v-model="scope.row.c"
117
-                @change="radioChange(scope.$index, scope.row)"
118
-              >
119
-                <el-radio :label="0">达标.宜存</el-radio>
120
-                <el-radio :label="1">不达标.宜存</el-radio>
121
-                <el-radio :label="2">不达标.不宜存</el-radio>
122
-              </el-radio-group> -->
93
+            <template slot-scope="scope">
123 94
               <p
124 95
                 style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
125 96
               >
126 97
                 <el-radio-group
127
-                v-model="scope.row.c"
128
-                @change="radioChange(scope.$index, scope.row)"
129
-              >
130
-                <el-radio :label="0">达标.宜存</el-radio>
131
-                <el-radio :label="1">不达标.宜存</el-radio>
132
-                <el-radio :label="2">不达标.不宜存</el-radio>
133
-              </el-radio-group>
98
+                  v-model="scope.row.wquality"
99
+                  @change="radioChange1(scope.$index, scope.row)"
100
+                  :disabled="isDetail"
101
+                >
102
+                  <el-radio :label="0">达标.宜存</el-radio>
103
+                  <el-radio :label="1">不达标.宜存</el-radio>
104
+                  <el-radio :label="2">不达标.不宜存</el-radio>
105
+                </el-radio-group>
134 106
               </p>
135 107
               <p
136 108
                 style="height:45px;line-height:45px;margin:0; padding-top:7px;border-top:1px solid #dfe6ec;border-bottom:1px solid #dfe6ec;"
137 109
               >
138 110
                 <el-radio-group
139
-                v-model="scope.row.c"
140
-                @change="radioChange(scope.$index, scope.row)"
141
-              >
142
-                <el-radio :label="0">达标.宜存</el-radio>
143
-                <el-radio :label="1">不达标.宜存</el-radio>
144
-                <el-radio :label="2">不达标.不宜存</el-radio>
145
-              </el-radio-group>
111
+                  v-model="scope.row.wcharacter"
112
+                  @change="radioChange1(scope.$index, scope.row)"
113
+                  :disabled="isDetail"
114
+                >
115
+                  <el-radio :label="0">达标.宜存</el-radio>
116
+                  <el-radio :label="1">不达标.宜存</el-radio>
117
+                  <el-radio :label="2">不达标.不宜存</el-radio>
118
+                </el-radio-group>
146 119
               </p>
147 120
               <p style="height:45px;line-height:45px;margin:0;padding-top:7px;">
148 121
                 <el-radio-group
149
-                v-model="scope.row.c"
150
-                @change="radioChange(scope.$index, scope.row)"
151
-              >
152
-                <el-radio :label="0">达标.宜存</el-radio>
153
-                <el-radio :label="1">不达标.宜存</el-radio>
154
-                <el-radio :label="2">不达标.不宜存</el-radio>
155
-              </el-radio-group>
122
+                  v-model="scope.row.toxinIndex"
123
+                  @change="radioChange1(scope.$index, scope.row)"
124
+                  :disabled="isDetail"
125
+                >
126
+                  <el-radio :label="0">达标.宜存</el-radio>
127
+                  <el-radio :label="1">不达标.宜存</el-radio>
128
+                  <el-radio :label="2">不达标.不宜存</el-radio>
129
+                </el-radio-group>
156 130
               </p>
157 131
             </template>
158 132
           </el-table-column>
159 133
         </el-table>
160 134
       </div>
135
+      <div class="btns">
136
+        <el-button type="danger" v-show="isShow">删除</el-button>
137
+        <el-button type="cancel" @click="goBack()">返回</el-button>
138
+        <el-button
139
+          class="saveBtn"
140
+          type="savebtn"
141
+          @click="save()"
142
+          :loading="loading"
143
+          v-if="type == 1"
144
+          >新增</el-button
145
+        >
146
+        <el-button
147
+          class="saveBtn"
148
+          type="savebtn"
149
+          @click="edit()"
150
+          :loading="loading"
151
+          v-if="type == 2"
152
+          >修改</el-button
153
+        >
154
+      </div>
161 155
     </div>
162 156
   </div>
163 157
 </template>
164 158
 <script>
165
-import { getkccknew } from "@/api/countQuality/index"
159
+import { getNowFormatDateone } from "@/utils"
160
+import {
161
+  /* getkccknew, */ saveInQuality,
162
+  updateInQuality
163
+} from "@/api/countQuality/index"
166 164
 export default {
167 165
   data() {
168 166
     return {
169
-       query: {
170
-        roleId: ""
171
-      },
172
-      personData: [
173
-        {
174
-          createTime: "",
175
-          d: "质量",
176
-          c: ""
177
-        },
178
-        {
179
-          createTime: "",
180
-          d: "品质",
181
-          c: ""
182
-        },
167
+      type: null, // 1:新增, 2:修改,3:查看
168
+      loading: false,
169
+      isShow: false,
170
+      isDetail: false, //查看是选项不能被选择
171
+      active: 0,
172
+      indexInfoList: [],
173
+      stepTitle: ["1/3", "1/2", "2/3", "自验收", "质检中心验收"],
174
+      // stepTitle1: [],
175
+
176
+      checkType: "1/3",
177
+      creationTime: "", // 时间转换中介
178
+      personData1: [
183 179
         {
184
-          createTime: "",
185
-          d: "毒素指标",
186
-          c: ""
180
+          checkType: "",
181
+          creationTime: "",
182
+          wquality: null, //质量(0达标易存,1不达标易存,2不达标不易存
183
+          wcharacter: null, //品质(0达标易存,1不达标易存,2不达标不易存
184
+          toxinIndex: null //毒素指标(0达标易存,1不达标易存,2不达标不易存
187 185
         }
188 186
       ],
187
+      model: {
188
+        checkName: "", //检测名称当前处于类型
189
+        checkType: null, // 检测类型(0:1/3,1:1/2,2:2/3,3:自验收,5:质检中心验收
190
+        childrenId: null,
191
+        creationTime: "", //创建时间
192
+        depotId: this.$store.state.depotId, //库id
193
+        depotName: this.$store.state.depotName, //库名称
194
+        endTime: "", //结束时间
195
+        id: null, //
196
+        qualityState: null, //0:进行中,1:完成
197
+        saveType: null, //标识是否第一次新增,0代表第一次,1代表n次
198
+        toxinIndex: null, //毒素指标(0达标易存,1不达标易存,2不达标不易存
199
+        wCharacter: null, //品质(0达标易存,1不达标易存,2不达标不易存
200
+        wIndex: null, //内置序列号
201
+        wQuality: null, //质量(0达标易存,1不达标易存,2不达标不易存
202
+        warehouseId: Number(this.$store.state.houseId), //仓房id
203
+        warehouseName: this.$store.state.houseName, //仓房名称
204
+        warehouseingId: null //入库质量表id
205
+      },
206
+      // stepActive:true,
189 207
       depotId: "",
190 208
       depotName: "",
191
-      loading: false,
192
-      model: {
193
-        ccharacter: "",
194
-        cquality: "",
195
-        ctoxinIndex: "",
196
-        depotId: "",
197
-        depotYpte: 1,
198
-        qid: "",
199
-        qtype: "",
200
-        warehouseId: "",
201
-        saveState: ""
202
-      }
209
+      isok: false
210
+      // checkShow:(this.active == 0 || this.stepTitle.length-1)?false:true,
211
+      // checkShow:false //新增巡查按钮显示控制
212
+    }
213
+  },
214
+  computed: {
215
+    // 监听
216
+    checkShow: function() {
217
+      return this.active == 0 || this.active == this.stepTitle.length - 1
218
+        ? false
219
+        : true
203 220
     }
204
-      /* personData: [],
205
-      total: 0,
206
-      id: "",
207
-      depotId: "",
208
-      warehouseId: "",
209
-      depotYpte: 1 */
210
-
211 221
   },
212 222
   created() {
213 223
     // this.depotId = JSON.parse(getUser()).depotId
214 224
     // this.warehouseId = this.$store.state.houseId
215
-    this.getList()
225
+    // this.getList()
226
+  },
227
+  mounted() {
228
+    let routeParams = this.$route.query
229
+    this.type = routeParams.type
230
+    // 1:新增, 2:修改,3:查看
231
+    if (this.type == 1) {
232
+      // 新增
233
+      this.model.saveType = 0 //0代表第一次新增,1代表n次
234
+    } else if (this.type == 2) {
235
+      // 修改
236
+      let editData = routeParams.data.qualityChildrens
237
+      this.active = routeParams.data.qualityChildrens.length - 1
238
+      this.model.saveType = 1 //0代表第一次新增,1代表n次
239
+      this.model.checkName = editData[editData.length - 1].checkName
240
+      this.model.id = routeParams.data.id
241
+      this.model.childrenId =
242
+        routeParams.data.qualityChildrens[this.active].childrenId
243
+      this.personData1[0].wquality =
244
+        routeParams.data.qualityChildrens[this.active].wquality
245
+      this.personData1[0].toxinIndex =
246
+        routeParams.data.qualityChildrens[this.active].toxinIndex
247
+      this.personData1[0].wcharacter =
248
+        routeParams.data.qualityChildrens[this.active].wcharacter
249
+      this.personData1[0].creationTime =
250
+        routeParams.data.qualityChildrens[this.active].creationTime
251
+      this.stepTitle = JSON.parse(JSON.stringify(routeParams.data.stepTitle))
252
+    } else if (this.type == 3) {
253
+      // 查看
254
+      this.personData1 = routeParams.data.qualityChildrens
255
+      let editData = routeParams.data.qualityChildrens
256
+      this.active = editData[editData.length - 1].checkType + 1
257
+      this.isDetail = true //单选项设为不能选择
258
+      this.stepTitle = routeParams.data.stepTitle
259
+      this.active = routeParams.data.qualityChildrens.length - 1
260
+
261
+      console.log(this.personData1, "查看步骤")
262
+    }
216 263
   },
217 264
   methods: {
218
-    radioChange(index, row) {
219
-      this.personData[index].createTime = getNowFormatDateone()
220
-      if (row.d == "质量") {
221
-        this.model.cquality = row.c
222
-      } else if (row.d == "品质") {
223
-        this.model.ccharacter = row.c
224
-      } else if (row.d == "毒素指标") {
225
-        this.model.ctoxinIndex = row.c
265
+    // 合并行
266
+    objectSpanMethod({ row, column, rowIndex, columnIndex }) {
267
+      if (columnIndex === 0 || columnIndex === 1) {
268
+        if (rowIndex % 3 === 0) {
269
+          return {
270
+            rowspan: 3,
271
+            colspan: 1
272
+          }
273
+        } else {
274
+          return {
275
+            rowspan: 0,
276
+            colspan: 0
277
+          }
278
+        }
226 279
       }
227 280
     },
281
+    //单选
282
+    radioChange1(index, row) {
283
+      this.personData1[index].creationTime = getNowFormatDateone()
284
+      this.creationTime = this.getISOString()
285
+      this.isok = true //  该步骤操作过,设置可以保存
286
+    },
287
+
288
+    getISOString() {
289
+      var t = new Date()
290
+      return t.toISOString()
291
+    },
292
+    // 修改
293
+    edit() {
294
+      this.model.creationTime = this.creationTime
295
+      // this.model.saveType = 0 //0代表第一次新增,1代表n次
296
+      this.model.wQuality = this.personData1[0].wquality
297
+      this.model.wCharacter = this.personData1[0].wcharacter
298
+      this.model.toxinIndex = this.personData1[0].toxinIndex
299
+      // 转换checkType 与checkName
300
+
301
+      let checktype = this.stepTitle[this.active]
302
+      switch (checktype) {
303
+        case "1/3":
304
+          this.model.checkType = 0
305
+          break
306
+        case "1/2":
307
+          this.model.checkType = 1
308
+          break
309
+        case "2/3":
310
+          this.model.checkType = 2
311
+          break
312
+        case "自验收":
313
+          this.model.checkType = 3
314
+          break
315
+        case "质检中心验收":
316
+          this.model.checkType = 4
317
+          break
318
+        case "巡查":
319
+          this.model.checkType = 5
320
+          break
321
+      }
322
+      // 判断状态
323
+      if (this.active < this.stepTitle.length - 1) {
324
+        this.model.qualityState = 0 //状态为进行中
325
+      } else if (this.active == this.stepTitle.length - 1) {
326
+        this.model.qualityState = 1 //状态为已完成
327
+      }
328
+      updateInQuality(this.model)
329
+        .then(res => {
330
+          console.log(res, "更新数据返回")
331
+        })
332
+        .catch(err => {
333
+          console.loh(err, "错误信息返回")
334
+        })
335
+    },
336
+    // 新增保存
337
+    save() {
338
+      this.loading = true
339
+      // 通过checkName判断checkType
340
+      let checktype = this.stepTitle[this.active]
341
+      switch (checktype) {
342
+        case "1/3":
343
+          this.model.checkType = 0
344
+          break
345
+        case "1/2":
346
+          this.model.checkType = 1
347
+          break
348
+        case "2/3":
349
+          this.model.checkType = 2
350
+          break
351
+        case "自验收":
352
+          this.model.checkType = 3
353
+          break
354
+        case "质检中心验收":
355
+          this.model.checkType = 4
356
+          break
357
+        case "巡查":
358
+          this.model.checkType = 5
359
+          break
360
+      }
361
+      // 新增
362
+      if (this.type == 1) {
363
+        if (this.active < this.stepTitle.length - 1) {
364
+          this.model.qualityState = 0 //状态为进行中
365
+        } else if (this.active == this.stepTitle.length - 1) {
366
+          this.model.qualityState = 1 //状态为已完成
367
+        }
368
+        // if(this.stepTitle[this.active] )
369
+        this.model.checkName = this.stepTitle[this.active]
370
+        // this.model.checkType = this.stepTitle[this.active]
371
+        this.model.creationTime = this.creationTime
372
+        // this.model.saveType = 0 //0代表第一次新增,1代表n次
373
+        this.model.wQuality = this.personData1[0].wquality
374
+        this.model.wCharacter = this.personData1[0].wcharacter
375
+        this.model.toxinIndex = this.personData1[0].toxinIndex
376
+
377
+        if (this.isok) {
378
+          saveInQuality(this.model)
379
+            .then(res => {
380
+              if (res.code == 200) {
381
+                this.loading = false
382
+                this.next() // 该步骤新增成功后步骤+1
383
+                this.model.id = res.data.id
384
+                this.model.saveType = 1 // 下一步需要将此字段改为第n次新增
385
+
386
+                this.personData1[0].wquality = null
387
+                this.personData1[0].wcharacter = null
388
+                this.personData1[0].toxinIndex = null
389
+                this.personData1[0].creationTime = ""
390
+              }
391
+            })
392
+            .catch(res => {
393
+              this.$message("新增失败!")
394
+              this.loading = false
395
+            })
396
+        } else {
397
+          this.loading = false
398
+          this.$message({
399
+            message: "不能保存空的步骤,请记录后再进行保存!",
400
+            type: "warning"
401
+          })
402
+        }
403
+      } else if (this.type == 2) {
404
+        // 修改
405
+      } else if (this.type == 3) {
406
+      }
407
+    },
408
+    // 查看
409
+    query() {},
410
+    // 删除
411
+    delete() {},
412
+    // 下一步
413
+    next() {
414
+      // console.log(this.active, "active")
415
+      if (this.active++ >= this.stepTitle.length - 1) {
416
+        // this.active = 0
417
+        this.$router.push({
418
+          path: "/countQuality/warehousingQuality/StorageQuality"
419
+        })
420
+      }
421
+      // this.stepTitle1 = this.stepTitle;
422
+    },
423
+    // 添加巡查
424
+    add() {
425
+      this.stepTitle.splice(this.active, 0, "巡查")
426
+    },
427
+    //点击返回按钮
428
+    goBack() {
429
+      this.$router.push({
430
+        path: "/countQuality/warehousingQuality/StorageQuality"
431
+      })
432
+    },
228 433
     goodsInfo(row) {
229 434
       if (row.columnIndex == 3 || row.columnIndex == 2) {
230 435
         return "goodsInfo"
231 436
       }
232 437
     },
233 438
 
234
-    getList() {
439
+    /* getList() {
235 440
       getkccknew(this.depotId, "1").then(res => {
236 441
         this.personData = res.data
237 442
         this.total = res.data.total
@@ -256,7 +461,7 @@ export default {
256 461
           state: "more"
257 462
         }
258 463
       })
259
-    },
464
+    }, */
260 465
     handleCurrentChange() {}
261 466
   }
262 467
 }
@@ -265,7 +470,7 @@ export default {
265 470
 .goodsInfo {
266 471
   padding: 0 !important;
267 472
 }
268
-.goodsInfo .cell {
473
+.el-table .cell {
269 474
   padding: 0;
270 475
   overflow: unset;
271 476
 }
@@ -273,16 +478,26 @@ export default {
273 478
   width: 45px;
274 479
   height: 45px;
275 480
 }
481
+.el-step.is-horizontal .el-step__line {
482
+  top: 21px !important;
483
+}
276 484
 </style>
277 485
 <style lang="scss" scoped>
278 486
 .container {
279
-  height: 100%;
487
+  height: calc(100vh - 165px);
488
+  overflow-y: scroll;
489
+  overflow-x: hidden;
280 490
   display: flex;
491
+  // margin-right: 13px;
281 492
   #mainLeft {
282 493
     width: 300px;
283
-    height: calc(100vh - 200px);
494
+
284 495
     border: 1px solid #e6e6e6;
285 496
   }
497
+  .content {
498
+    height: 100%;
499
+    // overflow-y: auto;
500
+  }
286 501
   #mainRight {
287 502
     margin-left: 20px;
288 503
     width: calc(99%);
@@ -312,7 +527,6 @@ export default {
312 527
 .steps {
313 528
   min-height: 80px;
314 529
   margin: 10px 0;
315
-  // line-height:80px;
316 530
   .iconfont {
317 531
     font-size: 55px;
318 532
   }
@@ -323,40 +537,6 @@ export default {
323 537
     width: 40px;
324 538
     height: 40px;
325 539
   }
326
-  .el-step__head.is-process {
327
-    border-color: #dedede;
328
-  }
329
-  .el-step__head.is-finish {
330
-    border-color: #285edf;
331
-  }
332
-  .el-step__title.is-process {
333
-    color: #037d41;
334
-  }
335
-  .el-step__title.is-wait {
336
-    color: #16261e;
337
-  }
338
-  .el-step__title.is-finish {
339
-    color: #037d41;
340
-  }
341
-  .el-step__description.is-process {
342
-    color: #2d2f33;
343
-  }
344
-
345
-  .el-step__description.is-wait {
346
-    color: #b4bccc;
347
-  }
348
-
349
-  .el-step__description.is-success {
350
-    color: #409167;
351
-  }
352
-
353
-  .el-step__description.is-error {
354
-    color: #b3450e;
355
-  }
356
-
357
-  .el-step__description.is-finish {
358
-    color: #262729;
359
-  }
360 540
 }
361 541
 
362 542
 .icon_wai {
@@ -373,4 +553,15 @@ export default {
373 553
   margin-right: 20px;
374 554
   text-align: right;
375 555
 }
556
+.btns {
557
+  /*   position: relative;
558
+  bottom: 150px;
559
+  right: 50px; */
560
+  text-align: right;
561
+  margin: 40px 10px 0 0;
562
+}
563
+.addcheck {
564
+  margin-right: 15px;
565
+  margin-top: 15px;
566
+}
376 567
 </style>

+ 4 - 3
shanXiPlatform/src/views/facilitiesEquipment/equipmentManagement/deviceManagement/detailList.vue

@@ -96,7 +96,7 @@
96 96
                   scope.row.auditState != 0 &&
97 97
                   scope.row.auditState != 4 &&
98 98
                   scope.row.auditState != 1 &&
99
-                  scope.row.auditState != 2 
99
+                  scope.row.auditState != 2
100 100
                 "
101 101
                 >修改</el-button
102 102
               >
@@ -174,6 +174,7 @@ export default {
174 174
         },
175 175
       })
176 176
     },
177
+
177 178
     //查看
178 179
     handleCheck(type, index, row) {
179 180
       if (row.auditState == 4) {
@@ -257,7 +258,7 @@ export default {
257 258
         type: this.type,
258 259
         startTime: this.query.value1[0],
259 260
         endTime: this.query.value1[1],
260
-       
261
+
261 262
       }
262 263
       console.log(condition, "condition.....")
263 264
       condition = JSON.stringify(condition)
@@ -293,7 +294,7 @@ export default {
293 294
 
294 295
     //查询
295 296
     search() {
296
-      
297
+
297 298
       this.tfList()
298 299
     },
299 300
     //当前页发生变化时

+ 4 - 4
shanXiPlatform/src/views/facilitiesEquipment/equipmentManagement/deviceManagement/index.vue

@@ -51,7 +51,7 @@
51 51
         <el-table-column prop="recvDetailsInfo" label="设备状态" align="center" />
52 52
         <el-table-column prop="operation" label="查看" align="center" width="200px" fixed="right">
53 53
           <template slot-scope="scope">
54
-            <span class="buttonSpan"  @click="handleDetail(scope.row)">管理记录》</span>
54
+            <span class="buttonSpan"  @click="handleDetail(scope.row)">管理记录 》</span>
55 55
           </template>
56 56
         </el-table-column>
57 57
       </el-table>
@@ -175,12 +175,12 @@ export default {
175 175
         this.$router.push({ name: "Addnotice",query: { state: 'add',orgType: '1' } })
176 176
       }else{
177 177
         this.$router.push({ name: "Addnotice",query: { state: 'add',orgType: '2' } })
178
-      } 
178
+      }
179 179
     },
180
-    // 查看   
180
+    // 查看
181 181
     handleDetail(row) {
182 182
       this.$router.push({ name: "DeviceManagementDlist",query: { }})
183
-      
183
+
184 184
     },
185 185
     // // 编辑
186 186
     // handleEdit(row) {

+ 11 - 11
shanXiPlatform/src/views/facilitiesEquipment/equipmentManagement/deviceManagement/steps.vue

@@ -34,7 +34,7 @@
34 34
           <div class="tf_title">
35 35
             <i class="iconfont iconshu"></i>
36 36
             <span v-if="stepActive == 0 || step == 1">流程(设施维修计划审批)</span>
37
-            <span v-if="stepActive == 1 || step == 2">流程(设施维修预算审批)</span> 
37
+            <span v-if="stepActive == 1 || step == 2">流程(设施维修预算审批)</span>
38 38
           </div>
39 39
           <div class="tf_title_right">
40 40
             <span style="margin-right:10px">提交给总经理和分公司审批</span>
@@ -415,7 +415,7 @@ export default {
415 415
             //   process: this.process,
416 416
             // })
417 417
             this.main_id = this.totalData[0].step.id
418
-            console.log(this.totalData, "this.totalData..")
418
+            // console.log(this.totalData, "this.totalData..")
419 419
             this.tableShow()
420 420
           }
421 421
         })
@@ -565,7 +565,7 @@ export default {
565 565
                 this.processActive = i
566 566
               }
567 567
               this.process.push(ele)
568
-            }  
568
+            }
569 569
             if (this.process[0].content == 0) {
570 570
               this.process[0].content = this.userInfo.uid
571 571
             } else {
@@ -618,9 +618,9 @@ export default {
618 618
             this.stepActive = this.stepActive + 1
619 619
             this.processId = this.$route.query.processId
620 620
             this.step = this.stepActive + 1
621
-            this.totalData = [] 
622
-            this.tableData = []   
623
-            this.process = [] 
621
+            this.totalData = []
622
+            this.tableData = []
623
+            this.process = []
624 624
             this.subList = []
625 625
             this.getCheckList()
626 626
           }else{
@@ -677,14 +677,14 @@ export default {
677 677
       this.button = "暂存"
678 678
     }
679 679
   },
680
-} 
680
+}
681 681
 </script>
682 682
 <style lang="scss" scoped>
683 683
 .mainContainer {
684 684
   background: #fff;
685 685
   padding: 10px;
686 686
    height: calc(100% - 40px);
687
- 
687
+
688 688
   .div_parent{
689 689
   height:100%;
690 690
   overflow-y:auto ;
@@ -740,12 +740,12 @@ export default {
740 740
     display: inline-block;
741 741
   }
742 742
   .tf_title_right{
743
-    display: inline-block;
743
+    // display: inline-block;
744 744
     float: right;
745 745
   }
746
-  .el-steps {
746
+/*   .el-steps {
747 747
   // height: 330px !important;
748
-}
748
+} */
749 749
 
750 750
 .icon_wai{
751 751
   width:3em;

+ 8 - 8
shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/newFacilities/addType.vue

@@ -475,7 +475,7 @@ export default {
475 475
     this.data1.equipFacilities.depotName = userInfo.depotName
476 476
 
477 477
     let routeParams = this.$route.query
478
-    console.log(routeParams, "routeParams")
478
+    // console.log(routeParams, "routeParams")
479 479
     this.type = routeParams.type
480 480
     this.id = routeParams.pid
481 481
     // this.id = routeParams.data.id
@@ -515,9 +515,9 @@ export default {
515 515
     getFacilityList() {
516 516
       getFacilitiyById(this.kind)
517 517
         .then(res => {
518
-          console.log(res, "设施字典表")
518
+          // console.log(res, "设施字典表")
519 519
           this.facilityList = res.data
520
-          console.log(this.facilityList, "this.facilityList.....")
520
+          // console.log(this.facilityList, "this.facilityList.....")
521 521
 
522 522
           // console.log(this.facilityList, "this.facilityList.....")
523 523
         })
@@ -534,7 +534,7 @@ export default {
534 534
             if (res.code == 200) {
535 535
               // console.log(res, "检查项数据")
536 536
               this.checkItems = res.data
537
-              console.log(this.checkItems, "this.checkItems")
537
+              // console.log(this.checkItems, "this.checkItems")
538 538
               for (let i = 0; i < this.checkItems.length; i++) {
539 539
                 this.checkItems[i].isCheck = ""
540 540
                 this.checkItems[i].checkEnumId = ""
@@ -552,7 +552,7 @@ export default {
552 552
         this.disabled = true
553 553
         checkFacilitiyInfo(this.id)
554 554
           .then(res => {
555
-            console.log(res, "查看数据222")
555
+            // console.log(res, "查看数据222")
556 556
             this.checkItems = res
557 557
             /* this.checkItems.forEach(element => {
558 558
               element.createDate = element.createDate.substring(0,element.createDate.length-3)
@@ -679,16 +679,16 @@ export default {
679 679
             this.checkItems[i].isCheck === 0
680 680
           ) {
681 681
             num += 1
682
-            console.log(this.checkItems[i], num, "该项被选中了")
682
+            // console.log(this.checkItems[i], num, "该项被选中了")
683 683
           }
684 684
 
685 685
           if (num == this.checkItems.length) {
686 686
             this.data1.equipFacilities.checkState = 1
687 687
             this.flag = true
688
-            console.log("此时暂存变保存,切状态改为已完成")
688
+            // console.log("此时暂存变保存,切状态改为已完成")
689 689
           } else {
690 690
             this.data1.equipFacilities.checkState = 0
691
-            console.log("此时暂存还是暂存,切状态改为 进行中")
691
+            // console.log("此时暂存还是暂存,切状态改为 进行中")
692 692
           }
693 693
         }
694 694
       }

+ 5 - 7
shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/newFacilities/index.vue

@@ -157,7 +157,7 @@ export default {
157 157
       getFacility(40)
158 158
         .then(res => {
159 159
           if (res.code == 200) {
160
-            console.log(res, "设施种类")
160
+            // console.log(res, "设施种类")
161 161
             // console.log(res.data[2].children,'设备设施种类')
162 162
             // 设施种类保存本地,并且tavle中,遍历的时候与其对应一下,显示种类名称
163 163
             this.facilityKind = res.data
@@ -195,20 +195,18 @@ export default {
195 195
     },
196 196
 
197 197
     handleAdd(type, index, row) {
198
-      console.log(index, "index", row, "row")
199
-      console.log(row.checkTime, "改变时间...")
198
+
200 199
       row.checkTime = getDateTimeNow()
201 200
       this.datetime = getDateTimeNow()
202 201
 
203
-      console.log(row.checkTime, "改变时间111...")
204
-      console.log( this.datetime, "改变时间...")
202
+
205 203
       if (row.depotId == null) {
206 204
         row.depotId = this.depotId
207
-        console.log("库id为空时")
205
+        // console.log("库id为空时")
208 206
       }
209 207
       if (row.houseId == null) {
210 208
         row.houseId = this.houseId
211
-        console.log("仓房id为空时")
209
+        // console.log("仓房id为空时")
212 210
       }
213 211
 
214 212
       this.$router.push({

+ 0 - 1
shanXiPlatform/src/views/reservesManagement/fumigationManagement/index.vue

@@ -232,7 +232,6 @@ export default {
232 232
 
233 233
     //修改
234 234
     handleEdit(type, index, row) {
235
-      console.log(row, "修改row...")
236 235
       this.$router.push({
237 236
         path: "/reservesManagement/fumigationManagement/steps",
238 237
         query: {

+ 9 - 9
shanXiPlatform/src/views/reservesManagement/fumigationManagement/steps.vue

@@ -34,7 +34,7 @@
34 34
           <div class="tf_title">
35 35
             <i class="iconfont iconshu"></i>
36 36
             <span v-if="stepActive == 0 || step == 1">流程(熏蒸计划审批)</span>
37
-            <span v-if="stepActive == 3 || step == 4">流程(熏蒸散气申请审批)</span> 
37
+            <span v-if="stepActive == 3 || step == 4">流程(熏蒸散气申请审批)</span>
38 38
           </div>
39 39
           <el-steps direction="vertical" :active="processActive">
40 40
             <el-step  v-for="(item, index) in tableDataAudit"  :key="index"  icon="el-icon-edit">
@@ -524,7 +524,7 @@ export default {
524 524
                 this.processActive = i
525 525
               }
526 526
               this.process.push(ele)
527
-            }  
527
+            }
528 528
             if (this.process[0].content == 0) {
529 529
               this.process[0].content = this.userInfo.uid
530 530
             } else {
@@ -571,9 +571,9 @@ export default {
571 571
             this.stepActive = this.stepActive + 1
572 572
             this.processId = this.$route.query.processId
573 573
             this.step = this.stepActive + 1
574
-            this.totalData = [] 
575
-            this.tableData = []   
576
-            this.process = [] 
574
+            this.totalData = []
575
+            this.tableData = []
576
+            this.process = []
577 577
             this.subList = []
578 578
             this.getCheckList()
579 579
           }else{
@@ -622,14 +622,14 @@ export default {
622 622
       this.button = "暂存"
623 623
     }
624 624
   },
625
-} 
625
+}
626 626
 </script>
627 627
 <style lang="scss" scoped>
628 628
 .mainContainer {
629 629
   background: #fff;
630 630
   padding: 10px;
631 631
    height: calc(100% - 40px);
632
- 
632
+
633 633
   .div_parent{
634 634
   height:100%;
635 635
   overflow-y:auto ;
@@ -683,9 +683,9 @@ export default {
683 683
     color: #037d41;
684 684
     font-size: 18px;
685 685
   }
686
-  .el-steps {
686
+ /*  .el-steps {
687 687
   // height: 330px !important;
688
-}
688
+} */
689 689
 
690 690
 .icon_wai{
691 691
   width:3em;

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

@@ -103,7 +103,7 @@
103 103
           prop="anomalousStatus"
104 104
           label="有无异常"
105 105
           align="center"
106
-          
106
+
107 107
         >
108 108
           <template slot-scope="scope">
109 109
 
@@ -282,7 +282,7 @@ export default {
282 282
   mounted() {
283 283
     this.activeName = this.$route.name
284 284
     let routeParams = this.$route.query
285
-    console.log(routeParams,'routerouteParams')
285
+    // console.log(routeParams,'routerouteParams')
286 286
     // console.log(routeParams.type, "type")
287 287
     // console.log(this.data2, "this.data2")
288 288
     this.type = routeParams.type

+ 2 - 2
shanXiPlatform/src/views/reservesManagement/grainCheck/newGrain/addNewGrain.vue

@@ -879,8 +879,8 @@ export default {
879 879
           console.log(this.data5.grainConditionRecord.anomalousStatus,'异常解除')
880 880
         } */
881 881
         })
882
-        console.log(JSON.parse(JSON.stringify(this.data5)), "this.data5----")
883
-        console.log(this.data5, "xiugai hou 的data5")
882
+        // console.log(JSON.parse(JSON.stringify(this.data5)), "this.data5----")
883
+        // console.log(this.data5, "xiugai hou 的data5")
884 884
         editGrainInfo(this.data5)
885 885
           .then(res => {
886 886
             this.loading = true

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

@@ -359,18 +359,6 @@ export default {
359 359
     //获取最新粮情
360 360
     getList() {
361 361
       // let userinfo =JSON.parse(localStorage.getItem("userInfo"))
362
-      // console.log(JSON.parse(userinfo),'userInfo')
363
-      // console.log(userinfo.depotId,'userinfo.depotId')
364
-      // console.log('121111........')
365
-      // let condition = {
366
-      //   houseId: /* (this.houseId ==null || this.houseId ==undefined)?  */ this.houseId ,
367
-      //   depotId: this.depotId
368
-      // }
369
-      // console.log(JSON.stringify(condition),'1111')
370
-      // let data = {
371
-
372
-      //   condition: JSON.stringify(condition)
373
-      // }
374 362
       let data = {
375 363
         depotId:
376 364
           this.depotId !== null || this.depotId !== undefined
@@ -419,7 +407,6 @@ export default {
419 407
           }
420 408
         }
421 409
       }
422
-      // console.log(this.sortData, "this.sortData.....")
423 410
     },
424 411
     // 状态改成图标
425 412
     formatterColumn(row, column) {
@@ -435,8 +422,6 @@ export default {
435 422
     // 除保管员外弹窗
436 423
     open(val,index) {
437 424
       // console.log(this.$route.query, "保管员外的角色")
438
-      // console.log(val, "val...")
439
-      // console.log(index,'index')
440 425
       this.data5.grainConditionRecord.depotId = this.depotId
441 426
       this.data5.grainConditionRecord.houseId = this.houseId
442 427
       this.data5.grainConditionRecord.enumId = val.enumId
@@ -451,10 +436,6 @@ export default {
451 436
       this.$msgbox({
452 437
         // title: "新增" + val.checkPerson,
453 438
         title: "新增" + item.enumName,
454
-        /* message: h('p', null, [
455
-            h('span', null, '内容可以是 '),
456
-            h('i', { style: 'color: teal' }, 'VNode')
457
-          ]), */
458 439
         center: true,
459 440
         showCancelButton: true,
460 441
         confirmButtonClass: "el-button--success is-plain",