瀏覽代碼

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

csx 3 年之前
父節點
當前提交
c234a520ad

+ 12 - 0
src/api/his/his.js 查看文件

450
     params:params,
450
     params:params,
451
   });
451
   });
452
 }
452
 }
453
+
454
+
455
+
456
+
457
+export function editTeam(params,data) {
458
+  return request({
459
+    url: "/api/his/updateprojectteam",
460
+    method: "post",
461
+    data:data,
462
+    params:params,
463
+  });
464
+}

+ 60 - 49
src/xt_pages/data/components/editInspection.vue 查看文件

68
                           highlight-current-row ref="tab">
68
                           highlight-current-row ref="tab">
69
                     <el-table-column align="center" prop="name" label="分类" width="120">
69
                     <el-table-column align="center" prop="name" label="分类" width="120">
70
                         <template slot-scope="scope">
70
                         <template slot-scope="scope">
71
-                            <div >{{scope.row.type == 2?getId(scope.row.statistical_classification):'耗材'}}</div>
71
+                            <div>{{scope.row.type == 2?getId(scope.row.statistical_classification):'耗材'}}</div>
72
                         </template>
72
                         </template>
73
                     </el-table-column>
73
                     </el-table-column>
74
                     <el-table-column align="center" prop="name" label="组套明细" width="120">
74
                     <el-table-column align="center" prop="name" label="组套明细" width="120">
95
                                         type="danger"
95
                                         type="danger"
96
                                         icon="el-icon-delete"
96
                                         icon="el-icon-delete"
97
                                         size="small"
97
                                         size="small"
98
-                                        @click="DeleteProject(scope.row.id,scope.$index)"
98
+                                        @click="DeleteProject(scope.row.m_id,scope.$index)"
99
                                 ></el-button>
99
                                 ></el-button>
100
                             </el-tooltip>
100
                             </el-tooltip>
101
                         </template>
101
                         </template>
113
 </template>
113
 </template>
114
 
114
 
115
 <script>
115
 <script>
116
+  import {
117
+    editTeam
118
+  } from '@/api/his/his'
116
   import {
119
   import {
117
     addProjectList,
120
     addProjectList,
118
     DeleteProject,
121
     DeleteProject,
201
                 project_name: projectList[i].project_name,
204
                 project_name: projectList[i].project_name,
202
                 unit: projectList[i].unit,
205
                 unit: projectList[i].unit,
203
                 price: projectList[i].price,
206
                 price: projectList[i].price,
204
-                type: 2
207
+                type: 2,
208
+                m_id: 0
205
               }
209
               }
206
               this.projectList.push(obj)
210
               this.projectList.push(obj)
207
 
211
 
215
                 project_name: goodInfos[i].good_name,
219
                 project_name: goodInfos[i].good_name,
216
                 unit: goodInfos[i].good_unit,
220
                 unit: goodInfos[i].good_unit,
217
                 price: goodInfos[i].retail_price,
221
                 price: goodInfos[i].retail_price,
218
-                type: 3
222
+                type: 3,
223
+                m_id: 0
224
+
219
               }
225
               }
220
               this.projectList.push(obj)
226
               this.projectList.push(obj)
221
             }
227
             }
