Parcourir la source

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

linyanfei il y a 3 ans
Parent
commit
62a3a17e62

+ 19 - 6
shanXiPlatform/src/views/medicamentManagement/medicamentApplication/index.vue

@@ -5,7 +5,7 @@
5 5
       <div class="container">
6 6
         <div class="header">
7 7
           <el-form :inline="true" :model="query" class="demo-form-inline">
8
-            <el-form-item label="检测时间">
8
+            <!-- <el-form-item label="检测时间">
9 9
               <el-date-picker
10 10
                 v-model="query.startTime"
11 11
                 type="date"
@@ -28,6 +28,18 @@
28 28
                 value-format="yyyy-MM-dd"
29 29
               >
30 30
               </el-date-picker>
31
+            </el-form-item> -->
32
+               <el-form-item label="检测时间">
33
+              <el-date-picker
34
+                v-model="query.value1"
35
+                type="daterange"
36
+                format="yyyy 年 MM 月 dd 日"
37
+                 value-format="yyyy-MM-dd"
38
+                range-separator="至"
39
+                start-placeholder="开始日期"
40
+                end-placeholder="结束日期"
41
+              >
42
+              </el-date-picker>
31 43
             </el-form-item>
32 44
             <el-form-item>
33 45
               <el-button
@@ -167,8 +179,9 @@ export default {
167 179
       type: "yjly",
168 180
       value: "",
169 181
       query: {
170
-        startTime: "",
171
-        endTime: "",
182
+        // startTime: "",
183
+        // endTime: "",
184
+        value1:""
172 185
       },
173 186
       //分页
174 187
 
@@ -279,8 +292,8 @@ export default {
279 292
         // houseId: this.houseId,
280 293
         depotId: this.depotId,
281 294
         type: this.type,
282
-        startTime: this.query.startTime,
283
-        endTime: this.query.endTime,
295
+        startTime: this.query.value1[0],
296
+        endTime: this.query.value1[1],
284 297
       }
285 298
       console.log(condition, "condition.....")
286 299
       condition = JSON.stringify(condition)
@@ -310,7 +323,7 @@ export default {
310 323
     },
311 324
     //清空
312 325
     clear() {
313
-      this.query = {};
326
+      this.query.value1 = [];
314 327
        this.yjlyList();
315 328
     },
316 329
 

+ 19 - 6
shanXiPlatform/src/views/medicamentManagement/medicamentProcurement/index.vue

@@ -5,7 +5,7 @@
5 5
       <div class="container">
6 6
         <div class="header">
7 7
           <el-form :inline="true" :model="query" class="demo-form-inline">
8
-            <el-form-item label="检测时间">
8
+            <!-- <el-form-item label="检测时间">
9 9
               <el-date-picker
10 10
                 v-model="query.startTime"
11 11
                 type="date"
@@ -28,6 +28,18 @@
28 28
                 value-format="yyyy-MM-dd"
29 29
               >
30 30
               </el-date-picker>
31
+            </el-form-item> -->
32
+             <el-form-item label="检测时间">
33
+              <el-date-picker
34
+                v-model="query.value1"
35
+                type="daterange"
36
+                format="yyyy 年 MM 月 dd 日"
37
+                 value-format="yyyy-MM-dd"
38
+                range-separator="至"
39
+                start-placeholder="开始日期"
40
+                end-placeholder="结束日期"
41
+              >
42
+              </el-date-picker>
31 43
             </el-form-item>
32 44
             <el-form-item>
33 45
               <el-button
@@ -167,8 +179,9 @@ export default {
167 179
       type: "yjcg",
168 180
       value: "",
169 181
       query: {
170
-        startTime: "",
171
-        endTime: "",
182
+        // startTime: "",
183
+        // endTime: "",
184
+        value1:""
172 185
       },
173 186
       //分页
174 187
 
@@ -280,8 +293,8 @@ export default {
280 293
         // houseId: this.houseId,
281 294
         depotId: this.depotId,
282 295
         type: this.type,
283
-        startTime: this.query.startTime,
284
-        endTime: this.query.endTime,
296
+        startTime: this.query.value1[0],
297
+        endTime: this.query.value1[1],
285 298
       }
286 299
       console.log(condition, "condition.....")
287 300
       condition = JSON.stringify(condition)
@@ -311,7 +324,7 @@ export default {
311 324
     },
312 325
     //清空
313 326
     clear() {
314
-      this.query = {};
327
+      this.query.value1 = [];
315 328
        this.yjcgList();
316 329
     },
317 330
 

+ 19 - 6
shanXiPlatform/src/views/medicamentManagement/medicamentStorage/index.vue

@@ -5,7 +5,7 @@
5 5
       <div class="container">
6 6
         <div class="header">
7 7
           <el-form :inline="true" :model="query" class="demo-form-inline">
8
-            <el-form-item label="检测时间">
8
+            <!-- <el-form-item label="检测时间">
9 9
               <el-date-picker
10 10
                 v-model="query.startTime"
11 11
                 type="date"
@@ -34,6 +34,18 @@
34 34
                 value-format="yyyy-MM-dd"
35 35
               >
36 36
               </el-date-picker>
37
+            </el-form-item> -->
38
+               <el-form-item label="检测时间">
39
+              <el-date-picker
40
+                v-model="query.value1"
41
+                type="daterange"
42
+                format="yyyy 年 MM 月 dd 日"
43
+                 value-format="yyyy-MM-dd"
44
+                range-separator="至"
45
+                start-placeholder="开始日期"
46
+                end-placeholder="结束日期"
47
+              >
48
+              </el-date-picker>
37 49
             </el-form-item>
38 50
             <el-form-item>
39 51
               <el-button
@@ -173,8 +185,9 @@ export default {
173 185
       type: "yjbg",
174 186
       value: "",
175 187
       query: {
176
-        startTime: "",
177
-        endTime: "",
188
+        // startTime: "",
189
+        // endTime: "",
190
+        value1:""
178 191
       },
179 192
       //分页
180 193
 
@@ -274,8 +287,8 @@ export default {
274 287
       var condition = {
275 288
         depotId: this.depotId,
276 289
         type: this.type,
277
-        startTime: this.query.startTime,
278
-        endTime: this.query.endTime,
290
+        startTime: this.query.value1[0],
291
+        endTime: this.query.value1[1],
279 292
       }
280 293
       console.log(condition, "condition.....")
281 294
       condition = JSON.stringify(condition)
@@ -305,7 +318,7 @@ export default {
305 318
     },
306 319
     //清空
307 320
     clear() {
308
-      this.query = {}
321
+      this.query.value1 = []
309 322
       this.yjbgList()
310 323
     },
311 324
 

+ 72 - 64
shanXiPlatform/src/views/reservesManagement/mechanicalVentilation/index.vue

@@ -5,7 +5,7 @@
5 5
       <div class="container">
6 6
         <div class="header">
7 7
           <el-form :inline="true" :model="query" class="demo-form-inline">
8
-            <el-form-item label="检测时间">
8
+            <!-- <el-form-item label="检测时间">
9 9
               <el-date-picker
10 10
                 v-model="query.startTime"
11 11
                 type="date"
@@ -28,6 +28,18 @@
28 28
                 value-format="yyyy-MM-dd"
29 29
               >
30 30
               </el-date-picker>
31
+            </el-form-item> -->
32
+            <el-form-item label="检测时间">
33
+              <el-date-picker
34
+                v-model="query.value1"
35
+                type="daterange"
36
+                format="yyyy 年 MM 月 dd 日"
37
+                 value-format="yyyy-MM-dd"
38
+                range-separator="至"
39
+                start-placeholder="开始日期"
40
+                end-placeholder="结束日期"
41
+              >
42
+              </el-date-picker>
31 43
             </el-form-item>
32 44
             <el-form-item>
33 45
               <el-button
@@ -38,7 +50,7 @@
38 50
               >
39 51
                 清空</el-button
40 52
               >
41
-          
53
+
42 54
               <el-button
43 55
                 type="success"
44 56
                 icon="el-icon-search"
@@ -50,7 +62,7 @@
50 62
           </el-form>
51 63
           <div>
52 64
             <el-button
53
-            v-if="$tools.IsPermission(228)"
65
+              v-if="$tools.IsPermission(228)"
54 66
               type="success"
55 67
               icon="el-icon-circle-plus"
56 68
               plain
@@ -63,11 +75,10 @@
63 75
         <el-table
64 76
           border
65 77
           stripe
66
-         
67 78
           :data="tfData"
68 79
           highlight-current-row
69 80
           style="width: 100%"
70
-           :header-cell-style="{background:'#f8f8f8'}"
81
+          :header-cell-style="{ background: '#f8f8f8' }"
71 82
         >
72 83
           <el-table-column
73 84
             :index="indexMethod"
@@ -75,7 +86,6 @@
75 86
             align="center"
76 87
             label="序号"
77 88
             width="50px"
78
-           
79 89
           >
80 90
           </el-table-column>
81 91
 
@@ -101,22 +111,22 @@
101 111
           >
102 112
             <template slot-scope="scope">
103 113
               <el-button
104
-              v-if="$tools.IsPermission(230)"
114
+                v-if="$tools.IsPermission(230)"
105 115
                 size="mini"
106
-                type="detailbtn" 
116
+                type="detailbtn"
107 117
                 @click="handleCheck(3, scope.$index, scope.row)"
108 118
                 >查看</el-button
109 119
               >
110 120
 
111 121
               <el-button
112 122
                 size="mini"
113
-                type="editbtn" 
123
+                type="editbtn"
114 124
                 @click="handleEdit(2, scope.$index, scope.row)"
115 125
                 v-if="
116 126
                   scope.row.auditState != 0 &&
117 127
                   scope.row.auditState != 4 &&
118 128
                   scope.row.auditState != 1 &&
119
-                  scope.row.auditState != 2&&
129
+                  scope.row.auditState != 2 &&
120 130
                   $tools.IsPermission(229)
121 131
                 "
122 132
                 >修改</el-button
@@ -132,8 +142,8 @@
132 142
           </el-table-column>
133 143
         </el-table>
134 144
         <el-pagination
135
-        background
136
-         @size-change="sizeChange"
145
+          background
146
+          @size-change="sizeChange"
137 147
           @current-change="handleCurrentChange"
138 148
           :page-count="5"
139 149
           :page-sizes="[10, 20, 30, 40]"
@@ -148,7 +158,7 @@
148 158
 <script>
149 159
 //引入分页
150 160
 import Pagination from "@/components/Pagination"
151
-import { 
161
+import {
152 162
   getList,
153 163
   deleteTfList,
154 164
 } from "@/api/reservesManagement/mechanicalVentilation"
@@ -160,15 +170,16 @@ export default {
160 170
       //存储用户信息
161 171
       userInfo: {},
162 172
       //仓房编号
163
-      houseId:this.$store.state.houseId,
173
+      houseId: this.$store.state.houseId,
164 174
       //库编号
165 175
       depotId: this.$store.state.depotId,
166 176
       //类型
167 177
       type: "tf",
168 178
       value: "",
169 179
       query: {
170
-        startTime: "",
171
-        endTime: "",
180
+        // startTime: "",
181
+        // endTime: "",
182
+        value1:""
172 183
       },
173 184
       //分页
174 185
 
@@ -230,7 +241,7 @@ export default {
230 241
           type: type,
231 242
           processId: row.processId,
232 243
           ongoingStep: row.ongoingStep,
233
-          auditState:row.auditState
244
+          auditState: row.auditState,
234 245
         },
235 246
       })
236 247
     },
@@ -279,8 +290,9 @@ export default {
279 290
         houseId: this.houseId,
280 291
         depotId: this.depotId,
281 292
         type: this.type,
282
-        startTime: this.query.startTime,
283
-        endTime: this.query.endTime,
293
+        startTime: this.query.value1[0],
294
+        endTime: this.query.value1[1],
295
+       
284 296
       }
285 297
       console.log(condition, "condition.....")
286 298
       condition = JSON.stringify(condition)
@@ -293,13 +305,13 @@ export default {
293 305
         .then((res) => {
294 306
           if (res.code == 200) {
295 307
             // this.tfData = res.data.list;
296
-            this.tfData = res.data.records;
297
-           this.tfData.forEach(item=>{
298
-             if(item.type=="tf"){
299
-               item.type="机械通风"
300
-             }
301
-           })
302
-          
308
+            this.tfData = res.data.records
309
+            this.tfData.forEach((item) => {
310
+              if (item.type == "tf") {
311
+                item.type = "机械通风"
312
+              }
313
+            })
314
+
303 315
             this.pagination.pageSize = res.data.size
304 316
             this.pagination.total = res.data.total
305 317
           }
@@ -310,12 +322,13 @@ export default {
310 322
     },
311 323
     //清空
312 324
     clear() {
313
-      this.query = {};
314
-       this.tfList();
325
+      this.query.value1 = []
326
+      this.tfList()
315 327
     },
316 328
 
317 329
     //查询
318 330
     search() {
331
+      
319 332
       this.tfList()
320 333
     },
321 334
     //当前页发生变化时
@@ -325,10 +338,10 @@ export default {
325 338
       this.tfList()
326 339
     },
327 340
 
328
-       //页数大小发生变化时
341
+    //页数大小发生变化时
329 342
     sizeChange(v) {
330
-      this.pagination.pageSize = v;
331
-      this.tfList();
343
+      this.pagination.pageSize = v
344
+      this.tfList()
332 345
     },
333 346
 
334 347
     /* ----- 格式化表格序号 -----*/
@@ -341,8 +354,7 @@ export default {
341 354
 
342 355
   computed: {
343 356
     HouseId() {
344
-      return this.$store.state.houseId;
345
-    
357
+      return this.$store.state.houseId
346 358
     },
347 359
     // DepotId() {
348 360
     //   return this.$store.state.depotId
@@ -353,46 +365,44 @@ export default {
353 365
       // findbyTreeDatac(this.$store.state.depotId).then(res => {
354 366
       //   this.treeData = res.data
355 367
       // })
356
-      this.houseId = val;
357
-        var houseData=JSON.parse(localStorage.getItem("houseData"));
358
-     console.log(houseData,"houseData...")
359
-   
368
+      this.houseId = val
369
+      var houseData = JSON.parse(localStorage.getItem("houseData"))
370
+      console.log(houseData, "houseData...")
360 371
 
361
-    this.depotId=houseData.parentCode;
362
-    console.log(this.depotId,"库id")
363
-      this.tfList();
364
-      }
372
+      this.depotId = houseData.parentCode
373
+      console.log(this.depotId, "库id")
374
+      this.tfList()
365 375
     },
376
+  },
366 377
   mounted() {
367
-    console.log(this.$store.state.houseId,">>>>>>>???????")
368
-   
369
-   
378
+    console.log(this.$store.state.houseId, ">>>>>>>???????")
379
+
370 380
     //获取当前缓存的用户信息
371 381
     // this.userInfo = JSON.parse(localStorage.getItem("userInfo"))
372 382
     // console.log(this.userInfo, "this.userInfo.....")
373
-      this.userInfo = JSON.parse(getUser())
383
+    this.userInfo = JSON.parse(getUser())
374 384
     console.log(this.userInfo, "this.userInfo.....?????")
375 385
     this.tfList()
376 386
 
377
-  // this.bus.$on("tfList", function() {
378
-  //     this.tfList();
379
-  //   });
380
-   },
387
+    // this.bus.$on("tfList", function() {
388
+    //     this.tfList();
389
+    //   });
390
+  },
381 391
 }
382 392
 </script>
383 393
 <style lang="scss" scoped>
384 394
 .contentContainer {
385 395
   background: #fff;
386 396
   .top {
387
-    padding-left:10px;
397
+    padding-left: 10px;
388 398
     height: 40px;
389 399
     line-height: 40px;
390 400
     border-bottom: 1px solid #ccc;
391
-    font-weight:400;
392
-    font-size:16px;
401
+    font-weight: 400;
402
+    font-size: 16px;
393 403
   }
394 404
   .container {
395
-     padding: 10px;
405
+    padding: 10px;
396 406
     .header {
397 407
       height: 40px;
398 408
       line-height: 40px;
@@ -406,18 +416,16 @@ export default {
406 416
     }
407 417
   }
408 418
   .checkBtn.is-plain {
409
-  color: #037d41;
410
-  background-color: #fff;
411
-  border-color: #037d41;
412
-}
413
-.checkBtn.is-plain:hover{
414
-  color:#fff !important;
415
-  background-color:#13ce66 !important;
416
-  border:1px solid #13ce66 !important;
417
-}
419
+    color: #037d41;
420
+    background-color: #fff;
421
+    border-color: #037d41;
422
+  }
423
+  .checkBtn.is-plain:hover {
424
+    color: #fff !important;
425
+    background-color: #13ce66 !important;
426
+    border: 1px solid #13ce66 !important;
427
+  }
418 428
 }
419 429
 </style>
420 430
 <style>
421
-
422
-
423 431
 </style>