XMLWAN 3 years ago
parent
commit
954fb6f9ca

+ 1 - 0
src/api/dialysis.js View File

157
 }
157
 }
158
 
158
 
159
 export function postSoulution(params) {
159
 export function postSoulution(params) {
160
+  console.log("params",params)
160
   return request({
161
   return request({
161
     url: '/api/dialysis/soulution',
162
     url: '/api/dialysis/soulution',
162
     method: 'Post',
163
     method: 'Post',

+ 18 - 0
src/api/schedule.js View File

220
     method:"get",
220
     method:"get",
221
     params:params
221
     params:params
222
   })
222
   })
223
+}
224
+
225
+export function postScheduleTemplate(params){
226
+   
227
+  return request({
228
+    url:"/api/schedule/postscheduletemplate",
229
+    method:"get",
230
+    params:params
231
+  })
232
+}
233
+
234
+export function getScheduleTemplate(params){
235
+  
236
+  return request({
237
+    url:"/api/schedule/getscheduletemplate",
238
+    method:"get",
239
+    params:params,
240
+  })
223
 }
241
 }

+ 15 - 0
src/store/modules/globalConfig.js View File

524
         sodium: 1,
524
         sodium: 1,
525
         calcium: 1,
525
         calcium: 1,
526
         bicarbonate: 1
526
         bicarbonate: 1
527
+      },
528
+      22: {
529
+        id: 22,
530
+        name: '血浆胆红素吸附+HDF',
531
+        dialysis_duration: 1,
532
+        replacement_way: 1,
533
+        hemodialysis_machine: 2,
534
+        blood_filter: 1,
535
+        perfusion_apparatus: 2,
536
+        blood_flow_volume: 1,
537
+        dialysate_flow: 1,
538
+        kalium: 1,
539
+        sodium: 1,
540
+        calcium: 1,
541
+        bicarbonate: 1
527
       }
542
       }
528
     },
543
     },
