Ver código fonte

入库质量

GaoYuPeng 4 anos atrás
pai
commit
6bbe05a6e6

+ 15 - 9
shanXiPlatform/src/components/Breadcrumb/index.vue

@@ -1,7 +1,7 @@
1 1
 <!--
2 2
  * @Author: your name
3 3
  * @Date: 2020-12-17 13:59:37
4
- * @LastEditTime: 2021-03-16 16:03:07
4
+ * @LastEditTime: 2021-04-15 16:45:23
5 5
  * @LastEditors: Please set LastEditors
6 6
  * @Description: In User Settings Edit
7 7
  * @FilePath: \csc-szls-vue\shanXiPlatform\src\components\Breadcrumb\index.vue
@@ -13,9 +13,9 @@
13 13
 
14 14
     <transition-group name="breadcrumb">
15 15
       <el-breadcrumb-item v-for="(item,index) in levelList" :key="item.path">
16
-        <span v-if="item.redirect==='noRedirect'||index==levelList.length-1" class="no-redirect">{{ item.meta.title }}</span>
17
-        <!-- <a v-else @click.prevent="handleLink(item)">{{ item.meta.title }}</a> -->
18
-        <span v-else>{{ item.meta.title }}</span>
16
+        <span v-if="item.redirect==='noRedirect'||index==levelList.length" class="no-redirect">{{ item.meta.title }}</span>
17
+        <a v-else @click.prevent="handleLink(item)">{{ item.meta.title }}</a>
18
+        <!-- <span v-else>{{ item.meta.title }}</span> -->
19 19
       </el-breadcrumb-item>
20 20
     </transition-group>
21 21
   </el-breadcrumb>
@@ -50,9 +50,9 @@ export default {
50 50
       console.log(matched,"matched")
51 51
       const first = matched[0]
52 52
 
53
-      // if (!this.isDashboard(first)) {
54
-      //   matched = [{ path: '/dashboard', meta: { title: 'Dashboard' }}].concat(matched)
55
-      // }
53
+     /*  if (!this.isDashboard(first)) {
54
+        matched = [{ path: '/dashboard', meta: { title: 'Dashboard' }}].concat(matched)
55
+      } */
56 56
 
57 57
       this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
58 58
 
@@ -68,14 +68,20 @@ export default {
68 68
       // To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
69 69
       const { params } = this.$route
70 70
       var toPath = pathToRegexp.compile(path)
71
+      console.log(toPath,'toPath')
71 72
       return toPath(params)
72 73
     },
73 74
     handleLink(item) {
74 75
       const { redirect, path } = item
76
+      console.log(item,'item')
75 77
       if (redirect) {
76
-        this.$router.push(redirect)
78
+       /*  var tab =redirect.split("/");
79
+        console.log(tab[1],'tab')
80
+        console.log(redirect,'redirect') */
81
+        this.$router.push(redirect.split("/")[1])
77 82
         return
78 83
       }
84
+      console.log(path,'path')
79 85
       this.$router.push(this.pathCompile(path))
80 86
     }
81 87
   }