230
       getProjectTeamDetail(id) {
236
       getProjectTeamDetail(id) {
231
         getProjectTeamDetail(id).then(response => {
237
         getProjectTeamDetail(id).then(response => {
232
           if (response.data.state == 1) {
238
           if (response.data.state == 1) {
239
+            this.tableData = []
233
             var projectTeamDetail = response.data.data.projectTeamDetail
240
             var projectTeamDetail = response.data.data.projectTeamDetail
234
             var hisList = response.data.data.hisList
241
             var hisList = response.data.data.hisList
235
 
242
 
239
             for (let i = 0; i < hisList.length; i++) {
246
             for (let i = 0; i < hisList.length; i++) {
240
 
247
 
241
               let obj = {
248
               let obj = {
249
+                m_id: hisList[i].id,
242
                 id: hisList[i].project_id,
250
                 id: hisList[i].project_id,
243
                 number: hisList[i].number,
251
                 number: hisList[i].number,
244
                 type: hisList[i].type
252
                 type: hisList[i].type
245
               }
253
               }
246
-              if(hisList[i].type == 2){
254
+              if (hisList[i].type == 2) {
247
                 obj['statistical_classification'] = hisList[i].project.statistical_classification
255
                 obj['statistical_classification'] = hisList[i].project.statistical_classification
248
                 obj['project_name'] = hisList[i].project.project_name
256
                 obj['project_name'] = hisList[i].project.project_name
249
                 obj['unit'] = hisList[i].project.unit
257
                 obj['unit'] = hisList[i].project.unit
250
                 obj['price'] = hisList[i].project.price
258
                 obj['price'] = hisList[i].project.price
251
 
259
 
252
-              }else{
260
+              } else {
253
                 obj['project_name'] = hisList[i].good_info.good_name
261
                 obj['project_name'] = hisList[i].good_info.good_name
254
                 obj['unit'] = hisList[i].good_info.good_unit
262
                 obj['unit'] = hisList[i].good_info.good_unit
255
                 obj['price'] = hisList[i].good_info.retail_price
263
                 obj['price'] = hisList[i].good_info.retail_price
279
         this.$refs[formName].validate((valid) => {
287
         this.$refs[formName].validate((valid) => {
280
           var arr = []
288
           var arr = []
281
           for (let i = 0; i < this.tableData.length; i++) {
289
           for (let i = 0; i < this.tableData.length; i++) {
282
-            arr.push(this.tableData[i].id)
290
+            if (this.tableData[i].m_id == 0) {
291
+              arr.push(this.tableData[i])
292
+            }
283
           }
293
           }
284
 
294
 
285
-          var ids = arr.join(',')
286
-          var item_id = this.form.item_id + ',' + this.item_id.join(',')
287
-          console.log('item_id', item_id)
288
-
289
           if (valid) {
295
           if (valid) {
290
             var params = {
296
             var params = {
291
               id: this.form.id,
297
               id: this.form.id,
295
               wubi: this.form.wubi,
301
               wubi: this.form.wubi,
296
               tube_color: this.form.tube_color,
302
               tube_color: this.form.tube_color,
297
               team_type: this.form.team_type,
303
               team_type: this.form.team_type,
298
-              remark: this.form.remark,
299
-              ids: ids,
300
-              item_id: item_id
304
+              remark: this.form.remark
301
             }
305
             }
302
-            // console.log("params",params)
303
-            updatedProjectTeam(params).then(response => {
306
+            let data = {
307
+              'info': arr
308
+            }            // console.log("params",params)
309
+            editTeam(params, data).then(response => {
304
               if (response.data.state == 1) {
310
               if (response.data.state == 1) {
305
-                var projectTeam = response.data.data.projectTeam
311
+                // var projectTeam = response.data.data.projectTeam
306
                 this.$message.success('保存成功')
312
                 this.$message.success('保存成功')
307
                 this.visible = false
313
                 this.visible = false
308
-                this.$parent.getlist()
314
+                // this.$parent.getlist()
309
               }
315
               }
310
             })
316
             })
311
           }
317
           }
325
         return name
331
         return name
326
       },
332
       },
327
       addProjectList() {
333
       addProjectList() {
328
-
329
-        console.log('表格', this.tableData)
330
-        const params = {
331
-          id: this.form.project_detail,
332
-          number: parseInt(this.form.number)
333
-        }
334
-        console.log('params', params)
335
-        addProjectList(params).then(response => {
336
-          if (response.data.state == 1) {
337
-            var projectList = response.data.data.projectList
338
-            projectList.number = parseInt(this.form.number)
339
-            this.tableData.push(projectList)
340
-            console.log('23333', this.tableData)
341
-            var item = response.data.data.item
342
-            this.item_id.push(item.id)
343
-            this.$message.success('保存成功')
334
+        for (let i = 0; i < this.projectList.length; i++) {
335
+          if (this.form.project_detail == this.projectList[i].id) {
336
+            this.projectList[i].number = this.form.number
337
+            this.projectList[i].number = this.projectList[i].number.toString()
338
+            this.tableData.push(this.projectList[i])
344
             this.form.project_detail = ''
339
             this.form.project_detail = ''
345
             this.form.number = ''
340
             this.form.number = ''
346
-            this.getlist()
347
           }
341
           }
348
-        })
342
+        }
343
+
349
       },
344
       },
350
       DeleteProject(id, index) {
345
       DeleteProject(id, index) {
351
 
346
 
352
-        this.$confirm('确认删除此项目吗?', '删除', {
353
-          confirmButtonText: '确 定',
354
-          cancelButtonText: '取 消',
355
-          type: 'warning'
356
-        }).then(() => {
357
-          DeleteProject(id).then(response => {
358
-            if (response.data.state == 1) {
359
-              this.tableData.splice(index, 1)
360
-
361
-            } else {
347
+        if (id == 0) {
348
+          this.$confirm('确认删除此项目吗?', '删除', {
349
+            confirmButtonText: '确 定',
350
+            cancelButtonText: '取 消',
351
+            type: 'warning'
352
+          }).then(() => {
353
+            this.tableData.splice(index, 1)
362
 
354
 
363
-            }
364
           })
355
           })
365
-        })
366
-          .catch(() => {
356
+            .catch(() => {
357
+            })
358
+
359
+        } else {
360
+          this.$confirm('确认删除此项目吗?', '删除', {
361
+            confirmButtonText: '确 定',
362
+            cancelButtonText: '取 消',
363
+            type: 'warning'
364
+          }).then(() => {
365
+            DeleteProject(id).then(response => {
366
+              if (response.data.state == 1) {
367
+                this.tableData.splice(index, 1)
368
+
369
+              } else {
370
+
371
+              }
372
+            })
367
           })
373
           })
374
+            .catch(() => {
375
+            })
376
+
377
+        }
378
+
368
       }
379
       }
369
     },
380
     },
370
     created() {
381
     created() {

+ 100 - 12
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

703
           let count = 0;
703
           let count = 0;
704
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
704
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
705
             if (project_ids[i].price == project_month_prescriptions.project[a].price) {
705
             if (project_ids[i].price == project_month_prescriptions.project[a].price) {
706
-              obj['project_name'] = project_month_prescriptions.project[a].project.project_name;
707
-              obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification;
706
+
707
+              if(project_month_prescriptions.project[a].type == 2){
708
+                obj['statistical_classification'] =  project_month_prescriptions.project[a].project.statistical_classification
709
+                obj['medical_code'] =  project_month_prescriptions.project[a].project.medical_code
710
+                obj['project_name'] =  project_month_prescriptions.project[a].project.project_name
711
+
712
+              }else if(project_month_prescriptions.project[a].type == 3){
713
+                obj['statistical_classification'] = ""
714
+                obj['medical_code'] =  project_month_prescriptions.project[a].good_info.medical_insurance_number
715
+                obj['project_name'] =  project_month_prescriptions.project[a].good_info.good_name
716
+              }
717
+
718
+
719
+              // obj['project_name'] = project_month_prescriptions.project[a].project.project_name;
720
+              // obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification;
708
               obj['single_dose'] = project_month_prescriptions.project[a].single_dose;
721
               obj['single_dose'] = project_month_prescriptions.project[a].single_dose;
709
               obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way;
722
               obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way;
710
               obj['execution_frequency'] = project_month_prescriptions.project[a].execution_frequency;
723
               obj['execution_frequency'] = project_month_prescriptions.project[a].execution_frequency;
711
               obj['number_days'] = project_month_prescriptions.project[a].day;
724
               obj['number_days'] = project_month_prescriptions.project[a].day;
712
-              obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code;
725
+              // obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code;
713
               obj['unit'] = project_month_prescriptions.project[a].unit;
726
               obj['unit'] = project_month_prescriptions.project[a].unit;
714
               obj['project_id'] = project_month_prescriptions.project[a].project_id;
727
               obj['project_id'] = project_month_prescriptions.project[a].project_id;
715
               count = count + project_month_prescriptions.project[a].count;
728
               count = count + project_month_prescriptions.project[a].count;
717
               obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
730
               obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
718
 
731
 
719
             }
732
             }
733
+
734
+
720
           }
735
           }
721
           obj['total'] = count;
736
           obj['total'] = count;
737
+
738
+
722
           projects.push(obj)
739
           projects.push(obj)
723
         }
740
         }
724
 
741
 
1010
                     let obj = {
1027
                     let obj = {
1011
                       id: prescription.project[b].id,
1028
                       id: prescription.project[b].id,
1012
                       project_id: prescription.project[b].project_id,
1029
                       project_id: prescription.project[b].project_id,
1013
-                      project_name: prescription.project[b].project.project_name,
1014
-                      statistical_classification: prescription.project[b].project.statistical_classification,
1030
+                      // project_name: prescription.project[b].project.project_name,
1031
+                      // statistical_classification: prescription.project[b].project.statistical_classification,
1015
                       single_dose: prescription.project[b].single_dose,
1032
                       single_dose: prescription.project[b].single_dose,
1016
                       delivery_way: prescription.project[b].delivery_way,
1033
                       delivery_way: prescription.project[b].delivery_way,
1017
                       execution_frequency: prescription.project[b].execution_frequency,
1034
                       execution_frequency: prescription.project[b].execution_frequency,
1019
                       total: prescription.project[b].count.toString(),
1036
                       total: prescription.project[b].count.toString(),
1020
                       price: prescription.project[b].price,
1037
                       price: prescription.project[b].price,
1021
                       remark: prescription.project[b].remark,
1038
                       remark: prescription.project[b].remark,
1022
-                      medical_code: prescription.project[b].project.medical_code,
1039
+                      // medical_code: prescription.project[b].project.medical_code,
1023
                       unit: prescription.project[b].project.unit
1040
                       unit: prescription.project[b].project.unit
1024
                     };
1041
                     };
1042
+
1043
+                    if(prescription.project[b].type == 2){
1044
+                      obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
1045
+                      obj['medical_code'] =  prescription.project[b].project.medical_code
1046
+                      obj['project_name'] =  prescription.project[b].project.project_name
1047
+
1048
+                    }else if(prescription.project[b].type == 3){
1049
+                      obj['statistical_classification'] = ""
1050
+                      obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
1051
+                      obj['project_name'] =  prescription.project[b].good_info.good_name
1052
+                    }
1053
+
1025
                     tempProject.push(obj)
1054
                     tempProject.push(obj)
1026
                   }
1055
                   }
1027
 
1056
 
1117
                     let obj = {
1146
                     let obj = {
1118
                       id: prescription.project[b].id,
1147
                       id: prescription.project[b].id,
1119
                       project_id: prescription.project[b].project_id,
1148
                       project_id: prescription.project[b].project_id,
1120
-                      project_name: prescription.project[b].project.project_name,
1121
-                      statistical_classification: prescription.project[b].project.statistical_classification,
1149
+                      // project_name: prescription.project[b].project.project_name,
1150
+                      // statistical_classification: prescription.project[b].project.statistical_classification,
1122
                       single_dose: prescription.project[b].single_dose,
1151
                       single_dose: prescription.project[b].single_dose,
1123
                       delivery_way: prescription.project[b].delivery_way,
1152
                       delivery_way: prescription.project[b].delivery_way,
1124
                       execution_frequency: prescription.project[b].execution_frequency,
1153
                       execution_frequency: prescription.project[b].execution_frequency,
1126
                       total: prescription.project[b].count.toString(),
1155
                       total: prescription.project[b].count.toString(),
1127
                       price: prescription.project[b].price,
1156
                       price: prescription.project[b].price,
1128
                       remark: prescription.project[b].remark,
1157
                       remark: prescription.project[b].remark,
1129
-                      medical_code: prescription.project[b].project.medical_code,
1158
+                      // medical_code: prescription.project[b].project.medical_code,
1130
                       unit: prescription.project[b].project.unit
1159
                       unit: prescription.project[b].project.unit
1131
                     };
1160
                     };
1161
+
1162
+                    if(prescription.project[b].type == 2){
1163
+                      obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
1164
+                      obj['medical_code'] =  prescription.project[b].project.medical_code
1165
+                      obj['project_name'] =  prescription.project[b].project.project_name
1166
+
1167
+                    }else if(prescription.project[b].type == 3){
1168
+                      obj['statistical_classification'] = ""
1169
+                      obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
1170
+                      obj['project_name'] =  prescription.project[b].good_info.good_name
1171
+                    }
1172
+
1132
                     tempProject.push(obj)
1173
                     tempProject.push(obj)
1133
                   }
1174
                   }
1134
 
1175
 
2469
                   price: temp2[b].price,
2510
                   price: temp2[b].price,
2470
                   remark: '',
2511
                   remark: '',
2471
                   medical_code: temp2[b].medical_code,
2512
                   medical_code: temp2[b].medical_code,
2472
-                  unit: temp2[b].unit
2513
+                  unit: temp2[b].unit,
2514
+                  type: temp2[b].type
2473
                 }
2515
                 }
2474
                 if (obj.total == 0) {
2516
                 if (obj.total == 0) {
2475
                   obj.total = 1
2517
                   obj.total = 1
2496
         this.teamList = row
2538
         this.teamList = row
2497
       },
2539
       },
2498
       getlist() {
2540
       getlist() {
2541
+        this.tabProject = []
2499
         getHisProject().then(response => {
2542
         getHisProject().then(response => {
2500
           if (response.data.state == 1) {
2543
           if (response.data.state == 1) {
2501
             var project = response.data.data.project
2544
             var project = response.data.data.project
2502
-            this.tabProject = project
2503
-            this.allProject = project
2545
+            for(let i = 0; i < project.length; i++){
2546
+              let obj = {
2547
+                id:project[i].id,
2548
+                project_name:project[i].project_name,
2549
+                statistical_classification:project[i].statistical_classification,
2550
+                single_dose:project[i].single_dose,
2551
+                delivery_way:project[i].delivery_way,
2552
+                execution_frequency:project[i].execution_frequency,
2553
+                number_days:project[i].number_days,
2554
+                price: project[i].price,
2555
+                medical_code:project[i].medical_code,
2556
+                unit: project[i].unit,
2557
+                type: 2,
2558
+              }
2559
+
2560
+              this.tabProject.push(obj)
2561
+            }
2562
+
2563
+
2564
+
2565
+            var good_info = response.data.data.good_info
2566
+
2567
+            for(let i = 0; i < good_info.length; i++){
2568
+              let obj = {
2569
+                id:good_info[i].id,
2570
+                project_name:good_info[i].good_name,
2571
+                statistical_classification: 0,
2572
+                single_dose:1,
2573
+                delivery_way:"",
2574
+                execution_frequency:"",
2575
+                number_days:1,
2576
+                price: good_info[i].retail_price,
2577
+                medical_code:good_info[i].medical_insurance_number,
2578
+                unit: this.getGoodUnit(good_info[i].good_unit),
2579
+                type: 3,
2580
+              }
2581
+              this.tabProject.push(obj)
2582
+            }
2583
+
2584
+            this.allProject = this.tabProject
2504
 
2585
 
2505
           }
2586
           }
2506
         })
2587
         })
2517
           }
2598
           }
2518
         })
2599
         })