529
     anticoagulants_confit: { // 抗凝剂
544
     anticoagulants_confit: { // 抗凝剂

+ 3 - 3
src/xt_pages/data/prescription.vue View File

229
                     </el-form-item>
229
                     </el-form-item>
230
                   </el-col>
230
                   </el-col>
231
 
231
 
232
-                  <el-col :span="8">
232
+                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id != 3877 && this.$store.getters.xt_user.template_info.org_id != 10090">
233
                     <el-form-item label="透析器/灌流器:">
233
                     <el-form-item label="透析器/灌流器:">
234
                       <el-input
234
                       <el-input
235
                         v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
235
                         v-model="addPlan.dialyzer_perfusion_apparatus" @focus="showInnerDialog('5')"></el-input>
237
                   </el-col>
237
                   </el-col>
238
 
238
 
239
 
239
 
240
-                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 3877">
240
+                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10090">
241
                     <el-form-item label="透析器:">
241
                     <el-form-item label="透析器:">
242
                       <el-input
242
                       <el-input
243
                         v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
243
                         v-model="dialysis_dialyszers" @focus="showInnerDialog('6')"></el-input>
244
                     </el-form-item>
244
                     </el-form-item>
245
                   </el-col>
245
                   </el-col>
246
 
246
 
247
-                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 3877">
247
+                  <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10090">
248
                     <el-form-item label="灌流器:">
248
                     <el-form-item label="灌流器:">
249
                       <el-input
249
                       <el-input
250
                         v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
250
                         v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>

+ 5 - 3
src/xt_pages/data/printTemplate.vue View File

20
         <el-tab-pane label="透析记录单模板" name="4">
20
         <el-tab-pane label="透析记录单模板" name="4">
21
           <dialysis-print></dialysis-print>
21
           <dialysis-print></dialysis-print>
22
         </el-tab-pane>
22
         </el-tab-pane>
23
-       
23
+        <el-tab-pane label="排班打印模板" name="6">
24
+          <schedule-print></schedule-print>
25
+        </el-tab-pane>
24
       </el-tabs>
26
       </el-tabs>
25
     </div>
27
     </div>
26
   </div>
28
   </div>
33
 import treatPrint from './printTemplate/treatPrint'
35
 import treatPrint from './printTemplate/treatPrint'
34
 import dialysisPrint from './printTemplate/dialysisPrint'
36
 import dialysisPrint from './printTemplate/dialysisPrint'
35
 import chargePrint from './printTemplate/chargePrint'
37
 import chargePrint from './printTemplate/chargePrint'
36
-
38
+import schedulePrint from './printTemplate/schedulePrint'
37
 export default {
39
 export default {
38
   name: "printTemplate",
40
   name: "printTemplate",
39
-  components: { BreadCrumb,recordPrint,prescriptionPrint,treatPrint,dialysisPrint,chargePrint },
41
+  components: { BreadCrumb,recordPrint,prescriptionPrint,treatPrint,dialysisPrint,chargePrint,schedulePrint },
40
   data() {
42
   data() {
41
     return {
43
     return {
42
       showViewer:false,
44
       showViewer:false,

+ 7 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

556
                           >
556
                           >
557
                             IUF+HD
557
                             IUF+HD
558
                           </div>
558
                           </div>
559
+                           <div
560
+                            class="under_line"
561
+                            style="width: 100px;text-align: center;font-weight:600;"
562
+                            v-if="record.prescription.mode_id == 22"
563
+                          >
564
+                            血浆胆红素吸附+HDF
565
+                          </div>
559
                         </div>
566
                         </div>
560
                       </div>
567
                       </div>
561
 
568
 

+ 5 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

339
           <span class="content">{{this.prescription.replacement_flow}}</span>
339
           <span class="content">{{this.prescription.replacement_flow}}</span>
340
         </li>
340
         </li>
341
 
341
 
342
+        <li v-if="isShow('血浆分离器')">
343
+          <label>血浆分离器: </label>
344
+          <span class="content">{{this.prescription.plasma_separator}}</span>
345
+        </li>
346
+
342
       </ul>
347
       </ul>
343
     </div>
348
     </div>
344
     <div style="color:#34495e;margin: 12px 100px 0 100px;">备注: <span style="color:#409eff;">{{ note }}</span></div>
349
     <div style="color:#34495e;margin: 12px 100px 0 100px;">备注: <span style="color:#409eff;">{{ note }}</span></div>

+ 26 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

396
              </el-form-item>
396
              </el-form-item>
397
           </el-col>
397
           </el-col>
398
 
398
 
399
+          <el-col :span="8" v-if="isShows('血浆分离器')">
400
+             <el-form-item label="血浆分离器:">
401
+                  <el-input v-model="dialysisPrescription.plasma_separator" @focus="showInnerDialog('9')"></el-input>
402
+             </el-form-item>
403
+          </el-col>
404
+
399
           <el-col :span="8" v-if="isShows('体液过多症状')">
405
           <el-col :span="8" v-if="isShows('体液过多症状')">
400
             <el-form-item label="体液过多症状:">
406
             <el-form-item label="体液过多症状:">
401
               <el-select
407
               <el-select
562
              </el-form-item>
568
              </el-form-item>
563
           </el-col>
569
           </el-col>
564
 
570
 
565
-         
566
-
567
-
571
+        
568
           <el-col :span="8" v-if="isShows('置换流量')">
572
           <el-col :span="8" v-if="isShows('置换流量')">
569
              <el-form-item label="置换流量(L/h):">
573
              <el-form-item label="置换流量(L/h):">
570
                 <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
574
                 <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
571
              </el-form-item>
575
              </el-form-item>
572
           </el-col>
576
           </el-col>
577
+         
573
 
578
 
579
+       
574
         </el-row>
580
         </el-row>
575
 
581
 
576
         <el-row :gutter="20">
582
         <el-row :gutter="20">
1069
           single_time:"",
1075
           single_time:"",
1070
           single_water:"",
1076
           single_water:"",
1071
           replacement_flow:"",
1077
           replacement_flow:"",
1078
+          plasma_separator:"",
1072
         },
1079
         },
1073
 
1080
 
1074
         anticoagulant: {
1081
         anticoagulant: {
1092
         bloods:[],
1099
         bloods:[],
1093
         irrigations:[],
1100
         irrigations:[],
1094
         dialyzers:[],
1101
         dialyzers:[],
1095
-        illnessList:[]
1102
+        illnessList:[],
1103
+        plasmaSeparatorList:[],
1096
       }
1104
       }
1097
     },
1105
     },
1098
     methods: {
1106
     methods: {
1177
             this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
1185
             this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
1178
             this.InnerDialogProps.isShowTextArea = false
1186
             this.InnerDialogProps.isShowTextArea = false
1179
             break
1187
             break
1188
+           case '9': // 血浆灌流器
1189
+
1190
+           
1191
+            this.InnerDialogProps.values = this.plasmaSeparatorList
1192
+            this.InnerDialogProps.titles = '血浆灌流器'
1193
+            this.InnerDialogProps.type = 'plasma_separator'
1194
+            this.InnerDialogProps.selected = this.dialysisPrescription.plasma_separator
1195
+            this.InnerDialogProps.isShowTextArea = false
1196
+            break
1180
         }
1197
         }
1181
       },
1198
       },
1182
       innerDialogComfirm: function(val) {
1199
       innerDialogComfirm: function(val) {
1194
           case 'irrigations':
1211
           case 'irrigations':
1195
            this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
1212
            this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
1196
           break
1213
           break
1214
+          case 'plasma_separator':
1215
+          this.dialysisPrescription.plasma_separator = val.value.join(',')
1216
+          break
1197
         }
1217
         }
1198
       },
1218
       },