@@ -86,7 +92,7 @@ export default {
86 92
 .app-breadcrumb.el-breadcrumb {
87 93
   display: inline-block;
88 94
   font-size: 14px;
89
-  line-height: 50px;
95
+  line-height: 54px;
90 96
   margin-left: 8px;
91 97
   color:#555555;
92 98
   .no-redirect {

+ 45 - 1
shanXiPlatform/src/router/index.js

@@ -378,7 +378,7 @@ export const constantRoutes = [
378 378
         hidden: true,
379 379
         meta: { title: '粮情检查', icon: 'dashboard',isshowLibrary:true, affix: true },
380 380
       },
381
-      
381
+
382 382
       {
383 383
         path: 'gzjftable',
384 384
         component: () => import('@/views/home/gzjftable'),
@@ -672,8 +672,52 @@ export const constantRoutes = [
672 672
         meta: { title: '仓房信息', icon: 'cangfang', affix: false, relation: 'house', istable: true },
673 673
         resourceCode:174,
674 674
       },
675
+
675 676
       //  数量质量/库存质量管理
676 677
       {
678
+        path: 'warehousingQuality/StorageQuality',
679
+        component: () => import('@/views/countQuality/warehousingQuality/StorageQuality'),
680
+        name: 'StorageQuality',
681
+        resourceCode:174,
682
+        meta: { title: '入库质量', icon: 'dashboard', affix: false, noCache: true, relation: 'house', istable: false }
683
+        
684
+      },
685
+      {
686
+        path: 'warehousingQuality/steps',
687
+        component: () => import('@/views/countQuality/warehousingQuality/steps'),
688
+        name: 'steps',
689
+        hidden: true,
690
+        meta: { title: '新增', icon: 'dashboard', affix: false/* , noCache: true, relation: 'house', istable: false */ }
691
+      },
692
+     /*  {
693
+        // 数量质量/入库质量
694
+
695
+        path: 'warehousingQuality',
696
+        // component: () => import('@/views/countQuality/warehousingQuality/StorageQuality'),
697
+        name: 'warehousingQuality',
698
+        redirect: 'warehousingQuality/StorageQuality',
699
+        meta: { title: '入库质量', icon: 'cangfang', affix: false, relation: 'house', istable: true },
700
+        resourceCode:174,
701
+        children:[
702
+            // 入库质量/新增
703
+            {
704
+              path: 'StorageQuality',
705
+              component: () => import('@/views/countQuality/warehousingQuality/StorageQuality'),
706
+              name: 'StorageQuality',
707
+              hidden: true,
708
+              meta: { title: '入库质量记录', icon: 'dashboard', affix: false, noCache: true, relation: 'house', istable: false }
709
+            },
710
+            {
711
+              path: 'steps',
712
+              component: () => import('@/views/countQuality/warehousingQuality/steps'),
713
+              name: 'steps',
714
+              hidden: true,
715
+              meta: { title: '新增', icon: 'dashboard', affix: false, noCache: true, relation: 'house', istable: false }
716
+            },
717
+        ]
718
+      }, */
719
+
720
+      {
677 721
         path: 'inventory',
678 722
         component: storeTabs,
679 723
         name: 'inventory',

+ 1 - 1
shanXiPlatform/src/views/countQuality/delivery/deliveryQuality.vue

@@ -140,4 +140,4 @@ export default {
140 140
     margin-right: 20px;
141 141
     text-align: right;
142 142
 }
143
-</style>
143
+</style>

+ 408 - 0
shanXiPlatform/src/views/countQuality/warehousingQuality/StorageQuality.vue

@@ -0,0 +1,408 @@
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
+-->
9
+<template>
10
+  <div class="global">
11
+    <div class="contentContainer">
12
+      <div class="top">入库质量</div>
13
+      <div class="container">
14
+        <div class="header">
15
+          <el-form :inline="true" :model="query" class="demo-form-inline">
16
+            <el-form-item label="检测时间">
17
+              <el-date-picker
18
+                v-model="query.value1"
19
+                type="daterange"
20
+                format="yyyy 年 MM 月 dd 日"
21
+                value-format="yyyy-MM-dd"
22
+                range-separator="至"
23
+                start-placeholder="开始日期"
24
+                end-placeholder="结束日期"
25
+              >
26
+              </el-date-picker>
27
+            </el-form-item>
28
+            <el-form-item>
29
+              <el-button
30
+                type="info"
31
+                plain
32
+                @click="clear()"
33
+                class="iconfont iconclear"
34
+              >
35
+                清空</el-button
36
+              >
37
+
38
+              <el-button
39
+                type="success"
40
+                icon="el-icon-search"
41
+                plain
42
+                @click="search()"
43
+                >查询</el-button
44
+              >
45
+            </el-form-item>
46
+          </el-form>
47
+          <div>
48
+            <el-button
49
+              v-if="$tools.IsPermission(203)"
50
+              type="success"
51
+              icon="el-icon-circle-plus"
52
+              plain
53
+              @click="add()"
54
+              >新增</el-button
55
+            >
56
+          </div>
57
+        </div>
58
+
59
+        <el-table
60
+          border
61
+          stripe
62
+          :data="StorageData"
63
+          highlight-current-row
64
+          style="width: 100%"
65
+          :header-cell-style="{ background: '#f8f8f8' }"
66
+        >
67
+          <el-table-column
68
+            :index="indexMethod"
69
+            type="index"
70
+            align="center"
71
+            label="记录时间"
72
+            width="150px"
73
+          >
74
+          </el-table-column>
75
+
76
+          <el-table-column prop="type" label="检测结果">
77
+            <template>
78
+              <div class="steps">
79
+                <!-- :active="stepActive" direction="horizontal"-->
80
+                <el-steps
81
+                  align-center
82
+                  :active="stepActive"
83
+                  finish-status="success"
84
+                  direction="horizontal"
85
+                >
86
+                  <!--  v-for="(item, index) in totalData"
87
+            :key="index"
88
+            @click.native="stepClick(index)" -->
89
+                  <el-step id="el_step" title="1/3">
90
+                    <svg-icon
91
+                      class="icon_wai"
92
+                      slot="icon"
93
+                      icon-class="finished"
94
+                    />
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
+                    <svg-icon
110
+                      class="icon_wai"
111
+                      slot="icon"
112
+                      icon-class="current"
113
+                    />
114
+                  </el-step>
115
+                  <el-step title="2/3">
116
+                    <svg-icon
117
+                      class="icon_wai"
118
+                      slot="icon"
119
+                      icon-class="NotStarted"
120
+                    />
121
+                  </el-step>
122
+                  <el-step title="自验收">
123
+                    <svg-icon
124
+                      class="icon_wai"
125
+                      slot="icon"
126
+                      icon-class="NotStarted"
127
+                    />
128
+                  </el-step>
129
+                  <el-step title="质检验收">
130
+                    <svg-icon
131
+                      class="icon_wai"
132
+                      slot="icon"
133
+                      icon-class="NotStarted"
134
+                    />
135
+                  </el-step>
136
+                </el-steps>
137
+              </div>
138
+            </template>
139
+          </el-table-column>
140
+          <!-- <el-table-column prop="applyTime" label="时间" align="center">
141
+          </el-table-column> -->
142
+          <el-table-column
143
+            prop="auditState"
144
+            label="状态"
145
+            align="center"
146
+            width="150px"
147
+          >
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>
155
+            </template>
156
+          </el-table-column>
157
+
158
+          <el-table-column
159
+            prop="operation"
160
+            label="操作"
161
+            align="center"
162
+            width="300px"
163
+          >
164
+            <template slot-scope="scope">
165
+              <el-button
166
+                v-if="$tools.IsPermission(205)"
167
+                size="mini"
168
+                type="detailbtn"
169
+                @click="handleCheck(3, scope.$index, scope.row)"
170
+                >查看</el-button
171
+              >
172
+
173
+              <el-button
174
+                size="mini"
175
+                type="editbtn"
176
+                @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
+                "
184
+                >修改</el-button
185
+              >
186
+              <el-button
187
+                size="mini"
188
+                type="danger"
189
+                plain
190
+                @click="handleDelete(scope.$index, scope.row)"
191
+                >删除</el-button
192
+              >
193
+            </template>
194
+          </el-table-column>
195
+        </el-table>
196
+        <el-pagination
197
+          background
198
+          @size-change="sizeChange"
199
+          @current-change="handleCurrentChange"
200
+          :page-count="5"
201
+          :page-sizes="[10, 20, 30, 40]"
202
+          :page-size="pagination.pageSize"
203
+          layout="total, sizes, prev, pager, next, jumper"
204
+          :total="pagination.total"
205
+        ></el-pagination>
206
+      </div>
207
+    </div>
208
+  </div>
209
+</template>
210
+
211
+<script>
212
+import Pagination from "@/components/Pagination"
213
+export default {
214
+  components: { Pagination },
215
+  data() {
216
+    return {
217
+      //初始化点击的步骤
218
+      step: 0,
219
+      //初始化步骤高亮显示到第几步
220
+      stepActive: 0,
221
+      //步骤1
222
+      //存储用户信息
223
+      userInfo: {},
224
+      //仓房编号
225
+      houseId: this.$store.state.houseId,
226
+      //库编号
227
+      depotId: this.$store.state.depotId,
228
+      //类型
229
+      type: "yjly",
230
+      value: "",
231
+      query: {
232
+        // startTime: "",
233
+        // endTime: "",
234
+        value1: ""
235
+      },
236
+      //分页
237
+
238
+      pagination: {
239
+        //当前页数
240
+        curPage: 1,
241
+        //每页显示的条数
242
+        pageSize: 10,
243
+        //总条数
244
+        total: 0
245
+      },
246
+      // 列表数据
247
+      StorageData: [
248
+        {
249
+          time: "2021-034-13",
250
+          check: ""
251
+        }
252
+      ]
253
+    }
254
+  },
255
+  methods:{
256
+    // 新增流程
257
+    add()  {
258
+      this.$router.push({
259
+        path: "steps",
260
+       /*  query: {
261
+          type: type,
262
+        }, */
263
+      })
264
+    }
265
+  },
266
+}
267
+</script>
268
+
269
+<style lang="scss" scoped>
270
+.contentContainer {
271
+  background: #fff;
272
+  .top {
273
+    padding-left: 10px;
274
+    height: 40px;
275
+    line-height: 40px;
276
+    border-bottom: 1px solid #ccc;
277
+    font-weight: 400;
278
+    font-size: 16px;
279
+  }
280
+  .container {
281
+    padding: 10px;
282
+    .header {
283
+      height: 40px;
284
+      line-height: 40px;
285
+      display: flex;
286
+      justify-content: space-between;
287
+      margin-bottom: 20px;
288
+    }
289
+    .el-pagination {
290
+      text-align: right;
291
+      margin-top: 20px;
292
+    }
293
+  }
294
+  .checkBtn.is-plain {
295
+    color: #037d41;
296
+    background-color: #fff;
297
+    border-color: #037d41;
298
+  }
299
+  .checkBtn.is-plain:hover {
300
+    color: #fff !important;
301
+    background-color: #13ce66 !important;
302
+    border: 1px solid #13ce66 !important;
303
+  }
304
+}
305
+.steps {
306
+  min-height: 80px;
307
+  margin: 10px 0;
308
+  // line-height:80px;
309
+  .iconfont {
310
+    font-size: 55px;
311
+  }
312
+}
313
+/* /deep/ */
314
+.el-steps {
315
+  .el-step__icon {
316
+    width: 40px;
317
+    height: 40px;
318
+  }
319
+  .el-step__head.is-process {
320
+    border-color: #dedede;
321
+  }
322
+  .el-step__head.is-finish {
323
+    border-color: #285edf;
324
+  }
325
+  .el-step__title.is-process {
326
+    color: #037d41;
327
+  }
328
+  .el-step__title.is-wait {
329
+    color: #16261e;
330
+  }
331
+  .el-step__title.is-finish {
332
+    color: #037d41;
333
+  }
334
+  .el-step__description.is-process {
335
+    color: #2d2f33;
336
+  }
337
+
338
+  .el-step__description.is-wait {
339
+    color: #b4bccc;
340
+  }
341
+
342
+  .el-step__description.is-success {
343
+    color: #409167;
344
+  }
345
+
346
+  .el-step__description.is-error {
347
+    color: #b3450e;
348
+  }
349
+
350
+  .el-step__description.is-finish {
351
+    color: #262729;
352
+  }
353
+}
354
+
355
+/* .el-steps {
356
+  height: 160px;
357
+} */
358
+
359
+.icon_wai {
360
+  width: 3em;
361
+  height: 3em;
362
+}
363
+</style>
364
+<style>
365
+.el-step__icon {
366
+  width: 45px;
367
+  height: 45px;
368
+}
369
+
370
+.el-step__head.is-process {
371
+  border-color: #dedede;
372
+}
373
+.el-step__head.is-finish {
374
+  border-color: #285edf;
375
+}
376
+.el-step__title.is-process {
377
+  color: #037d41;
378
+}
379
+.el-step__title.is-wait {
380
+  color: #16261e;
381
+}
382
+.el-step__title.is-finish {
383
+  color: #037d41;
384
+}
385
+.el-step__description.is-process {
386
+  color: #2d2f33;
387
+}
388
+
389
+.el-step__description.is-wait {
390
+  color: #b4bccc;
391
+}
392
+
393
+.el-step__description.is-success {
394
+  color: #409167;
395
+}
396
+
397
+.el-step__description.is-error {
398
+  color: #b3450e;
399
+}
400
+
401
+.el-step__description.is-finish {
402
+  color: #262729;
403
+}
404
+
405
+.el-step.is-horizontal .el-step__line {
406
+  top: 19px !important;
407
+}
408
+</style>

+ 376 - 0
shanXiPlatform/src/views/countQuality/warehousingQuality/steps.vue

@@ -0,0 +1,376 @@
1
+<template>
2
+  <div class="container">
3
+    <div id="mainRight">
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"
13
+            :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'
19
+              slot="icon"
20
+              icon-class="current"
21
+              v-if="stepActive == index"
22
+            />
23
+            <svg-icon
24
+             class='icon_wai'
25
+              slot="icon"
26
+              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" />
41
+          </el-step>
42
+        </el-steps>
43
+      </div>
44
+      <div>
45
+        <el-table
46
+          :header-row-class-name="goodsInfo"
47
+          :cell-class-name="goodsInfo"
48
+          border
49
+          :data="personData"
50
+          highlight-current-row
51
+          @current-change="handleCurrentChange"
52
+          style="width: 100%"
53
+          :header-cell-style="{ background: '#f8f8f8' }"
54
+        >
55
+          <el-table-column
56
+            property="qtypeName"
57
+            label="检查类型"
58
+            align="center"
59
+            width='200'
60
+          ></el-table-column>
61
+         <el-table-column
62
+            property="checkTime"
63
+            style="padding:0;"
64
+            label="记录时间"
65
+            align="center"
66
+
67
+          >
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
+          </el-table-column>
84
+          <el-table-column
85
+            property="ppost"
86
+            style="padding:0;"
87
+            label="检查项"
88
+            align="center"
89
+
90
+          >
91
+            <template>
92
+              <p
93
+                style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
94
+              >
95
+                质量
96
+              </p>
97
+              <p
98
+                style="height:45px;line-height:45px;margin:0; padding-top:7px;border-top:1px solid #dfe6ec;border-bottom:1px solid #dfe6ec;"
99
+              >
100
+                品质
101
+              </p>
102
+              <p style="height:45px;line-height:45px;margin:0;padding-top:7px;">
103
+                毒素指标
104
+              </p>
105
+            </template>
106
+          </el-table-column>
107
+          <el-table-column
108
+
109
+            property="operation"
110
+            label="选项"
111
+            align="center"
112
+            min-width='250'
113
+          >
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> -->
123
+              <p
124
+                style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
125
+              >
126
+                <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>
134
+              </p>
135
+              <p
136
+                style="height:45px;line-height:45px;margin:0; padding-top:7px;border-top:1px solid #dfe6ec;border-bottom:1px solid #dfe6ec;"
137
+              >
138
+                <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>
146
+              </p>
147
+              <p style="height:45px;line-height:45px;margin:0;padding-top:7px;">
148
+                <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>
156
+              </p>
157
+            </template>
158
+          </el-table-column>
159
+        </el-table>
160
+      </div>
161
+    </div>
162
+  </div>
163
+</template>
164
+<script>
165
+import { getkccknew } from "@/api/countQuality/index"
166
+export default {
167
+  data() {
168
+    return {
169
+       query: {
170
+        roleId: ""
171
+      },
172
+      personData: [
173
+        {
174
+          createTime: "",
175
+          d: "质量",
176
+          c: ""
177
+        },
178
+        {
179
+          createTime: "",
180
+          d: "品质",
181
+          c: ""
182
+        },
183
+        {
184
+          createTime: "",
185
+          d: "毒素指标",
186
+          c: ""
187
+        }
188
+      ],
189
+      depotId: "",
190
+      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
+      }
203
+    }
204
+      /* personData: [],
205
+      total: 0,
206
+      id: "",
207
+      depotId: "",
208
+      warehouseId: "",
209
+      depotYpte: 1 */
210
+
211
+  },
212
+  created() {
213
+    // this.depotId = JSON.parse(getUser()).depotId
214
+    // this.warehouseId = this.$store.state.houseId
215
+    this.getList()
216
+  },
217
+  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
226
+      }
227
+    },
228
+    goodsInfo(row) {
229
+      if (row.columnIndex == 3 || row.columnIndex == 2) {
230
+        return "goodsInfo"
231
+      }
232
+    },
233
+
234
+    getList() {
235
+      getkccknew(this.depotId, "1").then(res => {
236
+        this.personData = res.data
237
+        this.total = res.data.total
238
+      })
239
+    },
240
+    addbtn(index, row) {
241
+      this.$router.push({
242
+        name: "delivdetail",
243
+        query: {
244
+          state: "add",
245
+          qid: row.qid,
246
+          qtype: row.qtype,
247
+          qtypeName: row.qtypeName
248
+        }
249
+      })
250
+    },
251
+    morebtn(index, row) {
252
+      this.$router.push({
253
+        name: "alldeliveryQuality",
254
+        query: {
255
+          qtype: row.qtype,
256
+          state: "more"
257
+        }
258
+      })
259
+    },
260
+    handleCurrentChange() {}
261
+  }
262
+}
263
+</script>
264
+<style>
265
+.goodsInfo {
266
+  padding: 0 !important;
267
+}
268
+.goodsInfo .cell {
269
+  padding: 0;
270
+  overflow: unset;
271
+}
272
+.el-step__icon {
273
+  width: 45px;
274
+  height: 45px;
275
+}
276
+</style>
277
+<style lang="scss" scoped>
278
+.container {
279
+  height: 100%;
280
+  display: flex;
281
+  #mainLeft {
282
+    width: 300px;
283
+    height: calc(100vh - 200px);
284
+    border: 1px solid #e6e6e6;
285
+  }
286
+  #mainRight {
287
+    margin-left: 20px;
288
+    width: calc(99%);
289
+    .colorspano {
290
+      width: 140px;
291
+      height: 30px;
292
+      background-color: #199856;
293
+      display: inline-block;
294
+      border-radius: 5px;
295
+    }
296
+    .colorspant {
297
+      width: 140px;
298
+      height: 30px;
299
+      background-color: #ffff00;
300
+      display: inline-block;
301
+      border-radius: 5px;
302
+    }
303
+    .colorspanr {
304
+      width: 140px;
305
+      height: 30px;
306
+      background-color: #ff9933;
307
+      display: inline-block;
308
+      border-radius: 5px;
309
+    }
310
+  }
311
+}
312
+.steps {
313
+  min-height: 80px;
314
+  margin: 10px 0;
315
+  // line-height:80px;
316
+  .iconfont {
317
+    font-size: 55px;
318
+  }
319
+}
320
+/* /deep/ */
321
+.el-steps {
322
+  .el-step__icon {
323
+    width: 40px;
324
+    height: 40px;
325
+  }
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
+}
361
+
362
+.icon_wai {
363
+  width: 3em;
364
+  height: 3em;
365
+}
366
+.button {
367
+  text-align: right;
368
+  margin-right: 20px;
369
+  padding-bottom: 20px;
370
+}
371
+.pagination-container {
372
+  margin: 15px 0;
373
+  margin-right: 20px;
374
+  text-align: right;
375
+}
376
+</style>

