瀏覽代碼

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

XMLWAN 3 年之前
父節點
當前提交
64d0fdbefd

+ 4 - 8
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

756
 
756
 
757
                     <el-col :span="8" v-if="isShows('透析管路支数')">
757
                     <el-col :span="8" v-if="isShows('透析管路支数')">
758
                         <el-form-item label="透析管路支数">
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
                             ></el-input>
760
                             ></el-input>
762
                         </el-form-item>
761
                         </el-form-item>
763
                     </el-col>
762
                     </el-col>
773
 
772
 
774
                     <el-col :span="8" v-if="isShows('穿刺针支数')">
773
                     <el-col :span="8" v-if="isShows('穿刺针支数')">
775
                         <el-form-item label="穿刺针支数">
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
                             ></el-input>
776
                             ></el-input>
779
                         </el-form-item>
777
                         </el-form-item>
780
                     </el-col>
778
                     </el-col>
802
 
800
 
803
                     <el-col :span="8" v-if="isShows('促红素支数')">
801
                     <el-col :span="8" v-if="isShows('促红素支数')">
804
                         <el-form-item label="促红素支数">
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
                         </el-form-item>
804
                         </el-form-item>
809
                     </el-col>
805
                     </el-col>
810
 
806
 
2132
            }else{
2128
            }else{
2133
              this.anticoagulant.shouji_unit = 'iu'
2129
              this.anticoagulant.shouji_unit = 'iu'
2134
            }
2130
            }
2135
-         
2131
+
2136
           this.anticoagulant.weichi_unit = 'mg/h'
2132
           this.anticoagulant.weichi_unit = 'mg/h'
2137
           this.anticoagulant.zongliang_unit = 'mg'
2133
           this.anticoagulant.zongliang_unit = 'mg'
2138
         }
2134
         }

+ 5 - 5
src/xt_pages/outpatientCharges/components/registerDialog9504.vue 查看文件

187
         read_loading:false,
187
         read_loading:false,
