Ver código fonte

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

csx 3 anos atrás
pai
commit
2ac2187c4c

+ 1 - 1
src/xt_pages/qcd/officesControlAnalysis/time.vue Ver arquivo

551
          }
551
          }
552
          //第四季度
552
          //第四季度
553
          if( this.modetype ==0 && this.quarterType == 3){
553
          if( this.modetype ==0 && this.quarterType == 3){
554
-             this.startime = moment().month(8).startOf('month').format("YYYY-MM-DD")
554
+             this.startime = moment().month(9).startOf('month').format("YYYY-MM-DD")
555
              this.endtime = moment().month(11).endOf('month').format("YYYY-MM-DD")
555
              this.endtime = moment().month(11).endOf('month').format("YYYY-MM-DD")
556
          }
556
          }
557
          
557
          

+ 1 - 1
src/xt_pages/qcd/workAnalysis/nurse.vue Ver arquivo

394
         GetNurseWorkloadTableData(params)
394
         GetNurseWorkloadTableData(params)
395
           .then(rs => {
395
           .then(rs => {
396
             var resp = rs.data
396
             var resp = rs.data
397
-
397
+            console.log("resp232323",resp)
398
             if (resp.state == 1) {
398
             if (resp.state == 1) {
399
 
399
 
400
               let total_cure = 0
400
               let total_cure = 0

+ 62 - 32
src/xt_pages/user/templateSummary.vue Ver arquivo

672
               <el-form-item>
672
               <el-form-item>
673
                 <span>选择检验检查时间:</span>
673
                 <span>选择检验检查时间:</span>
674
                 <div>
674
                 <div>
675
-                  <!-- <el-form-item
676
-                   label="时间:"
677
-                   prop="startYear"
678
-                   style="width:100%;"
679
-                 >
680
-                 <el-date-picker
681
-                    @change="changeYear"
682
-                    v-model="startYear"
683
-                    class="timePicker"
684
-                    type="month"
685
-                    placeholder=""
686
-                    format="yyyy-MM"
687
-                    value-format="yyyy-MM">
688
-	               </el-date-picker>
689
-                 </el-form-item> -->
690
-                 <el-form-item>
675
+                
676
+                 <el-form-item label="时间:">
677
+                   <el-radio-group style="padding: 10px;"  v-model="radio" @change="changeRadio">
678
+                      <el-radio :label="1">月份</el-radio>
679
+                      <el-radio :label="2">季度</el-radio>
680
+                    </el-radio-group>
681
+                 </el-form-item>
682
+                 <el-form-item v-show="showquarty">
691
                     <el-select v-model="quartype" placeholder="请选择" @change="changetype">
683
                     <el-select v-model="quartype" placeholder="请选择" @change="changetype">
692
                       <el-option
684
                       <el-option
693
                         v-for="item in quarterType"
685
                         v-for="item in quarterType"
697
                       </el-option>
689
                       </el-option>
698
                     </el-select>
690
                     </el-select>
699
                  </el-form-item>
691
                  </el-form-item>
692
+                 <el-form-item v-show="showtime">
693
+                   <el-date-picker
694
+                      @change="changeYear"
695
+                      v-model="startYear"
696
+                      class="timePicker"
697
+                      type="month"
698
+                      placeholder=""
699
+                      format="yyyy-MM"
700
+                      value-format="yyyy-MM">
701
+                    </el-date-picker>
702
+                 </el-form-item>
700
                  <!-- <el-form-item  label="月份:"
703
                  <!-- <el-form-item  label="月份:"
701
                    prop="startYear"
704
                    prop="startYear"
702
                    style="width:100%;">
705
                    style="width:100%;">
956
         { id: 4, name: "第四季度"}
959
         { id: 4, name: "第四季度"}
957
        ],
960
        ],
958
        quartype:1,
961
        quartype:1,
962
+       radio:1,
963
+       showtime:true,
964
+       showquarty:false,
959
       }
965
       }
960
     },
966
     },
961
     created() {
967
     created() {
1041
 
1047
 
1042
       },
1048
       },
1043
       changeCurrentRecord(val){
1049
       changeCurrentRecord(val){
1044
-
1050
+        this.tableData = []
1045
         this.getInspectionDetai(val)
1051
         this.getInspectionDetai(val)
1046
       },
1052
       },
1047
       selectionChangeOne(val){
1053
       selectionChangeOne(val){
1185
       },
1191
       },
1186
       //获取大项数据来源
1192
       //获取大项数据来源
