Kaynağa Gözat

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 yıl önce
ebeveyn
işleme
f7e28c2b9b

+ 44 - 20
src/xt_pages/device/airDisinfect.vue Dosyayı Görüntüle

@@ -10,23 +10,24 @@
10 10
         </div>
11 11
         <el-table :data="tableData" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" >
12 12
             <el-table-column type="selection" width="55" align="center"></el-table-column>
13
-            <el-table-column label="时间" width="120">
13
+            <!-- <el-table-column label="时间" width="120">
14 14
                <template slot-scope="scope">
15 15
                    {{getTime(scope.row.start_time)}}
16 16
                </template>
17
-            </el-table-column>
18
-            <el-table-column label="班次" width="120">
17
+            </el-table-column> -->
18
+            <el-table-column label="创建日期" width="120">
19 19
                 <template slot-scope="scope">
20
-                   <span v-if="scope.row.class == 1">上午</span>
21
-                   <span v-if="scope.row.class == 2">中午</span>
22
-                   <span v-if="scope.row.class == 3">下午</span>
20
+                  {{getTime(scope.row.created_time)}}
23 21
                 </template>
24 22
             </el-table-column>
25
-            <el-table-column label="创建日期" width="120">
23
+            <el-table-column label="班次" width="120">
26 24
                 <template slot-scope="scope">
27
-                  {{getTime(scope.row.created_ime)}}
25
+                   <span v-if="scope.row.class == 1">上午</span>
26
+                   <span v-if="scope.row.class == 2">下午</span>
27
+                   <span v-if="scope.row.class == 3">晚上</span>
28 28
                 </template>
29 29
             </el-table-column>
30
+         
30 31
             <el-table-column label="消毒方式" width="120">
31 32
                 <template slot-scope="scope">
32 33
                   {{scope.row.disinfection_methods}}
@@ -68,7 +69,7 @@
68 69
                    <span v-if="scope.row.modifications == 2">撤消</span>
69 70
                 </template>
70 71
             </el-table-column>
71
-            <el-table-column label="操作" align="center" width="180">
72
+            <el-table-column label="操作" align="center" width="180" fixed="right">
72 73
                 <template slot-scope="scope">
73 74
                     <el-button
74 75
                     size="mini"
@@ -99,13 +100,21 @@
99 100
         title="新增空气消毒表"
100 101
         :visible.sync="dialogFormVisible">
101 102
             <el-form :model="form" ref="form" class="airForm" :rules="airRules">
102
-                <el-form-item label="时间" label-width="110px" required prop="start_time">
103
+                <!-- <el-form-item label="时间" label-width="110px" required prop="start_time">
103 104
                     <el-date-picker
104 105
                      value-format="yyyy-MM-dd"
105 106
                     v-model="form.start_time"
106 107
                     type="date"
107 108
                     placeholder="选择日期时间">
108 109
                     </el-date-picker>
110
+                </el-form-item> -->
111
+                <el-form-item label="创建日期" label-width="110px" required prop="created_time">
112
+                  <el-date-picker
113
+                    value-format="yyyy-MM-dd"
114
+                    v-model="form.created_time"
115
+                    type="date"
116
+                    placeholder="选择日期时间">
117
+                    </el-date-picker>
109 118
                 </el-form-item>
110 119
                 <el-form-item label="班次" label-width="110px" required prop="class">
111 120
                     <el-select v-model="form.class" placeholder="请选择消毒班次">
@@ -114,14 +123,14 @@
114 123
                         <el-option label="晚上" value="3"></el-option>
115 124
                     </el-select>
116 125
                 </el-form-item>
117
-                <el-form-item label="创建日期" label-width="110px" required prop="created_time">
126
+                <!-- <el-form-item label="创建日期" label-width="110px" required prop="created_time">
118 127
                   <el-date-picker
119 128
                     value-format="yyyy-MM-dd"
120 129
                     v-model="form.created_time"
121 130
                     type="date"
122 131
                     placeholder="选择日期时间">
123 132
                     </el-date-picker>
124
-                </el-form-item>
133
+                </el-form-item> -->
125 134
                 <el-form-item label="消毒方式" label-width="110px">
126 135
                     <el-input v-model="form.disinfection_methods"></el-input>
127 136
                 </el-form-item>
@@ -190,13 +199,21 @@
190 199
         title="编辑空气消毒表"
191 200
         :visible.sync="editDialogFormVisible">
192 201
             <el-form :model="form" ref="form" class="airForm" :rules="airRules">
193
-                <el-form-item label="时间" label-width="110px" required prop="start_time">
202
+                <!-- <el-form-item label="时间" label-width="110px" required prop="start_time">
194 203
                     <el-date-picker
195 204
                      value-format="yyyy-MM-dd"
196 205
                     v-model="form.start_time"
197 206
                     type="date"
198 207
                     placeholder="选择日期时间">
199 208
                     </el-date-picker>
209
+                </el-form-item> -->
210
+                <el-form-item label="创建日期" label-width="110px" required prop="created_time">
211
+                  <el-date-picker
212
+                    value-format="yyyy-MM-dd"
213
+                    v-model="form.created_time"
214
+                    type="date"
215
+                    placeholder="选择日期时间">
216
+                    </el-date-picker>
200 217
                 </el-form-item>
201 218
                 <el-form-item label="班次" label-width="110px" required prop="class">
202 219
                     <el-select v-model="form.class" placeholder="请选择消毒班次">
@@ -205,14 +222,14 @@
205 222
                         <el-option label="晚上" value="3"></el-option>
206 223
                     </el-select>
207 224
                 </el-form-item>
208
-                <el-form-item label="创建日期" label-width="110px" required prop="created_time">
225
+                <!-- <el-form-item label="创建日期" label-width="110px" required prop="created_time">
209 226
                   <el-date-picker
210 227
                     value-format="yyyy-MM-dd"
211 228
                     v-model="form.created_time"
212 229
                     type="date"
213 230
                     placeholder="选择日期时间">
214 231
                     </el-date-picker>
215
-                </el-form-item>
232
+                </el-form-item> -->
216 233
                 <el-form-item label="消毒方式" label-width="110px">
217 234
                     <el-input v-model="form.disinfection_methods"></el-input>
218 235
                 </el-form-item>
@@ -283,6 +300,7 @@
283 300
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
284 301
   import { getAllDoctorList,saveAirDisinfect,getAirList,getAirDisinfectDetail,updateAirDisinfect,deleteAirDisinfect } from "@/api/device"
285 302
   import { uParseTime } from '@/utils/tools'
