GaoYuPeng vor 3 Jahren
Ursprung
Commit
42035cead2
18 geänderte Dateien mit 336 neuen und 175 gelöschten Zeilen
  1. 3 0
      shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/allFacilities/index.vue
  2. 90 75
      shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/newFacilities/addType.vue
  3. 3 0
      shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/newFacilities/index.vue
  4. 5 5
      shanXiPlatform/src/views/home/branchOffice.vue
  5. 108 21
      shanXiPlatform/src/views/home/staff.vue
  6. 3 3
      shanXiPlatform/src/views/safeProduction/allSafe/index.vue
  7. 16 3
      shanXiPlatform/src/views/safeProduction/newSafe/detail.vue
  8. 3 3
      shanXiPlatform/src/views/safeProduction/newSafe/index.vue
  9. 13 2
      shanXiPlatform/src/views/supervisionInspection/entrustedRepository/newEntrustedRepository/detail.vue
  10. 4 4
      shanXiPlatform/src/views/supervisionInspection/entrustedRepository/newEntrustedRepository/index.vue
  11. 3 3
      shanXiPlatform/src/views/supervisionInspection/library/allLibrary/index.vue
  12. 13 2
      shanXiPlatform/src/views/supervisionInspection/library/newLibrary/detail.vue
  13. 3 3
      shanXiPlatform/src/views/supervisionInspection/library/newLibrary/index.vue
  14. 13 2
      shanXiPlatform/src/views/supervisionInspection/subTreasury/newSubTreasury/detail.vue
  15. 4 4
      shanXiPlatform/src/views/supervisionInspection/subTreasury/newSubTreasury/index.vue
  16. 47 40
      shanXiPlatform/src/views/systemManagement/earlyWarningManagement/addEarlyWarningManagement.vue
  17. 3 3
      shanXiPlatform/src/views/systemManagement/earlyWarningManagement/index.vue
  18. 2 2
      shanXiPlatform/src/views/systemManagement/notice/newNotice/addnotice.vue

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

@@ -69,6 +69,9 @@
69 69
       <el-table-column type="index" align="center" label="序号" width="50px">
70 70
       </el-table-column>
71 71
       <el-table-column prop="checkTime" label="检查时间" align="center">
72
+          <template slot-scope="scope">
73
+         <span>{{ scope.row.checkTime.slice(0,16) }}</span>
74
+        </template>
72 75
       </el-table-column>
73 76
       <el-table-column prop="kind" label="设施种类" align="center">
74 77
         <template slot-scope="scope">

+ 90 - 75
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: "",
@@ -614,83 +618,92 @@ export default {
614 618
         // console.log(this.checkItems, "是否被选中")
615 619
         var num = 0
616 620
         for (let i = 0; i < this.checkItems.length; i++) {
617
-        // console.log(this.checkItems[i].enumId, "this.checkItems[i].enumId")
618
-        // var num =0;
619
-        this.checkItems[i].checkEnumId = this.checkItems[i].enumId
620
-        this.checkItems[i].operationTime = this.checkItems[i].createDate
621
-        if (this.checkItems[i].isCheck === 0) {
622
-          // 有一项点击否,结果就是1(黄)
623
-          this.data1.equipFacilities.checkResult = 1
624
-        } else {
625
-          // 有一项点击否,结果就是0(绿)
626
-          this.data1.equipFacilities.checkResult = 0
627
-        }
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) {
626
+            // 有一项点击否,结果就是1(黄)
627
+            this.data1.equipFacilities.checkResult = 1
628
+          } else {
629
+            // 有一项点击否,结果就是0(绿)
630
+            this.data1.equipFacilities.checkResult = 0
631
+          }
628 632
 
629
-        if (
630
-          this.checkItems[i].isCheck === 1 ||
631
-          this.checkItems[i].isCheck === 0
632
-        ) {
633
-          num += 1
634
-          // console.log(this.checkItems[i], num, "该项被选中了")
635
-        }
633
+          if (
634
+            this.checkItems[i].isCheck === 1 ||
635
+            this.checkItems[i].isCheck === 0
636
+          ) {
637
+            num += 1
638
+            // console.log(this.checkItems[i], num, "该项被选中了")
639
+          }
636 640
 
637
-        if (num == this.checkItems.length) {
638
-          this.data1.equipFacilities.checkState = 1
639
-          this.flag = true
640
-          // console.log("此时暂存变保存,切状态改为已完成")
641
-        } else {
642
-          this.data1.equipFacilities.checkState = 0
643
-          // console.log("此时暂存还是暂存,切状态改为 进行中")
641
+          if (num == this.checkItems.length) {
642
+            this.data1.equipFacilities.checkState = 1
643
+            this.flag = true
644
+            // console.log("此时暂存变保存,切状态改为已完成")
645
+          } else {
646
+            this.data1.equipFacilities.checkState = 0
647
+            // console.log("此时暂存还是暂存,切状态改为 进行中")
648
+          }
644 649
         }
645
-      }
646
-
647 650
       } else if (this.type == 3) {
648 651
         //修改时
649 652
         row.operationTime = getDateTimeNow()
650 653
         var num = 0
651 654
 
652
-
653 655
         for (var i = 0; i < this.checkItems.length; i++) {
654
-        // console.log(this.checkItems[i].enumId, "this.checkItems[i].enumId")
655
-        // var num =0;
656
-        Object.assign(this.checkItems[i], { checkEnumId: this.checkItems[i].enumId })
657
-        if (this.checkItems[i].isCheck === 0) {
658
-          // 有一项点击否,结果就是1(黄)
659
-          this.data1.equipFacilities.checkResult = 1
660
-          console.log(this.data1.equipFacilities.checkResult,'this.data1.equipFacilities.checkResult')
661
-        } else {
662
-          // 有一项点击否,结果就是0(绿)
663
-          this.data1.equipFacilities.checkResult = 0
664
-          console.log(this.data1.equipFacilities.checkResult,'this.data1.equipFacilities.checkResult')
665
-        }
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) {
662
+            // 有一项点击否,结果就是1(黄)
663
+            this.data1.equipFacilities.checkResult = 1
664
+            console.log(
665
+              this.data1.equipFacilities.checkResult,
666
+              "this.data1.equipFacilities.checkResult"
667
+            )
668
+          } else {
669
+            // 有一项点击否,结果就是0(绿)
670
+            this.data1.equipFacilities.checkResult = 0
671
+            console.log(
672
+              this.data1.equipFacilities.checkResult,
673
+              "this.data1.equipFacilities.checkResult"
674
+            )
675
+          }
666 676
 
667
-        if (
668
-          this.checkItems[i].isCheck === 1 ||
669
-          this.checkItems[i].isCheck === 0
670
-        ) {
671
-          num += 1
672
-          console.log(this.checkItems[i], num, "该项被选中了")
673
-        }
677
+          if (
678
+            this.checkItems[i].isCheck === 1 ||
679
+            this.checkItems[i].isCheck === 0
680
+          ) {
681
+            num += 1
682
+            console.log(this.checkItems[i], num, "该项被选中了")
683
+          }
674 684
 
675
-        if (num == this.checkItems.length) {
676
-          this.data1.equipFacilities.checkState = 1
677
-          this.flag = true
678
-          console.log("此时暂存变保存,切状态改为已完成")
679
-        } else {
680
-          this.data1.equipFacilities.checkState = 0
681
-          console.log("此时暂存还是暂存,切状态改为 进行中")
685
+          if (num == this.checkItems.length) {
686
+            this.data1.equipFacilities.checkState = 1
687
+            this.flag = true
688
+            console.log("此时暂存变保存,切状态改为已完成")
689
+          } else {
690
+            this.data1.equipFacilities.checkState = 0
691
+            console.log("此时暂存还是暂存,切状态改为 进行中")
692
+          }
682 693
         }
683 694
       }
