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

28169 před 1 rokem
rodič
revize
6304aa12e6
28 změnil soubory, kde provedl 3659 přidání a 970 odebrání
  1. 0 1
      src/router/index.js
  2. 9 9
      src/router/modules/dialysis.js
  3. 1 1
      src/xt_pages/DepositManagement/DepositSearch.vue
  4. 2 2
      src/xt_pages/hospitalStation/inHospitalHistory.vue
  5. 4 4
      src/xt_pages/outpatientCharges/invoicePrint.vue
  6. 1 1
      src/xt_pages/outpatientCharges/invoiceTemplate/printthirteen.vue
  7. 2 2
      src/xt_pages/outpatientCharges/invoiceTemplate/printtwelve.vue
  8. 99 55
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  9. 1 1
      src/xt_pages/outpatientCharges/summary.vue
  10. 2 8
      src/xt_pages/outpatientDoctorStation/checkTemplate/printThree.vue
  11. 78 44
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  12. 72 67
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue
  13. 82 56
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  14. 11 6
      src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue
  15. 11 7
      src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue
  16. 2 2
      src/xt_pages/outpatientDoctorStation/treatPrint.vue
  17. 1 0
      src/xt_pages/outpatientRegistration/registrationHistory.vue
  18. 11 6
      src/xt_pages/user/evaluationtool/Glasgow.vue
  19. 10 5
      src/xt_pages/user/evaluationtool/Muscleforce.vue
  20. 9 8
      src/xt_pages/user/evaluationtool/OHpressuresore.vue
  21. 10 6
      src/xt_pages/user/evaluationtool/hemodialysis.vue
  22. 130 133
      src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue
  23. 29 91
      src/xt_pages/user/evaluationtool/pruritusAssessment.vue
  24. 46 132
      src/xt_pages/workforce/Patientshift.vue
  25. 117 46
      src/xt_pages/workforce/appointment.vue
  26. 2878 0
      src/xt_pages/workforce/components/beforeweekTable.vue
  27. 23 257
      src/xt_pages/workforce/components/editTableData.vue
  28. 18 20
      src/xt_pages/workforce/components/historyWeekTable.vue

+ 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

+ 2 - 2
src/xt_pages/hospitalStation/inHospitalHistory.vue Zobrazit soubor