303
+  const moment = require('moment')
286 304
   export default {
287 305
     name: 'airDisinfect',
288 306
     components: {
@@ -300,7 +318,7 @@
300 318
         form: {
301 319
           id:0,
302 320
           start_time:"", 
303
-          created_time:"",
321
+          created_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
304 322
           class:"",
305 323
           disinfection_methods:"",
306 324
           disinfection_fluid:"",
@@ -367,7 +385,8 @@
367 385
                    check_out:parseInt(this.form.check_out),
368 386
                    modifications:parseInt(this.form.modifications),
369 387
                  }
370
-                 console.log("params",params)
388
+                //  console.log("params",params)
389
+                
371 390
                saveAirDisinfect(params).then(response=>{
372 391
                   if(response.data.state == 1){
373 392
                      var list = response.data.data.list
@@ -437,11 +456,11 @@
437 456
         getAirDisinfectDetail(id).then(response=>{
438 457
             if(response.data.state ==1){
439 458
                var detail =  response.data.data.detail
440
-               console.log("detail",detail)
459
+               console.log("detail",detail.created_time)
441 460
                this.form.id = detail.id
442
-               this.form.start_time = this.getTime(detail.start_time)
461
+              //  this.form.start_time = this.getTime(detail.start_time)
443 462
                this.form.class = detail.class.toString()
444
-               this.form.created_ime = this.getTime(detail.created_time)
463
+               this.form.created_time = this.getTime(detail.created_time)
445 464
                this.form.disinfection_methods = detail.disinfection_methods
446 465
                this.form.disinfection_fluid = detail.disinfection_fluid
447 466
                this.form.sort = detail.sort
@@ -532,3 +551,8 @@
532 551
     }
533 552
 }
534 553
 </style>
554
+<style lang="scss">
555
+::-webkit-scrollbar{
556
+  height: 15px;
557
+}
558
+</style>

+ 43 - 31
src/xt_pages/device/objectTableDisinfect.vue Dosyayı Görüntüle

@@ -10,23 +10,25 @@
10 10
         </div>
11 11
         <el-table :data="tableData" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" >
12 12
             <el-table-column type="selection" width="55" align="center"></el-table-column>
13
-            <el-table-column label="时间" width="120">
13
+            <!-- <el-table-column label="时间" width="120">
14 14
                <template slot-scope="scope">
15 15
                    {{getTime(scope.row.start_time)}}
16 16
                </template>
17
-            </el-table-column>
18
-            <el-table-column label="班次" width="120">
17
+            </el-table-column> -->
18
+            <el-table-column label="创建日期" width="120">
19 19
                 <template slot-scope="scope">
20
-                   <span v-if="scope.row.class == 1">上午</span>
21
-                   <span v-if="scope.row.class == 2">中午</span>
22
-                   <span v-if="scope.row.class == 3">下午</span>
20
+                  <!-- {{getTime(scope.row.created_ime)}} -->
21
+                 {{getTime(scope.row.created_time)}}
23 22
                 </template>
24 23
             </el-table-column>
25
-            <el-table-column label="创建日期" width="120">
24
+            <el-table-column label="班次" width="120">
26 25
                 <template slot-scope="scope">
27
-                  {{getTime(scope.row.created_ime)}}
26
+                   <span v-if="scope.row.class == 1">上午</span>
27
+                   <span v-if="scope.row.class == 2">下午</span>
28
+                   <span v-if="scope.row.class == 3">晚上</span>
28 29
                 </template>
29 30
             </el-table-column>
31
+         
30 32
             <el-table-column label="消毒方式" width="120">
31 33
                 <template slot-scope="scope">
32 34
                   {{scope.row.disinfection_methods}}
@@ -68,7 +70,7 @@
68 70
                    <span v-if="scope.row.modifications == 2">撤消</span>
69 71
                 </template>
70 72
             </el-table-column>
71
-            <el-table-column label="操作" align="center" width="180">
73
+            <el-table-column label="操作" align="center" width="180" fixed="right">
72 74
                 <template slot-scope="scope">
73 75
                     <el-button
74 76
                     size="mini"
@@ -99,13 +101,21 @@
99 101
         title="新增物表消毒表"
100 102
         :visible.sync="dialogFormVisible">
101 103
             <el-form :model="form" ref="form" class="airForm" :rules="airRules">
102
-                <el-form-item label="时间" label-width="110px" required prop="start_time">
104
+                <!-- <el-form-item label="时间" label-width="110px" required prop="start_time">
103 105
                     <el-date-picker
104 106
                      value-format="yyyy-MM-dd"
105 107
                     v-model="form.start_time"
106 108
                     type="date"
107 109
                     placeholder="选择日期时间">
108 110
                     </el-date-picker>
111
+                </el-form-item> -->
112
+               <el-form-item label="创建日期" label-width="110px" required prop="created_time">
113
+                  <el-date-picker
114
+                    value-format="yyyy-MM-dd"
115
+                    v-model="form.created_time"
116
+                    type="date"
117
+                    placeholder="选择日期时间">
118
+                    </el-date-picker>
109 119
                 </el-form-item>
110 120
                 <el-form-item label="班次" label-width="110px" required prop="class">
111 121
                     <el-select v-model="form.class" placeholder="请选择消毒班次">
@@ -114,14 +124,7 @@
114 124
                         <el-option label="晚上" value="3"></el-option>
115 125
                     </el-select>
116 126
                 </el-form-item>
117
-                <el-form-item label="创建日期" label-width="110px" required prop="created_time">
118
-                  <el-date-picker
119
-                    value-format="yyyy-MM-dd"
120
-                    v-model="form.created_time"
121
-                    type="date"
122
-                    placeholder="选择日期时间">
123
-                    </el-date-picker>
124
-                </el-form-item>
127
+               
125 128
                 <el-form-item label="消毒方式" label-width="110px">
126 129
                     <el-input v-model="form.disinfection_methods"></el-input>
127 130
                 </el-form-item>
@@ -190,13 +193,21 @@
190 193
         title="编辑物表消毒表"
191 194
         :visible.sync="editDialogFormVisible">
192 195
             <el-form :model="form" ref="form" class="airForm" :rules="airRules">
193
-                <el-form-item label="时间" label-width="110px" required prop="start_time">
196
+                <!-- <el-form-item label="时间" label-width="110px" required prop="start_time">
194 197
                     <el-date-picker
195 198
                      value-format="yyyy-MM-dd"
196 199
                     v-model="form.start_time"
197 200
                     type="date"
198 201
                     placeholder="选择日期时间">
199 202
                     </el-date-picker>
203
+                </el-form-item> -->
204
+               <el-form-item label="创建日期" label-width="110px" required prop="created_time">
205
+                  <el-date-picker
206
+                    value-format="yyyy-MM-dd"
207
+                    v-model="form.created_time"
208
+                    type="date"
209
+                    placeholder="选择日期时间">
210
+                    </el-date-picker>
200 211
                 </el-form-item>
201 212
                 <el-form-item label="班次" label-width="110px" required prop="class">
202 213
                     <el-select v-model="form.class" placeholder="请选择消毒班次">
@@ -205,14 +216,7 @@
205 216
                         <el-option label="晚上" value="3"></el-option>
206 217
                     </el-select>
207 218
                 </el-form-item>
208
-                <el-form-item label="创建日期" label-width="110px" required prop="created_time">
209
-                  <el-date-picker
210
-                    value-format="yyyy-MM-dd"
211
-                    v-model="form.created_time"
212
-                    type="date"
213
-                    placeholder="选择日期时间">
214
-                    </el-date-picker>
215
-                </el-form-item>
219
+              
216 220
                 <el-form-item label="消毒方式" label-width="110px">
217 221
                     <el-input v-model="form.disinfection_methods"></el-input>
218 222
                 </el-form-item>
@@ -283,6 +287,7 @@
283 287
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
284 288
   import { getAllDoctorList,saveBodyDisinfect,getBodyList,getBodyDisinfectDetail,updateBodyDisinfect,deleteBodyDisinfect } from "@/api/device"
285 289
   import { uParseTime } from '@/utils/tools'
290
+  const moment = require('moment')
286 291
   export default {
287 292
     name: 'airDisinfect',
288 293
     components: {
@@ -300,7 +305,7 @@
300 305
         form: {
301 306
           id:0,
302 307
           start_time:"", 
303
-          created_time:"",
308
+          created_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
304 309
           class:"",
305 310
           disinfection_methods:"",
306 311
           disinfection_fluid:"",
@@ -402,12 +407,13 @@
402 407
                var total = response.data.data.total
403 408
                this.tableData = list
404 409
                this.total = total
405
-               console.log("list222",list)
410
+               console.log("物表消毒",list)
406 411
                console.log("total",total)
407 412
              }
408 413
           })
409 414
         },
410 415
       getTime(val) {
416
+        console.log('val2222',val)
411 417
          if(val == ""){
412 418
           return ""
413 419
          }else {
@@ -437,11 +443,11 @@
437 443
         getBodyDisinfectDetail(id).then(response=>{
438 444
             if(response.data.state ==1){
439 445
                var detail =  response.data.data.detail
440
-               console.log("detail",detail)
446
+               console.log("detail2222",detail)
441 447
                this.form.id = detail.id
442 448
                this.form.start_time = this.getTime(detail.start_time)
443 449
                this.form.class = detail.class.toString()
444
-               this.form.created_ime = this.getTime(detail.created_time)
450
+               this.form.created_time = this.getTime(detail.created_time)
445 451
                this.form.disinfection_methods = detail.disinfection_methods
446 452
                this.form.disinfection_fluid = detail.disinfection_fluid
447 453
                this.form.sort = detail.sort
@@ -532,3 +538,9 @@
532 538
     }
533 539
 }
534 540
 </style>
541
+
542
+<style lang="scss">
543
+::-webkit-scrollbar{
544
+  height: 15px;
545
+}
546
+</style>

+ 3 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue Dosyayı Görüntüle

@@ -212,9 +212,9 @@
212 212
                     (<label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-左')" showValue="左"></label-box>
213 213
                         <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '内瘘-右')" showValue="右"></label-box>)
214 214
                     &nbsp;
215
-                    <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '中心静脉置管-左') || isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '中心静脉置管-右')" showValue="中心静脉置管"></label-box>
216
-                    (<label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '中心静脉置管-左')" showValue="左"></label-box>
217
-                        <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '中心静脉置管-右')" showValue="右"></label-box>)部位
215
+                    <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '中心静脉置管-左') || isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '中心静脉置管-右') || isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '临时中心静脉管-左') || isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '临时中心静脉管-右')" showValue="中心静脉置管"></label-box>
216
+                    (<label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '中心静脉置管-左') || isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '临时中心静脉管-左')" showValue="左"></label-box>
217
+                        <label-box :isChecked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '中心静脉置管-右') || isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '临时中心静脉管-右')" showValue="右"></label-box>)部位
218 218
                     &nbsp;