1187
       getInspectionMajor(){
1193
       getInspectionMajor(){
1188
-          console.log("type23232232",this.quartype)
1189
           var start_time = ""
1194
           var start_time = ""
1190
           var end_time = ""
1195
           var end_time = ""
1191
-          if(this.quartype == 1){
1192
-             start_time =  moment().startOf('year').format('YYYY-MM-DD')
1193
-             end_time = moment().month(2).endOf('month').format("YYYY-MM-DD")
1194
-          }
1195
-          if(this.quartype == 2){
1196
-            start_time = moment().month(3).startOf('month').format("YYYY-MM-DD")   
1197
-            end_time = moment().month(5).endOf('month').format("YYYY-MM-DD")
1196
+          console.log("radio2332322332",this.radio)
1197
+          if(this.radio == 1){
1198
+            console.log("start_year",this.startYear)
1199
+            console.log("endyaer",this.lastYear)
1200
+            end_time = this.startYear
1201
+            start_time = this.lastYear
1198
           }
1202
           }
1199
-          if(this.quartype == 3){
1200
-            start_time = moment().month(6).startOf('month').format("YYYY-MM-DD")
1201
-            end_time = moment().month(8).endOf('month').format("YYYY-MM-DD")
1202
-          }
1203
-          if(this.quartype == 4){
1204
-             start_time = moment().month(8).startOf('month').format("YYYY-MM-DD")
1205
-             end_time = moment().month(11).endOf('month').format("YYYY-MM-DD")
1203
+          if(this.radio == 2){
1204
+            if(this.quartype == 1){
1205
+              start_time =  moment().startOf('year').format('YYYY-MM-DD')
1206
+              end_time = moment().month(2).endOf('month').format("YYYY-MM-DD")
1207
+            }
1208
+            if(this.quartype == 2){
1209
+              start_time = moment().month(3).startOf('month').format("YYYY-MM-DD")   
1210
+              end_time = moment().month(5).endOf('month').format("YYYY-MM-DD")
1211
+            }
1212
+            if(this.quartype == 3){
1213
+              start_time = moment().month(6).startOf('month').format("YYYY-MM-DD")
1214
+              end_time = moment().month(8).endOf('month').format("YYYY-MM-DD")
1215
+            }
1216
+            if(this.quartype == 4){
1217
+              start_time = moment().month(9).startOf('month').format("YYYY-MM-DD")
1218
+              end_time = moment().month(11).endOf('month').format("YYYY-MM-DD")
1219
+            }
1206
           }
1220
           }
1221
+         
1222
+        
1207
           console.log("start_time",start_time)
1223
           console.log("start_time",start_time)
1208
           console.log("end_time",end_time)
1224
           console.log("end_time",end_time)
1209
           var params = {
1225
           var params = {
1224
       },
1240
       },
1225
       //获取小项的值
1241
       //获取小项的值
1226
       getInspectionDetai(val){
1242
       getInspectionDetai(val){
1243
+        console.log("val2332232",val)
1227
         var params = {
1244
         var params = {
1228
           project_id:val.project_id,
1245
           project_id:val.project_id,
1229
           patient_id:val.patient_id,
1246
           patient_id:val.patient_id,
1407
         })
1424
         })
1408
       },
1425
       },
1409
       getTemplateSummaryList(){
1426
       getTemplateSummaryList(){
1427
+        
1410
           var params = {
1428
           var params = {
1411
             patient_id:this.patient_id,
1429
             patient_id:this.patient_id,
1412
             start_time:this.start_time,
1430
             start_time:this.start_time,
1859
           })
1877
           })
1860
           .catch(() => {
1878
           .catch(() => {
1861
           })
1879
           })
1880
+     },
1881
+     changeRadio(val){
1882
+       if(val == 1){
1883
+         this.showtime = true
1884
+         this.showquarty = false
1885
+         this.getInspectionMajor()
1886
+       }
1887
+       if(val == 2){
1888
+         this.showquarty = true
1889
+         this.showtime = false
1890
+         this.getInspectionMajor()
1891
+       }
1862
      }
1892
      }
1863
 
1893
 
1864
     },
1894
     },

+ 42 - 15
src/xt_pages/workforce/components/nextTableWeeks.vue Ver arquivo

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <div class="cell clearfix" style="float: right">
3
     <div class="cell clearfix" style="float: right">
4
+      <el-button
5
+        style="float: right"
6
+        size="small"
7
+        icon="el-icon-printer"
8
+        @click="signPrint()"
9
+        type="primary"
10
+       >标签打印
11
+      </el-button>
4
       <el-button
12
       <el-button
5
         style="float: right"
13
         style="float: right"
6
         size="small"
14
         size="small"