1199
       innerDialogCancle: function() {
1219
       innerDialogCancle: function() {
3584
     created(){
3604
     created(){
3585
       this.illnessList = getDataConfig('hemodialysis','illness')
3605
       this.illnessList = getDataConfig('hemodialysis','illness')
3586
       console.log("列表22222222222",this.illnessList)
3606
       console.log("列表22222222222",this.illnessList)
3607
+      this.plasmaSeparatorList = getDataConfig('hemodialysis','plasma_separator')
3608
+      console.log("列表333333333",this.plasmaSeparatorList)
3587
     }
3609
     }
3588
   }
3610
   }
3589
 </script>
3611
 </script>

+ 4 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

930
       isVisibility(val) {
930
       isVisibility(val) {
931
         
931
         
932
         if(this.prescription!=null && this.prescription.id!=0){
932
         if(this.prescription!=null && this.prescription.id!=0){
933
-
933
+          
934
           this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
934
           this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
935
+          this.diazes = this.diazes + this.prescription.dialysis_dialyszers+this.prescription.dialysis_irrigation
935
           this.prescription.dialyzer_perfusion_apparatus = ""
936
           this.prescription.dialyzer_perfusion_apparatus = ""
937
+          this.prescription.dialysis_dialyszers = ""
938
+          this.prescription.dialysis_irrigation = ""
936
           this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
939
           this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
937
           // this.prescription.dialysate_formulation = ""
940
           // this.prescription.dialysate_formulation = ""
938
           this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")
941
           this.kalium = this.kalium + (this.prescription.kalium?this.prescription.kalium:"")

+ 3 - 2
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

2
   <div class="main-contain">
2
   <div class="main-contain">
3
     <div class="position">
3
     <div class="position">
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <div>
5
        <el-button
6
        <el-button
6
           size="small"
7
           size="small"
7
           icon="el-icon-printer"
8
           icon="el-icon-printer"
8
           :disabled="selecting_schs.length == 0"
9
           :disabled="selecting_schs.length == 0"
9
           @click="signPrintAction"
10
           @click="signPrintAction"
10
           type="primary"
11
           type="primary"
11
-          style="float:right"
12
+          style="margin-right:10"
12
         >标签打印
13
         >标签打印
13
       </el-button>
14
       </el-button>
14
       <el-button
15
       <el-button
19
           type="primary"
20
           type="primary"
20
           >医嘱打印
21
           >医嘱打印
21
       </el-button>
22
       </el-button>
22
-   
23
+    </div>
23
     </div>
24
     </div>
24
     <div class="app-container">
25
     <div class="app-container">
25
       <!-- <div class="filter-container">
26
       <!-- <div class="filter-container">

+ 3 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

300
                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 19">
300
                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 19">
301
                       IUF+HD
301
                       IUF+HD
302
                     </div>
302
                     </div>
303
+                    <div class="under_line" style="width: 150px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 22">
304
+                      血浆胆红素吸附+HDF
305
+                    </div>
303
                   </div>
306
                   </div>
304
 
307
 
305
                   <div class="inline_block" style="margin-left:10px;flex:1;">
308
                   <div class="inline_block" style="margin-left:10px;flex:1;">

+ 3 - 1
src/xt_pages/stock/detail/print.vue View File

184
       },
184
       },
185
       getDialysisRecord() {
185
       getDialysisRecord() {
186
         this.loading = true
186
         this.loading = true
187
+        
187
         getPrintStockGood(this.queryParams).then(response => {
188
         getPrintStockGood(this.queryParams).then(response => {
188
           if (response.data.state == 1) {
189
           if (response.data.state == 1) {
189
             var stockTotal = response.data.data.stockTotal
190
             var stockTotal = response.data.data.stockTotal
251
             return false
252
             return false
252
           }
253
           }
253
         })
254
         })
254
-      }, calCount(stock) {
255
+      }, 
256
+      calCount(stock) {
255
       
257
       
256
         let total = 0
258
         let total = 0
257
         var array = []
259
         var array = []

+ 8 - 5
src/xt_pages/stock/detail/stockOutDetail.vue View File

164
         </el-table-column>
164
         </el-table-column>
165
         <el-table-column label="数量" align="center">
165
         <el-table-column label="数量" align="center">
166
           <template slot-scope="scope">
166
           <template slot-scope="scope">
167
-            {{ scope.row.count }}
167
+            <span v-if="orgId!=9583">{{ scope.row.count }}</span>
168
+            <span v-if="orgId ==9583">{{getStockCount(scope.row.good_id) }}</span>
168
           </template>
169
           </template>
169
         </el-table-column>
170
         </el-table-column>
170
         <el-table-column label="总价" align="center">
171
         <el-table-column label="总价" align="center">
227
     this.goodUnit = this.$store.getters.good_unit
228
     this.goodUnit = this.$store.getters.good_unit
228
     this.getPrintStockGood()
229
     this.getPrintStockGood()
229
     this.getList()
230
     this.getList()
231
+    var org_id = this.$store.getters.xt_user.org.id
232
+    this.orgId = org_id
233
+    console.log("机构信息",org_id)
230
   },
234
   },
231
   data() {
235
   data() {
232
     return {
236
     return {
260
       goodUnit:[],
264
       goodUnit:[],
261
       tableList:[],
265
       tableList:[],
262
       stockTotal:[],
266
       stockTotal:[],
263
-      goodInfoData:[]
267
+      goodInfoData:[],
268
+      orgId:"",
264
     };
269
     };
265
   },
270
   },
266
   methods: {
271
   methods: {
686
         return Math.floor(amountPrice* 100) / 100
691
         return Math.floor(amountPrice* 100) / 100
687
       },
692
       },
688
       getStockCount(id){
693
       getStockCount(id){
689
-
690
         var count = ""
694
         var count = ""
691
         for(let i=0;i<this.stockTotal.length;i++){
695
         for(let i=0;i<this.stockTotal.length;i++){
692
             if(id == this.stockTotal[i].good_id){
696
             if(id == this.stockTotal[i].good_id){
758
         this.tableList[i].index = i+1
762
         this.tableList[i].index = i+1
759
         this.tableList[i].min_unit = this.getUnit(this.tableList[i].good_unit)
763
         this.tableList[i].min_unit = this.getUnit(this.tableList[i].good_unit)
760
         this.tableList[i].count = this.getStockCount(this.tableList[i].id)
764
         this.tableList[i].count = this.getStockCount(this.tableList[i].id)
761
-        // this.tableList[i].price = this.tableList[i].query_warehouseout_info[0].buy_price
762
         this.tableList[i].total = (this.getStockCount(this.tableList[i].id) * this.tableList[i].buy_price).toFixed(2)
765
         this.tableList[i].total = (this.getStockCount(this.tableList[i].id) * this.tableList[i].buy_price).toFixed(2)
763
         this.tableList[i].remark = this.tableList[i].query_warehouseout_info[0].remark
766
         this.tableList[i].remark = this.tableList[i].query_warehouseout_info[0].remark
764
        }
767
        }
800
        }
803
        }
801
        return total_price
804
        return total_price
802
      },
805
      },
803
-
806
+   
804
      
807
      
805
   }
808
   }