2519
         return targetObj
2600
         return targetObj
2601
+      },getGoodUnit(id){
2602
+        var goodUnit =  this.$store.getters.good_unit;
2603
+        for(let i = 0; i < goodUnit.length; i++){
2604
+          if(goodUnit[i].id == id){
2605
+            return goodUnit[i].name
2606
+          }
2607
+        }
2520
       },
2608
       },
2521
       getAllProjectTeam() {
2609
       getAllProjectTeam() {
2522
         getAllProjectTeam().then(response => {
2610
         getAllProjectTeam().then(response => {

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

85
         <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>
85
         <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>
86
       </el-table-column>
86
       </el-table-column>
87
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
87
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
88
-        <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
88
+        <template slot-scope="scope">{{scope.row.type == 2?getGroup(scope.row.statistical_classification):"耗材"}}</template>
89
       </el-table-column>
89
       </el-table-column>
90
       <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
90
       <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
91
         <template slot-scope="scope">
91
         <template slot-scope="scope">
208
         input: 1,
208
         input: 1,
209
       }
209
       }
210
     },
210
     },
211
-    
211
+
212
    methods:{
212
    methods:{
213
      createFilter(queryString) {
213
      createFilter(queryString) {
214
        return (restaurant) => {
214
        return (restaurant) => {
395
       }
395
       }
396
     },mounted(){
396
     },mounted(){
397
       this.getInitData()
397
       this.getInitData()
398
-     
398
+
399
     },
399
     },
400
     watch:{
400
     watch:{
401
       // "prescription.advices":{
401
       // "prescription.advices":{
405
       //       if(item.single_dose != oldVal[index].single_dose || item.number_days != oldVal[index].number_days){
405
       //       if(item.single_dose != oldVal[index].single_dose || item.number_days != oldVal[index].number_days){
406
       //         item.total = item.single_dose * item.number_days
406
       //         item.total = item.single_dose * item.number_days
407
       //       }
407
       //       }
408
-            
409
-            
408
+
409
+
410
       //     })
410
       //     })
411
       //   },
411
       //   },
412
       //   deep:true
412
       //   deep:true
417
       //       if(item.single_dose != oldVal[index].single_dose || item.number_days != oldVal[index].number_days){
417
       //       if(item.single_dose != oldVal[index].single_dose || item.number_days != oldVal[index].number_days){
418
       //         item.total = item.single_dose * item.number_days
418
       //         item.total = item.single_dose * item.number_days
419
       //       }
419
       //       }
420
-            
420
+
421
       //     })
421
       //     })
422
       //   },
422
       //   },
423
       //   deep:true
423
       //   deep:true
424
       // }
424
       // }
425
     }
425
     }
426
-    
426
+
427
   }
427
   }
428
 </script>
428
 </script>
429
 
429
 

+ 104 - 23
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

92
                              style="position: fixed;width: calc(100% - 490px);background:#fff;">
92
                              style="position: fixed;width: calc(100% - 490px);background:#fff;">
93
                         <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
93
                         <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
94
                         <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
94
                         <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
95
+                        <el-tab-pane label="透析记录" name="透析记录"></el-tab-pane>
95
                     </el-tabs>
96
                     </el-tabs>
96
                     <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
97
                     <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
97
                         <el-button size="small" ref="button_one" @click="open(1)" type="primary"
98
                         <el-button size="small" ref="button_one" @click="open(1)" type="primary"
134
 
135
 
135
                 <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
136
                 <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
136
                 <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
137
                 <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
138
+                <dialysis-index v-if="titleType == '透析记录'" :record_date="record_date" :patientid='patientid'></dialysis-index>
137
             </div>
139
             </div>
138
 
140
 
139
         </div>
141
         </div>
210
   import print from './print'
212
   import print from './print'
211
   import treatPrint from './treatPrint'
213
   import treatPrint from './treatPrint'
212
   import recordPrint from './recordPrint'
214
   import recordPrint from './recordPrint'
215
+  import dialysisIndex from './components/dialysisIndex'
213
 
216
 
214
   const moment = require('moment')
217
   const moment = require('moment')
215
 
218
 
222
       saveRecordTemplate,
225
       saveRecordTemplate,
223
       print,
226
       print,
224
       treatPrint,
227
       treatPrint,
225
-      recordPrint
228
+      recordPrint,
229
+      dialysisIndex
226
     },
230
     },