138
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
146
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
139
         <template slot-scope="scope">
147
         <template slot-scope="scope">
140
           <span v-if="org_id!=9987" >
148
           <span v-if="org_id!=9987" >
141
-             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus!=''">
142
-                <span v-if="org_id!=10131">{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
143
-                <span v-if="org_id ==10131">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id)}}</span>
149
+             <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus!=''">
150
+                <span v-if="org_id!=10131">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
151
+                <span v-if="org_id==10131">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
152
+                <!-- <span v-if="org_id ==10131">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id)}}</span> -->
144
               </span> 
153
               </span> 
145
-             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ getDialysisDialyszerPerfusion(scope.row.patient_id) }}</span> 
154
+             <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ getDialysisDialyszerPerfusion(scope.row.patient_id) }}</span> 
146
           </span>
155
           </span>
147
-          {{scope.row.prescription.dialysis_dialyszers}}
148
-         <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
149
-          <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
156
+          {{scope.row.dialysissolution.dialysis_dialyszers}}
157
+         <span v-if="scope.row.dialysissolution.dialysis_dialyszers!='' && scope.row.dialysissolution.dialysis_irrigation!=''">/</span>
158
+          <span v-if="scope.row.dialysissolution.dialysis_irrigation!=''">{{scope.row.dialysissolution.dialysis_irrigation}}</span>
150
         </template>
159
         </template>
151
       </el-table-column>
160
       </el-table-column>
152
       <el-table-column label="抗凝剂(商品名称)" min-width="100" align="center">
161
       <el-table-column label="抗凝剂(商品名称)" min-width="100" align="center">
153
         <template slot-scope="scope">
162
         <template slot-scope="scope">
154
-          <span v-if="scope.row.prescription.anticoagulant === 1">无肝素</span>
155
-          <span v-if="scope.row.prescription.anticoagulant === 2">普通肝素</span>
156
-          <span v-if="scope.row.prescription.anticoagulant === 3" >低分子肝素</span>
157
-          <span v-if="scope.row.prescription.anticoagulant === 4">阿加曲班</span>
158
-          <span v-if="scope.row.prescription.anticoagulant === 5">枸橼酸钠</span>
159
-          <span v-if="scope.row.prescription.anticoagulant === 6">低分子肝素钙</span>
160
-          <span v-if="scope.row.prescription.anticoagulant === 7">低分子肝素钠</span>
163
+          <span v-if="scope.row.dialysissolution.anticoagulant === 1">无肝素</span>
164
+          <span v-if="scope.row.dialysissolution.anticoagulant === 2">普通肝素</span>
165
+          <span v-if="scope.row.dialysissolution.anticoagulant === 3" >低分子肝素</span>
166
+          <span v-if="scope.row.dialysissolution.anticoagulant === 4">阿加曲班</span>
167
+          <span v-if="scope.row.dialysissolution.anticoagulant === 5">枸橼酸钠</span>
168
+          <span v-if="scope.row.dialysissolution.anticoagulant === 6">低分子肝素钙</span>
169
+          <span v-if="scope.row.dialysissolution.anticoagulant === 7">低分子肝素钠</span>
161
          <span v-if="scope.row.prescription.antioxidant_commodity_name!=''">
170
          <span v-if="scope.row.prescription.antioxidant_commodity_name!=''">
162
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
171
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
163
           </span>
172
           </span>
337
         //   week_type:this.week_type,
346
         //   week_type:this.week_type,
338
         //   week_time:this.week_time,
347
         //   week_time:this.week_time,
339
         // }
348
         // }