806
 };
809
 };

+ 7 - 10
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

422
           this.total = response.data.data.total;
422
           this.total = response.data.data.total;
423
           for (let i = 0; i < response.data.data.list.length; i++) {
423
           for (let i = 0; i < response.data.data.list.length; i++) {
424
             this.Warehouse.warehouseDate.push(response.data.data.list[i]);
424
             this.Warehouse.warehouseDate.push(response.data.data.list[i]);
425
-          }
426
-          console.log("列表",this.warehouse.warehouseDate)
425
+          }      
427
         }
426
         }
428
       });
427
       });
429
     },
428
     },
432
       row.index = rowIndex;
431
       row.index = rowIndex;
433
     },
432
     },
434
     onRowClick(row, event, column) {
433
     onRowClick(row, event, column) {
435
-      this.WarehouseInfo.warehouseInfoDate = [];
434
+     this.WarehouseInfo.warehouseInfoDate = [];
436
       this.Warehouse.tableCurrentIndex = row.index;
435
       this.Warehouse.tableCurrentIndex = row.index;
437
       const params = {
436
       const params = {
438
         id: row.id
437
         id: row.id
446
         } else {
445
         } else {
447
           this.WarehouseInfo.loading = false;
446
           this.WarehouseInfo.loading = false;
448
           for (let i = 0; i < response.data.data.info.length; i++) {
447
           for (let i = 0; i < response.data.data.info.length; i++) {
449
-            this.WarehouseInfo.warehouseInfoDate.push(
450
-              response.data.data.info[i]
451
-            );
448
+            this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
452
           }
449
           }
453
         }
450
         }
454
       });
