linyanfei 3 years ago
parent
commit
75fb30641f
30 changed files with 556 additions and 488 deletions
  1. 12 2
      shanXiPlatform/src/api/facilitiesEquipment/facilitiesManagement.js
  2. 1 1
      shanXiPlatform/src/api/safeProduction/index.js
  3. 1 1
      shanXiPlatform/src/api/supervisionInspection/entrustedRepository/index.js
  4. 1 1
      shanXiPlatform/src/api/supervisionInspection/library/index.js
  5. 1 1
      shanXiPlatform/src/api/supervisionInspection/subTreasury/index.js
  6. 4 4
      shanXiPlatform/src/router/index.js
  7. 101 80
      shanXiPlatform/src/views/basicInformation/personnelStructure.vue
  8. 11 2
      shanXiPlatform/src/views/basicInformation/policySystem/detail.vue
  9. 13 4
      shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/allFacilities/index.vue
  10. 82 64
      shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/newFacilities/addType.vue
  11. 8 7
      shanXiPlatform/src/views/facilitiesEquipment/facilitiesManagement/newFacilities/index.vue
  12. 3 3
      shanXiPlatform/src/views/outsideHouse/rentWarehouse/gRenthouse.vue
  13. 98 54
      shanXiPlatform/src/views/reservesManagement/grainCheck/allGrain/index.vue
  14. 20 9
      shanXiPlatform/src/views/reservesManagement/grainCheck/newGrain/addNewGrain.vue
  15. 2 2
      shanXiPlatform/src/views/reservesManagement/grainCheck/newGrain/index.vue
  16. 13 0
      shanXiPlatform/src/views/safeProduction/allSafe/index.vue
  17. 9 60
      shanXiPlatform/src/views/safeProduction/newSafe/detail.vue
  18. 13 1
      shanXiPlatform/src/views/safeProduction/newSafe/index.vue
  19. 9 60
      shanXiPlatform/src/views/supervisionInspection/entrustedRepository/newEntrustedRepository/detail.vue
  20. 13 0
      shanXiPlatform/src/views/supervisionInspection/entrustedRepository/newEntrustedRepository/index.vue
  21. 13 5
      shanXiPlatform/src/views/supervisionInspection/library/allLibrary/index.vue
  22. 9 60
      shanXiPlatform/src/views/supervisionInspection/library/newLibrary/detail.vue
  23. 13 0
      shanXiPlatform/src/views/supervisionInspection/library/newLibrary/index.vue
  24. 9 60
      shanXiPlatform/src/views/supervisionInspection/subTreasury/newSubTreasury/detail.vue
  25. 13 0
      shanXiPlatform/src/views/supervisionInspection/subTreasury/newSubTreasury/index.vue
  26. 18 1
      shanXiPlatform/src/views/systemManagement/notice/allNotice/index.vue
  27. 19 2
      shanXiPlatform/src/views/systemManagement/notice/newNotice/index.vue
  28. 14 1
      shanXiPlatform/src/views/systemManagement/policySystem/index.vue
  29. 14 1
      shanXiPlatform/src/views/systemManagement/userManagement/departmentManagement/index.vue
  30. 19 2
      shanXiPlatform/src/views/systemManagement/userManagement/roleManagement/index.vue

+ 12 - 2
shanXiPlatform/src/api/facilitiesEquipment/facilitiesManagement.js

@@ -2,12 +2,14 @@ import request from '@/utils/request'
2
 
2
 
3
 // 设施设备 -设施管理
3
 // 设施设备 -设施管理
4
 // 获取最新设施种类
4
 // 获取最新设施种类
5
-export function getFacility() {
5
+export function getFacility(parentId) {
6
   return request({
6
   return request({
7
-    url: `/csc-szls-system-manage/basicsEnum/authority/getEnumAll`,
7
+    // url: `/csc-szls-system-manage/basicsEnum/authority/getEnumAll`,
8
+    url: `/csc-szls-system-manage/basicsEnum/authority/getOnlyChildData/${parentId}`,
8
     method: 'get',
9
     method: 'get',
9
   })
10
   })
10
 }
11
 }
12
+// /basicsEnum/authority/getOnlyChildData/{parentId}
11
 
13
 
12
 // 最新设施检查记录
14
 // 最新设施检查记录
13
 export function getNewFacilityCheckRecord(params) {
15
 export function getNewFacilityCheckRecord(params) {
@@ -41,6 +43,14 @@ export function getAllFacilitiyCheckRecord(params) {
41
     params
43
     params
42
   })
44
   })
43
 }
45
 }
46
+// 修改
47
+export function editFacilitiy(data) {
48
+  return request({
49
+    url: `/csc-szls-business/equipFacilities/facilities/update`,
50
+    method: 'post',
51
+    data
52
+  })
53
+}
44
 // 查看
54
 // 查看
