Procházet zdrojové kódy

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

陈少旭 před 1 rokem
rodič
revize
f67e8d96bf

+ 0 - 1
src/router/index.js Zobrazit soubor

@@ -174,7 +174,6 @@ var _asy_router_map = [
174 174
 
175 175
   otherManagement,
176 176
   qcd,
177
-
178 177
   device,
179 178
   org,
180 179
   data_upload,

+ 9 - 9
src/router/modules/dialysis.js Zobrazit soubor

@@ -56,15 +56,15 @@ export default {
56 56
         noCache: true
57 57
       }
58 58
     },
59
-    {
60
-      path: '/dialysis/patientDoctorAdvice',
61
-      component: () => import('@/xt_pages/dialysis/patientDoctorAdvice'),
62
-      name: '医嘱统计',
63
-      meta: {
64
-        title: '医嘱统计',
65
-        noCache: true
66
-      }
67
-    },
59
+    // {
60
+    //   path: '/dialysis/patientDoctorAdvice',
61
+    //   component: () => import('@/xt_pages/dialysis/patientDoctorAdvice'),
62
+    //   name: '医嘱统计',
63
+    //   meta: {
64
+    //     title: '医嘱统计',
65
+    //     noCache: true
66
+    //   }
67
+    // },
68 68
     {
69 69
       path: '/dialysis/longDoctorAdvice',
70 70
       component: () => import('@/xt_pages/dialysis/longDoctorAdvice'),

+ 1 - 1
src/xt_pages/DepositManagement/DepositSearch.vue Zobrazit soubor

@@ -133,6 +133,7 @@ export default {
133 133
         if (res.data.state == 1){
134 134
           this.total = res.data.data.total;
135 135
           this.tableData = res.data.data.list;
136
+          console.log('ccccc',this.tableData);
136 137
         }
137 138
       })
138 139
     },
@@ -147,7 +148,6 @@ export default {
147 148
         console.log("this.users",this.users)
148 149
       })
149 150
     },
150
-
151 151
     // 查询操作
