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
d110b94b33

+ 2 - 0
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Visa fil

@@ -247,6 +247,7 @@
247 247
             let tempProject = [];
248 248
             let tempAddition = [];
249 249
             for (let b = 0; b < prescription.doctor_advice.length; b++) {
250
+              let index = b + 1
250 251
               let obj = {
251 252
                 advice_id: 0,
252 253
                 drug_name: prescription.doctor_advice[b].advice_name,
@@ -262,6 +263,7 @@
262 263
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
263 264
                 id:prescription.doctor_advice[b].drug_id,
264 265
                 drug:prescription.doctor_advice[b].drug,
266
+                groupno: index,
265 267
               };
266 268
               if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
267 269
                 obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price

+ 11 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Visa fil

@@ -2155,6 +2155,8 @@
2155 2155
                 this.prescriptions[i].advices[b].prescribing_number = this.prescriptions[i].advices[b].prescribing_number.toString()
2156 2156
                 this.prescriptions[i].advices[b].retail_price = this.prescriptions[i].advices[b].retail_price.toString()
2157 2157
                 this.prescriptions[i].advices[b].day = parseInt(this.prescriptions[i].advices[b].day)
2158
+                this.prescriptions[i].advices[b].groupno = parseInt(this.prescriptions[i].advices[b].groupno)
2159
+
2158 2160
 
2159 2161
               }
2160 2162
 
@@ -2534,10 +2536,6 @@
2534 2536
       },
2535 2537
 
