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

XMLWAN 3 anos atrás
pai
commit
64d0fdbefd

+ 4 - 8
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Ver arquivo

@@ -756,8 +756,7 @@
756 756
 
757 757
                     <el-col :span="8" v-if="isShows('透析管路支数')">
758 758
                         <el-form-item label="透析管路支数">
759
-                            <el-input
760
-                                    v-model="dialysisPrescription.hemodialysis_pipelines_count"
759
+                            <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.hemodialysis_pipelines_count"
761 760
                             ></el-input>
762 761
                         </el-form-item>
763 762
                     </el-col>
@@ -773,8 +772,7 @@
773 772
 
774 773
                     <el-col :span="8" v-if="isShows('穿刺针支数')">
775 774
                         <el-form-item label="穿刺针支数">
776
-                            <el-input
777
-                                    v-model="dialysisPrescription.puncture_needle_count"
775
+                            <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.puncture_needle_count"
778 776
                             ></el-input>
779 777
                         </el-form-item>
780 778
                     </el-col>
@@ -802,9 +800,7 @@
802 800
 
803 801
                     <el-col :span="8" v-if="isShows('促红素支数')">
804 802
                         <el-form-item label="促红素支数">
805
-                            <el-input
806
-                                    v-model="dialysisPrescription.epo_count"
807
-                            ></el-input>
803
+                            <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.epo_count"></el-input>
808 804
                         </el-form-item>
809 805
                     </el-col>
810 806
 
@@ -2132,7 +2128,7 @@
2132 2128
            }else{
2133 2129
              this.anticoagulant.shouji_unit = 'iu'
2134 2130
            }
2135
-         
2131
+
2136 2132
           this.anticoagulant.weichi_unit = 'mg/h'
2137 2133
           this.anticoagulant.zongliang_unit = 'mg'
2138 2134
         }

+ 5 - 5
src/xt_pages/outpatientCharges/components/registerDialog9504.vue Ver arquivo

@@ -187,12 +187,12 @@
187 187
         read_loading:false,
188 188
         registers: [
189 189
           {value: 11, label: "普通门诊"},
190
-          {value: 12, label: '门诊挂号'},
191
-          {value: 13, label: "急诊"},
190
+          // {value: 12, label: '门诊挂号'},
191
+          // {value: 13, label: "急诊"},
192 192
           {value: 14, label: "门诊特殊病"},
193
-          {value: 15, label: "门诊统筹"},
194
-          {value: 16, label: "门诊慢性病"},
195
-          {value: 21, label: "普通住院"},
193
+          // {value: 15, label: "门诊统筹"},
194
+          // {value: 16, label: "门诊慢性病"},
195
+          // {value: 21, label: "普通住院"},
196 196
         ],
197 197
         medical_care:[
198 198
           {value: 11, label: "普通门诊"},

+ 16 - 6
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

@@ -2446,6 +2446,8 @@
2446 2446
 
2447 2447
             let ids = []
2448 2448
             let temp_order_id = 0
2449
+            var index = 0
2450
+
2449 2451
             if (this.radio == 2) {
2450 2452
               for (let i = 0; i < this.patientTableData.length; i++) {
2451 2453
                 if (this.hisPatientInfo.id == this.patientTableData[i].his_patient_id) {
@@ -2455,18 +2457,26 @@
2455 2457
               temp_order_id = ids[ids.length - 1]
2456 2458
               for (let i = 0; i < this.patientTableData.length; i++) {
2457 2459
                 if (temp_order_id == this.patientTableData[i].order_id) {
2458
-                  this.$refs.tab.setCurrentRow(this.patientTableData[i])
2459
-                  this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order_number, this.patientTableData[i].his_patient_id, this.patientTableData[i].order_id)
2460
+                  index = i
2461
+                  // this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order_number, this.patientTableData[i].his_patient_id, this.patientTableData[i].order_id)
2460 2462
                 }
2461 2463
               }
2464
+              this.$refs.tab.setCurrentRow(this.patientTableData[index])
2465
+
2462 2466
             } else {
2467
+              var index = 0
2463 2468
               for (let i = 0; i < this.patientTableData.length; i++) {
2464
-                if (this.hisPatientInfo.id == this.patientTableData[i].his_patient_id) {
2465
-                  this.$refs.tab.setCurrentRow(this.patientTableData[i])
2466
-                  this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order_number, this.patientTableData[i].his_patient_id, this.patientTableData[i].order_id)
2469
+                if(this.hisPatientInfo.id == 0){
2470
+                  if (this.patientInfo.id == this.patientTableData[i].id) {
2471
+                    index  = i
2472
+                  }
2473
+                }else{
2474
+                  if (this.hisPatientInfo.id == this.patientTableData[i].his_patient_id) {
2475
+                    index  = i
2476
+                  }
2467 2477
                 }
2468
-
2469 2478
               }
2479
+              this.$refs.tab.setCurrentRow(this.patientTableData[index])
2470 2480
             }
2471 2481
           }
2472 2482
         })

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