451
       });
566
           this.$message.error(response.data.msg);
563
           this.$message.error(response.data.msg);
567
           return false;
564
           return false;
568
         } else {
565
         } else {
566
+          //  this.WarehouseInfo.warehouseInfoDate = []
567
+           
569
           for (let i = 0; i < response.data.data.info.length; i++) {
568
           for (let i = 0; i < response.data.data.info.length; i++) {
570
-            this.WarehouseInfo.warehouseInfoDate = []
571
-            this.WarehouseInfo.warehouseInfoDate.push(
572
-              response.data.data.info[i]
573
-            );
569
+            this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
574
           }
570
           }
571
+          console.log("列表222222222", this.WarehouseInfo.warehouseInfoDate)
575
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
572
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
576
         }
573
         }
577
       });
574
       });

+ 0 - 2
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue View File

8
     <div class="app-container ">
8
     <div class="app-container ">
9
       <div id="dialysis-print-box">
9
       <div id="dialysis-print-box">
10
         <div class="dialysis-print-order">
10
         <div class="dialysis-print-order">
11
-         <div class="order-yy-name" style="font-weight:bold;">{{orgName}}</div>
12
-          <div class="order-title" style="font-weight:normal;">药品出库登记表</div>
13
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;">{{orgName}}</div>
11
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;">{{orgName}}</div>
14
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
12
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
15
 
