mainqaq 2 年前
父节点
当前提交
1ff6a21324

+ 107 - 0
src/api/batch/batch.js 查看文件

1
+import request from '@/utils/request'
2
+
3
+export function prescriptiontemplate(params,data) {
4
+  return request({
5
+    url: '/api/his/addstemplate',
6
+    method: 'post',
7
+    data:data,
8
+    params:params,
9
+  })
10
+}
11
+export function replacesavedrug(params,data) {
12
+  return request({
13
+    url: '/api/his/replacesavedrug',
14
+    method: 'post',
15
+    data:data,
16
+    params:params,
17
+  })
18
+}
19
+export function replacesaveproject(params,data) {
20
+  return request({
21
+    url: '/api/his/replacesaveproject',
22
+    method: 'post',
23
+    data:data,
24
+    params:params,
25
+  })
26
+}
27
+
28
+export function getdialysismodename(query) {
29
+  return request({
30
+    url: '/api/his/getdialysismodename',
31
+    method: 'get',
32
+    params: query
33
+  })
34
+}
35
+
36
+export function getdrugsname(query) {
37
+  return request({
38
+    url: '/api/his/getdrugsname',
39
+    method: 'get',
40
+    params: query
41
+  })
42
+}
43
+
44
+export function getmodeconfigs(query) {
45
+  return request({
46
+    url: '/api/his/getmodeconfigs',
47
+    method: 'get',
48
+    params: query
49
+  })
50
+}
51
+
52
+//根据id获取药品耗材项目基本信息
53
+export function getdrugsinformation(query) {
54
+  return request({
55
+    url: '/api/his/getdrugsinformation',
56
+    method: 'get',
57
+    params: query
58
+  })
59
+}
60
+//替换——获取患者名字
61
+export function replacepeoplename(query) {
62
+  return request({
63
+    url: '/api/his/replacepeoplename',
64
+    method: 'get',
65
+    params: query
66
+  })
67
+}
68
+//替换——配置
69
+export function replaceconfig(query) {
70
+  return request({
71
+    url: '/api/his/replaceconfig',
72
+    method: 'get',
73
+    params: query
74
+  })
75
+}
76
+//批量删除——药品
77
+export function deletedrugsbatch(query) {
78
+  return request({
79
+    url: '/api/his/deletedrugsbatch',
80
+    method: 'get',
81
+    params: query
82
+  })
83
+}
84
+//批量删除——项目
85
+export function batchdeleteitems(query) {
86
+  return request({
87
+    url: '/api/his/batchdeleteitems',
88
+    method: 'get',
89
+    params: query
90
+  })
91
+}
92
+//根据患者id、透析模式获取处方模板信息
93
+export function ptemplateinformation(query) {
94
+  return request({
95
+    url: '/api/his/ptemplateinformation',
96
+    method: 'get',
97
+    params: query
98
+  })
99
+}
100
+//删除一条记录
101
+export function deleteone(query) {
102
+  return request({
103
+    url: '/api/his/deleteone',
104
+    method: 'get',
105
+    params: query
106
+  })
107
+}

+ 16 - 0
src/router/modules/hisTool.js 查看文件

26
       hidden: true,
26
       hidden: true,
27
       is_menu: false
27
       is_menu: false
28
     },
28
     },
29
+    {
30
+      path: '/hisTool/batchDelete',
31
+      component: () => import('@/xt_pages/outpatientDoctorStation/batch_delete'),
32
+      name: 'batchDelete',
33
+      meta: { title: 'batchDelete', noCache: true },
34
+      hidden: true,
35
+      is_menu: false
36
+    },
37
+    {
38
+      path: '/hisTool/batchReplacement',
39
+      component: () => import('@/xt_pages/outpatientDoctorStation/batch_replacement'),
40
+      name: 'batchReplacement',
41
+      meta: { title: 'batchReplacement', noCache: true },
42
+      hidden: true,
43
+      is_menu: false
44
+    },
29
     {
45
     {
30
       path: '/hisTool/modeTemplateDetail',
46
       path: '/hisTool/modeTemplateDetail',
31
       component: () => import('@/xt_pages/outpatientDoctorStation/modeTemplateDetail'),
47
       component: () => import('@/xt_pages/outpatientDoctorStation/modeTemplateDetail'),

+ 13 - 13
src/xt_pages/device/components/partition_dialog.vue 查看文件

10
                         <el-table-column prop="name" label="分区名称" align="center"></el-table-column>
10
                         <el-table-column prop="name" label="分区名称" align="center"></el-table-column>
11
                         <el-table-column prop="type" label="分区类型" align="center"></el-table-column>
11
                         <el-table-column prop="type" label="分区类型" align="center"></el-table-column>
12
                         <!-- <el-table-column prop="amount" label="机号数量" align="center"></el-table-column> -->
12
                         <!-- <el-table-column prop="amount" label="机号数量" align="center"></el-table-column> -->
13
-                        <el-table-column label="操作" align="center"> 
13
+                        <el-table-column label="操作" align="center">
14
                             <template slot-scope="scope">
14
                             <template slot-scope="scope">
15
                                 <el-button type="primary" icon="el-icon-edit" size="small" @click="modifyZoneAt(scope.row)"></el-button>
15
                                 <el-button type="primary" icon="el-icon-edit" size="small" @click="modifyZoneAt(scope.row)"></el-button>
16
 
16
 
22
                                         <el-button size="mini" @click="scope.row.willDelete = false">取消</el-button>
22
                                         <el-button size="mini" @click="scope.row.willDelete = false">取消</el-button>
23
                                     </div>
23
                                     </div>
24
                                 </el-popover> -->
24
                                 </el-popover> -->
25
-                            </template>  
25
+                            </template>
26
                         </el-table-column>
26
                         </el-table-column>
27
                     </el-table>
27
                     </el-table>
28
                 </el-tab-pane>
28
                 </el-tab-pane>
34
                         <el-table-column prop="zone_name" label="所属分区" align="center"></el-table-column>
34
                         <el-table-column prop="zone_name" label="所属分区" align="center"></el-table-column>
35
                         <el-table-column prop="group_name" label="所属分组" align="center"></el-table-column>
35
                         <el-table-column prop="group_name" label="所属分组" align="center"></el-table-column>
36
                         <!-- <el-table-column prop="amount" label="机号数量" align="center"></el-table-column> -->
36
                         <!-- <el-table-column prop="amount" label="机号数量" align="center"></el-table-column> -->
37
-                        <el-table-column label="操作" align="center"> 
37
+                        <el-table-column label="操作" align="center">
38
                             <template slot-scope="scope">
38
                             <template slot-scope="scope">
39
                                 <el-button type="primary" icon="el-icon-edit" size="small" @click="modifyDeviceNumberAt(scope.row)"></el-button>
39
                                 <el-button type="primary" icon="el-icon-edit" size="small" @click="modifyDeviceNumberAt(scope.row)"></el-button>
40
 
40
 
46
                                     </div>
46
                                     </div>
47
                                     <el-button type="danger" slot="reference"  icon="el-icon-delete" size="mini">删除</el-button>
47
                                     <el-button type="danger" slot="reference"  icon="el-icon-delete" size="mini">删除</el-button>
48
                                 </el-popover> -->
48
                                 </el-popover> -->
49
-                            </template>  
49
+                            </template>
50
                         </el-table-column>
50
                         </el-table-column>
51
                     </el-table>
51
                     </el-table>
52
                 </el-tab-pane>
52
                 </el-tab-pane>
68
                                     </div>
68
                                     </div>
69
                                     <el-button type="danger" slot="reference" icon="el-icon-delete" size="mini">删除</el-button>
69
                                     <el-button type="danger" slot="reference" icon="el-icon-delete" size="mini">删除</el-button>
70
                                 </el-popover> -->
70
                                 </el-popover> -->
71
-                            </template>  
71
+                            </template>
72
                         </el-table-column>
72
                         </el-table-column>
73
                     </el-table>
73
                     </el-table>
74
                 </el-tab-pane>
74
                 </el-tab-pane>
75
             </el-tabs>
75
             </el-tabs>
76
-            
76
+
77
             <!-- <span slot="footer" class="dialog-footer">
77
             <!-- <span slot="footer" class="dialog-footer">
78
-                <el-button type="primary" @click="visible = false">保 存</el-button>            
78
+                <el-button type="primary" @click="visible = false">保 存</el-button>
79
                 <el-button @click="visible = false">取 消</el-button>
79
                 <el-button @click="visible = false">取 消</el-button>
80
             </span> -->
80
             </span> -->
81
         </el-dialog>
81
         </el-dialog>
273
                                 this.$message.error(resp.msg)
273
                                 this.$message.error(resp.msg)
274
                             }
274
                             }
275
                         })
275
                         })
276
-                        
276
+
277
                     } else {
277
                     } else {
278
                         modifyZone(this.zone_form.id, this.zone_form.name, this.zone_form.type).then(rs => {
278
                         modifyZone(this.zone_form.id, this.zone_form.name, this.zone_form.type).then(rs => {
279
                             var resp = rs.data
279
                             var resp = rs.data
293
                             }
293
                             }
294
                         })
294
                         })
295
                     }
295
                     }
296
-                    
296
+
297
                 } else {
297
                 } else {
298
                     return false
298
                     return false
299
                 }
299
                 }
314
                                 this.$message.error(resp.msg)
314
                                 this.$message.error(resp.msg)
315
                             }
315
                             }
316
                         })
316
                         })
317
-                        
317
+
318
                     } else {
318
                     } else {
319
                         modifyGroup(this.group_form.id, this.group_form.name).then(rs => {
319
                         modifyGroup(this.group_form.id, this.group_form.name).then(rs => {
320
                             var resp = rs.data
320
                             var resp = rs.data
333
                             }
333
                             }
334
                         })
334
                         })
335
                     }
335
                     }
336
-                    
336
+
337
                 } else {
337
                 } else {
338
                     return false
338
                     return false
339
                 }
339
                 }
354
                                 this.$message.error(resp.msg)
354
                                 this.$message.error(resp.msg)
355
                             }
355
                             }
356
                         })
356
                         })
