Browse Source

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

XMLWAN 2 years ago
parent
commit
4a957f513e

+ 40 - 22
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue View File

@@ -754,7 +754,13 @@
754 754
                             ? prescription.dialyzer_perfusion_apparatus
755 755
                             : ""
756 756
                         }}
757
-                        <span v-if="!prescription.dialysis_dialyszers&&!prescription.dialyzer_perfusion_apparatus">/</span>
757
+                        <span
758
+                          v-if="
759
+                            !prescription.dialysis_dialyszers &&
760
+                            !prescription.dialyzer_perfusion_apparatus
761
+                          "
762
+                          >/</span
763
+                        >
758 764
                         <span v-if="prescription.dialysis_dialyszers">/</span>
759 765
                         {{
760 766
                           prescription.dialysis_dialyszers
@@ -1289,7 +1295,6 @@
1289 1295
                                 : ""
1290 1296
                             }}
1291 1297
                           </span>
1292
-
1293 1298
                         </td>
1294 1299
                         <!-- <td
1295 1300
                           v-if="
@@ -1445,11 +1450,14 @@
1445 1450
                           style="padding-left: 7px"
1446 1451
                         >
1447 1452
                           <span v-if="advice.parent_id > 0">---></span>
1448
-                          <span>{{ advice.advice_name }}</span>
1453
+                          <span v-if="advice.advice_name">{{ advice.advice_name }}</span>
1454
+                          <span v-else>{{ advice.project.project_name }}</span>
1455
+
1449 1456
                           <span v-if="advice && advice.advice_desc"
1450 1457
                             >({{ advice.advice_desc
1451 1458
                             }}{{ advice.drug_spec_unit }})</span
1452 1459
                           >
1460
+                          <span v-if="advice && advice.project">{{advice.count}}{{advice.project.unit}}</span>
1453 1461
                           <span v-if="advice.prescribing_number"
1454 1462
                             >&nbsp;&nbsp; {{ advice.prescribing_number
1455 1463
                             }}{{ advice.prescribing_number_unit }}</span
@@ -2601,7 +2609,7 @@ export default {
2601 2609
       summary: {},
2602 2610
       receiverTreatmentAccess: {},
2603 2611
       org_template_info: {},
2604
-
2612
+      project:[],
2605 2613
       doctor_advices: [],
2606 2614
       doctor_advices_2: [],
2607 2615
       advice_groups: [],
@@ -3083,6 +3091,14 @@ export default {
3083 3091
 
3084 3092
         this.prescription = response.data.data.dialysisPrescription;
3085 3093
         console.log("透析处方", this.prescription);
3094
+        let project_arr = response.data.data.projects
3095
+        project_arr.forEach(o => {
3096
+          if(o.project.project_name && o.project.project_name!=""){
3097
+            this.project.push(o)
3098
+          }
3099
+        });
3100
+        // this.project = response.data.data.projects;
3101
+        console.log(this.project, "项目和耗材");
3086 3102
         this.receiverTreatmentAccess =
3087 3103
           response.data.data.receiverTreatmentAccess;
3088 3104
         this.prescription.mode = this.modeName(this.prescription.mode_id);
@@ -3229,7 +3245,9 @@ export default {
3229 3245
         }
3230 3246
         this.loading = false;
3231 3247
         this.doctor_advices =
3232
-          response.data.data.advices == null ? [] : response.data.data.advices;
3248
+          response.data.data.advices == null ? [] : response.data.data.advices.concat(this.project);
3249
+          // .concat(this.project)
3250
+          console.log( this.doctor_advices,' this.doctor_advices this.doctor_advices')
3233 3251
         for (let index = 0; index < this.doctor_advices.length; index++) {
3234 3252
           this.doctor_advices[index]["isShow"] = 2;
3235 3253
         }
@@ -3328,23 +3346,23 @@ export default {
3328 3346
           }
3329 3347
         }
3330 3348
 
3331
-        this.totollength = this.doctor_advices.length + this.monitors.length;
3332
-        if (this.totollength > 18) {
3333
-          var temp_advice_length = 17 - this.monitors.length;
3334
-          var doctor_advices_1 = [];
3335
-          var doctor_advices_2 = [];
3336
-          for (let index = 0; index < this.doctor_advices.length; index++) {
3337
-            const element = this.doctor_advices[index];
3338
-            if (temp_advice_length > index) {
3339
-              doctor_advices_1.push(element);
3340
-            } else {
3341
-              doctor_advices_2.push(element);
3342
-            }
3343
-          }
3344
-          this.doctor_advices = doctor_advices_1;
3345
-          this.doctor_advices_2 = doctor_advices_2;
3346
-        }
3347
-        console.log(this.advice_groups);
3349
+        // this.totollength = this.doctor_advices.length + this.monitors.length;
3350
+        // if (this.totollength > 18) {
3351
+        //   var temp_advice_length = 17 - this.monitors.length;
3352
+        //   var doctor_advices_1 = [];
3353
+        //   var doctor_advices_2 = [];
3354
+        //   for (let index = 0; index < this.doctor_advices.length; index++) {
3355
+        //     const element = this.doctor_advices[index];
3356
+        //     if (temp_advice_length > index) {
3357
+        //       doctor_advices_1.push(element);
3358
+        //     } else {
3359
+        //       doctor_advices_2.push(element);
3360
+        //     }
3361
+        //   }
3362
+        //   this.doctor_advices = doctor_advices_1;
3363
+        //   this.doctor_advices_2 = doctor_advices_2;
3364
+        // }
3365
+        // console.log(this.doctor_advices,'doctor_advices');
3348 3366
       } else {
3349 3367
         this.loading = false;
3350 3368
         this.$message.error("请求数据失败");

+ 2 - 4
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

@@ -714,13 +714,11 @@
714 714
         this.form.p_type = 14
715 715
         this.form.sick_type = this.sick[0].id
716 716
         this.form.diagnosis = this.diagnoses[0].id
717
-        this.form.id_card_type = 1
717
+        this.form.id_card_type = 2
718 718
         this.form.certificates = 1
719
-
720
-        if (this.$store.getters.xt_user.org_id == 10188  || this.$store.getters.xt_user.org_id == 10217){
719
+        if (this.$store.getters.xt_user.org_id == 10188  || this.$store.getters.xt_user.org_id == 10217 || this.$store.getters.xt_user.org_id == 10191){
721 720
           this.form.id_card_type = 1
722 721
         }
723
-
724 722
         if (departments.length > 0) {
725 723
           this.form.department = departments[0].id
726 724
         }