Bläddra i källkod

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

csx 3 år sedan
förälder
incheckning
c234a520ad

+ 12 - 0
src/api/his/his.js Visa fil

@@ -450,3 +450,15 @@ export function saveTeam(data, params) {
450 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 Visa fil

@@ -68,7 +68,7 @@
68 68
                           highlight-current-row ref="tab">
69 69
                     <el-table-column align="center" prop="name" label="分类" width="120">
70 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 72
                         </template>
73 73
                     </el-table-column>
74 74
                     <el-table-column align="center" prop="name" label="组套明细" width="120">
@@ -95,7 +95,7 @@
95 95
                                         type="danger"
96 96
                                         icon="el-icon-delete"
97 97
                                         size="small"
98
-                                        @click="DeleteProject(scope.row.id,scope.$index)"
98
+                                        @click="DeleteProject(scope.row.m_id,scope.$index)"
99 99
                                 ></el-button>
100 100
                             </el-tooltip>
101 101
                         </template>
@@ -113,6 +113,9 @@
113 113
 </template>
114 114
 
115 115
 <script>
116
+  import {
117
+    editTeam
118
+  } from '@/api/his/his'
116 119
   import {
117 120
     addProjectList,
118 121
     DeleteProject,
@@ -201,7 +204,8 @@
201 204
                 project_name: projectList[i].project_name,
202 205
                 unit: projectList[i].unit,
203 206
                 price: projectList[i].price,
204
-                type: 2
207
+                type: 2,
208
+                m_id: 0
205 209
               }
206 210
               this.projectList.push(obj)
207 211
 
@@ -215,7 +219,9 @@
215 219
                 project_name: goodInfos[i].good_name,
216 220
                 unit: goodInfos[i].good_unit,
217 221
                 price: goodInfos[i].retail_price,
218
-                type: 3
222
+                type: 3,
223
+                m_id: 0
224
+
219 225
               }
220 226
               this.projectList.push(obj)
221 227
             }
@@ -230,6 +236,7 @@
230 236
       getProjectTeamDetail(id) {
231 237
         getProjectTeamDetail(id).then(response => {
232 238
           if (response.data.state == 1) {
239
+            this.tableData = []
233 240
             var projectTeamDetail = response.data.data.projectTeamDetail
234 241
             var hisList = response.data.data.hisList
235 242
 
@@ -239,17 +246,18 @@
239 246
             for (let i = 0; i < hisList.length; i++) {
240 247
 
241 248
               let obj = {
249
+                m_id: hisList[i].id,
242 250
                 id: hisList[i].project_id,
243 251
                 number: hisList[i].number,
244 252
                 type: hisList[i].type
245 253
               }
246
-              if(hisList[i].type == 2){
254
+              if (hisList[i].type == 2) {
247 255
                 obj['statistical_classification'] = hisList[i].project.statistical_classification
248 256
                 obj['project_name'] = hisList[i].project.project_name
249 257
                 obj['unit'] = hisList[i].project.unit
250 258
                 obj['price'] = hisList[i].project.price
251 259
 
252
-              }else{
260
+              } else {
253 261
                 obj['project_name'] = hisList[i].good_info.good_name
254 262
                 obj['unit'] = hisList[i].good_info.good_unit
255 263
                 obj['price'] = hisList[i].good_info.retail_price
@@ -279,13 +287,11 @@
279 287
         this.$refs[formName].validate((valid) => {
280 288
           var arr = []
281 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 295
           if (valid) {
290 296
             var params = {
291 297
               id: this.form.id,
@@ -295,17 +301,17 @@
295 301
               wubi: this.form.wubi,
296 302
               tube_color: this.form.tube_color,
297 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 310
               if (response.data.state == 1) {
305
-                var projectTeam = response.data.data.projectTeam
311
+                // var projectTeam = response.data.data.projectTeam
306 312
                 this.$message.success('保存成功')
307 313
                 this.visible = false
308
-                this.$parent.getlist()
314
+                // this.$parent.getlist()
309 315
               }
310 316
             })
311 317
           }
@@ -325,46 +331,51 @@
325 331
         return name
326 332
       },
327 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 339
             this.form.project_detail = ''
345 340
             this.form.number = ''
346
-            this.getlist()
347 341
           }
348
-        })
342
+        }
343
+
349 344
       },
350 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 381
     created() {

+ 100 - 12
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Visa fil

@@ -703,13 +703,26 @@
703 703
           let count = 0;
704 704
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
705 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 721
               obj['single_dose'] = project_month_prescriptions.project[a].single_dose;
709 722
               obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way;
710 723
               obj['execution_frequency'] = project_month_prescriptions.project[a].execution_frequency;
711 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 726
               obj['unit'] = project_month_prescriptions.project[a].unit;
714 727
               obj['project_id'] = project_month_prescriptions.project[a].project_id;
715 728
               count = count + project_month_prescriptions.project[a].count;
@@ -717,8 +730,12 @@
717 730
               obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
718 731
 
719 732
             }
733
+
734
+
720 735
           }
721 736
           obj['total'] = count;
737
+
738
+
722 739
           projects.push(obj)
723 740
         }
