Преглед изворни кода

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

csx пре 4 година
родитељ
комит
76712c815e

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

@@ -2849,7 +2849,7 @@
2849 2849
           single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
2850 2850
         }
2851 2851
 
2852
-        if (val.advice_desc > 0) {
2852
+        if (val.advice_desc > 0 || val.advice_desc.length > 0) {
2853 2853
           advice_desc = val.advice_desc + val.drug_spec_unit
2854 2854
         }
2855 2855
 

+ 20 - 11
src/xt_pages/dialysis/schedualPatient.vue Прегледај датотеку

@@ -264,9 +264,18 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
264 264
       if(selected_date.selected_date){
265 265
         this.selected_date = selected_date.selected_date
266 266
       }
267
-      
267
+
268 268
       this.getInitData()
269
-      
269
+
270
+    }, mounted() {
271
+      const timer = setInterval(() => {
272
+        // this.getInitData();
273
+        this.requestDialysisSchedules()
274
+      }, 1000 * 30)
275
+      // 通过$once来监听定时器,在beforeDestroy钩子可以被清除。
276
+      this.$once('hook:beforeDestroy', () => {
277
+        clearInterval(timer)
278
+      })
270 279
     },
271 280
     methods: {
272 281
       // handletimeType: function(index) {
@@ -316,7 +325,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
316 325
         }else{
317 326
           this.getData()
318 327
         }
319
-        
328
+
320 329
       },
321 330
       getInitData: function() {
322 331
         getDialysisRecordInitData().then(rs => {
@@ -332,7 +341,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
332 341
             this.zone_options = zone_options
333 342
             // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
334 343
             this.requestDialysisSchedules()
335
-            
344
+
336 345
             console.log(1111111111111,this.zone_schedules)
337 346
           } else {
338 347
             this.$message.error(resp.msg)
@@ -406,15 +415,15 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
406 415
         this.getData()
407 416
       },
408 417
       getData(){
409
-    
418
+
410 419
         let patientArr = []
411 420
         patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
412 421
         // for (let i = 0; i < patientArr.length; i++) {
413
-          
422
+
414 423
         //   for (let j = 0; j < patientArr[i].schedules.length; j++) {
415 424
         //     if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
416 425
         //       // 删除元素后改变i的值
417
-              
426
+
418 427
         //       console.log("候诊区",patientArr[i].schedules[j])
419 428
         //       patientArr[i].schedules.splice(j--, 1);
420 429
         //     }
@@ -506,7 +515,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
506 515
           }
507 516
           arr2 = arr
508 517
         }
509
-        
518
+
510 519
 
511 520
         let arr3 = []
512 521
         if(this.schedule_type_selected == 0){
@@ -524,7 +533,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
524 533
           }
525 534
           arr3 = arr
526 535
         }
527
-        
536
+
528 537
 
529 538
         let arr4 = []
530 539
         if(this.zone_selected == 0){
@@ -540,8 +549,8 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
540 549
           }
541 550
           arr4 = arr
542 551
         }