@@ -129,8 +129,8 @@ export default {
129 129
   data() {
130 130
     return {
131 131
       crumbs: [
132
-        { path: false, name: '门诊挂号' },
133
-        { path: false, name: '挂号历史' }
132
+        { path: false, name: '住院登记' },
133
+        { path: false, name: '住院历史' }
134 134
       ],
135 135
       register_type: 0,
136 136
       search_input: '',

+ 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;">

+ 99 - 55
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Zobrazit soubor

@@ -92,7 +92,7 @@
92 92
             </el-button>
93 93
           </div>
94 94
 
95
-          <div  v-if="org_id != 10340">
95
+          <div  v-if="org_id != 10206 && org_id != 10340">
96 96
             <!--            <el-button size="small"-->
97 97
             <!--                       @click="openZb(1)"-->
98 98
             <!--                       type="primary">登记-->
@@ -1098,6 +1098,7 @@ export default {
1098 1098
       // ],
1099 1099
       register: [
1100 1100
         { value: 11, label: '普通门诊' },
1101
+        { value: 12, label: '门诊挂号' },
1101 1102
         { value: 1102, label: '新冠门诊' },
1102 1103
         { value: 14, label: '门诊特殊病' },
1103 1104
         { value: '9922', label: '家庭通道' },
@@ -4754,71 +4755,114 @@ export default {
4754 4755
       if (this.big_month_prescriptions.length > 0) {
4755 4756
         this.editableTabsValue = this.big_month_prescriptions[0].curMonthPrescriptions.name
4756 4757
       }
4757
-    },
4758
-    getPName(med_type, index) {
4758
+    }, getPName(med_type, index) {
4759 4759
       var med_type = parseInt(med_type)
4760 4760
 
4761
-      switch (med_type) {
4762
-        case 11:
4763
-          return '普通门诊' + '处方' + index
4761
+      if(this.org_id == 10206){
4762
+        switch (med_type) {
4763
+          case 1:
4764
+            return '普通' + '处方' + index
4764 4765
 
4765
-          break
4766
-        case 1102:
4767
-          return '新冠门诊' + '处方' + index
4766
+            break
4767
+          case 2:
4768
+            return '急诊' + '处方' + index
4768 4769
 
4769
-          break
4770
-        case 12:
4771
-          return '门诊挂号' + '处方' + index
4770
+            break
4771
+          case 5:
4772
+            return '第一类精神药品' + '处方' + index
4772 4773
 
4773
-          break
4774
-        case 13:
4775
-          return '急诊' + '处方' + index
4774
+            break
4775
+          case 6:
4776
+            return '第二类精神药品' + '处方' + index
4776 4777
 
4777
-          break
4778
+            break
4778 4779
 
4779
-        case 14:
4780
-          return '门诊特殊病' + '处方' + index
4781
-          break
4780
+          case 7:
4781
+            return '放射药品' + '处方' + index
4782
+            break
4782 4783
 
4783
-        case 15:
4784
-          return '门诊统筹' + '处方' + index
4784
+          case 8:
4785
+            return '毒性药品' + '处方' + index
4785 4786
 
4786
-          break
4787
-        case 16:
4788
-          return '门诊慢性病' + '处方' + index
4787
+            break
4788
+          case 9:
4789
+            return '检查' + '处方' + index
4789 4790
 
4790
-          break
4791
-        case 21:
4792
-          return '普通住院' + '处方' + index
4793
-          break
4794
-        case 1111:
4795
-          return '精一' + '处方' + index
4796
-          break
4797
-        case 1112:
4798
-          return '精二' + '处方' + index
4799
-          break
4800
-        case 9933:
4801
-          return '门诊特殊病(9933)' + '处方' + index
4802
-          break
4803
-        case 990602:
4804
-          return '门诊特殊病(990602)' + '处方' + index
4805
-          break
4806
-        case 1402:
4807
-          return '门诊特殊病(1402)' + '处方' + index
4808
-          break
4809
-        case 1401:
4810
-          return '门诊慢性病(1401)' + '处方' + index
4811
-          break
4812
-        case 2302:
4813
-          return '异地就医(2302)' + '处方' + index
4814
-          break
4815
-        case 9922:
4816
-          return '家庭通道' + '处方' + index
4817
-          break
4818
-        case 0:
4819
-          return '自费' + '处方' + index
4820
-          break
4791
+            break
4792
+          case 10:
4793
+            return '检验' + '处方' + index
4794
+            break
4795
+          case 12:
4796
+            return '治疗' + '处方' + index
4797
+            break
4798
+          case 99:
4799
+            return '其他' + '处方' + index
4800
+            break
4801
+        }
4802
+      }else{
4803
+        switch (med_type) {
4804
+          case 11:
4805
+            return '普通门诊' + '处方' + index
4806
+
4807
+            break
4808
+          case 1102:
4809
+            return '新冠门诊' + '处方' + index
4810
+
4811
+            break
4812
+          case 12:
4813
+            return '门诊挂号' + '处方' + index
4814
+
4815
+            break
4816
+          case 13:
4817
+            return '急诊' + '处方' + index
4818
+
4819
+            break
4820
+
4821
+          case 14:
4822
+            return '门诊特殊病' + '处方' + index
4823
+            break
4824
+
4825
+          case 15:
4826
+            return '门诊统筹' + '处方' + index
4827
+
4828
+            break
4829
+          case 16:
4830
+            return '门诊慢性病' + '处方' + index
4831
+
4832
+            break
4833
+          case 21:
4834
+            return '普通住院' + '处方' + index
4835
+            break
4836
+          case 1111:
4837
+            return '精一' + '处方' + index
4838
+            break
4839
+          case 1112:
4840
+            return '精二' + '处方' + index
4841
+            break
4842
+          case 9933:
4843
+            return '门诊特殊病(9933)' + '处方' + index
4844
+            break
4845
+          case 990602:
4846
+            return '门诊特殊病(990602)' + '处方' + index
4847
+            break
4848
+          case 1402:
4849
+            return '门诊特殊病(1402)' + '处方' + index
4850
+            break
4851
+          case 1401:
4852
+            return '门诊慢性病(1401)' + '处方' + index
4853
+            break
4854
+          case 2302:
4855
+            return '异地就医(2302)' + '处方' + index
4856
+            break
4857
+          case 9922:
4858
+            return '家庭通道' + '处方' + index
4859
+            break
4860
+          case 0:
4861
+            return '自费' + '处方' + index
4862
+            break
4863
+        }
4821 4864
       }
4865
+
4822 4866
     }, unique_four(array) {
4823 4867
       // res用来存储结果
4824 4868
       var res = []

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue Zobrazit soubor

@@ -1334,7 +1334,7 @@ export default {
1334 1334
                 name: order.patient.name,
1335 1335
                 id_card_no: order.patient.id_card_no,
1336 1336
                 year: "2023",
1337
-                month: "09",
1337
+                month: order.setl_time.split(" ")[0].split("-")[1],
1338 1338
                 code: data[b].code,
1339 1339
                 pric: data[b].total ,
1340 1340
                 item_name: data[b].name,

+ 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);

+ 78 - 44
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Zobrazit soubor

@@ -143,7 +143,7 @@
143 143
                               </el-date-picker>
144 144
 
145 145
 
146
-                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
146
+                              <el-select v-if="org_id != 10206 && org_id != 0" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
147 147
                                          @change="changevalue">
148 148
                                   <el-option
149 149
                                           v-for="(item,index) in register"
@@ -153,7 +153,7 @@
153 153
                                   </el-option>
154 154
                               </el-select>
155 155
 <!--                            //针对海拉尔普爱肾病医院-->
156
-                            <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
156
+                            <el-select v-if="org_id == 10206 ||  org_id == 0" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
157 157
                                        @change="changevalue">
158 158
                               <el-option
159 159
                                 v-for="(item,index) in register10206"
@@ -308,11 +308,16 @@
308 308
                                       <el-table-column label="名称">
309 309
                                           <template slot-scope="scope">{{ scope.row.drug_name }}</template>
310 310
                                       </el-table-column>
311
-                                      <el-table-column label="规格" width="60">
311
+                                      <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
312 312
                                           <template slot-scope="scope">
313
-                                              <span v-if="scope.row.min_unit != scope.row.dose_unit">{{scope.row.dose}}{{scope.row.dose_unit}}&nbsp;* &nbsp;</span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
313
+                                              <span>{{scope.row.drug_spec}}</span>
314 314
                                           </template>
315 315
                                       </el-table-column>
316
+                                    <el-table-column label="规格" width="60" v-if="org_id != 10206 && org_id != 0">
317
+                                      <template slot-scope="scope">
318
+                                        <span v-if="scope.row.min_unit != scope.row.dose_unit">{{scope.row.dose}}{{scope.row.dose_unit}}&nbsp;* &nbsp;</span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
319
+                                      </template>
320
+                                    </el-table-column>
316 321
 
317 322
                                       <el-table-column label="库存" width="60" v-if="org_id != 10206">
318 323
                                           <template slot-scope="scope">
@@ -587,6 +592,7 @@ export default {
587 592
       register: [
588 593
 
589 594
         { value: 11, label: '普通门诊' },
595
+        { value: 12, label: '门诊挂号' },
590 596
         { value: 1102, label: '新冠门诊' },
591 597
         { value: 14, label: '门诊特殊病' },
592 598
         { value: 9922, label: '家庭通道' },
@@ -2391,7 +2397,7 @@ export default {
2391 2397
           if (index == 1) {
2392 2398
             console.log(this.prescriptions)
2393 2399
 
2394
-            if (this.org_id != 10206) {
2400
+            if (this.org_id != 10206 && this.org_id != 0) {
2395 2401
               for (let i = 0; i < this.prescriptions.length; i++) {
2396 2402
                 for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2397 2403
                   if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
@@ -2622,7 +2628,7 @@ export default {
2622 2628
                       }
2623 2629
                     }
2624 2630
 
2625
-                    if(newArr.length > 0){
2631
+                    if(newArr.length > 0 &&  this.org_id != 10206 && this.org_id != 0){
2626 2632
                       for(let i=0;i<newArr.length;i++){
2627 2633
                         if(newArr[i].is_user!=1){
2628 2634
                           if(newArr[i].out_count > newArr[i].sum_count){
@@ -2635,6 +2641,9 @@ export default {
2635 2641
 
2636 2642
                       }
2637 2643
                     }
2644
+
2645
+
2646
+
2638 2647
                     console.log("newArr",newArr )
2639 2648
                   }
2640 2649
                 }
@@ -2690,7 +2699,7 @@ export default {
2690 2699
                       }
2691 2700
                     }
2692 2701
                     console.log("new233223322323",newArr)
2693
-                    if(newArr.length > 0){
2702
+                    if(newArr.length > 0 &&  this.org_id != 10206 && this.org_id != 0){
2694 2703
                       for(let i=0;i<newArr.length;i++){
2695 2704
                         if(newArr[i].is_user!=1){
2696 2705
                           if(newArr[i].out_count > newArr[i].sum_count){
@@ -2804,7 +2813,7 @@ export default {
2804 2813
                     }
2805 2814
 
2806 2815
                     for(let i=0;i<newProjectArr.length;i++){
2807
-                      if(newProjectArr[i].out_count > newProjectArr[i].sum_count){
2816
+                      if(newProjectArr[i].out_count > newProjectArr[i].sum_count &&  this.org_id != 10206 && this.org_id != 0){
2808 2817
                             this.$message.error(newProjectArr[i].str + "库存不足,保存失败!")
2809 2818
                             isLoading = false
2810 2819
                             this.$emit('editKeepLoad', false)
@@ -2986,7 +2995,11 @@ export default {
2986 2995
 
2987 2996
       }
2988 2997
 
2989
-      obj.med_type = 14
2998
+      if(this.org_id != 10206 && this.org_id != 0) {
2999
+        obj.med_type = 14
3000
+      }else{
3001
+        obj.med_type = 12
3002
+      }
2990 3003
 
2991 3004
       this.prescriptions.push(obj)
2992 3005
 
@@ -3228,7 +3241,7 @@ export default {
3228 3241
       //     }
3229 3242
       // }
3230 3243
 
3231
-      if(row.is_user!=1){
3244
+      if(row.is_user!=1 &&  this.org_id != 10206 && this.org_id != 0){
3232 3245
         if (row.sum_count <= 0) {
3233 3246
         if (selection) {
3234 3247
           selection.forEach(row => {
@@ -3243,14 +3256,35 @@ export default {
3243 3256
         return
3244 3257
        }
3245 3258
       }
3259
+
3260
+      if(this.org_id == 10206){
3261
+        if (row.zuobiao_stock_num <= 0) {
3262
+          if (selection) {
3263
+            selection.forEach(row => {
3264
+              if (row.zuobiao_stock_num <= 0) {
3265
+                this.$refs.multipleTable.toggleRowSelection(row)
3266
+              }
3267
+            })
3268
+          } else {
3269
+            this.$refs.multipleTable.clearSelection()
3270
+          }
3271
+          this.$message.error(row.drug_name + '库存不足')
3272
+          return
3273
+        }
3274
+      }
3275
+
3276
+
3277
+
3278
+
3246 3279
       this.curDrugs = selection
3247 3280
     },
3248 3281
 
3249 3282
     comfirm() {
3250 3283
 
3284
+
3251 3285
       if (this.curDrugs.length > 0) {
3252 3286
         for (let i = 0; i < this.curDrugs.length; i++) {
3253
-          if(this.org_id != 10206) {
3287
+          if(this.org_id != 10206 && this.org_id != 0) {
3254 3288
             if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3255 3289
               this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3256 3290
               return
@@ -3260,7 +3294,7 @@ export default {
3260 3294
         }
3261 3295
       }
3262 3296
       if (this.teamList.length > 0) {
3263
-        if(this.org_id != 10206) {
3297
+        if(this.org_id != 10206 && this.org_id != 0) {
3264 3298
           for (let i = 0; i < this.teamList.length; i++) {
3265 3299
             if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3266 3300
               this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
@@ -3288,7 +3322,7 @@ export default {
3288 3322
 
3289 3323
       if (this.curDrugs.length == 0) {
3290 3324
         for (let i = 0; i < this.curDrugs.length; i++) {
3291
-          if(this.org_id != 10206) {
3325
+          if(this.org_id != 10206 && this.org_id != 0) {
3292 3326
             if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3293 3327
               this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3294 3328
               return
@@ -3537,7 +3571,7 @@ export default {
3537 3571
 
3538 3572
       // }
3539 3573
 
3540
-       if (row.stock_count <= 0) {
3574
+       if (row.stock_count <= 0 &&  this.org_id != 10206 && this.org_id != 0) {
3541 3575
           if (row.type == 3) {
3542 3576
             if (selection) {
3543 3577
               selection.forEach(row => {
@@ -3552,9 +3586,28 @@ export default {
3552 3586
             return
3553 3587
         }
3554 3588
        }
3589
+
3590
+      if ( this.org_id == 10206) {
3591
+        if (row.type == 3) {
3592
+          if (selection) {
3593
+            selection.forEach(row => {
3594
+              if (row.zuobiao_stock_num <= 0) {
3595
+                this.$refs.tables.toggleRowSelection(row)
3596
+              }
3597
+            })
3598
+          } else {
3599
+            this.$refs.tables.clearSelection()
3600
+          }
3601
+          this.$message.error(row.project_name + '库存不足')
3602
+          return
3603
+        }
3604
+      }
3555 3605
       this.teamList = selection
3556 3606
     },
3557 3607
     getlist() {
3608
+
3609
+
3610
+
3558 3611
       this.tabProject = []
3559 3612
       getHisProject().then(response => {
3560 3613
         if (response.data.state == 1) {
@@ -3623,7 +3676,7 @@ export default {
3623 3676
             this.tabProject.push(obj)
3624 3677
           }
3625 3678
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3626
-          if(this.org_id == 10206) {
3679
+          if(this.org_id == 10206 ) {
3627 3680
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3628 3681
               for (let b = 0; b < this.tabProject.length; b++) {
3629 3682
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
@@ -3682,33 +3735,6 @@ export default {
3682 3735
       }
3683 3736
     },
3684 3737
     selectTeam(row) {
3685
-      console.log(row)
3686
-      // var arr = []
3687
-      // for (let i = 0; i < row.length; i++) {
3688
-      //   arr.push(row[i].item_id)
3689
-      // }
3690
-      // console.log(arr)
3691
-      // var ids = arr.join(',')
3692
-      // console.log(ids)
3693
-      // var strArr = ids.split(',')
3694
-      // console.log(strArr)
3695
-      // var res = []//接收不重复的数据
3696
-      //
3697
-      // for (var i = 0; i < strArr.length; i++) {
3698
-      //   var flag = true
3699
-      //
3700
-      //   for (var j = 0; j < i; j++) {
3701
-      //     if (strArr[i] === strArr[j]) {
3702
-      //       flag = false
3703
-      //       break
3704
-      //     }
3705
-      //   }
3706
-      //   if (flag) {
3707
-      //     res.push(strArr[i])
3708
-      //   }
3709
-      // }
3710
-      // console.log(res)
3711
-      // var idstr = res.join(',')
3712 3738
       this.teamList = []
3713 3739
       let teamList = []
3714 3740
       for (let i = 0; i < row.length; i++) {
@@ -3745,12 +3771,20 @@ export default {
3745 3771
                 }
3746 3772
 
3747 3773
                 teamList.push(obj)
3748
-              } else if (project[i].type == 3 && project[i].status == 1) {
3749
-                if (project[i].good_info.sum_count <= 0) {
3774
+              } else if (project[i].type == 3 && project[i].status == 1 ) {
3775
+
3776
+                if (project[i].good_info.sum_count <= 0 && this.org_id != 10206) {
3750 3777
                   num++
3751 3778
                   this.$refs.tabProjectTeam.toggleRowSelection(row)
3752 3779
                   this.$message.error(project[i].good_info.good_name + '库存不足')
3753 3780
                 }
3781
+
3782
+                if (project[i].good_info.zuobiao_stock_num <= 0 && this.org_id == 10206) {
3783
+                  num++
3784
+                  this.$refs.tabProjectTeam.toggleRowSelection(row)
3785
+                  this.$message.error(project[i].good_info.good_name + '库存不足')
3786
+                }
3787
+
3754 3788
                 if (num > 0) {
3755 3789
                   this.$refs.tabProjectTeam.clearSelection()
3756 3790
                 }

+ 72 - 67
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Zobrazit soubor

@@ -468,36 +468,38 @@
468 468
         //   this.$message.error('该处方已经结算或记账,无法删除')
469 469
         //
470 470
         // }
471
-        if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
472
-          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
473
-            console.log(1)
474
-            scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
475
-          } else {
476
-            console.log(12)
477
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
478
-          }
479
-        } else {
480
-          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
481
-            console.log(123)
482
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
471
+        if(this.$store.getters.xt_user.org_id != 10206) {
472
+          if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
473
+            if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
474
+              console.log(1)
475
+              scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
476
+            } else {
477
+              console.log(12)
478
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
479
+            }
483 480
           } else {
484
-            console.log(1234)
485
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
481
+            if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
482
+              console.log(123)
483
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
484
+            } else {
485
+              console.log(1234)
486
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
487
+            }
486 488
           }
487
-        }
488
-        if (scope.row.prescribing_number == 0) {
489
-          scope.row.prescribing_number = 1
490
-        }
491
-        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
492
-          // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
493
-          if (scope.row.prescribing_number > scope.row.drug.sum_count) {
494
-            this.$message.error(scope.row.drug_name + '库存不足')
489
+          if (scope.row.prescribing_number == 0) {
490
+            scope.row.prescribing_number = 1
495 491
           }
496
-        } else {
497
-          if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
498
-            this.$message.error(scope.row.drug_name + '库存不足')
492
+          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
493
+            // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
494
+            if (scope.row.prescribing_number > scope.row.drug.sum_count) {
495
+              this.$message.error(scope.row.drug_name + '库存不足')
496
+            }
497
+          } else {
498
+            if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
499
+              this.$message.error(scope.row.drug_name + '库存不足')
500
+            }
501
+            // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
499 502
           }
500
-          // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
501 503
         }
502 504
 
503 505
       },
@@ -506,42 +508,44 @@
506 508
           this.$message.error('该处方包含已发药的药品,无法修改')
507 509
           return
508 510
         }
509
-        if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
510
-          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
511
-            console.log(1)
512
-            scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
511
+        if(this.$store.getters.xt_user.org_id != 10206) {
512
+          if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
513
+            if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
514
+              console.log(1)
515
+              scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
516
+            } else {
517
+              console.log(12)
518
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
519
+            }
513 520
           } else {
514
-            console.log(12)
515
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
521
+            if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
522
+              console.log(123)
523
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
524
+            } else {
525
+              console.log(1234)
526
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
527
+            }
528
+          }
529
+          if (scope.row.prescribing_number == 0) {
530
+            scope.row.prescribing_number = 1
516 531
           }
517
-        } else {
518 532
           if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
519
-            console.log(123)
520
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
533
+            // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
534
+            if (scope.row.drug.is_user != 1) {
535
+              if (scope.row.prescribing_number > scope.row.drug.sum_count && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
536
+                this.$message.error(scope.row.drug_name + '库存不足')
537
+              }
538
+            }
539
+
521 540
           } else {
522
-            console.log(1234)
523
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
524
-          }
525
-        }
526
-        if (scope.row.prescribing_number == 0) {
527
-          scope.row.prescribing_number = 1
528
-        }
529
-        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
530
-          // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
531
-          if(scope.row.drug.is_user!=1){
532
-           if (scope.row.prescribing_number > scope.row.drug.sum_count) {
533
-            this.$message.error(scope.row.drug_name + '库存不足')
534
-           }
535
-          }
541
+            if (scope.row.drug.is_user != 1) {
542
+              if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
543
+                this.$message.error(scope.row.drug_name + '库存不足')
544
+              }
545
+            }
536 546
 
537
-        } else {
538
-          if(scope.row.drug.is_user!=1){
539
-           if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
540
-            this.$message.error(scope.row.drug_name + '库存不足')
541
-           }
547
+            // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
542 548
           }
543
-
544
-          // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
545 549
         }
546 550
 
547 551
       },
@@ -633,22 +637,23 @@
633 637
         //     this.$message.error(scope.row.drug_name + '库存不足')
634 638
         //    }
635 639
         // }
640
+        if(this.$store.getters.xt_user.org_id != 10206) {
636 641
 
637
-
638
-        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
639
-          if(scope.row.drug.is_user!=1){
640
-            if (parseInt(scope.row.prescribing_number) > scope.row.drug.sum_count) {
641
-              this.$message.error(scope.row.drug_name + '库存不足')
642
+          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
643
+            if (scope.row.drug.is_user != 1) {
644
+              if (parseInt(scope.row.prescribing_number) > scope.row.drug.sum_count) {
645
+                this.$message.error(scope.row.drug_name + '库存不足')
646
+              }
642 647
             }
643
-          }
644 648
 
645
-        } else {
646
-          if(scope.row.drug.is_user!=1){
647
-            if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
648
-              this.$message.error(scope.row.drug_name + '库存不足')
649
+          } else {
650
+            if (scope.row.drug.is_user != 1 && this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
651
+              if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
652
+                this.$message.error(scope.row.drug_name + '库存不足')
653
+              }
649 654
             }
650
-          }
651 655
 
656
+          }
652 657
         }
653 658
       },
654 659
       getProjectSingleDose(scope) {

+ 82 - 56
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Zobrazit soubor

@@ -1521,21 +1521,20 @@ export default {
1521 1521
                   } else {
1522 1522
                     that.zuobiao_drug  = response.data.data.drug
1523 1523
                     that.zuobiao_project  = response.data.data.project
1524
-
1525 1524
                     //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1526
-                    if(that.org_id == 10206) {
1527 1525
                       for (let i = 0; i < that.zuobiao_drug.length; i++) {
1528 1526
                         for (let b = 0; b < that.drugs.length; b++) {
1529
-                          if (that.zuobiao_project[i].ggid == that.drugs[b].bby01){
1530
-                            that.drugs[b]["zuobiao_stock_num"] = that.zuobiao_project[i].sysl
1527
+                          if (that.zuobiao_drug[i].bby01 == that.drugs[b].bby01){
1528
+                            that.drugs[b]["zuobiao_stock_num"] = that.zuobiao_drug[i].sysl
1531 1529
                           }
1532 1530
                         }
1533 1531
                       }
1534 1532
 
1535
-                    }
1533
+                    console.log("------~~00000-------")
1536 1534
                     console.log(that.drugs)
1535
+                    console.log(that.zuobiao_drug)
1537 1536
                     console.log(that.zuobiao_project)
1538
-
1537
+                    console.log("------~~00000-------")
1539 1538
                   }
1540 1539
                 }
1541 1540
               })
@@ -2053,16 +2052,23 @@ export default {
2053 2052
                   med_type: '',
2054 2053
                   is_medicine_status:false,
2055 2054
                 }
2056
-                if (prescription.med_type == 0 || prescription.med_type == '') {
2055
+                if(this.org_id != 10206) {
2056
+                  if (prescription.med_type == 0 || prescription.med_type == '') {
2057 2057
 
2058
-                  obj.med_type = ''
2058
+                    obj.med_type = ''
2059 2059
 
2060
-                } else {
2060
+                  } else {
2061 2061
 
2062
-                  obj.med_type = parseInt(prescription.med_type)
2063
-                }
2064
-                if (obj.med_type == 0 || obj.med_type == '') {
2065
-                  obj.med_type = 14
2062
+                    obj.med_type = parseInt(prescription.med_type)
2063
+                  }
2064
+                  if (obj.med_type == 0 || obj.med_type == '') {
2065
+                    if (this.org_id != 10206 ) {
2066
+                      obj.med_type = 14
2067
+                    } else {
2068
+
2069
+                      obj.med_type = ""
2070
+                    }
2071
+                  }
2066 2072
                 }
2067 2073
                 this.prescriptions.push(obj)
2068 2074
               }
@@ -2079,7 +2085,9 @@ export default {
2079 2085
                 med_type: '',
2080 2086
                 is_medicine_status:false,
2081 2087
               }
2082
-              obj.med_type = 14
2088
+              if(this.org_id != 10206 ){
2089
+                obj.med_type = 14
2090
+              }
2083 2091
               this.prescriptions.push(obj)
2084 2092
 
2085 2093
             }
@@ -2536,18 +2544,20 @@ export default {
2536 2544
                         med_type: ''
2537 2545
 
2538 2546
                       }
2539
-                      if (prescription.med_type == 0 || prescription.med_type == '') {
2547
+                      if(this.org_id != 10206) {
2548
+                        if (prescription.med_type == 0 || prescription.med_type == '') {
2540 2549
 
2541
-                        obj.med_type = ''
2550
+                          obj.med_type = ''
2542 2551
 
2543
-                      } else {
2552
+                        } else {
2544 2553
 
2545
-                        obj.med_type = parseInt(prescription.med_type)
2546
-                      }
2547
-                      if (obj.med_type == 0 || obj.med_type == '') {
2554
+                          obj.med_type = parseInt(prescription.med_type)
2555
+                        }
2556
+                        if (obj.med_type == 0 || obj.med_type == '') {
2548 2557
 
2549
-                        obj.med_type = 14
2558
+                          obj.med_type = 14
2550 2559
 
2560
+                        }
2551 2561
                       }
2552 2562
                       this.prescriptions.push(obj)
2553 2563
                     }
@@ -2565,7 +2575,9 @@ export default {
2565 2575
 
2566 2576
                     }
2567 2577
 
2568
-                    obj.med_type = 14
2578
+                    if (this.org_id != 10206 ) {
2579
+                      obj.med_type = 14
2580
+                    }
2569 2581
 
2570 2582
                     this.prescriptions.push(obj)
2571 2583
 
@@ -3065,16 +3077,18 @@ export default {
3065 3077
                         med_type: ''
3066 3078
 
3067 3079
                       }
3068
-                      if (prescription.med_type == 0 || prescription.med_type == '') {
3080
+                      if(this.org_id != 10206 ) {
3081
+                        if (prescription.med_type == 0 || prescription.med_type == '') {
3069 3082
 
3070
-                        obj.med_type = ''
3083
+                          obj.med_type = ''
3071 3084
 
3072
-                      } else {
3085
+                        } else {
3073 3086
 
3074
-                        obj.med_type = parseInt(prescription.med_type)
3075
-                      }
3076
-                      if (obj.med_type == 0 || obj.med_type == '') {
3077
-                        obj.med_type = 14
3087
+                          obj.med_type = parseInt(prescription.med_type)
3088
+                        }
3089
+                        if (obj.med_type == 0 || obj.med_type == '') {
3090
+                          obj.med_type = 14
3091
+                        }
3078 3092
                       }
3079 3093
                       this.prescriptions.push(obj)
3080 3094
                     }
@@ -3091,8 +3105,9 @@ export default {
3091 3105
                       med_type: ''
3092 3106
 
3093 3107
                     }
3094
-
3095
-                    obj.med_type = 14
3108
+                    if(this.org_id != 10206 ) {
3109
+                      obj.med_type = 14
3110
+                    }
3096 3111
 
3097 3112
                     this.prescriptions.push(obj)
3098 3113
 
@@ -3581,17 +3596,19 @@ export default {
3581 3596
                       med_type: ''
3582 3597
 
3583 3598
                     }
3584
-                    if (prescription.med_type == 0 || prescription.med_type == '') {
3599
+                    if(this.org_id != 10206 ) {
3600
+                      if (prescription.med_type == 0 || prescription.med_type == '') {
3585 3601
 
3586
-                      obj.med_type = ''
3602
+                        obj.med_type = ''
3587 3603
 
3588
-                    } else {
3604
+                      } else {
3589 3605
 
3590
-                      obj.med_type = parseInt(prescription.med_type)
3591
-                    }
3592
-                    if (obj.med_type == 0 || obj.med_type == '') {
3593
-                      obj.med_type = 14
3606
+                        obj.med_type = parseInt(prescription.med_type)
3607
+                      }
3608
+                      if (obj.med_type == 0 || obj.med_type == '') {
3609
+                        obj.med_type = 14
3594 3610
 
3611
+                      }
3595 3612
                     }
3596 3613
                     this.prescriptions.push(obj)
3597 3614
                   }
@@ -3609,7 +3626,9 @@ export default {
3609 3626
 
3610 3627
                   }
3611 3628
 
3612
-                  obj.med_type = 14
3629
+                  if(this.org_id != 10206 ) {
3630
+                    obj.med_type = 14
3631
+                  }
3613 3632
 
3614 3633
                   this.prescriptions.push(obj)
3615 3634
 
@@ -4216,18 +4235,20 @@ export default {
4216 4235
                         med_type: ''
4217 4236
 
4218 4237
                       }
4219
-                      if (prescription.med_type == 0 || prescription.med_type == '') {
4238
+                      if(this.org_id != 10206 ) {
4239
+                        if (prescription.med_type == 0 || prescription.med_type == '') {
4220 4240
 
4221
-                        obj.med_type = ''
4241
+                          obj.med_type = ''
4222 4242
 
4223
-                      } else {
4243
+                        } else {
4224 4244
 
4225
-                        obj.med_type = parseInt(prescription.med_type)
4226
-                      }
4227
-                      if (obj.med_type == 0 || obj.med_type == '') {
4245
+                          obj.med_type = parseInt(prescription.med_type)
4246
+                        }
4247
+                        if (obj.med_type == 0 || obj.med_type == '') {
4228 4248
 
4229
-                        obj.med_type = 14
4249
+                          obj.med_type = 14
4230 4250
 
4251
+                        }
4231 4252
                       }
4232 4253
                       this.prescriptions.push(obj)
4233 4254
                     }
@@ -4244,8 +4265,9 @@ export default {
4244 4265
                       med_type: ''
4245 4266
 
4246 4267
                     }
4247
-
4248
-                    obj.med_type = 14
4268
+                    if(this.org_id != 10206  ) {
4269
+                      obj.med_type = 14
4270
+                    }
4249 4271
 
4250 4272
                     this.prescriptions.push(obj)
4251 4273
 
@@ -4870,17 +4892,19 @@ export default {
4870 4892
                         med_type: ''
4871 4893
 
4872 4894
                       }
4873
-                      if (prescription.med_type == 0 || prescription.med_type == '') {
4895
+                      if(this.org_id != 10206 ) {
4896
+                        if (prescription.med_type == 0 || prescription.med_type == '') {
4874 4897
 
4875
-                        obj.med_type = ''
4898
+                          obj.med_type = ''
4876 4899
 
4877
-                      } else {
4900
+                        } else {
4878 4901
 
4879
-                        obj.med_type = parseInt(prescription.med_type)
4880
-                      }
4881
-                      if (obj.med_type == 0 || obj.med_type == '') {
4882
-                        obj.med_type = 14
4902
+                          obj.med_type = parseInt(prescription.med_type)
4903
+                        }
4904
+                        if (obj.med_type == 0 || obj.med_type == '') {
4905
+                          obj.med_type = 14
4883 4906
 
4907
+                        }
4884 4908
                       }
4885 4909
                       this.prescriptions.push(obj)
4886 4910
                     }
@@ -4897,8 +4921,10 @@ export default {
4897 4921
                       med_type: ''
4898 4922
 
4899 4923
                     }
4924
+                    if(this.org_id != 10206 ) {
4900 4925
 
4901
-                    obj.med_type = 14
4926
+                      obj.med_type = 14
4927
+                    }
4902 4928
 
4903 4929
                     this.prescriptions.push(obj)
4904 4930
 

+ 11 - 6
src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue Zobrazit soubor

@@ -47,7 +47,7 @@
47 47
                                 </el-option>
48 48
                               </el-select>
49 49
                               <!--                            //针对海拉尔普爱肾病医院-->
50
-                              <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
50
+                              <el-select v-if="org_id == 10206 || org_id == 0" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
51 51
                                          @change="changevalue">
52 52
                                 <el-option
53 53
                                   v-for="(item,index) in register10206"
@@ -115,13 +115,18 @@
115 115
                                             <el-table-column label="名称">
116 116
                                                 <template slot-scope="scope">{{ scope.row.drug_name }}</template>
117 117
                                             </el-table-column>
118
-                                            <el-table-column label="规格" width="60">
118
+                                            <el-table-column label="规格" width="60" v-if="org_id != 10206 && org_id != 0">
119 119
                                                 <template slot-scope="scope">
120 120
                                                    <span
121 121
                                                        v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>
122 122
                                                        {{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
123 123
                                                   </template>
124 124
                                             </el-table-column>
125
+                                          <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
126
+                                            <template slot-scope="scope">
127
+                                                   <span>{{scope.row.drug_spec}}</span>
128
+                                            </template>
129
+                                          </el-table-column>
125 130
                                             <el-table-column label="单价" width="40">
126 131
                                                 <template slot-scope="scope">{{ scope.row.retail_price }}</template>
127 132
                                             </el-table-column>
@@ -408,7 +413,7 @@
408 413
             return
409 414
           }
410 415
         }
411
-        if(this.$store.getters.xt_user.org_id != 10206) {
416
+        if(this.$store.getters.xt_user.org_id != 10206 && this.$store.getters.xt_user.org_id != 0) {
412 417
           for (let i = 0; i < this.prescriptions.length; i++) {
413 418
             for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
414 419
               if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
@@ -1357,7 +1362,7 @@
1357 1362
         if (this.curDrugs.length > 0 ) {
1358 1363
 
1359 1364
           for (let i = 0; i < this.curDrugs.length; i++) {
1360
-            if(this.$store.getters.xt_user.org.id != 10206) {
1365
+            if(this.$store.getters.xt_user.org.id != 10206 && this.$store.getters.xt_user.org.id != 0 ) {
1361 1366
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1362 1367
                 this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1363 1368
                 return
@@ -1368,7 +1373,7 @@
1368 1373
         }
1369 1374
         if (this.teamList.length > 0) {
1370 1375
           for (let i = 0; i < this.teamList.length; i++) {
1371
-            if(this.$store.getters.xt_user.org.id != 10206) {
1376
+            if(this.$store.getters.xt_user.org.id != 10206 && this.$store.getters.xt_user.org.id != 0 ) {
1372 1377
 
1373 1378
               if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1374 1379
                 setTimeout(() => {
@@ -1395,7 +1400,7 @@
1395 1400
 
1396 1401
         if (this.curDrugs.length == 0) {
1397 1402
           for (let i = 0; i < this.curDrugs.length; i++) {
1398
-            if(this.$store.getters.xt_user.org.id != 10206) {
1403
+            if(this.$store.getters.xt_user.org.id != 10206 && this.$store.getters.xt_user.org.id != 0) {
1399 1404
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1400 1405
                 this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1401 1406
                 return

+ 11 - 7
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Zobrazit soubor

@@ -140,14 +140,18 @@
140 140
                                             <el-table-column label="名称">
141 141
                                                 <template slot-scope="scope">{{ scope.row.drug_name }}</template>
142 142
                                             </el-table-column>
143
-                                            <el-table-column label="规格" width="60">
144
-                                                <template slot-scope="scope">
145
-                                                  <!-- {{ scope.row.drug_spec }} -->
143
+                                          <el-table-column label="规格" width="60" v-if="org_id != 10206 && org_id != 0">
144
+                                            <template slot-scope="scope">
146 145
                                                    <span
147
-                                                       v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>
148
-                                                       {{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
149
-                                                  </template>
150
-                                            </el-table-column>
146
+                                                     v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>
147
+                                              {{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
148
+                                            </template>
149
+                                          </el-table-column>
150
+                                          <el-table-column label="规格" width="60" v-if="org_id == 10206 || org_id == 0">
151
+                                            <template slot-scope="scope">
152
+                                              <span>{{scope.row.drug_spec}}</span>
153
+                                            </template>
154
+                                          </el-table-column>
151 155
                                             <el-table-column label="单价" width="40">
152 156
                                                 <template slot-scope="scope">{{ scope.row.retail_price }}</template>
153 157
                                             </el-table-column>

+ 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 {