724 741
 
@@ -1010,8 +1027,8 @@
1010 1027
                     let obj = {
1011 1028
                       id: prescription.project[b].id,
1012 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 1032
                       single_dose: prescription.project[b].single_dose,
1016 1033
                       delivery_way: prescription.project[b].delivery_way,
1017 1034
                       execution_frequency: prescription.project[b].execution_frequency,
@@ -1019,9 +1036,21 @@
1019 1036
                       total: prescription.project[b].count.toString(),
1020 1037
                       price: prescription.project[b].price,
1021 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 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 1054
                     tempProject.push(obj)
1026 1055
                   }
1027 1056
 
@@ -1117,8 +1146,8 @@
1117 1146
                     let obj = {
1118 1147
                       id: prescription.project[b].id,
1119 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 1151
                       single_dose: prescription.project[b].single_dose,
1123 1152
                       delivery_way: prescription.project[b].delivery_way,
1124 1153
                       execution_frequency: prescription.project[b].execution_frequency,
@@ -1126,9 +1155,21 @@
1126 1155
                       total: prescription.project[b].count.toString(),
1127 1156
                       price: prescription.project[b].price,
1128 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 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 1173
                     tempProject.push(obj)
1133 1174
                   }
1134 1175
 
@@ -2469,7 +2510,8 @@
2469 2510
                   price: temp2[b].price,
2470 2511
                   remark: '',
2471 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 2516
                 if (obj.total == 0) {
2475 2517
                   obj.total = 1
@@ -2496,11 +2538,50 @@
2496 2538
         this.teamList = row
2497 2539
       },