45
 export function checkFacilitiyInfo(id) {
55
 export function checkFacilitiyInfo(id) {
46
   return request({
56
   return request({

+ 1 - 1
shanXiPlatform/src/api/safeProduction/index.js

@@ -53,7 +53,7 @@ export function haveDone(userId,type,depotId,auditState) {
53
   
53
   
54
 export function getDateTimeNow(){
54
 export function getDateTimeNow(){
55
   var time = new Date();
55
   var time = new Date();
56
-  time.setTime(time.setHours(time.getHours() - 8))
56
+  time.setTime(time.setHours(time.getHours()))
57
   var day = ("0" + time.getDate()).slice(-2)
57
   var day = ("0" + time.getDate()).slice(-2)
58
   var month = ("0" + (time.getMonth()+1)).slice(-2)
58
   var month = ("0" + (time.getMonth()+1)).slice(-2)
59
 
59
 

+ 1 - 1
shanXiPlatform/src/api/supervisionInspection/entrustedRepository/index.js

@@ -32,7 +32,7 @@ export function deleteFun(id) {
32
   
32
   
33
 export function getDateTimeNow(){
33
 export function getDateTimeNow(){
34
   var time = new Date();
34
   var time = new Date();
35
-  time.setTime(time.setHours(time.getHours() - 8))
35
+  time.setTime(time.setHours(time.getHours()))
36
   var day = ("0" + time.getDate()).slice(-2)
36
   var day = ("0" + time.getDate()).slice(-2)
37
   var month = ("0" + (time.getMonth()+1)).slice(-2)
37
   var month = ("0" + (time.getMonth()+1)).slice(-2)
38
 
38
 

+ 1 - 1
shanXiPlatform/src/api/supervisionInspection/library/index.js

@@ -39,7 +39,7 @@ export function deleteFun(id) {
39
   
39
   
40
 export function getDateTimeNow(){
40
 export function getDateTimeNow(){
41
   var time = new Date();
41
   var time = new Date();
42
-  time.setTime(time.setHours(time.getHours() - 8))
42
+  time.setTime(time.setHours(time.getHours()))
43
   var day = ("0" + time.getDate()).slice(-2)
43
   var day = ("0" + time.getDate()).slice(-2)
44
   var month = ("0" + (time.getMonth()+1)).slice(-2)
44
   var month = ("0" + (time.getMonth()+1)).slice(-2)
45
 
45
 

+ 1 - 1
shanXiPlatform/src/api/supervisionInspection/subTreasury/index.js

@@ -32,7 +32,7 @@ export function deleteFun(id) {
32
   
32
   
33
 export function getDateTimeNow(){
33
 export function getDateTimeNow(){
34
   var time = new Date();
34
   var time = new Date();
35
-  time.setTime(time.setHours(time.getHours() - 8))
35
+  time.setTime(time.setHours(time.getHours()))
36
   var day = ("0" + time.getDate()).slice(-2)
36
   var day = ("0" + time.getDate()).slice(-2)
37
   var month = ("0" + (time.getMonth()+1)).slice(-2)
37
   var month = ("0" + (time.getMonth()+1)).slice(-2)
38
 
38
 

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

@@ -843,7 +843,7 @@ export const constantRoutes = [
843
           redirect: 'facilitiesManagement/newFacilities',
843
           redirect: 'facilitiesManagement/newFacilities',
844
           component: facilitiesTabs,
844
           component: facilitiesTabs,
845
           name: 'FacilitiesManagemen',
845
           name: 'FacilitiesManagemen',
846
-          meta: { title: '设施管理', icon: 'dashboard', affix: false},
846
+          meta: { title: '设施管理', icon: 'dashboard', affix: false,istable: true},
847
           resourceCode: 243,
847
           resourceCode: 243,
848
 
848
 
849
 
849
 
@@ -855,7 +855,7 @@ export const constantRoutes = [
855
               name: 'NewFacilities',
855
               name: 'NewFacilities',
856
 
856
 
857
               hidden: true,
857
               hidden: true,
858
-              meta: { title: '最新设施检查记录', icon: 'dashboard', affix: false}
858
+              meta: { title: '最新设施检查记录', icon: 'dashboard', affix: false,relation: 'house', istable: true}
859
             },
859
             },
860
 
860
 
861
 
861
 
@@ -866,7 +866,7 @@ export const constantRoutes = [
866
               name: 'AllFacilities',
866
               name: 'AllFacilities',
867
 
867
 
868
               hidden: true,
868
               hidden: true,
869
-              meta: { title: '全部设施检查记录', icon: 'dashboard', affix: false}
869
+              meta: { title: '全部设施检查记录', icon: 'dashboard', affix: false ,relation: 'house', istable: true}
870
             },
870
             },
871
 
871
 
872
 
872
 
@@ -892,7 +892,7 @@ export const constantRoutes = [
892
           component: () => import('@/views/facilitiesEquipment/facilitiesManagement/newFacilities/addType'),
892
           component: () => import('@/views/facilitiesEquipment/facilitiesManagement/newFacilities/addType'),
893
           name: 'AddType',
893
           name: 'AddType',
894
           hidden: true,
894
           hidden: true,
895
-          meta: { title: '新增', icon: 'dashboard', affix: false, noCache: true }
895
+          meta: { title: '新增', icon: 'dashboard', affix: false, noCache: true ,relation: 'house'}
896
         },
896
         },
897
 
897
 
898
 
898
 

+ 101 - 80
shanXiPlatform/src/views/basicInformation/personnelStructure.vue

@@ -7,7 +7,9 @@
7
           <el-col :span="12" style="overflow-y: scroll;">
7
           <el-col :span="12" style="overflow-y: scroll;">
8
             <!-- 内容主体 -->
8
             <!-- 内容主体 -->
9
             <el-header style=" padding-left: 0;" height="40px">
9
             <el-header style=" padding-left: 0;" height="40px">
10
-              <div class="header-text"><span class="myspan">人员结构</span> </div>
10
+              <div class="header-text">
11
+                <span class="myspan">人员结构</span>
12
+              </div>
11
             </el-header>
13
             </el-header>
12
             <div class="content">
14
             <div class="content">
13
               <!-- 选择筛选项 -->
15
               <!-- 选择筛选项 -->
@@ -25,7 +27,7 @@
25
                   class="tableItem"
27
                   class="tableItem"
26
                   :data="tableData"
28
                   :data="tableData"
27
                   v-loading="loading"
29
                   v-loading="loading"
28
-                  :header-cell-style="{background:'#f8f8f8'}"
30
+                  :header-cell-style="{ background: '#f8f8f8' }"
29
                   style="width: 100%"
31
                   style="width: 100%"
30
                   border
32
                   border
31
                 >
33
                 >
@@ -85,8 +87,9 @@
85
           <el-col :span="12" style="overflow-y: scroll;">
87
           <el-col :span="12" style="overflow-y: scroll;">
86
             <!-- 侧边栏 -->
88
             <!-- 侧边栏 -->
87
             <el-aside style="width:100%;">
89
             <el-aside style="width:100%;">
88
-              <el-header height="40px" >
89
-                <div class="header-text"><span class="myspan"> 粮库科室结构图</span>
90
+              <el-header height="40px">
91
+                <div class="header-text">
92
+                  <span class="myspan"> 粮库科室结构图</span>
90
                 </div>
93
                 </div>
91
               </el-header>
94
               </el-header>
92
               <div class="imgDepartment">
95
               <div class="imgDepartment">
@@ -103,8 +106,10 @@
103
                   </div>
106
                   </div>
104
                 </div>
107
                 </div>
105
                 <div>
108
                 <div>
106
-                  <el-header height="40px" >
107
-                    <div class="header-text"><span class="myspan">仓储、检验人员职业资格情况</span></div>
109
+                  <el-header height="40px">
110
+                    <div class="header-text">
111
+                      <span class="myspan">仓储、检验人员职业资格情况</span>
112
+                    </div>
108
                   </el-header>
113
                   </el-header>
109
                   <div id="chartProfession"></div>
114
                   <div id="chartProfession"></div>
110
                 </div>
115
                 </div>
@@ -263,77 +268,8 @@ export default {
263
         limit: 10
268
         limit: 10
264
       },
269
       },
265
       xAxisdata: [],
270
       xAxisdata: [],
266
-      seriesdata: [],
271
+      seriesdata: []
267
       // chart 数据设置
272
       // chart 数据设置
268
-      option: {
269
-        title: {
270
-          // text: "仓储、质检人员职业资格情况",
271
-          textStyle: {
272
-            color: "#7d7d7d",
273
-            fontStyle: "normal",
274
-            fontWeight: "900",
275
-            fontSize: "14"
276
-          },
277
-          left: "center"
278
-        },
279
-        tooltip: {
280
-          trigger: "axis",
281
-          axisPointer: {
282
-            // 坐标轴指示器,坐标轴触发有效
283
-            type: "shadow" // 默认设置为直线,可选为 'line' | 'shadow'
284
-          }
285
-        },
286
-        grid: {
287
-          y2: 60
288
-        },
289
-        /* legend:{
290
-          data:['初级','中级','高级','技师','高级技师']
291
-        }, */
292
-        /*         grid:{
293
-          left:'3%',
294
-          right:'4%',
295
-          bottom:'3%',
296
-          containLabel:true
297
-        }, */
298
-        xAxis: {
299
-          type: "category",
300
-          data: this.xAxisdata,
301
-          // data: ["初级", "中级", "高级", "技师", "高级技师"],
302
-          // data: this.xAxisdata,
303
-          axisTick: {
304
-            alignWithLabel: true
305
-          },
306
-          axisLabel: {
307
-            rotate: 60
308
-          }
309
-        },
310
-        yAxis: {
311
-          type: "value"
312
-        },
313
-        series: [
314
-          {
315
-            name: "人数",
316
-            barWidth: "40%",
317
-            data: this.seriesdata,
318
-            // data: [1, 2, 1, 1, 1, 1, null, null],
319
-            type: "bar",
320
-            //修改第一组柱子的颜色
321
-            itemStyle: {
322
-              // barBorderRadius:20,
323
-              color: function(p) {
324
-                var color = [
325
-                  "#F1DE34",
326
-                  "#58CEFF",
327
-                  "#8CCF23",
328
-                  "#FEBB46",
329
-                  "#4FC5BB"
330
-                ]
331
-                return color[p.dataIndex]
332
-              }
333
-            }
334
-          }
335
-        ]
336
-      }
337
     }
273
     }
338
   },
274
   },
339
 
275
 
@@ -513,8 +449,93 @@ export default {
513
         document.getElementById("chartProfession")
449
         document.getElementById("chartProfession")
514
       )
450
       )
515
       // 使用刚指定的配置项和数据显示图标
451
       // 使用刚指定的配置项和数据显示图标
516
-
517
-      myChart.setOption(this.option)
452
+      
453
+      if (this.seriesdata.length == 0) {
454
+        option = {
455
+          title: {
456
+            text: "暂无数据",
457
+            x: "center",
458
+            y: "center",
459
+            textStyle: {
460
+              color: "#65ABE7",
461
+              fontWeight: "normal",
462
+              fontSize: 16
463
+            }
464
+          }
465
+        }
466
+      } else {
467
+        option = {
468
+          title: {
469
+            // text: "仓储、质检人员职业资格情况",
470
+            textStyle: {
471
+              color: "#7d7d7d",
472
+              fontStyle: "normal",
473
+              fontWeight: "900",
474
+              fontSize: "14"
475
+            },
476
+            left: "center"
477
+          },
478
+          tooltip: {
479
+            trigger: "axis",
480
+            axisPointer: {
481
+              // 坐标轴指示器,坐标轴触发有效
482
+              type: "shadow" // 默认设置为直线,可选为 'line' | 'shadow'
483
+            }
484
+          },
485
+          grid: {
486
+            y2: 60
487
+          },
488
+          /* legend:{
489
+          data:['初级','中级','高级','技师','高级技师']
490
+        }, */
491
+          /*         grid:{
492
+          left:'3%',
493
+          right:'4%',
494
+          bottom:'3%',
495
+          containLabel:true
496
+        }, */
497
+          xAxis: {
498
+            type: "category",
499
+            data: this.xAxisdata,
500
+            // data: ["初级", "中级", "高级", "技师", "高级技师"],
501
+            // data: this.xAxisdata,
502
+            axisTick: {
503
+              alignWithLabel: true
504
+            },
505
+            axisLabel: {
506
+              rotate: 60
507
+            }
508
+          },
509
+          yAxis: {
510
+            type: "value",
511
+            min: 3
512
+          },
513
+          series: [
514
+            {
515
+              name: "人数",
516
+              barWidth: "40%",
517
+              data: this.seriesdata,
518
+              // data: [1, 2, 1, 1, 1, 1, null, null],
519
+              type: "bar",
520
+              //修改第一组柱子的颜色
521
+              itemStyle: {
522
+                // barBorderRadius:20,
523
+                color: function(p) {
524
+                  var color = [
525
+                    "#F1DE34",
526
+                    "#58CEFF",
527
+                    "#8CCF23",
528
+                    "#FEBB46",
529
+                    "#4FC5BB"
530
+                  ]
531
+                  return color[p.dataIndex]
532
+                }
533
+              }
534
+            }
535
+          ]
536
+        }
537
+      }
538
+      myChart.setOption(option)
518
     },
539
     },
519
     // 筛选科室
540
     // 筛选科室
520
     handleClick(tab, event) {
541
     handleClick(tab, event) {
@@ -585,7 +606,7 @@ export default {
585
 
606
 
586
 <style lang="scss" scoped>
607
 <style lang="scss" scoped>
587
 .main {
608
 .main {
588
-  padding: 10px 0 30px 10px ;
609
+  padding: 10px 0 30px 10px;
589
   height: calc(100vh - 150px);
610
   height: calc(100vh - 150px);
590
   .el-main {
611
   .el-main {
591
     padding-top: 0;
612
     padding-top: 0;
@@ -609,7 +630,7 @@ export default {
609
     color: #037d41;
630
     color: #037d41;
610
     font-weight: 500;
631
     font-weight: 500;
611
     font-family: Source Han Sans CN;
632
     font-family: Source Han Sans CN;
612
-    .myspan{
633
+    .myspan {
613
       margin-left: 10px;
634
       margin-left: 10px;
614
     }
635
     }
615
   }
636
   }

+ 11 - 2
shanXiPlatform/src/views/basicInformation/policySystem/detail.vue

@@ -6,8 +6,7 @@
6
         {{formData.title}}
6
         {{formData.title}}
7
       </div>
7
       </div>
8
       <div style="text-align:right;margin-top:20px">
8
       <div style="text-align:right;margin-top:20px">
9
-        <span v-if="formData.publishTime">{{formData.publishTime.slice(0,10)}}</span>
10
-        <span v-if="!formData.publishTime">{{formData.publishTime}}</span>
9
+        <span>{{dateFormatValue(formData.publishTime)}}</span>
11
       </div>
10
       </div>
12
       <div style="margin-top:20px">
11
       <div style="margin-top:20px">
13
         <quill-editor
12
         <quill-editor
@@ -206,6 +205,16 @@ export default {
206
       console.log('editor change!', editor, html, text)
205
       console.log('editor change!', editor, html, text)
207
       // this.content = html
206
       // this.content = html
208
     },
207
     },
208
+    dateFormatValue(timedate) {
209
+      if (timedate === null || timedate === undefined) {
210
+        return ""
211
+      } else {
212
+        let year = timedate.slice(0,4)
213
+        let month = timedate.slice(5,7)
214
+        let day = timedate.slice(8,10)
215
+        return (year + '-' + month + '-' + day)
216
+      }
217
+    },
209
     dateFormat(timedate) {
218
     dateFormat(timedate) {
210
       if (timedate === null || timedate === undefined) {
219
       if (timedate === null || timedate === undefined) {
211
         return ""
220
         return ""

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

@@ -3,7 +3,7 @@
3
     <div class="header">
3
     <div class="header">
4
       <el-form :inline="true" :model="query" class="demo-form-inline">
4
       <el-form :inline="true" :model="query" class="demo-form-inline">
5
         <el-form-item label="检测时间:">
5
         <el-form-item label="检测时间:">
6
-          <el-date-picker
6
+          <!-- <el-date-picker
7
             v-model="value2"
7
             v-model="value2"
8
             type="datetimerange"
8
             type="datetimerange"
9
             start-placeholder="开始日期"
9
             start-placeholder="开始日期"
@@ -11,7 +11,16 @@
11
             :default-time="['09:00:00', '18:00:00']"
11
             :default-time="['09:00:00', '18:00:00']"
12
             value-format="yyyy-MM-dd HH:mm:ss"
12
             value-format="yyyy-MM-dd HH:mm:ss"
13
           >
13
           >
14
-          </el-date-picker>
14
+          </el-date-picker> -->
15
+          <el-date-picker
16
+                v-model="value2"
17
+                type="daterange"
18
+                range-separator="至"
19
+                start-placeholder="开始日期"
20
+                end-placeholder="结束日期"
21
+                value-format="yyyy-MM-dd HH:mm"
22
+              >
23
+              </el-date-picker>
15
         </el-form-item>
24
         </el-form-item>
16
         <!--  <el-form-item label="-">
25
         <!--  <el-form-item label="-">
17
           <el-date-picker
26
           <el-date-picker
@@ -327,13 +336,13 @@ export default {
327
 
336
 
328
     //设施种类
337
     //设施种类
329
     getFacilityList() {
338
     getFacilityList() {
330
-      getFacility()
339
+      getFacility(40)
331
         .then(res => {
340
         .then(res => {
332
           if (res.code == 200) {
341
           if (res.code == 200) {
333
             console.log(res, "设施种类")
342
             console.log(res, "设施种类")
334
             // console.log(res.data[2].children,'设备设施种类')
343
             // console.log(res.data[2].children,'设备设施种类')
335
             // 设施种类保存本地,并且tavle中,遍历的时候与其对应一下,显示种类名称
344
             // 设施种类保存本地,并且tavle中,遍历的时候与其对应一下,显示种类名称
336
-            this.facilityKind = res.data[2].children
345
+            this.facilityKind = res.data
337
             console.log(this.facilityKind, "设施种类")
346
             console.log(this.facilityKind, "设施种类")
338
           }
347
           }
339
         })
348
         })

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

@@ -23,15 +23,11 @@
23
             label="序号"
23
             label="序号"
24
             width="50px"
24
             width="50px"
25
           />
25
           />
26
-          <el-table-column
27
-            label="记录时间"
28
-            prop="createDate"
29
-            align="center"
30
-          />
26
+          <el-table-column label="记录时间" prop="createDate" align="center" />
31
 
27
 
32
           <el-table-column label="检查项" prop="enumId" align="center">
28
           <el-table-column label="检查项" prop="enumId" align="center">
33
             <template slot-scope="scope">
29
             <template slot-scope="scope">
34
-              <p v-for="item in facility" :key="item.enumId">
30
+              <p v-for="item in facilityList" :key="item.enumId">
35
                 <span v-if="scope.row.enumId == item.enumId">{{
31
                 <span v-if="scope.row.enumId == item.enumId">{{
36
                   item.enumName
32
                   item.enumName
37
                 }}</span>
33
                 }}</span>
@@ -68,7 +64,7 @@
68
 
64
 
69
           <el-table-column label="检查项" prop="enumId" align="center">
65
           <el-table-column label="检查项" prop="enumId" align="center">
70
             <template slot-scope="scope">
66
             <template slot-scope="scope">
71
-              <p v-for="item in facility" :key="item.enumId">
67
+              <p v-for="item in facilityList" :key="item.enumId">
72
                 <span v-if="scope.row.enumId == item.enumId">{{
68
                 <span v-if="scope.row.enumId == item.enumId">{{
73
                   item.enumName
69
                   item.enumName
74
                 }}</span>
70
                 }}</span>
@@ -119,6 +115,7 @@ import {
119
   getFacility,
115
   getFacility,
120
   getFacilitiyById,
116
   getFacilitiyById,
121
   addFacilitiy,
117
   addFacilitiy,
118
+  editFacilitiy,
122
   checkFacilitiyInfo
119
   checkFacilitiyInfo
123
 } from "@/api/facilitiesEquipment/facilitiesManagement"
120
 } from "@/api/facilitiesEquipment/facilitiesManagement"
124
 export default {
121
 export default {
@@ -134,18 +131,20 @@ export default {
134
       facilityId: "", //设施种类id
131
       facilityId: "", //设施种类id
135
       id: "", // 列表每行id
132
       id: "", // 列表每行id
136
       kind: "",
133
       kind: "",
134
+      checkResult:'',
137
       // 头部下拉选的值
135
       // 头部下拉选的值
138
       // type: "cfss",
136
       // type: "cfss",
139
       type: "", // 1:新增 2:查看 3:修改
137
       type: "", // 1:新增 2:查看 3:修改
140
       checkItems: [],
138
       checkItems: [],
141
       flag: false, // 管理暂存保存切换
139
       flag: false, // 管理暂存保存切换
142
       disabled: false, //查看时单选框不能被点击
140
       disabled: false, //查看时单选框不能被点击
143
-      loading:false,
141
+      loading: false,
144
       //仓房字典数据
142
       //仓房字典数据
145
       hourseDic: {},
143
       hourseDic: {},
146
       // 新增modal
144
       // 新增modal
147
       data1: {
145
       data1: {
148
         equipFacilities: {
146
         equipFacilities: {
147
+          id:'',
149
           checkResult: "", //检查结果(0:绿,1:黄) 1:全部都是是,0:存在否,也就是检查项存在不完好
148
           checkResult: "", //检查结果(0:绿,1:黄) 1:全部都是是,0:存在否,也就是检查项存在不完好
150
           checkState: "", //1:已完成,0:进行中
149
           checkState: "", //1:已完成,0:进行中
151
           checkTime: "",
150
           checkTime: "",
@@ -470,7 +469,7 @@ export default {
470
     this.data1.equipFacilities.depotName = userInfo.depotName
469
     this.data1.equipFacilities.depotName = userInfo.depotName
471
 
470
 
472
     let routeParams = this.$route.query
471
     let routeParams = this.$route.query
473
-    // console.log(routeParams, "routeParams")
472
+    console.log(routeParams, "routeParams")
474
     this.type = routeParams.type
473
     this.type = routeParams.type
475
     this.id = routeParams.pid
474
     this.id = routeParams.pid
476
     // this.id = routeParams.data.id
475
     // this.id = routeParams.data.id
@@ -508,27 +507,12 @@ export default {
508
   methods: {
507
   methods: {
509
     // 获取设施类型
508
     // 获取设施类型
510
     getFacilityList() {
509
     getFacilityList() {
511
-      getFacility()
510
+      getFacilitiyById(this.kind)
512
         .then(res => {
511
         .then(res => {
513
-          // console.log(res, "设施字典表")
514
-          this.facilityList = res.data[2].children
515
-
516
-          if (this.kind == 41) {
517
-            this.facility = this.facilityList[0].children
518
-            // console.log(this.facility, "仓房设施")
519
-          } else if (this.kind == 42) {
520
-            this.facility = this.facilityList[1].children
521
-            // console.log(this.facility, "消防设施")
522
-          } else if (this.kind == 43) {
523
-            this.facility = this.facilityList[2].children
524
-            // console.log(this.facility, "计量设施")
525
-          } else if (this.kind == 44) {
526
-            this.facility = this.facilityList[3].children
527
-            // console.log(this.facility, "药品库设施")
528
-          } else if (this.kind == 45) {
529
-            this.facility = this.facilityList[4].children
530
-            // console.log(this.facility, "配电室设施")
531
-          }
512
+          console.log(res, "设施字典表")
513
+          this.facilityList = res.data
514
+          console.log(this.facilityList, "this.facilityList.....")
515
+
532
           // console.log(this.facilityList, "this.facilityList.....")
516
           // console.log(this.facilityList, "this.facilityList.....")
533
         })
517
         })
534
         .catch(err => {
518
         .catch(err => {
@@ -615,32 +599,41 @@ export default {
615
 
599
 
616
     //改变选项的值时
600
     //改变选项的值时
617
     radioChange(index, row) {
601
     radioChange(index, row) {
618
-      // console.log(row, "row00000000", index, "index")
602
+      console.log(row, "row111", index, "index")
619
       if (this.type == 1) {
603
       if (this.type == 1) {
620
         //新增时
604
         //新增时
621
         row.createDate = getNowFormatDateone()
605
         row.createDate = getNowFormatDateone()
622
         // console.log(row.createDate, "createDate")
606
         // console.log(row.createDate, "createDate")
623
         // console.log(this.checkItems, "是否被选中")
607
         // console.log(this.checkItems, "是否被选中")
624
         var num = 0
608
         var num = 0
625
-        this.checkItems.map((item, index) => {
609
+
610
+        if (row.isCheck == 0) {
611
+            // 有一项点击否,结果就是1(黄)
612
+            this.data1.equipFacilities.checkResult = 1
613
+            this.checkResult = 1
614
+          } else{
615
+            // 有一项点击是,结果就是0(绿)
616
+            this.data1.equipFacilities.checkResult = 0
617
+            this.checkResult = 0
618
+          }
619
+        this.checkItems.forEach((item, index) => {
626
           Object.assign(
620
           Object.assign(
627
             item,
621
             item,
628
             { operationTime: item.createDate },
622
             { operationTime: item.createDate },
629
             { checkEnumId: item.enumId }
623
             { checkEnumId: item.enumId }
630
           )
624
           )
631
-          if (item.isCheck === 0) {
632
-            // 有一项点击否,结果就是1(黄)
633
-            this.data1.equipFacilities.checkResult = 1
634
-          } else {
635
-            // 有一项点击否,结果就是0(绿)
636
-            this.data1.equipFacilities.checkResult = 0
637
-          }
638
 
625
 
639
-          if (item.isCheck === 1 || item.isCheck === 0) {
626
+
627
+          if (item.isCheck == 1 || item.isCheck == 0) {
640
             num += 1
628
             num += 1
641
             // console.log(this.checkItems[i], num, "该项被选中了")
629
             // console.log(this.checkItems[i], num, "该项被选中了")
642
           }
630
           }
643
 
631
 
632
+          console.log(this.checkItems, "this.checkItems111")
633
+          console.log(
634
+            this.data1.equipFacilities.checkResult,
635
+            "this.data1.equipFacilities.checkResult"
636
+          )
644
           if (num == this.checkItems.length) {
637
           if (num == this.checkItems.length) {
645
             this.data1.equipFacilities.checkState = 1
638
             this.data1.equipFacilities.checkState = 1
646
             this.flag = true
639
             this.flag = true
@@ -685,21 +678,24 @@ export default {
685
         row.operationTime = getNowFormatDateone()
678
         row.operationTime = getNowFormatDateone()
686
         // row.operationTime = getNowFormatDateone()
679
         // row.operationTime = getNowFormatDateone()
687
         var num = 0
680
         var num = 0
688
-        this.checkItems.map((item, index) => {
689
-          Object.assign(item, { checkEnumId: item.enumId })
690
-          if (item.isCheck === 0) {
681
+
682
+        if (row.isCheck == 0) {
691
             // 有一项点击否,结果就是1(黄)
683
             // 有一项点击否,结果就是1(黄)
692
             this.data1.equipFacilities.checkResult = 1
684
             this.data1.equipFacilities.checkResult = 1
693
-          } else {
694
-            // 有一项点击否,结果就是0(绿)
685
+            this.checkResult = 1
686
+          } else{
687
+            // 有一项点击是,结果就是0(绿)
695
             this.data1.equipFacilities.checkResult = 0
688
             this.data1.equipFacilities.checkResult = 0
689
+            this.checkResult = 0
696
           }
690
           }
697
-
698
-          if (item.isCheck === 1 || item.isCheck === 0) {
691
+        this.checkItems.forEach((item, index) => {
692
+          Object.assign(item, { checkEnumId: item.enumId })
693
+          if (item.isCheck == 1 || item.isCheck == 0) {
699
             num += 1
694
             num += 1
700
             // console.log(this.checkItems[i], num, "该项被选中了")
695
             // console.log(this.checkItems[i], num, "该项被选中了")
701
           }
696
           }
702
-
697
+          console.log(this.checkItems, "this.checkItems111")
698
+          console.log(this.checkItems.length, "this.checkItems222")
703
           if (num == this.checkItems.length) {
699
           if (num == this.checkItems.length) {
704
             this.data1.equipFacilities.checkState = 1
700
             this.data1.equipFacilities.checkState = 1
705
             this.flag = true
701
             this.flag = true
@@ -743,7 +739,7 @@ export default {
743
     },
739
     },
744
     // 保存
740
     // 保存
745
     btnSave() {
741
     btnSave() {
746
-      this.loading =true
742
+      this.loading = true
747
       this.data1.equipFacilities.hname = this.houseDic[
743
       this.data1.equipFacilities.hname = this.houseDic[
748
         this.data1.equipFacilities.hid
744
         this.data1.equipFacilities.hid
749
       ]
745
       ]
@@ -757,26 +753,48 @@ export default {
757
         this.data1.equipFacilitiesChildren,
753
         this.data1.equipFacilitiesChildren,
758
         "this.data1.equipFacilitiesChildren111"
754
         "this.data1.equipFacilitiesChildren111"
759
       )
755
       )
760
-      // console.log(this.data1, "data1...........")
761
-      addFacilitiy(this.data1)
762
-
763
-        .then(res => {
764
-          console.log(res, "新增成功")
765
-          if (res.code == 200) {
756
+      if (this.type == 1) {
757
+        console.log("这是新增")
758
+        addFacilitiy(this.data1)
759
+          .then(res => {
760
+            console.log(res, "新增成功")
761
+            if (res.code == 200) {
762
+              this.loading = false
763
+              this.$message({
764
+                message: "新增成功!",
765
+                type: "success"
766
+              })
767
+              this.$router.push({
768
+                path: "/facilitiesEquipment/facilitiesManagement/newFacilities"
769
+              })
770
+            }
771
+          })
772
+          .catch(err => {
773
+            this.loading = false
774
+            console.log(err, "新增失败")
775
+          })
776
+      } else if (this.type == 3) {
777
+        console.log("这是修改")
778
+        this.data1.equipFacilities.id = this.id
779
+        console.log(this.data1,'this.data1')
780
+        editFacilitiy(this.data1).then(res =>{
781
+          console.log(res,'res....')
782
+          if(res.code == 200){
766
             this.loading = false
783
             this.loading = false
767
-            this.$message({
768
-              message: "新增成功!",
769
-              type: "success"
770
-            })
771
-            this.$router.push({
772
-              path: "/facilitiesEquipment/facilitiesManagement/newFacilities"
773
-            })
784
+              this.$message({
785
+                message: "修改成功!",
786
+                type: "success"
787
+              })
788
+              this.$router.push({
789
+                path: "/facilitiesEquipment/facilitiesManagement/allFacilities"
790
+              })
774
           }
791
           }
775
-        })
776
-        .catch(err => {
792
+        }).catch(err =>{
777
           this.loading = false
793
           this.loading = false
778
-          console.log(err, "新增失败")
794
+          console.log(err)
779
         })
795
         })
796
+      }
797
+      // console.log(this.data1, "data1...........")
780
     },
798
     },
781
     // 返回按钮
799
     // 返回按钮
782
     goBack() {
800
     goBack() {

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

@@ -44,14 +44,15 @@
44
         align="center"
44
         align="center"
45
       >
45
       >
46
         <template slot-scope="scope">
46
         <template slot-scope="scope">
47
+
47
           <p
48
           <p
48
-            v-if="scope.row.checkResult == 1"
49
+            v-if="scope.row.checkResult == 0"
49
             style="height:45px;line-height:45px;margin:0;padding-top:7px;"
50
             style="height:45px;line-height:45px;margin:0;padding-top:7px;"
50
           >
51
           >
51
             <span class="colorspano"></span>
52
             <span class="colorspano"></span>
52
           </p>
53
           </p>
53
-          <p
54
-            v-if="scope.row.checkResult == 0"
54
+           <p
55
+            v-if="scope.row.checkResult == 1"
55
             style="height:45px;line-height:45px;margin:0;padding-top:7px;"
56
             style="height:45px;line-height:45px;margin:0;padding-top:7px;"
56
           >
57
           >
57
             <span class="colorspant"></span>
58
             <span class="colorspant"></span>
@@ -73,7 +74,7 @@
73
               (scope.row.kind == 42 && $tools.IsPermission(319)) ||
74
               (scope.row.kind == 42 && $tools.IsPermission(319)) ||
74
               (scope.row.kind == 43 && $tools.IsPermission(321)) ||
75
               (scope.row.kind == 43 && $tools.IsPermission(321)) ||
75
               (scope.row.kind == 44 && $tools.IsPermission(322)) ||
76
               (scope.row.kind == 44 && $tools.IsPermission(322)) ||
76
-              (scope.row.kind == 45&& $tools.IsPermission(324))
77
+              (scope.row.kind == 45 && $tools.IsPermission(324))
77
 
78
 
78
             "
79
             "
79
             >新增</el-button
80
             >新增</el-button
@@ -142,14 +143,14 @@ export default {
142
   methods: {
143
   methods: {
143
     //设施种类
144
     //设施种类
144
     getFacilityList() {
145
     getFacilityList() {
145
-      getFacility()
146
+      getFacility(40)
146
         .then(res => {
147
         .then(res => {
147
           if (res.code == 200) {
148
           if (res.code == 200) {
148
             console.log(res, "设施种类")
149
             console.log(res, "设施种类")
149
             // console.log(res.data[2].children,'设备设施种类')
150
             // console.log(res.data[2].children,'设备设施种类')
150
             // 设施种类保存本地,并且tavle中,遍历的时候与其对应一下,显示种类名称
151
             // 设施种类保存本地,并且tavle中,遍历的时候与其对应一下,显示种类名称
151
-            this.facilityKind = res.data[2].children
152
-            // console.log(this.facilityKind,'设施种类')
152
+            this.facilityKind = res.data
153
+            // console.log(this.facilityKind,'设施种类00000000')
153
           }
154
           }
154
         })
155
         })
155
         .catch(err => {
156
         .catch(err => {

+ 3 - 3
shanXiPlatform/src/views/outsideHouse/rentWarehouse/gRenthouse.vue

@@ -3,7 +3,7 @@
3
         <div id="mainRight">
3
         <div id="mainRight">
4
             <div>
4
             <div>
5
                 <el-form :inline="true">
5
                 <el-form :inline="true">
6
-                     <el-form-item label="检查时间:" label-width="80px">
6
+                    <el-form-item label="检查时间:" label-width="80px">
7
                         <el-date-picker @change='timechange' v-model="arrTime" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
7
                         <el-date-picker @change='timechange' v-model="arrTime" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
8
                         </el-date-picker>
8
                         </el-date-picker>
9
                     </el-form-item>
9
                     </el-form-item>
@@ -123,8 +123,8 @@ export default {
123
             this.statTime = val[0]
123
             this.statTime = val[0]
124
             this.endTime = val[1]
124
             this.endTime = val[1]
125
             this.pageParam.condition =
125
             this.pageParam.condition =
126
-                "{mType:1 , companyId: '" +
127
-                val +
126
+                "{mType:1 , companyId:  '" +
127
+                this.companyId +
128
                 "' , statTime: '" +
128
                 "' , statTime: '" +
129
                 this.statTime +
129
                 this.statTime +
130
                 "' , endTime:'" +
130
                 "' , endTime:'" +

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

@@ -10,7 +10,7 @@
10
                 >起始日期时刻为 12:00:00,结束日期时刻为 08:00:00</span
10
                 >起始日期时刻为 12:00:00,结束日期时刻为 08:00:00</span
11
               > -->
11
               > -->
12
               <span class="demonstration">检测时间:</span>
12
               <span class="demonstration">检测时间:</span>
13
-              <el-date-picker
13
+              <!-- <el-date-picker
14
                 v-model="value2"
14
                 v-model="value2"
15
                 type="datetimerange"
15
                 type="datetimerange"
16
                 align="right"
16
                 align="right"
@@ -19,6 +19,15 @@
19
                 :default-time="['00:00:00', '12:00:00']"
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"
21
               >
21
               >
22
+              </el-date-picker> -->
23
+              <el-date-picker
24
+                v-model="value2"
25
+                type="daterange"
26
+                range-separator="至"
27
+                start-placeholder="开始日期"
28
+                end-placeholder="结束日期"
29
+                value-format="yyyy-MM-dd HH:mm"
30
+              >
22
               </el-date-picker>
31
               </el-date-picker>
23
             </div>
32
             </div>
24
           </div>
33
           </div>
@@ -42,9 +51,21 @@
42
         <el-col :span="5"
51
         <el-col :span="5"
43
           ><div class="grid-content bg-purple">
52
           ><div class="grid-content bg-purple">
44
             <div class="btns">
53
             <div class="btns">
45
-              <el-button type="info" plain @click="clear" class="iconfont iconclear"> 清空 </el-button>
46
-              <el-button icon="el-icon-search" plain type="success" @click="handleQuery">查询</el-button>
47
-
54
+              <el-button
55
+                type="info"
56
+                plain
57
+                @click="clear"
58
+                class="iconfont iconclear"
59
+              >
60
+                清空
61
+              </el-button>
62
+              <el-button
63
+                icon="el-icon-search"
64
+                plain
65
+                type="success"
66
+                @click="handleQuery"
67
+                >查询</el-button
68
+              >
48
             </div>
69
             </div>
49
           </div>
70
           </div>
50
         </el-col>
71
         </el-col>
@@ -52,14 +73,18 @@
52
     </div>
73
     </div>
53
     <!-- 表格区域 -->
74
     <!-- 表格区域 -->
54
     <div class="table">
75
     <div class="table">
55
-      <el-table border :header-cell-style="{background:'#f8f8f8'}" :data="data2" highlight-current-row>
76
+      <el-table
77
+        border
78
+        :header-cell-style="{ background: '#f8f8f8' }"
79
+        :data="data2"
80
+        highlight-current-row
81
+      >
56
         <el-table-column
82
         <el-table-column
57
           type="index"
83
           type="index"
58
           align="center"
84
           align="center"
59
           label="序号"
85
           label="序号"
60
           width="50px"
86
           width="50px"
61
           :index="indexMethod"
87
           :index="indexMethod"
62
-
63
         >
88
         >
64
         </el-table-column>
89
         </el-table-column>
65
         <el-table-column prop="checkTime" label="记录时间" align="center" />
90
         <el-table-column prop="checkTime" label="记录时间" align="center" />
@@ -71,24 +96,33 @@
71
           width="100px"
96
           width="100px"
72
         >
97
         >
73
           <template slot-scope="scope">
98
           <template slot-scope="scope">
74
-            <div class="yellow" v-if='scope.row.anomalousStatus == "1"'>有异常</div>
75
-            <div class="green" v-if='scope.row.anomalousStatus !== "1"'></div>
99
+            <div class="yellow" v-if="scope.row.anomalousStatus == '1'"></div>
100
+            <div class="green" v-if="scope.row.anomalousStatus !== '1'"></div>
76
           </template>
101
           </template>
77
         </el-table-column>
102
         </el-table-column>
78
         <el-table-column prop="recordStatus" label="状态" align="center">
103
         <el-table-column prop="recordStatus" label="状态" align="center">
79
           <template slot-scope="scope">
104
           <template slot-scope="scope">
80
-            <div>
81
-              {{
82
-                scope.row.recordStatus == "0" ||
83
-                scope.row.recordStatus == null ||
84
-                scope.row.recordStatus == ""
85
-                  ? "进行中"
86
-                  : "已完成"
87
-              }}
88
-            </div>
105
+            <div
106
+              disable-transitions
107
+              v-if="
108
+                scope.row.recordStatus == '' || scope.row.recordStatus == null
109
+              "
110
+            ></div>
111
+            <p
112
+              v-if="scope.row.recordStatus == 1"
113
+              style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
114
+            >
115
+              <span>已完成</span>
116
+            </p>
117
+            <p
118
+              v-if="scope.row.recordStatus == 0"
119
+              style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
120
+            >
121
+              <span>进行中</span>
122
+            </p>
89
           </template>
123
           </template>
90
         </el-table-column>
124
         </el-table-column>
91
-<!--         <el-table-column prop="checkList" label="异常项" align="center">
125
+        <!--         <el-table-column prop="checkList" label="异常项" align="center">
92
           <template slot-scope="scope">
126
           <template slot-scope="scope">
93
             <div>
127
             <div>
94
               {{ scope.row.waterAbnormal == "1" ? "水分检测异常" : "" }}
128
               {{ scope.row.waterAbnormal == "1" ? "水分检测异常" : "" }}
@@ -109,7 +143,10 @@
109
             <el-button
143
             <el-button
110
               size="mini"
144
               size="mini"
111
               @click="handleCheck(1, scope.$index, scope.row)"
145
               @click="handleCheck(1, scope.$index, scope.row)"
112
-              v-if="(scope.row.checkPerson == '保管员每周检查粮情' && $tools.IsPermission(134))"
146
+              v-if="
147
+                scope.row.checkPerson == '保管员每周检查粮情' &&
148
+                  $tools.IsPermission(134)
149
+              "
113
               type="detailbtn"
150
               type="detailbtn"
114
               >查看</el-button
151
               >查看</el-button
115
             >
152
             >
@@ -117,15 +154,28 @@
117
                  v-if="scope.row.uid <= 2" -->
154
                  v-if="scope.row.uid <= 2" -->
118
             <el-button
155
             <el-button
119
               size="mini"
156
               size="mini"
120
-               type="editbtn"
157
+              type="editbtn"
121
               @click="handleEdit(3, scope.$index, scope.row)"
158
               @click="handleEdit(3, scope.$index, scope.row)"
122
-              v-if="(scope.row.checkPerson == '保管员每周检查粮情' && $tools.IsPermission(135))"
159
+              v-if="
160
+                scope.row.checkPerson == '保管员每周检查粮情' &&
161
+                  scope.row.recordStatus == 0 &&
162
+                  $tools.IsPermission(135)
163
+              "
123
               >修改</el-button
164
               >修改</el-button
124
             >
165
             >
125
             <el-button
166
             <el-button
126
               size="mini"
167
               size="mini"
127
-               type="dangerbtn"
128
-               v-if="$tools.IsPermission(136)"
168
+              type="dangerbtn"
169
+              v-if="
170
+                (scope.row.checkPerson == '保管员每周检查粮情' &&
171
+                  $tools.IsPermission(332)) ||
172
+                  (scope.row.checkPerson == '主管科长每2周检查粮情' &&
173
+                    $tools.IsPermission(333)) ||
174
+                  (scope.row.checkPerson == '分管副总每月检查粮情' &&
175
+                    $tools.IsPermission(334)) ||
176
+                  (scope.row.checkPerson == '总经理每季检查粮情' &&
177
+                    $tools.IsPermission(335))
178
+              "
129
               @click="handleDelete(scope.$index, scope.row)"
179
               @click="handleDelete(scope.$index, scope.row)"
130
               >删除</el-button
180
               >删除</el-button
131
             >
181
             >
@@ -166,7 +216,7 @@ export default {
166
       activeName: "AllGrain",
216
       activeName: "AllGrain",
167
       // 全部粮情检查记录数据
217
       // 全部粮情检查记录数据
168
       data2: [],
218
       data2: [],
169
-      depotId:this.$store.state.depotId,
219
+      depotId: this.$store.state.depotId,
170
       houseId: this.$store.state.houseId,
220
       houseId: this.$store.state.houseId,
171
       // select 选项数据
221
       // select 选项数据
172
       options: [
222
       options: [
@@ -186,11 +236,10 @@ export default {
186
           value: "选项4",
236
           value: "选项4",
187
           label: "总经理每季检查粮情"
237
           label: "总经理每季检查粮情"
188
         }
238
         }
189
-
190
       ],
239
       ],
191
       check_person: "",
240
       check_person: "",
192
       value2: "",
241
       value2: "",
193
-      type:'',//判断是否从更多纪录跳转过来
242
+      type: "", //判断是否从更多纪录跳转过来
194
       // 分页
243
       // 分页
195
       total: 10,
244
       total: 10,
196
       listLoading: true,
245
       listLoading: true,
@@ -201,25 +250,23 @@ export default {
201
       allGrainData: {}
250
       allGrainData: {}
202
     }
251
     }
203
   },
252
   },
204
-  created() {
205
-
206
-  },
253
+  created() {},
207
   mounted() {
254
   mounted() {
208
     this.activeName = this.$route.name
255
     this.activeName = this.$route.name
209
     let routeParams = this.$route.query
256
     let routeParams = this.$route.query
210
     // console.log(routeParams,'routerouteParams')
257
     // console.log(routeParams,'routerouteParams')
211
-    console.log(routeParams.type,'type')
258
+    console.log(routeParams.type, "type")
259
+    console.log(this.data2, "this.data2")
212
     this.type = routeParams.type
260
     this.type = routeParams.type
213
-    if(this.type == ''|| this.type ==null || this.type ==undefined ){
261
+    if (this.type == "" || this.type == null || this.type == undefined) {
214
       this.getList()
262
       this.getList()
215
-    }else if(this.type ==5){
216
-      console.log(routeParams.data.checkPerson,'routeParams.data.checkPerson')
263
+    } else if (this.type == 5) {
264
+      console.log(routeParams.data.checkPerson, "routeParams.data.checkPerson")
217
       this.check_person = routeParams.data.checkPerson
265
       this.check_person = routeParams.data.checkPerson
218
       this.handleQuery()
266
       this.handleQuery()
219
     }
267
     }
220
-
221
   },
268
   },
222
-   computed: {
269
+  computed: {
223
     HouseId() {
270
     HouseId() {
224
       return this.$store.state.houseId
271
       return this.$store.state.houseId
225
     }
272
     }
@@ -266,8 +313,8 @@ export default {
266
         // check_person: "科长每两周检查粮情",
313
         // check_person: "科长每两周检查粮情",
267
         check_start_time: this.value2[0],
314
         check_start_time: this.value2[0],
268
         check_end_time: this.value2[1],
315
         check_end_time: this.value2[1],
269
-        houseId:this.houseId,
270
-        depotId:this.depotId
316
+        houseId: this.houseId,
317
+        depotId: this.depotId
271
       }
318
       }
272
       // let conditions = JSON.stringify(condition)
319
       // let conditions = JSON.stringify(condition)
273
 
320
 
@@ -297,7 +344,7 @@ export default {
297
       console.log(this.listQuery, "分页")
344
       console.log(this.listQuery, "分页")
298
       this.getList()
345
       this.getList()
299
     },
346
     },
300
-     //切换分页序号递增
347
+    //切换分页序号递增
301
     indexMethod(index) {
348
     indexMethod(index) {
302
       let curpage = this.listQuery.page //单前页码
349
       let curpage = this.listQuery.page //单前页码
303
       let limitpage = this.listQuery.limit //每页条数
350
       let limitpage = this.listQuery.limit //每页条数
@@ -309,7 +356,7 @@ export default {
309
       // this.allGrainData.splice(a, 1)
356
       // this.allGrainData.splice(a, 1)
310
 
357
 
311
       this.$confirm("确定删除该项记录?", "提示", {
358
       this.$confirm("确定删除该项记录?", "提示", {
312
-        confirmButtonClass:'el-button--success is-plain',
359
+        confirmButtonClass: "el-button--success is-plain",
313
         confirmButtonText: "确定",
360
         confirmButtonText: "确定",
314
         cancelButtonText: "取消",
361
         cancelButtonText: "取消",
315
         type: "warning"
362
         type: "warning"
@@ -367,7 +414,7 @@ export default {
367
           break
414
           break
368
       }
415
       }
369
     },
416
     },
370
-  /*   handletree(){
417
+    /*   handletree(){
371
       this.$router.push("/grainCheck/treeStructure")
418
       this.$router.push("/grainCheck/treeStructure")
372
     }, */
419
     }, */
373
 
420
 
@@ -399,14 +446,12 @@ export default {
399
 }
446
 }
400
 .el-table {
447
 .el-table {
401
   margin-top: 15px;
448
   margin-top: 15px;
402
-
403
-
404
 }
449
 }
405
 .el-pagination {
450
 .el-pagination {
406
-      text-align: right;
407
-      margin-top: 20px;
408
-      margin-right: 15px;
409
-    }
451
+  text-align: right;
452
+  margin-top: 20px;
453
+  margin-right: 15px;
454
+}
410
 .demonstration {
455
 .demonstration {
411
   font-size: 15px;
456
   font-size: 15px;
412
   font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
457
   font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
@@ -414,21 +459,20 @@ export default {
414
 .yellow {
459
 .yellow {
415
   // width: 100px;
460
   // width: 100px;
416
   display: block;
461
   display: block;
417
-  height:25px;
418
-  background-color:#E3A512;
462
+  height: 25px;
463
+  background-color: #e3a512;
419
   color: azure;
464
   color: azure;
420
   border-radius: 5px;
465
   border-radius: 5px;
421
   // text-align: center;
466
   // text-align: center;
422
-  font-size:13px;
467
+  font-size: 13px;
423
 }
468
 }
424
-.green{
469
+.green {
425
   display: block;
470
   display: block;
426
   // width: 80%;
471
   // width: 80%;
427
   height: 25px;
472
   height: 25px;
428
-  background-color: #037D41;
473
+  background-color: #037d41;
429
   color: #fff;
474
   color: #fff;
430
-  border-radius:5px;
431
-  font-size:13px;
432
-
475
+  border-radius: 5px;
476
+  font-size: 13px;
433
 }
477
 }
434
 </style>
478
 </style>

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

@@ -466,7 +466,8 @@ export default {
466
     handleCurrentChange() {},
466
     handleCurrentChange() {},
467
     // 通过判断单选按钮的选择,弹出异常表单
467
     // 通过判断单选按钮的选择,弹出异常表单
468
     showClick(index, val) {
468
     showClick(index, val) {
469
-      // console.log(index,'-index',val,'--val....')
469
+      console.log(this.tbdata,'this.tbdata')
470
+      console.log(index,'-index',val,'--val....')
470
       let time = getDateTimeNow()
471
       let time = getDateTimeNow()
471
       this.tbdata[index].createTime = time
472
       this.tbdata[index].createTime = time
472
       // 动态的把当前检查项作为对象名称保存到checkDescribe
473
       // 动态的把当前检查项作为对象名称保存到checkDescribe
@@ -474,6 +475,23 @@ export default {
474
         choose: this.tbdata[index].whether.radio,
475
         choose: this.tbdata[index].whether.radio,
475
         time: this.tbdata[index].createTime
476
         time: this.tbdata[index].createTime
476
       }
477
       }
478
+     if (
479
+          this.tbdata[6].fieldValue == "pest_abnormal"  && this.tbdata[6].whether.radio == 1 ||
480
+          this.tbdata[7].fieldValue == "water_abnormal" && this.tbdata[7].whether.radio == 1 ||
481
+          this.tbdata[8].fieldValue == "grain_abnormal" && this.tbdata[8].whether.radio == 1
482
+        ) {
483
+          this.data3.anomalousStatus = 1
484
+          console.log(this.data3.anomalousStatus,'异常触发')
485
+        }else if(
486
+          (this.tbdata[6].fieldValue == "pest_abnormal"  && this.tbdata[6].whether.radio == 0) &&
487
+          (this.tbdata[7].fieldValue == "water_abnormal" && this.tbdata[7].whether.radio == 0) &&
488
+          (this.tbdata[8].fieldValue == "grain_abnormal" && this.tbdata[8].whether.radio == 0)
489
+        ){
490
+          this.data3.anomalousStatus = 0
491
+          console.log(this.data3.anomalousStatus,'this.data3.anomalousStatus')
492
+
493
+        }
494
+
477
       // console.log(this.data3.checkDescribe,'this.data3.checkDescribe....')
495
       // console.log(this.data3.checkDescribe,'this.data3.checkDescribe....')
478
       let len = Object.getOwnPropertyNames(this.data3.checkDescribe).length - 1
496
       let len = Object.getOwnPropertyNames(this.data3.checkDescribe).length - 1
479
       // console.log(len,'len............')
497
       // console.log(len,'len............')
@@ -498,14 +516,7 @@ export default {
498
           // console.log("进了粮情异常表单")
516
           // console.log("进了粮情异常表单")
499
           this.dialogFormVisible2 = true
517
           this.dialogFormVisible2 = true
500
         }
518
         }
501
-        if (
502
-          val.fieldValue == "pest_abnormal" ||
503
-          val.fieldValue == "water_abnormal" ||
504
-          val.fieldValue == "grain_abnormal"
505
-        ) {
506
-          this.data3.anomalousStatus = "1"
507
-          // console.log(this.data3.anomalousStatus,'异常触发')
508
-        }
519
+
509
       }
520
       }
510
       //判断异常项是否被选中是,选中则改变异常状态
521
       //判断异常项是否被选中是,选中则改变异常状态
511
     },
522
     },

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

@@ -46,13 +46,13 @@
46
               v-if="scope.row.recordStatus == '1'"
46
               v-if="scope.row.recordStatus == '1'"
47
               style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
47
               style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
48
             >
48
             >
49
-              <span class="colorspano">已完成</span>
49
+              <span>已完成</span>
50
             </p>
50
             </p>
51
             <p
51
             <p
52
               v-if="scope.row.recordStatus == '0'"
52
               v-if="scope.row.recordStatus == '0'"
53
               style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
53
               style="height:45px;line-height:45px;margin:0 ; padding-top:7px;"
54
             >
54
             >
55
-              <span class="colorspant">进行中</span>
55
+              <span>进行中</span>
56
             </p>
56
             </p>
57
           </template>
57
           </template>
58
         </el-table-column>
58
         </el-table-column>

+ 13 - 0
shanXiPlatform/src/views/safeProduction/allSafe/index.vue

@@ -262,6 +262,19 @@ export default {
262
           })
262
           })
263
         })
263
         })
264
     },
264
     },
265
+    dateFormatValue(timedate) {
266
+      if (timedate === null || timedate === undefined) {
267
+        return ""
268
+      } else {
269
+        let year = timedate.slice(0,4)
270
+        let month = timedate.slice(5,7)
271
+        let day = timedate.slice(8,10)
272
+        let hours = timedate.slice(11,13)
273
+        let minutes = timedate.slice(14,16)
274
+        let seconds = timedate.slice(17,19)
275
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
276
+      }
277
+    },
265
     dateFormat(timedate) {
278
     dateFormat(timedate) {
266
       if (timedate === null || timedate === undefined) {
279
       if (timedate === null || timedate === undefined) {
267
         return ""
280
         return ""

+ 9 - 60
shanXiPlatform/src/views/safeProduction/newSafe/detail.vue

@@ -9,9 +9,9 @@
9
       </div>
9
       </div>
10
       <el-table border stripe :data="formData.detailsList" highlight-current-row>
10
       <el-table border stripe :data="formData.detailsList" highlight-current-row>
11
         <el-table-column  type="index"  align="center"  label="序号"  width="50px"/>
11
         <el-table-column  type="index"  align="center"  label="序号"  width="50px"/>
12
-        <el-table-column prop="detailTime" label="记录时间" align="center"  width='200px'>
12
+        <el-table-column prop="detailTime" label="记录时间" align="center"  width='250px'>
13
           <template slot-scope="scope">
13
           <template slot-scope="scope">
14
-            <span>{{dateFormat(scope.row.detailTime)}}</span>
14
+            <span>{{scope.row.detailTime}}</span>
15
           </template>
15
           </template>
16
         </el-table-column>
16
         </el-table-column>
17
         <el-table-column prop="title" label="标题" align="center" />
17
         <el-table-column prop="title" label="标题" align="center" />
@@ -285,64 +285,13 @@ export default {
285
       if (timedate === null || timedate === undefined) {
285
       if (timedate === null || timedate === undefined) {
286
         return ""
286
         return ""
287
       } else {
287
       } else {
288
-        let arr
289
-        // 首先对日期进行拆解,获得日期字符串
290
-        if (timedate.indexOf("T") > -1) {
291
-          arr = timedate.split("T")
292
-        } else {
293
-          arr = timedate.split(" ")
294
-        }
295
-        var d = arr[0]
296
-        var darr = d.split("-")
297
-        var t = arr[1]
298
-        var tarr = t.split(".000")
299
-        var marr = tarr[0].split(":")
300
-        var dd =
301
-          parseInt(darr[0]) +
302
-          "/" +
303
-          parseInt(darr[1]) +
304
-          "/" +
305
-          parseInt(darr[2]) +
306
-          " " +
307
-          parseInt(marr[0]) +
308
-          ":" +
309
-          parseInt(marr[1]) +
310
-          ":" +
311
-          parseInt(marr[2])
312
-
313
-        const date = new Date(Date.parse(dd))
314
-        date.setTime(date.setHours(date.getHours() + 8))
315
-
316
-        var year = date.getFullYear()
317
-        /* 在日期格式中,月份是从0开始的,因此要加0
318
-         * 使用三元表达式在小于10的前面加0,以达到格式统一  如 09:11:05
319
-         * */
320
-        var month =
321
-          date.getMonth() + 1 < 10
322
-            ? "0" + (date.getMonth() + 1)
323
-            : date.getMonth() + 1
324
-        var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate()
325
-        var hours =
326
-          date.getHours() < 10 ? "0" + date.getHours() : date.getHours()
327
-        var minutes =
328
-          date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()
329
-        var seconds =
330
-          date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds()
331
-        // 拼接
332
-        return (
333
-          year +
334
-          "-" +
335
-          month +
336
-          "-" +
337
-          day +
338
-          " " +
339
-          hours +
340
-          ":" +
341
-          minutes +
342
-          ":" +
343
-          seconds
344
-        )
345
-        // return (year + '-' + month + '-' + day)
288
+        let year = timedate.slice(0,4)
289
+        let month = timedate.slice(5,7)
290
+        let day = timedate.slice(8,10)
291
+        let hours = timedate.slice(11,13)
292
+        let minutes = timedate.slice(14,16)
293
+        let seconds = timedate.slice(17,19)
294
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
346
       }
295
       }
347
     },
296
     },
348
   }
297
   }

+ 13 - 1
shanXiPlatform/src/views/safeProduction/newSafe/index.vue

@@ -15,7 +15,6 @@
15
             <span>{{scope.row.inspecTime}}</span>
15
             <span>{{scope.row.inspecTime}}</span>
16
           </template>
16
           </template>
17
         </el-table-column>
17
         </el-table-column>
18
-        
19
         <el-table-column prop="status" label="状态" align="center" width='100px'>
18
         <el-table-column prop="status" label="状态" align="center" width='100px'>
20
           <template slot-scope="scope">
19
           <template slot-scope="scope">
21
             <div  disable-transitions  v-if="scope.row.status == '' || scope.row.status == null"></div>
20
             <div  disable-transitions  v-if="scope.row.status == '' || scope.row.status == null"></div>
@@ -165,6 +164,19 @@ export default {
165
         query: { inspecType: row.inspecType }
164
         query: { inspecType: row.inspecType }
166
       })
165
       })
167
     },
166
     },
167
+    dateFormatValue(timedate) {
168
+      if (timedate === null || timedate === undefined) {
169
+        return ""
170
+      } else {
171
+        let year = timedate.slice(0,4)
172
+        let month = timedate.slice(5,7)
173
+        let day = timedate.slice(8,10)
174
+        let hours = timedate.slice(11,13)
175
+        let minutes = timedate.slice(14,16)
176
+        let seconds = timedate.slice(17,19)
177
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
178
+      }
179
+    },
168
     dateFormat(timedate) {
180
     dateFormat(timedate) {
169
       if (timedate === null || timedate === undefined) {
181
       if (timedate === null || timedate === undefined) {
170
         return ""
182
         return ""

+ 9 - 60
shanXiPlatform/src/views/supervisionInspection/entrustedRepository/newEntrustedRepository/detail.vue

@@ -6,9 +6,9 @@
6
       </div>
6
       </div>
7
       <el-table border stripe :data="formData.detailsList" highlight-current-row>
7
       <el-table border stripe :data="formData.detailsList" highlight-current-row>
8
         <el-table-column  type="index"  align="center"  label="序号"  width="50px"/>
8
         <el-table-column  type="index"  align="center"  label="序号"  width="50px"/>
9
-        <el-table-column prop="detailTime" label="记录时间" align="center"  width='200px'>
9
+        <el-table-column prop="detailTime" label="记录时间" align="center"  width='250px'>
10
           <template slot-scope="scope">
10
           <template slot-scope="scope">
11
-            <span>{{dateFormat(scope.row.detailTime)}}</span>
11
+            <span>{{scope.row.detailTime}}</span>
12
           </template>
12
           </template>
13
         </el-table-column>
13
         </el-table-column>
14
         <el-table-column prop="title" label="标题" align="center" />
14
         <el-table-column prop="title" label="标题" align="center" />
@@ -249,64 +249,13 @@ export default {
249
       if (timedate === null || timedate === undefined) {
249
       if (timedate === null || timedate === undefined) {
250
         return ""
250
         return ""
251
       } else {
251
       } else {
252
-        let arr
253
-        // 首先对日期进行拆解,获得日期字符串
254
-        if (timedate.indexOf("T") > -1) {
255
-          arr = timedate.split("T")
256
-        } else {
257
-          arr = timedate.split(" ")
258
-        }
259
-        var d = arr[0]
260
-        var darr = d.split("-")
261
-        var t = arr[1]
262
-        var tarr = t.split(".000")
263
-        var marr = tarr[0].split(":")
264
-        var dd =
265
-          parseInt(darr[0]) +
266
-          "/" +
267
-          parseInt(darr[1]) +
268
-          "/" +
269
-          parseInt(darr[2]) +
270
-          " " +
271
-          parseInt(marr[0]) +
272
-          ":" +
273
-          parseInt(marr[1]) +
274
-          ":" +
275
-          parseInt(marr[2])
276
-
277
-        const date = new Date(Date.parse(dd))
278
-        date.setTime(date.setHours(date.getHours() + 8))
279
-
280
-        var year = date.getFullYear()
281
-        /* 在日期格式中,月份是从0开始的,因此要加0
282
-         * 使用三元表达式在小于10的前面加0,以达到格式统一  如 09:11:05
283
-         * */
284
-        var month =
285
-          date.getMonth() + 1 < 10
286
-            ? "0" + (date.getMonth() + 1)
287
-            : date.getMonth() + 1
288
-        var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate()
289
-        var hours =
290
-          date.getHours() < 10 ? "0" + date.getHours() : date.getHours()
291
-        var minutes =
292
-          date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()
293
-        var seconds =
294
-          date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds()
295
-        // 拼接
296
-        return (
297
-          year +
298
-          "-" +
299
-          month +
300
-          "-" +
301
-          day +
302
-          " " +
303
-          hours +
304
-          ":" +
305
-          minutes +
306
-          ":" +
307
-          seconds
308
-        )
309
-        // return (year + '-' + month + '-' + day)
252
+        let year = timedate.slice(0,4)
253
+        let month = timedate.slice(5,7)
254
+        let day = timedate.slice(8,10)
255
+        let hours = timedate.slice(11,13)
256
+        let minutes = timedate.slice(14,16)
257
+        let seconds = timedate.slice(17,19)
258
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
310
       }
259
       }
311
     },
260
     },
312
   }
261
   }

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

@@ -202,6 +202,19 @@ export default {
202
           })
202
           })
203
         })
203
         })
204
     },
204
     },
205
+    dateFormatValue(timedate) {
206
+      if (timedate === null || timedate === undefined) {
207
+        return ""
208
+      } else {
209
+        let year = timedate.slice(0,4)
210
+        let month = timedate.slice(5,7)
211
+        let day = timedate.slice(8,10)
212
+        let hours = timedate.slice(11,13)
213
+        let minutes = timedate.slice(14,16)
214
+        let seconds = timedate.slice(17,19)
215
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
216
+      }
217
+    },
205
     dateFormat(timedate) {
218
     dateFormat(timedate) {
206
       if (timedate === null || timedate === undefined) {
219
       if (timedate === null || timedate === undefined) {
207
         return ""
220
         return ""

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

@@ -44,11 +44,6 @@
44
             <span v-if="scope.row.inspecType == 2">分管副总每月本库检查</span>
44
             <span v-if="scope.row.inspecType == 2">分管副总每月本库检查</span>
45
           </template>
45
           </template>
46
         </el-table-column>
46
         </el-table-column>
47
-        <el-table-column prop="inspecTime" label="记录内容" align="center">
48
-          <template slot-scope="scope">
49
-            <span>{{scope.row.inspecTime}}</span>
50
-          </template>
51
-        </el-table-column>
52
         <el-table-column prop="status" label="状态" align="center" width='100px'>
47
         <el-table-column prop="status" label="状态" align="center" width='100px'>
53
           <template slot-scope="scope">
48
           <template slot-scope="scope">
54
             <div  disable-transitions  v-if="scope.row.status == '' || scope.row.status == null"></div>
49
             <div  disable-transitions  v-if="scope.row.status == '' || scope.row.status == null"></div>
@@ -260,6 +255,19 @@ export default {
260
           })
255
           })
261
         })
256
         })
262
     },
257
     },
258
+    dateFormatValue(timedate) {
259
+      if (timedate === null || timedate === undefined) {
260
+        return ""
261
+      } else {
262
+        let year = timedate.slice(0,4)
263
+        let month = timedate.slice(5,7)
264
+        let day = timedate.slice(8,10)
265
+        let hours = timedate.slice(11,13)
266
+        let minutes = timedate.slice(14,16)
267
+        let seconds = timedate.slice(17,19)
268
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
269
+      }
270
+    },
263
     dateFormat(timedate) {
271
     dateFormat(timedate) {
264
       if (timedate === null || timedate === undefined) {
272
       if (timedate === null || timedate === undefined) {
265
         return ""
273
         return ""

+ 9 - 60
shanXiPlatform/src/views/supervisionInspection/library/newLibrary/detail.vue

@@ -8,9 +8,9 @@
8
       </div>
8
       </div>
9
       <el-table border stripe :data="formData.detailsList" highlight-current-row>
9
       <el-table border stripe :data="formData.detailsList" highlight-current-row>
10
         <el-table-column  type="index"  align="center"  label="序号"  width="50px"/>
10
         <el-table-column  type="index"  align="center"  label="序号"  width="50px"/>
11
-        <el-table-column prop="detailTime" label="记录时间" align="center"  width='200px'>
11
+        <el-table-column prop="detailTime" label="记录时间" align="center"  width='250px'>
12
           <template slot-scope="scope">
12
           <template slot-scope="scope">
13
-            <span>{{dateFormat(scope.row.detailTime)}}</span>
13
+            <span>{{scope.row.detailTime}}</span>
14
           </template>
14
           </template>
15
         </el-table-column>
15
         </el-table-column>
16
         <el-table-column prop="title" label="标题" align="center" />
16
         <el-table-column prop="title" label="标题" align="center" />
@@ -278,64 +278,13 @@ export default {
278
       if (timedate === null || timedate === undefined) {
278
       if (timedate === null || timedate === undefined) {
279
         return ""
279
         return ""
280
       } else {
280
       } else {
281
-        let arr
282
-        // 首先对日期进行拆解,获得日期字符串
283
-        if (timedate.indexOf("T") > -1) {
284
-          arr = timedate.split("T")
285
-        } else {
286
-          arr = timedate.split(" ")
287
-        }
288
-        var d = arr[0]
289
-        var darr = d.split("-")
290
-        var t = arr[1]
291
-        var tarr = t.split(".000")
292
-        var marr = tarr[0].split(":")
293
-        var dd =
294
-          parseInt(darr[0]) +
295
-          "/" +
296
-          parseInt(darr[1]) +
297
-          "/" +
298
-          parseInt(darr[2]) +
299
-          " " +
300
-          parseInt(marr[0]) +
301
-          ":" +
302
-          parseInt(marr[1]) +
303
-          ":" +
304
-          parseInt(marr[2])
305
-
306
-        const date = new Date(Date.parse(dd))
307
-        date.setTime(date.setHours(date.getHours() + 8))
308
-
309
-        var year = date.getFullYear()
310
-        /* 在日期格式中,月份是从0开始的,因此要加0
311
-         * 使用三元表达式在小于10的前面加0,以达到格式统一  如 09:11:05
312
-         * */
313
-        var month =
314
-          date.getMonth() + 1 < 10
315
-            ? "0" + (date.getMonth() + 1)
316
-            : date.getMonth() + 1
317
-        var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate()
318
-        var hours =
319
-          date.getHours() < 10 ? "0" + date.getHours() : date.getHours()
320
-        var minutes =
321
-          date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()
322
-        var seconds =
323
-          date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds()
324
-        // 拼接
325
-        return (
326
-          year +
327
-          "-" +
328
-          month +
329
-          "-" +
330
-          day +
331
-          " " +
332
-          hours +
333
-          ":" +
334
-          minutes +
335
-          ":" +
336
-          seconds
337
-        )
338
-        // return (year + '-' + month + '-' + day)
281
+        let year = timedate.slice(0,4)
282
+        let month = timedate.slice(5,7)
283
+        let day = timedate.slice(8,10)
284
+        let hours = timedate.slice(11,13)
285
+        let minutes = timedate.slice(14,16)
286
+        let seconds = timedate.slice(17,19)
287
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
339
       }
288
       }
340
     },
289
     },
341
   }
290
   }

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

@@ -163,6 +163,19 @@ export default {
163
         query: { inspecType: row.inspecType }
163
         query: { inspecType: row.inspecType }
164
       })
164
       })
165
     },
165
     },
166
+    dateFormatValue(timedate) {
167
+      if (timedate === null || timedate === undefined) {
168
+        return ""
169
+      } else {
170
+        let year = timedate.slice(0,4)
171
+        let month = timedate.slice(5,7)
172
+        let day = timedate.slice(8,10)
173
+        let hours = timedate.slice(11,13)
174
+        let minutes = timedate.slice(14,16)
175
+        let seconds = timedate.slice(17,19)
176
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
177
+      }
178
+    },
166
     dateFormat(timedate) {
179
     dateFormat(timedate) {
167
       if (timedate === null || timedate === undefined) {
180
       if (timedate === null || timedate === undefined) {
168
         return ""
181
         return ""

+ 9 - 60
shanXiPlatform/src/views/supervisionInspection/subTreasury/newSubTreasury/detail.vue

@@ -3,9 +3,9 @@
3
     <div class="contentContainer">
3
     <div class="contentContainer">
4
       <el-table border stripe :data="formData.detailsList" highlight-current-row>
4
       <el-table border stripe :data="formData.detailsList" highlight-current-row>
5
         <el-table-column  type="index"  align="center"  label="序号"  width="50px"/>
5
         <el-table-column  type="index"  align="center"  label="序号"  width="50px"/>
6
-        <el-table-column prop="detailTime" label="记录时间" align="center"  width='200px'>
6
+        <el-table-column prop="detailTime" label="记录时间" align="center"  width='250px'>
7
           <template slot-scope="scope">
7
           <template slot-scope="scope">
8
-            <span>{{dateFormat(scope.row.detailTime)}}</span>
8
+            <span>{{scope.row.detailTime}}</span>
9
           </template>
9
           </template>
10
         </el-table-column>
10
         </el-table-column>
11
         <el-table-column prop="title" label="标题" align="center" />
11
         <el-table-column prop="title" label="标题" align="center" />
@@ -245,64 +245,13 @@ export default {
245
       if (timedate === null || timedate === undefined) {
245
       if (timedate === null || timedate === undefined) {
246
         return ""
246
         return ""
247
       } else {
247
       } else {
248
-        let arr
249
-        // 首先对日期进行拆解,获得日期字符串
250
-        if (timedate.indexOf("T") > -1) {
251
-          arr = timedate.split("T")
252
-        } else {
253
-          arr = timedate.split(" ")
254
-        }
255
-        var d = arr[0]
256
-        var darr = d.split("-")
257
-        var t = arr[1]
258
-        var tarr = t.split(".000")
259
-        var marr = tarr[0].split(":")
260
-        var dd =
261
-          parseInt(darr[0]) +
262
-          "/" +
263
-          parseInt(darr[1]) +
264
-          "/" +
265
-          parseInt(darr[2]) +
266
-          " " +
267
-          parseInt(marr[0]) +
268
-          ":" +
269
-          parseInt(marr[1]) +
270
-          ":" +
271
-          parseInt(marr[2])
272
-
273
-        const date = new Date(Date.parse(dd))
274
-        date.setTime(date.setHours(date.getHours() + 8))
275
-
276
-        var year = date.getFullYear()
277
-        /* 在日期格式中,月份是从0开始的,因此要加0
278
-         * 使用三元表达式在小于10的前面加0,以达到格式统一  如 09:11:05
279
-         * */
280
-        var month =
281
-          date.getMonth() + 1 < 10
282
-            ? "0" + (date.getMonth() + 1)
283
-            : date.getMonth() + 1
284
-        var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate()
285
-        var hours =
286
-          date.getHours() < 10 ? "0" + date.getHours() : date.getHours()
287
-        var minutes =
288
-          date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()
289
-        var seconds =
290
-          date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds()
291
-        // 拼接
292
-        return (
293
-          year +
294
-          "-" +
295
-          month +
296
-          "-" +
297
-          day +
298
-          " " +
299
-          hours +
300
-          ":" +
301
-          minutes +
302
-          ":" +
303
-          seconds
304
-        )
305
-        // return (year + '-' + month + '-' + day)
248
+        let year = timedate.slice(0,4)
249
+        let month = timedate.slice(5,7)
250
+        let day = timedate.slice(8,10)
251
+        let hours = timedate.slice(11,13)
252
+        let minutes = timedate.slice(14,16)
253
+        let seconds = timedate.slice(17,19)
254
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
306
       }
255
       }
307
     },
256
     },
308
   }
257
   }

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

@@ -202,6 +202,19 @@ export default {
202
           })
202
           })
203
         })
203
         })
204
     },
204
     },
205
+    dateFormatValue(timedate) {
206
+      if (timedate === null || timedate === undefined) {
207
+        return ""
208
+      } else {
209
+        let year = timedate.slice(0,4)
210
+        let month = timedate.slice(5,7)
211
+        let day = timedate.slice(8,10)
212
+        let hours = timedate.slice(11,13)
213
+        let minutes = timedate.slice(14,16)
214
+        let seconds = timedate.slice(17,19)
215
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
216
+      }
217
+    },
205
     dateFormat(timedate) {
218
     dateFormat(timedate) {
206
       if (timedate === null || timedate === undefined) {
219
       if (timedate === null || timedate === undefined) {
207
         return ""
220
         return ""

+ 18 - 1
shanXiPlatform/src/views/systemManagement/notice/allNotice/index.vue

@@ -4,7 +4,11 @@
4
       <el-table border stripe :data="tableList" highlight-current-row :header-cell-style="{background:'#f8f8f8'}">
4
       <el-table border stripe :data="tableList" highlight-current-row :header-cell-style="{background:'#f8f8f8'}">
5
         <el-table-column type="index" align="center" label="序号" width="50px" />
5
         <el-table-column type="index" align="center" label="序号" width="50px" />
6
         <el-table-column prop="title" label="标题" align="center" />
6
         <el-table-column prop="title" label="标题" align="center" />
7
-        <el-table-column prop="publishTime" label="发布时间" align="center" />
7
+        <el-table-column prop="publishTime" label="发布时间" align="center">
8
+          <template slot-scope="scope">
9
+            <span>{{dateFormatValue(scope.row.publishTime)}}</span>
10
+          </template>
11
+        </el-table-column>
8
         <el-table-column prop="publishUserName" label="发布人" align="center" />
12
         <el-table-column prop="publishUserName" label="发布人" align="center" />
9
         <el-table-column prop="publishOrgName" label="发布人所属单位" align="center" />
13
         <el-table-column prop="publishOrgName" label="发布人所属单位" align="center" />
10
         <el-table-column prop="recvDetailsInfo" label="接收人" align="center" />
14
         <el-table-column prop="recvDetailsInfo" label="接收人" align="center" />
@@ -146,6 +150,19 @@ export default {
146
           })
150
           })
147
         })
151
         })
148
     },
152
     },
153
+    dateFormatValue(timedate) {
154
+      if (timedate === null || timedate === undefined) {
155
+        return ""
156
+      } else {
157
+        let year = timedate.slice(0,4)
158
+        let month = timedate.slice(5,7)
159
+        let day = timedate.slice(8,10)
160
+        let hours = timedate.slice(11,13)
161
+        let minutes = timedate.slice(14,16)
162
+        let seconds = timedate.slice(17,19)
163
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
164
+      }
165
+    },
149
   }
166
   }
150
 }
167
 }
151
 </script>
168
 </script>

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

@@ -4,7 +4,7 @@
4
       <el-form :inline="true">
4
       <el-form :inline="true">
5
         
5
         
6
             <el-form-item label="发布时间" label-width="80px">
6
             <el-form-item label="发布时间" label-width="80px">
7
-              <el-date-picker   v-model="query.publishTime"  type="daterange"  range-separator="至"  start-placeholder="开始日期"  end-placeholder="结束日期" value-format="yyyy-MM-dd"  unlink-panels></el-date-picker>
7
+              <el-date-picker   v-model="query.publishTime"  type="daterange" range-separator="至"  start-placeholder="开始日期"  end-placeholder="结束日期" value-format="yyyy-MM-dd"  unlink-panels></el-date-picker>
8
             </el-form-item>
8
             </el-form-item>
9
          
9
          
10
             <el-form-item label="标题" label-width="50px">
10
             <el-form-item label="标题" label-width="50px">
@@ -24,7 +24,11 @@
24
       <el-table border stripe :data="tableList" highlight-current-row  :header-cell-style="{background:'#f8f8f8'}">
24
       <el-table border stripe :data="tableList" highlight-current-row  :header-cell-style="{background:'#f8f8f8'}">
25
         <el-table-column type="index" align="center" label="序号" width="50px" />
25
         <el-table-column type="index" align="center" label="序号" width="50px" />
26
         <el-table-column prop="title" label="标题" align="center" />
26
         <el-table-column prop="title" label="标题" align="center" />
27
-        <el-table-column prop="publishTime" label="发布时间" align="center" />
27
+        <el-table-column prop="publishTime" label="发布时间" align="center">
28
+          <template slot-scope="scope">
29
+            <span>{{scope.row.publishTime}}</span>
30
+          </template>
31
+        </el-table-column>
28
         <el-table-column prop="publishUserName" label="发布人" align="center" />
32
         <el-table-column prop="publishUserName" label="发布人" align="center" />
29
         <el-table-column prop="publishOrgName" label="发布人所属单位" align="center" />
33
         <el-table-column prop="publishOrgName" label="发布人所属单位" align="center" />
30
         <el-table-column prop="recvDetailsInfo" label="接收人" align="center" />
34
         <el-table-column prop="recvDetailsInfo" label="接收人" align="center" />
@@ -206,6 +210,19 @@ export default {
206
           })
210
           })
207
         })
211
         })
208
     },
212
     },
213
+    dateFormatValue(timedate) {
214
+      if (timedate === null || timedate === undefined) {
215
+        return ""
216
+      } else {
217
+        let year = timedate.slice(0,4)
218
+        let month = timedate.slice(5,7)
219
+        let day = timedate.slice(8,10)
220
+        let hours = timedate.slice(11,13)
221
+        let minutes = timedate.slice(14,16)
222
+        let seconds = timedate.slice(17,19)
223
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
224
+      }
225
+    },
209
   }
226
   }
210
 }
227
 }
211
 </script>
228
 </script>

+ 14 - 1
shanXiPlatform/src/views/systemManagement/policySystem/index.vue

@@ -32,7 +32,7 @@
32
             <el-table-column prop="title" label="标题" align="center" />
32
             <el-table-column prop="title" label="标题" align="center" />
33
             <el-table-column prop="publishTime" label="发布时间" align="center">
33
             <el-table-column prop="publishTime" label="发布时间" align="center">
34
               <template slot-scope="scope">
34
               <template slot-scope="scope">
35
-                <span>{{scope.row.publishTime.slice(0,10)}}</span>
35
+                <span>{{scope.row.publishTime}}</span>
36
               </template>
36
               </template>
37
             </el-table-column>
37
             </el-table-column>
38
             <el-table-column prop="publishUserName" label="发布人" align="center" />
38
             <el-table-column prop="publishUserName" label="发布人" align="center" />
@@ -172,6 +172,19 @@ export default {
172
           })
172
           })