227
     data() {
231
     data() {
228
       return {
232
       return {
710
           let count = 0
714
           let count = 0
711
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
715
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
712
             if (project_ids[i].price == project_month_prescriptions.project[a].price) {
716
             if (project_ids[i].price == project_month_prescriptions.project[a].price) {
713
-              obj['project_name'] = project_month_prescriptions.project[a].project.project_name
714
-              obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
717
+
718
+
719
+              if(project_month_prescriptions.project[a].type == 2){
720
+                obj['statistical_classification'] =  project_month_prescriptions.project[a].project.statistical_classification
721
+                obj['medical_code'] =  project_month_prescriptions.project[a].project.medical_code
722
+                obj['project_name'] =  project_month_prescriptions.project[a].project.project_name
723
+
724
+              }else if(project_month_prescriptions.project[a].type == 3){
725
+                obj['statistical_classification'] = ""
726
+                obj['medical_code'] =  project_month_prescriptions.project[a].good_info.medical_insurance_number
727
+                obj['project_name'] =  project_month_prescriptions.project[a].good_info.good_name
728
+              }
729
+
730
+              // obj['project_name'] = project_month_prescriptions.project[a].project.project_name
731
+              // obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
715
               obj['single_dose'] = project_month_prescriptions.project[a].single_dose
732
               obj['single_dose'] = project_month_prescriptions.project[a].single_dose
716
               obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way
733
               obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way
717
               obj['execution_frequency'] = project_month_prescriptions.project[a].execution_frequency
734
               obj['execution_frequency'] = project_month_prescriptions.project[a].execution_frequency
718
               obj['number_days'] = project_month_prescriptions.project[a].day
735
               obj['number_days'] = project_month_prescriptions.project[a].day
719
-              obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
736
+              // obj['medical_c/**/ode'] = project_month_prescriptions.project[a].project.medical_code
720
               obj['unit'] = project_month_prescriptions.project[a].unit
737
               obj['unit'] = project_month_prescriptions.project[a].unit
721
               obj['project_id'] = project_month_prescriptions.project[a].project_id
738
               obj['project_id'] = project_month_prescriptions.project[a].project_id
722
               count = count + project_month_prescriptions.project[a].count
739
               count = count + project_month_prescriptions.project[a].count
1151
                   let obj = {
1168
                   let obj = {
1152
                     id: prescription.project[b].id,
1169
                     id: prescription.project[b].id,
1153
                     project_id: prescription.project[b].project_id,
1170
                     project_id: prescription.project[b].project_id,
1154
-                    project_name: prescription.project[b].project.project_name,
1155
-                    statistical_classification: prescription.project[b].project.statistical_classification,
1171
+                    // project_name: prescription.project[b].project.project_name,
1172
+                    // statistical_classification: prescription.project[b].project.statistical_classification,
1156
                     single_dose: prescription.project[b].single_dose,
1173
                     single_dose: prescription.project[b].single_dose,
1157
                     delivery_way: prescription.project[b].delivery_way,
1174
                     delivery_way: prescription.project[b].delivery_way,
1158
                     execution_frequency: prescription.project[b].execution_frequency,
1175
                     execution_frequency: prescription.project[b].execution_frequency,
1160
                     total: prescription.project[b].count.toString(),
1177
                     total: prescription.project[b].count.toString(),
1161
                     price: prescription.project[b].price,
1178
                     price: prescription.project[b].price,
1162
                     remark: prescription.project[b].remark,
1179
                     remark: prescription.project[b].remark,
1163
-                    medical_code: prescription.project[b].project.medical_code,
1180
+                    // medical_code: prescription.project[b].project.medical_code,
1164
                     unit: prescription.project[b].project.unit
1181
                     unit: prescription.project[b].project.unit
1165
                   }
1182
                   }
1183
+
1184
+                  if(prescription.project[b].type == 2){
1185
+                    obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
1186
+                    obj['medical_code'] =  prescription.project[b].project.medical_code
1187
+                    obj['project_name'] =  prescription.project[b].project.project_name
1188
+
1189
+                  }else if(prescription.project[b].type == 3){
1190
+                    obj['statistical_classification'] = ""
1191
+                    obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
1192
+                    obj['project_name'] =  prescription.project[b].good_info.good_name
1193
+                  }
1194
+
1195
+
1166
                   tempProject.push(obj)
1196
                   tempProject.push(obj)
1167
                 }
1197
                 }
1168
 
1198
 
1336
                         let obj = {
1366
                         let obj = {
1337
                           id: prescription.project[b].id,
1367
                           id: prescription.project[b].id,
1338
                           project_id: prescription.project[b].project_id,
1368
                           project_id: prescription.project[b].project_id,
1339
-                          project_name: prescription.project[b].project.project_name,
1340
-                          statistical_classification: prescription.project[b].project.statistical_classification,
1369
+                          // project_name: prescription.project[b].project.project_name,
1370
+                          // statistical_classification: prescription.project[b].project.statistical_classification,
1341
                           single_dose: prescription.project[b].single_dose,
1371
                           single_dose: prescription.project[b].single_dose,
1342
                           delivery_way: prescription.project[b].delivery_way,
1372
                           delivery_way: prescription.project[b].delivery_way,
1343
                           execution_frequency: prescription.project[b].execution_frequency,
1373
                           execution_frequency: prescription.project[b].execution_frequency,
1345
                           total: prescription.project[b].count.toString(),
1375
                           total: prescription.project[b].count.toString(),
1346
                           price: prescription.project[b].price,
1376
                           price: prescription.project[b].price,
1347
                           remark: prescription.project[b].remark,
1377
                           remark: prescription.project[b].remark,
1348
-                          medical_code: prescription.project[b].project.medical_code,
1378
+                          // medical_code: prescription.project[b].project.medical_code,
1349
                           unit: prescription.project[b].unit
1379
                           unit: prescription.project[b].unit
1350
                         };
1380
                         };
1381
+                        if(prescription.project[b].type == 2){
1382
+                          obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
1383
+                          obj['medical_code'] =  prescription.project[b].project.medical_code
1384
+                          obj['project_name'] =  prescription.project[b].project.project_name
1385
+
1386
+                        }else if(prescription.project[b].type == 3){
1387
+                          obj['statistical_classification'] = ""
1388
+                          obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
1389
+                          obj['project_name'] =  prescription.project[b].good_info.good_name
1390
+                        }
1391
+
1351
                         tempProject.push(obj)
1392
                         tempProject.push(obj)
1352
                       }
1393
                       }
1353
                       for (let b = 0; b < prescription.addition.length; b++) {
1394
                       for (let b = 0; b < prescription.addition.length; b++) {
1505
                         let obj = {
1546
                         let obj = {
1506
                           id: prescription.project[b].id,
1547
                           id: prescription.project[b].id,
1507
                           project_id: prescription.project[b].project_id,
1548
                           project_id: prescription.project[b].project_id,
1508
-                          project_name: prescription.project[b].project.project_name,
1509
-                          statistical_classification: prescription.project[b].project.statistical_classification,
1549
+                          // project_name: prescription.project[b].project.project_name,
1550
+                          // statistical_classification: prescription.project[b].project.statistical_classification,
1510
                           single_dose: prescription.project[b].single_dose,
1551
                           single_dose: prescription.project[b].single_dose,
1511
                           delivery_way: prescription.project[b].delivery_way,
1552
                           delivery_way: prescription.project[b].delivery_way,
1512
                           execution_frequency: prescription.project[b].execution_frequency,
1553
                           execution_frequency: prescription.project[b].execution_frequency,
1514
                           total: prescription.project[b].count.toString(),
1555
                           total: prescription.project[b].count.toString(),
1515
                           price: prescription.project[b].price,
1556
                           price: prescription.project[b].price,
1516
                           remark: prescription.project[b].remark,
1557
                           remark: prescription.project[b].remark,
1517
-                          medical_code: prescription.project[b].project.medical_code,
1558
+                          // medical_code: prescription.project[b].project.medical_code,
1518
                           unit: prescription.project[b].unit
1559
                           unit: prescription.project[b].unit
1519
                         };
1560
                         };
1561
+                        if(prescription.project[b].type == 2){
1562
+                          obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
1563
+                          obj['medical_code'] =  prescription.project[b].project.medical_code
1564
+                          obj['project_name'] =  prescription.project[b].project.project_name
1565
+
1566
+                        }else if(prescription.project[b].type == 3){
1567
+                          obj['statistical_classification'] = ""
1568
+                          obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
1569
+                          obj['project_name'] =  prescription.project[b].good_info.good_name
1570
+                        }
1520
                         tempProject.push(obj)
1571
                         tempProject.push(obj)
1521
                       }
1572
                       }
1522
                       for (let b = 0; b < prescription.addition.length; b++) {
1573
                       for (let b = 0; b < prescription.addition.length; b++) {
1675
                         let obj = {
1726
                         let obj = {
1676
                           id: prescription.project[b].id,
1727
                           id: prescription.project[b].id,
1677
                           project_id: prescription.project[b].project_id,
1728
                           project_id: prescription.project[b].project_id,
1678
-                          project_name: prescription.project[b].project.project_name,
1679
-                          statistical_classification: prescription.project[b].project.statistical_classification,
1729
+                          // project_name: prescription.project[b].project.project_name,
1730
+                          // statistical_classification: prescription.project[b].project.statistical_classification,
1680
                           single_dose: prescription.project[b].single_dose,
1731
                           single_dose: prescription.project[b].single_dose,
1681
                           delivery_way: prescription.project[b].delivery_way,
1732
                           delivery_way: prescription.project[b].delivery_way,
1682
                           execution_frequency: prescription.project[b].execution_frequency,
1733
                           execution_frequency: prescription.project[b].execution_frequency,
1684
                           total: prescription.project[b].count.toString(),
1735
                           total: prescription.project[b].count.toString(),
1685
                           price: prescription.project[b].price,
1736
                           price: prescription.project[b].price,
1686
                           remark: prescription.project[b].remark,
1737
                           remark: prescription.project[b].remark,
1687
-                          medical_code: prescription.project[b].project.medical_code,
1738
+                          // medical_code: prescription.project[b].project.medical_code,
1688
                           unit: prescription.project[b].unit
1739
                           unit: prescription.project[b].unit
1689
                         };
1740
                         };
1741
+                        if(prescription.project[b].type == 2){
1742
+                          obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
1743
+                          obj['medical_code'] =  prescription.project[b].project.medical_code
1744
+                          obj['project_name'] =  prescription.project[b].project.project_name
1745
+
1746
+                        }else if(prescription.project[b].type == 3){
1747
+                          obj['statistical_classification'] = ""
1748
+                          obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
1749
+                          obj['project_name'] =  prescription.project[b].good_info.good_name
1750
+                        }
1690
                         tempProject.push(obj)
1751
                         tempProject.push(obj)
1691
                       }
1752
                       }
1692
                       for (let b = 0; b < prescription.addition.length; b++) {
1753
                       for (let b = 0; b < prescription.addition.length; b++) {
1895
                       let obj = {
1956
                       let obj = {
1896
                         id: prescription.project[b].id,
1957
                         id: prescription.project[b].id,
1897
                         project_id: prescription.project[b].project_id,
1958
                         project_id: prescription.project[b].project_id,
1898
-                        project_name: prescription.project[b].project.project_name,
1899
-                        statistical_classification: prescription.project[b].project.statistical_classification,
1959
+                        // project_name: prescription.project[b].project.project_name,
1960
+                        // statistical_classification: prescription.project[b].project.statistical_classification,
1900
                         single_dose: prescription.project[b].single_dose,
1961
                         single_dose: prescription.project[b].single_dose,
1901
                         delivery_way: prescription.project[b].delivery_way,
1962
                         delivery_way: prescription.project[b].delivery_way,
1902
                         execution_frequency: prescription.project[b].execution_frequency,
1963
                         execution_frequency: prescription.project[b].execution_frequency,
1904
                         total: prescription.project[b].count.toString(),
1965
                         total: prescription.project[b].count.toString(),
1905
                         price: prescription.project[b].price,
1966
                         price: prescription.project[b].price,
1906
                         remark: prescription.project[b].remark,
1967
                         remark: prescription.project[b].remark,
1907
-                        medical_code: prescription.project[b].project.medical_code,
1968
+                        // medical_code: prescription.project[b].project.medical_code,
1908
                         unit: prescription.project[b].unit
1969
                         unit: prescription.project[b].unit
1909
                       }
1970
                       }
1971
+                      if(prescription.project[b].type == 2){
1972
+                        obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
1973
+                        obj['medical_code'] =  prescription.project[b].project.medical_code
1974
+                        obj['project_name'] =  prescription.project[b].project.project_name
1975
+
1976
+                      }else if(prescription.project[b].type == 3){
1977
+                        obj['statistical_classification'] = ""
1978
+                        obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
1979
+                        obj['project_name'] =  prescription.project[b].good_info.good_name
1980
+                      }
1910
                       tempProject.push(obj)
1981
                       tempProject.push(obj)
1911
                     }
1982
                     }
1912
                     for (let b = 0; b < prescription.addition.length; b++) {
1983
                     for (let b = 0; b < prescription.addition.length; b++) {
2062
                     tempAdvice.push(obj)
2133
                     tempAdvice.push(obj)
2063
                   }
2134
                   }
2064
                   for (let b = 0; b < prescription.project.length; b++) {
2135
                   for (let b = 0; b < prescription.project.length; b++) {
2136
+
2137
+
2065
                     let obj = {
2138
                     let obj = {
2066
                       id: prescription.project[b].id,
2139
                       id: prescription.project[b].id,
2067
                       project_id: prescription.project[b].project_id,
2140
                       project_id: prescription.project[b].project_id,
2068
-                      project_name: prescription.project[b].project.project_name,
2069
-                      statistical_classification: prescription.project[b].project.statistical_classification,
2070
                       single_dose: prescription.project[b].single_dose,
2141
                       single_dose: prescription.project[b].single_dose,
2071
                       delivery_way: prescription.project[b].delivery_way,
2142
                       delivery_way: prescription.project[b].delivery_way,
2072
                       execution_frequency: prescription.project[b].execution_frequency,
2143
                       execution_frequency: prescription.project[b].execution_frequency,
2074
                       total: prescription.project[b].count.toString(),
2145
                       total: prescription.project[b].count.toString(),
2075
                       price: prescription.project[b].price,
2146
                       price: prescription.project[b].price,
2076
                       remark: prescription.project[b].remark,
2147
                       remark: prescription.project[b].remark,
2077
-                      medical_code: prescription.project[b].project.medical_code,
2078
                       unit: prescription.project[b].unit
2148
                       unit: prescription.project[b].unit
2079
                     }
2149
                     }
2080
-                    tempProject.push(obj)
2150
+                    if(prescription.project[b].type == 2){
2151
+                      obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
2152
+                      obj['medical_code'] =  prescription.project[b].project.medical_code
2153
+                      obj['project_name'] =  prescription.project[b].project.project_name
2154
+
2155
+                    }else if(prescription.project[b].type == 3){
2156
+                      obj['statistical_classification'] = ""
2157
+                      obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
2158
+                      obj['project_name'] =  prescription.project[b].good_info.good_name
2159
+                    }
2160
+
2161
+                      tempProject.push(obj)
2081
                   }
2162
                   }
2082
                   for (let b = 0; b < prescription.addition.length; b++) {
2163
                   for (let b = 0; b < prescription.addition.length; b++) {
2083
                     let obj = {
2164
                     let obj = {