2498 2540
       getlist() {
2541
+        this.tabProject = []
2499 2542
         getHisProject().then(response => {
2500 2543
           if (response.data.state == 1) {
2501 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,6 +2598,13 @@
2517 2598
           }
2518 2599
         })
2519 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 2609
       getAllProjectTeam() {
2522 2610
         getAllProjectTeam().then(response => {

+ 7 - 7
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Visa fil

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

+ 104 - 23
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Visa fil

@@ -92,6 +92,7 @@
92 92
                              style="position: fixed;width: calc(100% - 490px);background:#fff;">
93 93
                         <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
94 94
                         <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
95
+                        <el-tab-pane label="透析记录" name="透析记录"></el-tab-pane>
95 96
                     </el-tabs>
96 97
                     <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
97 98
                         <el-button size="small" ref="button_one" @click="open(1)" type="primary"
@@ -134,6 +135,7 @@
134 135
 
135 136
                 <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
136 137
                 <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
138
+                <dialysis-index v-if="titleType == '透析记录'" :record_date="record_date" :patientid='patientid'></dialysis-index>
137 139
             </div>
138 140
 
139 141
         </div>
@@ -210,6 +212,7 @@
210 212
   import print from './print'
211 213
   import treatPrint from './treatPrint'
212 214
   import recordPrint from './recordPrint'
215
+  import dialysisIndex from './components/dialysisIndex'
213 216
 
214 217
   const moment = require('moment')
215 218
 
@@ -222,7 +225,8 @@
222 225
       saveRecordTemplate,
223 226
       print,
224 227
       treatPrint,
225
-      recordPrint
228
+      recordPrint,
229
+      dialysisIndex
226 230
     },
227 231
     data() {
228 232
       return {
@@ -710,13 +714,26 @@
710 714
           let count = 0
711 715
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
712 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 732
               obj['single_dose'] = project_month_prescriptions.project[a].single_dose
716 733
               obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way
717 734
               obj['execution_frequency'] = project_month_prescriptions.project[a].execution_frequency
718 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 737
               obj['unit'] = project_month_prescriptions.project[a].unit
721 738
               obj['project_id'] = project_month_prescriptions.project[a].project_id
722 739
               count = count + project_month_prescriptions.project[a].count
@@ -1151,8 +1168,8 @@
1151 1168
                   let obj = {
1152 1169
                     id: prescription.project[b].id,
1153 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 1173
                     single_dose: prescription.project[b].single_dose,
1157 1174
                     delivery_way: prescription.project[b].delivery_way,
1158 1175
                     execution_frequency: prescription.project[b].execution_frequency,
@@ -1160,9 +1177,22 @@
1160 1177
                     total: prescription.project[b].count.toString(),
1161 1178
                     price: prescription.project[b].price,
1162 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 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 1196
                   tempProject.push(obj)
1167 1197
                 }
1168 1198
 
@@ -1336,8 +1366,8 @@
1336 1366
                         let obj = {
1337 1367
                           id: prescription.project[b].id,
1338 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 1371
                           single_dose: prescription.project[b].single_dose,
1342 1372
                           delivery_way: prescription.project[b].delivery_way,
1343 1373
                           execution_frequency: prescription.project[b].execution_frequency,
@@ -1345,9 +1375,20 @@
1345 1375
                           total: prescription.project[b].count.toString(),
1346 1376
                           price: prescription.project[b].price,
1347 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 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 1392
                         tempProject.push(obj)
1352 1393
                       }
1353 1394
                       for (let b = 0; b < prescription.addition.length; b++) {
@@ -1505,8 +1546,8 @@
1505 1546
                         let obj = {
1506 1547
                           id: prescription.project[b].id,
1507 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 1551
                           single_dose: prescription.project[b].single_dose,
1511 1552
                           delivery_way: prescription.project[b].delivery_way,
1512 1553
                           execution_frequency: prescription.project[b].execution_frequency,
@@ -1514,9 +1555,19 @@
1514 1555
                           total: prescription.project[b].count.toString(),
1515 1556
                           price: prescription.project[b].price,
1516 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 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 1571
                         tempProject.push(obj)
1521 1572
                       }
1522 1573
                       for (let b = 0; b < prescription.addition.length; b++) {
@@ -1675,8 +1726,8 @@
1675 1726
                         let obj = {
1676 1727
                           id: prescription.project[b].id,
1677 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 1731
                           single_dose: prescription.project[b].single_dose,
1681 1732
                           delivery_way: prescription.project[b].delivery_way,
1682 1733
                           execution_frequency: prescription.project[b].execution_frequency,
@@ -1684,9 +1735,19 @@
1684 1735
                           total: prescription.project[b].count.toString(),
1685 1736
                           price: prescription.project[b].price,
1686 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 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 1751
                         tempProject.push(obj)
1691 1752
                       }
1692 1753
                       for (let b = 0; b < prescription.addition.length; b++) {
@@ -1895,8 +1956,8 @@
1895 1956
                       let obj = {
1896 1957
                         id: prescription.project[b].id,
1897 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 1961
                         single_dose: prescription.project[b].single_dose,
1901 1962
                         delivery_way: prescription.project[b].delivery_way,
1902 1963
                         execution_frequency: prescription.project[b].execution_frequency,
@@ -1904,9 +1965,19 @@
1904 1965
                         total: prescription.project[b].count.toString(),
1905 1966
                         price: prescription.project[b].price,
1906 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 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 1981
                       tempProject.push(obj)
1911 1982
                     }
1912 1983
                     for (let b = 0; b < prescription.addition.length; b++) {
@@ -2062,11 +2133,11 @@
2062 2133
                     tempAdvice.push(obj)
2063 2134
                   }
2064 2135
                   for (let b = 0; b < prescription.project.length; b++) {
2136
+
2137
+
2065 2138
                     let obj = {
2066 2139
                       id: prescription.project[b].id,
2067 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 2141
                       single_dose: prescription.project[b].single_dose,
2071 2142
                       delivery_way: prescription.project[b].delivery_way,
2072 2143
                       execution_frequency: prescription.project[b].execution_frequency,
@@ -2074,10 +2145,20 @@
2074 2145
                       total: prescription.project[b].count.toString(),
2075 2146
                       price: prescription.project[b].price,
2076 2147
                       remark: prescription.project[b].remark,
2077
-                      medical_code: prescription.project[b].project.medical_code,
2078 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 2163
                   for (let b = 0; b < prescription.addition.length; b++) {
2083 2164
                     let obj = {