@@ -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

+ 49 - 13
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Ver arquivo

@@ -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
 
@@ -2177,14 +2179,31 @@
2177 2179
               'prescriptions': this.prescriptions
2178 2180
             }
2179 2181
             isLoading = true
2180
-            createHisPrescription(data, params).then(response => {
2181
-              if (response.data.state == 1) {
2182
-                this.$emit('change', this.patientInfo.id)
2183
-                this.$message.success('保存成功')
2184
-              } else {
2185
-                this.$message.error(response.data.msg)
2182
+            console.log('this.prescriptionsthis.prescriptions',this.prescriptions)
2183
+            let num = 0
2184
+            this.prescriptions.map(item => {
2185
+              if(item.advices.length > 0){
2186
+                item.advices.map(it => {
2187
+                  if(it.drug.total <= 0){
2188
+                    num++
2189
+                    setTimeout(() =>{
2190
+                      this.$message.error(it.drug.drug_name + '库存不足')
2191
+                    },100)
2192
+                  }
2193
+                })
2186 2194
               }
2187 2195
             })
2196
+            if(num == 0){
2197
+              createHisPrescription(data, params).then(response => {
2198
+                if (response.data.state == 1) {
2199
+                  this.$emit('change', this.patientInfo.id)
2200
+                  this.$message.success('保存成功')
2201
+                } else {
2202
+                  this.$message.error(response.data.msg)
2203
+                }
2204
+              })
2205
+            }
2206
+
2188 2207
           } else if (index == 2) {
2189 2208
             this.$router.push('/outpatientDoctorStation/print')
2190 2209
           } else if (index == 4) {
@@ -2534,10 +2553,6 @@
2534 2553
       },
2535 2554
 
2536 2555
       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 2556
 
2542 2557
        if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
2543 2558
           if(this.$store.getters.xt_user.org_id == 10138) {
@@ -2666,8 +2681,15 @@
2666 2681
               this.curStatus = 1
2667 2682
             }
2668 2683
 
2684
+            let index = 0
2685
+
2686
+            if(this.curPrescriptions.advices.length > 0){
2687
+              index = this.curPrescriptions.advices.length
2688
+            }
2689
+
2669 2690
             if (temp.length > 0) {
2670 2691
               for (let b = 0; b < temp.length; b++) {
2692
+                let temp_index = b + 1
2671 2693
                 let obj = {
2672 2694
                   advice_id: 0,
2673 2695
                   id: temp[b].id,
@@ -2682,7 +2704,8 @@
2682 2704
                   single_dose_unit: temp[b].dose_unit,
2683 2705
                   prescribing_number_unit: temp[b].prescribing_number_unit,
2684 2706
                   medical_insurance_number: temp[b].medical_insurance_number,
2685
-                  drug: temp[b]
2707
+                  drug: temp[b],
2708
+                  groupno:index+temp_index,
2686 2709
                 }
2687 2710
 
2688 2711
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
@@ -2750,8 +2773,21 @@
2750 2773
       }, changeAllGoodInfoTableDataTwo(row) {
2751 2774
         this.teamList = row
2752 2775
       },
2753
-      selectChange(row) {
2754
-        this.teamList = row
2776
+      selectChange(selection, row) {
2777
+        if(row.total <= 0){
2778
+          if (selection) {
2779
+            selection.forEach(row => {
2780
+              if(row.total <= 0){
2781
+                this.$refs.tables.toggleRowSelection(row);
2782
+              }
2783
+            });
2784
+          } else {
2785
+            this.$refs.tables.clearSelection();
2786
+          }
2787
+          this.$message.error(row.project_name + '库存不足')
2788
+          return
2789
+        }
2790
+        this.teamList.push(row)
2755 2791
       },
2756 2792
       getlist() {
2757 2793
         this.tabProject = []

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

@@ -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 Ver arquivo

@@ -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;">

+ 20 - 20
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue Ver arquivo

@@ -408,29 +408,29 @@
408 408
         if(scope.row.prescribing_number == 0){
409 409
           scope.row.prescribing_number = 1
410 410
         }
411
-        if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
412
-          // scope.row.retail_price = scope.row.drug.min_price * scope.row.prescribing_number
413
-          if(scope.row.prescribing_number > scope.row.drug.total){
414
-            this.$message.error(scope.row.drug_name + '库存不足')
415
-          }
416
-        }else{
417
-          if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
418
-            this.$message.error(scope.row.drug_name + '库存不足')
419
-          }
420
-          // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
421
-        }
411
+        // if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
412
+        //   // scope.row.retail_price = scope.row.drug.min_price * scope.row.prescribing_number
413
+        //   if(scope.row.prescribing_number > scope.row.drug.total){
414
+        //     this.$message.error(scope.row.drug_name + '库存不足')
415
+        //   }
416
+        // }else{
417
+        //   if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
418
+        //     this.$message.error(scope.row.drug_name + '库存不足')
419
+        //   }
420
+        //   // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
421
+        // }
422 422
         
423 423
       },
424 424
       changePrescribingNumber(scope){
425
-        if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
426
-          if(parseInt(scope.row.prescribing_number) > scope.row.drug.total){
427
-            this.$message.error(scope.row.drug_name + '库存不足')
428
-          }
429
-        }else{
430
-          if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
431
-            this.$message.error(scope.row.drug_name + '库存不足')
432
-          }
433
-        }
425
+        // if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
426
+        //   if(parseInt(scope.row.prescribing_number) > scope.row.drug.total){
427
+        //     this.$message.error(scope.row.drug_name + '库存不足')
428
+        //   }
429
+        // }else{
430
+        //   if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
431
+        //     this.$message.error(scope.row.drug_name + '库存不足')
432
+        //   }
433
+        // }
434 434
       },