13
 

+ 32 - 6
src/xt_pages/user/dialysisSolution.vue View File

512
             </el-form-item>
512
             </el-form-item>
513
           </el-col>
513
           </el-col>
514
 
514
 
515
+         <el-col :span="8" v-if="isShows('血浆分离器')">
516
+             <el-form-item label="血浆分离器:">
517
+               <el-input v-model="addPlan.plasma_separator" @focus="showInnerDialog('8')"></el-input>
518
+             </el-form-item>
519
+         </el-col>
520
+
515
           <el-col :span="8" v-if="isShows('目标KT/V')">
521
           <el-col :span="8" v-if="isShows('目标KT/V')">
516
             <el-form-item label="目标KT/V">
522
             <el-form-item label="目标KT/V">
517
               <el-input v-model="addPlan.target_ktv"></el-input>
523
               <el-input v-model="addPlan.target_ktv"></el-input>
519
           </el-col>
525
           </el-col>
520
         </el-row>
526
         </el-row>
521
 
527
 
528
+
529
+    
530
+
531
+
522
         <el-row :gutter="24">
532
         <el-row :gutter="24">
523
           <el-col :span="24">
533
           <el-col :span="24">
524
             <el-form-item label="备注: " prop="remark">
534
             <el-form-item label="备注: " prop="remark">
707
         blood_access: '',
717
         blood_access: '',
708
         dialysis_dialyszers:'',
718
         dialysis_dialyszers:'',
709
         dialysis_irrigation:'',
719
         dialysis_irrigation:'',
720
+        plasma_separator:"",
710
       },
721
       },
711
       childPlan: {
722
       childPlan: {
712
         mode: '',
723
         mode: '',
835
      dialyzers:[],
846
      dialyzers:[],
836
      dialysis_dialyszers:'',
847
      dialysis_dialyszers:'',
837
      dialysis_irrigation:"",
848
      dialysis_irrigation:"",
849
+     plasmaSeparatorList:[]
838
     }
850
     }
839
   },
851
   },
840
   watch: {
852
   watch: {
913
           this.InnerDialogProps.selected = this.dialysis_irrigation
925
           this.InnerDialogProps.selected = this.dialysis_irrigation
914
           this.InnerDialogProps.isShowTextArea = false
926
           this.InnerDialogProps.isShowTextArea = false
915
 
927
 
928
+          break
929
+        case '8':
930
+         
931
+          this.InnerDialogProps.values = this.plasmaSeparatorList
932
+          this.InnerDialogProps.titles = '血浆分离器'
933
+          this.InnerDialogProps.type = 'plasma_separator'
934
+          this.InnerDialogProps.selected = this.addPlan.plasma_separator
935
+          this.InnerDialogProps.isShowTextArea = false
936
+
916
           break
937
           break
917
       }
938
       }
918
     },
939
     },
919
     innerDialogComfirm: function(val) {
940
     innerDialogComfirm: function(val) {
920
-
941
+      console.log("value",val)
921
       this.InnerDialogProps.visibility = false
942
       this.InnerDialogProps.visibility = false
922
       switch (val.type) {
943
       switch (val.type) {
923
         case 'dialyzer_perfusion_apparatus':
944
         case 'dialyzer_perfusion_apparatus':
925
           break
946
           break
926
         case 'dialyzers':
947
         case 'dialyzers':
927
           this.dialysis_dialyszers = val.value.join(',')
948
           this.dialysis_dialyszers = val.value.join(',')
928
-          console.log("3333333",this.addPlan.dialysis_dialyszers)
929
-
930
           break
949
           break
931
         case 'irrigations':
950
         case 'irrigations':
932
           this.dialysis_irrigation = val.value.join(',')
951
           this.dialysis_irrigation = val.value.join(',')
933
           break
952
           break
934
-
953
+        case 'plasma_separator':
954
+          this.addPlan.plasma_separator = val.value.join(',')
955
+          console.log("333333",this.addPlan.plasma_separator)
956
+          break
935
       }
957
       }
936
     },
958
     },
