Browse Source

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

linyanfei 3 years ago
parent
commit
62a3a17e62

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

@@ -5,7 +5,7 @@
5
       <div class="container">
5
       <div class="container">
6
         <div class="header">
6
         <div class="header">
7
           <el-form :inline="true" :model="query" class="demo-form-inline">
7
           <el-form :inline="true" :model="query" class="demo-form-inline">
8
-            <el-form-item label="检测时间">
8
+            <!-- <el-form-item label="检测时间">
9
               <el-date-picker
9
               <el-date-picker
10
                 v-model="query.startTime"
10
                 v-model="query.startTime"
11
                 type="date"
11
                 type="date"
@@ -28,6 +28,18 @@
28
                 value-format="yyyy-MM-dd"
28
                 value-format="yyyy-MM-dd"
29
               >
29
               >
30
               </el-date-picker>
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
             </el-form-item>
43
             </el-form-item>
32
             <el-form-item>
44
             <el-form-item>
33
               <el-button
45
               <el-button
@@ -167,8 +179,9 @@ export default {
167
       type: "yjly",
179
       type: "yjly",
168
       value: "",
180
       value: "",
169
       query: {
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
         // houseId: this.houseId,
292
         // houseId: this.houseId,
280
         depotId: this.depotId,
293
         depotId: this.depotId,
281
         type: this.type,
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
       console.log(condition, "condition.....")
298
       console.log(condition, "condition.....")
286
       condition = JSON.stringify(condition)
299
       condition = JSON.stringify(condition)
@@ -310,7 +323,7 @@ export default {
310
     },
323
     },
311
     //清空
324
     //清空
312
     clear() {
325
     clear() {
313
-      this.query = {};
326
+      this.query.value1 = [];
314
        this.yjlyList();
327
        this.yjlyList();
315
     },
328
     },
316
 
329
 

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

@@ -5,7 +5,7 @@
5
       <div class="container">
5
       <div class="container">
6
         <div class="header">
6
         <div class="header">
7
           <el-form :inline="true" :model="query" class="demo-form-inline">
7
           <el-form :inline="true" :model="query" class="demo-form-inline">
8
-            <el-form-item label="检测时间">
8
+            <!-- <el-form-item label="检测时间">
9
               <el-date-picker
9
               <el-date-picker
10
                 v-model="query.startTime"
10
                 v-model="query.startTime"
11
                 type="date"
11
                 type="date"
@@ -28,6 +28,18 @@
28
                 value-format="yyyy-MM-dd"
28
                 value-format="yyyy-MM-dd"
29
               >
29
               >
30
               </el-date-picker>
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
             </el-form-item>
43
             </el-form-item>
32
             <el-form-item>
44
             <el-form-item>
33
               <el-button
45
               <el-button
@@ -167,8 +179,9 @@ export default {
167
       type: "yjcg",
179
       type: "yjcg",
168
       value: "",
180
       value: "",
169
       query: {
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
         // houseId: this.houseId,
293
         // houseId: this.houseId,
281
         depotId: this.depotId,
294
         depotId: this.depotId,
282
         type: this.type,
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
       console.log(condition, "condition.....")
299
       console.log(condition, "condition.....")
287
       condition = JSON.stringify(condition)
300
       condition = JSON.stringify(condition)
@@ -311,7 +324,7 @@ export default {
311
     },
324
     },
312
     //清空
325
     //清空
313
     clear() {
326
     clear() {
314
-      this.query = {};
327
+      this.query.value1 = [];
315
        this.yjcgList();
328
        this.yjcgList();
316
     },
329
     },
317
 
330
 

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

@@ -5,7 +5,7 @@
5
       <div class="container">
5
       <div class="container">
6
         <div class="header">
6
         <div class="header">
7
           <el-form :inline="true" :model="query" class="demo-form-inline">
7
           <el-form :inline="true" :model="query" class="demo-form-inline">
8
-            <el-form-item label="检测时间">
8
+            <!-- <el-form-item label="检测时间">
9
               <el-date-picker
9
               <el-date-picker
10
                 v-model="query.startTime"
10
                 v-model="query.startTime"
11
                 type="date"
11
                 type="date"
@@ -34,6 +34,18 @@
34
                 value-format="yyyy-MM-dd"
34
                 value-format="yyyy-MM-dd"
35
               >
35
               >
36
               </el-date-picker>
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
             </el-form-item>
49
             </el-form-item>
38
             <el-form-item>
50
             <el-form-item>
39
               <el-button
51
               <el-button
@@ -173,8 +185,9 @@ export default {
173
       type: "yjbg",
185
       type: "yjbg",
174
       value: "",
186
       value: "",
175
       query: {
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
       var condition = {
287
       var condition = {
275
         depotId: this.depotId,
288
         depotId: this.depotId,
276
         type: this.type,
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
       console.log(condition, "condition.....")
293
       console.log(condition, "condition.....")
281
       condition = JSON.stringify(condition)
294
       condition = JSON.stringify(condition)
@@ -305,7 +318,7 @@ export default {
305
     },
318
     },
306
     //清空
319
     //清空
307
     clear() {
320
     clear() {
308
-      this.query = {}
321
+      this.query.value1 = []
309
       this.yjbgList()
322
       this.yjbgList()
310
     },
323
     },
311
 
324
 

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

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