Przeglądaj źródła

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

陈少旭 1 rok temu
rodzic
commit
e5bc9d7a55

+ 6 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Wyświetl plik

1147
         console.log(" this.assessmentBeforeDislysis.pathway_formation_time", moment(new Date()).format('YYYY-MM-DD'))
1147
         console.log(" this.assessmentBeforeDislysis.pathway_formation_time", moment(new Date()).format('YYYY-MM-DD'))
1148
         console.log("hhahhahahah",assessment)
1148
         console.log("hhahhahahah",assessment)
1149
         if(assessment!=null){
1149
         if(assessment!=null){
1150
-          this.assessmentBeforeDislysis.pathway_formation_time =  this.getTimeOne(assessment.pathway_formation_time)
1150
+          if(assessment.pathway_formation_time >0){
1151
+            this.assessmentBeforeDislysis.pathway_formation_time =  this.getTimeOne(assessment.pathway_formation_time)
1152
+          }else{
1153
+            this.assessmentBeforeDislysis.pathway_formation_time = ""
1154
+          }
1155
+         
1151
           if(assessment.whether_unobstructed >0){
1156
           if(assessment.whether_unobstructed >0){
1152
             this.assessmentBeforeDislysis.whether_unobstructed = assessment.whether_unobstructed.toString()
1157
             this.assessmentBeforeDislysis.whether_unobstructed = assessment.whether_unobstructed.toString()
1153
           } 
1158
           } 

+ 36 - 3
src/xt_pages/role/admin.vue Wyświetl plik

177
           style="float:left"
177
           style="float:left"
178
           @click="toEnd">结束签署</el-button> -->
178
           @click="toEnd">结束签署</el-button> -->
179
            
179
            
180
+
181
+        
182
+         <!-- <el-button
183
+          type="primary"
184
+          size="small"
185
+          icon="el-icon-circle-plus-outline"
186
+          style="float:left"
187
+          @click="toSendInformaton">发送短信验证码</el-button>  -->
180
        
188
        
181
           
189
           
182
      </div>
190
      </div>
257
           <template slot-scope="scope">
265
           <template slot-scope="scope">
258
            
266
            
259
              
267
              
260
-            <!-- <span>
268
+           <!-- <span>
261
               <el-button type="primary" size="small" @click="toRenZhen(scope.row.user_id,scope.row.user_name)">
269
               <el-button type="primary" size="small" @click="toRenZhen(scope.row.user_id,scope.row.user_name)">
262
                     <span>CA个人认证</span>
270
                     <span>CA个人认证</span>
263
               </el-button>
271
               </el-button>
272
+            </span> -->
273
+
274
+            <!-- <span>
275
+              <el-button type="primary" size="small" @click="toQianShu(scope.row.user_id,scope.row.user_name)">
276
+                    <span>创建签署人用户</span>
277
+              </el-button>
264
             </span>
278
             </span>
265
 
279
 
266
             <span>
280
             <span>
271
 
285
 
272
             <span>
286
             <span>
273
               <el-button type="primary" size="small" @click="toShouQuan(scope.row.user_id,scope.row.user_name)">
287
               <el-button type="primary" size="small" @click="toShouQuan(scope.row.user_id,scope.row.user_name)">
274
-                    <span>授权用户企业印章</span>
288
+                    <span>创建企业印章</span>
275
               </el-button>
289
               </el-button>
276
             </span> -->
290
             </span> -->
277
             <el-tooltip
291
             <el-tooltip
470
 </template>
484
 </template>
471
 
485
 
472
 <script>
486
 <script>
473
-import { adminMainView, getAdmins, setAdminStatus,toSign,toTestOne,toTestTwo,toTestThree,toTestFour,toTestFive,toTestSeven,toTestEight,toTestNight,toTestTen,toTestElement,toTestThrityMent,saveEnterprise,getEnterPriseById,getMobileCode,savePersionEnterPrise,getPerseEnterPriseById,CreatePersionSeal,CreateNewEnterPrise,toTestThrity,toEndEnterPrise,getEnterPriseDetail} from "@/api/role/admin";
487
+import { adminMainView, getAdmins, setAdminStatus,toSign,toTestOne,toTestTwo,toTestThree,toTestFour,toTestFive,toTestSeven,toTestEight,toTestNight,toTestTen,toTestElement,toTestThrityMent,saveEnterprise,getEnterPriseById,getMobileCode,savePersionEnterPrise,getPerseEnterPriseById,CreatePersionSeal,CreateNewEnterPrise,toTestThrity,toEndEnterPrise,getEnterPriseDetail
488
+  ,CreateQianshuUserName,toSendInformaton,CreateSKDSendInformation} from "@/api/role/admin";
474
 import { getRoles } from "@/api/role/role";
489
 import { getRoles } from "@/api/role/role";
475
 
490
 
476
 import { parseTime } from "@/utils";
491
 import { parseTime } from "@/utils";
1015
       })