219 219
                     <!-- <label-box :isChecked="record.assessment_before_dislysis.blood_access_part_id ? (record.assessment_before_dislysis.blood_access_part_id == getIsCheckDataConfig('hemodialysis', 'vascular_access','颈内')) : false" showValue="颈内"></label-box>
220 220
                     &nbsp;

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue Dosyayı Görüntüle

@@ -139,9 +139,9 @@
139 139
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
140 140
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="右"></label-box>)
141 141
           &nbsp;
142
-          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右') > -1 ? true : false" showValue="中心静脉置管"></label-box>
143
-          (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左') > -1 ? true : false" showValue="左"></label-box>
144
-              <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右') > -1 ? true : false" showValue="右"></label-box>)部位
142
+          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('临时中心静脉管-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('临时中心静脉管-右') > -1 ? true : false" showValue="中心静脉置管"></label-box>
143
+          (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('临时中心静脉管-左') > -1 ? true : false" showValue="左"></label-box>
144
+              <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('临时中心静脉管-右') > -1 ? true : false" showValue="右"></label-box>)部位
145 145
           &nbsp;
146 146
           <!-- <label-box :isChecked="predialysis.blood_access_part_id > 0 ? (getPartName(predialysis.blood_access_part_id).indexOf('颈内') > -1 ? true : false) : false" showValue="颈内"></label-box>
147 147
           &nbsp;

+ 2 - 5
src/xt_pages/management/components/QualityForm.vue Dosyayı Görüntüle

@@ -3562,11 +3562,8 @@ export default {
3562 3562
       });
3563 3563
     },
3564 3564
     queryTable() {
3565
-      queryTable(
3566
-        this.forms.bed,
3567
-        this.forms.start_time,
3568
-        this.forms.end_time
3569
-      ).then(response => {
3565
+     
3566
+      queryTable(this.forms.bed,this.forms.start_time,this.forms.end_time).then(response => {
3570 3567
         if (response.data.state === 1) {
3571 3568
           var cultures = response.data.data.cultures;
3572 3569
           

+ 178 - 165
src/xt_pages/management/home.vue Dosyayı Görüntüle

@@ -1363,6 +1363,7 @@
1363 1363
                       <div v-show="zhiShow">
1364 1364
                        <el-tabs type="border-card" v-model="activeNameSix" @tab-click="handleClick">
1365 1365
                          <el-tab-pane label="新增质量控制" name="first">
1366
+  
1366 1367
                            <span style="margin-bottom: 20px;display: block;">细菌培养</span>
1367 1368
                            <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
1368 1369
                              <el-row>
@@ -1471,9 +1472,9 @@
1471 1472
                                </el-col>
1472 1473
                              </el-row>
1473 1474
                              <el-row>
1474
-                               <el-col :span="24">
1475
+                               <!-- <el-col :span="24">
1475 1476
                                  <span style="color:#FF9900">注:细菌检测应每个月一次,要求细菌数<100cfu/ml</span>
1476
-                               </el-col>
1477
+                               </el-col> -->
1477 1478
                              </el-row>
1478 1479
                              <el-row>
1479 1480
                                 <div class="clearn">
@@ -1596,9 +1597,9 @@
1596 1597
                                 </el-col>
1597 1598
                               </el-row>
1598 1599
                               <el-row>
1599
-                                  <el-col :span="24">
1600
+                                  <!-- <el-col :span="24">
1600 1601
                                     <span style="color:#FF9900">注:内毒素检测应至少每3个月1次,要求内毒素<0.25EU/ml,每台透析机每年至少检测一次</span>
1601
-                                   </el-col>
1602
+                                   </el-col> -->
1602 1603
                               </el-row>
1603 1604
                               <el-row>
1604 1605
                                 <div class="clearn">
@@ -1614,6 +1615,161 @@
1614 1615
                             <el-divider></el-divider>
1615 1616
                            
1616 1617
 
1618
+                          
1619
+                          <div v-if="device_type == 1">
1620
+                           <span style="margin-bottom: 20px;display: block;">透析液离子浓度检测</span>
1621
+                            <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
1622
+                              <el-row>
1623
+                                <el-col :span="8">
1624
+                                    <el-form-item label="取样日期:">
1625
+                                        <el-date-picker
1626
+                                          v-model="qualityFormThree.dateb"
1627
+                                          prefix-icon="none"
1628
+                                          type="date"
1629
+                                          placeholder="请选择"
1630
+                                          format="yyyy-MM-dd"
1631
+                                          value-format="yyyy-MM-dd"
1632
+                                          style="width:150px">
1633
+                                        </el-date-picker>
1634
+                                    </el-form-item>
1635
+                                </el-col>
1636
+                                <el-col :span="8">
1637
+                                    <el-form-item label="取样者:" required prop="samplerc">
1638
+                                      <el-select style="width:150px"  v-model="qualityFormThree.samplerc">
1639
+                                        <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
1640
+                                      </el-select>
1641
+                                   </el-form-item>
1642
+                                </el-col>
1643
+                                  <el-col :span="8">
1644
+                                   <el-form-item label="检测单位:" required prop="detection_unit">
1645
+                                      <el-input style="width:150px" v-model ="qualityFormThree.detection_unit"></el-input>
1646
+                                   </el-form-item>
1647
+                                </el-col>
1648
+                              </el-row>
1649
+                              <el-row>
1650
+                                 <el-col :span="8">
1651
+                                     <el-form-item label="A浓缩液批号:">
1652
+                                       <el-input style="width:150px" v-model="qualityFormThree.concentrate_nof"></el-input>
1653
+                                     </el-form-item>
1654
+                                  </el-col>
1655
+                                   <el-col :span="8">
1656
+                                     <el-form-item label="B浓缩液批号:">
1657
+                                       <el-input style="width:150px" v-model="qualityFormThree.concentrate_nog"></el-input>
1658
+                                     </el-form-item>
1659
+                                  </el-col>
1660
+                                   <el-col :span="8">
1661
+                                    <el-form-item label="出报告日期:" required prop="date_reportc">
1662
+                                        <el-date-picker
1663
+                                          v-model="qualityFormThree.date_reportc"
1664
+                                          prefix-icon="none"
1665
+                                          type="date"
1666
+                                          placeholder="请选择"
1667
+                                          format="yyyy-MM-dd"
1668
+                                          value-format="yyyy-MM-dd"
1669
+                                          style="width:150px">
1670
+                                        </el-date-picker>
1671
+                                    </el-form-item>
1672
+                                </el-col>
1673
+                                
1674
+                              </el-row>
1675
+                            
1676
+                              <el-row>
1677
+                                <el-col :span="8">
1678
+                                  <!-- <span>Na<sup>+</sup></span> -->
1679
+                                   <el-form-item class="newItem" label="实际Na⁺(mmol/L):" label-width="100">
1680
+                                        <el-input style="width:123px" v-model="qualityFormThree.actual_na"></el-input>
1681
+                                    </el-form-item>
1682
+                                </el-col>
1683
+                                 <el-col :span="8">
1684
+                                    <el-form-item class="newItem" label="配方Na⁺(mmol/L):" label-width="100">
1685
+                                        <el-input style="width:123px" v-model="qualityFormThree.actual_pna"></el-input>
1686
+                                    </el-form-item>
1687
+                                </el-col>
1688
+                                 <el-col :span="8">
1689
+                                    <el-form-item label="K⁺(mmol/L):">
1690
+                                        <el-input style="width:150px" v-model="qualityFormThree.actual_k"></el-input>
1691
+                                    </el-form-item>
1692
+                                </el-col>
1693
+
1694
+                              </el-row>
1695
+                               <el-row>
1696
+                                <el-col :span="8">
1697
+                                    <el-form-item label="Ca2⁺(mmol/L):">
1698
+                                        <el-input style="width:150px" v-model="qualityFormThree.actual_ca"></el-input>
1699
+                                    </el-form-item>
1700
+                                </el-col>
1701
+                                 <el-col :span="8">
1702
+                                    <el-form-item label="CI¯(mmol/L):">
1703
+                                        <el-input style="width:150px" v-model="qualityFormThree.actual_ci"></el-input>
1704
+                                    </el-form-item>
1705
+                                </el-col>
1706
+                                 <el-col :span="8">
1707
+                                    <el-form-item label="HCO3¯(mmol/L):">
1708
+                                        <el-input style="width:150px" v-model="qualityFormThree.actual_hco"></el-input>
1709
+                                    </el-form-item>
1710
+                                </el-col>
1711
+                              </el-row>
1712
+                              <el-row>
1713
+                                 <el-col :span="8">
1714
+                                    <el-form-item label="Mg2⁺(mmol/L):">
1715
+                                        <el-input style="width:150px" v-model="qualityFormThree.actual_mg"></el-input>
1716
+                                    </el-form-item>
1717
+                                </el-col>
1718
+                                <el-col :span="8">
1719
+                                  <el-form-item label="PH:">
1720
+                                     <el-input style="width:150px" v-model="qualityFormThree.actual_ph"></el-input>
1721
+                                  </el-form-item>
1722
+                                </el-col>
1723
+                                <el-col :span="8">
1724
+                                  <el-form-item label="顺序号:" required prop="sort">
1725
+                                    <el-input v-model="qualityFormThree.sort" style="width:150px"></el-input>
1726
+                                  </el-form-item>
1727
+                                </el-col>
1728
+                              </el-row>
1729
+                              <el-row>
1730
+                                <div></div>
1731
+                              </el-row>
1732
+                               <el-row>
1733
+                                  <el-col :span="8">
1734
+                                      <el-form-item label="检测合格:" required prop="pass_examination">
1735
+                                        <el-radio v-model="qualityFormThree.pass_examination" label="1">是</el-radio>
1736
+                                        <el-radio v-model="qualityFormThree.pass_examination" label="2">否</el-radio>
1737
+                                      </el-form-item>
1738
+                                  </el-col>
1739
+                                  <el-col :span="8">
1740
+                                      <el-form-item label="修改标志:" required prop="modifications">
1741
+                                        <el-select style="width:150px"  v-model="qualityFormThree.modifications">
1742
+                                          <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
1743
+                                        </el-select>
1744
+                                      </el-form-item>
1745
+                                  </el-col>
1746
+                             </el-row>
1747
+                              <el-row>
1748
+                                <el-col :span="24">
1749
+                                  <el-form-item label="备注:">
1750
+                                     <el-input
1751
+                                        type="textarea"
1752
+                                        :rows="2"
1753
+                                         placeholder="请输入内容"
1754
+                                         style="width:500px"
1755
+                                         v-model="qualityFormThree.remakes"
1756
+                                         >
1757
+                                      </el-input>
1758
+                                  </el-form-item>
1759
+                                </el-col>
1760
+                              </el-row>
1761
+                              <el-row>
1762
+                                <div class="clearn">
1763
+                                  <el-col :span="4">
1764
+                                    <el-button @click="cleanQuality">取消</el-button>
1765
+                                  </el-col>
1766
+                                   <el-col :span="4">
1767
+                                    <el-button type="primary" @click="SaveQualityControl('qualityFormThree')">保存</el-button>
1768
+                                  </el-col>
1769
+                                </div>
1770
+                              </el-row>
1771
+                            </el-form>
1772
+
1617 1773
 
1618 1774
 
1619 1775
                             <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
@@ -1723,9 +1879,9 @@
1723 1879
                                 </el-col>
1724 1880
                               </el-row>
1725 1881
                               <el-row>
1726
-                                  <el-col :span="24">
1882
+                                  <!-- <el-col :span="24">
1727 1883
                                     <span style="color:#FF9900">注:有毒化合物检测应至少每3个月1次,每台透析机每年至少检测一次</span>
1728
-                                   </el-col>
1884
+                                   </el-col> -->
1729 1885
                               </el-row>
1730 1886
                               <el-row>
1731 1887
                                 <div class="clearn">
@@ -1739,9 +1895,14 @@
1739 1895
                               </el-row>
1740 1896
                             </el-form>
1741 1897
                             <el-divider></el-divider>
1898
+                         </div>     
1899
+                             
1900
+
1742 1901
                              
1743 1902
 
1744 1903
 
1904
+
1905
+
1745 1906
                             <span style="margin-bottom: 20px;display: block;">水硬度检测</span>
1746 1907
                             <el-form ref="qualityFormFive" :model="qualityFormFive" :rules="diaRules">
1747 1908
                               <el-row>
@@ -1848,11 +2009,11 @@
1848 2009
                                   </el-form-item>
1849 2010
                                 </el-col>
1850 2011
                               </el-row>
1851
-                              <el-row>
2012
+                              <!-- <el-row>
1852 2013
                                   <el-col :span="24">
1853 2014
                                     <span style="color:#FF9900">注:水硬度检测应至少每3个月1次,每台透析机每年至少检测一次</span>
1854 2015
                                    </el-col>
1855
-                              </el-row>
2016
+                              </el-row> -->
1856 2017
                               <el-row>
1857 2018
                                 <div class="clearn">
1858 2019
                                   <el-col :span="4">
@@ -1975,11 +2136,11 @@
1975 2136
                                   </el-form-item>
1976 2137
                                 </el-col>
1977 2138
                               </el-row>
1978
-                              <el-row>
2139
+                              <!-- <el-row>
1979 2140
                                   <el-col :span="24">
1980 2141
                                     <span style="color:#FF9900">注:水游离氯检测应至少每3个月1次,每台透析机每年至少检测一次</span>
1981 2142
                                    </el-col>
1982
-                              </el-row>
2143
+                              </el-row> -->
1983 2144
                               <el-row>
1984 2145
                                 <div class="clearn">
1985 2146
                                   <el-col :span="4">
@@ -2101,11 +2262,11 @@
2101 2262
                                   </el-form-item>
2102 2263
                                 </el-col>
2103 2264
                               </el-row>
2104
-                              <el-row>
2265
+                              <!-- <el-row>
2105 2266
                                   <el-col :span="24">
2106 2267
                                     <span style="color:#FF9900">注:PH值检测检测应至少每3个月1次,每台透析机每年至少检测一次</span>
2107 2268
                                    </el-col>
2108
-                              </el-row>
2269
+                              </el-row> -->
2109 2270
                               <el-row>
2110 2271
                                 <div class="clearn">
2111 2272
                                   <el-col :span="4">
@@ -2121,158 +2282,7 @@
2121 2282
 
2122 2283
 
2123 2284
 
2124
-                            <span style="margin-bottom: 20px;display: block;">透析液离子浓度检测</span>
2125
-                            <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
2126
-                              <el-row>
2127
-                                <el-col :span="8">
2128
-                                    <el-form-item label="取样日期:">
2129
-                                        <el-date-picker
2130
-                                          v-model="qualityFormThree.dateb"
2131
-                                          prefix-icon="none"
2132
-                                          type="date"
2133
-                                          placeholder="请选择"
2134
-                                          format="yyyy-MM-dd"
2135
-                                          value-format="yyyy-MM-dd"
2136
-                                          style="width:150px">
2137
-                                        </el-date-picker>
2138
-                                    </el-form-item>
2139
-                                </el-col>
2140
-                                <el-col :span="8">
2141
-                                    <el-form-item label="取样者:" required prop="samplerc">
2142
-                                      <el-select style="width:150px"  v-model="qualityFormThree.samplerc">
2143
-                                        <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
2144
-                                      </el-select>
2145
-                                   </el-form-item>
2146
-                                </el-col>
2147
-                                  <el-col :span="8">
2148
-                                   <el-form-item label="检测单位:" required prop="detection_unit">
2149
-                                      <el-input style="width:150px" v-model ="qualityFormThree.detection_unit"></el-input>
2150
-                                   </el-form-item>
2151
-                                </el-col>
2152
-                              </el-row>
2153
-                              <el-row>
2154
-                                 <el-col :span="8">
2155
-                                     <el-form-item label="A浓缩液批号:">
2156
-                                       <el-input style="width:150px" v-model="qualityFormThree.concentrate_nof"></el-input>
2157
-                                     </el-form-item>
2158
-                                  </el-col>
2159
-                                   <el-col :span="8">
2160
-                                     <el-form-item label="B浓缩液批号:">
2161
-                                       <el-input style="width:150px" v-model="qualityFormThree.concentrate_nog"></el-input>
2162
-                                     </el-form-item>
2163
-                                  </el-col>
2164
-                                   <el-col :span="8">
2165
-                                    <el-form-item label="出报告日期:" required prop="date_reportc">
2166
-                                        <el-date-picker
2167
-                                          v-model="qualityFormThree.date_reportc"
2168
-                                          prefix-icon="none"
2169
-                                          type="date"
2170
-                                          placeholder="请选择"
2171
-                                          format="yyyy-MM-dd"
2172
-                                          value-format="yyyy-MM-dd"
2173
-                                          style="width:150px">
2174
-                                        </el-date-picker>
2175
-                                    </el-form-item>
2176
-                                </el-col>
2177
-                                
2178
-                              </el-row>
2179
-                            
2180
-                              <el-row>
2181
-                                <el-col :span="8">
2182
-                                  <!-- <span>Na<sup>+</sup></span> -->
2183
-                                   <el-form-item class="newItem" label="实际Na⁺(mmol/L):" label-width="100">
2184
-                                        <el-input style="width:123px" v-model="qualityFormThree.actual_na"></el-input>
2185
-                                    </el-form-item>
2186
-                                </el-col>
2187
-                                 <el-col :span="8">
2188
-                                    <el-form-item class="newItem" label="配方Na⁺(mmol/L):" label-width="100">
2189
-                                        <el-input style="width:123px" v-model="qualityFormThree.actual_pna"></el-input>
2190
-                                    </el-form-item>
2191
-                                </el-col>
2192
-                                 <el-col :span="8">
2193
-                                    <el-form-item label="K⁺(mmol/L):">
2194
-                                        <el-input style="width:150px" v-model="qualityFormThree.actual_k"></el-input>
2195
-                                    </el-form-item>
2196
-                                </el-col>
2197
-
2198
-                              </el-row>
2199
-                               <el-row>
2200
-                                <el-col :span="8">
2201
-                                    <el-form-item label="Ca2⁺(mmol/L):">
2202
-                                        <el-input style="width:150px" v-model="qualityFormThree.actual_ca"></el-input>
2203
-                                    </el-form-item>
2204
-                                </el-col>
2205
-                                 <el-col :span="8">
2206
-                                    <el-form-item label="CI¯(mmol/L):">
2207
-                                        <el-input style="width:150px" v-model="qualityFormThree.actual_ci"></el-input>
2208
-                                    </el-form-item>
2209
-                                </el-col>
2210
-                                 <el-col :span="8">
2211
-                                    <el-form-item label="HCO3¯(mmol/L):">
2212
-                                        <el-input style="width:150px" v-model="qualityFormThree.actual_hco"></el-input>
2213
-                                    </el-form-item>
2214
-                                </el-col>
2215
-                              </el-row>
2216
-                              <el-row>
2217
-                                 <el-col :span="8">
2218
-                                    <el-form-item label="Mg2⁺(mmol/L):">
2219
-                                        <el-input style="width:150px" v-model="qualityFormThree.actual_mg"></el-input>
2220
-                                    </el-form-item>
2221
-                                </el-col>
2222
-                                <el-col :span="8">
2223
-                                  <el-form-item label="PH:">
2224
-                                     <el-input style="width:150px" v-model="qualityFormThree.actual_ph"></el-input>
2225
-                                  </el-form-item>
2226
-                                </el-col>
2227
-                                <el-col :span="8">
2228
-                                  <el-form-item label="顺序号:" required prop="sort">
2229
-                                    <el-input v-model="qualityFormThree.sort" style="width:150px"></el-input>
2230
-                                  </el-form-item>
2231
-                                </el-col>
2232
-                              </el-row>
2233
-                              <el-row>
2234
-                                <div></div>
2235
-                              </el-row>
2236
-                               <el-row>
2237
-                                  <el-col :span="8">
2238
-                                      <el-form-item label="检测合格:" required prop="pass_examination">
2239
-                                        <el-radio v-model="qualityFormThree.pass_examination" label="1">是</el-radio>
2240
-                                        <el-radio v-model="qualityFormThree.pass_examination" label="2">否</el-radio>
2241
-                                      </el-form-item>
2242
-                                  </el-col>
2243
-                                  <el-col :span="8">
2244
-                                      <el-form-item label="修改标志:" required prop="modifications">
2245
-                                        <el-select style="width:150px"  v-model="qualityFormThree.modifications">
2246
-                                          <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
2247
-                                        </el-select>
2248
-                                      </el-form-item>
2249
-                                  </el-col>
2250
-                             </el-row>
2251
-                              <el-row>
2252
-                                <el-col :span="24">
2253
-                                  <el-form-item label="备注:">
2254
-                                     <el-input
2255
-                                        type="textarea"
2256
-                                        :rows="2"
2257
-                                         placeholder="请输入内容"
2258
-                                         style="width:500px"
2259
-                                         v-model="qualityFormThree.remakes"
2260
-                                         >
2261
-                                      </el-input>
2262
-                                  </el-form-item>
2263
-                                </el-col>
2264
-                              </el-row>
2265
-                              <el-row>
2266
-                                <div class="clearn">
2267
-                                  <el-col :span="4">
2268
-                                    <el-button @click="cleanQuality">取消</el-button>
2269
-                                  </el-col>
2270
-                                   <el-col :span="4">
2271
-                                    <el-button type="primary" @click="SaveQualityControl('qualityFormThree')">保存</el-button>
2272
-                                  </el-col>
2273
-                                </div>
2274
-                              </el-row>
2275
-                               </el-form>
2285
+                          
2276 2286
 
2277 2287
                          </el-tab-pane>
2278 2288
 
@@ -3204,7 +3214,8 @@ export default {
3204 3214
         modifications:[
3205 3215
           {id:1,name:"正常"},
3206 3216
           {id:2,name:"撤销"}
3207
-        ]
3217
+        ],
3218
+        device_type:""
3208 3219
       }
3209 3220
     },
3210 3221
     methods: {
@@ -3332,6 +3343,8 @@ export default {
3332 3343
         this.tabIndex = index
3333 3344
       },
3334 3345
       handleCurrentChange(val) {
3346
+        console.log("Val222222222",val)
3347
+        this.device_type = val.device_type
3335 3348
         this.unitType = val.unit_type
3336 3349
         this.currentRow = val
3337 3350
         this.$forceUpdate()

+ 19 - 6
src/xt_pages/stock/cancelStockOrder.vue Dosyayı Görüntüle

@@ -199,13 +199,26 @@ export default {
199 199
     nowYear = nowDate.getFullYear();
200 200
     nowMonth = nowDate.getMonth() + 1;
201 201
     nowDay = nowDate.getDate();
202
-    this.start_time =
203
-      nowYear +
204
-      "-" +
205
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
206
-      "-" +
207
-      (nowDay < 10 ? "0" + nowDay : nowDay);
202
+    // this.start_time =
203
+    //   nowYear +
204
+    //   "-" +
205
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
206
+    //   "-" +
207
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
208
+    var date1 = new Date();
209
+    var date2 = new Date(date1);
210
+
211
+    //-30为30天前,+30可以获得30天后的日期
212
+    date2.setDate(date1.getDate() - 30);
213
+
214
+    //30天前(月份判断是否小于10,小于10的前面+0)
215
+    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
216
+      
217
+    //当前日期
218
+    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
208 219
 
220
+     this.start_time = agoDay
221
+     console.log("333333332222",this.start_time)
209 222
     this.GetCancelStock();
210 223
     this.GetConfigInfo();
211 224
     this.fetchAllAdminUsers();

+ 20 - 6
src/xt_pages/stock/drugs/cancelDrugStockOrder.vue Dosyayı Görüntüle

@@ -201,13 +201,27 @@ export default {
201 201
     nowYear = nowDate.getFullYear();
202 202
     nowMonth = nowDate.getMonth() + 1;
203 203
     nowDay = nowDate.getDate();
204
-    this.start_time =
205
-      nowYear +
206
-      "-" +
207
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
208
-      "-" +
209
-      (nowDay < 10 ? "0" + nowDay : nowDay);
204
+    // this.start_time =
205
+    //   nowYear +
206
+    //   "-" +
207
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
208
+    //   "-" +
209
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
210
+   
211
+    var date1 = new Date();
212
+    var date2 = new Date(date1);
213
+
214
+    //-30为30天前,+30可以获得30天后的日期
215
+    date2.setDate(date1.getDate() - 30);
216
+
217
+    //30天前(月份判断是否小于10,小于10的前面+0)
218
+    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
219
+      
220
+    //当前日期
221
+    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
210 222
 
223
+     this.start_time = agoDay
224
+     console.log("333333332222",this.start_time)
211 225
     this.GetCancelStock();
212 226
     this.GetConfigInfo();
213 227
     this.fetchAllAdminUsers();

+ 20 - 6
src/xt_pages/stock/drugs/drugSalesReturnOrder.vue Dosyayı Görüntüle

@@ -197,13 +197,27 @@ export default {
197 197
     nowYear = nowDate.getFullYear();
198 198
     nowMonth = nowDate.getMonth() + 1;
199 199
     nowDay = nowDate.getDate();
200
-    this.start_time =
201
-      nowYear +
202
-      "-" +
203
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
204
-      "-" +
205
-      (nowDay < 10 ? "0" + nowDay : nowDay);
200
+    // this.start_time =
201
+    //   nowYear +
202
+    //   "-" +
203
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
204
+    //   "-" +
205
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
206
+    
207
+    var date1 = new Date();
208
+    var date2 = new Date(date1);
209
+
210
+    //-30为30天前,+30可以获得30天后的日期
211
+    date2.setDate(date1.getDate() - 30);
212
+
213
+    //30天前(月份判断是否小于10,小于10的前面+0)
214
+    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
215
+      
216
+    //当前日期
217
+    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
206 218
 
219
+     this.start_time = agoDay
220
+     console.log("333333332222",this.start_time)
207 221
     this.GetSalesReturn();
208 222
     this.GetConfigInfo();
209 223
     this.fetchAllAdminUsers();

+ 20 - 7
src/xt_pages/stock/drugs/drugStockInOrder.vue Dosyayı Görüntüle

@@ -315,14 +315,27 @@ export default {
315 315
     nowYear = nowDate.getFullYear();
316 316
     nowMonth = nowDate.getMonth() + 1;
317 317
     nowDay = nowDate.getDate();
318
-    this.start_time =
319
-      nowYear +
320
-      "-" +
321
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
322
-      "-" +
323
-      (nowDay < 10 ? "0" + nowDay : nowDay);
318
+    // this.start_time =
319
+    //   nowYear +
320
+    //   "-" +
321
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
322
+    //   "-" +
323
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
324 324
     
325
-   
325
+    var date1 = new Date();
326
+    var date2 = new Date(date1);
327
+
328
+    //-30为30天前,+30可以获得30天后的日期
329
+    date2.setDate(date1.getDate() - 30);
330
+
331
+    //30天前(月份判断是否小于10,小于10的前面+0)
332
+    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
333
+      
334
+    //当前日期
335
+    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
336
+
337
+     this.start_time = agoDay
338
+     console.log("333333332222",this.start_time)
326 339
     this.GetWarehouse();
327 340
     this.GetConfigInfo();
328 341
     this.fetchAllAdminUsers();

+ 20 - 6
src/xt_pages/stock/drugs/drugStockOutOrder.vue Dosyayı Görüntüle

@@ -379,12 +379,26 @@ export default {
379 379
     nowYear = nowDate.getFullYear();
380 380
     nowMonth = nowDate.getMonth() + 1;
381 381
     nowDay = nowDate.getDate();
382
-    this.start_time =
383
-      nowYear +
384
-      "-" +
385
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
386
-      "-" +
387
-      (nowDay < 10 ? "0" + nowDay : nowDay);
382
+    // this.start_time =
383
+    //   nowYear +
384
+    //   "-" +
385
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
386
+    //   "-" +
387
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
388
+       var date1 = new Date();
389
+    var date2 = new Date(date1);
390
+
391
+    //-30为30天前,+30可以获得30天后的日期
392
+    date2.setDate(date1.getDate() - 30);
393
+
394
+    //30天前(月份判断是否小于10,小于10的前面+0)
395
+    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
396
+      
397
+    //当前日期
398
+    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
399
+
400
+     this.start_time = agoDay
401
+     console.log("333333332222",this.start_time)
388 402
     this.GetWarehouseOut();
389 403
     this.GetConfigInfo();
390 404
     this.fetchAllAdminUsers();

+ 20 - 6
src/xt_pages/stock/salesReturnOrder.vue Dosyayı Görüntüle

@@ -198,13 +198,27 @@ export default {
198 198
     nowYear = nowDate.getFullYear();
199 199
     nowMonth = nowDate.getMonth() + 1;
200 200
     nowDay = nowDate.getDate();
201
-    this.start_time =
202
-      nowYear +
203
-      "-" +
204
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
205
-      "-" +
206
-      (nowDay < 10 ? "0" + nowDay : nowDay);
201
+    // this.start_time =
202
+    //   nowYear +
203
+    //   "-" +
204
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
205
+    //   "-" +
206
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
207
+    
208
+    var date1 = new Date();
209
+    var date2 = new Date(date1);
210
+
211
+    //-30为30天前,+30可以获得30天后的日期
212
+    date2.setDate(date1.getDate() - 30);
213
+
214
+    //30天前(月份判断是否小于10,小于10的前面+0)
215
+    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
216
+      
217
+    //当前日期
218
+    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
207 219
 
220
+     this.start_time = agoDay
221
+     console.log("333333332222",this.start_time)
208 222
     this.GetSalesReturn();
209 223
     this.GetConfigInfo();
210 224
     this.fetchAllAdminUsers();

+ 20 - 7
src/xt_pages/stock/stockInOrder.vue Dosyayı Görüntüle

@@ -589,16 +589,28 @@ export default {
589 589
     nowYear = nowDate.getFullYear();
590 590
     nowMonth = nowDate.getMonth() + 1;
591 591
     nowDay = nowDate.getDate();
592
-    this.start_time =
593
-      nowYear +
594
-      "-" +
595
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
596
-      "-" +
597
-      (nowDay < 10 ? "0" + nowDay : nowDay);
592
+    // this.start_time =
593
+    //   nowYear +
594
+    //   "-" +
595
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
596
+    //   "-" +
597
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
598 598
      
599
+  
600
+    var date1 = new Date();
601
+    var date2 = new Date(date1);
599 602
 
603
+    //-30为30天前,+30可以获得30天后的日期
604
+    date2.setDate(date1.getDate() - 30);
600 605
 
601
-     
606
+    //30天前(月份判断是否小于10,小于10的前面+0)
607
+    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
608
+      
609
+    //当前日期
610
+    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
611
+
612
+     this.start_time = agoDay
613
+     console.log("333333332222",this.start_time)
602 614
 
603 615
       // this.warehousing_time =
604 616
       //   nowYear +
@@ -741,6 +753,7 @@ export default {
741 753
         end_time: this.end_time,
742 754
         type: this.type
743 755
       };
756
+      console.log("parasm22222",Params)
744 757
       this.Warehouse.warehouseDate = [];
745 758
       getWarehouseList(Params).then(response => {
746 759
         if (response.data.state == 0) {

+ 23 - 6
src/xt_pages/stock/stockOutOrder.vue Dosyayı Görüntüle

@@ -551,12 +551,29 @@ export default {
551 551
     nowYear = nowDate.getFullYear();
552 552
     nowMonth = nowDate.getMonth() + 1;
553 553
     nowDay = nowDate.getDate();
554
-    this.start_time =
555
-      nowYear +
556
-      "-" +
557
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
558
-      "-" +
559
-      (nowDay < 10 ? "0" + nowDay : nowDay);
554
+
555
+
556
+      
557
+    var date1 = new Date();
558
+    var date2 = new Date(date1);
559
+
560
+    //-30为30天前,+30可以获得30天后的日期
561
+    date2.setDate(date1.getDate() - 30);
562
+
563
+    //30天前(月份判断是否小于10,小于10的前面+0)
564
+    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
565
+      
566
+    //当前日期
567
+    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
568
+
569
+     this.start_time = agoDay
570
+     console.log("333333332222",this.start_time)
571
+    // this.start_time =
572
+    //   nowYear +
573
+    //   "-" +
574
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
575
+    //   "-" +
576
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
560 577
     this.GetConfigInfo();
561 578
     this.GetWarehouseOut();
562 579
    

+ 2 - 1
src/xt_pages/user/patients.vue Dosyayı Görüntüle

@@ -1470,7 +1470,8 @@
1470 1470
       },
1471 1471
 
1472 1472
       jump(id) {
1473
-        this.$router.replace({ path: "/patients/inspection?id=" + id });
1473
+          // this.$router.replace({ path: "/patients/inspection?id=" + id });
1474
+          this.$router.replace({path:"/patients/patients/"+id +"/inspectionInfectious"})
1474 1475
       },
1475 1476
       dateCompare(date) {
1476 1477
         var date1 = Date.parse(new Date()) / 1000;

+ 32 - 9
src/xt_pages/workforce/appointment.vue Dosyayı Görüntüle

@@ -69,12 +69,13 @@
69 69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
70 70
         <div style="display:flex;align-items:center">
71 71
           <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' ></schedule-upload-excel>
72
-          <!-- <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
73
-            导出模版
74
-          </el-button> -->
75
-          <el-button v-if="isShow()" type="primary" size="small" @click="export_fileTwo()" :loading="downloadLoading">
72
+          <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
76 73
             导出模版
77 74
           </el-button>
75
+          <!-- <el-button v-if="isShow()" type="primary" size="small" @click="export_fileTwo()" :loading="downloadLoading">
76
+            导出模版
77
+          </el-button> -->
78
+         
78 79
           <el-button
79 80
             @click="generateLog()"
80 81
             class="filter-item"
@@ -504,10 +505,16 @@
504 505
 
505 506
             i++
506 507
           }
508
+          console.log("listw22222222",list)
509
+            var data = []
510
+          // const data = this.formatJson(filterVal, this.tableList)
511
+        
512
+          this.tableList.map(item=>{
513
+            data.push(Object.values(item))
507 514
 
508
-          const data = this.formatJson(filterVal, list)
509
-          // console.log("data",data)
510
-
515
+          })
516
+          console.log("data",data)
517
+          
511 518
           const filename = '排班模版'
512 519
           excel.export_json_to_excel({
513 520
             multiHeader,
@@ -532,7 +539,7 @@
532 539
 
533 540
           var data = []
534 541
           console.log("33333",this.tableList)
535
-
542
+         
536 543
          this.tableList.map(item=>{
537 544
            data.push(Object.values(item))
538 545
 
@@ -549,8 +556,24 @@
549 556
 
550 557
         })
551 558
       },
559
+      // formatJson(filterVal, jsonData) {
560
+      //  return jsonData.map(v => filterVal.map(j => v[j]))
561
+      // },
562
+
552 563
       formatJson(filterVal, jsonData) {
553
-       return jsonData.map(v => filterVal.map(j => v[j]))
564
+        return jsonData.map(v =>
565
+          filterVal.map(j => {
566
+            console.log(v)
567
+            console.log(j)
568
+            console.log(v[j])
569
+
570
+            if (j === 'timestamp') {
571
+              return parseTime(v[j])
572
+            } else {
573
+              return v[j]
574
+            }
575
+          })
576
+        )
554 577
       },
555 578
 
556 579