152 152
     search() {
153 153
       this.keyword = this.tmp_keyword

+ 4 - 4
src/xt_pages/outpatientCharges/invoicePrint.vue Zobrazit soubor

@@ -24,7 +24,7 @@
24 24
           <print-eight v-if="org_id == 10387" :paramsObj="invoiceParams"></print-eight>
25 25
           <PrintNight v-if="org_id == 10210" :paramsObj="invoiceParams"></PrintNight>
26 26
           <!-- <PrintTen v-if="org_id == 10375 ||org_id == 0 " :paramsObj="invoiceParams"></PrintTen> -->
27
-          <printtwelve :paramsObj="invoiceParams"  v-if="org_id == 10480 "></printtwelve>
27
+          <printtwelve :paramsObj="invoiceParams"  v-if="org_id == 10480"></printtwelve>
28 28
         </div>
29 29
     </div>
30 30
 
@@ -69,9 +69,9 @@
69 69
   import PrintEight from "./invoiceTemplate/printEight";
70 70
   import PrintNight from "./invoiceTemplate/PrintNight";
71 71
   import PrintTen from './invoiceTemplate/printTen.vue'
72
-  import PrintEleven from './invoiceTemplate/printEleven.vue'
73
-  import printtwelve from './invoiceTemplate/printtwelve.vue'
74
-  import printthirteen from './invoiceTemplate/printthirteen.vue'
72
+  import PrintEleven from './invoiceTemplate/printEleven'
73
+  import printtwelve from './invoiceTemplate/printtwelve'
74
+  import printthirteen from './invoiceTemplate/printthirteen'
75 75
   export default {
76 76
     name: "invoicePrint",
77 77
     components: {

+ 1 - 1
src/xt_pages/outpatientCharges/invoiceTemplate/printthirteen.vue Zobrazit soubor

@@ -85,7 +85,7 @@
85 85
         </div>
86 86
         <div style="flex: 1;border-left: 1px solid black; padding: 5px 0;">¥:{{ list.medfee_sumamt }}</div>
87 87
       </div>
88
-      <div style="border:1px solid black;border-top: none;height: 80px;">
88
+      <div style="border:1px solid black;border-top: none;min-height: 80px;">
89 89
         <div style="padding: 5px 0; position: relative;">
90 90
           <div v-if="index == pageArr.length - 1">
91 91
             <div style="display:flex;">

+ 2 - 2
src/xt_pages/outpatientCharges/invoiceTemplate/printtwelve.vue Zobrazit soubor

@@ -80,9 +80,9 @@
80 80
         <div :style="{position: 'absolute',top:(80 + (index * 450))  + 'px',left:'30px'}">
81 81
           {{paramsObj.name}}
82 82
         </div>
83
-        <!-- <div :style="{position: 'absolute',top:(80 + (index * 450))  + 'px',left:'200px'}">
83
+        <div :style="{position: 'absolute',top:(80 + (index * 450))  + 'px',left:'200px'}">
84 84
           {{list.order.fa_piao_number}}
85
-        </div> -->
85
+        </div>
86 86
       </div>
87 87
 
88 88
       <div style="display: flex;">

+ 2 - 8
src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue Zobrazit soubor

@@ -65,12 +65,6 @@
65 65
               : ""
66 66
           }}
67 67
         </div>
68
-        <!-- <div style="margin-bottom:20px;padding:0 10px;">体格检查:
69
-                    <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
70
-                    <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
71
-                    <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
72
-                    <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
73
-                </div> -->
74 68
         <div style="margin-bottom: 20px; padding: 0 10px">
75 69
           临床诊断:{{ getDiagnosis(advicePrint[0].info.diagnosis) }}
76 70
         </div>
@@ -105,7 +99,7 @@
105 99
           </div>
106 100
         </div>
107 101
       </div>
108
-   
102
+
109 103
     </div>
110 104
     </div>
111 105
 
@@ -220,7 +214,7 @@ export default {
220 214
       getPrescriptionPrint(params).then((response) => {
221 215
         if (response.data.state == 1) {
222 216
           var advicePrint = response.data.data.advicePrint;
223
-          // console.log("adviceprint9999", advicePrint);
217
+          console.log("adviceprint9999", advicePrint);
224 218
           this.advicePrint = advicePrint;
225 219
           this.prescriptions = advicePrint;
226 220
           // console.log("处方222222", this.prescriptions);

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatPrint.vue Zobrazit soubor

@@ -16,8 +16,8 @@
16 16
         <!-- 此下条为本地开发下页面 -->
17 17
         <!-- <printTwo v-if="org_id == 4" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo> -->
18 18
         <!-- org_id != 10138 && org_id != 10278 && org_id !=4&& org_id !=0 -->
19
-        <printOne v-if="org_id != 10138 && org_id != 10278 && org_id !=4 && org_id != 10375 && org_id != 0 " v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
20
-        <printThree v-if=" org_id == 10375 || org_id==0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
19
+        <printOne v-if="org_id != 10138 && org_id != 10278 && org_id !=4 && org_id != 10375" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
20
+        <printThree v-if=" org_id == 10375 " v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
21 21
         <printTwo v-if="org_id == 10138 || org_id == 10278 || org_id ==4" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo>
22 22
       </div>
23 23
   </div>

+ 1 - 0
src/xt_pages/outpatientRegistration/registrationHistory.vue Zobrazit soubor

@@ -356,6 +356,7 @@
356 356
                     :total="total"
357 357
             >
358 358
             </el-pagination>
359
+            <!-- 挂号历史详情 -->
359 360
             <el-dialog
360 361
                     title="挂号历史详情"
361 362
                     :visible.sync="dialogVisible"

+ 11 - 6
src/xt_pages/user/evaluationtool/Glasgow.vue Zobrazit soubor

@@ -358,12 +358,17 @@ export default {
358 358
       this.dele_id=row.id
359 359
     },
360 360
     Glas_dele(){
361
-      this.append=false
362
-      this.Glas_gzdayin=false
363
-      this.Glasadd_show=true
364
-      this.Glas_baoxiao=false
365
-      this.cancel_num=0
366
-      this.dele_dialogVisible=true
361
+      if(this.dele_id !=''){
362
+        this.append=false
363
+        this.Glas_gzdayin=false
364
+        this.Glasadd_show=true
365
+        this.Glas_baoxiao=false
366
+        this.cancel_num=0
367
+        this.dele_dialogVisible=true
368
+      }else{
369
+        this.$message('请选择需要删除的记录')
370
+      }
371
+
367 372
     },
368 373
     deleclick(){
369 374
       for(let i=0;i<this.history_Glasgow.length;i++){

+ 10 - 5
src/xt_pages/user/evaluationtool/Muscleforce.vue Zobrazit soubor

@@ -338,11 +338,16 @@ export default {
338 338
       this.dele_id=row.id
339 339
     },
340 340
     muscle_dele(){
341
-      this.muscle_gsdayin=false
342
-      this.baocun_quxiao = false
343
-      this.append=false
344
-      this.muscle_pinggu=null
345
-      this.dele_dialogVisible=true
341
+      if(this.dele_id !=''){
342
+        this.muscle_gsdayin=false
343
+        this.baocun_quxiao = false
344
+        this.append=false
345
+        this.muscle_pinggu=null
346
+        this.dele_dialogVisible=true
347
+      }else{
348
+        this.$message('请选择需要删除的记录')
349
+      }
350
+
346 351
     },
347 352
     deleclick(){
348 353
       for(let i=0;i<this.history_muscle.length;i++){

+ 9 - 8
src/xt_pages/user/evaluationtool/OHpressuresore.vue Zobrazit soubor

@@ -328,11 +328,6 @@ export default {
328 328
         }else{
329 329
           checkboxs[i].checked = false
330 330
         }
331
-        // if(checkboxs[i].checked == true){
332
-        //   if(ball==checkboxs[i].value){
333
-        //     checkboxs[i].checked=false
334
-        //   }
335
-        // }
336 331
       }
337 332
     },
338 333
     bingligu(e){
@@ -416,14 +411,20 @@ export default {
416 411
       this.baocun_open=1
417 412
       this.cancel_num=1
418 413
     },
414
+    // 选择需要删除的记录
419 415
     dele_click(row, column, event){
420 416
       this.dele_id=row.id
421 417
     },
422 418
     //删除
423 419
     dele_OH(){
424
-      this.zsgy_open=0
425
-      this.append=false
426
-      this.dele_dialogVisible=true
420
+      if(this.dele_id !=''){
421
+        this.zsgy_open=0
422
+        this.append=false
423
+        this.dele_dialogVisible=true
424
+      }else{
425
+        this.$message('请选择需要删除的记录')
426
+      }
427
+
427 428
     },
428 429
     deleclick(){
429 430
       for(let i=0;i<this.history_OH.length;i++){

+ 10 - 6
src/xt_pages/user/evaluationtool/hemodialysis.vue Zobrazit soubor

@@ -1388,12 +1388,16 @@ export default {
1388 1388
       this.dele_dialogVisible=false
1389 1389
     },
1390 1390
     hemod_dele(){
1391
-      this.append=false
1392
-      this.gsdayin=false
1393
-      this.baocunqx=false
1394
-      this.hemodadd_show=true
1395
-      this.cancel_num=0
1396
-      this.dele_dialogVisible=true
1391
+      if(this.dele_id !=''){
1392
+        this.append=false
1393
+        this.gsdayin=false
1394
+        this.baocunqx=false
1395
+        this.hemodadd_show=true
1396
+        this.cancel_num=0
1397
+        this.dele_dialogVisible=true
1398
+      }else{
1399
+        this.$message('请选择需要删除的记录')
1400
+      }
1397 1401
     },
1398 1402
     hemod_click(row,column, event){
1399 1403
       this.dele_id=row.id

+ 130 - 133
src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue Zobrazit soubor

@@ -3,152 +3,151 @@
3 3
   <div class="patient-container">
4 4
       <patient-sidebar :id="patient_id" defaultActive="5-2"></patient-sidebar>
5 5
       <div>
6
-          <div class="patient-app-container advice-container app-container">
7
-              <div class='content_top' style="width: 100%;margin-bottom: 20px;">
8
-                  <div style="font-size: 20px;">小儿高危跌倒坠床评估表</div>
9
-                  <div>
10
-                      <el-button @click="childerHistory">历史评分</el-button>
11
-                      <el-button @click="dialogVisible=true">告知书</el-button>
12
-                  </div>
13
-              </div>
14
-
15
-              <div>
16
-                <table class="table" id="table" border="1" style="width: 100%;">
17
-                  <thead>
18
-                    <tr>
19
-                    <th style="width:10%;">项目</th>
20
-                    <th style="width: 22.4%;">4分</th>
21
-                    <th style="width: 22.4%;">3分</th>
22
-                    <th style="width: 22.4%;">2分</th>
23
-                    <th style="width: 22.4%;">1分</th>
24
-                    </tr>
25
-                  </thead>
26
-                  <tbody>
27
-                    <tr class="bg_color">
28
-                      <td class="start">年龄</td>
29
-                      <td v-for="(item,index) in age" :key="index">
30
-                        <div class="jiange">
31
-                          <label><input name="ball" class="checked1" type="checkbox" :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
32
-                        </div>
33
-                      </td>
34
-                    </tr>
35
-                    <tr>
36
-                      <td style="border-right: none;">
37
-                        <div class="bing">性别</div>
38
-                      </td>
39
-                      <td colspan="2" style="border-left: none;"></td>
40
-                      <td v-for="(item,index) in sex" :key="index">
41
-                        <div class="jiange">
42
-                          <label><input name="ball" class="checked2" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
43
-                        </div>
44
-                      </td>
45
-                    </tr>
46
-                    <tr class="bg_color">
47
-                      <td class="start">诊断</td>
48
-                      <td v-for="(item,index) in diagnosis" :key="index">
49
-                        <div class="jiange">
50
-                          <label><input name="ball" class="checked3" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
51
-                        </div>
52
-                      </td>
53
-
54
-                    </tr>
55
-                    <tr>
56
-                      <td style="border-right: none;">
57
-                          <div class="bing">认知障碍</div>
58
-                      </td>
59
-                      <td style="border-left: none;"></td>
60
-                      <td v-for="(item,index) in cognize" :key="index">
61
-                        <div class="jiange">
62
-                          <label><input name="ball" class="checked4" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
63
-                        </div>
64
-                      </td>
6
+        <div class="patient-app-container advice-container app-container">
7
+          <div class='content_top' style="width: 100%;margin-bottom: 20px;">
8
+            <div style="font-size: 20px;">小儿高危跌倒坠床评估表</div>
9
+            <div>
10
+              <el-button @click="childerHistory">历史评分</el-button>
11
+              <el-button @click="dialogVisible=true">告知书</el-button>
12
+            </div>
13
+          </div>
65 14
 
66
-                    </tr>
67
-                    <tr class="bg_color">
68
-                      <td class="start">环境因素</td>
69
-                      <td v-for="(item,index) in environment" :key="index">
70
-                        <div class="jiange">
71
-                          <label><input name="ball" class="checked5" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
72
-                        </div>
73
-                      </td>
15
+          <div>
16
+            <table class="table" id="table" border="1" style="width: 100%;">
17
+              <thead>
18
+                <tr>
19
+                <th style="width:10%;">项目</th>
20
+                <th style="width: 22.4%;">4分</th>
21
+                <th style="width: 22.4%;">3分</th>
22
+                <th style="width: 22.4%;">2分</th>
23
+                <th style="width: 22.4%;">1分</th>
24
+                </tr>
25
+              </thead>
26
+              <tbody>
27
+                <tr class="bg_color">
28
+                  <td class="start">年龄</td>
29
+                  <td v-for="(item,index) in age" :key="index">
30
+                    <div class="jiange">
31
+                      <label><input name="ball" class="checked1" type="checkbox" :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
32
+                    </div>
33
+                  </td>
34
+                </tr>
35
+                <tr>
36
+                  <td style="border-right: none;">
37
+                    <div class="bing">性别</div>
38
+                  </td>
39
+                  <td colspan="2" style="border-left: none;"></td>
40
+                  <td v-for="(item,index) in sex" :key="index">
41
+                    <div class="jiange">
42
+                      <label><input name="ball" class="checked2" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
43
+                    </div>
44
+                  </td>
45
+                </tr>
46
+                <tr class="bg_color">
47
+                  <td class="start">诊断</td>
48
+                  <td v-for="(item,index) in diagnosis" :key="index">
49
+                    <div class="jiange">
50
+                      <label><input name="ball" class="checked3" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
51
+                    </div>
52
+                  </td>
74 53
 
75
-                    </tr>
76
-                    <tr>
77
-                      <td style="border-right: none;">
78
-                          <div class="bing">药物使用</div>
79
-                      </td>
80
-                      <td style="border-left: none;"></td>
81
-                      <td v-for="(item,index) in medicine" :key="index">
82
-                        <div class="jiange">
83
-                          <label><input name="ball" class="checked6" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
84
-                        </div>
85
-                      </td>
54
+                </tr>
55
+                <tr>
56
+                  <td style="border-right: none;">
57
+                      <div class="bing">认知障碍</div>
58
+                  </td>
59
+                  <td style="border-left: none;"></td>
60
+                  <td v-for="(item,index) in cognize" :key="index">
61
+                    <div class="jiange">
62
+                      <label><input name="ball" class="checked4" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
63
+                    </div>
64
+                  </td>
86 65
 
87
-                    </tr>
88
-                    <tr class="bg_color">
89
-                    <td colspan="5" style="height: 30px;"></td>
66
+                </tr>
67
+                <tr class="bg_color">
68
+                  <td class="start">环境因素</td>
69
+                  <td v-for="(item,index) in environment" :key="index">
70
+                    <div class="jiange">
71
+                      <label><input name="ball" class="checked5" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
72
+                    </div>
73
+                  </td>
90 74
 
91
-                    </tr>
92
-                    <tr>
93
-                    <td colspan="5">
94
-                      <div class="content_top" >
95
-                        <div>
96
-                            <div class="bottoms">
97
-                            <span>总分:</span>
98
-                            <el-input v-model="pedia_Totalpoints" style="width: 100px;"></el-input>分
99
-                            </div>
75
+                </tr>
76
+                <tr>
77
+                  <td style="border-right: none;">
78
+                      <div class="bing">药物使用</div>
79
+                  </td>
80
+                  <td style="border-left: none;"></td>
81
+                  <td v-for="(item,index) in medicine" :key="index">
82
+                    <div class="jiange">
83
+                      <label><input name="ball" class="checked6" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
84
+                    </div>
85
+                  </td>
100 86
 
101
-                            <div class="bottoms">
102
-                                <span>评估日期:</span>
103
-                                <el-date-picker
104
-                                    v-model="value1"
105
-                                    type="date"
106
-                                    placeholder="选择日期"
107
-                                    :clearable="false"
108
-                                    style="width: 150px;">
109
-                                </el-date-picker>
110
-                            </div>
87
+                </tr>
88
+                <tr class="bg_color">
89
+                <td colspan="5" style="height: 30px;"></td>
111 90
 
112
-                            <div class="bottoms">
113
-                                <span>评估人:</span>
114
-                                <el-select v-model="value" placeholder="请选择" >
115
-                                    <el-option
116
-                                    v-for="item in options"
117
-                                    :key="item.value"
118
-                                    :label="item.label"
119
-                                    :value="item.value"
120
-                                    style="width:150px;">
121
-                                    </el-option>
122
-                                </el-select>
123
-                            </div>
91
+                </tr>
92
+                <tr>
93
+                <td colspan="5">
94
+                  <div class="content_top" >
95
+                    <div>
96
+                        <div class="bottoms">
97
+                        <span>总分:</span>
98
+                        <el-input v-model="pedia_Totalpoints" style="width: 100px;"></el-input>分
99
+                        </div>
124 100
 
101
+                        <div class="bottoms">
102
+                            <span>评估日期:</span>
103
+                            <el-date-picker
104
+                                v-model="value1"
105
+                                type="date"
106
+                                placeholder="选择日期"
107
+                                :clearable="false"
108
+                                style="width: 150px;">
109
+                            </el-date-picker>
125 110
                         </div>
126
-                        <div style="margin:5px 10px;">
127
-                          <el-button type="primary">确认</el-button>
111
+
112
+                        <div class="bottoms">
113
+                            <span>评估人:</span>
114
+                            <el-select v-model="value" placeholder="请选择" >
115
+                                <el-option
116
+                                v-for="item in options"
117
+                                :key="item.value"
118
+                                :label="item.label"
119
+                                :value="item.value"
120
+                                style="width:150px;">
121
+                                </el-option>
122
+                            </el-select>
128 123
                         </div>
129
-                      </div>
130
-                    </td>
131
-                    </tr>
132
-                  </tbody>
133
-                </table>
134 124
 
135
-              </div>
125
+                    </div>
126
+                    <div style="margin:5px 10px;">
127
+                      <el-button type="primary">确认</el-button>
128
+                    </div>
129
+                  </div>
130
+                </td>
131
+                </tr>
132
+              </tbody>
133
+            </table>
136 134
 
137 135
           </div>
136
+
137
+        </div>
138 138
       </div>
139 139
       <div>
140
-          <el-dialog
141
-              title="内容详情"
142
-              :visible.sync="dialogVisible"
143
-              width="50%"
140
+        <el-dialog
141
+            title="内容详情"
142
+            :visible.sync="dialogVisible"
143
+            width="50%"
144 144
 
145
-              class="status_change">
146
-              <div>
147
-                  <Falloutbedprint></Falloutbedprint>
148
-              </div>
149
-
150
-          </el-dialog>
145
+            class="status_change">
146
+            <div>
147
+                <Falloutbedprint></Falloutbedprint>
148
+            </div>
151 149
 
150
+        </el-dialog>
152 151
       </div>
153 152
   </div>
154 153
 </template>
@@ -206,11 +205,11 @@ export default {
206 205
      for(let i=0;i<checkboxs.length;i++){
207 206
       if(val==checkboxs[i].value){
208 207
         this.agevalue = val
209
-        checkboxs[i].value
210 208
         checkboxs[i].checked=true
211 209
       }else{
212 210
         checkboxs[i].checked = false
213 211
       }
212
+
214 213
      }
215 214
     },
216 215
     sexChange(e,val){
@@ -219,9 +218,7 @@ export default {
219 218
         if(val==checkboxs[i].value ){
220 219
           console.log('vvvv',val,'bbbb',e.target.checked);
221 220
           this.sexvalue = val
222
-
223 221
           checkboxs[i].checked=true
224
-
225 222
         }else{
226 223
           checkboxs[i].checked = false
227 224
         }

+ 29 - 91
src/xt_pages/user/evaluationtool/pruritusAssessment.vue Zobrazit soubor

@@ -33,7 +33,7 @@
33 33
                     </label>
34 34
                     <!-- quan_change -->
35 35
                     <label @change="handleCheckedCitiesChange">
36
-                      <input type="checkbox" class="check" name="ball" value="全身" />&nbsp;全身
36
+                      <input type="checkbox" class="checkbox" name="ball" value="全身" />&nbsp;全身
37 37
                     </label>
38 38
                   </div>
39 39
                 </td>
@@ -149,107 +149,45 @@ export default {
149 149
       options:[],
150 150
       value:'',
151 151
       value1:'',
152
+      num:0
152 153
     }
153 154
   },
154 155
   methods:{
155 156
     handleCheckedCitiesChange(e){
156 157
       const ball = e.target.value
157
-      // const checkboxs=document.getElementsByClassName('checkbox1')
158
+      // var num = null
159
+      const checkboxs=document.getElementsByClassName('checkbox')
158 160
       const checkbox2=document.getElementsByClassName('check')
159
-      // if(checkboxs[0].checked==true){
160
-      //   // if(e.target.value == '全身'){
161
-      //     this.checked_points = 3
162
-      //   // }else{
163
-      //   //   var checked =1
164
-      //   //   this.checked_points = this.checked_points + checked
165
-      //   // }
166
-      // }else{
167
-      //   // if(e.target.value == '全身'){
168
-      //     this.checked_points = 0
169
-      //   // }else{
170
-      //   //   var checked =1
171
-      //   //   this.checked_points = this.checked_points - checked
172
-      //   // }
173
-      // }
174
-      // for(let i=0;i<checkbox2.length;i++){
175
-      //   if(ball=='全身'){
176
-      //     if(ball==checkbox2[i].value){
177
-      //       console.log('1111',this.checked_points);
178
-      //       checkbox2[i].checked=true
179
-      //       this.checked_points = 3
180
-      //     }else{
181
-      //       console.log('2222',this.checked_points);
182
-      //       checkbox2[i].checked=false
183
-      //     }
184
-      //   }else{
185
-      //     if(checkbox2[i].value=='全身'){
186
-      //       console.log('3333',this.checked_points);
187
-      //       this.checked_points=0
188
-      //       checkbox2[i].checked=false
189
-      //     }else{
190
-      //       if(checkbox2[i].value==ball){
191
-      //         console.log('4444',this.checked_points);
192
-      //         var checked =1
193
-      //         e.target.checked=true
194
-      //         this.checked_points = this.checked_points + checked
195
-      //         // return this.checked_points
196
-      //       }
197 161
 
198
-      //     }
199
-
200
-      //   }
201
-      //   // if(checkboxs[0].checked==true){
202
-      //   //   this.checked_points = 3
203
-      //   //   checkbox2[i].checked=false
204
-      //   // }else{
205
-      //   //   if(ball==checkbox2[i].value){
206
-      //   //     console.log('2222',checkbox2[1].value);
207
-      //   //     checkboxs[0].checked=false
208
-      //   //     checkbox2[i].checked=true
209
-      //   //     var checked =1
210
-      //   //     this.checked_points = this.checked_points + checked
211
-      //   //   }
212
-      //   // }
213
-      // }
214
-      // console.log('1111111',ball)
215
-      // for(let i=0;i<checkbox2.length;i++){
216
-      //   if(ball=='全身'){
217
-      //     checkboxs[0].checked=true
218
-      //     checkbox2[i].checked=false
219
-      //     this.checked_points = 3
220
-      //   }else{
221
-      //     var checked =1
222
-      //     checkboxs[0].checked=false
223
-      //     e.target.checked=true
224
-      //     this.checked_points = this.checked_points + checked
225
-      //   }
226
-      // }
227
-
228
-      // if(ball=='全身'){
229
-      //   checkboxs[0].checked=true
230
-      // }else{
231
-      //   checkboxs[0].checked=false
232
-      // }
233
-
234
-      if(e.target.checked==true){
235
-        if(e.target.value == '全身'){
162
+      for(let i=0;i<checkbox2.length;i++){
163
+        if(ball=='全身'){
164
+          checkboxs[0].checked=true
165
+          checkbox2[i].checked=false
236 166
           this.checked_points = 3
167
+          this.num=0
237 168
         }else{
238
-          // if(this.checked_points<3){
239
-            var checked =1
240
-            this.checked_points = this.checked_points + checked
241
-          // }else{
242
-          //   this.checked_points = 3
243
-          // }
244
-        }
245
-      }else{
246
-        if(e.target.value == '全身'){
247
-          this.checked_points = 0
248
-        }else{
249
-          var checked =1
250
-          this.checked_points = this.checked_points - checked
169
+          if(ball==checkbox2[i].value){
170
+            // 得分归0
171
+            if(checkboxs[0].checked==true&&ball!='全身'){
172
+              this.checked_points = 0
173
+            }
174
+            console.log('cccc',this.num);
175
+            // 选择非全身时不能超过3个
176
+            if(this.num<3){
177
+              var checked =1
178
+              this.num++
179
+              this.checked_points = this.checked_points + checked
180
+              checkbox2[i].checked =true
181
+              checkboxs[0].checked =false//取消全身的选中
182
+              return this.num
183
+            }else{
184
+              checkbox2[i].checked =false//选择超过3个时无法选中
185
+              checkboxs[0].checked =false//取消全身的选中
186
+            }
187
+          }
251 188
         }
252 189
       }
190
+      return this.checked_points
253 191
     },
254 192
     quan_change(e){
255 193
       const ball=e.target.value

+ 46 - 132
src/xt_pages/workforce/Patientshift.vue Zobrazit soubor

@@ -74,9 +74,9 @@
74 74
                 <td>
75 75
                   <div v-for="(it,index) in numberlist" style="display: inline-block;position: relative;" >
76 76
                     <div v-if="hidder_chuang==true ? getkongchuang(it,item.list)>0 : ' '"><!--'background':getcolors(item)>0?'bisque':'#30b8e394'  'background':item2.mode_id==2||item2.mode_id==3?'bisque':'#30b8e394'-->
77
-                      <div  v-if="ite.partition_id==it.zone_id" class="huanzhekuais" 
78
-                      :style="{'height':!hidder ? '110px': '45px','overflow': 'auto'}" 
79
-                      @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" @dragstart="curInfoDragStart($event,item)" draggable="true"   @dragover="allowDrop"> 
77
+                      <div  v-if="ite.partition_id==it.zone_id" class="huanzhekuais"
78
+                      :style="{'height':!hidder ? '110px': '45px','overflow': 'auto'}"
79
+                      @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" @dragstart="curInfoDragStart($event,item)" draggable="true"   @dragover="allowDrop">
80 80
                         <div class="huanzhekuai">
81 81
                           <div v-for="(item2) in item.list" style="width: 100%;">
82 82
                             <template>
@@ -87,13 +87,13 @@
87 87
                                     <span style="font-size: 15px;margin-bottom: 5px;">{{item2.order.DeviceNumber.zone.name}}-{{item2.order.DeviceNumber.number}}</span><br>
88 88
                                     <span style="font-size: 15px;margin-bottom: 5px;">{{getBloodAccess(item2.order.blood_access_id)}}</span><br>
89 89
                                     <span style="font-size: 14px;;margin-bottom: 5px;">{{item2.order.schedule_remark}}</span>
90
-                                  </span> 
90
+                                  </span>
91 91
                                 </div>
92 92
                               </div>
93
-                            </template> 
93
+                            </template>
94 94
                           </div>
95
-                        </div> 
96
-                                          
95
+                        </div>
96
+
97 97
                       </div>
98 98
                       <div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
99 99
                         {{ it.number }}
@@ -104,9 +104,9 @@
104 104
               </tr>
105 105
             </tbody>
106 106
           </table>
107
-          
107
+
108 108
         </div>
109
-       
109
+
110 110
         <!-- 双击弹窗 -->
111 111
         <el-dialog
112 112
           title="提示"
@@ -146,11 +146,11 @@
146 146
                         {{ huanzhe.zeng_fenqu }}-{{ huanzhe.zeng_chuang }}
147 147
                       </span><br>
148 148
                       <span style="font-size: 15px;margin-bottom: 5px;">{{getBloodAccess(huanzhe.boolen_id)}}</span><br>
149
-                      <span style="font-size: 14px;margin-bottom: 5px;">{{huanzhe.schedule_remark}}</span> 
149
+                      <span style="font-size: 14px;margin-bottom: 5px;">{{huanzhe.schedule_remark}}</span>
150 150
                     </div>
151 151
                      <div style="margin-left: 13px;">{{getZoneName(xian_fenqu.zone_id)}}-{{xian_fenqu.number}}</div>
152 152
                   </div>
153
-                  
153
+
154 154
                   <div>
155 155
                     <div style="margin: 10px 30px 10px 10px;background: rgb(74 197 235);height: 110px;width: 125px;text-align: center;">
156 156
                       <span >{{genghuan.name}}</span><span v-if="genghuan.mode_id !=''">({{genghuan.mode_id}})</span><br>
@@ -164,7 +164,7 @@
164 164
                     <div style="margin-left: 13px;">{{getZoneName(g_xian_fenqu.zone_id)}}-{{g_xian_fenqu.number}}</div>
165 165
                   </div>
166 166
                 </div>
167
-               
167
+
168 168
               </div>
169 169
             </div>
170 170
           </div>
@@ -294,7 +294,7 @@
294 294
               inactive-text="OFF">
295 295
             </el-switch>
296 296
           </div>
297
-         
297
+
298 298
         </div>
299 299
         <div class="table_panel"  v-for="(item, index) in tableData" :key="index">
300 300
           <table class="table">
@@ -310,9 +310,9 @@
310 310
                 <td>
311 311
                   <div v-for="(it,index) in numberlist" style="display: inline-block;position: relative;" >
312 312
                     <div v-if="hidder_chuang==true ? getkongchuang(it,item.list)>0 : ' '">
313
-                      <div  v-if="ite.partition_id==it.zone_id" class="huanzhekuais" 
314
-                      :style="{'height':!hidder ? '110px': '45px','overflow': 'auto'}" 
315
-                      @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" @dragstart="curInfoDragStart($event)" draggable="true"   @dragover="allowDrop"> 
313
+                      <div  v-if="ite.partition_id==it.zone_id" class="huanzhekuais"
314
+                      :style="{'height':!hidder ? '110px': '45px','overflow': 'auto'}"
315
+                      @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" @dragstart="curInfoDragStart($event)" draggable="true"   @dragover="allowDrop">
316 316
                         <div class="huanzhekuai">
317 317
                           <div v-for="(item2) in item.list" :key="item2.bed_id"   draggable="true" >
318 318
                             <template >
@@ -323,13 +323,13 @@
323 323
                                     <span style="font-size: 15px;margin-bottom: 5px;">{{item2.order.DeviceNumber.zone.name}}-{{item2.order.DeviceNumber.number}}</span><br>
324 324
                                     <span style="font-size: 15px;margin-bottom: 5px;">{{getBloodAccess(item2.order.blood_access_id)}}</span><br>
325 325
                                     <span style="font-size: 14px;;margin-bottom: 5px;">{{item2.order.schedule_remark}}</span>
326
-                                  </span> 
326
+                                  </span>
327 327
                                 </div>
328 328
                               </div>
329
-                            </template> 
329
+                            </template>
330 330
                           </div>
331
-                        </div> 
332
-                                          
331
+                        </div>
332
+
333 333
                       </div>
334 334
                       <div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
335 335
                         {{ it.number }}
@@ -340,7 +340,7 @@
340 340
               </tr>
341 341
             </tbody>
342 342
           </table>
343
-          
343
+
344 344
         </div>
345 345
     </div>
346 346
   </div>
@@ -425,7 +425,7 @@ export default {
425 425
         { value: 3, label: "晚上" }
426 426
       ],
427 427
       zones:[],
428
-     
428
+
429 429
       total: [],
430 430
       list: [],
431 431
       loading: false,
@@ -501,7 +501,7 @@ export default {
501 501
       }
502 502
       return arr
503 503
     },
504
-    
504
+
505 505
     drop(e,val,value){
506 506
       this.allowDrop(e)
507 507
       var bedid = ''
@@ -535,7 +535,7 @@ export default {
535 535
           zonename = this.partitionArr[y].name
536 536
         }
537 537
       }
538
-      
538
+
539 539
       if(e.target.innerText == ''){
540 540
         this.schedule={
541 541
           schedule_date:this.date,
@@ -559,7 +559,6 @@ export default {
559 559
           currentData_quhao:this.cur_drag_info.quhao,
560 560
           currentData_chaung:this.cur_drag_info.chaung,
561 561
           patient_id:this.cur_drag_info.patient_id,
562
-
563 562
         }
564 563
         console.log('8888',this.currentData);
565 564
         this.setScheduleTwo(this.cur_drag_info.id)
@@ -572,7 +571,7 @@ export default {
572 571
         //     this.$message.error(response.data.msg);
573 572
         //   } else {
574 573
         //     var schedule = response.data.data.schedule;
575
-            
574
+
576 575
         //     this.getlist()
577 576
         //   }
578 577
         // })
@@ -613,7 +612,7 @@ export default {
613 612
               listl[i].name = this.cur_drag_info.name
614 613
               listl[i].new_name=this.cur_drag_info.name
615 614
               listl[i].partition_id =this.cur_drag_info.partition_id
616
-              
615
+
617 616
               listl[i].mode_id = this.cur_drag_info.mode_id
618 617
               listl[i].patient_id = this.cur_drag_info.patient_id
619 618
               listl[i].schedule_date=this.cur_drag_info.schedule_date
@@ -628,91 +627,6 @@ export default {
628 627
             }
629 628
           }
630 629
           return this.list
631
-          // this.getlist()
632
-          // for(let i=0;i<this.list.length;i++){
633
-          //   if(this.currentData.bed_id==this.list[i].bed_id){
634
-          //     this.list[i].patient_id=this.cur_drag_info.patient_id
635
-          //     this.list[i].id= response.data.new_sch.id
636
-          //     // console.log('3333',this.list);
637
-          //     // listl.splice(i,1)
638
-          //   }
639
-          // }
640
-          // console.log('6666',this.list);
641
-          // return this.list
642
-          // 
643
-          // for(let i=0;i<listl.length;i++){
644
-          //   if(this.currentData.bed_id==listl[i].bed_id){
645
-          //     listl[i].patient_id= this.cur_drag_info.patient_id
646
-          //     console.log('bbbb',this.currentData);
647
-          //   }
648
-          //   if(this.cur_drag_info.bed_id==listl[i].bed_id){
649
-          //    listl.splice(i,1)
650
-          //     console.log('bbbb',listl);
651
-          //   }
652
-          // }
653
-
654
-          // for(let i=0;i<listl.length;i++){
655
-          //   if(this.cur_drag_info.name== listl[i].name){
656
-          //     listl[i].bed_id = ''
657
-              
658
-          //   }
659
-          //   if(this.currentData.currentData_name== listl[i].name){
660
-          //     listl[i].bed_id = this.currentData.bed_id
661
-          //     listl[i].id = response.data.data.new_sch.id
662
-          //     console.log('nnnn',listl[i],this.cur_drag_info.bed_id);
663
-          //   }
664
-          // }
665
-
666
-          // for(let i=0;i<listl.length;i++){
667
-          //   if(this.currentData.bed_id== listl[i].bed_id){
668
-          //     // listl.splice(i,1)
669
-          //     listl[i].id=response.data.data.new_sch.id
670
-          //     // listl[i].bed_id = this.currentData.bed_id
671
-          //     listl[i].name = this.cur_drag_info.name
672
-          //     listl[i].new_name=this.cur_drag_info.name
673
-          //     listl[i].partition_id =this.cur_drag_info.partition_id
674
-              
675
-          //     listl[i].mode_id = this.cur_drag_info.mode_id
676
-          //     listl[i].patient_id = this.cur_drag_info.patient_id
677
-          //     listl[i].schedule_date=this.cur_drag_info.schedule_date
678
-          //     listl[i].schedule_type =this.cur_drag_info.schedule_type
679
-
680
-          //     listl[i].schedule_week = this.cur_drag_info.schedule_week
681
-          //     listl[i].order.DeviceNumber.number = this.cur_drag_info.chaung
682
-          //     listl[i].order.DeviceNumber.zone.name=this.cur_drag_info.quhao
683
-          //     listl[i].order.schedule_remark=this.cur_drag_info.schedule_remark
684
-          //     listl[i].order.blood_access_id=this.cur_drag_info.blood_access_id
685
-          //     // listl.splice(i,1)
686
-          //     console.log('vvvv',listl[i]);
687
-          //     // return listl
688
-          //   }
689
-          //   console.log('cur_drag_info.bed_id',this.cur_drag_info.bed_id);
690
-          //   if(this.cur_drag_info.bed_id== listl[i].bed_id){
691
-          //     this.list.splice(i,1)
692
-          //     // listl[i].name=''
693
-          //     // listl[i].bed_id=''
694
-          //     // listl[i].new_name=''
695
-          //     // listl[i].mode_id=''
696
-          //     // listl[i].patient_id=''
697
-          //     // listl[i].order.DeviceNumber.number = ''
698
-          //     // listl[i].order.DeviceNumber.zone.name= ''
699
-          //     // listl[i].order.schedule_remark=''
700
-          //     // listl[i].order.blood_access_id=''
701
-          //     listl.splice(i,1)
702
-          //     console.log('this.list',listl[i],this.list);
703
-          //     // return listl
704
-          //   }
705
-          //   // if(this.cur_drag_info.patient_id== listl[i].patient_id){
706
-          //   //   // listl[i].bed_id = this.currentData.bed_id
707
-          //   //   this.lsit=listl.splice(i,1)
708
-          //   //   console.log('nnnn',listl,this.currentData.bed_id);
709
-          //   //   return this.list
710
-          //   // }
711
-           
712
-          // }
713
-          // console.log('pppp',this.list);
714
-          // return this.list
715
-          // this.getlist();
716 630
         }
717 631
       });
718 632
     },
@@ -734,11 +648,11 @@ export default {
734 648
           this.$message.success("交换成功");
735 649
           this.tipDialogVisible = false
736 650
           this.tipDialogVisibleThree = false
737
-          
651
+
738 652
           const listl=this.list
739 653
           for(let i=0;i<listl.length;i++){
740 654
             if(this.cur_drag_info.patient_id== listl[i].patient_id){
741
-              listl[i].bed_id = this.currentData.bed_id 
655
+              listl[i].bed_id = this.currentData.bed_id
742 656
               console.log('mmmm',listl,this.currentData);
743 657
             }
744 658
             if(this.currentData.patient_id== listl[i].patient_id){
@@ -748,7 +662,7 @@ export default {
748 662
           // this.getlist();
749 663
         }
750 664
       });
751
-      
665
+
752 666
     },
753 667
     // 交换空白
754 668
     setScheduleTwo(id_two){
@@ -769,7 +683,7 @@ export default {
769 683
         const listl=this.list
770 684
         for(let i=0;i<listl.length;i++){
771 685
           if(schedule.patient_id== listl[i].patient_id){
772
-            listl[i].bed_id = schedule.bed_id 
686
+            listl[i].bed_id = schedule.bed_id
773 687
             listl[i].id = schedule.id
774 688
             console.log('mmmm',listl[i].id);
775 689
             // console.log('kkkk',this.currentData);
@@ -799,7 +713,7 @@ export default {
799 713
           }
800 714
         }
801 715
       }
802
-     
716
+
803 717
       // console.log('bbbb',e.target.innerText);
804 718
       // console.log('4444',val);
805 719
       console.log('5555',this.cur_drag_info);
@@ -871,7 +785,7 @@ export default {
871 785
           for(let i=0;i<list.length;i++){
872 786
            const new_name = 'new_name'
873 787
            list[i][new_name]=this.nameSplit(list[i].name)
874
-           
788
+
875 789
           }
876 790
           // console.log('9999',list);
877 791
           if (list != null && list.length > 0) {
@@ -884,7 +798,7 @@ export default {
884 798
                   schedule_date: item.schedule_date,
885 799
                   zones: [],
886 800
                   list:[],
887
-                  
801
+
888 802
                 }
889 803
               }
890 804
             })
@@ -915,7 +829,7 @@ export default {
915 829
         }
916 830
       })
917 831
     },
918
-    
832
+
919 833
     getTimeOne(val) {
920 834
       if (val == '') {
921 835
         return ''
@@ -923,7 +837,7 @@ export default {
923 837
         return uParseTime(val, '{y}-{m}-{d}')
924 838
       }
925 839
     },
926
-   
840
+
927 841
     // getPatientName(schedule_type, partition_id) {
928 842
     //   var str = ''
929 843
     //   var arr = []
@@ -997,7 +911,7 @@ export default {
997 911
       return name
998 912
     },
999 913
     getZonePatient(partition_id,schedule_type){
1000
-       
914
+
1001 915
        var arr = []
1002 916
        if(this.list!=null && this.list.length >0){
1003 917
          for(let i=0;i<this.list.length;i++){
@@ -1006,13 +920,13 @@ export default {
1006 920
             }
1007 921
          }
1008 922
        }
1009
- 
923
+
1010 924
        if(arr.length >0){
1011 925
           return arr.length
1012 926
        }else{
1013 927
          return ""
1014 928
        }
1015
- 
929
+
1016 930
     },
1017 931
     // 双击打开弹窗
1018 932
     db_click(e,val){
@@ -1037,7 +951,7 @@ export default {
1037 951
             this.huanzhe.bed_id = this.list[i].bed_id
1038 952
             // return this.huanzhe
1039 953
             console.log('kkkk',this.huanzhe);
1040
-          }     
954
+          }
1041 955
           // 双击弹窗的右侧第二个默认数据
1042 956
           if(this.chuangwei==this.list[i].bed_id){
1043 957
             console.log('xxxxx',this.chuangwei);
@@ -1070,7 +984,7 @@ export default {
1070 984
       }else{
1071 985
         this.centerDialogVisible=false
1072 986
       }
1073
-      
987
+
1074 988
     },
1075 989
     // 双击弹窗分区
1076 990
     dialogfenqu(e){
@@ -1108,7 +1022,7 @@ export default {
1108 1022
               obj.number=numberlist[i].number
1109 1023
               obj.zone_id=numberlist[i].zone_id
1110 1024
               this.subzone.push(obj)
1111
-              this.chuangwei = this.subzone[0].id 
1025
+              this.chuangwei = this.subzone[0].id
1112 1026
               this.g_xian_fenqu=this.subzone[0]
1113 1027
             }
1114 1028
           }
@@ -1137,7 +1051,7 @@ export default {
1137 1051
               // return this.genghuan
1138 1052
               // console.log('qqqqqq',this.list[i].bed_id);
1139 1053
             }
1140
-            
1054
+
1141 1055
           }
1142 1056
         }
1143 1057
       })
@@ -1181,7 +1095,7 @@ export default {
1181 1095
           this.genghuan.genghuan_remark =''
1182 1096
           this.genghuan.bed_id = ''
1183 1097
           this.genghuan.patient_id = ''
1184
-          
1098
+
1185 1099
         }
1186 1100
       }
1187 1101
       // 更换的床位置
@@ -1218,7 +1132,7 @@ export default {
1218 1132
                 const listl=this.list
1219 1133
                 for(let i=0;i<listl.length;i++){
1220 1134
                   if(this.huanzhe.name== listl[i].name){
1221
-                    listl[i].bed_id = this.chuangwei 
1135
+                    listl[i].bed_id = this.chuangwei
1222 1136
                     console.log('mmmm',listl,this.currentData);
1223 1137
                   }
1224 1138
                   if(this.genghuan.name== listl[i].name){
@@ -1329,7 +1243,7 @@ export default {
1329 1243
             // line-height: 110px;
1330 1244
             background: #30b8e366;
1331 1245
            }
1332
-           
1246
+
1333 1247
           }
1334 1248
         }
1335 1249
       }
@@ -1392,7 +1306,7 @@ export default {
1392 1306
             // line-height: 110px;
1393 1307
             background: #30b8e394;
1394 1308
            }
1395
-           
1309
+
1396 1310
           }
1397 1311
         }
1398 1312
       }

+ 117 - 46
src/xt_pages/workforce/appointment.vue Zobrazit soubor

@@ -127,52 +127,102 @@
127 127
                     @event2="changeSchedule"  @event3="changeWeekDay" v-show="showtableOne">
128 128
         </table-data>
129 129
       </div>
130
+      <!-- 编辑 -->
130 131
        <edit-table-data ref="edittableData"  :week-time="activeName" :partitions-prop="partitions"
131 132
                         :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone"
132 133
                          title="" @event1="changePartition"
133 134
                          @event2="changeSchedule" v-if="is_edit" @event3="changeWeekDay">
134
-        <div class="position">
135
-          <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
136
-          <div>
137
-            <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs">
138
-          <el-tab-pane name="lastWeek">
139
-            <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
140
-          </el-tab-pane>
141
-          <el-tab-pane name="thisWeek">
142
-            <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
143
-          </el-tab-pane>
144
-          <el-tab-pane name="nextWeek">
145
-            <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
146
-          </el-tab-pane>
147
-          <el-tab-pane name="nextTwoWeek">
148
-            <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
149
-          </el-tab-pane>
150
-        </el-tabs>
135
+          <div class="position">
136
+            <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
137
+            <div>
138
+              <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
139
+                <!-- <el-tab-pane name="beforeWeek">
140
+                  <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
141
+                </el-tab-pane> -->
142
+                <el-tab-pane name="lastWeek">
143
+                  <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
144
+                </el-tab-pane>
145
+                <el-tab-pane name="thisWeek">
146
+                  <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
147
+                </el-tab-pane>
148
+                <el-tab-pane name="nextWeek">
149
+                  <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
150
+                </el-tab-pane>
151
+                <el-tab-pane name="nextTwoWeek">
152
+                  <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
153
+                </el-tab-pane>
154
+              </el-tabs>
155
+            </div>
156
+            <div style="display:flex;align-items:center">
157
+              <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
158
+              <!-- <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel> -->
159
+              <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
160
+                导出排班
161
+              </el-button>
162
+              <el-button
163
+                  @click="generateLog()"
164
+                  class="filter-item"
165
+                  type="primary"
166
+                  v-if="is_edit"
167
+                  size="small"
168
+              >下载日志
169
+              </el-button>
170
+              <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
171
+              </el-button>
172
+              <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
173
+              <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
174
+              <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
175
+              <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
176
+            </div>
151 177
           </div>
152
-        <div style="display:flex;align-items:center">
153
-          <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
154
-          <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel>
155
-          <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
156
-            导出排班
157
-          </el-button>
158
-          <el-button
159
-              @click="generateLog()"
160
-              class="filter-item"
161
-              type="primary"
162
-              v-if="is_edit"
163
-              size="small"
164
-          >下载日志
165
-          </el-button>
166
-          <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
167
-          </el-button>
168
-          <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
169
-          <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
170
-          <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
171
-          <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
172
-        </div>
173
-      </div>
174
-        </edit-table-data>
175 178
 
179
+        </edit-table-data>
180
+        <!-- 编辑上上周 -->
181
+        <!-- <beforeweekTable ref="beforeweeks" v-show="beforeshow" :week-time="activeName" :partitions-prop="partitions"
182
+                  :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone" @event3="changeWeekDay">
183
+          <div class="position">
184
+            <div>
185
+              <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
186
+                <el-tab-pane name="beforeWeek">
187
+                  <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
188
+                </el-tab-pane>
189
+                <el-tab-pane name="lastWeek">
190
+                  <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
191
+                </el-tab-pane>
192
+                <el-tab-pane name="thisWeek">
193
+                  <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
194
+                </el-tab-pane>
195
+                <el-tab-pane name="nextWeek">
196
+                  <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
197
+                </el-tab-pane>
198
+                <el-tab-pane name="nextTwoWeek">
199
+                  <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
200
+                </el-tab-pane>
201
+              </el-tabs>
202
+            </div>
203
+            <div style="display:flex;align-items:center">
204
+              <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
205
+              <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
206
+                导出排班
207
+              </el-button>
208
+              <el-button
209
+                  @click="generateLog()"
210
+                  class="filter-item"
211
+                  type="primary"
212
+                  v-if="is_edit"
213
+                  size="small"
214
+              >下载日志
215
+              </el-button>
216
+              <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
217
+              </el-button>
218
+              <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
219
+              <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
220
+              <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
221
+              <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
222
+            </div>
223
+          </div>
224
+        </beforeweekTable> -->
225
+        <!-- 历史 -->
176 226
         <HistoryWeekTable v-show="showtable" ref="tableDataZero"  :week-time="activeName" :partitions-prop="partitions"
177 227
                   :schedule-zone-row-prop="scheduleZoneRow"
178 228
                   :schedule-zone-prop="scheduleZone" title="" >
@@ -228,6 +278,8 @@ import {generateLog} from '@/api/config'
228 278
 import {uParseTime} from '@/utils/tools'
229 279
 import EditTableData from "./components/editTableData";
230 280
 import HistoryWeekTable from './components/historyWeekTable'
281
+import beforeweekTable from './components/beforeweekTable'
282
+
231 283
 export default {
232 284
   name: 'appointment',
233 285
   data() {
@@ -277,6 +329,7 @@ export default {
277 329
       isExistRepeatVisible: false,
278 330
       exportVisible: false,
279 331
       exportLogVisible: false,
332
+      beforeshow:false,//编辑页面的上上周
280 333
       // 周期
281 334
       theWeek: {
282 335
         historyWeek:0,
@@ -325,7 +378,8 @@ export default {
325 378
     tableData,
326 379
     BreadCrumb,
327 380
     UploadExcel,
328
-    HistoryWeekTable
381
+    HistoryWeekTable,
382
+    beforeweekTable
329 383
   },
330 384
   methods: {
331 385
     handleClick(e,tab){
@@ -342,6 +396,22 @@ export default {
342 396
       }
343 397
 
344 398
     },
399
+    // 打开编辑上上周
400
+    // historyclick(e){
401
+    //   console.log('vvvvwwww',e);
402
+    //   if(e.name=='beforeWeek'){
403
+    //     console.log('gggggwerwe');
404
+    //     this.beforeshow=true
405
+    //     this.schedulingTableVisible=false
406
+    //     this.$nextTick(function() {//, this.days,this.zones
407
+    //       this.$refs.beforeweeks.setEditData(this.patientList, this.$store.getters.treatment_mode, this.days,this.zones)
408
+    //     })
409
+    //   }else{
410
+    //     this.beforeshow=false
411
+    //     this.schedulingTableVisible=true
412
+    //   }
413
+    // },
414
+   
345 415
     dragstart(event, item) {
346 416
       // console.log('start的索引',item.moveIndex)
347 417
       // 开始移动的时候将移动的索引值+图片的url存储下来
@@ -769,8 +839,8 @@ export default {
769 839
           })
770 840
 
771 841
           const filename = '排班模版'
772
-         
773
-          
842
+
843
+
774 844
           excel.export_json_to_excel({
775 845
             multiHeader,
776 846
             header,
@@ -917,7 +987,7 @@ export default {
917 987
 
918 988
     },
919 989
     printScheduleActionOne:function(){
920
-       
990
+
921 991
       var start_time = this.$refs.tableDataZero.start_time
922 992
 
923 993
       var end_time =  this.$refs.tableDataZero.end_time
@@ -928,7 +998,7 @@ export default {
928 998
 
929 999
       var week_date = []
930 1000
 
931
-    
1001
+
932 1002
       this.$router.push({path:'/scheduleTablePrintThree?partition_id='+partition_id+"&weekTime="+nextTwoWeek+"&week_date="+week_date+"&start_time="+start_time+"&end_time="+end_time})
933 1003
     },
934 1004
     isShow() {
@@ -2041,7 +2111,7 @@ export default {
2041 2111
           break
2042 2112
       }
2043 2113
 
2044
-    }, 
2114
+    },
2045 2115
     getDateByResultsStr(key) {
2046 2116
 
2047 2117
       switch (key) {
@@ -2965,6 +3035,7 @@ export default {
2965 3035
     },
2966 3036
     outisedit(){
2967 3037
       this.is_edit=false
3038
+      this.beforeshow=false
2968 3039
       this.schedulingTableVisible=false
2969 3040
     },
2970 3041
     copySchedule() {

Diff nebyl zobrazen, protože je příliš veliký
+ 2878 - 0
src/xt_pages/workforce/components/beforeweekTable.vue


+ 23 - 257
src/xt_pages/workforce/components/editTableData.vue Zobrazit soubor

@@ -1757,6 +1757,7 @@
1757 1757
   </div>
1758 1758
 </template>
1759 1759
 
1760
+
1760 1761
 <script>
1761 1762
 import { uParseTime } from "@/utils/tools";
1762 1763
 import print from "print-js";
@@ -1934,6 +1935,7 @@ export default {
1934 1935
       patientList: [],
1935 1936
       all_patients: [],
1936 1937
       systemDate:'',
1938
+
1937 1939
       mode_select: [
1938 1940
         {
1939 1941
           value: "1",
@@ -2105,7 +2107,9 @@ export default {
2105 2107
       },
2106 2108
       cellflag: 0,
2107 2109
       schedulesGroup:[],
2108
-      numberList:[]
2110
+      numberList:[],
2111
+      newschedules:[],
2112
+      newArr:[]
2109 2113
     };
2110 2114
   },
2111 2115
 
@@ -2169,6 +2173,7 @@ export default {
2169 2173
     },
2170 2174
   },
2171 2175
   methods: {
2176
+
2172 2177
     changeSch(row) {
2173 2178
       let params = {
2174 2179
         zone_id: row.zone_id,
@@ -3238,7 +3243,6 @@ export default {
3238 3243
               id : row[key].schedule_id,
3239 3244
               contagions: row[key].patient_contagions,
3240 3245
             }
3241
-            console.log('4444444',row[key].schedule_id);
3242 3246
           }else{
3243 3247
             this.cur_drag_obj = 3
3244 3248
             this.cur_drag_info={
@@ -3332,14 +3336,12 @@ export default {
3332 3336
           this.$message.error(response.data.msg);
3333 3337
           this.tipDialogVisibleTwo = false
3334 3338
         } else {
3335
-          console.log('11111111111',response.data);
3336 3339
           this.$message.success("替换成功");
3337 3340
           this.tipDialogVisible = false
3338 3341
           this.tipDialogVisibleTwo = false
3339 3342
           this.getSchedules();
3340 3343
         }
3341 3344
       });
3342
-
3343 3345
     },
3344 3346
     // 交换位置
3345 3347
     changeSchTwo(){
@@ -3355,7 +3357,6 @@ export default {
3355 3357
             this.$message.error(response.data.msg);
3356 3358
             this.tipDialogVisibleThree = false
3357 3359
           } else {
3358
-            console.log('22222222',response.data);
3359 3360
             this.$message.success("交换成功");
3360 3361
             this.tipDialogVisible = false
3361 3362
             this.tipDialogVisibleThree = false
@@ -3386,7 +3387,6 @@ export default {
3386 3387
             id : row[key].schedule_id,
3387 3388
             partition_type : row.zone_type,
3388 3389
           }
3389
-          console.log('ffffffffffff',this.currentData);
3390 3390
           // let nowDate = new Date();
3391 3391
           // let date = {
3392 3392
           //       year: nowDate.getFullYear(),
@@ -3396,8 +3396,8 @@ export default {
3396 3396
           //   let Month=date.month<10 ? '0'+ date.month :  date.month
3397 3397
           //   let Dateday= date.date<10 ? '0'+date.date : date.date
3398 3398
           //   this.systemDate = date.year + '-'+ Month + '-'+ Dateday;
3399
-          console.log('this.currentData的数据',row[key].patient_id);
3400
-          console.log('this.cur_drag_info的数据',key);
3399
+          // console.log('this.currentData的数据',this.currentData);
3400
+          // console.log('this.cur_drag_info的数据',this.cur_drag_info);
3401 3401
           // console.log('123453545',this.systemDate);
3402 3402
           // 当表格有数据
3403 3403
           if ( row[key].mode_id > 0 || row[key].patient_id > 0) {
@@ -3419,17 +3419,15 @@ export default {
3419 3419
              if(this.cur_drag_obj == 2){
3420 3420
               if(this.cur_drag_info.schedule_date == this.currentData.schedule_date){ //同一天
3421 3421
                 if(row[key].patient_id == 0) { //空床位
3422
-                      const that = this;
3423
-                      //接口提交排班数据
3424
-                      that.currentData.mode_id = that.cur_drag_info.mode_id
3425
-                      that.currentData.id = 0
3426
-                      that.currentData.patient_id = that.cur_drag_info.patient_id
3427
-                      that.currentData.patient = that.cur_drag_info.patient_name
3428
-                       that.currentData.contagions = that.cur_drag_info.contagions
3429
-                        console.log("中国hshshshshhs",that.cur_drag_info.id)
3430
-
3431
-
3432
-                        that.setScheduleTwo(this.cur_drag_info.id);
3422
+                          const that = this;
3423
+                          //接口提交排班数据
3424
+                          that.currentData.mode_id = that.cur_drag_info.mode_id
3425
+                          that.currentData.id = 0
3426
+                          that.currentData.patient_id = that.cur_drag_info.patient_id
3427
+                          that.currentData.patient = that.cur_drag_info.patient_name
3428
+                          that.currentData.contagions = that.cur_drag_info.contagions
3429
+                          console.log("中国hshshshshhs",that.cur_drag_info.contagions)
3430
+                          that.setScheduleTwo(this.cur_drag_info.id);
3433 3431
                 }
3434 3432
               }else{ // 非同一天
3435 3433
                 if(row[key].patient_id == 0) { //空床位
@@ -3834,18 +3832,6 @@ export default {
3834 3832
       }
3835 3833
       return "";
3836 3834
     },
3837
-    // 单元格的 style 的回调方法
3838
-    // cellstyle({ row, column, rowIndex, columnIndex }){
3839
-    //   // 分区蓝线
3840
-    //   for(let i=0;i<this.subzone.length;i++){
3841
-    //     const subslice=this.subzone[i].jihaos.slice(-1)
3842
-    //     // console.log('这是row',subslice);
3843
-    //     if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
3844
-    //       // console.log('33333333333');
3845
-    //       return 'border-top: 1px solid aqua;'
3846
-    //     }
3847
-    //   }
3848
-    // },
3849 3835
     // 单元格的患者名称的回调方法
3850 3836
     patientClass({row,column, rowIndex,columnIndex}){
3851 3837
       if(this.cur_info.patient_id == row.id){
@@ -4578,12 +4564,10 @@ export default {
4578 4564
         this.currentData.contagions = row.contagions;
4579 4565
       }
4580 4566
     },
4581
-
4567
+    // 数据源
4582 4568
     getSchedules() {
4583 4569
       var partionStr = this.partition_id;
4584
-      console.log('66665555',partionStr);
4585 4570
       var arr = this.zoneIdList.join(",");
4586
-      console.log('ccccccc',this.zoneIdList);
4587 4571
       var str = "";
4588 4572
       if (partionStr == 0) {
4589 4573
         str = arr;
@@ -4591,7 +4575,6 @@ export default {
4591 4575
       if (partionStr != 0) {
4592 4576
         str = partionStr.join(",");
4593 4577
       }
4594
-      console.log('qqqqqqq',str);
4595 4578
       const params = {
4596 4579
         weekTime: this.theType,
4597 4580
         patitionid: str,
@@ -4601,10 +4584,11 @@ export default {
4601 4584
       getSchedulesOne(params).then((response) => {
4602 4585
         if (response.data.state == 1) {
4603 4586
           this.weekTitle = response.data.data.weekTitle;
4604
-          console.log('999990000',response.data.data);
4587
+        
4605 4588
           this.weekDays = response.data.data.days;
4606 4589
           this.toDay = response.data.data.today;
4607 4590
           var theSchedules = response.data.data.schdules;
4591
+          this.newschedules= theSchedules
4608 4592
           var schedulesGroup = response.data.data.schedulesGroup
4609 4593
           this.schedulesGroup = schedulesGroup
4610 4594
           var that = this;
@@ -4812,86 +4796,8 @@ export default {
4812 4796
         }
4813 4797
       });
4814 4798
     },
4815
-  //  调整机号
4816
-    // changeScheduleActon(formName) {
4817
-    //   this.changing_bed = true;
4818
-    //   ChangeSchedule(this.currentData.id, this.changeSchedule)
4819
-    //       .then((response) => {
4820
-    //         if (response.data.state == 0) {
4821
-    //           this.$message.error(response.data.msg);
4822
-    //         } else {
4823
-    //           this.$message({
4824
-    //             type: "success",
4825
-    //             message: "修改成功!",
4826
-    //           });
4827
-    //           var that = this;
4828
-    //           var schedule = response.data.data.schedule;
4829
-
4830
-    //           this.scheduleZone.forEach(function (zone, index) {
4831
-    //             if (
4832
-    //                 zone.zone_id == schedule.partition_id &&
4833
-    //                 zone.jihao_id == schedule.bed_id
4834
-    //             ) {
4835
-    //               var weekPath = that.weekPath(
4836
-    //                   schedule.schedule_week,
4837
-    //                   schedule.schedule_type
4838
-    //               );
4839
-    //               if (weekPath.length == 2) {
4840
-    //                 var weekPathKey = weekPath[0] + "_" + weekPath[1];
4841
-    //                 that.scheduleZone[index][weekPathKey] = {
4842
-    //                   schedule_id: schedule.id,
4843
-    //                   mode_id: schedule.mode_id,
4844
-    //                   patient_id: schedule.patient_id,
4845
-    //                   patient: that.currentData.patient,
4846
-    //                   patient_contagions: that.currentData.contagions,
4847
-    //                   dialysis_machine_name: schedule.dialysis_machine_name,
4848
-
4849
-    //                   mode_name:
4850
-    //                       typeof that.modeOptions[schedule.mode_id] === "undefined"
4851
-    //                           ? ""
4852
-    //                           : that.modeOptions[schedule.mode_id].name,
4853
-    //                 };
4854
-
4855
-    //                 that.scheduleZone[index].total += 1;
4856
-    //               }
4857
-    //             }
4858
-    //             if (
4859
-    //                 zone.zone_id == that.currentData.partition_id &&
4860
-    //                 zone.jihao_id == that.currentData.bed_id
4861
-    //             ) {
4862
-    //               var weekPath = that.weekPath(
4863
-    //                   that.currentData.schedule_week,
4864
-    //                   that.currentData.schedule_type
4865
-    //               );
4866
-    //               if (weekPath.length == 2) {
4867
-    //                 var weekPathKey = weekPath[0] + "_" + weekPath[1];
4868
-    //                 that.scheduleZone[index][weekPathKey] = {
4869
-    //                   schedule_id: 0,
4870
-    //                   mode_id: 0,
4871
-    //                   patient_id: 0,
4872
-    //                   patient: "",
4873
-    //                   dialysis_machine_name: "",
4874
-
4875
-    //                   mode_name: "",
4876
-    //                   patient_contagions: [],
4877
-    //                 };
4878
-
4879
-    //                 that.scheduleZone[index].total -= 1;
4880
-    //               }
4881
-    //             }
4882
-    //           });
4883
-    //           this.$refs[formName].resetFields();
4884
-    //           this.jhDialogVisible = false;
4885
-    //         }
4886
-    //         this.changing_bed = false;
4887
-    //       })
4888
-    //       .catch((err) => {
4889
-    //         this.$message.error(err);
4890
-    //         this.changing_bed = false;
4891
-    //       });
4892
-    // },
4893
-    // 排班成功接口
4894 4799
 
4800
+    // 排班成功接口
4895 4801
     async CreateSchedule(id, data) {
4896 4802
       this.creating_schedule = true;
4897 4803
       let response =await CreateSchedule(id, data)
@@ -5064,44 +4970,6 @@ export default {
5064 4970
 
5065 4971
     },
5066 4972
 
5067
-    // submitTiaoZJH(formName) {
5068
-    //   this.$refs[formName].validate((valid) => {
5069
-    //     if (valid) {
5070
-    //       var weekPath = this.weekPath(
5071
-    //           this.changeSchedule.schedule_week,
5072
-    //           this.changeSchedule.schedule_type
5073
-    //       );
5074
-    //       if (weekPath.length != 2) {
5075
-    //         this.$message.error("数据异常");
5076
-    //         return false;
5077
-    //       }
5078
-
5079
-    //       this.changeSchedule.bed_id = this.device_id;
5080
-    //       for (let i = 0; i < this.origin_device_numbers.length; i++) {
5081
-    //         if (this.origin_device_numbers[i].id == this.device_id) {
5082
-    //           this.changeSchedule.partition_id =
5083
-    //               this.origin_device_numbers[i].zone_id;
5084
-    //         }
5085
-    //       }
5086
-
5087
-    //       this.changeSchedule.change_action = "change_device";
5088
-    //       this.changeScheduleActon(formName);
5089
-
5090
-    //       this.changeSchedule.spartition_type = this.scheduleZone[index].zone_type
5091
-    //       var weekPathKey = weekPath[0] + '_' + weekPath[1]
5092
-    //       for (var index in this.scheduleZone) {
5093
-    //         if (this.scheduleZone[index].jihao_id == this.changeSchedule.bed_id) {
5094
-    //           if (this.scheduleZone[index][weekPathKey].mode_id > 0) {
5095
-    //             this.$message.error('选中的区域已经存在排班,不能再排班!')
5096
-    //             return false
5097
-    //           }
5098
-    //           break
5099
-    //         }
5100
-    //       }
5101
-    //     }
5102
-    //   })
5103
-    // },
5104
-
5105 4973
     //  双击弹窗确认按钮
5106 4974
     submitMode(formName) {
5107 4975
       console.log("wowowoowow",this.changeSchedule)
@@ -5152,59 +5020,6 @@ export default {
5152 5020
 
5153 5021
     },
5154 5022
 
5155
-    // submitTiaoZMS(formName) {
5156
-    //   this.$refs[formName].validate((valid) => {
5157
-    //     if (valid) {
5158
-    //       this.changing_mode = true;
5159
-    //       this.changeSchedule.change_action = "change_mode";
5160
-    //       ChangeSchedule(this.currentData.id, this.changeSchedule)
5161
-    //           .then((response) => {
5162
-    //             if (response.data.state == 0) {
5163
-    //               this.$message.error(response.data.msg);
5164
-    //             } else {
5165
-    //               this.$message({
5166
-    //                 type: "success",
5167
-    //                 message: "修改成功!",
5168
-    //               });
5169
-    //               var that = this;
5170
-    //               var schedule = response.data.data.schedule;
5171
-    //               this.scheduleZone.forEach(function (zone, index) {
5172
-    //                 if (
5173
-    //                     zone.zone_id == schedule.partition_id &&
5174
-    //                     zone.jihao_id == schedule.bed_id
5175
-    //                 ) {
5176
-    //                   var weekPath = that.weekPath(
5177
-    //                       schedule.schedule_week,
5178
-    //                       schedule.schedule_type
5179
-    //                   );
5180
-    //                   if (weekPath.length == 2) {
5181
-    //                     var weekPathKey = weekPath[0] + "_" + weekPath[1];
5182
-    //                     that.scheduleZone[index][
5183
-    //                         weekPathKey
5184
-    //                         ].dialysis_machine_name = schedule.dialysis_machine_name;
5185
-    //                     that.scheduleZone[index][weekPathKey].mode_id =
5186
-    //                         schedule.mode_id;
5187
-    //                     that.scheduleZone[index][weekPathKey].mode_name =
5188
-    //                         typeof that.modeOptions[schedule.mode_id] ===
5189
-    //                         "undefined"
5190
-    //                             ? ""
5191
-    //                             : that.modeOptions[schedule.mode_id].name;
5192
-    //                   }
5193
-    //                 }
5194
-    //               });
5195
-    //               this.$refs[formName].resetFields();
5196
-    //               this.msDialogVisible = false;
5197
-    //             }
5198
-    //             this.changing_mode = false;
5199
-    //           })
5200
-    //           .catch((err) => {
5201
-    //             this.$message.error(err);
5202
-    //             this.changing_mode = false;
5203
-    //           });
5204
-    //     }
5205
-    //   });
5206
-    // },
5207
-
5208 5023
     changePartition(value) {
5209 5024
       this.current_devices = this.zone_device_map[value];
5210 5025
       this.device_id = this.current_devices[0].id;
@@ -5671,6 +5486,7 @@ export default {
5671 5486
       }
5672 5487
       return [w, n];
5673 5488
     },
5489
+    // 左侧搜索
5674 5490
     search: function () {
5675 5491
       if (this.keywords.length == 0) {
5676 5492
         this.patientList = this.all_patients;
@@ -5695,57 +5511,7 @@ export default {
5695 5511
         }
5696 5512
       }
5697 5513
     },
5698
-    // 取消排班
5699
-    // changeMachineNumber: function (index, row) {
5700
-    //   this.currentData.schedule_type = row.schedule_type;
5701
-    //   this.currentData.bed_id = row.bed_id;
5702
-    //   this.currentData.partition_id = row.partition_id;
5703
-    //   this.currentData.schedule_week = row.schedule_week;
5704
-
5705
-    //   switch (row.schedule_type) {
5706
-    //     case 1:
5707
-    //       this.currentData.type_name = "上午";
5708
-    //       break;
5709
-    //     case 2:
5710
-    //       this.currentData.type_name = "下午";
5711
-    //       break;
5712
-    //     case 3:
5713
-    //       this.currentData.type_name = "晚上";
5714
-    //       break;
5715
-    //   }
5716
-
5717
-    //   this.currentData.zone_name = row.zone.name;
5718
-    //   this.currentData.bed_name = row.number.number;
5719
-    //   this.currentData.partition_type = row.zone.type;
5720
-
5721
-    //   this.currentData.mode_id = row.mode_id;
5722
-    //   this.currentData.patient_id = row.patient_id;
5723
-    //   this.currentData.patient = row.patient;
5724
-    //   this.currentData.contagions = row.patient_contagions;
5725
-
5726
-    //   this.currentData.id = row.id;
5727
-    //   this.changeSchedule = {
5728
-    //     mode_id: row.mode_id,
5729
-    //     schedule_type: row.schedule_type,
5730
-    //     partition_id: row.partition_id,
5731
-    //     bed_id: row.bed_id,
5732
-    //     schedule_week: row.schedule_week,
5733
-    //     partition_type: "",
5734
-    //   };
5735
-    //   this.currentData.schedule_date = uParseTime(
5736
-    //       row.schedule_date,
5737
-    //       "{y}-{m}-{d}"
5738
-    //   );
5739
-
5740
-    //   if (typeof this.partitions[row.partition_id].jihaos !== "undefined") {
5741
-    //     this.jihaos = this.partitions[row.partition_id].jihaos;
5742
-    //   } else {
5743
-    //     this.jihaos = [];
5744
-    //   }
5745
-
5746
-    //   this.searchTableVisible = false;
5747
-    //   this.jhDialogVisible = true;
5748
-    // },
5514
+ 
5749 5515
     getDialysisDate: function (row) {
5750 5516
       let week = "";
5751 5517
       switch (row.schedule_week) {

+ 18 - 20
src/xt_pages/workforce/components/historyWeekTable.vue Zobrazit soubor

@@ -6,7 +6,7 @@
6 6
             v-model="weekTime"
7 7
             type="week"
8 8
             format="第 WW 周"
9
-            placeholder="选择周"  
9
+            placeholder="选择周"
10 10
             :picker-options="{'firstDayOfWeek': 1}"
11 11
             @change="changeWeek"
12 12
             :clearable="false"
@@ -15,8 +15,6 @@
15 15
         </el-date-picker>
16 16
     </div>
17 17
     <!--   -->
18
-    
19
-
20 18
     <div class="center-tab">
21 19
       <el-table
22 20
         :row-style="{ color: '#303133' }"
@@ -34,7 +32,7 @@
34 32
         show-summary
35 33
         :row-class-name="tableRowClassName"
36 34
         :cell-class-name="cellClass"
37
-        
35
+
38 36
         sum-text="总数"
39 37
         :height="tableContainHeight"
40 38
         ref="table"
@@ -47,7 +45,7 @@
47 45
           width="50"
48 46
           align="center"
49 47
           fixed
50
-          
48
+
51 49
         ></el-table-column><!--style="border-bottom: 1px solid aqua;"-->
52 50
         <el-table-column
53 51
           prop="cut"
@@ -55,7 +53,7 @@
55 53
           align="center"
56 54
           min-width="40"
57 55
           fixed
58
-         
56
+
59 57
         ></el-table-column>
60 58
         <el-table-column
61 59
           :label="' 周一(' + weekTitle[0] + ')'"
@@ -916,8 +914,8 @@ export default {
916 914
         // console.log(columnIndex,row.zone_type);
917 915
         return "table-row-new-class schedule-table-row Infectious_disease";
918 916
       }
919
-      // if(columnIndex==1 ){  
920
-      //   return 'border_bott ' 
917
+      // if(columnIndex==1 ){
918
+      //   return 'border_bott '
921 919
       // }
922 920
       // if(columnIndex==0){
923 921
       //   return 'border_left'
@@ -947,13 +945,13 @@ export default {
947 945
     //       // console.log('33333333333');
948 946
     //       return 'border-top: 1px solid aqua;'
949 947
     //     }
950
-    //   } 
948
+    //   }
951 949
     // },
952 950
     changeSearchContagion(id) {
953 951
       this.patientQuery.contagion = id;
954 952
       this.getSchedulePatients();
955 953
     },
956
-   
954
+
957 955
     getSummaries(param) {
958 956
       const { columns, data } = param;
959 957
       const sums = [];
@@ -1658,7 +1656,7 @@ export default {
1658 1656
         }
1659 1657
       });
1660 1658
     },
1661
-    
1659
+
1662 1660
     CreateSchedule(id, data) {
1663 1661
       this.creating_schedule = true;
1664 1662
       CreateSchedule(id, data)
@@ -1763,7 +1761,7 @@ export default {
1763 1761
         this.dialogTableVisible = true;
1764 1762
       }
1765 1763
     },
1766
-    
1764
+
1767 1765
     submitTiaoZMS(formName) {
1768 1766
       this.$refs[formName].validate(valid => {
1769 1767
         if (valid) {
@@ -2206,7 +2204,7 @@ export default {
2206 2204
         }
2207 2205
       });
2208 2206
     },
2209
-   
2207
+
2210 2208
     getDialysisDate: function (row) {
2211 2209
       let week = "";
2212 2210
       switch (row.schedule_week) {
@@ -2255,7 +2253,7 @@ export default {
2255 2253
 
2256 2254
       return type_name;
2257 2255
     },
2258
-   
2256
+
2259 2257
     tableRowClassName({ row, rowIndex }) {
2260 2258
       if (row.zone_type == 1) {
2261 2259
         return 'table-row-new-class schedule-table-row'
@@ -2289,7 +2287,7 @@ export default {
2289 2287
       this.schedule_type = val
2290 2288
 
2291 2289
       this.getSchedules()
2292
-     
2290
+
2293 2291
     },
2294 2292
     changeWeekDay(val) {
2295 2293
       this.$emit('event3', val)
@@ -2320,7 +2318,7 @@ export default {
2320 2318
         // this.getSchedules()
2321 2319
         // this.source_scheduleZone=[]
2322 2320
       // })
2323
-      
2321
+
2324 2322
     },
2325 2323
     // 选择周次
2326 2324
     start(){
@@ -2369,16 +2367,16 @@ export default {
2369 2367
         patitionid: str,
2370 2368
         schedule_type: this.schedule_type,
2371 2369
       }
2372
-     console.log("params232323232",params)
2370
+    //  console.log("params232323232",params)
2373 2371
       getSchedulesOne(params).then(response => {
2374 2372
         // console.log('getSchedulesOne',response.data.data);
2375 2373
         if (response.data.state == 1) {
2376 2374
           this.weekTitle = response.data.data.weekTitle;
2377 2375
           this.weekTitle = []
2378
-          console.log("first_day23333333333333",this.start_time)
2376
+          // console.log("first_day23333333333333",this.start_time)
2379 2377
           var first = this.getTimestamp(this.start_time)
2380 2378
           var first_day =  this.getTime(first, "{y}-{m}-{d}")
2381
-          console.log("first_day23333333333333",first_day)
2379
+          // console.log("first_day23333333333333",first_day)
2382 2380
           this.weekTitle.push(first_day)
2383 2381
 
2384 2382
           var second = this.getTimestamp(this.start_time) + 86400
@@ -2753,7 +2751,7 @@ textarea{
2753 2751
   .switch{
2754 2752
     margin-left: 10px;
2755 2753
   }
2756
-  
2754
+
2757 2755
 }
2758 2756
 
2759 2757
 #table_data ::-webkit-scrollbar {