1030
       })
1016
     },
1031
     },
1017
    
1032
    
1033
+    toQianShu(){
1034
+      CreateQianshuUserName().then(response=>{
1035
+         if(response.data.state==1){
1036
+          var sign =  response.data.data.sign
1037
+          var userId =  response.data.data.userId
1038
+         }
1039
+      }) 
1040
+    },
1041
+
1042
+    toSendInformaton(){
1043
+      CreateSKDSendInformation().then(response=>{
1044
+        if(response.data.state==1){
1045
+          var information =  response.data.data.information
1046
+
1047
+          var orderId = response.data.data.orderId
1048
+        }
1049
+      })
1050
+    }
1018
   },
1051
   },
1019
   watch: {
1052
   watch: {
1020
     should_update_admins(should_change) {
1053
     should_update_admins(should_change) {

+ 1 - 1
src/xt_pages/user/Sitemap.vue Wyświetl plik

896
       console.log("wowowowow",file)
896
       console.log("wowowowow",file)
897
       this.fileList.shift()
897
       this.fileList.shift()
898
       this.fileList.push({
898
       this.fileList.push({
899
-        img_url: this.qiniuDomain + res.url + '?imageView2/2/w/500/h/500/q/90',
899
+        img_url: this.qiniuDomain + res.url + '?imageView2/2/w/2000/h/2000/q/90',
900
         desc: '',
900
         desc: '',
901
         id: 0
901
         id: 0
902
       })
902
       })

+ 1 - 1
src/xt_pages/user/inspection.vue Wyświetl plik

633
       console.log("RESPOWOWOWOWO",res)
633
       console.log("RESPOWOWOWOWO",res)
634
       console.log("wowowowow",file)
634
       console.log("wowowowow",file)
635
       this.form.imgs.push({
635
       this.form.imgs.push({
636
-        img_url: this.qiniuDomain + res.url + '?imageView2/2/w/500/h/500/q/90',
636
+        img_url: this.qiniuDomain + res.url + '?imageView2/2/w/2000/h/2000/q/90',
637
         desc: '',
637
         desc: '',
638
         id: 0
638
         id: 0
639
       })
639
       })

+ 1 - 1
src/xt_pages/user/inspectionCheck.vue Wyświetl plik

508
     },
508
     },
509
     handleAvatarSuccess(res, file) {
509
     handleAvatarSuccess(res, file) {
510
       this.form.imgs.push({
510
       this.form.imgs.push({
511
-        img_url: this.qiniuDomain + res.url + '?imageView2/2/w/500/h/500/q/90',
511
+        img_url: this.qiniuDomain + res.url + '?imageView2/2/w/2000/h/2000/q/90',
512
         desc: '',
512
         desc: '',
513
         id: 0
513
         id: 0
514
       })
514
       })

+ 136 - 34
src/xt_pages/workforce/Patientshift.vue Wyświetl plik

57
                 <td style="text-align: center;">{{ getZoneName(ite.partition_id) }}</td>
57
                 <td style="text-align: center;">{{ getZoneName(ite.partition_id) }}</td>
58
                 <td>
58
                 <td>
59
                   <div v-for="(it,index) in numberlist" style="display: inline-block;position: relative;" @dblclick="db_click($event,it)">
59
                   <div v-for="(it,index) in numberlist" style="display: inline-block;position: relative;" @dblclick="db_click($event,it)">
60
-                    <!-- <template v-if="ite.partition_id==it.zone_id">
61
-                      <div v-for="(item2) in item.list" style="background:#14bacd ;" >
62
-                          <template >
63
-                            <div v-if="it.id==item2.bed_id" style="display: inline-block;">
64
-                              <div>
65
-                                <span>{{ item2.name }}({{ getmode(item2.mode_id) }})</span><br>
66
-                                <div v-if="hidder" >
67
-                                  <span style="font-size: 14px;color: rgb(19, 241, 175);margin-bottom: 5px;">{{item2.order.DeviceNumber.zone.name}}-{{item2.order.DeviceNumber.number}}</span><br>
68
-                                  <span style="font-size: 14px;color:orange;margin-bottom: 5px;">{{getBloodAccess(item2.order.blood_access_id)}}</span><br>
69
-                                  <span style="font-size: 13px;color:rgb(102, 13, 161);margin-bottom: 5px;">{{item2.order.schedule_remark}}</span>
70
-                                </div> 
71
-                              </div>
72
-                            </div>
73
-                          </template> 
74
-                        </div>
75
-                    </template>   @drop="drop($event)" @dragstart.self="curInfoDragStart($event)"  @dragover="allowDrop"-->
76
-                    <div  v-if="ite.partition_id==it.zone_id" class="huanzhekuais"  style="" draggable="true" > 
77
-                      <div class="huanzhekuai" >
78
-                        <div v-for="(item2) in item.list" @drop="drop($event,item2)" @dragstart.self="curInfoDragStart($event,item2)"  @dragover="allowDrop">
60
+                    <!-- <template> -->
61
+                    <div  v-if="ite.partition_id==it.zone_id" class="huanzhekuais"  style="" @drop="drop($event,item)" draggable="true"   @dragover="allowDrop"> 
62
+                      <div class="huanzhekuai">
63
+                        <div v-for="(item2) in item.list"  draggable="true" @dragstart.self="curInfoDragStart($event,item2)">
79
                           <template >
64
                           <template >
80
                             <div v-if="it.id==item2.bed_id" style="display: inline-block;">
65
                             <div v-if="it.id==item2.bed_id" style="display: inline-block;">
81
                               <div>
66
                               <div>
90
                           </template> 
75
                           </template> 
91
                         </div>
76
                         </div>
92
                       </div> 
77
                       </div> 
78
+                                        
79
+                      <!-- <div v-if="ite.partition_id==it.partition_id" style="max-height: 110px; margin-top: 10px;margin-bottom: 5px;background: rgb(74 197 235);" >
80
+                        <span>{{ it.name }}({{ getmode(it.mode_id) }})</span><br>
81
+                        <div v-if="value" >
82
+                          <span style="font-size: 14px;color: rgb(12, 185, 50);margin-bottom: 5px;">{{it.order.DeviceNumber.zone.name}}-{{it.order.DeviceNumber.number}}</span><br>
83
+                          <span style="font-size: 14px;color:orange;margin-bottom: 5px;">{{getBloodAccess(it.order.blood_access_id)}}</span><br>
84
+                          <span style="font-size: 13px;color:rgb(102, 13, 161);margin-bottom: 5px;">{{it.order.schedule_remark}}</span>
85
+                        </div> 
86
+                      </div> -->
87
+                      <!-- <div  
88
+                      style="display: inline-block;width: 125px;text-align: center;position: absolute;">
89
+                      {{ it.number }}
90
+                    </div> -->
93
                     </div>
91
                     </div>
94
                     <div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
92
                     <div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
95
                       {{ it.number }}
93
                       {{ it.number }}
241
 import { parseTime } from '@/utils'
239
 import { parseTime } from '@/utils'
242
 import { uParseTime } from '@/utils/tools'
240
 import { uParseTime } from '@/utils/tools'
243
 import { getDataConfig } from '@/utils/data'
241
 import { getDataConfig } from '@/utils/data'
242
+import {CreateScheduleTwo} from '@/api/schedule'
244
 import {CoverSch,ExchangeSch,} from "@/api/schedule_template/sch_template";
243
 import {CoverSch,ExchangeSch,} from "@/api/schedule_template/sch_template";
245
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
244
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
246
 import print from 'print-js'
245
 import print from 'print-js'
257
       tipDialogVisible:false,
256
       tipDialogVisible:false,
258
       tipDialogVisibleTwo:false,
257
       tipDialogVisibleTwo:false,
259
       tipDialogVisibleThree:false,
258
       tipDialogVisibleThree:false,
260
-      centerDialogVisible:false,
261
       hidder: false,
259
       hidder: false,
262
       td_1_width: '8%',
260
       td_1_width: '8%',
263
       td_3_width: '90%',
261
       td_3_width: '90%',
265
       classes:1,
263
       classes:1,
266
       bingqu:0,
264
       bingqu:0,
267
       fenqu_dialog:0,
265
       fenqu_dialog:0,
268
-      chuangwei:null,
266
+      chuangwei:519,
269
       options:[],
267
       options:[],
268
+      centerDialogVisible:false,
270
       cur_drag_info:{
269
       cur_drag_info:{
271
         id:'',
270
         id:'',
272
         name:'',
271
         name:'',
273
         quhao:'',
272
         quhao:'',
274
-       chaung:'',
273
+        chaung:'',
274
+        patient_id:'',
275
       },
275
       },
276
       currentData:{
276
       currentData:{
277
         currentData_id:'',
277
         currentData_id:'',
278
         currentData_name:'',
278
         currentData_name:'',
279
         currentData_quhao:'',
279
         currentData_quhao:'',
280
         currentData_chaung:'',
280
         currentData_chaung:'',
281
+        patient_id:'',
281
       },
282
       },
282
       schedulArr: [
283
       schedulArr: [
283
         { value: 1, label: "上午" },
284
         { value: 1, label: "上午" },
639
    
640
    
640
     drop(e,val){
641
     drop(e,val){
641
       this.allowDrop(e)
642
       this.allowDrop(e)
642
-      console.log('3333',this.currentData);
643
+      
643
       console.log('6666',val);
644
       console.log('6666',val);
644
-      this.currentData={
645
-        currentData_id:val.id,
646
-        currentData_name:val.name,
647
-        currentData_quhao:val.order.DeviceNumber.zone.name,
648
-        currentData_chaung:val.order.DeviceNumber.number,
649
-      },
650
-      this.tipDialogVisible=true
645
+      console.log('7777',this.numberlist);
646
+      const inntext= e.target.innerText.split('(')[0]
647
+      console.log('3333',inntext);
648
+      for(let i=0;i<val.list.length;i++){
649
+        if(inntext == val.list[i].name){
650
+          this.tipDialogVisible=true
651
+          this.currentData={
652
+            currentData_id:val.list[i].id,
653
+            currentData_name:val.list[i].name,
654
+            currentData_quhao:val.list[i].order.DeviceNumber.zone.name,
655
+            currentData_chaung:val.list[i].order.DeviceNumber.number,
656
+            patient_id:val.list[i].patient_id
657
+          }
658
+        }
659
+      }
660
+      if(e.target.innerText == ''){
661
+        this.currentData={
662
+          currentData_id:0,
663
+          currentData_name:this.cur_drag_info.name,
664
+          currentData_quhao:this.cur_drag_info.quhao,
665
+          currentData_chaung:this.cur_drag_info.chaung,
666
+          patient_id:this.cur_drag_info.patient_id
667
+        }
668
+        console.log('8888',this.currentData.currentData_id);
669
+        this.setScheduleTwo(this.cur_drag_info.id)
670
+        // var params={
671
+        //   patient_id:this.currentData.patient_id,
672
+        //   id_two:this.currentData.currentData_id
673
+        // }
674
+        // CreateScheduleTwo(this.currentData.patient_id,this.currentData.currentData_id).then((response)=>{
675
+        //   if (response.data.state == 0) {
676
+        //     this.$message.error(response.data.msg);
677
+        //   } else {
678
+        //     var schedule = response.data.data.schedule;
679
+            
680
+        //     this.getlist()
681
+        //   }
682
+        // })
683
+        // this.CreateScheduleTwo(this.currentData.patient_id,this.currentData,this.currentData.currentData_id)
684
+      }
685
+      
686
+      // for(let i=0;i<this.numberlist.length;i++){
687
+      //   for(let j=0;j<val.list.length;j++){
688
+      //     if(this.numberlist[i].id==val.list[y].bed_id){
689
+
690
+      //     }
691
+      //   }
692
+      // }
693
+      // this.currentData={
694
+      //   currentData_id:val.id,
695
+      //   currentData_name:val.name,
696
+      //   currentData_quhao:val.order.DeviceNumber.zone.name,
697
+      //   currentData_chaung:val.order.DeviceNumber.number,
698
+      // },
699
+     
651
       // this.currentData={
700
       // this.currentData={
652
       //   currentData_id:this.cur_drag_info.id,
701
       //   currentData_id:this.cur_drag_info.id,
653
       //   currentData_name:this.cur_drag_info.name,
702
       //   currentData_name:this.cur_drag_info.name,
701
         }
750
         }
702
       });
751
       });
703
     },
752
     },