2536 2538
       comfirm() {
2537
-        console.log(this.curPrescriptions.advices)
2538
-        console.log(this.curPrescriptions.project)
2539
-        console.log(this.curPrescriptions.advices.length)
2540
-        console.log(this.curPrescriptions.project.length)
2541 2539
 
2542 2540
         if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
2543 2541
           if(this.$store.getters.xt_user.org_id == 10138) {
@@ -2667,8 +2665,15 @@
2667 2665
               this.curStatus = 1
2668 2666
             }
2669 2667
 
2668
+            let index = 0
2669
+
2670
+            if(this.curPrescriptions.advices.length > 0){
2671
+              index = this.curPrescriptions.advices.length
2672
+            }
2673
+
2670 2674
             if (temp.length > 0) {
2671 2675
               for (let b = 0; b < temp.length; b++) {
2676
+                let temp_index = b + 1
2672 2677
                 let obj = {
2673 2678
                   advice_id: 0,
2674 2679
                   id: temp[b].id,
@@ -2683,7 +2688,8 @@
2683 2688
                   single_dose_unit: temp[b].dose_unit,
2684 2689
                   prescribing_number_unit: temp[b].prescribing_number_unit,
2685 2690
                   medical_insurance_number: temp[b].medical_insurance_number,
2686
-                  drug: temp[b]
2691
+                  drug: temp[b],
2692
+                  groupno:index+temp_index,
2687 2693
                 }
2688 2694
 
2689 2695
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {

+ 2 - 0
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue Visa fil

@@ -304,6 +304,7 @@
304 304
             let tempProject = [];
305 305
             let tempAddition = [];
306 306
             for (let b = 0; b < prescription.doctor_advice.length; b++) {
307
+              let index = b + 1
307 308
               let obj = {
308 309
                 advice_id: 0,
309 310
                 drug_name: prescription.doctor_advice[b].advice_name,
@@ -319,6 +320,7 @@
319 320
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
320 321
                 id:prescription.doctor_advice[b].drug_id,
321 322
                 drug:prescription.doctor_advice[b].drug,
323
+                groupno:index,
322 324
               };
323 325
 
324 326
               if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){

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

@@ -2,11 +2,21 @@
2 2
   <div class="prescriptionTable">
3 3
     <el-table v-if="activeType  == 1" :data="prescription.advices" border style="width: 99%;" :row-style="{ color: '#303133' }"
4 4
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
5
-      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
5
+      <el-table-column align="center" prop="day" width="70" label="序号">
6
+        <template slot-scope="scope">
7
+          <div style="display:flex;align-items:center;">
8
+            <el-input v-model="scope.row.groupno" placeholder=""></el-input>
9
+          </div>
10
+        </template>
11
+      </el-table-column>
12
+
13
+
6 14
       <el-table-column align="center" prop="drug_name" label="名称">
7 15
         <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
8 16
       </el-table-column>
9 17
 
18
+
19
+
10 20
       <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
11 21
         <template slot-scope="scope">
12 22
           <div style="display:flex;align-items:center;">

+ 46 - 14
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Visa fil

@@ -1359,6 +1359,7 @@
1359 1359
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1360 1360
                     id: prescription.advices[b].drug_id,
1361 1361
                     drug: prescription.advices[b].drug,
1362
+                    groupno: prescription.advices[b].groupno
1362 1363
 
1363 1364
 
1364 1365
                   };
@@ -1382,7 +1383,9 @@
1382 1383
                     remark: prescription.project[b].remark,
1383 1384
                     medical_code: prescription.project[b].project.medical_code,
1384 1385
                     unit: prescription.project[b].project.unit,
1385
-                    type: prescription.project[b].type
1386
+                    type: prescription.project[b].type,
1387
+                    groupno: prescription.advices[b].groupno
1388
+
1386 1389
                   };
1387 1390
 
1388 1391
                   if(prescription.project[b].type == 2){
@@ -1449,8 +1452,11 @@
1449 1452
                   let tempProject = [];
1450 1453
                   let tempAddition = [];
1451 1454
 
1455
+
1456
+
1452 1457
                   //药品
1453 1458
                   for (let b = 0; b < prescription.advices.length; b++) {
1459
+                    let index = b + 1
1454 1460
                     let obj = {
1455 1461
                       advice_id:0,
1456 1462
                       drug_name: prescription.advices[b].advice_name,
@@ -1465,7 +1471,9 @@
1465 1471
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1466 1472
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1467 1473
                       id: prescription.advices[b].drug_id,
1468
-                      drug:prescription.advices[b].drug
1474
+                      drug:prescription.advices[b].drug,
1475
+                      groupno:index,
1476
+
1469 1477
                     };
1470 1478
 
1471 1479
                     console.log("看看数据6:")
@@ -1511,7 +1519,9 @@
1511 1519
                       remark: prescription.project[b].remark,
1512 1520
                       medical_code: prescription.project[b].project.medical_code,
1513 1521
                       unit: prescription.project[b].project.unit,
1514
-                      type: prescription.project[b].type
1522
+                      type: prescription.project[b].type,
1523
+
1524
+
1515 1525
                     };
1516 1526
 
1517 1527
                     if (prescription.project[b].type == 2) {
@@ -1720,7 +1730,9 @@
1720 1730
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1721 1731
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1722 1732
                           id: prescription.advices[b].drug_id,
1723
-                          drug:prescription.advices[b].drug
1733
+                          drug:prescription.advices[b].drug,
1734
+                          groupno: prescription.advices[b].groupno
1735
+
1724 1736
 
1725 1737
                         };
1726 1738
                         tempAdvice.push(obj)
@@ -1812,6 +1824,7 @@
1812 1824
 
1813 1825
                         //药品
1814 1826
                         for (let b = 0; b < prescription.advices.length; b++) {
1827
+                          let index = b + 1
1815 1828
                           let obj = {
1816 1829
                             advice_id:0,
1817 1830
                             drug_name: prescription.advices[b].advice_name,
@@ -1826,7 +1839,9 @@
1826 1839
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1827 1840
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1828 1841
                             id: prescription.advices[b].drug_id,
1829
-                            drug:prescription.advices[b].drug
1842
+                            drug:prescription.advices[b].drug,
1843
+                            groupno:index,
1844
+
1830 1845
                           };
1831 1846
                           console.log("看看数据1:")
1832 1847
                           console.log(obj.prescribing_number_unit)
@@ -1874,7 +1889,8 @@
1874 1889
                             remark: prescription.project[b].remark,
1875 1890
                             medical_code: prescription.project[b].project.medical_code,
1876 1891
                             unit: prescription.project[b].project.unit,
1877
-                            type: prescription.project[b].type
1892
+                            type: prescription.project[b].type,
1893
+
1878 1894
                           };
1879 1895
 
1880 1896
                           if (prescription.project[b].type == 2) {
@@ -2181,7 +2197,9 @@
2181 2197
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2182 2198
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2183 2199
                           id: prescription.advices[b].drug_id,
2184
-                          drug:prescription.advices[b].drug
2200
+                          drug:prescription.advices[b].drug,
2201
+                          groupno: prescription.advices[b].groupno
2202
+
2185 2203
 
2186 2204
                         };
2187 2205
                         tempAdvice.push(obj)
@@ -2266,6 +2284,7 @@
2266 2284
 
2267 2285
                         //药品
2268 2286
                         for (let b = 0; b < prescription.advices.length; b++) {
2287
+                          let index = b + 1
2269 2288
                           let obj = {
2270 2289
                             advice_id:0,
2271 2290
                             drug_name: prescription.advices[b].advice_name,
@@ -2280,7 +2299,9 @@
2280 2299
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2281 2300
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2282 2301
                             id: prescription.advices[b].drug_id,
2283
-                            drug:prescription.advices[b].drug
2302
+                            drug:prescription.advices[b].drug,
2303
+                            groupno: index
2304
+
2284 2305
                           };
2285 2306
                           console.log("看看数据2:")
2286 2307
                           console.log(obj.prescribing_number_unit)
@@ -2619,7 +2640,10 @@
2619 2640
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2620 2641
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2621 2642
                           id: prescription.advices[b].drug_id,
2622
-                          drug:prescription.advices[b].drug
2643
+                          drug:prescription.advices[b].drug,
2644
+                          groupno: prescription.advices[b].groupno
2645
+
2646
+
2623 2647
 
2624 2648
                         };
2625 2649
                         tempAdvice.push(obj)
@@ -2704,6 +2728,7 @@
2704 2728
 
2705 2729
                         //药品
2706 2730
                         for (let b = 0; b < prescription.advices.length; b++) {
2731
+                          let index = b + 1
2707 2732
                           let obj = {
2708 2733
                             advice_id:0,
2709 2734
                             drug_name: prescription.advices[b].advice_name,
@@ -2718,7 +2743,8 @@
2718 2743
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2719 2744
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2720 2745
                             id: prescription.advices[b].drug_id,
2721
-                            drug:prescription.advices[b].drug
2746
+                            drug:prescription.advices[b].drug,
2747
+                            groupno: index
2722 2748
                           };
2723 2749
                           console.log("看看数据3:")
2724 2750
                           console.log(obj.prescribing_number_unit)
@@ -3115,7 +3141,8 @@
3115 3141
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3116 3142
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3117 3143
                         id: prescription.advices[b].drug_id,
3118
-                        drug:prescription.advices[b].drug
3144
+                        drug:prescription.advices[b].drug,
3145
+                        groupno: prescription.advices[b].groupno
3119 3146
 
3120 3147
                       };
3121 3148
                       tempAdvice.push(obj)
@@ -3207,6 +3234,7 @@
3207 3234
 
3208 3235
                       //药品
3209 3236
                       for (let b = 0; b < prescription.advices.length; b++) {
3237
+                        let index = b + 1
3210 3238
                         let obj = {
3211 3239
                           advice_id:0,
3212 3240
                           drug_name: prescription.advices[b].advice_name,
@@ -3221,7 +3249,8 @@
3221 3249
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3222 3250
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3223 3251
                           id: prescription.advices[b].drug_id,
3224
-                          drug:prescription.advices[b].drug
3252
+                          drug:prescription.advices[b].drug,
3253
+                          groupno: index
3225 3254
                         };
3226 3255
                         console.log("看看数据4:")
3227 3256
                         console.log(obj.prescribing_number_unit)
@@ -3571,7 +3600,8 @@
3571 3600
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3572 3601
                       medical_insurance_number: prescription.advices[b].med_list_codg,
3573 3602
                       id: prescription.advices[b].drug_id,
3574
-                      drug:prescription.advices[b].drug
3603
+                      drug:prescription.advices[b].drug,
3604
+                      groupno: prescription.advices[b].groupno
3575 3605
 
3576 3606
                     };
3577 3607
                     tempAdvice.push(obj)
@@ -3664,6 +3694,7 @@
3664 3694
 
3665 3695
                     //药品
3666 3696
                     for (let b = 0; b < prescription.advices.length; b++) {
3697
+                      let index = b + 1
3667 3698
                       let obj = {
3668 3699
                         advice_id:0,
3669 3700
                         drug_name: prescription.advices[b].advice_name,
@@ -3678,7 +3709,8 @@
3678 3709
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3679 3710
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3680 3711
                         id: prescription.advices[b].drug_id,
3681
-                        drug:prescription.advices[b].drug
3712
+                        drug:prescription.advices[b].drug,
3713
+                        groupno: index,
3682 3714
                       };
3683 3715
                       console.log("看看数据5:")
3684 3716
                       console.log(obj.prescribing_number_unit)