Просмотр исходного кода

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

28169 1 год назад
Родитель
Сommit
4d0bead732
1 измененных файлов: 312 добавлений и 66 удалений
  1. 312 66
      src/xt_pages/workforce/Patientshift.vue

+ 312 - 66
src/xt_pages/workforce/Patientshift.vue Просмотреть файл

@@ -36,7 +36,7 @@
36 36
           </div>
37 37
           <div class="content_top">隐藏备注:
38 38
             <el-switch
39
-              v-model="value"
39
+              v-model="hidder"
40 40
               active-color="#13ce66"
41 41
               inactive-color="#ff4949"
42 42
               active-text="ON"
@@ -56,19 +56,45 @@
56 56
               <tr v-for="(ite,index) in item.zones" :key="index">
57 57
                 <td style="text-align: center;">{{ getZoneName(ite.partition_id) }}</td>
58 58
                 <td>
59
-                  <template  v-for="(it,index) in item.list">
60
-                  <div  v-if="ite.partition_id==it.partition_id" class="huanzhekuai"  style="" @dblclick="db_click">                    
61
-                    <div style="max-height: 110px; margin-top: 10px;margin-bottom: 5px;background: rgb(74 197 235);" @dragstart.self="curInfoDragStart($event,it)" @drop.self="drop($event,it)" @dragover="allowDrop" draggable="true" >
62
-                      <span>{{ it.name }}({{ getmode(it.mode_id) }})</span><br>
63
-                      <div v-if="value" >
64
-                        <span style="font-size: 14px;color: rgb(12, 185, 50);margin-bottom: 5px;">{{it.order.DeviceNumber.zone.name}}-{{it.order.DeviceNumber.number}}</span><br>
65
-                        <span style="font-size: 14px;color:orange;margin-bottom: 5px;">{{getBloodAccess(it.order.blood_access_id)}}</span><br>
66
-                        <span style="font-size: 13px;color:rgb(102, 13, 161);margin-bottom: 5px;">{{it.order.schedule_remark}}</span>
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">
79
+                          <template >
80
+                            <div v-if="it.id==item2.bed_id" style="display: inline-block;">
81
+                              <div>
82
+                                <span>{{ item2.name }}({{ getmode(item2.mode_id) }})</span><br>
83
+                                <div v-if="hidder" >
84
+                                  <span style="font-size: 14px;color: rgb(19, 241, 175);margin-bottom: 5px;">{{item2.order.DeviceNumber.zone.name}}-{{item2.order.DeviceNumber.number}}</span><br>
85
+                                  <span style="font-size: 14px;color:orange;margin-bottom: 5px;">{{getBloodAccess(item2.order.blood_access_id)}}</span><br>
86
+                                  <span style="font-size: 13px;color:rgb(102, 13, 161);margin-bottom: 5px;">{{item2.order.schedule_remark}}</span>
87
+                                </div> 
88
+                              </div>
89
+                            </div>
90
+                          </template> 
91
+                        </div>
67 92
                       </div> 
68 93
                     </div>
69
-                    
94
+                    <div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
95
+                      {{ it.number }}
96
+                    </div>
70 97
                   </div>
71
-                  </template>
72 98
                 </td>
73 99
               </tr>
74 100
             </tbody>
@@ -83,41 +109,62 @@
83 109
           center>
84 110
           <div>
85 111
             <div style="display: flex;">
86
-              <div style="width:300px;margin-right: 10px;">
112
+              <div style="width:150px;margin-right: 10px;">
87 113
                 <div style="margin: 10px 0;">分区
88
-                  <el-select v-model="fenqu_dialog" placeholder="请选择">
114
+                  <el-select v-model="fenqu_dialog" placeholder="请选择" @change="dialogfenqu">
89 115
                     <el-option
90
-                      v-for="item in options"
116
+                      v-for="item in partitionArr"
91 117
                       :key="item.value"
92
-                      :label="item.label"
93
-                      :value="item.value">
118
+                      :label="item.name"
119
+                      :value="item.id">
94 120
                     </el-option>
95 121
                   </el-select>
96 122
                 </div>
97 123
                 <div>床位
98
-                  <el-select v-model="chuangwei" placeholder="请选择">
124
+                  <el-select v-model="chuangwei" placeholder="请选择" @change="dialogchuangwei">
99 125
                     <el-option
