Sfoglia il codice sorgente

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

XMLWAN 4 anni fa
parent
commit
9ee4ebfe9c

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Vedi File

2849
           single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
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
           advice_desc = val.advice_desc + val.drug_spec_unit
2853
           advice_desc = val.advice_desc + val.drug_spec_unit
2854
         }
2854
         }
2855
 
2855
 

+ 20 - 11
src/xt_pages/dialysis/schedualPatient.vue Vedi File

264
       if(selected_date.selected_date){
264
       if(selected_date.selected_date){
265
         this.selected_date = selected_date.selected_date
265
         this.selected_date = selected_date.selected_date
266
       }
266
       }
267
-      
267
+
268
       this.getInitData()
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
     methods: {
280
     methods: {
272
       // handletimeType: function(index) {
281
       // handletimeType: function(index) {
316
         }else{
325
         }else{
317
           this.getData()
326
           this.getData()
318
         }
327
         }
319
-        
328
+
320
       },
329
       },
321
       getInitData: function() {
330
       getInitData: function() {
322
         getDialysisRecordInitData().then(rs => {
331
         getDialysisRecordInitData().then(rs => {
332
             this.zone_options = zone_options
341
             this.zone_options = zone_options
333
             // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
342
             // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
334
             this.requestDialysisSchedules()
343
             this.requestDialysisSchedules()
335
-            
344
+
336
             console.log(1111111111111,this.zone_schedules)
345
             console.log(1111111111111,this.zone_schedules)
337
           } else {
346
           } else {
338
             this.$message.error(resp.msg)
347
             this.$message.error(resp.msg)
406
         this.getData()
415
         this.getData()
407
       },
416
       },
408
       getData(){
417
       getData(){
409
-    
418
+
410
         let patientArr = []
419
         let patientArr = []
411
         patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
420
         patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
412
         // for (let i = 0; i < patientArr.length; i++) {
421
         // for (let i = 0; i < patientArr.length; i++) {
413
-          
422
+
414
         //   for (let j = 0; j < patientArr[i].schedules.length; j++) {
423
         //   for (let j = 0; j < patientArr[i].schedules.length; j++) {
415
         //     if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
424
         //     if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
416
         //       // 删除元素后改变i的值
425
         //       // 删除元素后改变i的值
417
-              
426
+
418
         //       console.log("候诊区",patientArr[i].schedules[j])
427
         //       console.log("候诊区",patientArr[i].schedules[j])
419
         //       patientArr[i].schedules.splice(j--, 1);
428
         //       patientArr[i].schedules.splice(j--, 1);
420
         //     }
429
         //     }
506
           }
515
           }
507
           arr2 = arr
516
           arr2 = arr
508
         }
517
         }
509
-        
518
+
510
 
519
 
511
         let arr3 = []
520
         let arr3 = []
512
         if(this.schedule_type_selected == 0){
521
         if(this.schedule_type_selected == 0){
524
           }
533
           }
525
           arr3 = arr
534
           arr3 = arr
526
         }
535
         }
527
-        
536
+
528
 
537
 
529
         let arr4 = []
538
         let arr4 = []
530
         if(this.zone_selected == 0){
539
         if(this.zone_selected == 0){
540
           }
549
           }
541
           arr4 = arr
550
           arr4 = arr
542
         }
551
         }
543
-        
544
-        
552
+
553
+
545
         if(this.patientStateVal == 1){
554
         if(this.patientStateVal == 1){
546
           arr4.map((item,index) => {
555
           arr4.map((item,index) => {
547
             if(index != 0){
556
             if(index != 0){

+ 7 - 4
src/xt_pages/user/components/PatientForm.vue Vedi File

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

+ 22 - 22
src/xt_pages/user/registration.vue Vedi File

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

+ 13 - 2
src/xt_pages/workforce/components/tableData.vue Vedi File

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