753
+    // 交换空白
754
+    setScheduleTwo(id_two){
755
+      this.CreateScheduleTwo(this.currentData.patient_id, this.currentData,id_two);
756
+    },
757
+    async CreateScheduleTwo(id, data,id_two) {
758
+      let response =await CreateScheduleTwo(id, data,id_two)
759
+
760
+      if (response.data.state == 0) {
761
+        this.$message.error(response.data.msg);
762
+      } else {
763
+        var schedule = response.data.data.schedule;
764
+        this.getlist()
765
+      }
766
+    },
767
+    // 需要拖动的
704
     curInfoDragStart(e,val){
768
     curInfoDragStart(e,val){
705
       this.cur_drag_info={
769
       this.cur_drag_info={
706
         id:val.id,
770
         id:val.id,
707
         name:val.name,
771
         name:val.name,
708
         quhao:val.order.DeviceNumber.zone.name,
772
         quhao:val.order.DeviceNumber.zone.name,
709
-       chaung:val.order.DeviceNumber.number,
773
+        chaung:val.order.DeviceNumber.number,
774
+        patient_id:val.patient_id,
710
       
775
       
711
       }
776
       }
712
-      console.log('4444',e);
777
+      console.log('4444',val);
713
       console.log('5555',this.cur_drag_info);
778
       console.log('5555',this.cur_drag_info);
714
     },
779
     },