173
         })
173
         })
174
     },
174
     },
175
+    dateFormatValue(timedate) {
176
+      if (timedate === null || timedate === undefined) {
177
+        return ""
178
+      } else {
179
+        let year = timedate.slice(0,4)
180
+        let month = timedate.slice(5,7)
181
+        let day = timedate.slice(8,10)
182
+        let hours = timedate.slice(11,13)
183
+        let minutes = timedate.slice(14,16)
184
+        let seconds = timedate.slice(17,19)
185
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
186
+      }
187
+    },
175
   }
188
   }
176
 }
189
 }
177
 </script>
190
 </script>

+ 14 - 1
shanXiPlatform/src/views/systemManagement/userManagement/departmentManagement/index.vue

@@ -152,7 +152,20 @@ export default {
152
         return (year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds)
152
         return (year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds)
153
         // return (year + '-' + month + '-' + day)
153
         // return (year + '-' + month + '-' + day)
154
       }
154
       }
155
-    }
155
+    },
156
+    dateFormatValue(timedate) {
157
+      if (timedate === null || timedate === undefined) {
158
+        return ""
159
+      } else {
160
+        let year = timedate.slice(0,4)
161
+        let month = timedate.slice(5,7)
162
+        let day = timedate.slice(8,10)
163
+        let hours = timedate.slice(11,13)
164
+        let minutes = timedate.slice(14,16)
165
+        let seconds = timedate.slice(17,19)
166
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
167
+      }
168
+    },
156
 