937
     innerDialogCancle: function() {
959
     innerDialogCancle: function() {
1376
       this.addPlan.remark = row.remark
1398
       this.addPlan.remark = row.remark
1377
 
1399
 
1378
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1400
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1401
+      this.addPlan.plasma_separator = row.plasma_separator.toString()
1379
       this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1402
       this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1380
       this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1403
       this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1381
       this.dialysis_irrigation = row.dialysis_irrigation
1404
       this.dialysis_irrigation = row.dialysis_irrigation
1474
         dialysis_duration_hour: '3',
1497
         dialysis_duration_hour: '3',
1475
         dialysis_duration_minute: '30',
1498
         dialysis_duration_minute: '30',
1476
         created_time:"",
1499
         created_time:"",
1500
+        plasma_separator:"",
1477
       }
1501
       }
1478
       this.addPlanTypeChange()
1502
       this.addPlanTypeChange()
1479
 
1503
 
1713
               displace_liqui_part: '',
1737
               displace_liqui_part: '',
1714
               displace_liqui_value: '',
1738
               displace_liqui_value: '',
1715
               ultrafiltration: '',
1739
               ultrafiltration: '',
1716
-              blood_access: ''
1740
+              blood_access: '',
1741
+              plasma_separator:"",
1717
             }
1742
             }
1718
 
1743
 
1719
             for (const key in tempAddPlan) {
1744
             for (const key in tempAddPlan) {
1811
       'hemodialysis',
1836
       'hemodialysis',
1812
       'dialyzer_perfusion_apparatus'
1837
       'dialyzer_perfusion_apparatus'
1813
     )
1838
     )
1814
-
1839
+    this.plasmaSeparatorList = getDataConfig('hemodialysis','plasma_separator')
1840
+    
1815
     this.queryParams.id = this.patientID
1841
     this.queryParams.id = this.patientID
1816
     // this.fetchAllDoctorAndNurse();
1842
     // this.fetchAllDoctorAndNurse();
1817
 
1843
 

+ 28 - 13
src/xt_pages/workforce/appointment.vue View File

69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
69
       <bread-crumb :crumbs="crumbs"></bread-crumb>
70
         <div style="display:flex;align-items:center">
70
         <div style="display:flex;align-items:center">
71
           <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' ></schedule-upload-excel>
71
           <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' ></schedule-upload-excel>
72
-           <el-button @click="printTable" type="primary" size="small">打印排班</el-button>
72
+           <!-- <el-button @click="printTable" type="primary" size="small">打印排班</el-button> -->
73
           <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
73
           <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
74
             导出模版
74
             导出模版
75
           </el-button>
75
           </el-button>
85
           >下载日志
85
           >下载日志
86
           </el-button>
86
           </el-button>
87
 
87
 
88
-          <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印</el-button>
88
+          <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
89
           <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板</el-button>
89
           <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板</el-button>
90
           <el-button type="primary" size="small" @click="copySchedule">复制排班</el-button>
90
           <el-button type="primary" size="small" @click="copySchedule">复制排班</el-button>
91
         </div>
91
         </div>
157
   import moment from 'moment'
157
   import moment from 'moment'
158
   import { parseTime } from '@/utils'
158
   import { parseTime } from '@/utils'
159
   import tableData from './components/tableData'
159
   import tableData from './components/tableData'
160
-  import { exportSchedule, getWeekPanels, initDate,getThreeWeekList,copyPatientSchedule } from '@/api/schedule'
160
+  import { exportSchedule, getWeekPanels, initDate,getThreeWeekList,copyPatientSchedule,getScheduleTemplate } from '@/api/schedule'
161
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
161
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
162
   import UploadExcel from '@/xt_pages/components/UploadExcel'
162
   import UploadExcel from '@/xt_pages/components/UploadExcel'