357
-                        
357
+
358
                     } else {
358
                     } else {
359
                         modifyDeviceNumber(this.number_form.id, this.number_form.number, this.number_form.zone, this.number_form.group).then(rs => {
359
                         modifyDeviceNumber(this.number_form.id, this.number_form.number, this.number_form.zone, this.number_form.group).then(rs => {
360
                             var resp = rs.data
360
                             var resp = rs.data
375
                             }
375
                             }
376
                         })
376
                         })
377
                     }
377
                     }
378
-                    
378
+
379
                 } else {
379
                 } else {
380
                     return false
380
                     return false
381
                 }
381
                 }

+ 9 - 9
src/xt_pages/dialysis/details/dialog/finish_dialog.vue 查看文件

28
               <el-radio :label="2">无</el-radio>
28
               <el-radio :label="2">无</el-radio>
29
            </el-radio-group>
29
            </el-radio-group>
30
         </el-form-item>
30
         </el-form-item>
31
-        
31
+
32
         <el-form-item label="内瘘: " v-if="isShowFiled('内瘘')">
32
         <el-form-item label="内瘘: " v-if="isShowFiled('内瘘')">
33
             <el-input v-model="form.internal_fistula" readonly  @focus="showInnerDialog('7')" style="width:200px"></el-input>
33
             <el-input v-model="form.internal_fistula" readonly  @focus="showInnerDialog('7')" style="width:200px"></el-input>
34
         </el-form-item>
34
         </el-form-item>
35
 
35
 
36
-    
36
+
37
         <el-form-item label="导管: " v-if="isShowFiled('导管')">
37
         <el-form-item label="导管: " v-if="isShowFiled('导管')">
38
           <el-input v-model="form.catheter" @focus="showInnerDialog('4')" style="width:200px"></el-input>
38
           <el-input v-model="form.catheter" @focus="showInnerDialog('4')" style="width:200px"></el-input>
39
         </el-form-item>
39
         </el-form-item>
45
             readonly
45
             readonly
46
             @focus="showInnerDialog('1')"
46
             @focus="showInnerDialog('1')"
47
           ></el-input>
47
           ></el-input>
48
-       </el-form-item> 
48
+       </el-form-item>
49
 
49
 
50
         <el-form-item>
50
         <el-form-item>
51
           <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit" :loading="loading"
51
           <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit" :loading="loading"
56
             type="primary" @click="modifyFinish">修改下机
56
             type="primary" @click="modifyFinish">修改下机
57
           </el-button>
57
           </el-button>
58
         </el-form-item>
58
         </el-form-item>
59
-        
59
+
60
 
60
 
61
 
61
 
62
       </el-form>
62
       </el-form>
165
     methods: {
165
     methods: {
166
        isShowFiled(name) {
166
        isShowFiled(name) {
167
         var filedList = store.getters.xt_user.fileds
167
         var filedList = store.getters.xt_user.fileds
168
-       
168
+
169
         for (let i = 0; i < filedList.length; i++) {
169
         for (let i = 0; i < filedList.length; i++) {
170
           if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
170
           if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
171
             return true
171
             return true
193
         if(this.$route.query.patient_id){
193
         if(this.$route.query.patient_id){
194
           this.patient_id = this.$route.query.patient_id
194
           this.patient_id = this.$route.query.patient_id
195
         }
195
         }
196
-        
196
+
197
         this.schedule_date = this.$route.query.date
197
         this.schedule_date = this.$route.query.date
198
 
198
 
199
         if (this.dialysis_order.id == 0) {
199
         if (this.dialysis_order.id == 0) {
256
         ParamsQuery["nurse"] = this.form.nurse_id;
256
         ParamsQuery["nurse"] = this.form.nurse_id;
257
         ParamsQuery["end_time"] = this.end_time;
257
         ParamsQuery["end_time"] = this.end_time;
258
         ParamsQuery["mode"] = "2"
258
         ParamsQuery["mode"] = "2"
259
-        ParamsQuery["puncture_point_haematoma"] = paseInt(this.form.puncture_point_haematoma)
259
+        ParamsQuery["puncture_point_haematoma"] = parseInt(this.form.puncture_point_haematoma)
260
         ParamsQuery["internal_fistula"] = this.form.internal_fistula
260
         ParamsQuery["internal_fistula"] = this.form.internal_fistula
261
         ParamsQuery["catheter"] = this.form.catheter
261
         ParamsQuery["catheter"] = this.form.catheter
262
         ParamsQuery["cruor"] = this.form.cruor
262
         ParamsQuery["cruor"] = this.form.cruor
364
             this.InnerDialogProps.selected = this.form.cruor
364
             this.InnerDialogProps.selected = this.form.cruor
365
             this.InnerDialogProps.isShowTextArea = false
365
             this.InnerDialogProps.isShowTextArea = false
366
             break
366
             break
367
-          
367
+
368
         }
368
         }
369
       },
369
       },
370
       innerDialogComfirm: function(val) {
370
       innerDialogComfirm: function(val) {
383
       },
383
       },
384
       innerDialogCancle: function() {
384
       innerDialogCancle: function() {
385
         this.InnerDialogProps.visibility = false
385
         this.InnerDialogProps.visibility = false
386
-      }, 
386
+      },
387
     }
387
     }
388
   }
388
   }
389
 </script>
389
 </script>

+ 10 - 3
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

1389
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1389
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1390
             </el-form-item>
1390
             </el-form-item>
1391
           </el-col>
1391
           </el-col>
1392
-         
1392
+
1393
           <el-col :span="8" v-if="isShow('累计血容量') && template_id  != 41">
1393
           <el-col :span="8" v-if="isShow('累计血容量') && template_id  != 41">
1394
             <el-form-item label="累计血容量(ml):">
1394
             <el-form-item label="累计血容量(ml):">
1395
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1395
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1553
 
1553
 
1554
       <div slot="footer" class="dialog-footer" v-show="edit">
1554
       <div slot="footer" class="dialog-footer" v-show="edit">
1555
         <el-button @click="cancelEditAction">取 消</el-button>
1555
         <el-button @click="cancelEditAction">取 消</el-button>
1556
-        <el-button type="primary" @click="submitAction">保 存</el-button>
1556
+        <el-button :loading="loading" type="primary"  @click="submitAction">保 存</el-button>
1557
       </div>
1557
       </div>
1558
       <!--</div>-->
1558
       <!--</div>-->
1559
     </el-dialog>
1559
     </el-dialog>
1576
   name: "MonitorDialog",
1576
   name: "MonitorDialog",
1577
   data() {
1577
   data() {
1578
     return {
1578
     return {
1579
+      loading: false,
1579
       is_has_create: true,
1580
       is_has_create: true,
1580
       is_has_modify: true,
1581
       is_has_modify: true,
1581
       is_has_modify_other: true,
1582
       is_has_modify_other: true,
1685
     // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
1686
     // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
1686
     this.form.operate_time = new Date().getTime();
1687
     this.form.operate_time = new Date().getTime();
1687
     var symptoms = getDataConfig("hemodialysis", "symptoms");
1688
     var symptoms = getDataConfig("hemodialysis", "symptoms");
1688
-    
1689
+
1689
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1690
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1690
     //console.log("抗凝剂",this.anticoagulantsConfit)
1691
     //console.log("抗凝剂",this.anticoagulantsConfit)
1691
     this.bloodPressureMmonitoringSite = getDataConfig(
1692
     this.bloodPressureMmonitoringSite = getDataConfig(
1803
     },
1804
     },
1804
 
1805
 
1805
     newRecordAction: function () {
1806
     newRecordAction: function () {
1807
+      console.log("111111111")
1806
       this.setEditMonitor(null);
1808
       this.setEditMonitor(null);
1807
       this.$refs.table.setCurrentRow(null);
1809
       this.$refs.table.setCurrentRow(null);
1808
       console.log(this.dispose_options,'oop')
1810
       console.log(this.dispose_options,'oop')
1953
         return;
1955
         return;
1954
       }
1956
       }
1955
       this.creator = this.table_current_row.creator;
1957
       this.creator = this.table_current_row.creator;
1958
+      console.log("22222222222")
1956
       this.setEditMonitor(this.table_current_row);
1959
       this.setEditMonitor(this.table_current_row);
1957
       this.$refs.table.setCurrentRow(null);
1960
       this.$refs.table.setCurrentRow(null);
1958
       this.edit = true;
1961
       this.edit = true;
1959
       this.isAdd = false;
1962
       this.isAdd = false;
1960
     },
1963
     },
1961
     cancelEditAction: function () {
1964
     cancelEditAction: function () {
1965
+      console.log("3333333333")
1962
       this.setEditMonitor(null);
1966
       this.setEditMonitor(null);
1963
       this.$refs.table.setCurrentRow(null);
1967
       this.$refs.table.setCurrentRow(null);
1964
       this.edit = false;
1968
       this.edit = false;
2127
 
2131
 
2128
     submitAction: function () {
2132
     submitAction: function () {
2129
       // TODO loading
2133
       // TODO loading
2134
+      this.loading = true
2135
+      console.log("aaaa")
2130
       var is_new = this.form.id;
2136
       var is_new = this.form.id;
2131
       this.form.operate_time = parseInt(this.form.operate_time / 1000);
2137
       this.form.operate_time = parseInt(this.form.operate_time / 1000);
2132
       this.form.systolic_bp =
2138
       this.form.systolic_bp =
2419
           }
2425
           }
2420
         }
2426
         }
2421
       );
2427
       );
2428
+      this.loading = false
2422
     },
2429
     },
2423
 
2430
 
