linyanfei vor 3 Jahren
Ursprung
Commit
cea01404ae

+ 7 - 0
shanXiPlatform/src/icons/svg/chukusel.svg

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
3
+<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+	 viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
5
+<path d="M17.4,0H2.6L0,4.4v13.1h20l0-13.3L17.4,0z M4.3,1.7h11.3l1.7,3.5H2.6L4.3,1.7z M11.3,14.8H8.7v-3.5H6.1l3.5-3.5h0.9l3.5,3.5
6
+	h-2.6L11.3,14.8L11.3,14.8z"/>
7
+</svg>

+ 8 - 0
shanXiPlatform/src/icons/svg/kucunsel.svg

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
3
+<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+	 viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
5
+<path d="M4.5,14.4V20h4.8v-5.6H8.1V16H5.8v-1.7H4.5z M11.2,14.4V20H16v-5.6h-1.2V16h-2.3v-1.7H11.2z M7.6,7.8v4.8h4.8V7.8h-1.2v1.4
6
+	H8.9V7.8H7.6z"/>
7
+<path d="M9.7,0L0.1,5.9v13.9h2.2v-7.2h3.1v-7h9.3v7h3v7.2h2.2V5.9L9.7,0z"/>
8
+</svg>

+ 3 - 3
shanXiPlatform/src/router/index.js