+ 5 - 2
shanXiPlatform/src/views/login/index.vue

@@ -208,7 +208,7 @@ export default {
208 208
       // disabled:true,
209 209
 
210 210
       key: "", //验证码绑定key
211
-      flag: false,
211
+      flag: null,
212 212
       passwordType: "password",
213 213
       capsTooltip: false,
214 214
       loading: false,
@@ -285,9 +285,10 @@ export default {
285 285
         .then(res => {
286 286
           if (res.code == 200) {
287 287
             this.flag = true
288
+            // console.log(this.flag,'flag')
288 289
           } else {
289 290
             this.flag = false
290
-
291
+            // console.log(this.flag,'flag')
291 292
             this.getCaptcha()
292 293
           }
293 294
         })
@@ -304,6 +305,7 @@ export default {
304 305
             uPassword: this.loginForm.password
305 306
           }
306 307
           if (this.flag) {
308
+            // console.log(this.flag,'flag')
307 309
             login(loginInfo)
308 310
               .then(res => {
309 311
                 if (res.code == 200) {
@@ -416,6 +418,7 @@ export default {
416 418
               })
417 419
           } else {
418 420
             this.loading = false
421
+            // console.log(this.flag,'flag')
419 422
             this.$message({
420 423
               message: "验证码错误,请重新输入",
421 424
               type: "err"

+ 12 - 12
shanXiPlatform/src/views/medicamentManagement/medicamentApplication/index.vue

@@ -18,7 +18,7 @@
18 18
             <el-form-item>
19 19
               <div style="display:inline-block;width:8px;border-top:1px solid #ccc"></div>
20 20
             </el-form-item>
21
-          
21
+
22 22
             <el-form-item label="">
23 23
               <el-date-picker
24 24
                 v-model="query.endTime"
@@ -50,7 +50,7 @@
50 50
               >
51 51
                 清空</el-button
52 52
               >
53
-          
53
+
54 54
               <el-button
55 55
                 type="success"
56 56
                 icon="el-icon-search"
@@ -75,7 +75,7 @@
75 75
         <el-table
76 76
           border
77 77
           stripe
78
-         
78
+
79 79
           :data="yjlyData"
80 80
           highlight-current-row
81 81
           style="width: 100%"
@@ -87,7 +87,7 @@
87 87
             align="center"
88 88
             label="序号"
89 89
             width="50px"
90
-           
90
+
91 91
           >
92 92
           </el-table-column>
93 93
 
@@ -115,14 +115,14 @@
115 115
               <el-button
116 116
               v-if="$tools.IsPermission(205)"
117 117
                 size="mini"
118
-                type="detailbtn" 
118
+                type="detailbtn"
119 119
                 @click="handleCheck(3, scope.$index, scope.row)"
120 120
                 >查看</el-button
121 121
               >
122 122
 
123 123
               <el-button
124 124
                 size="mini"
125
-                type="editbtn" 
125
+                type="editbtn"
126 126
                 @click="handleEdit(2, scope.$index, scope.row)"
127 127
                 v-if="
128 128
                   scope.row.auditState != 0 &&
@@ -312,7 +312,7 @@ export default {
312 312
                item.type="药剂领用"
313 313
              }
314 314
            })
315
-          
315
+
316 316
             this.pagination.pageSize = res.data.size
317 317
             this.pagination.total = res.data.total
318 318
           }
@@ -355,7 +355,7 @@ export default {
355 355
   computed: {
356 356
     HouseId() {
357 357
       return this.$store.state.houseId;
358
-    
358
+
359 359
     },
360 360
     // DepotId() {
361 361
     //   return this.$store.state.depotId
@@ -369,7 +369,7 @@ export default {
369 369
       this.houseId = val;
370 370
         var houseData=JSON.parse(localStorage.getItem("houseData"));
371 371
      console.log(houseData,"houseData...")
372
-   
372
+
373 373
 
374 374
     this.depotId=houseData.parentCode;
375 375
     console.log(this.depotId,"库id")
@@ -378,9 +378,9 @@ export default {
378 378
     },
379 379
   mounted() {
380 380
     console.log(this.$store.state.houseId,">>>>>>>???????")
381
-   
382
-   
383
-   
381
+
382
+
383
+
384 384
       this.userInfo = JSON.parse(getUser())
385 385
     console.log(this.userInfo, "this.userInfo.....?????")
386 386
     this.yjlyList()

+ 19 - 18
shanXiPlatform/src/views/medicamentManagement/medicamentApplication/step1.vue

@@ -1,5 +1,5 @@
1 1
 <template>
2
- 
2
+
3 3
       <div>
4 4
         <div id="step1">
5 5
           <el-table
@@ -16,7 +16,7 @@
16 16
               width="100px"
17 17
             >
18 18
               <template slot-scope="scope">
19
-             
19
+
20 20
                 <div
21 21
                   v-if="
22 22
                     scope.row.hasOwnProperty('process') &&
@@ -124,7 +124,7 @@
124 124
           </div>
125 125
         </div>
126 126
       </div>
127
- 
127
+
128 128
 </template>
129 129
 <script>
130 130
 //时间格式的转化
@@ -158,19 +158,19 @@ export default {
158 158
       required: true,
159 159
     },
160 160
      mainId: {
161
-     
161
+
162 162
       required: true,
163 163
     },
164 164
      fromPeople: {
165
-    
165
+
166 166
       required: true,
167 167
     },
168 168
      applyPeople: {
169
-  
169
+
170 170
       required: true,
171 171
     },
172 172
 
173
-   
173
+
174 174
   },
175 175
   data() {
176 176
     return {
@@ -192,7 +192,7 @@ export default {
192 192
     radioChange(row) {
193 193
       console.log(getNowFormatDate())
194 194
       row.operationTime = getNowFormatDate()
195
-     
195
+
196 196
     },
197 197
 
198 198
   //流程新增
@@ -274,17 +274,17 @@ export default {
274 274
         this.yjlyAdd()
275 275
       }
276 276
     },
277
-   
278
-     
277
+
278
+
279 279
 //返回
280 280
 goBack(){
281 281
   this.$router.push({
282 282
     path:"/medicamentManagement/medicamentApplication"
283 283
   })
284 284
 },
285
-  
286 285
 
287
-   
286
+
287
+
288 288
     // 用户字典列表
289 289
     getUserList() {
290 290
       // var params = {
@@ -329,10 +329,10 @@ goBack(){
329 329
       }
330 330
     }
331 331
 
332
-  
333
- 
334 332
 
335
-   
333
+
334
+
335
+
336 336
     .btns {
337 337
       text-align: right;
338 338
       margin: 20px 10px 0 0;
@@ -367,8 +367,9 @@ goBack(){
367 367
   }
368 368
 
369 369
 </style>
370
-<style>
370
+<style >
371 371
   .el-step.is-horizontal .el-step__line{
372
-  top:21px !important;
372
+      top:21px !important;
373
+
373 374
 }
374
-</style>
375
+</style>

+ 16 - 16
shanXiPlatform/src/views/medicamentManagement/medicamentApplication/steps.vue

@@ -30,7 +30,7 @@
30 30
               v-if="stepActive > index"
31 31
             />
32 32
 
33
-         
33
+
34 34
           </el-step>
35 35
         </el-steps>
36 36
       </div>
@@ -355,7 +355,7 @@ export default {
355 355
         this.mainId = this.totalData[0].step.id
356 356
       } else if (this.stepActive == 1) {
357 357
         this.tableData = this.totalData[1].list
358
-      } 
358
+      }
359 359
       // this.tableData = this.totalData[this.stepActive].list
360 360
     },
361 361
     //radio选项改变是
@@ -413,7 +413,7 @@ export default {
413 413
         this.button = "保存并提交"
414 414
         //2修改  3查看
415 415
 
416
-      
416
+
417 417
         if (this.pageType == 1) {
418 418
           this.disabled = false
419 419
           this.isShow = true
@@ -540,12 +540,12 @@ export default {
540 540
         console.log(this.process, "process....s")
541 541
         if (this.totalData[0].list[0].subData == null) {
542 542
           this.$message("请先选择选项");
543
-          
544
-         
543
+
544
+
545 545
           return;
546
-           
546
+
547 547
         }
548
-         
548
+
549 549
         //判断是否选择了审批人
550 550
         var flag = true
551 551
         // this.process.forEach((item) => {
@@ -565,10 +565,10 @@ export default {
565 565
         }
566 566
 
567 567
         if (flag) {
568
-       
568
+
569 569
           this.yjlyAdd()
570
-         
571
-        
570
+
571
+
572 572
         }
573 573
       } else {
574 574
         //this.getUpdateList()
@@ -577,15 +577,15 @@ export default {
577 577
           this.ongoingStep = this.stepActive
578 578
           this.getUpdateList()
579 579
         } else if (this.button == "完成") {
580
-          
580
+
581 581
           if (this.stepActive + 1 == this.step) {
582 582
             this.stepActive = this.stepActive + 1
583 583
           }
584
-         
584
+
585 585
             this.auditState = 4
586
-       
587 586
 
588
-         
587
+
588
+
589 589
 
590 590
           this.getUpdateList()
591 591
         }
@@ -650,7 +650,7 @@ export default {
650 650
 
651 651
   mounted() {
652 652
     //获取当前缓存的用户信息
653
-   
653
+
654 654
     this.userInfo = JSON.parse(getUser())
655 655
     console.log(this.userInfo, "this.userInfo.....?????")
656 656
 
@@ -706,7 +706,7 @@ export default {
706 706
   background: #fff;
707 707
   padding: 10px;
708 708
    height: calc(100% - 40px);
709
- 
709
+
710 710
   .div_parent{
711 711
   height:100%;
712 712
   overflow-y:auto ;

+ 3 - 3
shanXiPlatform/src/views/reservesManagement/fumigationManagement/index.vue

@@ -18,7 +18,7 @@
18 18
             <el-form-item>
19 19
               <div style="display:inline-block;width:8px;border-top:1px solid #ccc"></div>
20 20
             </el-form-item>
21
-          
21
+
22 22
             <el-form-item label="">
23 23
               <el-date-picker
24 24
                 v-model="query.endTime"
@@ -290,7 +290,7 @@ export default {
290 290
         type: this.type,
291 291
         startTime: this.query.value1[0],
292 292
         endTime: this.query.value1[1],
293
-       
293
+
294 294
       }
295 295
       console.log(condition, "condition.....")
296 296
       condition = JSON.stringify(condition)
@@ -326,7 +326,7 @@ export default {
326 326
 
327 327
     //查询
328 328
     search() {
329
-      
329
+
330 330
       this.tfList()
331 331
     },
332 332
     //当前页发生变化时