188
         registers: [
188
         registers: [
189
           {value: 11, label: "普通门诊"},
189
           {value: 11, label: "普通门诊"},
190
-          {value: 12, label: '门诊挂号'},
191
-          {value: 13, label: "急诊"},
190
+          // {value: 12, label: '门诊挂号'},
191
+          // {value: 13, label: "急诊"},
192
           {value: 14, label: "门诊特殊病"},
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
         medical_care:[
197
         medical_care:[
198
           {value: 11, label: "普通门诊"},
198
           {value: 11, label: "普通门诊"},

+ 16 - 6
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

2446
 
2446
 
2447
             let ids = []
2447
             let ids = []
2448
             let temp_order_id = 0
2448
             let temp_order_id = 0
2449
+            var index = 0
2450
+
2449
             if (this.radio == 2) {
2451
             if (this.radio == 2) {
2450
               for (let i = 0; i < this.patientTableData.length; i++) {
2452
               for (let i = 0; i < this.patientTableData.length; i++) {
2451
                 if (this.hisPatientInfo.id == this.patientTableData[i].his_patient_id) {
2453
                 if (this.hisPatientInfo.id == this.patientTableData[i].his_patient_id) {
2455
               temp_order_id = ids[ids.length - 1]
2457
               temp_order_id = ids[ids.length - 1]
2456
               for (let i = 0; i < this.patientTableData.length; i++) {
2458
               for (let i = 0; i < this.patientTableData.length; i++) {
2457
                 if (temp_order_id == this.patientTableData[i].order_id) {
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
             } else {
2466
             } else {
2467
+              var index = 0
2463
               for (let i = 0; i < this.patientTableData.length; i++) {
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 查看文件

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

+ 49 - 13
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

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
 
2177
               'prescriptions': this.prescriptions
2179
               'prescriptions': this.prescriptions
2178
             }
2180
             }
2179
             isLoading = true
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
           } else if (index == 2) {
2207
           } else if (index == 2) {
2189
             this.$router.push('/outpatientDoctorStation/print')
2208
             this.$router.push('/outpatientDoctorStation/print')
2190
           } else if (index == 4) {
2209
           } else if (index == 4) {
2534
       },
2553
       },
2535
 
2554
 
2536
       comfirm() {
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
        if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
2557
        if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
2543
           if(this.$store.getters.xt_user.org_id == 10138) {
2558
           if(this.$store.getters.xt_user.org_id == 10138) {
2666
               this.curStatus = 1
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
             if (temp.length > 0) {
2690
             if (temp.length > 0) {
2670
               for (let b = 0; b < temp.length; b++) {
2691
               for (let b = 0; b < temp.length; b++) {
2692
+                let temp_index = b + 1
2671
                 let obj = {
2693
                 let obj = {
2672
                   advice_id: 0,
2694
                   advice_id: 0,
2673
                   id: temp[b].id,
2695
                   id: temp[b].id,
2682
                   single_dose_unit: temp[b].dose_unit,
2704
                   single_dose_unit: temp[b].dose_unit,
2683
                   prescribing_number_unit: temp[b].prescribing_number_unit,
2705
                   prescribing_number_unit: temp[b].prescribing_number_unit,
2684
                   medical_insurance_number: temp[b].medical_insurance_number,
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
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2711
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2750
       }, changeAllGoodInfoTableDataTwo(row) {
2773
       }, changeAllGoodInfoTableDataTwo(row) {
2751
         this.teamList = row
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
       getlist() {
2792
       getlist() {
2757
         this.tabProject = []
2793
         this.tabProject = []

+ 2 - 0
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue 查看文件

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 查看文件

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

+ 20 - 20
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue 查看文件

408
         if(scope.row.prescribing_number == 0){
408
         if(scope.row.prescribing_number == 0){
409
           scope.row.prescribing_number = 1
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
       changePrescribingNumber(scope){
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
       getSingleDose(scope){
435
       getSingleDose(scope){
436
         this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
436
         this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day

+ 46 - 14
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

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)

+ 71 - 59
src/xt_pages/workforce/components/tableWeeks.vue 查看文件

88
                 </ul>
88
                 </ul>
89
             </div>
89
             </div>
90
         </div>
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
                     <!--{{getModeDesc(scope.row.list)}}-->
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
         <el-table
155
         <el-table
156
+                v-loading="isloading"
149
                 :row-style="{ color: '#303133' }"
157
                 :row-style="{ color: '#303133' }"
150
                 :data="scheduleData"
158
                 :data="scheduleData"
151
                 border
159
                 border
361
 
369
 
362
     data() {
370
     data() {
363
       return {
371
       return {
372
+        isloading:false,
364
         weekArr: [
373
         weekArr: [
365
           { id: 0, name: '全部' },
374
           { id: 0, name: '全部' },
366
           { id: 1, name: '周一' },
375
           { id: 1, name: '周一' },
624
 
633
 
625
           } else {
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
         let desc = ''
665
         let desc = ''
657
         for (let b = 0; b < modes.length; b++) {
666
         for (let b = 0; b < modes.length; b++) {
658
           if (desc.length == 0) {
667
           if (desc.length == 0) {
659
-            desc = modes[b].name + ': ' + modes[b].count + ''
668
+            desc = modes[b].name + ': ' + modes[b].count + ''
660
           } else {
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
 
714
 
706
         for (let b = 0; b < dialysisPipe.length; b++) {
715
         for (let b = 0; b < dialysisPipe.length; b++) {
707
           if (desc.length == 0) {
716
           if (desc.length == 0) {
708
-            desc = dialysisPipe[b].name + ': ' + dialysisPipe[b].count + ''
717
+            desc = dialysisPipe[b].name + ': ' + dialysisPipe[b].count + ''
709
           } else {
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
 
760
 
752
         for (let b = 0; b < punctureNeedle.length; b++) {
761
         for (let b = 0; b < punctureNeedle.length; b++) {
753
           if (desc.length == 0) {
762
           if (desc.length == 0) {
754
-            desc = punctureNeedle[b].name + ': ' + punctureNeedle[b].count + ''
763
+            desc = punctureNeedle[b].name + ': ' + punctureNeedle[b].count + ''
755
           } else {
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
         let desc = ''
792
         let desc = ''
784
         for (let b = 0; b < modes.length; b++) {
793
         for (let b = 0; b < modes.length; b++) {
785
           if (desc.length == 0) {
794
           if (desc.length == 0) {
786
-            desc = modes[b].name + ': ' + modes[b].count + ''
795
+            desc = modes[b].name + ': ' + modes[b].count + ''
787
           } else {
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
         return desc
800
         return desc
824
         }
833
         }
825
         for (let b = 0; b < EPO.length; b++) {
834
         for (let b = 0; b < EPO.length; b++) {
826
           if (desc.length == 0) {
835
           if (desc.length == 0) {
827
-            desc = EPO[b].name + ': ' + EPO[b].count + ''
836
+            desc = EPO[b].name + ': ' + EPO[b].count + ''
828
           } else {
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
           week_time: this.week_time,
920
           week_time: this.week_time,
912
           zone: this.zone
921
           zone: this.zone
913
         }
922
         }
914
-
923
+        this.scheduleData = []
924
+        this.isloading = true
915
         getScheduleList(params).then(response => {
925
         getScheduleList(params).then(response => {
916
           if (response.data.state == 1) {
926
           if (response.data.state == 1) {
927
+            this.isloading = false
928
+
917
             console.log('22333333333', this.pre_status)
929
             console.log('22333333333', this.pre_status)
918
             var list = response.data.data.list
930
             var list = response.data.data.list
919
             if (this.pre_status == 0) {
931
             if (this.pre_status == 0) {