100
-                      v-for="item in options"
126
+                      v-for="item in subzone"
101 127
                       :key="item.value"
102
-                      :label="item.label"
103
-                      :value="item.value">
128
+                      :label="item.number"
129
+                      :value="item.id">
104 130
                     </el-option>
105 131
                   </el-select>
106 132
                 </div>
107 133
               </div>
108
-              <div style="width:200px">
109
-                <div style="margin-top: 10px;margin-bottom: 5px;background: rgb(74 197 235);height: 110px;width: 125px;text-align: center;">
110
-                  <span >周建(HD)</span><br>
111
-                  <span style="font-size: 14px;color: rgb(12, 185, 50);margin-bottom: 5px;">A1区-6号床</span><br>
112
-                  <span style="font-size: 14px;color:orange;margin-bottom: 5px;">颈部长期置管</span><br>
113
-                  <span style="font-size: 13px;color:rgb(102, 13, 161);margin-bottom: 5px;">不睡7区,下机动脉用纱布压。用德朗</span>
134
+              <div style="width:350px">
135
+                <div style="display: flex;">
136
+                  <div>
137
+                    <div style="margin: 10px 30px 10px 10px;background: rgb(74 197 235);height: 110px;width: 125px;text-align: center;">
138
+                      <span >{{ huanzhe.name }}({{getmode(huanzhe.mode_id)}})</span><br>
139
+                      <span style="font-size: 14px;color: rgb(12, 185, 50);margin-bottom: 5px;">
140
+                        {{ huanzhe.zeng_fenqu }}-{{ huanzhe.zeng_chuang }}
141
+                      </span><br>
142
+                      <span style="font-size: 14px;color:orange;margin-bottom: 5px;">{{getBloodAccess(huanzhe.boolen_id)}}</span><br>
143
+                      <span style="font-size: 13px;color:rgb(102, 13, 161);margin-bottom: 5px;">{{huanzhe.schedule_remark}}</span> 
144
+                    </div>
145
+                     <div style="margin-left: 10px;">{{getZoneName(xian_fenqu.zone_id)}}-{{xian_fenqu.number}}</div>
146
+                  </div>
147
+                  
148
+                  <div>
149
+                    <div style="margin: 10px 30px 10px 10px;background: rgb(74 197 235);height: 110px;width: 125px;text-align: center;">
150
+                      <span >{{genghuan.name}}</span><span v-if="genghuan.mode_id !=''">({{genghuan.mode_id}})</span><br>
151
+                      <span style="font-size: 14px;color: rgb(12, 185, 50);margin-bottom: 5px;">
152
+                        {{ genghuan.genghuan_fenqu }}-{{ genghuan.genghuan_chuang }}
153
+                        <!-- A1区-6号床 -->
154
+                      </span><br>
155
+                      <span style="font-size: 14px;color:orange;margin-bottom: 5px;"></span>{{getBloodAccess(genghuan.g_boolen_id)}}<br>
156
+                      <span style="font-size: 13px;color:rgb(102, 13, 161);margin-bottom: 5px;">{{genghuan.genghuan_remark}}</span>
157
+                    </div>
158
+                    <div style="margin-left: 10px;">{{getZoneName(g_xian_fenqu.zone_id)}}-{{g_xian_fenqu.number}}</div>
159
+                  </div>
114 160
                 </div>
161
+               
115 162
               </div>
116 163
             </div>
117 164
           </div>
118 165
           <span slot="footer" class="dialog-footer">
119 166
             <el-button @click="centerDialogVisible = false">取 消</el-button>
120
-            <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button>
167
+            <el-button type="primary" @click="verify_dialog">确 定</el-button>
121 168
           </span>
122 169
         </el-dialog>
123 170
           <!-- 排班替换/交换提示弹窗 -->
@@ -194,7 +241,6 @@ import { GetAllZone, getSchedualPrintList } from '@/api/dialysis'
194 241
 import { parseTime } from '@/utils'
195 242
 import { uParseTime } from '@/utils/tools'
196 243
 import { getDataConfig } from '@/utils/data'
197
-import {getSchedulesOne  } from "@/api/schedule";
198 244
 import {CoverSch,ExchangeSch,} from "@/api/schedule_template/sch_template";
199 245
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
200 246
 import print from 'print-js'