435 435
       getSingleDose(scope){
436 436
         this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day

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

@@ -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)

+ 71 - 59
src/xt_pages/workforce/components/tableWeeks.vue Ver arquivo

@@ -88,64 +88,72 @@
88 88
                 </ul>
89 89
             </div>
90 90
         </div>
91
-        <!--<el-table-->
92
-                <!--:row-style="{ color: '#303133' }"-->
93
-                <!--:data="summarySchData"-->
94
-                <!--border-->
95
-                <!--:header-cell-style="{-->
96
-        <!--backgroundColor: 'rgb(245, 247, 250)',-->
97
-        <!--color: '#606266'-->
98
-      <!--}"-->
99
-                <!--style="width: 100%"-->
100
-        <!--&gt;-->
101
-
102
-            <!--<el-table-column label="分区" min-width="70" align="center">-->
103
-                <!--<template slot-scope="scope">-->
104
-                    <!--{{ scope.row.zone.name }}-->
105
-                <!--</template>-->
106
-            <!--</el-table-column>-->
107
-
108
-            <!--<el-table-column label="透析模式" min-width="100" align="center">-->
109
-                <!--<template slot-scope="scope">-->
91
+        <el-table
92
+                v-loading="isloading"
93
+                :row-style="{ color: '#303133' }"
94
+                :data="summarySchData"
95
+                border
96
+                :header-cell-style="{
97
+        backgroundColor: 'rgb(245, 247, 250)',
98
+        color: '#606266'
99
+      }"
100
+                style="width: 100%"
101
+        >
102
+
103
+            <el-table-column label="分区" min-width="70" align="center">
104
+                <template slot-scope="scope">
105
+                    {{ scope.row.zone.name }}
106
+                </template>
107
+            </el-table-column>
108
+
109
+            <el-table-column label="透析模式" min-width="100" align="center">
110
+                <template slot-scope="scope">
110 111
                     <!--{{getModeDesc(scope.row.list)}}-->