340
-     
349
+      console.log("params",params)
341
       getNextScheduleWeekDay(params).then(response => {
350
       getNextScheduleWeekDay(params).then(response => {
342
         this.scheduleData = [];
351
         this.scheduleData = [];
343
         if (response.data.state == 1) {
352
         if (response.data.state == 1) {
611
     changeZone(val){
620
     changeZone(val){
612
       this.zone = val
621
       this.zone = val
613
       this.getNextScheduleWeekDay()
622
       this.getNextScheduleWeekDay()
623
+    },
624
+    signPrint() {
625
+        var zone = this.zone
626
+        var newArr = []
627
+        for(let i=0;i<this.zoneList.length;i++){
628
+           newArr.push(this.zoneList[i].id)
629
+        }
630
+        var arr = newArr.join(",")
631
+        var str = ""
632
+        if(this.zone == 0){
633
+           str = arr  
634
+        }
635
+        if(zone != 0){
636
+          str = zone.join(",")
637
+        }
638
+        this.$router.push({
639
+          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
640
+        })
614
     }
641
     }
615
   },
642
   },
616
   components: {
643
   components: {

+ 1 - 1
src/xt_pages/workforce/components/tableWeeks.vue Ver arquivo

887
           str = zone.join(",")
887
           str = zone.join(",")
888
         }
888
         }
889
         this.$router.push({
889
         this.$router.push({
890
-          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status
890
+          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
891
         })
891
         })
892
       }
892
       }
893
       ,
893
       ,

+ 9 - 9
src/xt_pages/workforce/next_remind_print.vue Ver arquivo

64
                  <span v-if="org_id!=9987">
64
                  <span v-if="org_id!=9987">
65
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus!=''"> 
65
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus!=''"> 
66
                         <span v-if="org_id!=10131">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
66
                         <span v-if="org_id!=10131">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
67
-                        <span v-if="org_id==10131">{{getDialysisDialyszerPerfusionOne(main_collection.prescription.patient_id)}}</span> 
68
-                         <!-- <span v-if="org_id==10131 || org_id==9671">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span> -->
67
+                        <!-- <span v-if="org_id==10131">{{getDialysisDialyszerPerfusionOne(main_collection.prescription.patient_id)}}</span>  -->
68
+                         <span v-if="org_id==10131 || org_id==9671">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
69
                      </span>
69
                      </span>
70
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span> 
70
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span> 
71
                   </span>
71
                   </span>
81
                   </span>
81
                   </span>
82
                 </td>
82
                 </td>
83
                 <td :width="td_1_width"  v-if="printObj.anticoagulant_zongliang == 1">
83
                 <td :width="td_1_width"  v-if="printObj.anticoagulant_zongliang == 1">
84
-                  <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
85
-                  <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
86
-                  <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
87
-                  <span v-if="main_collection.prescription.anticoagulant == 4">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
88
-                  <span v-if="main_collection.prescription.anticoagulant == 5">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
89
-                  <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
90
-                  <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
84
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
85
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
86
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
87
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
88
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
89
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
90
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 7">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
91
                 </td>
91
                 </td>
92
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
92
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
93
                   <span style="white-space: pre" v-if="main_collection.doctor_advice.length>0">{{getAdvice(main_collection.doctor_advice)}}</span>
93
                   <span style="white-space: pre" v-if="main_collection.doctor_advice.length>0">{{getAdvice(main_collection.doctor_advice)}}</span>

+ 1 - 1
src/xt_pages/workforce/remind_print.vue Ver arquivo

74
 
74
 
75
                 </td>
75
                 </td>
76
                 <td :width="td_1_width" v-if="printObj.anticoagulant == 1">
76
                 <td :width="td_1_width" v-if="printObj.anticoagulant == 1">
77
-                  {{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}
77
+                  {{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}
78
                   <span v-if="main_collection.prescription.antioxidant_commodity_name!=''">
78
                   <span v-if="main_collection.prescription.antioxidant_commodity_name!=''">
79
                     (<span>{{main_collection.prescription.antioxidant_commodity_name}}</span>)
79
                     (<span>{{main_collection.prescription.antioxidant_commodity_name}}</span>)
80
                   </span>
80
                   </span>

+ 80 - 10
src/xt_pages/workforce/remind_print_setting.vue Ver arquivo

21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
22
               <div class="signPrint">
22
               <div class="signPrint">
23
                 <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div> 
23
                 <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div> 
24
-                <div>姓名:{{main_collection.patient.name}}</div> 
24
+                <div>姓名:
25
+                  <span v-if="type ==1">{{main_collection.patient.name}} </span> 
26
+                  <span v-if="type ==2">{{main_collection.patient}} </span> 
27
+                </div> 
25
                 <div>抗凝剂: 
28
                 <div>抗凝剂: 
26
                   <span v-if="org_id == 10138">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
29
                   <span v-if="org_id == 10138">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
27
                   <span v-else >{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name: ''}}</span>
30
                   <span v-else >{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name: ''}}</span>
51
 </template>
54
 </template>
52
 
55
 
53
 <script>
56
 <script>
54
-  import { getScheduleList,getPrintList } from '@/api/schedule'
57
+  import { getScheduleList,getPrintList,getNextScheduleWeekDay } from '@/api/schedule'
55
   import { parseTime } from '@/utils'
58
   import { parseTime } from '@/utils'
56
   import { uParseTime } from '@/utils/tools'
59
   import { uParseTime } from '@/utils/tools'
57
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
60
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
81
         now_time:0,
84
         now_time:0,
82
         zone:"",
85
         zone:"",
83
         pre_status:0,
86
         pre_status:0,
84
-        printObj:{}
87
+        printObj:{},
88
+        type:1,
85
       }
89
       }
