Ver código fonte

Merge branch 'master' of http://101.36.160.140:21044/csc/csc-szls-vue

linyanfei 3 anos atrás
pai
commit
91f8758ed7
21 arquivos alterados com 335 adições e 229 exclusões
  1. 2 5
      shanXiPlatform/src/views/basicInformation/personnelStructure.vue
  2. 4 4
      shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/allFacilities/index.vue
  3. 78 114
      shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/newFacilities/addType.vue
  4. 8 5
      shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/newFacilities/index.vue
  5. 3 3
      shanXiPlatform/src/views/home/branchOffice.vue
  6. 108 21
      shanXiPlatform/src/views/home/staff.vue
  7. 4 2
      shanXiPlatform/src/views/reservesManagement/grainCheck/allGrain/index.vue
  8. 1 1
      shanXiPlatform/src/views/reservesManagement/grainCheck/newGrain/index.vue
  9. 3 3
      shanXiPlatform/src/views/safeProduction/allSafe/index.vue
  10. 16 3
      shanXiPlatform/src/views/safeProduction/newSafe/detail.vue
  11. 3 3
      shanXiPlatform/src/views/safeProduction/newSafe/index.vue
  12. 13 2
      shanXiPlatform/src/views/supervisionInspection/entrustedRepository/newEntrustedRepository/detail.vue
  13. 4 4
      shanXiPlatform/src/views/supervisionInspection/entrustedRepository/newEntrustedRepository/index.vue
  14. 3 3
      shanXiPlatform/src/views/supervisionInspection/library/allLibrary/index.vue
  15. 13 2
      shanXiPlatform/src/views/supervisionInspection/library/newLibrary/detail.vue
  16. 3 3
      shanXiPlatform/src/views/supervisionInspection/library/newLibrary/index.vue
  17. 13 2
      shanXiPlatform/src/views/supervisionInspection/subTreasury/newSubTreasury/detail.vue
  18. 4 4
      shanXiPlatform/src/views/supervisionInspection/subTreasury/newSubTreasury/index.vue
  19. 47 40
      shanXiPlatform/src/views/systemManagement/earlyWarningManagement/addEarlyWarningManagement.vue
  20. 3 3
      shanXiPlatform/src/views/systemManagement/earlyWarningManagement/index.vue
  21. 2 2
      shanXiPlatform/src/views/systemManagement/notice/newNotice/addnotice.vue