@@ -587,7 +587,7 @@ export const constantRoutes = [
587 587
         component: storeTabs,
588 588
         name: 'inventory',
589 589
         redirect: 'inventory/inventoryQuality',
590
-        meta: { title: '库存质量管理', icon: 'kucun', affix: false , relation: 'house', istable: true },
590
+        meta: { title: '库存质量管理', icon: 'kucunsel', affix: false , relation: 'house', istable: true },
591 591
         resourceCode:175,
592 592
         children: [
593 593
           //库存
@@ -621,7 +621,7 @@ export const constantRoutes = [
621 621
         component: delstoreTabs,
622 622
         name: 'delivery',
623 623
         redirect: 'delivery/deliveryQuality',
624
-        meta: { title: '出库质量管理', icon: 'chuku', affix: false , relation: 'house', istable: true },
624
+        meta: { title: '出库质量管理', icon: 'chukusel', affix: false , relation: 'house', istable: true },
625 625
         resourceCode:176,
626 626
         children: [
627 627
           //库存
@@ -665,7 +665,7 @@ export const constantRoutes = [
665 665
         component: reservesTabs,
666 666
         name: 'GrainCheck',
667 667
         redirect: 'grainCheck/newGrain',
668
-        meta: { title: '粮情检', icon: 'liangqing', affix: false, relation: 'house', istable: true },
668
+        meta: { title: '粮情检', icon: 'liangqing', affix: false, relation: 'house', istable: true },
669 669
         resourceCode:128,
670 670
 
671 671
         children: [

+ 172 - 78
shanXiPlatform/src/views/basicInformation/personnelStructure.vue

@@ -38,8 +38,8 @@
38 38
                     :index="indexMethod"
39 39
                   >
40 40
                   </el-table-column>
41
-                  <el-table-column prop="uname" label="姓名" align="center">
42
-                  </el-table-column>
41
+                  <!--  <el-table-column prop="uname" label="姓名" align="center">
42
+                  </el-table-column> -->
43 43
                   <el-table-column
44 44
                     prop="usex"
45 45
                     label="性别"
@@ -270,76 +270,80 @@ export default {
270 270
       xAxisdata: [],
271 271
       seriesdata: [],
272 272
       // chart 数据设置
273
-      option : {
274
-          title: {
275
-            // text: "仓储、质检人员职业资格情况",
276
-            textStyle: {
277
-              color: "#7d7d7d",
278
-              fontStyle: "normal",
279
-              fontWeight: "900",
280
-              fontSize: "14"
281
-            },
282
-            left: "center"
283
-          },
284
-          tooltip: {
285
-            trigger: "axis",
286
-            axisPointer: {
287
-              // 坐标轴指示器,坐标轴触发有效
288
-              type: "shadow" // 默认设置为直线,可选为 'line' | 'shadow'
289
-            }
290
-          },
291
-          grid: {
292
-            y2: 60
273
+      option: {
274
+        title: {
275
+          // text: "仓储、质检人员职业资格情况",
276
+          textStyle: {
277
+            color: "#7d7d7d",
278
+            fontStyle: "normal",
279
+            fontWeight: "900",
280
+            fontSize: "14"
293 281
           },
294
-          /* legend:{
282
+          left: "center"
283
+        },
284
+        tooltip: {
285
+          trigger: "axis",
286
+          axisPointer: {
287
+            // 坐标轴指示器,坐标轴触发有效
288
+            type: "shadow" // 默认设置为直线,可选为 'line' | 'shadow'
289
+          }
290
+        },
291
+        grid: {
292
+          y2: 60
293
+        },
294
+        /* legend:{
295 295
           data:['初级','中级','高级','技师','高级技师']
296 296
         }, */
297
-          /*         grid:{
297
+        /*         grid:{
298 298
           left:'3%',
299 299
           right:'4%',
300 300
           bottom:'3%',
301 301
           containLabel:true
302 302
         }, */
303
-          xAxis: {
304
-            type: "category",
305
-            data: this.xAxisdata,
306
-            // data: ["初级", "中级", "高级", "技师", "高级技师"],
307
-            // data: this.xAxisdata,
308
-            axisTick: {
309
-              alignWithLabel: true
310
-            },
311
-            axisLabel: {
312
-              rotate: 60
313
-            }
314
-          },
315
-          yAxis: {
316
-            type: "value",
317
-            min: 3
303
+        xAxis: {
304
+          type: "category",
305
+          data: this.xAxisdata,
306
+          // data: ["初级", "中级", "高级", "技师", "高级技师"],
307
+          // data: this.xAxisdata,
308
+          max: "10",
309
+          min: ["初级", "中级", "高级", "技师", "高级技师"],
310
+          axisTick: {
311
+            alignWithLabel: true
318 312
           },
319
-          series: [
320
-            {
321
-              name: "人数",
322
-              barWidth: "40%",
323
-              data: this.seriesdata,
324
-              // data: [1, 2, 1, 1, 1, 1, null, null],
325
-              type: "bar",
326
-              //修改第一组柱子的颜色
327
-              itemStyle: {
328
-                // barBorderRadius:20,
329
-                color: function(p) {
330
-                  var color = [
331
-                    "#F1DE34",
332
-                    "#58CEFF",
333
-                    "#8CCF23",
334
-                    "#FEBB46",
335
-                    "#4FC5BB"
336
-                  ]
337
-                  return color[p.dataIndex]
338
-                }
313
+          axisLabel: {
314
+            rotate: 60
315
+          }
316
+        },
317
+        yAxis: {
318
+          type: "value",
319
+
320
+          max: "10",
321
+          min: "2"
322
+        },
323
+        series: [
324
+          {
325
+            name: "人数",
326
+            barWidth: "40%",
327
+            data: this.seriesdata,
328
+            // data: [1, 2, 1, 1, 1, 1, null, null],
329
+            type: "bar",
330
+            //修改第一组柱子的颜色
331
+            itemStyle: {
332
+              // barBorderRadius:20,
333
+              color: function(p) {
334
+                var color = [
335
+                  "#F1DE34",
336
+                  "#58CEFF",
337
+                  "#8CCF23",
338
+                  "#FEBB46",
339
+                  "#4FC5BB"
340
+                ]
341
+                return color[p.dataIndex]
339 342
               }
340 343
             }
341
-          ]
342
-        }
344
+          }
345
+        ]
346
+      }
343 347
     }
344 348
   },
345 349
 
@@ -432,34 +436,50 @@ export default {
432 436
         pageIndex: this.listQuery.page,
433 437
         pageSize: this.listQuery.limit
434 438
       }
439
+      //设置图表数据
440
+      var myChart = echarts.init(document.querySelector("#chartProfession"))
441
+      myChart.showLoading()
435 442
       getAllPersonInfo(data)
436 443
         .then(res => {
437
-          // console.log(res, "职业资格")
444
+          console.log(res, "职业资格")
438 445
           // console.log(res.data, "1212111")
439 446
           /* res.data.forEach(item => {
440 447
             this.grainname.push(item.grainVarieties)
441 448
             this.grainvalue.push(item.count)
442 449
             console.log(item, "98765432")
443 450
           }) */
444
-          // console.log(res.data, "res.data---echarts....................")
451
+          console.log(
452
+            res.data.pageResult.total,
453
+            "res.data---echarts...................."
454
+          )
445 455
           this.xAxisdata = res.data.xAxis
446 456
           this.seriesdata = res.data.series
447 457
           console.log(this.xAxisdata, "this.xAxisdata1111....")
448 458
           console.log(this.seriesdata, "this.seriesdata222....")
449
-          //设置图表数据
450
-          var myChart = echarts.init(document.querySelector("#chartProfession"))
451
-          myChart.setOption({
452
-            xAxis: {
453
-              data: res.data.xAxis
454
-            },
455
-            series: [
456
-              {
457
-                // 根据名字对应到相应的系列
458
-                name: "人数",
459
-                data: res.data.series
460
-              }
461
-            ]
462
-          })
459
+
460
+          if (res.data.xAxis == undefined || res.data.series == undefined) {
461
+            myChart.showLoading({
462
+              text: "暂无数据",
463
+              color: "#ffffff",
464
+              textColor: "#8a8e91",
465
+              maskColor: "rgba(255, 255, 255, 0.8)"
466
+            })
467
+          } else {
468
+            myChart.hideLoading()
469
+            myChart.setOption({
470
+              xAxis: {
471
+                data: res.data.xAxis
472
+              },
473
+              series: [
474
+                {
475
+                  // 根据名字对应到相应的系列
476
+                  name: "人数",
477
+                  data: res.data.series
478
+                }
479
+              ]
480
+            })
481
+          }
482
+
463 483
           if (res.code == 200) {
464 484
             this.tableData = res.data.pageResult.records
465 485
             this.loading = false
@@ -536,7 +556,81 @@ export default {
536 556
       } else {
537 557
 
538 558
       } */
539
-      myChart.setOption(this.option)
559
+      myChart.setOption({
560
+        /* noDataLoadingOption: {
561
+          text: "暂无数据",
562
+          effect: "bubble",
563
+          effectOption: {
564
+            effect: {
565
+              n: 0
566
+            }
567
+          }
568
+        }, */
569
+        title: {
570
+          text: "仓储、质检人员职业资格情况",
571
+          show: false,
572
+          textStyle: {
573
+            color: "#7d7d7d",
574
+            fontStyle: "normal",
575
+            fontWeight: "900",
576
+            fontSize: "14"
577
+          },
578
+          left: "center"
579
+        },
580
+        tooltip: {
581
+          trigger: "axis",
582
+          axisPointer: {
583
+            // 坐标轴指示器,坐标轴触发有效
584
+            type: "shadow" // 默认设置为直线,可选为 'line' | 'shadow'
585
+          }
586
+        },
587
+        grid: {
588
+          y2: 60
589
+        },
590
+        xAxis: {
591
+          type: "category",
592
+          data: this.xAxisdata,
593
+          // data: ["初级", "中级", "高级", "技师", "高级技师"],
594
+          // data: this.xAxisdata,
595
+          max: "10",
596
+          min: ["初级", "中级", "高级", "技师", "高级技师"],
597
+          axisTick: {
598
+            alignWithLabel: true
599
+          },
600
+          axisLabel: {
601
+            rotate: 60
602
+          }
603
+        },
604
+        yAxis: {
605
+          type: "value",
606
+
607
+          max: "10",
608
+          min: "2"
609
+        },
610
+        series: [
611
+          {
612
+            name: "人数",
613
+            barWidth: "40%",
614
+            data: this.seriesdata,
615
+            // data: [1, 2, 1, 1, 1, 1, null, null],
616
+            type: "bar",
617
+            //修改第一组柱子的颜色
618
+            itemStyle: {
619
+              // barBorderRadius:20,
620
+              color: function(p) {
621
+                var color = [
622
+                  "#F1DE34",
623
+                  "#58CEFF",
624
+                  "#8CCF23",
625
+                  "#FEBB46",
626
+                  "#4FC5BB"
627
+                ]
628
+                return color[p.dataIndex]
629
+              }
630
+            }
631
+          }
632
+        ]
633
+      })
540 634
     },
541 635
     // 筛选科室
542 636
     handleClick(tab, event) {

+ 21 - 6
shanXiPlatform/src/views/countQuality/warehouseInformation.vue

@@ -221,7 +221,7 @@
221 221
                   <img src="@/assets/images/touxiang.jpg" alt="保管员图片" />
222 222
                 </div>
223 223
                 <p class="info_name">
224
-                  <span>{{ branKeeper.uname || "" }}</span>
224
+                  <span>{{ branKeeper.uname || ''}}</span>
225 225
                 </p>
226 226
               </div>
227 227
             </div>
@@ -376,6 +376,17 @@ export default {
376 376
       formInfo: [],
377 377
       branData: {},
378 378
       branKeeper: {}, // 仓房保管员信息
379
+      branKeeper1:{
380
+        usex:'',
381
+        uname:'',
382
+        uphone:'',
383
+        puniversityGraduated:'',
384
+        pworkYears:'',
385
+        ppoliticalOutlook:'',
386
+        pmajorThree:'',
387
+        pacademicDegree:'',
388
+        umail:''
389
+      },
379 390
       birthday:'',// 格式化后的出生日期
380 391
       age:'', // 计算后的年龄
381 392
       imageName: "",
@@ -482,14 +493,18 @@ export default {
482 493
           // console.log(this.branKeeper, "保管员111")
483 494
           if (res.code == 200) {
484 495
             // console.log(res, "保管员信息111")
485
-
486
-            this.branKeeper = res.data
487
-            console.log(this.branKeeper, "保管员222")
496
+            if(res.data ==null){
497
+              this.branKeeper = this.branKeeper1
498
+            }else{
499
+              this.branKeeper = res.data
500
+            console.log(this.branKeeper, "保管员")
488 501
             this.imageName = this.branKeeper.pheadPortrait
502
+            }
503
+
489 504
             if(res.data.ubirthday !==null ){
490 505
               this.birthday = rTime(this.branKeeper.ubirthday)// 格式化显示出生年月
491
-              console.log(this.branKeeper.ubirthday,'this.branKeeper.ubirthday...')
492
-              console.log(this.branKeeper.ubirthday.toLocaleString(),'this.branKeeper.ubirthday.toLocaleString()...')
506
+              // console.log(this.branKeeper.ubirthday,'this.branKeeper.ubirthday...')
507
+              // console.log(this.branKeeper.ubirthday.toLocaleString(),'this.branKeeper.ubirthday.toLocaleString()...')
493 508
             // var birthday1 = this.branKeeper.ubirthday // 原始时间戳
494 509
             this.age = computeAge(this.branKeeper.ubirthday) //根据时间戳计算年龄
495 510
             }

+ 1 - 1
shanXiPlatform/src/views/outsideHouse/Emanage/gInspectiondetail.vue

@@ -50,7 +50,7 @@
50 50
                                                     String(this.model.grainWork)!=''&& 
51 51
                                                     String(this.model.keepLog)!=''&&  
52 52
                                                     String(this.model.grainAnalysi)!='' &&
53
-                                                      this.$route.query.state =='edit' " @click="editinfo()">修改</el-button>
53
+                                                      this.$route.query.state =='edit' " @click="editinfo()">保存</el-button>
54 54
                     <el-button type="savebtn" v-if="String(this.model.printGrainResults)!='' &&
55 55
                                                     String(this.model.onLight)!=''&&  
56 56
                                                     String(this.model.doubleEntry)!=''&& 

+ 1 - 1
shanXiPlatform/src/views/outsideHouse/Emanage/sInspectiondetail.vue

@@ -38,7 +38,7 @@
38 38
                                                     String(this.model.fillReport)!=''&&
39 39
                                                     String(this.model.problemElimination)!=''&&  
40 40
                                                     String(this.model.registerAccount)!=''&&  
41
-                                                      this.$route.query.state =='edit' " @click="editinfo()">修改</el-button>
41
+                                                      this.$route.query.state =='edit' " @click="editinfo()">保存</el-button>
42 42
                     <el-button type="savebtn" v-if="String(this.model.safetyOfficer)!='' &&
43 43
                                                     String(this.model.safetyArchive)!=''&&  
44 44
                                                     String(this.model.dailyInspection)!=''&& 

+ 1 - 1
shanXiPlatform/src/views/outsideHouse/rentWarehouse/gRenthousedetail.vue

@@ -50,7 +50,7 @@
50 50
                                                     String(this.model.grainWork)!=''&& 
51 51
                                                     String(this.model.keepLog)!=''&&  
52 52
                                                     String(this.model.grainAnalysi)!='' &&
53
-                                                      this.$route.query.state =='edit' " @click="editinfo()">修改</el-button>
53
+                                                      this.$route.query.state =='edit' " @click="editinfo()">保存</el-button>
54 54
                     <el-button type="savebtn" v-if="String(this.model.printGrainResults)!='' &&
55 55
                                                     String(this.model.onLight)!=''&&  
56 56
                                                     String(this.model.doubleEntry)!=''&& 

+ 1 - 1
shanXiPlatform/src/views/outsideHouse/rentWarehouse/sRenthousedetail.vue

@@ -38,7 +38,7 @@
38 38
                                                     String(this.model.fillReport)!=''&&
39 39
                                                     String(this.model.problemElimination)!=''&&  
40 40
                                                     String(this.model.registerAccount)!=''&&  
41
-                                                      this.$route.query.state =='edit' " @click="editinfo()">修改</el-button>
41
+                                                      this.$route.query.state =='edit' " @click="editinfo()">保存</el-button>
42 42
                     <el-button type="savebtn" v-if="String(this.model.safetyOfficer)!='' &&
43 43
                                                     String(this.model.safetyArchive)!=''&&  
44 44
                                                     String(this.model.dailyInspection)!=''&& 

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

@@ -69,7 +69,7 @@
69 69
       </div>
70 70
 
71 71
       <div class="btns">
72
-        <el-button type="cancel" @click="cancel()">取消</el-button>
72
+        <el-button type="cancel" @click="cancel()"> 返回 </el-button>
73 73
 
74 74
         <el-button
75 75
           type="savebtn"
@@ -537,8 +537,7 @@ export default {
537 537
           .then(res => {
538 538
             console.log(this.data3, "this.data3")
539 539
             console.log(res,'res222111...')
540
-            if (res.code == 200) {
541
-              console.log('新增成功........')
540
+            console.log('新增成功........')
542 541
               this.loading = false
543 542
               this.$message({
544 543
               message: "新增成功!",
@@ -547,6 +546,8 @@ export default {
547 546
             this.$router.push({
548 547
               path: "/reservesManagement/grainCheck/newGrain"
549 548
             })
549
+            if (res.code == 200) {
550
+
550 551
               if (!(JSON.stringify(this.data2) == {})) {
551 552
                 if (
552 553
                   Object.getOwnPropertyNames(

+ 2 - 1
shanXiPlatform/vue.config.js

@@ -39,7 +39,8 @@ module.exports = {
39 39
 
40 40
     proxy: {  //配置跨域
41 41
       '/': {
42
-        target: 'http://101.36.160.140:21061',  //这里后台的地址模拟的;应该填写你们真实的后台接口
42
+        // target: 'http://101.36.160.140:21061',  //这里后台的地址模拟的;应该填写你们真实的后台接口
43
+        target: 'http://101.36.160.140:21021',  //这里后台的地址模拟的;应该填写你们真实的后台接口
43 44
         // target:'http://172.16.0.02:9601',
44 45
         changOrigin: true,  //允许跨域
45 46