86
     },
90
     },
87
     components: {
91
     components: {
88
       BreadCrumb
92
       BreadCrumb
89
     },
93
     },
90
     created() {
94
     created() {
95
+      console.log("type2323233223232",this.$route.query.type)  
96
+     this.type = this.$route.query.type
91
      this.getPrintList()
97
      this.getPrintList()
92
      this.org_id = this.$store.getters.xt_user.org.id
98
      this.org_id = this.$store.getters.xt_user.org.id
93
      this.currentDate = this.getCurrentDate()
99
      this.currentDate = this.getCurrentDate()
94
    
100
    
95
-      this.modeOptions = this.$store.getters.treatment_mode
96
-      this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
97
-      this.week_type = this.$route.query.week_type
98
-      this.week_time  = this.$route.query.week_time
99
-      this.zone = this.$route.query.zone
100
-      this.pre_status = this.$route.query.prestatus
101
-     const params = {
101
+     this.modeOptions = this.$store.getters.treatment_mode
102
+     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
103
+    this.week_type = this.$route.query.week_type
104
+    this.week_time  = this.$route.query.week_time
105
+    this.zone = this.$route.query.zone
106
+    this.pre_status = this.$route.query.prestatus
107
+    
108
+    if(parseInt(this.$route.query.type) == 1){
109
+      const params = {
102
           week_type:this.week_type,
110
           week_type:this.week_type,
103
           week_time:this.week_time,
111
           week_time:this.week_time,
104
           zone:this.zone,
112
           zone:this.zone,
152
       var now_time = parseInt(this.week_type) * 86400 + this.start_time
160
       var now_time = parseInt(this.week_type) * 86400 + this.start_time
153
       console.log("now",now_time)
161
       console.log("now",now_time)
154
       this.now_time = now_time
162
       this.now_time = now_time
163
+    }
164
+    if(parseInt(this.$route.query.type) == 2){
165
+       this.getNextScheduleWeekDay()
166
+    }
167
+    
155
     },
168
     },
156
     methods: {
169
     methods: {
157
       getAdvice:function(doctor_advice) {
170
       getAdvice:function(doctor_advice) {
305
            this.printObj = list
318
            this.printObj = list
306
          }
319
          }
307
       })
320
       })
321
+     },
322
+    getNextScheduleWeekDay() {
323
+        const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
324
+        const end = moment().weekday(7).format('YYYY-MM-DD')
325
+        var zone = this.zone
326
+        // var newArr = []
327
+        // for(let i=0;i<this.zoneList.length;i++){
328
+        //    newArr.push(this.zoneList[i].id)
329
+        // }
330
+        // var arr = newArr.join(",")
331
+        // var str = ""
332
+        // if(this.zone == 0){
333
+        //    str = arr  
334
+        // }
335
+        // if(zone != 0){
336
+        //   str = zone.join(",")
337
+        // }
338
+        const params = {
339
+          start_time:moment().week(moment().week() + 1).startOf('week').unix(),
340
+          end_time:moment().week(moment().week() + 1).endOf('week').unix(),
341
+          week_type:this.week_type,
342
+          week_time:this.week_time,
343
+          zone:this.zone,
344
+        }
345
+        // const params = {
346
+        //   start_time:1609603200,
347
+        //   end_time:1610208000,
348
+        //   week_type:this.week_type,
349
+        //   week_time:this.week_time,
350
+        // }
351
+      console.log("params",params)
352
+      getNextScheduleWeekDay(params).then(response => {
353
+        this.scheduleData = [];
354
+        if (response.data.state == 1) {
355
+          var scheduleData = response.data.data.schedule;
356
+      
357
+          for(let i=0;i<scheduleData.length;i++){
358
+              scheduleData[i].sort = scheduleData[i].number.sort
359
+          }
360
+            var arr =   scheduleData.sort(this.compare('sort'))
361
+            console.log("元旦快乐",arr)
362
+            this.scheduleData = arr
363
+          
364
+            // var newList = []
365
+            // for(let i=0;i<scheduleData.length;i++){
366
+            //   if(scheduleData.prescription.id > 0){
367
+            //      newList.push(scheduleData[i])
368
+            //   } 
369
+            // }
370
+            // var arr =   newList.sort(this.compare('sort'))
371
+            // console.log("元旦快乐",arr)
372
+            // this.scheduleData = arr 
373
+        } else {
374
+          this.$message.error("网络错误");
375
+          return false;
376
+        }
377
+      });
308
      }
378
      }
309
     }
379
     }
310
   }
380
   }