@@ -211,18 +257,16 @@ export default {
211 257
       tipDialogVisible:false,
212 258
       tipDialogVisibleTwo:false,
213 259
       tipDialogVisibleThree:false,
214
-      value: false,
260
+      centerDialogVisible:false,
261
+      hidder: false,
215 262
       td_1_width: '8%',
216 263
       td_3_width: '90%',
217 264
       date:'',
218 265
       classes:1,
219 266
       bingqu:0,
220
-      chuangwei:'',
221
-      fenqu:'',
222
-      fenqu_dialog:'',
223
-      chuangwei:'',
267
+      fenqu_dialog:0,
268
+      chuangwei:null,
224 269
       options:[],
225
-      centerDialogVisible:false,
226 270
       cur_drag_info:{
227 271
         id:'',
228 272
         name:'',
@@ -549,14 +593,34 @@ export default {
549 593
       list: [],
550 594
       loading: false,
551 595
       tableData: [],
552
-      numberList: [],
596
+      numberlist: [],
553 597
       partitionArr: [],
554 598
       listname:[],
555 599
       mode:[{id:1,name:'HD'},{id:2,name:'HDF'},{id:3,name:'HD+HP'},{id:4,name:'HP'},{id:5,name:'HF'},{id:6,name:'SCUF'},{id:7,name:'IUF'},{id:8,name:'HFHD'},
556 600
       {id:9,name:'HFHD+HP'},{id:10,name:'PHF'},{id:11,name:'HFR'},{id:12,name:'HDF+HP'},{id:13,name:'CRRT'},{id:14,name:'腹水回输'},{id:15,name:'IUF+HD'},{id:16,name:'UF'},
557 601
       {id:17,name:'HD+'},{id:18,name:'血浆胆红素吸附+HDF'},{id:19,name:'血浆胆红素吸附'},{id:20,name:'I-HDF'},{id:21,name:'HD高通'},{id:22,name:'CVVH'},{id:23,name:'CVVHD'},
558
-      {id:24,name:'CVVHDF'},{id:25,name:'PE'},{id:26,name:'血浆胆红素吸附+HP'},{id:27,name:'HPD'},{id:28,name:'HDP'}]
559
-
602
+      {id:24,name:'CVVHDF'},{id:25,name:'PE'},{id:26,name:'血浆胆红素吸附+HP'},{id:27,name:'HPD'},{id:28,name:'HDP'}],
603
+      subzone:[],
604
+      huanzhe:{
605
+        id:null,
606
+        name:'',
607
+        mode_id:'',
608
+        zeng_fenqu:'',
609
+        zeng_chuang:'',
610
+        boolen_id:'',
611
+        schedule_remark:'',
612
+      },
613
+      xian_fenqu:'',
614
+      g_xian_fenqu:'',
615
+      genghuan:{
616
+        id:null,
617
+        name:'',
618
+        mode_id:'',
619
+        genghuan_fenqu:'',
620
+        genghuan_chuang:'',
621
+        g_boolen_id:'',
622
+        genghuan_remark:'',
623
+      },
560 624
     }
561 625
   },