111
-                <!--</template>-->
112
-            <!--</el-table-column>-->
113
-            <!--<el-table-column label="透析液" min-width="100" align="center">-->
114
-                <!--<template slot-scope="scope">-->
115
-                    <!--{{getDialysisLiquidDesc(scope.row.list)}}-->
116
-                <!--</template>-->
117
-            <!--</el-table-column>-->
112
+                    <div v-html>{{getModeDesc(scope.row.list)}}</div>
118 113
 
119
-            <!--<el-table-column label="透析管路" min-width="100" align="center">-->
120
-                <!--<template slot-scope="scope">-->
121
-                    <!--{{getDialysisPipeDesc(scope.row.list)}}-->
122
-                <!--</template>-->
123
-            <!--</el-table-column>-->
114
+                </template>
115
+            </el-table-column>
116
+            <el-table-column label="透析液" min-width="100" align="center">
117
+                <template slot-scope="scope">
118
+                    <div v-html>{{getDialysisLiquidDesc(scope.row.list)}}</div>
119
+                </template>
120
+            </el-table-column>
124 121
 
125
-            <!--<el-table-column label="穿刺针" min-width="100" align="center">-->
126
-                <!--<template slot-scope="scope">-->
127
-                    <!--{{getPunctureNeedleDesc(scope.row.list)}}-->
128
-                <!--</template>-->
129
-            <!--</el-table-column>-->
122
+            <el-table-column label="透析管路" min-width="100" align="center">
123
+                <template slot-scope="scope">
124
+                    <div v-html>{{getDialysisPipeDesc(scope.row.list)}}</div>
130 125
 
126
+                </template>
127
+            </el-table-column>
131 128
 
132
-            <!--<el-table-column label="抗凝剂" min-width="100" align="center">-->
133
-                <!--<template slot-scope="scope">-->
134
-                    <!--{{getAnticoagulantDesc(scope.row.list)}}-->
135
-                <!--</template>-->
136
-            <!--</el-table-column>-->
129
+            <el-table-column label="穿刺针" min-width="100" align="center">
130
+                <template slot-scope="scope">
131
+                    <div v-html>{{getPunctureNeedleDesc(scope.row.list)}}</div>
132
+
133
+                </template>
134
+            </el-table-column>
137 135
 
138 136
 
139
-            <!--<el-table-column label="促红素" min-width="100" align="center">-->
140
-                <!--<template slot-scope="scope">-->
141
-                    <!--{{getEPODesc(scope.row.list)}}-->
142
-                <!--</template>-->
143
-            <!--</el-table-column>-->
137
+            <el-table-column label="抗凝剂" min-width="100" align="center">
138
+                <template slot-scope="scope">
139
+                    <div v-html>{{getAnticoagulantDesc(scope.row.list)}}</div>
144 140
 
141
+                </template>
142
+            </el-table-column>
145 143
 
146
-        <!--</el-table>-->
144
+
145
+            <el-table-column label="促红素" min-width="100" align="center">
146
+                <template slot-scope="scope">
147
+                    <div v-html>{{getEPODesc(scope.row.list)}}</div>
148
+
149
+                </template>
150
+            </el-table-column>
151
+
152
+
153
+        </el-table>
147 154
 
148 155
         <el-table
156
+                v-loading="isloading"
149 157
                 :row-style="{ color: '#303133' }"
150 158
                 :data="scheduleData"
151 159
                 border
@@ -361,6 +369,7 @@
361 369
 