543
-        
544
-        
552
+
553
+
545 554
         if(this.patientStateVal == 1){
546 555
           arr4.map((item,index) => {
547 556
             if(index != 0){

+ 7 - 4
src/xt_pages/user/components/PatientForm.vue Прегледај датотеку

@@ -932,7 +932,7 @@ const defaultForm = {
932 932
   homeTelephone: "",
933 933
   relative_phone: "",
934 934
   relative_relations: "",
935
-  lapseto: 1,
935
+  lapseto: "",
936 936
   homeAddress: "",
937 937
   work: "",
938 938
   unit_address: "",
@@ -1115,7 +1115,7 @@ const defaultForm = {
1115 1115
 };
1116 1116
 
1117 1117
 export default {
1118
-  name: "patientForm",
1118
+   name: "patientForm",
1119 1119
   props: {
1120 1120
     isEdit: {
1121 1121
       type: Boolean,
@@ -1301,6 +1301,7 @@ export default {
1301 1301
     this.orgname = xtuser.org.org_name;
1302 1302
     this.adminusername = xtuser.user.user_name;
1303 1303
 
1304
+
1304 1305
     if (this.isEdit) {
1305 1306
       this.submitMsg = "修改患者信息成功";
1306 1307
       const id = this.$route.params && this.$route.params.id;
@@ -1317,6 +1318,7 @@ export default {
1317 1318
     } else {
1318 1319
       this.submitMsg = "新增患者成功";
1319 1320
       this.form = Object.assign({}, defaultForm);
1321
+      this.form.lapseto  = 1
1320 1322
     }
1321 1323
   },
1322 1324
   watch: {
@@ -1387,6 +1389,7 @@ export default {
1387 1389
       }
1388 1390
 
1389 1391
       this.form.user_sys_before_count =  this.form.user_sys_before_count.toString()
1392
+      this.form.avatar =this.form.avatar.
1390 1393
       this.$refs[formName].validate(valid => {
1391 1394
         if (valid) {
1392 1395
           this.formSubmit = false;
@@ -1477,14 +1480,14 @@ export default {
1477 1480
       // const isJPG = file.type === "image/jpeg";
1478 1481
       var fileType = file.type;
1479 1482
       const isJPG = fileType.indexOf("image") > -1;
1480
-      const isLt2M = file.size / 1024 / 1024 < 2;
1483
+      const isLt2M = file.size / 1024 / 1024 < 6;
1481 1484
 
1482 1485
       if (!isJPG) {
1483 1486
         this.$message.error("只能上传图片");
1484 1487
         return false;
1485 1488
       }
1486 1489
       if (!isLt2M) {
1487
-        this.$message.error("上传头像图片大小不能超过 2MB!");
1490
+        this.$message.error("上传头像图片大小不能超过 6MB!");
1488 1491
         return false;
1489 1492
       }
1490 1493
 

+ 22 - 22
src/xt_pages/user/registration.vue Прегледај датотеку

@@ -4,7 +4,7 @@
4 4
     <el-form ref="form" :rules="rules" :model="form" label-width="134px" class="clearfix" >
5 5
       <div class="dataTitle">一般资料</div>
6 6
      <el-row >
7
-       
7
+
8 8
       <el-col :span="4" align="center">
9 9
         <el-upload  style="width:100%;"
10 10
           :data="uploadData"
@@ -22,7 +22,7 @@
22 22
         <el-dialog :visible.sync="dialogVisible">
23 23
           <img width="100%" :src="dialogImageUrl" alt="">
24 24
         </el-dialog>
25
-        <el-upload 
25
+        <el-upload
26 26
           :data="uploadData"
27 27
           :multiple="false"
28 28
           action="https://upload.qiniup.com"
@@ -47,7 +47,7 @@
47 47
           </el-col>
48 48
           <el-col :span="8">
49 49
             <el-form-item label="透析号 : " class="is-required" prop="dialysisNo" >
50
-                <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:47%;float:left;margin-right: 1%;" ></el-input> 
50
+                <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:47%;float:left;margin-right: 1%;" ></el-input>
51 51
                 <el-button type="primary" @click="generatedialysisno">自动生成</el-button>
52 52
             </el-form-item>
53 53
           </el-col>
@@ -112,7 +112,7 @@
112 112
           <el-form-item label="出生日期 : "  class="is-required" prop="birth" >
113 113
               <el-date-picker v-model="form.birth" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'" @change="hadSelectBirth" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
114 114
           </el-form-item>
115
-        </el-col> 
115
+        </el-col>
116 116
         <el-col :span="8">
117 117
           <el-form-item label="年龄 : " >
118 118
               <el-input v-model="form.age" ></el-input>
@@ -130,7 +130,7 @@
130 130
         </el-col>
131 131
         <el-col :span="8">
132 132
             <el-form-item label="医保号 : " >
133
-              <el-input v-model="form.healthCareNo" ></el-input>              
133
+              <el-input v-model="form.healthCareNo" ></el-input>
134 134
             </el-form-item>
135 135
         </el-col>
136 136
         <el-col :span="8">
@@ -143,7 +143,7 @@
143 143
        <el-row :gutter="10">
144 144
          <el-col :span="8">
145 145
             <el-form-item label="身高(cm) : " >
146
-              <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>              
146
+              <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>
147 147
             </el-form-item>
148 148
         </el-col>
149 149
         <el-col :span="8" style="clearfix">
@@ -164,7 +164,7 @@
164 164
             </el-form-item>
165 165
         </el-col>
166 166
        </el-row>
167
-       
167
+
168 168
        <el-row :gutter="10">
169 169
           <el-col :span="8">
170 170
             <el-form-item label="文化程度 : " >
@@ -181,10 +181,10 @@
181 181
             </el-form-item>
182 182
           </el-col>
183 183
         </el-row>
184
-            
184
+
185 185
         </el-col>
186 186
        </el-row>
187
-      
187
+
188 188
       <div class="dataTitle">联系方式</div>
189 189
       <el-row :gutter="10">
190 190
         <el-col :span="6">
@@ -235,7 +235,7 @@
235 235
         </el-col>
236 236
       </el-row>
237 237
 
238
-      
238
+
239 239
        <el-row :gutter="10">
240 240
         <el-col :span="6">
241 241
           <el-form-item label="初始透析次数 : " >
@@ -253,7 +253,7 @@
253 253
               <el-checkbox v-for="item in contagionList" :label="item.id" :key="item.id" :value="item.id">{{item.name}}</el-checkbox>
254 254
             </el-checkbox-group>
255 255
           </el-form-item>
256
-        </el-col> 
256
+        </el-col>
257 257
       </el-row>
258 258
 
259 259
       <el-row :gutter="10">
@@ -272,13 +272,13 @@
272 272
            </el-form-item>
273 273
         </el-col>
274 274
         <el-col :span="6">
275
-           <el-form-item label="跌倒评估 : "> 
275
+           <el-form-item label="跌倒评估 : ">
276 276
                <el-input v-model="form.assessment"></el-input>
277 277
            </el-form-item>
278 278
         </el-col>
279 279
         <el-col :span="6">
280 280
           <el-form-item label="慢性病 : ">
281
-            <el-checkbox-group 
281
+            <el-checkbox-group
282 282
               v-model="form.diseases"
283 283
              >
284 284
               <el-checkbox v-for="item in checkDisease" :label="item.id" :key="item.id" :value="item.id" >{{item.name}}</el-checkbox>
@@ -310,9 +310,9 @@
310 310
             </el-form-item>
311 311
          </el-col>
312 312
       </el-row>
313
-      
313
+
314 314
     </el-form>
315
-  </div>  
315
+  </div>
316 316
 </template>
317 317
 
318 318
 <script>
@@ -427,7 +427,7 @@ export default {
427 427
         ],
428 428
         birth:[
429 429
           { required: true, message: '请填写生日', trigger: 'blur' },
430
-        ] 
430
+        ]
431 431
       }
432 432
     };
433 433
   },
@@ -443,7 +443,7 @@ export default {
443 443
     this.inductionOptions = this.$store.getters.induction_options;
444 444
     this.contagionList = this.$store.getters.contagions;
445 445
     this.checkDisease = this.$store.getters.disease;
446
-    
446
+
447 447
   },
448 448
   methods: {
449 449
     onSubmit(formName) {
@@ -467,7 +467,7 @@ export default {
467 467
                   type: 'success',
468 468
                   duration: 2000
469 469
                 })
470
-                
470
+
471 471
                 this.$refs[formName].resetFields();
472 472
                 this.$router.push({path:"/patients/patient"});
473 473
                 return false;
@@ -505,27 +505,27 @@ export default {
505 505
       // const isJPG = file.type === "image/jpeg";
506 506
       var fileType = file.type
507 507
       const isJPG = fileType.indexOf("image")>-1;
508
-      const isLt2M = file.size / 1024 / 1024 < 2;
508
+      const isLt2M = file.size / 1024 / 1024 < 6;
509 509
 
510 510
       if (!isJPG) {
511 511
         this.$message.error("只能上传图片");
512 512
         return false;
513 513
       }
514 514
       if (!isLt2M) {
515
-        this.$message.error("上传头像图片大小不能超过 2MB!");
515
+        this.$message.error("上传头像图片大小不能超过 6MB!");
516 516
         return false;
517 517
       }
518 518
 
519 519
       var date = new Date();
520 520
       var ext = getFileExtension(file.name);
521
-      var key = date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate() + "/"  + date.getHours() + "/"  + date.getMinutes() + "/"  + date.getSeconds() + "/" + "_s_" + file.uid + "." + ext;
521
+      var key = date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate() + "/"  + date.getHours() + "/"  + date.getMinutes() + "/"  + date.getSeconds() + "/" + "_s_" + file.uid+"?imageView2/2/w/500/h/500/q/90" + "." + ext;
522 522
       this.loading = this.$loading({
523 523
           lock: true,
524 524
           text: '上传中...',
525 525
           spinner: 'el-icon-loading',
526 526
           background: 'rgba(0, 0, 0, 0.7)'
527 527
       });
528
-      
528
+
529 529
       const _self = this
530 530
       return new Promise((resolve, reject) => {
531 531
         getToken().then(response => {

+ 13 - 2
src/xt_pages/workforce/components/tableData.vue Прегледај датотеку

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div id="table_data">
3
-    <div class="cell clearfix" v-if="weekTime == 'thisWeek'">
3
+    <div class="cell clearfix" v-if="weekTime == 'thisWeek' || weekTime == 'nextWeek'  || weekTime == 'nextTwoWeek' ">
4 4
       <el-input
5 5
         size="small"
6 6
         style="width: 400px;"
@@ -1793,8 +1793,19 @@ export default {
1793 1793
       return [w, n];
1794 1794
     },
1795 1795
     search: function() {
1796
+      let week_type = 0
1797
+      if (this.weekTime == 'thisWeek'){
1798
+        week_type = 1
1799
+      }else if(this.weekTime == 'nextWeek'){
1800
+        week_type = 2
1801
+      }else if(this.weekTime == 'nextTwoWeek'){
1802
+        week_type = 3
1803
+      }
1804
+
1805
+
1796 1806
       const params = {
1797
-        keywords: this.keywords
1807
+        keywords: this.keywords,
1808
+        week_type: week_type,
1798 1809
       };
1799 1810
       getSearchResult(params).then(response => {
1800 1811
         if (response.data.state == 1) {