562 626
   components: {
@@ -567,18 +631,18 @@ export default {
567 631
    console.log('dsafas',this.date);
568 632
     this.getAllZones()
569 633
     this.getlist()
570
-    this.getSchedulesOne()
634
+  },
635
+  mounted(){
636
+    // console.log('8888',this.huanzhe.order.DeviceNumber.zone.name);
571 637
   },
572 638
   methods:{
573
-    db_click(e){
574
-      this.centerDialogVisible=true
575
-      console.log('2222',e);
576
-    },
639
+   
577 640
     drop(e,val){
578 641
       this.allowDrop(e)
579
-      
642
+      console.log('3333',this.currentData);
643
+      console.log('6666',val);
580 644
       this.currentData={
581
-        currentData_id:val.order.id,
645
+        currentData_id:val.id,
582 646
         currentData_name:val.name,
583 647
         currentData_quhao:val.order.DeviceNumber.zone.name,
584 648
         currentData_chaung:val.order.DeviceNumber.number,
@@ -591,8 +655,7 @@ export default {
591 655
       //   currentData_chaung:this.cur_drag_info.chaung,
592 656
       // },
593 657
 
594
-      console.log('3333',this.currentData);
595
-      console.log('6666',val);
658
+      
596 659
     },
597 660
     allowDrop(e) {
598 661
       e.preventDefault();
@@ -600,12 +663,6 @@ export default {
600 663
      // 替换
601 664
      coverSch(){
602 665
       this.tipDialogVisible=false
603
-      // this.currentData={
604
-      //   currentData_id:this.cur_drag_info.id,
605
-      //   currentData_name:this.cur_drag_info.name,
606
-      //   currentData_quhao:this.cur_drag_info.quhao,
607
-      //   currentData_chaung:this.cur_drag_info.chaung,
608
-      // }
609 666
       let params={
610 667
         id_one:this.cur_drag_info.id,
611 668
         id_two:this.currentData.currentData_id
@@ -628,7 +685,7 @@ export default {
628 685
       this.tipDialogVisible=false
629 686
       let params={
630 687
         id_one:this.cur_drag_info.id,
631
-        id_two:this.currentData.id
688
+        id_two:this.currentData.currentData_id
632 689
 
633 690
       }
634 691
       ExchangeSch(params).then((response) => {
@@ -646,7 +703,7 @@ export default {
646 703
     },
647 704
     curInfoDragStart(e,val){
648 705
       this.cur_drag_info={
649
-        id:val.order.id,
706
+        id:val.id,
650 707
         name:val.name,
651 708
         quhao:val.order.DeviceNumber.zone.name,
652 709
        chaung:val.order.DeviceNumber.number,
@@ -691,11 +748,12 @@ export default {
691 748
         } else {
692 749
           this.partitionArr = response.data.data.zone;
693 750
           this.partitionArr.unshift({ id: 0, name: "全部" });
694
-          console.log('asfasdfsadfa',this.partitionArr);
751
+          console.log('asfasdfsadfa',response.data.data);
695 752
         }
696 753
       });
697 754
     },
698 755
     getlist() {
756
+
699 757
       var params = {
700 758
         schedule_date: this.date,
701 759
         schedule_type: this.classes,
@@ -715,6 +773,10 @@ export default {
715 773
           this.list = list
716 774
           var listOne = response.data.data.listOne
717 775
           this.zones =listOne
776
+          var numberlist=response.data.data.numberList
777
+          this.numberlist= numberlist
778
+          this.subzone = numberlist
779
+          this.chuangwei=numberlist[0].id
718 780
           if (list != null && list.length > 0) {
719 781
             const dataInfo = {}
720 782
             list.forEach((item, index) => {
@@ -724,7 +786,8 @@ export default {
724 786
                   schedule_type: item.schedule_type,
725 787
                   schedule_date: item.schedule_date,
726 788
                   zones: [],
727
-                  list:[]
789
+                  list:[],
790
+                  
728 791
                 }
729 792
               }
730 793
             })
@@ -822,6 +885,7 @@ export default {
822 885
 
823 886
       return name
824 887
     },
888
+    // 血管通路
825 889
     getBloodAccess(id) {
826 890
       var name = ''
827 891
       var list = getDataConfig(
@@ -835,19 +899,193 @@ export default {
835 899
       }
836 900
       return name
837 901
     },
838
-    getSchedulesOne(){
839
-      const params = {
840
-        weekTime: 2,
841
-        patitionid: '375,376,384,424,425,',
842
-        schedule_type: '',
843
-      };
844
-      getSchedulesOne(params).then((res)=>{
845
-        console.log('qqqqwwwwweeee',res.data.data);
902
+    // 双击打开弹窗
903
+    db_click(e,val){
904
+      if(e.target.innerText !=''){
905
+        this.centerDialogVisible=true
906
+        this.xian_fenqu=val
907
+        for(let i=0;i<this.list.length;i++){
908
+          // 双击弹窗的右侧第一个数据
909
+          if(val.id==this.list[i].bed_id){
910
+            this.huanzhe.id=this.list[i].id
911
+            this.huanzhe.name=this.list[i].name
912
+            this.huanzhe.mode_id=this.list[i].mode_id
913
+            this.huanzhe.zeng_fenqu=this.list[i].order.DeviceNumber.zone.name
914
+            this.huanzhe.zeng_chuang = this.list[i].order.DeviceNumber.number
915
+            this.huanzhe.boolen_id = this.list[i].order.blood_access_id
916
+            this.huanzhe.schedule_remark = this.list[i].order.schedule_remark
917
+            console.log('55555',this.huanzhe);
918
+          }
919
+          // 双击弹窗的右侧第二个默认数据
920
+          if(this.chuangwei==this.list[i].bed_id){
921
+            this.genghuan.id = this.list[i].id
922
+            this.genghuan.name=this.list[i].name
923
+            this.genghuan.mode_id=this.list[i].mode_id
924
+            this.genghuan.genghuan_fenqu=this.list[i].order.DeviceNumber.zone.name
925
+            this.genghuan.genghuan_chuang = this.list[i].order.DeviceNumber.number
926
+            this.genghuan.g_boolen_id = this.list[i].order.blood_access_id
927
+            this.genghuan.genghuan_remark = this.list[i].order.schedule_remark
928
+            console.log('99999',this.genghuan);
929
+            console.log('000000',this.list[i].bed_id);
930
+            return this.genghuan
931
+          }else{
932
+            this.genghuan.id = null
933
+            this.genghuan.name=''
934
+            this.genghuan.mode_id=''
935
+            this.genghuan.genghuan_fenqu=''
936
+            this.genghuan.genghuan_chuang = ''
937
+            this.genghuan.g_boolen_id = ''
938
+            this.genghuan.genghuan_remark =''
939
+          }
940
+        }
941
+        // 第二的床位
942
+        for(let y=0;y<this.numberlist.length;y++){
943
+          if(this.chuangwei==this.numberlist[y].id){
944
+            this.g_xian_fenqu=this.numberlist[y]
945
+          }
946
+        }
947
+      }else{
948
+        this.centerDialogVisible=false
949
+      }
950
+      
951
+      console.log('双击弹窗',this.zeng_fenqu);
952
+      console.log('双击弹窗33',e);
953
+      // console.log('双击弹窗333',value);
954
+    },
955
+    // 双击弹窗分区
956
+    dialogfenqu(e){
957
+      for (let i = 0; i < this.partitionArr.length; i++) {
958
+        if(e==this.partitionArr[i].id){
959
+          this.fenqu_dialog=e
960
+        }
961
+      }
962
+      var params = {
963
+        schedule_date: this.date,
964
+        schedule_type: this.classes,
965
+        partition_type: this.fenqu_dialog,
966
+        keywords: '',
967
+        page: 1,
968
+        limit: 5000
969
+      }
970
+      getSchedualPrintList(params).then((response)=>{
971
+        if (response.data.state == 1) {
972
+          var list = response.data.data.list
973
+          this.list = list
974
+          var listOne = response.data.data.listOne
975
+          this.zones =listOne
976
+          var numberlist=response.data.data.numberList
977
+          console.log('00000',this.list);
978
+          this.subzone=[]
979
+          // 选择的分区的床位
980
+          for(let i=0;i<numberlist.length;i++){
981
+            if(this.fenqu_dialog==0){
982
+              this.subzone = numberlist
983
+              this.chuangwei = numberlist[0].id
984
+              this.g_xian_fenqu = numberlist[0]
985
+            }
986
+            if(this.fenqu_dialog==numberlist[i].zone_id){
987
+              const obj={id:null,number:'',zone_id:null}
988
+              obj.id=numberlist[i].id
989
+              obj.number=numberlist[i].number
990
+              obj.zone_id=numberlist[i].zone_id
991
+              this.subzone.push(obj)
992
+              this.chuangwei = this.subzone[0].id 
993
+              this.g_xian_fenqu=this.subzone[0]
994
+            }
995
+          }
996
+          console.log('22222',this.g_xian_fenqu);
997
+          // 默认的患者
998
+          for(let i=0;i<this.list.length;i++){
999
+            if(this.chuangwei==this.list[i].bed_id){
1000
+              this.genghuan.name=this.list[i].name
1001
+              this.genghuan.mode_id=this.list[i].mode_id
1002
+              this.genghuan.genghuan_fenqu=this.list[i].order.DeviceNumber.zone.name
1003
+              this.genghuan.genghuan_chuang = this.list[i].order.DeviceNumber.number
1004
+              this.genghuan.g_boolen_id =this.list[i].order.blood_access_id
1005
+              this.genghuan.genghuan_remark = this.list[i].order.schedule_remark
1006
+              console.log('99999',this.genghuan);
1007
+              console.log('000000',this.list[i].bed_id);
1008
+              return this.genghuan
1009
+            }else{
1010
+              console.log('eeeeee');
1011
+              this.genghuan.name=''
1012
+              this.genghuan.mode_id=''
1013
+              this.genghuan.genghuan_fenqu=''
1014
+              this.genghuan.genghuan_chuang = ''
1015
+              this.genghuan.g_boolen_id = ''
1016
+              this.genghuan.genghuan_remark =''
1017
+              // return this.genghuan
1018
+              // console.log('qqqqqq',this.list[i].bed_id);
1019
+            }
1020
+            
1021
+          }
1022
+        }
846 1023
       })
1024
+    },
1025
+    // 双击弹窗床位
1026
+    dialogchuangwei(e){
1027
+      console.log('333333',e);
1028
+      for (let i = 0; i < this.subzone.length; i++) {
1029
+        if(e==this.subzone[i].id){
1030
+          this.chuangwei=e
1031
+          console.log('77777',this.chuangwei);
1032
+        }
1033
+      }
1034
+      for(let i=0;i<this.list.length;i++){
1035
+        if(this.chuangwei==this.list[i].bed_id){
1036
+          this.genghuan.id = this.list[i].id
1037
+          this.genghuan.name=this.list[i].name
1038
+          this.genghuan.mode_id=this.list[i].mode_id
1039
+          this.genghuan.genghuan_fenqu=this.list[i].order.DeviceNumber.zone.name
1040
+          this.genghuan.genghuan_chuang = this.list[i].order.DeviceNumber.number
1041
+          this.genghuan.g_boolen_id = this.list[i].order.blood_access_id
1042
+          this.genghuan.genghuan_remark = this.list[i].order.schedule_remark
1043
+          console.log('99999',this.genghuan);
1044
+          console.log('000000',this.list[i].bed_id);
1045
+          return this.genghuan
1046
+        }
1047
+        if(this.chuangwei!=this.list[i].bed_id){
1048
+          console.log('eeeeee');
1049
+          this.genghuan.id = null
1050
+          this.genghuan.name=''
1051
+          this.genghuan.mode_id=''
1052
+          this.genghuan.genghuan_fenqu=''
1053
+          this.genghuan.genghuan_chuang = ''
1054
+          this.genghuan.g_boolen_id = ''
1055
+          this.genghuan.genghuan_remark =''
1056
+          // return this.genghuan
1057
+          // console.log('qqqqqq',this.list[i].bed_id);
1058
+        }
1059
+      }
1060
+      // 更换的床位置
1061
+      for(let y=0;y<this.subzone.length;y++){
1062
+        if(this.chuangwei==this.subzone[y].id){
1063
+          this.g_xian_fenqu=this.subzone[y]
1064
+        }
1065
+      }
1066
+    },
1067
+    verify_dialog(){
1068
+      this.centerDialogVisible=false
1069
+      console.log('444444444',this.huanzhe.id,this.genghuan.id);
1070
+      let params={
1071
+        id_one:this.huanzhe.id,
1072
+        id_two:this.genghuan.id
1073
+
1074
+      }
1075
+      ExchangeSch(params).then((response) => {
1076
+        if (response.data.state == 0) {
1077
+          this.$message.error(response.data.msg);
1078
+          this.tipDialogVisibleThree = false
1079
+        } else {
1080
+          console.log('22222222',response.data);
1081
+          this.$message.success("交换成功");
1082
+          this.tipDialogVisible = false
1083
+          this.tipDialogVisibleThree = false
1084
+          this.getlist();
1085
+        }
1086
+      });
847 1087
     }
848
-    
849 1088
   }
850
- 
851 1089
 }
852 1090
 </script>
853 1091
 
@@ -896,7 +1134,15 @@ export default {
896 1134
             width: 125px;
897 1135
             display: inline-block;
898 1136
             text-align: center;
1137
+            // margin:0 10px;
1138
+           }
1139
+           .huanzhekuais{
1140
+            width: 125px;
1141
+            // display: inline-block;
1142
+            text-align: center;
899 1143
             margin:0 10px;
1144
+            // line-height: 110px;
1145
+            background: #30b8e3;
900 1146
            }
901 1147
            
902 1148
           }