715
      // 选中日期
780
      // 选中日期
776
           var numberlist=response.data.data.numberList
841
           var numberlist=response.data.data.numberList
777
           this.numberlist= numberlist
842
           this.numberlist= numberlist
778
           this.subzone = numberlist
843
           this.subzone = numberlist
779
-          this.chuangwei=numberlist[0].id
780
           if (list != null && list.length > 0) {
844
           if (list != null && list.length > 0) {
781
             const dataInfo = {}
845
             const dataInfo = {}
782
             list.forEach((item, index) => {
846
             list.forEach((item, index) => {
959
           this.fenqu_dialog=e
1023
           this.fenqu_dialog=e
960
         }
1024
         }
961
       }
1025
       }
1026
+      // if(this.fenqu_dialog==0){
1027
+      //   this.chuangwei=519
1028
+      // }else if(this.fenqu_dialog==375){
1029
+      //   this.chuangwei=519
1030
+      // }else if(this.fenqu_dialog==376){
1031
+      //   this.chuangwei=520
1032
+      // }else if(this.fenqu_dialog==384){
1033
+      //   this.chuangwei=556
1034
+      // }else if(this.fenqu_dialog==424){
1035
+      //   this.chuangwei=672
1036
+      // }else if(this.fenqu_dialog==425){
1037
+      //   this.chuangwei=521
1038
+      // }
962
       var params = {
1039
       var params = {
963
         schedule_date: this.date,
1040
         schedule_date: this.date,
964
         schedule_type: this.classes,
1041
         schedule_type: this.classes,
976
           var numberlist=response.data.data.numberList
1053
           var numberlist=response.data.data.numberList
977
           console.log('00000',this.list);
1054
           console.log('00000',this.list);
978
           this.subzone=[]
1055
           this.subzone=[]
979
-          // 选择的分区的床位
980
           for(let i=0;i<numberlist.length;i++){
1056
           for(let i=0;i<numberlist.length;i++){
981
             if(this.fenqu_dialog==0){
1057
             if(this.fenqu_dialog==0){
982
               this.subzone = numberlist
1058
               this.subzone = numberlist
1019
             }
1095
             }
1020
             
1096
             
1021
           }
1097
           }
1098
+          // this.numberlist= numberlist
1022
         }
1099
         }
1023
       })