163
   import ScheduleUploadExcel from './components/scheduleUploadExcel/index'
163
   import ScheduleUploadExcel from './components/scheduleUploadExcel/index'
216
         clen:7,
216
         clen:7,
217
         nowYear: new Date().getFullYear(),
217
         nowYear: new Date().getFullYear(),
218
         schedule_week:0,
218
         schedule_week:0,
219
-        newDay:[]
220
-
219
+        newDay:[],
220
+       templateObj:{}
221
       }
221
       }
222
     },
222
     },
223
     components: {
223
     components: {
227
       UploadExcel
227
       UploadExcel
228
     },
228
     },
229
     methods: {
229
     methods: {
230
-      printTable(){
231
-        this.$router.push({path: '/scheduleTablePrint?partition_id='+this.partition_id+"&weekTime="+this.activeName})
232
-      },
230
+      // printTable(){
231
+      //   this.$router.push({path: '/scheduleTablePrint?partition_id='+this.partition_id+"&weekTime="+this.activeName})
232
+      // },
233
       generateTxt: function(log) {
233
       generateTxt: function(log) {
234
         var content = ''
234
         var content = ''
235
         var errlog = log.err_logs
235
         var errlog = log.err_logs
638
         } else if (this.activeName == 'nextTwoWeek') {
638
         } else if (this.activeName == 'nextTwoWeek') {
639
           date = date + 14 * 24 * 60 * 60 * 1000
639
           date = date + 14 * 24 * 60 * 60 * 1000
640
         }
640
         }
641
-        this.$router.push({
642
-          path: '/workforce/schedule/print',
643
-          query: { date: date }
644
-        })
645
-      }, isShow() {
641
+        
642
+        if(this.templateObj.template_id == 0 || this.templateObj.template_id == 1){
643
+           this.$router.push({path: '/workforce/schedule/print',query: { date: date }})
644
+        }
645
+        if(this.templateObj.template_id == 2){
646
+          this.$router.push({path: '/scheduleTablePrint?partition_id='+this.partition_id+"&weekTime="+this.activeName})
647
+        }
648
+       
649
+      }, 
650
+      isShow() {
646
         let isShow = false
651
         let isShow = false
647
         if (Object.keys(this.partitions).length != 0) {
652
         if (Object.keys(this.partitions).length != 0) {
648
           isShow = true
653
           isShow = true
2811
               }
2816
               }
2812
            })
2817
            })
2813
         },
2818
         },
2819
+        getlist(){
2820
+          getScheduleTemplate().then(response=>{
2821
+             if(response.data.state == 1){
2822
+                var template = response.data.data.template
2823
+                console.log("模版",template)
2824
+                this.templateObj = template
2825
+             }
2826
+          })
2827
+        }
2814
     },
2828
     },
2815
     created() {
2829
     created() {
2830
+     this.getlist()
2816
      var start_time = moment().weekday(1).format('YYYY-MM-DD');
2831
      var start_time = moment().weekday(1).format('YYYY-MM-DD');
2817
    
2832
    
2818
      this.start_time = start_time
2833
      this.start_time = start_time

+ 2 - 1
src/xt_pages/workforce/scheduleTablePrint.vue View File

818
                theType = 4
818
                theType = 4
819
             }
819
             }
820
            var partionStr = this.partition_id
820
            var partionStr = this.partition_id
821
+           console.log("partionStr",partionStr)
821
             var arr = this.zoneIdList.join(',')
822
             var arr = this.zoneIdList.join(',')
822
             var str = ""
823
             var str = ""
823
             if(partionStr == 0){
824
             if(partionStr == 0){
824
                 str = arr
825
                 str = arr
825
             }
826
             }
826
             if(partionStr != 0){
827
             if(partionStr != 0){
827
-                str = partionStr.join(',')
828
+                str = partionStr
828
             }
829
             }
829
             var params = {
830
             var params = {
830
              weekTime:theType,
831
              weekTime:theType,