169
 
157
   }
170
   }
158
 }
171
 }

+ 19 - 2
shanXiPlatform/src/views/systemManagement/userManagement/roleManagement/index.vue

@@ -14,7 +14,11 @@
14
     >
14
     >
15
       <el-table-column type="index" align="center" label="序号" width="50px" />
15
       <el-table-column type="index" align="center" label="序号" width="50px" />
16
       <el-table-column prop="rname" label="角色名称" align="center" />
16
       <el-table-column prop="rname" label="角色名称" align="center" />
17
-      <el-table-column prop="rCreateTime" label="创建时间" align="center" />
17
+      <el-table-column prop="rCreateTime" label="创建时间" align="center">
18
+          <template slot-scope="scope">
19
+            <span>{{scope.row.rCreateTime}}</span>
20
+          </template>
21
+        </el-table-column>
18
       <el-table-column prop="rremark" label="备注" align="center" />
22
       <el-table-column prop="rremark" label="备注" align="center" />
19
       <el-table-column
23
       <el-table-column
20
         prop="operation"
24
         prop="operation"
@@ -188,7 +192,20 @@ export default {
188
     handleDelete(index, row) {
192
     handleDelete(index, row) {
189
       this.id = row.rid
193
       this.id = row.rid
190
       this.deleteList()
194
       this.deleteList()
191
-    }
195
+    },
196
+    dateFormatValue(timedate) {
197
+      if (timedate === null || timedate === undefined) {
198
+        return ""
199
+      } else {
200
+        let year = timedate.slice(0,4)
201
+        let month = timedate.slice(5,7)
202
+        let day = timedate.slice(8,10)
203
+        let hours = timedate.slice(11,13)
204
+        let minutes = timedate.slice(14,16)
205
+        let seconds = timedate.slice(17,19)
206
+        return (year + '年' + month + '月' + day + '日' + hours + '时' + minutes + '分' + seconds + '秒')
207
+      }
208
+    },
192
 
209
 
193
     /* ----- 格式化表格序号 -----*/
210
     /* ----- 格式化表格序号 -----*/
194
     // indexMethod(index) {
211
     // indexMethod(index) {