2424
     symptomTextareaBlur: function () {
2431
     symptomTextareaBlur: function () {

+ 3 - 3
src/xt_pages/dialysis/schedualPatient.vue 查看文件

87
           <div v-if="zone_schedule.schedules.length > 0 && patientStateVal != 1" style="font-size:16px;font-weight: bold;color: #34495e;margin-right:10px;line-height:30px;">{{zone_schedule.zone_name}}</div>
87
           <div v-if="zone_schedule.schedules.length > 0 && patientStateVal != 1" style="font-size:16px;font-weight: bold;color: #34495e;margin-right:10px;line-height:30px;">{{zone_schedule.zone_name}}</div>
88
           <patient-box :schedules="zone_schedule.schedules" :patientStateVal='patientStateVal' :selected_date="selected_date" style="flex:1"></patient-box>
88
           <patient-box :schedules="zone_schedule.schedules" :patientStateVal='patientStateVal' :selected_date="selected_date" style="flex:1"></patient-box>
89
         </div>
89
         </div>
90
-        
90
+
91
         <div class="NoData" v-show="filtedSchedules.length == 0">
91
         <div class="NoData" v-show="filtedSchedules.length == 0">
92
           <img src="@/assets/img/data.jpg" alt="">
92
           <img src="@/assets/img/data.jpg" alt="">
93
         </div>
93
         </div>
392
         this.websocket.onmessage = e => {
392
         this.websocket.onmessage = e => {
393
           let res = JSON.parse(e.data);
393
           let res = JSON.parse(e.data);
394
           // let res = re.data;
394
           // let res = re.data;
395
-          console.log('res3333333333',res)
395
+          console.log('res333adasda3333333',res)
396
           if(res.channel == 'queue/join'){
396
           if(res.channel == 'queue/join'){
397
             let timeType = null
397
             let timeType = null
398
             if(this.schedule_type_selected == 1){
398
             if(this.schedule_type_selected == 1){
423
                 }
423
                 }
424
             }
424
             }
425
             this.fisrtQueueInfo = fisrtQueueInfo
425
             this.fisrtQueueInfo = fisrtQueueInfo
426
-            
426
+
427
             // this.fisrtQueueInfo = res.data.fisrtQueueInfo
427
             // this.fisrtQueueInfo = res.data.fisrtQueueInfo
428
             let arr = res.data.patientQueueList.data
428
             let arr = res.data.patientQueueList.data
429
             let waitingCalledArr = []
429
             let waitingCalledArr = []

+ 6 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

365
                   <el-input style="width:50%;" @input="searchProjectAction"
365
                   <el-input style="width:50%;" @input="searchProjectAction"
366
                             @keyup.enter.native='searchProjectAction'
366
                             @keyup.enter.native='searchProjectAction'
367
                             v-model.trim="search_project_keyword"
367
                             v-model.trim="search_project_keyword"
368
-                            placeholder="请输入项目名称"></el-input>
368
+                            placeholder="请输入项目名称"></el-input><!--住院工作站-->
369
 
369
 
370
                   <el-select style="float: right;width: 49%;" v-model="value" placeholder=""
370
                   <el-select style="float: right;width: 49%;" v-model="value" placeholder=""
371
                              @change="changeClass">
371
                              @change="changeClass">
667
   methods: {
667
   methods: {
668
 
668
 
669
     changeClass(id) {
669
     changeClass(id) {
670
+      console.log("asdaff,id",id)
671
+      console.log("asdaff,this.value",this.value)
672
+      console.log("asdaff,this.allProject",this.allProject)
670
       this.tabProject = []
673
       this.tabProject = []
671
       if (id == 0) {
674
       if (id == 0) {
672
         this.tabProject = this.allProject
675
         this.tabProject = this.allProject
673
       } else {
676
       } else {
674
         for (let i = 0; i < this.allProject.length; i++) {
677
         for (let i = 0; i < this.allProject.length; i++) {
675
-          if (this.allProject[i].cost_classify == id) {
678
+          if (this.allProject[i].project.cost_classify == id) {
676
             this.tabProject.push(this.allProject[i])
679
             this.tabProject.push(this.allProject[i])
677
           }
680
           }
678
         }
681
         }
679
       }
682
       }
683
+
680
     },
684
     },
681
     setMonthPrescription(month_prescriptions) {
685
     setMonthPrescription(month_prescriptions) {
682
       console.log('~~~~~~~~')
686
       console.log('~~~~~~~~')

+ 4 - 4
src/xt_pages/hospitalStation/components/prescriptionTable.vue 查看文件

471
               this.$message.error(scope.row.drug_name + '库存不足')
471
               this.$message.error(scope.row.drug_name + '库存不足')
472
             }
472
             }
473
           }
473
           }
474
-         
474
+
475
         } else {
475
         } else {
476
           if(scope.row.drug.is_user!=1){
476
           if(scope.row.drug.is_user!=1){
477
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
477
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
478
               this.$message.error(scope.row.drug_name + '库存不足')
478
               this.$message.error(scope.row.drug_name + '库存不足')
479
             }
479
             }
480
           }
480
           }
481
-        
481
+
482
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
482
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
483
         }
483
         }
484
 
484
 
521
               this.$message.error(scope.row.drug_name + '库存不足')
521
               this.$message.error(scope.row.drug_name + '库存不足')
522
            }
522
            }
523
           }
523
           }
524
-        
524
+
525
         } else {
525
         } else {
526
           if(scope.row.drug.is_user!=1){
526
           if(scope.row.drug.is_user!=1){
527
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
527
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
528
               this.$message.error(scope.row.drug_name + '库存不足')
528
               this.$message.error(scope.row.drug_name + '库存不足')
529
             }
529
             }
530
           }
530
           }
531
-         
531
+
532
         }
532
         }
533
       },
533
       },
534
       getProjectSingleDose(scope) {
534
       getProjectSingleDose(scope) {

+ 19 - 14
src/xt_pages/management/components/RepairForm.vue 查看文件

35
         ></el-date-picker>
35
         ></el-date-picker>
36
       </el-col>
36
       </el-col>
37
       <el-col :span="2">
37
       <el-col :span="2">
38
-        <el-button @click="queryRepair()">查询</el-button>
38
+        <el-button style="background-color:#409eff;color: #DCDFE6" @click="queryRepair()">查询</el-button>
39
       </el-col>
39
       </el-col>
40
     </el-row>
40
     </el-row>
41
     <el-row style="display: flex;align-items: center;">
41
     <el-row style="display: flex;align-items: center;">
406
         </el-row>
406
         </el-row>
407
       </el-form>
407
       </el-form>
408
       <span slot="footer" class="dialog-footer">
408
       <span slot="footer" class="dialog-footer">
409
+<!--        <button @click="lili">调试</button>-->
409
         <el-button @click="dialogVisible = false">取 消</el-button>
410
         <el-button @click="dialogVisible = false">取 消</el-button>
410
         <el-button type="primary" @click="UpdateRepair('guaForm')"
411
         <el-button type="primary" @click="UpdateRepair('guaForm')"
411
           >保存</el-button
412
           >保存</el-button
482
       limit: 10,
483
       limit: 10,
483
       page: 1,
484
       page: 1,
484
       total: 0,
485
       total: 0,
485
-      filename: ""
486
     };
486
     };
487
   },
487
   },