+ 2 - 5
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="性别"
@@ -593,7 +593,6 @@ export default {
593 593
           // data: ["初级", "中级", "高级", "技师", "高级技师"],
594 594
           // data: this.xAxisdata,
595 595
           max: "10",
596
-          min: ["初级", "中级", "高级", "技师", "高级技师"],
597 596
           axisTick: {
598 597
             alignWithLabel: true
599 598
           },
@@ -603,9 +602,7 @@ export default {
603 602
         },
604 603
         yAxis: {
605 604
           type: "value",
606
-
607 605
           max: "10",
608
-          min: "2"
609 606
         },
610 607
         series: [
611 608
           {

+ 4 - 4
shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/allFacilities/index.vue

@@ -241,10 +241,10 @@ export default {
241 241
         .then(res => {
242 242
           // console.log(res, "1111")
243 243
           this.allData = res.data.records
244
-          this.allData.forEach(element => {
244
+          /* this.allData.forEach(element => {
245 245
             element.time = element.checkTime.substring(0,this.allData[1].checkTime.length-3)
246 246
             console.log( element.time,' element.time')
247
-          });
247
+          }); */
248 248
           this.listLoading = false
249 249
           this.listQuery.limit = res.data.size
250 250
           this.total = res.data.total
@@ -272,10 +272,10 @@ export default {
272 272
           if (res.code == 200) {
273 273
             console.log(res, "全部列表返回数据..........")
274 274
             this.allData = res.data.records
275
-            this.allData.forEach(element => {
275
+            /* this.allData.forEach(element => {
276 276
               element.time = element.checkTime.substring(0,this.allData[1].checkTime.length-3)
277 277
               // console.log( element.time,' element.time')
278
-          });
278
+          }); */
279 279
             this.listLoading = false
280 280
             this.listQuery.limit = res.data.size
281 281
             this.total = res.data.total

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

@@ -23,7 +23,11 @@
23 23
             label="序号"
24 24
             width="50px"
25 25
           />
26
-          <el-table-column label="记录时间" prop="createDate" align="center" />
26
+          <el-table-column label="记录时间" prop="createDate" align="center">
27
+            <!-- <template slot-scope="scope">
28
+              <span>{{ scope.row.createDate.slice(0, 16) }}</span>
29
+            </template> -->
30
+          </el-table-column>
27 31
           <!-- <el-table-column label="记录时间" prop="time" align="center" /> -->
28 32
 
29 33
           <el-table-column label="检查项" prop="enumId" align="center">
@@ -57,11 +61,11 @@
57 61
             label="序号"
58 62
             width="50px"
59 63
           />
60
-          <el-table-column
61
-            label="记录时间"
62
-            prop="operationTime"
63
-            align="center"
64
-          />
64
+          <el-table-column label="记录时间" prop="operationTime" align="center">
65
+            <!-- <template slot-scope="scope">
66
+              <span>{{ scope.row.operationTime.slice(0, 16) }}</span>
67
+            </template> -->
68
+          </el-table-column>
65 69
 
66 70
           <el-table-column label="检查项" prop="enumId" align="center">
67 71
             <template slot-scope="scope">
@@ -133,7 +137,7 @@ export default {
133 137
       facilityId: "", //设施种类id
134 138
       id: "", // 列表每行id
135 139
       kind: "",
136
-      checkResult:'',
140
+      checkResult: "",
137 141
       // 头部下拉选的值
138 142
       // type: "cfss",
139 143
       type: "", // 1:新增 2:查看 3:修改
@@ -146,7 +150,7 @@ export default {
146 150
       // 新增modal
147 151
       data1: {
148 152
         equipFacilities: {
149
-          id:'',
153
+          id: "",
150 154
           checkResult: "", //检查结果(0:绿,1:黄) 1:全部都是是,0:存在否,也就是检查项存在不完好
151 155
           checkState: "", //1:已完成,0:进行中
152 156
           checkTime: "",
@@ -610,37 +614,30 @@ export default {
610 614
       if (this.type == 1) {
611 615
         //新增时
612 616
         row.createDate = getDateTimeNow()
613
-        console.log(row.createDate, "createDate")
617
+
614 618
         // console.log(this.checkItems, "是否被选中")
615 619
         var num = 0
616
-
617
-        if (row.isCheck == 0) {
620
+        for (let i = 0; i < this.checkItems.length; i++) {
621
+          // console.log(this.checkItems[i].enumId, "this.checkItems[i].enumId")
622
+          // var num =0;
623
+          this.checkItems[i].checkEnumId = this.checkItems[i].enumId
624
+          this.checkItems[i].operationTime = this.checkItems[i].createDate
625
+          if (this.checkItems[i].isCheck === 0) {
618 626
             // 有一项点击否,结果就是1(黄)
619 627
             this.data1.equipFacilities.checkResult = 1
620
-            this.checkResult = 1
621
-          } /* else{
622
-            // 有一项点击是,结果就是0(绿)
628
+          } else {
629
+            // 有一项点击否,结果就是0(绿)
623 630
             this.data1.equipFacilities.checkResult = 0
624
-            this.checkResult = 0
625
-          } */
626
-        this.checkItems.forEach((item, index) => {
627
-          Object.assign(
628
-            item,
629
-            { operationTime: item.createDate },
630
-            { checkEnumId: item.enumId }
631
-          )
632
-
631
+          }
633 632
 
634
-          if (item.isCheck == 1 || item.isCheck == 0) {
633
+          if (
634
+            this.checkItems[i].isCheck === 1 ||
635
+            this.checkItems[i].isCheck === 0
636
+          ) {
635 637
             num += 1
636 638
             // console.log(this.checkItems[i], num, "该项被选中了")
637 639
           }
638 640
 
639
-          console.log(this.checkItems, "this.checkItems111")
640
-          console.log(
641
-            this.data1.equipFacilities.checkResult,
642
-            "this.data1.equipFacilities.checkResult"
643
-          )
644 641
           if (num == this.checkItems.length) {
645 642
             this.data1.equipFacilities.checkState = 1
646 643
             this.flag = true
@@ -649,105 +646,70 @@ export default {
649 646
             this.data1.equipFacilities.checkState = 0
650 647
             // console.log("此时暂存还是暂存,切状态改为 进行中")
651 648
           }
652
-        })
653
-        /* for (let i = 0; i < this.checkItems.length; i++) {
654
-        // console.log(this.checkItems[i].enumId, "this.checkItems[i].enumId")
655
-        // var num =0;
656
-        this.checkItems[i].checkEnumId = this.checkItems[i].enumId
657
-        this.checkItems[i].operationTime = this.checkItems[i].createDate
658
-        if (this.checkItems[i].isCheck === 0) {
659
-          // 有一项点击否,结果就是1(黄)
660
-          this.data1.equipFacilities.checkResult = 1
661
-        } else {
662
-          // 有一项点击否,结果就是0(绿)
663
-          this.data1.equipFacilities.checkResult = 0
664
-        }
665
-
666
-        if (
667
-          this.checkItems[i].isCheck === 1 ||
668
-          this.checkItems[i].isCheck === 0
669
-        ) {
670
-          num += 1
671
-          // console.log(this.checkItems[i], num, "该项被选中了")
672
-        }
673
-
674
-        if (num == this.checkItems.length) {
675
-          this.data1.equipFacilities.checkState = 1
676
-          this.flag = true
677
-          // console.log("此时暂存变保存,切状态改为已完成")
678
-        } else {
679
-          this.data1.equipFacilities.checkState = 0
680
-          // console.log("此时暂存还是暂存,切状态改为 进行中")
681 649
         }
682
-      } */
683 650
       } else if (this.type == 3) {
684 651
         //修改时
685
-        // row.operationTime = getNowFormatDateone()
686 652
         row.operationTime = getDateTimeNow()
687
-        // row.operationTime = getNowFormatDateone()
688 653
         var num = 0
689 654
 
690
-        if (row.isCheck == 0) {
655
+        for (var i = 0; i < this.checkItems.length; i++) {
656
+          // console.log(this.checkItems[i].enumId, "this.checkItems[i].enumId")
657
+          // var num =0;
658
+          Object.assign(this.checkItems[i], {
659
+            checkEnumId: this.checkItems[i].enumId
660
+          })
661
+          if (this.checkItems[i].isCheck === 0) {
691 662
             // 有一项点击否,结果就是1(黄)
692 663
             this.data1.equipFacilities.checkResult = 1
693
-            this.checkResult = 1
694
-          } else{
695
-            // 有一项点击是,结果就是0(绿)
664
+            console.log(
665
+              this.data1.equipFacilities.checkResult,
666
+              "this.data1.equipFacilities.checkResult"
667
+            )
668
+          } else {
669
+            // 有一项点击否,结果就是0(绿)
696 670
             this.data1.equipFacilities.checkResult = 0
697
-            this.checkResult = 0
671
+            console.log(
672
+              this.data1.equipFacilities.checkResult,
673
+              "this.data1.equipFacilities.checkResult"
674
+            )
698 675
           }
699
-        this.checkItems.forEach((item, index) => {
700
-          Object.assign(item, { checkEnumId: item.enumId })
701
-          if (item.isCheck == 1 || item.isCheck == 0) {
676
+
677
+          if (
678
+            this.checkItems[i].isCheck === 1 ||
679
+            this.checkItems[i].isCheck === 0
680
+          ) {
702 681
             num += 1
703
-            // console.log(this.checkItems[i], num, "该项被选中了")
682
+            console.log(this.checkItems[i], num, "该项被选中了")
704 683
           }
705
-          console.log(this.checkItems, "this.checkItems111")
706
-          console.log(this.checkItems.length, "this.checkItems222")
684
+
707 685
           if (num == this.checkItems.length) {
708 686
             this.data1.equipFacilities.checkState = 1
709 687
             this.flag = true
710
-            // console.log("此时暂存变保存,切状态改为已完成")
688
+            console.log("此时暂存变保存,切状态改为已完成")
711 689
           } else {
712 690
             this.data1.equipFacilities.checkState = 0
713
-            // console.log("此时暂存还是暂存,切状态改为 进行中")
691
+            console.log("此时暂存还是暂存,切状态改为 进行中")
714 692
           }
715
-        })
716
-        /* for (let i = 0; i < this.checkItems.length; i++) {
717
-        // console.log(this.checkItems[i].enumId, "this.checkItems[i].enumId")
718
-        // var num =0;
719
-        this.checkItems[i].checkEnumId = this.checkItems[i].enumId
720
-        this.checkItems[i].operationTime = this.checkItems[i].createDate
721
-        if (this.checkItems[i].isCheck === 0) {
722
-          // 有一项点击否,结果就是1(黄)
723
-          this.data1.equipFacilities.checkResult = 1
724
-        } else {
725
-          // 有一项点击否,结果就是0(绿)
726
-          this.data1.equipFacilities.checkResult = 0
727
-        }
728
-
729
-        if (
730
-          this.checkItems[i].isCheck === 1 ||
731
-          this.checkItems[i].isCheck === 0
732
-        ) {
733
-          num += 1
734
-          // console.log(this.checkItems[i], num, "该项被选中了")
735 693
         }
736
-
737
-        if (num == this.checkItems.length) {
738
-          this.data1.equipFacilities.checkState = 1
739
-          this.flag = true
740
-          // console.log("此时暂存变保存,切状态改为已完成")
741
-        } else {
742
-          this.data1.equipFacilities.checkState = 0
743
-          // console.log("此时暂存还是暂存,切状态改为 进行中")
744
-        }
745
-      } */
746 694
       }
747 695
     },
748 696
     // 保存
749 697
     btnSave() {
750 698
       this.loading = true
699
+      for (var i = 0; i < this.checkItems.length; i++) {
700
+        if (this.checkItems[i].isCheck === 0) {
701
+          // 有一项点击否,结果就是1(黄)
702
+          this.data1.equipFacilities.checkResult = 1
703
+          console.log(
704
+            this.data1.equipFacilities.checkResult,
705
+            "this.data1.equipFacilities.checkResult"
706
+          )
707
+        } /* else if(this.checkItems[i].isCheck === 1){
708
+          // 有一项点击否,结果就是0(绿)
709
+          this.data1.equipFacilities.checkResult = 0
710
+          console.log(this.data1.equipFacilities.checkResult,'this.data1.equipFacilities.checkResult')
711
+        } */
712
+      }
751 713
       this.data1.equipFacilities.hname = this.houseDic[
752 714
         this.data1.equipFacilities.hid
753 715
       ]
@@ -784,11 +746,12 @@ export default {
784 746
       } else if (this.type == 3) {
785 747
         console.log("这是修改")
786 748
         this.data1.equipFacilities.id = this.id
787
-        console.log(this.data1,'this.data1')
788
-        editFacilitiy(this.data1).then(res =>{
789
-          console.log(res,'res....')
790
-          if(res.code == 200){
791
-            this.loading = false
749
+        console.log(this.data1, "this.data1")
750
+        editFacilitiy(this.data1)
751
+          .then(res => {
752
+            console.log(res, "res....")
753
+            if (res.code == 200) {
754
+              this.loading = false
792 755
               this.$message({
793 756
                 message: "修改成功!",
794 757
                 type: "success"
@@ -796,11 +759,12 @@ export default {
796 759
               this.$router.push({
797 760
                 path: "/facilitiesEquipment/facilitiesManagement/allFacilities"
798 761
               })
799
-          }
800
-        }).catch(err =>{
801
-          this.loading = false
802
-          console.log(err)
803
-        })
762
+            }
763
+          })
764
+          .catch(err => {
765
+            this.loading = false
766
+            console.log(err)
767
+          })
804 768
       }
805 769
       // console.log(this.data1, "data1...........")
806 770
     },

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

@@ -15,7 +15,10 @@
15 15
           <span v-if='scope.row.kind==45'>45</span> -->
16 16
         </template>
17 17
       </el-table-column>
18
-      <el-table-column prop="time" label="最近记录时间" align="center">
18
+      <el-table-column prop="checkTime" label="最近记录时间" align="center">
19
+        <template slot-scope="scope">
20
+         <span>{{ scope.row.checkTime.slice(0,16) }}</span>
21
+        </template>
19 22
       </el-table-column>
20 23
       <el-table-column prop="checkState" label="状态" align="center">
21 24
         <template slot-scope="scope">
@@ -174,11 +177,11 @@ export default {
174 177
             console.log(res.data, "最新设施data") */
175 178
             // 把拿到的设施检查记录保存到data()中,并设为table数据源
176 179
             this.tableData = res.data
177
-            this.tableData.forEach(element => {
180
+           /*  this.tableData.forEach(element => {
178 181
               element.time = element.checkTime.substring(0,element.checkTime.length-3)
179
-              /* console.log( element.time,' element.time')
180
-              console.log( element.checkTime,' element.time') */
181
-          });
182
+              console.log( element.time,' element.time')
183
+              console.log( element.checkTime,' element.time')
184
+          }); */
182 185
           }
183 186
         })
184 187
         .catch(err => {

+ 3 - 3
shanXiPlatform/src/views/home/branchOffice.vue

@@ -7,21 +7,21 @@
7 7
                     <div class="one">
8 8
                         <p class="lsp">
9 9
                             <img src="../../assets/images/rightarrow.png" alt /> 储存状态
10
-                            <span v-if="crumbs.length>1" class="echartSpan" @click="leftboxsMore(1)">更多>></span>
10
+                            <!-- <span v-if="crumbs.length>1" class="echartSpan" @click="leftboxsMore(1)">更多>></span> -->
11 11
                         </p>
12 12
                         <div id="myCharttwo" class="oneo"></div>
13 13
                     </div>
14 14
                     <div class="two">
15 15
                         <p class="lsp">
16 16
                             <img src="../../assets/images/rightarrow.png" alt /> 粮食种类
17
-                            <span v-if="crumbs.length>1" class="echartSpan" @click="leftboxsMore(2)">更多>></span>
17
+                            <!-- <span v-if="crumbs.length>1" class="echartSpan" @click="leftboxsMore(2)">更多>></span> -->
18 18
                         </p>
19 19
                         <div id="myChartone" class="twot"></div>
20 20
                     </div>
21 21
                     <div class="thi">
22 22
                         <p class="lsp">
23 23
                             <img src="../../assets/images/rightarrow.png" alt /> 仓房状态
24
-                            <span v-if="crumbs.length>1" class="echartSpan" @click="leftboxsMore(3)">更多>></span>
24
+                            <!-- <span v-if="crumbs.length>1" class="echartSpan" @click="leftboxsMore(3)">更多>></span> -->
25 25
                         </p>
26 26
                         <div id="myChartthi" class="thit"></div>
27 27
                     </div>

+ 108 - 21
shanXiPlatform/src/views/home/staff.vue

@@ -15,7 +15,7 @@
15 15
               style="float: left"
16 16
               v-for="item in workbenchData"
17 17
               :key="item.name"
18
-              @click="messageWorkFn(item.name)"
18
+              @click="messageWorkFn(item.path)"
19 19
             >
20 20
               <i :class="item.class"></i>
21 21
               <span style="font-size: 18px">{{ item.name }}</span>
@@ -402,18 +402,18 @@ export default {
402 402
   data() {
403 403
     return {
404 404
       workbenchData: [
405
-        {
406
-          name: "修改仓房信息",
407
-          class: "el-icon-edit",
408
-        },
409
-        {
410
-          name: "新增保管员每周检查记录",
411
-          class: "el-icon-plus",
412
-        },
413
-        {
414
-          name: "新增机械通风记录",
415
-          class: "el-icon-plus",
416
-        },
405
+        // {
406
+        //   name: "修改仓房信息",
407
+        //   class: "el-icon-edit",
408
+        // },
409
+        // {
410
+        //   name: "新增保管员每周检查记录",
411
+        //   class: "el-icon-plus",
412
+        // },
413
+        // {
414
+        //   name: "新增机械通风记录",
415
+        //   class: "el-icon-plus",
416
+        // },
417 417
       ],
418 418
       messageNoticeData: [],
419 419
       messageNoticeNum: 0,
@@ -445,6 +445,7 @@ export default {
445 445
     this.objone.depotId = JSON.parse(getUser()).depotId
446 446
     this.objtwo.depotId = JSON.parse(getUser()).depotId
447 447
     this.objthi.depotId = JSON.parse(getUser()).depotId
448
+    this.workbenchDataFn()
448 449
     this.getNoticeList()
449 450
     this.bannerList()
450 451
     this.initChartA("echartTwo")
@@ -790,14 +791,8 @@ export default {
790 791
         }
791 792
       })
792 793
     },
793
-    messageWorkFn(name) {
794
-      if (name == "修改仓房信息") {
795
-        this.$router.push({ path: "/countQuality/warehouseInformation" })
796
-      } else if (name == "新增保管员每周检查记录") {
797
-        this.$router.push({ path: "/reservesManagement/grainCheck/newGrain" })
798
-      } else if (name == "新增机械通风记录") {
799
-        this.$router.push({ path: "/reservesManagement/mechanicalVentilation" })
800
-      }
794
+    messageWorkFn(pathurl) {
795
+      this.$router.push({ path: pathurl })
801 796
     },
802 797
     housestatusshowFn(data) {
803 798
       if (data == 1) {
@@ -806,6 +801,98 @@ export default {
806 801
         this.housestatusshow = false
807 802
       }
808 803
     },
804
+    workbenchDataFn() {
805
+      let roleIds = JSON.parse(getUser()).roleIds
806
+      if(roleIds == '30'){   //保管员
807
+        this.workbenchData = [
808
+          {
809
+            name: "修改仓房信息",
810
+            class: "el-icon-edit",
811
+            path: "/countQuality/warehouseInformation"
812
+          },
813
+          {
814
+            name: "新增保管员每周检查记录",
815
+            class: "el-icon-plus",
816
+            path: "/reservesManagement/grainCheck/newGrain"
817
+          },
818
+          {
819
+            name: "新增机械通风记录",
820
+            class: "el-icon-plus",
821
+            path: "/reservesManagement/mechanicalVentilation"
822
+          },
823
+          {
824
+            name: "新增设施检查记录",
825
+            class: "el-icon-plus",
826
+            path: "/facilitiesEquipment/facilitiesManagement/newFacilities"
827
+          },
828
+        ]
829
+      }else if(roleIds == '60'){   //检化验人员
830
+        this.workbenchData = [
831
+          {
832
+            name: "新增库存质量记录",
833
+            class: "el-icon-plus",
834
+            path: "/countQuality/inventory/inventoryQuality"
835
+          },
836
+          {
837
+            name: "新增出库质量记录",
838
+            class: "el-icon-plus",
839
+            path: "/countQuality/delivery/deliveryQuality"
840
+          },
841
+        ]
842
+      }else if(roleIds == '58'){   //库外人员(委托)
843
+        this.workbenchData = [
844
+          {
845
+            name: "新增粮情检查记录",
846
+            class: "el-icon-plus",
847
+            path: "/outsideHouse/Emanage/gInspection"
848
+          },
849
+          {
850
+            name: "新增安全巡查记录",
851
+            class: "el-icon-plus",
852
+            path: "/outsideHouse/Emanage/sInspection"
853
+          },
854
+        ]
855
+      }else if(roleIds == '59'){   //库外人员(租仓)
856
+        this.workbenchData = [
857
+          {
858
+            name: "新增粮情检查记录",
859
+            class: "el-icon-plus",
860
+            path: "/outsideHouse/rentWarehouse/gRenthouse"
861
+          },
862
+          {
863
+            name: "新增安全巡查记录",
864
+            class: "el-icon-plus",
865
+            path: "/outsideHouse/rentWarehouse/sRenthouse"
866
+          },
867
+        ]
868
+      }else if(roleIds == '53'){   //药品机械保管员
869
+        this.workbenchData = [
870
+          {
871
+            name: "新增药剂采购记录",
872
+            class: "el-icon-plus",
873
+            path: "/medicamentManagement/medicamentProcurement"
874
+          },
875
+          {
876
+            name: "新增药剂保管记录",
877
+            class: "el-icon-plus",
878
+            path: "/medicamentManagement/medicamentStorage"
879
+          },
880
+          {
881
+            name: "新增药剂领用记录",
882
+            class: "el-icon-plus",
883
+            path: "/medicamentManagement/medicamentApplication"
884
+          },
885
+        ]
886
+      }else if(roleIds == '52'){   //安全员
887
+        this.workbenchData = [
888
+          {
889
+            name: "新增安全巡查记录",
890
+            class: "el-icon-plus",
891
+            path: "/safeProduction/safeTabs/newSafe"
892
+          },
893
+        ]
894
+      }
895
+    }
809 896
   },
810 897
 }
811 898
 </script>

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

@@ -17,7 +17,7 @@
17 17
                 start-placeholder="开始日期"
18 18
                 end-placeholder="结束日期"
19 19
                 :default-time="['00:00:00', '12:00:00']"
20
-                value-format="yyyy-MM-dd HH:mm"
20
+                value-format="yyyy-MM-dd HH:mm:ss"
21 21
               >
22 22
               </el-date-picker> -->
23 23
               <el-date-picker
@@ -26,7 +26,8 @@
26 26
                 range-separator="至"
27 27
                 start-placeholder="开始日期"
28 28
                 end-placeholder="结束日期"
29
-                value-format="yyyy-MM-dd HH:mm"
29
+                :default-time="['00:00:00', '23:59:59']"
30
+                value-format="yyyy-MM-dd HH:mm:ss"
30 31
               >
31 32
               </el-date-picker>
32 33
             </div>
@@ -324,6 +325,7 @@ export default {
324 325
 
325 326
         condition: JSON.stringify(condition)
326 327
       }
328
+      console.log(data3,'data3')
327 329
       queryGrainInfo(data3)
328 330
         .then(res => {
329 331
           this.data2 = res.data.records

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

@@ -260,7 +260,7 @@ export default {
260 260
       // console.log(userinfo.depotId)
261 261
       // console.log('121111........')
262 262
       let condition = {
263
-        houseId: this.houseId,
263
+        houseId: /* (this.houseId ==null || this.houseId ==undefined)?  */ this.houseId ,
264 264
         depotId: this.depotId
265 265
       }
266 266
       // console.log(JSON.stringify(condition),'1111')

+ 3 - 3
shanXiPlatform/src/views/safeProduction/allSafe/index.vue

@@ -48,9 +48,9 @@
48 48
         </el-table-column>
49 49
         <el-table-column prop="status" label="状态" align="center" width='100px'>
50 50
           <template slot-scope="scope">
51
-            <div  disable-transitions  v-if="scope.row.status == '' || scope.row.status == null"></div>
52
-            <div class="yellow" disable-transitions v-if="scope.row.status == '0'">进行中</div>
53
-            <div class="green" disable-transitions v-if="scope.row.status == '1'">已完成</div>
51
+            <span v-if="scope.row.status == '' || scope.row.status == null"></span>
52
+            <span v-if="scope.row.status == '0'">进行中</span>
53
+            <span v-if="scope.row.status == '1'">已完成</span>
54 54
           </template>
55 55
         </el-table-column>
56 56
         <el-table-column  prop="operation"  label="操作"  align="center"  width="250px">

+ 16 - 3
shanXiPlatform/src/views/safeProduction/newSafe/detail.vue

@@ -23,9 +23,10 @@
23 23
         </el-table-column>
24 24
       </el-table>
25 25
       <div class="btns" style="text-align:right;">
26
-        <el-button v-if="status !== 'detail'" type="success" plain @click="release('formData')">保存</el-button>
27
-        <!-- <el-button v-if="status !== 'detail'" style="border:1px solid #13ce66;" @click="release('formData','0')">暂存</el-button> -->
28 26
         <el-button type="cancel" @click="goback">返回</el-button>
27
+        <el-button v-if="status !== 'detail'" type="success" plain @click="release('formData')">{{buttonTitle}}</el-button>
28
+        <!-- <el-button v-if="status !== 'detail'" style="border:1px solid #13ce66;" @click="release('formData','0')">暂存</el-button> -->
29
+        
29 30
       </div>
30 31
     </div>
31 32
   </div>
@@ -90,7 +91,8 @@ export default {
90 91
         ],
91 92
       },
92 93
       isdisabled: false,
93
-      status: 'add'
94
+      status: 'add',
95
+      buttonTitle: '暂存'
94 96
     }
95 97
   },
96 98
   created() {
@@ -167,6 +169,12 @@ export default {
167 169
     flagChange(index) {
168 170
       // this.formData.detailsList[index].createTime = getDateTimeNow()
169 171
       this.formData.detailsList[index].detailTime = getDateTimeNow()
172
+      if(this.formData.detailsList[0].detailTime && this.formData.detailsList[1].detailTime
173
+       && this.formData.detailsList[2].detailTime && this.formData.detailsList[3].detailTime
174
+        && this.formData.detailsList[4].detailTime && this.formData.detailsList[5].detailTime
175
+         && this.formData.detailsList[6].detailTime && this.formData.detailsList[7].detailTime){
176
+           this.buttonTitle = '保存'
177
+       }
170 178
     },
171 179
     addList() {
172 180
       addFun(this.formData).then(res => {
@@ -261,6 +269,11 @@ export default {
261 269
       detailFun(this.$route.query.id).then(res => {
262 270
         if (res.code == 200) {
263 271
           this.formData = res.data
272
+          if(this.formData.status == '0'){
273
+            this.buttonTitle = '暂存'
274
+          }else{
275
+            this.buttonTitle = '保存'
276
+          }
264 277
         }
265 278
       }).catch((err) => {
266 279
         console.log(err)

+ 3 - 3
shanXiPlatform/src/views/safeProduction/newSafe/index.vue

@@ -18,9 +18,9 @@
18 18
         </el-table-column>
19 19
         <el-table-column prop="status" label="状态" align="center" width='100px'>
20 20
           <template slot-scope="scope">
21
-            <div  disable-transitions  v-if="scope.row.status == '' || scope.row.status == null"></div>
22
-            <div class="yellow" disable-transitions v-if="scope.row.status == '0'">进行中</div>
23
-            <div class="green" disable-transitions v-if="scope.row.status == '1'">已完成</div>
21
+            <span v-if="scope.row.status == '' || scope.row.status == null"></span>
22
+            <span v-if="scope.row.status == '0'">进行中</span>
23
+            <span v-if="scope.row.status == '1'">已完成</span>
24 24
           </template>
25 25
         </el-table-column>
26 26
         <el-table-column  prop="operation"  label="操作"  align="center"  width="200px">

+ 13 - 2
shanXiPlatform/src/views/supervisionInspection/entrustedRepository/newEntrustedRepository/detail.vue

@@ -20,9 +20,9 @@
20 20
         </el-table-column>
21 21
       </el-table>
22 22
       <div class="btns" style="text-align:right;">
23
-        <el-button v-if="status !== 'detail'" type="success" plain @click="release('formData')">保存</el-button>
24 23
         <!-- <el-button v-if="status !== 'detail'" style="border:1px solid #13ce66;" @click="release('formData','0')">暂存</el-button> -->
25 24
         <el-button type="cancel" @click="goback">返回</el-button>
25
+        <el-button v-if="status !== 'detail'" type="success" plain @click="release('formData')">{{buttonTitle}}</el-button>
26 26
       </div>
27 27
     </div>
28 28
   </div>
@@ -77,7 +77,8 @@ export default {
77 77
         ],
78 78
       },
79 79
       isdisabled: false,
80
-      status: 'add'
80
+      status: 'add',
81
+      buttonTitle: '暂存'
81 82
     }
82 83
   },
83 84
   created() {
@@ -143,6 +144,11 @@ export default {
143 144
     flagChange(index) {
144 145
       // this.formData.detailsList[index].createTime = getDateTimeNow()
145 146
       this.formData.detailsList[index].detailTime = getDateTimeNow()
147
+      if(this.formData.detailsList[0].detailTime && this.formData.detailsList[1].detailTime
148
+       && this.formData.detailsList[2].detailTime && this.formData.detailsList[3].detailTime
149
+        && this.formData.detailsList[4].detailTime && this.formData.detailsList[5].detailTime){
150
+           this.buttonTitle = '保存'
151
+       }
146 152
     },
147 153
     addList() {
148 154
       addFun(this.formData).then(res => {
@@ -192,6 +198,11 @@ export default {
192 198
       detailFun(this.$route.query.id).then(res => {
193 199
         if (res.code == 200) {
194 200
           this.formData = res.data
201
+          if(this.formData.status == '0'){
202
+            this.buttonTitle = '暂存'
203
+          }else{
204
+            this.buttonTitle = '保存'
205
+          }
195 206
         }
196 207
       }).catch((err) => {
197 208
         console.log(err)

+ 4 - 4
shanXiPlatform/src/views/supervisionInspection/entrustedRepository/newEntrustedRepository/index.vue

@@ -39,10 +39,10 @@
39 39
             </el-table-column>
40 40
             <el-table-column prop="status" label="状态" align="center" width='100px'>
41 41
               <template slot-scope="scope">
42
-                <div  disable-transitions  v-if="scope.row.status == '' || scope.row.status == null"></div>
43
-                <div class="yellow" disable-transitions v-if="scope.row.status == '0'">进行中</div>
44
-                <div class="green" disable-transitions v-if="scope.row.status == '1'">已完成</div>
45
-              </template>
42
+            <span v-if="scope.row.status == '' || scope.row.status == null"></span>
43
+            <span v-if="scope.row.status == '0'">进行中</span>
44
+            <span v-if="scope.row.status == '1'">已完成</span>
45
+          </template>
46 46
             </el-table-column>
47 47
             <el-table-column  prop="operation"  label="操作"  align="center"  width="250px">
48 48
               <template slot-scope="scope">

+ 3 - 3
shanXiPlatform/src/views/supervisionInspection/library/allLibrary/index.vue

@@ -47,9 +47,9 @@
47 47
         </el-table-column>
48 48
         <el-table-column prop="status" label="状态" align="center" width='100px'>
49 49
           <template slot-scope="scope">
50
-            <div  disable-transitions  v-if="scope.row.status == '' || scope.row.status == null"></div>
51
-            <div class="yellow" disable-transitions v-if="scope.row.status == '0'">进行中</div>
52
-            <div class="green" disable-transitions v-if="scope.row.status == '1'">已完成</div>
50
+            <span v-if="scope.row.status == '' || scope.row.status == null"></span>
51
+            <span v-if="scope.row.status == '0'">进行中</span>
52
+            <span v-if="scope.row.status == '1'">已完成</span>
53 53
           </template>
54 54
         </el-table-column>
55 55
         <el-table-column  prop="operation"  label="操作"  align="center"  width="250px">

+ 13 - 2
shanXiPlatform/src/views/supervisionInspection/library/newLibrary/detail.vue

@@ -22,9 +22,9 @@
22 22
         </el-table-column>
23 23
       </el-table>
24 24
       <div class="btns" style="text-align:right;">
25
-        <el-button v-if="status !== 'detail'" type="success" plain @click="release('formData')">保存</el-button>
26 25
         <!-- <el-button v-if="status !== 'detail'" style="border:1px solid #13ce66;" @click="release('formData','0')">暂存</el-button> -->
27 26
         <el-button type="cancel" @click="goback">返回</el-button>
27
+        <el-button v-if="status !== 'detail'" type="success" plain @click="release('formData')">{{buttonTitle}}</el-button>
28 28
       </div>
29 29
     </div>
30 30
   </div>
@@ -79,7 +79,8 @@ export default {
79 79
         ],
80 80
       },
81 81
       isdisabled: false,
82
-      status: 'add'
82
+      status: 'add',
83
+      buttonTitle: '暂存'
83 84
     }
84 85
   },
85 86
   created() {
@@ -145,6 +146,11 @@ export default {
145 146
     flagChange(index) {
146 147
       // this.formData.detailsList[index].createTime = getDateTimeNow()
147 148
       this.formData.detailsList[index].detailTime = getDateTimeNow()
149
+      if(this.formData.detailsList[0].detailTime && this.formData.detailsList[1].detailTime
150
+       && this.formData.detailsList[2].detailTime && this.formData.detailsList[3].detailTime
151
+        && this.formData.detailsList[4].detailTime && this.formData.detailsList[5].detailTime){
152
+           this.buttonTitle = '保存'
153
+       }
148 154
     },
149 155
     addList() {
150 156
       addFun(this.formData).then(res => {
@@ -254,6 +260,11 @@ export default {
254 260
       detailFun(this.$route.query.id).then(res => {
255 261
         if (res.code == 200) {
256 262
           this.formData = res.data
263
+          if(this.formData.status == '0'){
264
+            this.buttonTitle = '暂存'
265
+          }else{
266
+            this.buttonTitle = '保存'
267
+          }
257 268
         }
258 269
       }).catch((err) => {
259 270
         console.log(err)

+ 3 - 3
shanXiPlatform/src/views/supervisionInspection/library/newLibrary/index.vue

@@ -17,9 +17,9 @@
17 17
         </el-table-column>
18 18
         <el-table-column prop="status" label="状态" align="center" width='100px'>
19 19
           <template slot-scope="scope">
20
-            <div  disable-transitions  v-if="scope.row.status == '' || scope.row.status == null"></div>
21
-            <div class="yellow" disable-transitions v-if="scope.row.status == '0'">进行中</div>
22
-            <div class="green" disable-transitions v-if="scope.row.status == '1'">已完成</div>
20
+            <span v-if="scope.row.status == '' || scope.row.status == null"></span>
21
+            <span v-if="scope.row.status == '0'">进行中</span>
22
+            <span v-if="scope.row.status == '1'">已完成</span>
23 23
           </template>
24 24
         </el-table-column>
25 25
         <el-table-column  prop="operation"  label="操作"  align="center"  width="200px">

+ 13 - 2
shanXiPlatform/src/views/supervisionInspection/subTreasury/newSubTreasury/detail.vue

@@ -17,9 +17,9 @@
17 17
         </el-table-column>
18 18
       </el-table>
19 19
       <div class="btns" style="text-align:right;">
20
-        <el-button v-if="status !== 'detail'" type="success" plain @click="release('formData')">保存</el-button>
21 20
         <!-- <el-button v-if="status !== 'detail'" style="border:1px solid #13ce66;" @click="release('formData','0')">暂存</el-button> -->
22 21
         <el-button type="cancel" @click="goback">返回</el-button>
22
+        <el-button v-if="status !== 'detail'" type="success" plain @click="release('formData')">{{buttonTitle}}</el-button>
23 23
       </div>
24 24
     </div>
25 25
   </div>
@@ -74,7 +74,8 @@ export default {
74 74
         ],
75 75
       },
76 76
       isdisabled: false,
77
-      status: 'add'
77
+      status: 'add',
78
+      buttonTitle: '暂存'
78 79
     }
79 80
   },
80 81
   created() {
@@ -139,6 +140,11 @@ export default {
139 140
     flagChange(index) {
140 141
       // this.formData.detailsList[index].createTime = getDateTimeNow()
141 142
       this.formData.detailsList[index].detailTime = getDateTimeNow()
143
+      if(this.formData.detailsList[0].detailTime && this.formData.detailsList[1].detailTime
144
+       && this.formData.detailsList[2].detailTime && this.formData.detailsList[3].detailTime
145
+        && this.formData.detailsList[4].detailTime && this.formData.detailsList[5].detailTime){
146
+           this.buttonTitle = '保存'
147
+       }
142 148
     },
143 149
     addList() {
144 150
       addFun(this.formData).then(res => {
@@ -188,6 +194,11 @@ export default {
188 194
       detailFun(this.$route.query.id).then(res => {
189 195
         if (res.code == 200) {
190 196
           this.formData = res.data
197
+          this.formData.detailsList.forEach(item => {
198
+            if(item.flag === null || item.flag === 'null'){
199
+              this.formData.status = 0
200
+            }
201
+          })
191 202
         }
192 203
       }).catch((err) => {
193 204
         console.log(err)

+ 4 - 4
shanXiPlatform/src/views/supervisionInspection/subTreasury/newSubTreasury/index.vue

@@ -39,10 +39,10 @@
39 39
             </el-table-column>
40 40
             <el-table-column prop="status" label="状态" align="center" width='100px'>
41 41
               <template slot-scope="scope">
42
-                <div  disable-transitions  v-if="scope.row.status == '' || scope.row.status == null"></div>
43
-                <div class="yellow" disable-transitions v-if="scope.row.status == '0'">进行中</div>
44
-                <div class="green" disable-transitions v-if="scope.row.status == '1'">已完成</div>
45
-              </template>
42
+            <span v-if="scope.row.status == '' || scope.row.status == null"></span>
43
+            <span v-if="scope.row.status == '0'">进行中</span>
44
+            <span v-if="scope.row.status == '1'">已完成</span>
45
+          </template>
46 46
             </el-table-column>
47 47
             <el-table-column  prop="operation"  label="操作"  align="center"  width="250px">
48 48
               <template slot-scope="scope">

+ 47 - 40
shanXiPlatform/src/views/systemManagement/earlyWarningManagement/addEarlyWarningManagement.vue

@@ -99,68 +99,63 @@ export default {
99 99
           label:'保管员每周粮情检查'
100 100
         },
101 101
         {
102
+          value:'code13',
103
+          label:'科长每2周粮情检查'
104
+        },
105
+        {
106
+          value:'code5',
107
+          label:'分管副总每月粮情检查'
108
+        },
109
+        {
110
+          value:'code8',
111
+          label:'总经理每季检查粮情'
112
+        },
113
+        {
102 114
           value:'code1',
103 115
           label:'安全员每天安全检查'
104 116
         },
105 117
         {
106 118
           value:'code2',
107
-          label:'仓储科长每2周本库检查'
119
+          label:'科长每2周本库检查'
108 120
         },
109 121
         {
110
-          value:'code3',
111
-          label:'业务科长每2周分库检查'
122
+          value:'code7',
123
+          label:'分管副总每月本库检查'
112 124
         },
113 125
         {
114 126
           value:'code4',
115 127
           label:'监管科长每2周租仓、委托点检查'
116 128
         },
117 129
         {
118
-          value:'code5',
119
-          label:'分管副总每月粮情检查'
120
-        },
121
-        {
122
-          value:'code6',
123
-          label:'分管副总每月质量检查'
124
-        },
125
-        {
126
-          value:'code7',
127
-          label:'分管副总每月分库检查'
130
+          value:'code3',
131
+          label:'分库经理每2周分库检查'
128 132
         },
129 133
         {
130
-          value:'code8',
131
-          label:'总经理每季检查粮情'
134
+          value:'code12',
135
+          label:'保管员每周检查粮情(租仓管理)'
132 136
         },
133 137
         {
134
-          value:'code9',
135
-          label:'安全员每天巡检/委托管理'
138
+          value:'code11',
139
+          label:'保管员每周检查粮情(委托管理)'
136 140
         },
137 141
         {
138 142
           value:'code10',
139
-          label:'安全员每天巡检/租仓管理'
140
-        },
141
-          {
142
-          value:'code11',
143
-          label:'保管员每周检查粮情/委托管理'
143
+          label:'安全员每天安全巡检(租仓管理)'
144 144
         },
145 145
         {
146
-          value:'code12',
147
-          label:'保管员每周检查粮情/租仓管理'
146
+          value:'code9',
147
+          label:'安全员每天安全巡检(委托管理)'
148 148
         },
149
-
150 149
       ],
151 150
       checkDateList:[
152 151
         {
153
-          value:'10_minute',
154
-          label:'每10分钟'
155
-        },
156
-        {
157 152
           value:'1_weekday',
158 153
           label:'每工作日'
159 154
         },
160
-        {
161
-          value:'1_day',
162
-          label:'日'
163
-        },
155
+        // {
156
+        //   value:'1_day',
157
+        //   label:'日'
158
+        // },
164 159
         {
165 160
           value:'1_week',
166 161
           label:'周'
@@ -177,23 +172,35 @@ export default {
177 172
           value:'1_season',
178 173
           label:'季'
179 174
         },
175
+        {
176
+          value:'10_minute',
177
+          label:'每10分钟'
178
+        },
180 179
       ],
181 180
       timeList:[
182 181
         {
183
-          value:'3_day',
184
-          label:'到期前3天'
182
+          value:'160_hour',
183
+          label:'到期前6天16个小时'
184
+        },
185
+        {
186
+          value:'88_hour',
187
+          label:'到期前3天16个小时'
185 188
         },
186 189
         {
187
-          value:'2_day',
188
-          label:'到期前2天'
190
+          value:'64_hour',
191
+          label:'到期前2天16个小时'
189 192
         },
190 193
         {
191
-          value:'1_day',
192
-          label:'到期前1'
194
+          value:'16_hour',
195
+          label:'到期前16个小时'
193 196
         },
194 197
         {
195 198
           value:'10_hour',
196
-          label:'到期前10小时'
199
+          label:'到期前10个小时'
200
+        },
201
+        {
202
+          value:'8_hour',
203
+          label:'到期前8个小时'
197 204
         },
198 205
         {
199 206
           value:'1_minute',

+ 3 - 3
shanXiPlatform/src/views/systemManagement/earlyWarningManagement/index.vue

@@ -197,9 +197,9 @@ export default {
197 197
     },
198 198
     getInspectCycle(row) {
199 199
       switch (row.inspectCycle) {
200
-          case '1_day':
201
-              return '日';
202
-              break;
200
+          // case '1_day':
201
+          //     return '日';
202
+          //     break;
203 203
           case '1_week':
204 204
               return '周';
205 205
               break;

+ 2 - 2
shanXiPlatform/src/views/systemManagement/notice/newNotice/addnotice.vue

@@ -67,10 +67,10 @@
67 67
 
68 68
       </el-form>
69 69
       <div class="btns" style="text-align:right;">
70
-        <el-button v-if="status !== 'detail'" :loading='loading' type="success" plain @click="release('formData','1')">发布</el-button>
70
+        <el-button type="cancel" @click="goback">返回</el-button>
71 71
         <el-button v-if="status !== 'detail'" :loading='loading' style="border:1px solid #13ce66;" @click="release('formData','2')">保存至草稿箱</el-button>
72 72
         <!-- <el-button class="cancelBtn" @click="goback">返回</el-button> -->
73
-        <el-button type="cancel" @click="goback">返回</el-button>
73
+        <el-button v-if="status !== 'detail'" :loading='loading' type="success" plain @click="release('formData','1')">发布</el-button>
74 74
       </div>
75 75
     </div>
76 76
   </div>