684
-      }
685 695
     },
686 696
     // 保存
687 697
     btnSave() {
688 698
       this.loading = true
689
-      for(var i =0;i<this.checkItems.length;i++){
699
+      for (var i = 0; i < this.checkItems.length; i++) {
690 700
         if (this.checkItems[i].isCheck === 0) {
691 701
           // 有一项点击否,结果就是1(黄)
692 702
           this.data1.equipFacilities.checkResult = 1
693
-          console.log(this.data1.equipFacilities.checkResult,'this.data1.equipFacilities.checkResult')
703
+          console.log(
704
+            this.data1.equipFacilities.checkResult,
705
+            "this.data1.equipFacilities.checkResult"
706
+          )
694 707
         } /* else if(this.checkItems[i].isCheck === 1){
695 708
           // 有一项点击否,结果就是0(绿)
696 709
           this.data1.equipFacilities.checkResult = 0
@@ -733,11 +746,12 @@ export default {
733 746
       } else if (this.type == 3) {
734 747
         console.log("这是修改")
735 748
         this.data1.equipFacilities.id = this.id
736
-        console.log(this.data1,'this.data1')
737
-        editFacilitiy(this.data1).then(res =>{
738
-          console.log(res,'res....')
739
-          if(res.code == 200){
740
-            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
741 755
               this.$message({
742 756
                 message: "修改成功!",
743 757
                 type: "success"
@@ -745,11 +759,12 @@ export default {
745 759
               this.$router.push({
746 760
                 path: "/facilitiesEquipment/facilitiesManagement/allFacilities"
747 761
               })
748
-          }
749
-        }).catch(err =>{
750
-          this.loading = false
751
-          console.log(err)
752
-        })
762
+            }
763
+          })
764
+          .catch(err => {
765
+            this.loading = false
766
+            console.log(err)
767
+          })
753 768
       }
754 769
       // console.log(this.data1, "data1...........")
755 770
     },

+ 3 - 0
shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/newFacilities/index.vue

@@ -16,6 +16,9 @@
16 16
         </template>
17 17
       </el-table-column>
18 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">

+ 5 - 5
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>
@@ -1418,7 +1418,7 @@ export default {
1418 1418
                 .myChartdcru {
1419 1419
                     width: 100%;
1420 1420
                     height: 10%;
1421
-                    padding: 13px 3px 5px 0;
1421
+                    padding: 13px 3px 5px 10px;
1422 1422
                     color: #333;
1423 1423
                     font-weight: 400;
1424 1424
                     font-family: Source Han Sans CN;
@@ -1489,7 +1489,7 @@ export default {
1489 1489
                 .myChartdcru {
1490 1490
                     width: 100%;
1491 1491
                     height: 10%;
1492
-                    padding: 13px 3px 5px 0;
1492
+                    padding: 13px 3px 5px 10px;
1493 1493
                     color: #333;
1494 1494
                     font-weight: 400;
1495 1495
                     font-family: Source Han Sans CN;

+ 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>

+ 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>