488
   methods: {
488
   methods: {
489
+    lili(){
490
+      console.log("this.guaForm",this.guaForm)
491
+    },
489
     changeCheck() {
492
     changeCheck() {
490
       this.$refs.multipleTable.clearSelection();
493
       this.$refs.multipleTable.clearSelection();
491
       if (this.checkAllStatus) {
494
       if (this.checkAllStatus) {
655
       window.location.href = this.guaForm.images;
658
       window.location.href = this.guaForm.images;
656
     },
659
     },
657
     UpdateRepair(formName) {
660
     UpdateRepair(formName) {
661
+      console.log("formName",formName)
662
+      console.log("this.guaForm",this.guaForm)
658
       this.$refs[formName].validate(valid => {
663
       this.$refs[formName].validate(valid => {
659
-        this.guaForm.start_time = uParseTime(
660
-          this.guaForm.start_time,
661
-          "{y}-{m}-{d} {h}:{i}"
662
-        );
663
-        this.guaForm.arrive_time = uParseTime(
664
-          this.guaForm.arrive_time,
665
-          "{y}-{m}-{d} {h}:{i}"
666
-        );
667
-        this.guaForm.finish_time = uParseTime(
668
-          this.guaForm.finish_time,
669
-          "{y}-{m}-{d} {h}:{i}"
670
-        );
664
+        // this.guaForm.start_time = uParseTime(
665
+        //   this.guaForm.start_time,
666
+        //   "{y}-{m}-{d} {h}:{i}"
667
+        // );
668
+        // this.guaForm.arrive_time = uParseTime(
669
+        //   this.guaForm.arrive_time,
670
+        //   "{y}-{m}-{d} {h}:{i}"
671
+        // );
672
+        // this.guaForm.finish_time = uParseTime(
673
+        //   this.guaForm.finish_time,
674
+        //   "{y}-{m}-{d} {h}:{i}"
675
+        // );
671
 
676
 
672
         if (this.guaForm.failure_stage === "") {
677
         if (this.guaForm.failure_stage === "") {
673
           this.guaForm.failure_stage = 0;
678
           this.guaForm.failure_stage = 0;

+ 724 - 0
src/xt_pages/outpatientDoctorStation/batch_delete.vue 查看文件

1
+<template>
2
+  <!--批量删除-->
3
+  <div class="main-contain">
4
+    <div class="app-container">
5
+      <div class="bannar_list">
6
+        <div class="banner_left">
7
+          <div>
8
+            透析模式:
9
+            <el-select
10
+              v-model="modeOptions_value"
11
+              placeholder="请选择"
12
+              @change="getUsername"
13
+            >
14
+              <el-option
15
+                v-for="item in modeOptions"
16
+                :key="item.id"
17
+                :label="item.name"
18
+                :value="item.id"
19
+              >
20
+              </el-option>
21
+            </el-select>
22
+          </div>
23
+          <div>
24
+            删除类型:
25
+            <el-select v-model="new_type" placeholder="请选择" @change="changetype">
26
+              <el-option
27
+                v-for="item in options"
28
+                :key="item.id"
29
+                :label="item.name"
30
+                :value="item.id"
31
+              >
32
+              </el-option>
33
+            </el-select>
34
+          </div>
35
+          <div v-if="new_type == 1">
36
+            请输入需要删除的药品:
37
+            <el-select
38
+              filterable
39
+              v-model="id"
40
+              placeholder="请选择"
41
+              @change="getUsername"
42
+            >
43
+              <el-option
44
+                v-for="item in druglist"
45
+                :key="item.id"
46
+                :label="item.name"
47
+                :value="item.id"
48
+              >
49
+              </el-option>
50
+            </el-select>
51
+          </div>
52
+          <div v-if="new_type == 2">
53
+            请输入需要删除的项目:
54
+            <el-select
55
+              filterable
56
+              v-model="id"
57
+              placeholder="请选择"
58
+              @change="getUsername"
59
+            >
60
+              <el-option
61
+                v-for="item in projectlist"
62
+                :key="item.id"
63
+                :label="item.name"
64
+                :value="item.id"
65
+              >
66
+              </el-option>
67
+            </el-select>
68
+          </div>
69
+        </div>
70
+
71
+<!--        <button @click="lili">调试</button>-->
72
+        <el-button type="primary" @click="save">保存</el-button>
73
+      </div>
74
+
75
+      <el-container>
76
+        <div style="width: 211px">
77
+          <el-table
78
+            border
79
+            ref="multipleTable"
80
+            :data="tableData"
81
+            tooltip-effect="dark"
82
+            style="width: 100%"
83
+            @selection-change="handleSelectionChange"
84
+            @current-change="test"
85
+            :row-style="{ color: '#303133' }"
86
+            :header-cell-style="{
87
+              backgroundColor: 'rgb(245, 247, 250)',
88
+              color: '#606266',
89
+            }"
90
+          >
91
+            <el-table-column type="selection" width="55"> </el-table-column>
92
+            <el-table-column label="患者姓名" width="155">
93
+              <template slot-scope="scope" >{{ scope.row.name }}</template>
94
+            </el-table-column>
95
+          </el-table>
96
+        </div>
97
+
98
+        <el-tabs type="border-card" v-if="isshow == 1 && list.length > 0">
99
+          <el-tab-pane
100
+            v-for="(item,index) in list"
101
+            :key="index"
102
+            :label="'处方'+(index+1)"
103
+            :name="index"
104
+          >
105
+            <el-table
106
+              v-if="item.advices.length > 0"
107
+              :data="item.advices"
108
+              style="width: 100%"
109
+              max-height="250"
110
+              border
111
+              :row-style="{ color: '#303133' }"
112
+              :header-cell-style="{
113
+                backgroundColor: 'rgb(245, 247, 250)',
114
+                color: '#606266',
115
+              }"
116
+            >
117
+              <el-table-column fixed label="药品名称" width="230">
118
+                <template slot-scope="scope">
119
+                  {{scope.row.advice_name}}
120
+                </template>
121
+              </el-table-column>
122
+              <el-table-column label="单次用量" width="200">
123
+                <template slot-scope="scope">
124
+                  {{scope.row.single_dose}}{{scope.row.single_dose_unit}}
125
+                </template>
126
+              </el-table-column>
127
+              <el-table-column label="用法" width="120">
128
+                <template slot-scope="scope">
129
+                  {{scope.row.delivery_way}}
130
+                </template>
131
+              </el-table-column>
132
+              <el-table-column label="频率" width="120">
133
+                <template slot-scope="scope">
134
+                  {{scope.row.execution_frequency}}
135
+                </template>
136
+              </el-table-column>
137
+              <el-table-column label="天数" width="110">
138
+                <template slot-scope="scope">
139
+                  {{scope.row.day}}天
140
+                </template>
141
+              </el-table-column>
142
+              <el-table-column label="总量" width="200">
143
+                <template slot-scope="scope">
144
+                  {{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}
145
+                </template>
146
+              </el-table-column>
147
+              <el-table-column label="单价" width="120">
148
+                <template slot-scope="scope">
149
+                  {{ scope.row.price }}元
150
+                </template>
151
+              </el-table-column>
152
+              <el-table-column label="备注" width="120">
153
+                <template slot-scope="scope">
154
+                  {{ scope.row.remark }}
155
+                </template>
156
+              </el-table-column>
157
+              <el-table-column label="操作" width="120">
158
+                <template slot-scope="scope">
159
+                  <el-button
160
+                    @click.native.prevent="delects(scope.$index,scope,item)"
161
+                    type="text"
162
+                    size="small">
163
+                    删除
164
+                  </el-button>
165
+                </template>
166
+              </el-table-column>
167
+            </el-table>
168
+
169
+            <el-table
170
+              v-if="item.project.length > 0"
171
+              :data="item.project"
172
+              style="width: 100%"
173
+              max-height="250"
174
+              border
175
+              :row-style="{ color: '#303133' }"
176
+              :header-cell-style="{
177
+                backgroundColor: 'rgb(245, 247, 250)',
178
+                color: '#606266',
179
+              }"
180
+            >
181
+              <el-table-column fixed label="项目名称" width="230">
182
+                <template slot-scope="scope">
183
+                  <div v-if="scope.row.type == 2">{{scope.row.project.project_name}}</div>
184
+                  <div v-if="scope.row.type == 3">{{scope.row.good_info.good_name}}</div>
185
+                </template>
186
+              </el-table-column>
187
+              <el-table-column label="组" width="120">
188
+                <template slot-scope="scope">
189
+                  <div v-if="scope.row.type == 2">{{scope.row.project.translate}}</div>
190
+                  <div v-if="scope.row.type == 3">{{scope.row.good_info.translate}}</div>
191
+                </template>
192
+              </el-table-column>
193
+              <el-table-column label="单次用量" width="120">
194
+                <template slot-scope="scope">
195
+                  {{scope.row.single_dose}}
196
+                  {{ scope.row.unit }}
197
+                </template>
198
+              </el-table-column>
199
+              <el-table-column label="用法" width="120">
200
+                <template slot-scope="scope">
201
+                  {{scope.row.delivery_way}}
202
+                </template>
203
+              </el-table-column>
204
+              <el-table-column label="频率" width="120">
205
+                <template slot-scope="scope">
206
+                  {{scope.row.execution_frequency}}
207
+                </template>
208
+              </el-table-column>
209
+              <el-table-column label="天数" width="110">
210
+                <template slot-scope="scope">
211
+                  {{scope.row.day}}天
212
+                </template>
213
+              </el-table-column>
214
+              <el-table-column label="总量" width="100">
215
+                <template slot-scope="scope">
216
+                  {{scope.row.count}}
217
+                  {{ scope.row.unit }}
218
+                </template>
219
+              </el-table-column>
220
+              <el-table-column label="单价" width="120">
221
+                <template slot-scope="scope">
222
+                  {{scope.row.price}}元
223
+                </template>
224
+              </el-table-column>
225
+              <el-table-column label="备注" width="120">
226
+                <template slot-scope="scope">
227
+                  {{scope.row.remark}}
228
+                </template>
229
+              </el-table-column>
230
+              <el-table-column label="推送频率" width="120">
231
+                <template slot-scope="scope">
232
+                  <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>
233
+                  <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>
234
+                  <div v-if="scope.row.frequency_type == 3">{{scope.row.week_days}}</div>
235
+                </template>
236
+              </el-table-column>
237
+              <el-table-column fixed="right" label="操作" width="102">
238
+                <template slot-scope="scope">
239
+                  <el-button
240
+                    @click.native.prevent="delects(scope.$index,scope,item)"
241
+                    type="text"
242
+                    size="small">
243
+                    删除
244
+                  </el-button>
245
+                </template>
246
+              </el-table-column>
247
+            </el-table>
248
+          </el-tab-pane>
249
+        </el-tabs>
250
+      </el-container>
251
+    </div>
252
+  </div>
253
+</template>
254
+<script>
255
+import { gethisusertoalive } from "@/api/deposit";
256
+import {
257
+  getdrugsinformation,
258
+  replacepeoplename,
259
+  replaceconfig,
260
+  deletedrugsbatch,
261
+  batchdeleteitems,
262
+  getmodeconfigs,
263
+  ptemplateinformation,
264
+  deleteone,
265
+} from "@/api/batch/batch";
266
+
267
+export default {
268
+  data() {
269
+    return {
270
+      dialogVisible: false,
271
+      tableList: [],
272
+      editableTabsValue: "1",
273
+      modeOptions: {},
274
+      tableDatas:[{
275
+        id: "",
276
+        drug_name: "",
277
+        single_dose: "",
278
+        single_dose_unit: "",
279
+        delivery_way: "",
280
+        execution_frequency: "",
281
+        day: "",
282
+        prescribing_number: "",
283
+        prescribing_number_unit: "",
284
+        price: "",
285
+        remark: "",
286
+      },],//药品
287
+      project:[ {
288
+        id: "",
289
+        drug_name: "",
290
+        translate:"",
291
+        single_dose: "",
292
+        unit: "",
293
+        delivery_way: "",
294
+        execution_frequency: "",
295
+        day: "",
296
+        prescribing_number: "",
297
+        price: "",
298
+        remark: "",
299
+        frequency_type:1,
300
+        day_count:"",
301
+        week_days:"",
302
+      },],//项目
303
+      tabIndex: 2,
304
+      modeOptions_value: 1, //透析模式
305
+      multipleSelection: [],//选中的患者
306
+      tableData:[],
307
+      options:[{id:1,name:"药品"},{id:2,name:"项目"}],
308
+      options_patient:[{id:1,name:"是"},{id:2,name:"否"}],
309
+      options_2:[{id:1,name:"普通门诊"},{id:2,name:"门诊特殊病"}],
310
+      new_type:1,//新增类型
311
+      druglist:[],//药品列表
312
+      projectlist:[],//项目列表
313
+      id:"",//药品、项目、耗材
314
+      tmplist:[],//临时
315
+      unit:[{id:1,name:"g"},{id:2,name:"mg"},{id:3,name:"u"},{id:4,name:"ml"},{id:5,name:"万U"},{id:6,name:"枚"},{id:7,name:"粒"},
316
+        {id:8,name:"片"},{id:9,name:"支"},{id:10,name:"μg"},{id:11,name:"iu"},{id:12,name:"包"},{id:13,name:"袋"},{id:14,name:"万"},
317
+        {id:15,name:"万iu"},{id:16,name:"丸"},{id:17,name:"盒"},{id:18,name:"瓶"},{id:19,name:"瓶(袋)"},{id:20,name:"次"}],
318
+      usage:[],//用法
319
+      frequency:[],//频率
320
+      frequency_type:"",//周期提醒
321
+      day_count:"",//周期提醒天
322
+      week_days:[],//周期提醒星期
323
+      tabhang:0,//tab的下标
324
+      hang:0,//行数
325
+      list:[],
326
+      isshow:0,//是否显示处方
327
+      tmpid:0,
328
+
329
+    }
330
+  },
331
+  created() {
332
+    // console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
333
+    for (let key in this.$store.getters.treatment_mode) {
334
+      this.modeOptions[key] = this.$store.getters.treatment_mode[key]
335
+    }
336
+    // console.log("this.modeOptions",this.modeOptions)
337
+    this.getdrugconfigs();
338
+    this.isshow = 0
339
+    this.tmpid = 0;
340
+  },
341
+  methods: {
342
+    save() {
343
+      var tmp = this.modeOptions[this.modeOptions_value].name
344
+      var tmp2 = ""
345
+      if (this.druglist != null){
346
+        for(let i = 0;i < this.druglist.length;i++){
347
+          if (this.id == this.druglist[i].id){
348
+            tmp2 = this.druglist[i].name
349
+          }
350
+        }
351
+      }
352
+      if(this.projectlist != null){
353
+        for (let j = 0;j < this.projectlist.length;j++){
354
+          if (this.id == this.projectlist[j].id){
355
+            tmp2 = this.projectlist[j].name
356
+          }
357
+        }
358
+      }
359
+      this.$confirm(
360
+        "请确定是否删除?",//注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"进行删除,
361
+        "",
362
+        {
363
+          confirmButtonText: "确 定",
364
+          cancelButtonText: "取 消",
365
+          type: "warning",
366
+        }
367
+      ).then(() => {
368
+        if (this.multipleSelection.length == 0){
369
+          this.$message.error('没有选中有效信息')
370
+          return
371
+        }
372
+        let st = ""
373
+        for (let i = 0;i < this.multipleSelection.length;i++){
374
+          st = st + this.multipleSelection[i].id + ","
375
+        }
376
+        console.log("string",st)
377
+        let params = {
378
+          mode_id:this.modeOptions_value,
379
+          patient_id: st,
380
+          type:this.new_type,
381
+          replaced: this.id,
382
+        }
383
+        if (this.new_type == 1){
384
+          deletedrugsbatch(params).then((res) =>{
385
+            if (res.data.state == 1){
386
+              this.$message.success('删除成功')
387
+              this.getUsername()
388
+            }else{
389
+              this.$message.error(res.data.msg)
390
+            }
391
+          })
392
+        }else{
393
+          batchdeleteitems(params).then((res) =>{
394
+            if (res.data.state == 1){
395
+              this.$message.success('删除成功')
396
+              this.getUsername()
397
+            }else{
398
+              this.$message.error(res.data.msg)
399
+            }
400
+          })
401
+        }
402
+      });
403
+    },
404
+    test(val){
405
+      console.log("val?:",val);
406
+      this.tmpid = val.id
407
+      var params = {
408
+        mode_id:this.modeOptions_value,
409
+        patient_id:val.id,
410
+      }
411
+      ptemplateinformation(params).then((res) =>{
412
+        if (res.data.state == 1){
413
+          this.list = res.data.data.list
414
+          this.isshow = 1
415
+        }
416
+      })
417
+    },
418
+    lili() {
419
+      console.log("this.list",this.list);
420
+      console.log("this.multipleSelection",this.multipleSelection)
421
+      // console.log("this.mode",this.modeOptions_value)
422
+      // console.log("this.projectlist2",this.projectlist2)
423
+      // console.log("patient_value",this.patient_value)
424
+    },
425
+    delects(hang,sc,item){
426
+      this.$confirm('删除后不可恢复,是否确认删除?', '删除', {
427
+        confirmButtonText: '确定',
428
+        cancelButtonText: '取消',
429
+        type: 'warning'
430
+      }).then(() => {
431
+        var params ={
432
+          type:item.type,//1药品2项目
433
+          id:sc.row.id,
434
+        }
435
+        var params2 = {
436
+          mode_id:this.modeOptions_value,
437
+          patient_id:this.tmpid,
438
+        }
439
+        deleteone(params).then((res) =>{
440
+          if (res.data.state == 1){
441
+            this.$message.success('删除成功')
442
+            ptemplateinformation(params2).then((res) =>{
443
+              if (res.data.state == 1){
444
+                this.list = res.data.data.list
445
+                this.isshow = 1
446
+              }
447
+            })
448
+          }
449
+        })
450
+      }).catch(() => {
451
+        this.$message({
452
+          type: 'info',
453
+          message: '已取消删除'
454
+        });
455
+      });
456
+      // console.log("hang",hang)
457
+      // console.log("sc",sc)
458
+      // console.log("item",item)
459
+
460
+
461
+    },
462
+    changetype(){
463
+      console.log(">>>>>>>",this.new_type)
464
+      this.id = ""
465
+      this.tableData = []
466
+    },
467
+    changeid(item,index){
468
+      item.id = item.drug_name
469
+      var params = {
470
+        id:item.id
471
+      }
472
+      getdrugsinformation(params).then((res) =>{
473
+        if (res.data.state == 1){
474
+          console.log("res??",res)
475
+          this.tableDatas[0].single_dose = res.data.data.list[0].single_dose;
476
+          this.tableDatas[0].single_dose_unit = res.data.data.list[0].single_dose_unit;
477
+          this.tableDatas[0].delivery_way = res.data.data.list[0].delivery_way;
478
+          this.tableDatas[0].execution_frequency = res.data.data.list[0].execution_frequency;
479
+          this.tableDatas[0].day = res.data.data.list[0].drug_day;
480
+          this.tableDatas[0].prescribing_number = res.data.data.list[0].prescribing_number;
481
+          this.tableDatas[0].prescribing_number_unit = res.data.data.list[0].prescribing_number_unit;
482
+          this.tableDatas[0].price = res.data.data.list[0].retail_price;
483
+          this.tableDatas[0].remark = res.data.data.list[0].remark;
484
+        }
485
+      });
486
+    },
487
+    handleSelectionChange(val) {
488
+      this.multipleSelection = val;
489
+    },
490
+    changeid2(item,index){
491
+      item.id = item.drug_name
492
+      var params = {
493
+        id:item.id
494
+      }
495
+      getdrugsinformation(params).then((res) =>{
496
+        if (res.data.state == 1){
497
+          console.log("res??",res)
498
+          this.project[0].single_dose = res.data.data.list[0].single_dose;
499
+          this.project[0].translate = res.data.data.list[0].translate;
500
+          this.project[0].delivery_way = res.data.data.list[0].delivery_way;
501
+          this.project[0].execution_frequency = res.data.data.list[0].execution_frequency;
502
+          this.project[0].day = res.data.data.list[0].day;
503
+          this.project[0].prescribing_number = res.data.data.list[0].prescribing_number;
504
+          this.project[0].unit = res.data.data.list[0].unit;
505
+          this.project[0].price = res.data.data.list[0].retail_price;
506
+          this.project[0].remark = res.data.data.list[0].remark;
507
+        }
508
+      });
509
+    },
510
+    //获取配置
511
+    getdrugconfigs(){
512
+      var params = {}
513
+      replaceconfig(params).then((res) =>{
514
+        if (res.data.state == 1){
515
+          this.druglist = res.data.data.list
516
+          this.projectlist = res.data.data.list2
517
+        }
518
+      })
519
+      getmodeconfigs(params).then((res) =>{
520
+        if (res.data.state == 1){
521
+          this.frequency = res.data.data.efs
522
+          this.usage = res.data.data.drugways
523
+        }
524
+      })
525
+    },
526
+    getUsername(){
527
+      var params = {
528
+        id: this.id,
529
+        mode: this.modeOptions_value
530
+      }
531
+      replacepeoplename(params).then((res) =>{
532
+        if (res.data.state == 1){
533
+          this.tableData = res.data.data.list
534
+        }
535
+      })
536
+    },
537
+    handleClose(done) {
538
+      this.$confirm('确认关闭?')
539
+        .then(_ => {
540
+          done();
541
+        })
542
+        .catch(_ => {});
543
+    }
544
+  }
545
+
546
+}
547
+</script>
548
+
549
+
550
+
551
+<style lang="scss" scoped>
552
+.bannar_list {
553
+  margin-bottom: 10px;
554
+  display: flex;
555
+  justify-content: space-between;
556
+  .banner_left {
557
+    width: 1000px;
558
+    display: flex;
559
+    justify-content: space-around;
560
+    div {
561
+      font-size: 14px;
562
+      color: #606266;
563
+      white-space: nowrap;
564
+    }
565
+  }
566
+}
567
+.zone {
568
+//  margin-left: 30px;
569
+//  text-align: left;
570
+  width: 70px;
571
+  display: inline-block;
572
+  color: #606266;
573
+}
574
+.disinfect {
575
+  position: relative;
576
+  .newButton {
577
+    // position: absolute;
578
+    // right: 2%;
579
+    // top:4px;
580
+    // z-index: 9;
581
+    margin-bottom: 10px;
582
+    margin-left: 90%;
583
+  }
584
+}
585
+.disinfectOne {
586
+  position: relative;
587
+  .newButtonOne {
588
+    position: absolute;
589
+    right: 0;
590
+    top: -10;
591
+    z-index: 18;
592
+  }
593
+}
594
+.but {
595
+  width: 200px;
596
+  height: 50px;
597
+  // border: solid 1px red;
598
+  margin-left: 77%;
599
+}
600
+.clearn {
601
+  width: 460px;
602
+  height: 50px;
603
+  // border:solid 1px red;
604
+  margin-left: 650px;
605
+}
606
+
607
+.zClass {
608
+  width: 200px;
609
+  height: 200px;
610
+  // border:solid 1px red;
611
+  margin-left: 450px;
612
+  margin-top: 200px;
613
+}
614
+.warn {
615
+  color: red;
616
+  font-size: 14px;
617
+  width: 100%;
618
+  display: inline-block;
619
+  margin-left: 96px;
620
+}
621
+
622
+.userbutton {
623
+  margin-bottom: 10px;
624
+  margin-left: 82%;
625
+}
626
+</style>
627
+<style lang="scss" >
628
+.a {
629
+  margin-bottom: 10px;
630
+  margin-top: 6px;
631
+}
632
+
633
+.b {
634
+  .el-button {
635
+    margin-left: 90%;
636
+    margin-bottom: 10px;
637
+  }
638
+}
639
+
640
+.stoppage {
641
+  .el-form-item__label {
642
+    width: 190px;
643
+  }
644
+}
645
+.st {
646
+  .el-form-item__label {
647
+    width: -10px;
648
+  }
649
+}
650
+.main {
651
+  position: relative;
652
+  .newButtonOne {
653
+    position: absolute;
654
+    right: 0;
655
+    z-index: 2;
656
+  }
657
+}
658
+
659
+.elbutton {
660
+  // border: solid 1px red;
661
+  height: 50px;
662
+  width: 400px;
663
+  margin-left: 650px;
664
+}
665
+// .el-form-item__label {
666
+//   width: 130px;
667
+//   font-size: 14px;
668
+// }
669
+.el-form-item__error {
670
+  margin-left: 130px;
671
+}
672
+
673
+.el-upload-list__item-name {
674
+  color: #606266;
675
+  display: block;
676
+  margin-right: 40px;
677
+  overflow: hidden;
678
+  padding-left: 4px;
679
+  text-overflow: ellipsis;
680
+  transition: color 0.3s;
681
+  white-space: nowrap;
682
+}
683
+.el-main {
684
+  padding-top: 0px;
685
+}
686
+.newMain {
687
+  .el-form-item__label {
688
+    width: 104px;
689
+  }
690
+}
691
+.newDisinfectOne {
692
+  .el-input--prefix .el-input__inner {
693
+    padding-left: 15px;
694
+  }
695
+}
696
+.stoppage {
697
+  .el-form-item__label {
698
+    width: 18%;
699
+  }
700
+}
701
+.newItem {
702
+  .el-form-item__label {
703
+    width: 130px;
704
+  }
705
+}
706
+.formItem {
707
+  .el-form-item__label {
708
+    width: 104px;
709
+    line-height: 30px;
710
+  }
711
+}
712
+.newname {
713
+  .el-form-item__label {
714
+    width: 60px;
715
+  }
716
+}
717
+::-webkit-scrollbar {
718
+  height: 20px;
719
+}
720
+
721
+.el-table td .cell {
722
+  padding: 0 10px;
723
+}
724
+</style>

文件差异内容过多而无法显示
+ 1240 - 260
src/xt_pages/outpatientDoctorStation/batch_mode_template.vue


文件差异内容过多而无法显示
+ 1275 - 0
src/xt_pages/outpatientDoctorStation/batch_replacement.vue


+ 10 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

667
     methods: {
667
     methods: {
668
 
668
 
669
       changeClass(id) {
669
       changeClass(id) {
670
+        console.log("asdaff,id",id)
671
+        console.log("asdaff,this.value",this.value)
672
+        console.log("asdaff,this.allProject",this.allProject)
670
         this.tabProject = []
673
         this.tabProject = []
671
         if (id == 0) {
674
         if (id == 0) {
672
           this.tabProject = this.allProject
675
           this.tabProject = this.allProject
673
         } else {
676
         } else {
674
           for (let i = 0; i < this.allProject.length; i++) {
677
           for (let i = 0; i < this.allProject.length; i++) {
675
-            if (this.allProject[i].cost_classify == id) {
678
+            if (this.allProject[i].project.cost_classify == id) {
676
               this.tabProject.push(this.allProject[i])
679
               this.tabProject.push(this.allProject[i])
677
             }
680
             }
678
           }
681
           }
1818
       },
1821
       },
1819
 
1822
 
1820
       tabclickEvent(val) {
1823
       tabclickEvent(val) {
1821
-
1824
+        console.log("li3333333333333li")
1822
         for (let i = 0; i < this.prescriptions.length; i++) {
1825
         for (let i = 0; i < this.prescriptions.length; i++) {
1823
           if (this.prescriptions[i].name == val.name) {
1826
           if (this.prescriptions[i].name == val.name) {
1824
             this.prescription_id = this.prescriptions[i].id
1827
             this.prescription_id = this.prescriptions[i].id
2154
       },
2157
       },
2155
 
2158
 
2156
       moreState(tab, event) {
2159
       moreState(tab, event) {
2160
+        console.log("li222222222")
2157
         if (tab == 'more') {
2161
         if (tab == 'more') {
2158
           return false
2162
           return false
2159
         }
2163
         }
2160
-      }, open_three() {
2164
+      },
2165
+      open_three() {
2161
         for (let i = 0; i < this.prescriptions.length; i++) {
2166
         for (let i = 0; i < this.prescriptions.length; i++) {
2162
           for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2167
           for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2163
             if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
2168
             if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
2654
       },
2659
       },
2655
       addTab(targetName) {
2660
       addTab(targetName) {
2656
 
2661
 
2657
-        console.log("this.prescriptions",this.prescriptions)
2662
+        console.log("this.prescriptionsaaaaaa",this.prescriptions)
2658
         for(let i = 0; i < this.prescriptions.length; i++){
2663
         for(let i = 0; i < this.prescriptions.length; i++){
2659
           if (this.prescriptions[i].is_medicine_status) {
2664
           if (this.prescriptions[i].is_medicine_status) {
2660
             this.$message.error('处方中包含已发药处方,无法新增')
2665
             this.$message.error('处方中包含已发药处方,无法新增')
2741
 
2746
 
2742
       },
2747
       },
2743
       removeTab(targetName) {
2748
       removeTab(targetName) {
2744
-
2749
+        console.log("1111111111111111")
2745
         if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 5 || this.curPrescriptions.is_medicine_status) {
2750
         if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 5 || this.curPrescriptions.is_medicine_status) {
2746
           this.$message.error('该处方已经结算或者记账或者已发药,无法删除')
2751
           this.$message.error('该处方已经结算或者记账或者已发药,无法删除')
2747
           return
2752
           return

+ 22 - 13
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue 查看文件

4
         <el-table v-if="prescription.advices && prescription.advices.length > 0" :data="prescription.advices" border
4
         <el-table v-if="prescription.advices && prescription.advices.length > 0" :data="prescription.advices" border
5
                   style="width: 99%;" :row-style="{ color: '#303133' }"
5
                   style="width: 99%;" :row-style="{ color: '#303133' }"
6
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
7
-            <el-table-column align="center" width="70" label="序号">
7
+            <el-table-column align="center" width="50" label="序号">
8
                 <template slot-scope="scope">
8
                 <template slot-scope="scope">
9
                     <div style="display:flex;align-items:center;">
9
                     <div style="display:flex;align-items:center;">
10
                         <el-input v-model="scope.row.groupno" placeholder=""></el-input>
10
                         <el-input v-model="scope.row.groupno" placeholder=""></el-input>
11
                     </div>
11
                     </div>
12
                 </template>
12
                 </template>
13
             </el-table-column>
13
             </el-table-column>
14
-            <el-table-column align="center" prop="drug_name" label="名称">
14
+            <el-table-column align="center" prop="drug_name" label="名称"  width="297" >
15
                 <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span>
15
                 <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span>
16
                 </template>
16
                 </template>
17
             </el-table-column>
17
             </el-table-column>
18
 
18
 
19
-          <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
19
+          <el-table-column align="center" prop="single_dose" width="150" label="单次用量">
20
             <template slot-scope="scope">
20
             <template slot-scope="scope">
21
               <div style="display:flex;align-items:center;">
21
               <div style="display:flex;align-items:center;">
22
                 <el-input v-model="scope.row.single_dose" @input="getAllChange(scope)"
22
                 <el-input v-model="scope.row.single_dose" @input="getAllChange(scope)"
32
               </div>
32
               </div>
33
             </template>
33
             </template>
34
           </el-table-column>
34
           </el-table-column>
35
-            <el-table-column align="center" prop="delivery_way" width="100" label="用法">
35
+            <el-table-column align="center" prop="delivery_way" width="110" label="用法">
36
                 <template slot-scope="scope">
36
                 <template slot-scope="scope">
37
                     <el-select v-model="scope.row.delivery_way" placeholder="请选择">
37
                     <el-select v-model="scope.row.delivery_way" placeholder="请选择">
38
                         <el-option
38
                         <el-option
44
                     </el-select>
44
                     </el-select>
45
                 </template>
45
                 </template>
46
             </el-table-column>
46
             </el-table-column>
47
-            <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
47
+            <el-table-column align="center" prop="execution_frequency" width="110" label="频率">
48
                 <template slot-scope="scope">
48
                 <template slot-scope="scope">
49
                     <el-select v-model="scope.row.execution_frequency" placehold er="请选择" @change="getAllChange(scope)">
49
                     <el-select v-model="scope.row.execution_frequency" placehold er="请选择" @change="getAllChange(scope)">
50
                         <el-option
50
                         <el-option
58
             </el-table-column>
58
             </el-table-column>
59
 
59
 
60
 
60
 
61
-            <el-table-column align="center" prop="day" width="70" label="天数">
61
+            <el-table-column align="center" prop="day" width="90" label="天数">
62
                 <template slot-scope="scope">
62
                 <template slot-scope="scope">
63
                     <div style="display:flex;align-items:center;">
63
                     <div style="display:flex;align-items:center;">
64
                         <el-input v-model="scope.row.day" @input="getAllChange(scope)" placeholder=""></el-input>
64
                         <el-input v-model="scope.row.day" @input="getAllChange(scope)" placeholder=""></el-input>
83
                     </div>
83
                     </div>
84
                 </template>
84
                 </template>
85
             </el-table-column>
85
             </el-table-column>
86
-            <el-table-column align="center" prop="retail_price" width="80" label="单价">
86
+            <el-table-column align="center" prop="retail_price" width="100" label="单价">
87
                 <template slot-scope="scope">
87
                 <template slot-scope="scope">
88
                     <div style="display:flex;align-items:center;">
88
                     <div style="display:flex;align-items:center;">
89
                         <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
89
                         <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
92
 
92
 
93
                 </template>
93
                 </template>
94
             </el-table-column>
94
             </el-table-column>
95
-            <el-table-column align="center" prop="remark" width="50" label="备注">
95
+            <el-table-column align="center" prop="remark" width="100" label="备注">
96
                 <template slot-scope="scope">
96
                 <template slot-scope="scope">
97
                     <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
97
                     <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
98
                 </template>
98
                 </template>
99
             </el-table-column>
99
             </el-table-column>
100
 
100
 
101
-            <el-table-column align="center" prop="remark" width="50" label="推送频率">
101
+            <el-table-column align="center" prop="remark" width="80" label="推送频率">
102
                 <template slot-scope="scope">
102
                 <template slot-scope="scope">
103
                     <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>
103
                     <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>
104
                     <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>
104
                     <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>
108
             </el-table-column>
108
             </el-table-column>
109
 
109
 
110
 
110
 
111
-            <el-table-column align="center" width="100" prop="name" label="操作">
111
+            <el-table-column align="center" width="140" prop="name" label="操作">
112
                 <template slot-scope="scope">
112
                 <template slot-scope="scope">
113
                     <!--<i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>-->
113
                     <!--<i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>-->
114
                     <el-button size="mini" type="primary" @click="handleEdit(scope.row,scope.$index)">推送</el-button>
114
                     <el-button size="mini" type="primary" @click="handleEdit(scope.row,scope.$index)">推送</el-button>
120
         <el-table v-if="prescription.project &&prescription.project.length > 0" :data="prescription.project" border
120
         <el-table v-if="prescription.project &&prescription.project.length > 0" :data="prescription.project" border
121
                   style="width: 99%;" :row-style="{ color: '#303133' }"
121
                   style="width: 99%;" :row-style="{ color: '#303133' }"
122
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
122
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
123
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
123
+            <el-table-column align="center" width="40" label="序号">
124
+              <template slot-scope="scope">
125
+                {{scope.$index+1}}
126
+              </template>
127
+            </el-table-column>
124
             <el-table-column align="center" prop="project_name" label="名称">
128
             <el-table-column align="center" prop="project_name" label="名称">
125
                 <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span>
129
                 <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span>
126
                 </template>
130
                 </template>
136
                         <el-input v-model="scope.row.single_dose" @input="getProjectSingleDose(scope)"
140
                         <el-input v-model="scope.row.single_dose" @input="getProjectSingleDose(scope)"
137
                                   placeholder=""></el-input>
141
                                   placeholder=""></el-input>
138
                         <div>{{scope.row.unit}}</div>
142
                         <div>{{scope.row.unit}}</div>
143
+                      <div v-if="scope.row.unit == ''">{{scope.row.good_info.default_count_unit}}</div>
139
                     </div>
144
                     </div>
140
 
145
 
141
                 </template>
146
                 </template>
170
                     <div style="display:flex;align-items:center;">
175
                     <div style="display:flex;align-items:center;">
171
                         <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
176
                         <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
172
                         <div>{{scope.row.unit}}</div>
177
                         <div>{{scope.row.unit}}</div>
173
-
178
+                      <div v-if="scope.row.unit == ''">{{scope.row.good_info.default_count_unit}}</div>
174
                     </div>
179
                     </div>
175
                 </template>
180
                 </template>
176
             </el-table-column>
181
             </el-table-column>
355
         this.templateFormVisible = true
360
         this.templateFormVisible = true
356
 
361
 
357
 
362
 
363
+      },
364
+      lili(data){
365
+        console.log("data",this.prescription)
366
+
358
       },
367
       },
359
       createFilter(queryString) {
368
       createFilter(queryString) {
360
         return (restaurant) => {
369
         return (restaurant) => {
413
           }
422
           }
414
         })
423
         })
415
 
424
 
416
-      }, 
425
+      },
417
       deleteDrug: function(row, index) {
426
       deleteDrug: function(row, index) {
418
 
427
 
419
         this.$confirm('药品删除后不可恢复,是否确认删除', '删除', {
428
         this.$confirm('药品删除后不可恢复,是否确认删除', '删除', {

+ 7 - 7
src/xt_pages/outpatientDoctorStation/modeTemplate.vue 查看文件

87
     },
87
     },
88
     methods: {
88
     methods: {
89
       searchAction() {
89
       searchAction() {
90
-      
90
+
91
       },
91
       },
92
       handleSizeChange(val) {
92
       handleSizeChange(val) {
93
         this.limit = val
93
         this.limit = val
94
-      
94
+
95
       },
95
       },
96
       getTime(val, temp) {
96
       getTime(val, temp) {
97
         if (val != 0) {
97
         if (val != 0) {
114
 
114
 
115
            this.templates = modeTeplate
115
            this.templates = modeTeplate
116
          }
116
          }
117
-       })   
117
+       })
118
       },
118
       },
119
       handleCurrentChange(row){
119
       handleCurrentChange(row){
120
         this.mode_id = row.id
120
         this.mode_id = row.id
126
           if(id == this.tablelist[i].id){
126
           if(id == this.tablelist[i].id){
127
             mode_name = this.tablelist[i].name
127
             mode_name = this.tablelist[i].name
128
           }
128
           }
129
-        } 
129
+        }
130
         return mode_name
130
         return mode_name
131
       },
131
       },
132
       deleteModeTemplate(row,index) {
132
       deleteModeTemplate(row,index) {
152
        jumpDetail(row) {
152
        jumpDetail(row) {
153
         this.$router.push('/hisTool/modeTemplateDetail?id=' + row.id + '&patient_id=' + this.patient_id + '&patient_name=' + this.patient_name +"&modes="+this.mode_str)
153
         this.$router.push('/hisTool/modeTemplateDetail?id=' + row.id + '&patient_id=' + this.patient_id + '&patient_name=' + this.patient_name +"&modes="+this.mode_str)
154
       },
154
       },
155
-      batchAdd(){
156
-        this.$router.push("/hisTool/batchTemplate")
157
-      }
155
+      // batchAdd(){
156
+      //   this.$router.push("/hisTool/batchTemplate")
157
+      // }
158
     },
158
     },
159
     created() {
159
     created() {
160
       this.tablelist =  Object.values(this.$store.getters.treatment_mode)
160
       this.tablelist =  Object.values(this.$store.getters.treatment_mode)

文件差异内容过多而无法显示
+ 579 - 493
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue


+ 2 - 0
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue 查看文件

1288
           this.showOne = true
1288
           this.showOne = true
1289
           this.showTwo = false
1289
           this.showTwo = false
1290
           this.$nextTick(() => {
1290
           this.$nextTick(() => {
1291
+            console.log("lilili1111111111111111111111111111111111111111111",this.prescriptions[this.prescriptions.length - 1])
1291
             this.$refs.prescription_tables.setNewData(this.prescriptions[this.prescriptions.length - 1])
1292
             this.$refs.prescription_tables.setNewData(this.prescriptions[this.prescriptions.length - 1])
1292
           })
1293
           })
1293
           this.customTabIndex = 1
1294
           this.customTabIndex = 1
1299
           this.showTwo = true
1300
           this.showTwo = true
1300
           this.showOne = false
1301
           this.showOne = false
1301
           this.$nextTick(() => {
1302
           this.$nextTick(() => {
1303
+            console.log("lilili1111111111111111111111111111111111111111111",this.prescriptions[this.prescriptions.length - 1])
1302
             this.$refs.prescription_tables.setNewData(this.prescriptions[this.prescriptions.length - 1])
1304
             this.$refs.prescription_tables.setNewData(this.prescriptions[this.prescriptions.length - 1])
1303
           })
1305
           })
1304
           this.customTabIndex = 2
1306
           this.customTabIndex = 2

+ 6 - 6
src/xt_pages/sign/components/beforeDialysisCalling.vue 查看文件

116
         websocketSend(data) {
116
         websocketSend(data) {
117
             try {
117
             try {
118
                 this.websocket.send(JSON.stringify(data))
118
                 this.websocket.send(JSON.stringify(data))
119
-                
119
+
120
             } catch (error) {
120
             } catch (error) {
121
                 this.showError = true;
121
                 this.showError = true;
122
                 this.showIndex = 4;
122
                 this.showIndex = 4;
128
             this.websocket.onmessage = e => {
128
             this.websocket.onmessage = e => {
129
                 let res = JSON.parse(e.data);
129
                 let res = JSON.parse(e.data);
130
                 // let res = re.data;
130
                 // let res = re.data;
131
-                console.log('res3333333333',res)
132
-                
131
+                console.log('res3333ssss333333',res)
132
+
133
                     if(res.channel == 'queue/join'){
133
                     if(res.channel == 'queue/join'){
134
                         if(res.data.type == 3){
134
                         if(res.data.type == 3){
135
                             let fisrtQueueInfo = []
135
                             let fisrtQueueInfo = []
237
                         }
237
                         }
238
                         this.fisrtQueueInfo = fisrtQueueInfo
238
                         this.fisrtQueueInfo = fisrtQueueInfo
239
                     }
239
                     }
240
-                
240
+
241
             }
241
             }
242
         },
242
         },
243
         handleStateChange: function(index) {
243
         handleStateChange: function(index) {
249
             //         if(item.schedule_type == 1){
249
             //         if(item.schedule_type == 1){
250
             //             newArr.push(item)
250
             //             newArr.push(item)
251
             //         }
251
             //         }
252
-            //     }) 
252
+            //     })
253
             //     this.waitingCalledAm = newArr
253
             //     this.waitingCalledAm = newArr
254
             // }else if(index == 1){
254
             // }else if(index == 1){
255
             //     let arr = this.waitingCalledPm
255
             //     let arr = this.waitingCalledPm
258
             //         if(item.schedule_type == 2){
258
             //         if(item.schedule_type == 2){
259
             //             newArr.push(item)
259
             //             newArr.push(item)
260
             //         }
260
             //         }
261
-            //     }) 
261
+            //     })
262
             //     this.waitingCalledPm = newArr
262
             //     this.waitingCalledPm = newArr
263
             // }
263
             // }
264
             if(index == 2){
264
             if(index == 2){

+ 21 - 21
src/xt_pages/user/dialysisSolution.vue 查看文件

286
               ></el-input>
286
               ></el-input>
287
             </el-form-item>
287
             </el-form-item>
288
             </div>
288
             </div>
289
-            
289
+
290
           </el-col>
290
           </el-col>
291
           <el-col
291
           <el-col
292
             :span="8"
292
             :span="8"
397
               ></el-input>
397
               ></el-input>
398
             </el-form-item>
398
             </el-form-item>
399
           </el-col>
399
           </el-col>
400
-         
400
+
401
 
401
 
402
           <el-col :span="8" v-if="isShows('钾')">
402
           <el-col :span="8" v-if="isShows('钾')">
403
             <el-form-item label="钾(mmol/L): " prop="kalium">
403
             <el-form-item label="钾(mmol/L): " prop="kalium">
895
         epo:"",
895
         epo:"",
896
         epo_count:"",
896
         epo_count:"",
897
         max_ultrafiltration_rate:"",
897
         max_ultrafiltration_rate:"",
898
-        
898
+
899
       },
899
       },
900
       childPlan: {
900
       childPlan: {
901
         mode: '',
901
         mode: '',
1063
          this.addPlan.anticoagulant_zongliang = ""
1063
          this.addPlan.anticoagulant_zongliang = ""
1064
          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1064
          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1065
       }
1065
       }
1066
-      
1066
+
1067
     },
1067
     },
1068
     'addPlan.anticoagulant_weichi': function() {
1068
     'addPlan.anticoagulant_weichi': function() {
1069
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1069
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1401
                 type: 'success',
1401
                 type: 'success',
1402
                 duration: 2000
1402
                 duration: 2000
1403
               })
1403
               })
1404
-              
1404
+
1405
               this.dialogFormVisible = false
1405
               this.dialogFormVisible = false
1406
               this.tableData[this.current_index].doctor =
1406
               this.tableData[this.current_index].doctor =
1407
                 response.data.data.solution.doctor
1407
                 response.data.data.solution.doctor
1569
       this.fetchPatientDialysisSolutions()
1569
       this.fetchPatientDialysisSolutions()
1570
     },
1570
     },
1571
     openEdit(index, row) {
1571
     openEdit(index, row) {
1572
-      console.log("ro2333333",row)
1572
+      console.log("ro233344433344444444",row)
1573
       this.current_index = index
1573
       this.current_index = index
1574
       this.addPlan.id = row.id
1574
       this.addPlan.id = row.id
1575
       this.addPlan.mode = row.mode_id
1575
       this.addPlan.mode = row.mode_id
1595
       if(row.blood_flow_volume!="" || row.blood_flow_volume!=undefined){
1595
       if(row.blood_flow_volume!="" || row.blood_flow_volume!=undefined){
1596
         this.addPlan.blood_flow_volume = row.blood_flow_volume.toString()
1596
         this.addPlan.blood_flow_volume = row.blood_flow_volume.toString()
1597
       }
1597
       }
1598
-     
1598
+
1599
       if (row.anticoagulant == 3) {
1599
       if (row.anticoagulant == 3) {
1600
         this.addPlan.anticoagulant = '低分子肝素'
1600
         this.addPlan.anticoagulant = '低分子肝素'
1601
       }
1601
       }
1614
       if(row.target_ultrafiltration!="" || row.target_ultrafiltration!=undefined){
1614
       if(row.target_ultrafiltration!="" || row.target_ultrafiltration!=undefined){
1615
         this.addPlan.target_ultrafiltration = row.target_ultrafiltration.toString()
1615
         this.addPlan.target_ultrafiltration = row.target_ultrafiltration.toString()
1616
       }
1616
       }
1617
-   
1617
+
1618
 
1618
 
1619
       this.addPlan.dialysis_duration = parseFloat(row.dialysis_duration_hour) + parseFloat((row.dialysis_duration_minute / 60).toFixed(2))
1619
       this.addPlan.dialysis_duration = parseFloat(row.dialysis_duration_hour) + parseFloat((row.dialysis_duration_minute / 60).toFixed(2))
1620
       this.addPlan.dialysis_duration_hour = row.dialysis_duration_hour
1620
       this.addPlan.dialysis_duration_hour = row.dialysis_duration_hour
1643
       if(row.calcium!=""||row.calcium!=undefined){
1643
       if(row.calcium!=""||row.calcium!=undefined){
1644
          this.addPlan.calcium = row.calcium.toString()
1644
          this.addPlan.calcium = row.calcium.toString()
1645
       }
1645
       }
1646
-     
1646
+
1647
      if(row.bicarbonate!=""||  row.bicarbonate!=undefined){
1647
      if(row.bicarbonate!=""||  row.bicarbonate!=undefined){
1648
        this.addPlan.bicarbonate = row.bicarbonate.toString()
1648
        this.addPlan.bicarbonate = row.bicarbonate.toString()
1649
      }
1649
      }
1660
     if(row.conductivity!="" ||row.conductivity!=undefined ){
1660
     if(row.conductivity!="" ||row.conductivity!=undefined ){
1661
        this.addPlan.conductivity = row.conductivity.toString()
1661
        this.addPlan.conductivity = row.conductivity.toString()
1662
     }
1662
     }
1663
-     
1664
-    
1663
+
1664
+
1665
       this.addPlan.remark = row.remark
1665
       this.addPlan.remark = row.remark
1666
 
1666
 
1667
       this.addPlan.hemodialysis_pipelines  = row.hemodialysis_pipelines
1667
       this.addPlan.hemodialysis_pipelines  = row.hemodialysis_pipelines
1669
       if(row.hemodialysis_pipelines_count!="" || row.hemodialysis_pipelines_count!=undefined){
1669
       if(row.hemodialysis_pipelines_count!="" || row.hemodialysis_pipelines_count!=undefined){
1670
         this.addPlan.hemodialysis_pipelines_count  = row.hemodialysis_pipelines_count.toString()
1670
         this.addPlan.hemodialysis_pipelines_count  = row.hemodialysis_pipelines_count.toString()
1671
       }
1671
       }
1672
-     
1672
+
1673
       this.addPlan.puncture_needle  = row.puncture_needle
1673
       this.addPlan.puncture_needle  = row.puncture_needle
1674
 
1674
 
1675
       if(row.puncture_needle_count!=null || row.puncture_needle_count!=undefined){
1675
       if(row.puncture_needle_count!=null || row.puncture_needle_count!=undefined){
1676
         this.addPlan.puncture_needle_count = row.puncture_needle_count.toString()
1676
         this.addPlan.puncture_needle_count = row.puncture_needle_count.toString()
1677
       }
1677
       }
1678
-     
1678
+
1679
       this.addPlan.epo  = row.epo
1679
       this.addPlan.epo  = row.epo
1680
 
1680
 
1681
       if(row.epo_count!="" || row.epo_count!=undefined){
1681
       if(row.epo_count!="" || row.epo_count!=undefined){
1682
         this.addPlan.epo_count  = row.epo_count.toString()
1682
         this.addPlan.epo_count  = row.epo_count.toString()
1683
       }
1683
       }
1684
-    
1684
+
1685
       if(row.dialyzer_perfusion_apparatus!="" ||  row.dialyzer_perfusion_apparatus!=undefined){
1685
       if(row.dialyzer_perfusion_apparatus!="" ||  row.dialyzer_perfusion_apparatus!=undefined){
1686
          this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1686
          this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1687
       }
1687
       }
1688
       if(row.plasma_separator!="" || row.plasma_separator!=undefined){
1688
       if(row.plasma_separator!="" || row.plasma_separator!=undefined){
1689
         this.addPlan.plasma_separator = row.plasma_separator.toString()
1689
         this.addPlan.plasma_separator = row.plasma_separator.toString()
1690
       }
1690
       }
1691
-     
1691
+
1692
       if(row.bilirubin_adsorption_column!="" || row.bilirubin_adsorption_column!=undefined){
1692
       if(row.bilirubin_adsorption_column!="" || row.bilirubin_adsorption_column!=undefined){
1693
          this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
1693
          this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
1694
       }
1694
       }
1695
-    
1695
+
1696
       this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1696
       this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1697
       this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1697
       this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1698
       this.dialysis_irrigation = row.dialysis_irrigation
1698
       this.dialysis_irrigation = row.dialysis_irrigation
1717
       if(row.body_fluid_other!=''|| row.body_fluid_other!=undefined){
1717
       if(row.body_fluid_other!=''|| row.body_fluid_other!=undefined){
1718
         this.addPlan.body_fluid_other = row.body_fluid_other.toString()
1718
         this.addPlan.body_fluid_other = row.body_fluid_other.toString()
1719
       }
1719
       }
1720
-     
1720
+
1721
       this.addPlan.special_medicine = row.special_medicine
1721
       this.addPlan.special_medicine = row.special_medicine
1722
       if(row.special_medicine_other!=""||row.special_medicine_other!=undefined){
1722
       if(row.special_medicine_other!=""||row.special_medicine_other!=undefined){
1723
         this.addPlan.special_medicine_other = row.special_medicine_other.toString()
1723
         this.addPlan.special_medicine_other = row.special_medicine_other.toString()
1724
       }
1724
       }
1725
-   
1725
+
1726
       this.addPlan.displace_liqui_part = row.displace_liqui_part
1726
       this.addPlan.displace_liqui_part = row.displace_liqui_part
1727
       if(row.displace_liqui_value!=''||row.displace_liqui_value!=undefined){
1727
       if(row.displace_liqui_value!=''||row.displace_liqui_value!=undefined){
1728
         this.addPlan.displace_liqui_value = row.displace_liqui_value.toString()
1728
         this.addPlan.displace_liqui_value = row.displace_liqui_value.toString()
1730
       if(row.ultrafiltration!='' ||  row.ultrafiltration!=undefined){
1730
       if(row.ultrafiltration!='' ||  row.ultrafiltration!=undefined){
1731
         this.addPlan.ultrafiltration = row.ultrafiltration.toString()
1731
         this.addPlan.ultrafiltration = row.ultrafiltration.toString()
1732
       }
1732
       }
1733
-     
1733
+
1734
       this.addPlan.blood_access = row.blood_access
1734
       this.addPlan.blood_access = row.blood_access
1735
 
1735
 
1736
       this.addPlan.registrars_id = row.registrars_id
1736
       this.addPlan.registrars_id = row.registrars_id
1749
     },
1749
     },
1750
     isShows(name) {
1750
     isShows(name) {
1751
       var filedList = store.getters.xt_user.fileds
1751
       var filedList = store.getters.xt_user.fileds
1752
-      
1752
+
1753
       for (let i = 0; i < filedList.length; i++) {
1753
       for (let i = 0; i < filedList.length; i++) {
1754
         if (
1754
         if (
1755
           filedList[i].module == 1 &&
1755
           filedList[i].module == 1 &&
2196
     this.plasmaSeparatorList = getDataConfig('hemodialysis','plasma_separator')
2196
     this.plasmaSeparatorList = getDataConfig('hemodialysis','plasma_separator')
2197
     this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis','bilirubin_adsorption_column')
2197
     this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis','bilirubin_adsorption_column')
2198
     this.queryParams.id = this.patientID
2198
     this.queryParams.id = this.patientID
2199
-  
2199
+
2200
 
2200
 
2201
   }
2201
   }
2202
 }
2202
 }