1100
       })
1101
+      // console.log('77777',this.chuangwei);
1102
+      // for(let i=0;i<list.length;i++){
1103
+      //   if(this.chuangwei==list[i].bed_id){
1104
+      //     this.genghuan.name=list[i].name
1105
+      //     this.genghuan.mode_id=list[i].mode_id
1106
+      //     this.genghuan.genghuan_fenqu=list[i].order.DeviceNumber.zone.name
1107
+      //     this.genghuan.genghuan_chuang = list[i].order.DeviceNumber.number
1108
+      //     this.genghuan.g_boolen_id =list[i].order.blood_access_id
1109
+      //     this.genghuan.genghuan_remark = list[i].order.schedule_remark
1110
+      //     console.log('99999',this.genghuan);
1111
+      //     console.log('000000',list[i].bed_id);
1112
+      //     return this.genghuan
1113
+      //   }else{
1114
+      //     console.log('eeeeee');
1115
+      //     this.genghuan.name=''
1116
+      //     this.genghuan.mode_id=''
1117
+      //     this.genghuan.genghuan_fenqu=''
1118
+      //     this.genghuan.genghuan_chuang = ''
1119
+      //     this.genghuan.g_boolen_id = ''
1120
+      //     this.genghuan.genghuan_remark =''
1121
+      //     // return this.genghuan
1122
+      //     // console.log('qqqqqq',this.list[i].bed_id);
1123
+      //   }
1124
+        
1125
+      // }
1024
     },
1126
     },
1025
     // 双击弹窗床位
1127
     // 双击弹窗床位
1026
     dialogchuangwei(e){
1128
     dialogchuangwei(e){