Ver código fonte

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

csx 3 anos atrás
pai
commit
d110b94b33

+ 2 - 0
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Ver arquivo

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

+ 11 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Ver arquivo

2155
                 this.prescriptions[i].advices[b].prescribing_number = this.prescriptions[i].advices[b].prescribing_number.toString()
2155
                 this.prescriptions[i].advices[b].prescribing_number = this.prescriptions[i].advices[b].prescribing_number.toString()
2156
                 this.prescriptions[i].advices[b].retail_price = this.prescriptions[i].advices[b].retail_price.toString()
2156
                 this.prescriptions[i].advices[b].retail_price = this.prescriptions[i].advices[b].retail_price.toString()
2157
                 this.prescriptions[i].advices[b].day = parseInt(this.prescriptions[i].advices[b].day)
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
       },
2536
       },
2535
 
2537
 
2536
       comfirm() {
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
         if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
2540
         if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
2543
           if(this.$store.getters.xt_user.org_id == 10138) {
2541
           if(this.$store.getters.xt_user.org_id == 10138) {
2667
               this.curStatus = 1
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
             if (temp.length > 0) {
2674
             if (temp.length > 0) {
2671
               for (let b = 0; b < temp.length; b++) {
2675
               for (let b = 0; b < temp.length; b++) {
2676
+                let temp_index = b + 1
2672
                 let obj = {
2677
                 let obj = {
2673
                   advice_id: 0,
2678
                   advice_id: 0,
2674
                   id: temp[b].id,
2679
                   id: temp[b].id,
2683
                   single_dose_unit: temp[b].dose_unit,
2688
                   single_dose_unit: temp[b].dose_unit,
2684
                   prescribing_number_unit: temp[b].prescribing_number_unit,
2689
                   prescribing_number_unit: temp[b].prescribing_number_unit,
2685
                   medical_insurance_number: temp[b].medical_insurance_number,
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
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2695
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {

+ 2 - 0
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue Ver arquivo

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

+ 11 - 1
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Ver arquivo

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

+ 46 - 14
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Ver arquivo

1359
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1359
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1360
                     id: prescription.advices[b].drug_id,
1360
                     id: prescription.advices[b].drug_id,
1361
                     drug: prescription.advices[b].drug,
1361
                     drug: prescription.advices[b].drug,
1362
+                    groupno: prescription.advices[b].groupno
1362
 
1363
 
1363
 
1364
 
1364
                   };
1365
                   };
1382
                     remark: prescription.project[b].remark,
1383
                     remark: prescription.project[b].remark,
1383
                     medical_code: prescription.project[b].project.medical_code,
1384
                     medical_code: prescription.project[b].project.medical_code,
1384
                     unit: prescription.project[b].project.unit,
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
                   if(prescription.project[b].type == 2){
1391
                   if(prescription.project[b].type == 2){
1449
                   let tempProject = [];
1452
                   let tempProject = [];
1450
                   let tempAddition = [];
1453
                   let tempAddition = [];
1451
 
1454
 
1455
+
1456
+
1452
                   //药品
1457
                   //药品
1453
                   for (let b = 0; b < prescription.advices.length; b++) {
1458
                   for (let b = 0; b < prescription.advices.length; b++) {
1459
+                    let index = b + 1
1454
                     let obj = {
1460
                     let obj = {
1455
                       advice_id:0,
1461
                       advice_id:0,
1456
                       drug_name: prescription.advices[b].advice_name,
1462
                       drug_name: prescription.advices[b].advice_name,
1465
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1471
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1466
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1472
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1467
                       id: prescription.advices[b].drug_id,
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
                     console.log("看看数据6:")
1479
                     console.log("看看数据6:")
1511
                       remark: prescription.project[b].remark,
1519
                       remark: prescription.project[b].remark,
1512
                       medical_code: prescription.project[b].project.medical_code,
1520
                       medical_code: prescription.project[b].project.medical_code,
1513
                       unit: prescription.project[b].project.unit,
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
                     if (prescription.project[b].type == 2) {
1527
                     if (prescription.project[b].type == 2) {
1720
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1730
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1721
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1731
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1722
                           id: prescription.advices[b].drug_id,
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
                         tempAdvice.push(obj)
1738
                         tempAdvice.push(obj)
1812
 
1824
 
1813
                         //药品
1825
                         //药品
1814
                         for (let b = 0; b < prescription.advices.length; b++) {
1826
                         for (let b = 0; b < prescription.advices.length; b++) {
1827
+                          let index = b + 1
1815
                           let obj = {
1828
                           let obj = {
1816
                             advice_id:0,
1829
                             advice_id:0,
1817
                             drug_name: prescription.advices[b].advice_name,
1830
                             drug_name: prescription.advices[b].advice_name,
1826
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1839
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1827
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1840
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1828
                             id: prescription.advices[b].drug_id,
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
                           console.log("看看数据1:")
1846
                           console.log("看看数据1:")
1832
                           console.log(obj.prescribing_number_unit)
1847
                           console.log(obj.prescribing_number_unit)
1874
                             remark: prescription.project[b].remark,
1889
                             remark: prescription.project[b].remark,
1875
                             medical_code: prescription.project[b].project.medical_code,
1890
                             medical_code: prescription.project[b].project.medical_code,
1876
                             unit: prescription.project[b].project.unit,
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
                           if (prescription.project[b].type == 2) {
1896
                           if (prescription.project[b].type == 2) {
2181
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2197
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2182
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2198
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2183
                           id: prescription.advices[b].drug_id,
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
                         tempAdvice.push(obj)
2205
                         tempAdvice.push(obj)
2266
 
2284
 
2267
                         //药品
2285
                         //药品
2268
                         for (let b = 0; b < prescription.advices.length; b++) {
2286
                         for (let b = 0; b < prescription.advices.length; b++) {
2287
+                          let index = b + 1
2269
                           let obj = {
2288
                           let obj = {
2270
                             advice_id:0,
2289
                             advice_id:0,
2271
                             drug_name: prescription.advices[b].advice_name,
2290
                             drug_name: prescription.advices[b].advice_name,
2280
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2299
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2281
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2300
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2282
                             id: prescription.advices[b].drug_id,
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
                           console.log("看看数据2:")
2306
                           console.log("看看数据2:")
2286
                           console.log(obj.prescribing_number_unit)
2307
                           console.log(obj.prescribing_number_unit)
2619
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2640
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2620
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2641
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2621
                           id: prescription.advices[b].drug_id,
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
                         tempAdvice.push(obj)
2649
                         tempAdvice.push(obj)
2704
 
2728
 
2705
                         //药品
2729
                         //药品
2706
                         for (let b = 0; b < prescription.advices.length; b++) {
2730
                         for (let b = 0; b < prescription.advices.length; b++) {
2731
+                          let index = b + 1
2707
                           let obj = {
2732
                           let obj = {
2708
                             advice_id:0,
2733
                             advice_id:0,
2709
                             drug_name: prescription.advices[b].advice_name,
2734
                             drug_name: prescription.advices[b].advice_name,
2718
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2743
                             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
2719
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2744
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2720
                             id: prescription.advices[b].drug_id,
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
                           console.log("看看数据3:")
2749
                           console.log("看看数据3:")
2724
                           console.log(obj.prescribing_number_unit)
2750
                           console.log(obj.prescribing_number_unit)
3115
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3141
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3116
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3142
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3117
                         id: prescription.advices[b].drug_id,
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
                       tempAdvice.push(obj)
3148
                       tempAdvice.push(obj)
3207
 
3234
 
3208
                       //药品
3235
                       //药品
3209
                       for (let b = 0; b < prescription.advices.length; b++) {
3236
                       for (let b = 0; b < prescription.advices.length; b++) {
3237
+                        let index = b + 1
3210
                         let obj = {
3238
                         let obj = {
3211
                           advice_id:0,
3239
                           advice_id:0,
3212
                           drug_name: prescription.advices[b].advice_name,
3240
                           drug_name: prescription.advices[b].advice_name,
3221
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3249
                           prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3222
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3250
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3223
                           id: prescription.advices[b].drug_id,
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
                         console.log("看看数据4:")
3255
                         console.log("看看数据4:")
3227
                         console.log(obj.prescribing_number_unit)
3256
                         console.log(obj.prescribing_number_unit)
3571
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3600
                       prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3572
                       medical_insurance_number: prescription.advices[b].med_list_codg,
3601
                       medical_insurance_number: prescription.advices[b].med_list_codg,
3573
                       id: prescription.advices[b].drug_id,
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
                     tempAdvice.push(obj)
3607
                     tempAdvice.push(obj)
3664
 
3694
 
3665
                     //药品
3695
                     //药品
3666
                     for (let b = 0; b < prescription.advices.length; b++) {
3696
                     for (let b = 0; b < prescription.advices.length; b++) {
3697
+                      let index = b + 1
3667
                       let obj = {
3698
                       let obj = {
3668
                         advice_id:0,
3699
                         advice_id:0,
3669
                         drug_name: prescription.advices[b].advice_name,
3700
                         drug_name: prescription.advices[b].advice_name,
3678
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3709
                         prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
3679
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3710
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3680
                         id: prescription.advices[b].drug_id,
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
                       console.log("看看数据5:")
3715
                       console.log("看看数据5:")
3684
                       console.log(obj.prescribing_number_unit)
3716
                       console.log(obj.prescribing_number_unit)