362 370
     data() {
363 371
       return {
372
+        isloading:false,
364 373
         weekArr: [
365 374
           { id: 0, name: '全部' },
366 375
           { id: 1, name: '周一' },
@@ -624,7 +633,7 @@
624 633
 
625 634
           } else {
626 635
 
627
-            desc = desc + ' \n\r ' + modes[i].mode_name + ': ' + modes[i].count + '次'
636
+            desc = desc + '              ' + modes[i].mode_name + ': ' + modes[i].count + '次'
628 637
 
629 638
           }
630 639
 
@@ -656,9 +665,9 @@
656 665
         let desc = ''
657 666
         for (let b = 0; b < modes.length; b++) {
658 667
           if (desc.length == 0) {
659
-            desc = modes[b].name + ': ' + modes[b].count + ''
668
+            desc = modes[b].name + ': ' + modes[b].count + ''
660 669
           } else {
661
-            desc = desc + ' \n\r ' + modes[b].name + ': ' + modes[b].count + '次'
670
+            desc = desc + '              ' + modes[b].name + ': ' + modes[b].count + '支'
662 671
           }
663 672
         }
664 673
 
@@ -705,9 +714,9 @@
705 714
 
706 715
         for (let b = 0; b < dialysisPipe.length; b++) {
707 716
           if (desc.length == 0) {
708
-            desc = dialysisPipe[b].name + ': ' + dialysisPipe[b].count + ''
717
+            desc = dialysisPipe[b].name + ': ' + dialysisPipe[b].count + ''
709 718
           } else {
710
-            desc = desc + ' \n\r ' + dialysisPipe[b].name + ': ' + dialysisPipe[b].count + '次'
719
+            desc = desc + '              ' + dialysisPipe[b].name + ': ' + dialysisPipe[b].count + '支'
711 720
           }
712 721
         }
713 722
 
@@ -751,9 +760,9 @@
751 760
 
752 761
         for (let b = 0; b < punctureNeedle.length; b++) {
753 762
           if (desc.length == 0) {
754
-            desc = punctureNeedle[b].name + ': ' + punctureNeedle[b].count + ''
763
+            desc = punctureNeedle[b].name + ': ' + punctureNeedle[b].count + ''
755 764
           } else {
756
-            desc = desc + ' \n\r ' + punctureNeedle[b].name + ': ' + punctureNeedle[b].count + '次'
765
+            desc = desc + '              ' + punctureNeedle[b].name + ': ' + punctureNeedle[b].count + '支'
757 766
           }
758 767
         }
759 768
 
@@ -783,9 +792,9 @@
783 792
         let desc = ''
784 793
         for (let b = 0; b < modes.length; b++) {
785 794
           if (desc.length == 0) {
786
-            desc = modes[b].name + ': ' + modes[b].count + ''
795
+            desc = modes[b].name + ': ' + modes[b].count + ''
787 796
           } else {
788
-            desc = desc + ' \n\r ' + modes[b].name + ': ' + modes[b].count + '次'
797
+            desc = desc + '              ' + modes[b].name + ': ' + modes[b].count + '支'
789 798
           }
790 799
         }
791 800
         return desc
@@ -824,9 +833,9 @@
824 833
         }
825 834
         for (let b = 0; b < EPO.length; b++) {
826 835
           if (desc.length == 0) {
827
-            desc = EPO[b].name + ': ' + EPO[b].count + ''
836
+            desc = EPO[b].name + ': ' + EPO[b].count + ''
828 837
           } else {
829
-            desc = desc + ' \n\r ' + EPO[b].name + ': ' + EPO[b].count + '次'
838
+            desc = desc + '              ' + EPO[b].name + ': ' + EPO[b].count + '支'
830 839
           }
831 840
         }
832 841
 
@@ -911,9 +920,12 @@
911 920
           week_time: this.week_time,
912 921
           zone: this.zone
913 922
         }
914
-
923
+        this.scheduleData = []
924
+        this.isloading = true
915 925
         getScheduleList(params).then(response => {
916 926
           if (response.data.state == 1) {
927
+            this.isloading = false
928
+
917 929
             console.log('22333333333', this.pre_status)
918 930
             var list = response.data.data.list
919 931
             if (this.pre_status == 0) {