Quellcode durchsuchen

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

28169 vor 7 Monaten
Ursprung
Commit
65663352b6

+ 39 - 17
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Datei anzeigen

57
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
57
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
58
                     highlight-current-row ref="tab"
58
                     highlight-current-row ref="tab"
59
                     @current-change="handleCurrentChange">
59
                     @current-change="handleCurrentChange">
60
-            <el-table-column align="center" prop="name" label="姓名" wdith='89'>
61
-              <template slot-scope="scope">{{ scope.$index + 1 }}.{{ scope.row.name }}</template>
60
+            <el-table-column prop="name" label="姓名" wdith='110'>
61
+              <template slot-scope="scope">
62
+                <span>{{ scope.$index + 1 }}.{{ scope.row.name }}</span>
63
+                <span class="futou" v-if="scope.row.patient_type==4">腹</span>
64
+                <!-- v-if="scope.row.patient_type==4" -->
65
+              </template>
62
             </el-table-column>
66
             </el-table-column>
63
-            <el-table-column align="center" prop="name" label="就诊号" width="110">
67
+            <el-table-column align="center" prop="name" label="就诊号" width="89">
64
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
68
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
65
               </template>
69
               </template>
66
             </el-table-column>
70
             </el-table-column>
4793
                     order_number: '',
4797
                     order_number: '',
4794
                     his_patient_id: 0,
4798
                     his_patient_id: 0,
4795
                     prescription: response.data.data.list[i].prescription,
4799
                     prescription: response.data.data.list[i].prescription,
4796
-                    first_letter:response.data.data.list[i].first_letter
4800
+                    first_letter:response.data.data.list[i].first_letter,
4801
+                    patient_type:response.data.data.list[i].patient_type
4797
                   }
4802
                   }
4798
 
4803
 
4799
                   this.all_table_data.push(obj)
4804
                   this.all_table_data.push(obj)
4812
                         order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4817
                         order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4813
                         order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4818
                         order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4814
                         prescription: response.data.data.list[i].prescription,
4819
                         prescription: response.data.data.list[i].prescription,
4815
-                        first_letter:response.data.data.list[i].first_letter
4820
+                        first_letter:response.data.data.list[i].first_letter,
4821
+                        patient_type:response.data.data.list[i].patient_type
4816
 
4822
 
4817
                       }
4823
                       }
4818
                       this.all_table_data.push(obj)
4824
                       this.all_table_data.push(obj)
4828
                       order_number: '',
4834
                       order_number: '',
4829
                       order_id: 0,
4835
                       order_id: 0,
4830
                       prescription: response.data.data.list[i].prescription,
4836
                       prescription: response.data.data.list[i].prescription,
4831
-                      first_letter:response.data.data.list[i].first_letter
4837
+                      first_letter:response.data.data.list[i].first_letter,
4838
+                      patient_type:response.data.data.list[i].patient_type
4832
                     }
4839
                     }
4833
                     this.all_table_data.push(obj)
4840
                     this.all_table_data.push(obj)
4834
 
4841
 
4847
                         order_number: '',
4854
                         order_number: '',
4848
                         order_id: 0,
4855
                         order_id: 0,
4849
                         prescription: response.data.data.list[i].prescription,
4856
                         prescription: response.data.data.list[i].prescription,
4850
-                        first_letter:response.data.data.list[i].first_letter
4857
+                        first_letter:response.data.data.list[i].first_letter,
4858
+                        patient_type:response.data.data.list[i].patient_type
4851
                       }
4859
                       }
4852
                       this.all_table_data.push(obj)
4860
                       this.all_table_data.push(obj)
4853
                     } else {
4861
                     } else {
4862
                           order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4870
                           order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4863
                           order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4871
                           order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4864
                           prescription: response.data.data.list[i].prescription,
4872
                           prescription: response.data.data.list[i].prescription,
4865
-                          first_letter:response.data.data.list[i].first_letter
4873
+                          first_letter:response.data.data.list[i].first_letter,
4874
+                          patient_type:response.data.data.list[i].patient_type
4866
                         }
4875
                         }
4867
                         this.all_table_data.push(obj)
4876
                         this.all_table_data.push(obj)
4868
                       }
4877
                       }
5043
           let one_count = 0
5052
           let one_count = 0
5044
           let two_count = 0
5053
           let two_count = 0
5045
           let three_count = 0
5054
           let three_count = 0
5046
-          console.log('vvvvvvvvvvvvv',response.data.data);
5055
+          console.log('vvvvvvvvvvvvv1211',response.data.data);
5047
           for (let i = 0; i < response.data.data.list.length; i++) {
5056
           for (let i = 0; i < response.data.data.list.length; i++) {
5048
             if (response.data.data.list[i].his_patient.length == 0) { //没挂号
5057
             if (response.data.data.list[i].his_patient.length == 0) { //没挂号
5049
               if (response.data.data.list[i].prescription.length > 0) {
5058
               if (response.data.data.list[i].prescription.length > 0) {
5056
                   his_patient_id: 0,
5065
                   his_patient_id: 0,
5057
                   prescription: response.data.data.list[i].prescription,
5066
                   prescription: response.data.data.list[i].prescription,
5058
                   schedle: response.data.data.list[i].schedule,
5067
                   schedle: response.data.data.list[i].schedule,
5059
-                  first_letter:response.data.data.list[i].first_letter
5060
-
5068
+                  first_letter:response.data.data.list[i].first_letter,
5069
+                  patient_type:response.data.data.list[i].patient_type
5061
                 }
5070
                 }
5062
 
5071
 
5063
                 this.all_table_data.push(obj)
5072
                 this.all_table_data.push(obj)
5077
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
5086
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
5078
                       prescription: response.data.data.list[i].prescription,
5087
                       prescription: response.data.data.list[i].prescription,
5079
                       schedle: response.data.data.list[i].schedule,
5088
                       schedle: response.data.data.list[i].schedule,
5080
-                      first_letter:response.data.data.list[i].first_letter
5081
-
5089
+                      first_letter:response.data.data.list[i].first_letter,
5090
+                      patient_type:response.data.data.list[i].patient_type
5082
                     }
5091
                     }
5083
                     this.all_table_data.push(obj)
5092
                     this.all_table_data.push(obj)
5084
 
5093
 
5094
                     order_id: 0,
5103
                     order_id: 0,
5095
                     prescription: response.data.data.list[i].prescription,
5104
                     prescription: response.data.data.list[i].prescription,
5096
                     schedle: response.data.data.list[i].schedule,
5105
                     schedle: response.data.data.list[i].schedule,
5097
-                    first_letter:response.data.data.list[i].first_letter
5098
-
5106
+                    first_letter:response.data.data.list[i].first_letter,
5107
+                    patient_type:response.data.data.list[i].patient_type
5099
                   }
5108
                   }
5100
                   this.all_table_data.push(obj)
5109
                   this.all_table_data.push(obj)
5101
 
5110
 
5115
                       order_id: 0,
5124
                       order_id: 0,
5116
                       prescription: response.data.data.list[i].prescription,
5125
                       prescription: response.data.data.list[i].prescription,
5117
                       schedle: response.data.data.list[i].schedule,
5126
                       schedle: response.data.data.list[i].schedule,
5118
-                      first_letter:response.data.data.list[i].first_letter
5127
+                      first_letter:response.data.data.list[i].first_letter,
5128
+                      patient_type:response.data.data.list[i].patient_type
5119
                     }
5129
                     }
5120
                     this.all_table_data.push(obj)
5130
                     this.all_table_data.push(obj)
5121
                   } else {
5131
                   } else {
5131
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
5141
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
5132
                         prescription: response.data.data.list[i].prescription,
5142
                         prescription: response.data.data.list[i].prescription,
5133
                         schedle: response.data.data.list[i].schedule,
5143
                         schedle: response.data.data.list[i].schedule,
5134
-                        first_letter:response.data.data.list[i].first_letter
5144
+                        first_letter:response.data.data.list[i].first_letter,
5145
+                        patient_type:response.data.data.list[i].patient_type
5135
 
5146
 
5136
                       }
5147
                       }
5137
                       this.all_table_data.push(obj)
5148
                       this.all_table_data.push(obj)
6739
 
6750
 
6740
 }
6751
 }
6741
 }
6752
 }
6753
+.futou{
6754
+  display: inline-block;
6755
+  width: 20px;
6756
+  height: 20px;
6757
+  border-radius: 50px;
6758
+  background: #38d7d7;
6759
+  color: white;
6760
+  text-align: center;
6761
+  position: absolute;
6762
+  right: 5px;
6763
+}
6742
 </style>
6764
 </style>
6743
 
6765
 
6744
 <style lang="scss">
6766
 <style lang="scss">

+ 48 - 14
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Datei anzeigen

58
                     ref="tab"
58
                     ref="tab"
59
           >
59
           >
60
             <el-table-column prop="name" label="姓名" width='89'>
60
             <el-table-column prop="name" label="姓名" width='89'>
61
-              <template slot-scope="scope">{{ scope.row.name }}</template>
61
+              <template slot-scope="scope">
62
+                <span>{{ scope.row.name }}</span>
63
+                <span class="futou" v-if="scope.row.patient_type==4">腹</span>
64
+                <!--  v-if="scope.row.patient_type==1" -->
65
+              </template>
62
             </el-table-column>
66
             </el-table-column>
63
             <el-table-column prop="name" label="就诊号" width="110">
67
             <el-table-column prop="name" label="就诊号" width="110">
64
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
68
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
74
                     ref="tab"
78
                     ref="tab"
75
           >
79
           >
76
             <el-table-column prop="name" label="姓名" width='89'>
80
             <el-table-column prop="name" label="姓名" width='89'>
77
-              <template slot-scope="scope">{{ scope.row.name }}</template>
81
+              <template slot-scope="scope">
82
+                <span>{{ scope.row.name }}</span>
83
+                <span class="futou" v-if="scope.row.patient_type==4">腹</span>
84
+              </template>
78
             </el-table-column>
85
             </el-table-column>
79
             <el-table-column prop="name" label="就诊号" width="110">
86
             <el-table-column prop="name" label="就诊号" width="110">
80
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
87
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
90
                     ref="tab"
97
                     ref="tab"
91
           >
98
           >
92
             <el-table-column prop="name" label="姓名" width='89'>
99
             <el-table-column prop="name" label="姓名" width='89'>
93
-              <template slot-scope="scope">{{ scope.row.name }}</template>
100
+              <template slot-scope="scope">
101
+                <span>{{ scope.row.name }}</span>
102
+                <span class="futou" v-if="scope.row.patient_type==4">腹</span>
103
+              </template>
94
             </el-table-column>
104
             </el-table-column>
95
             <el-table-column prop="name" label="就诊号" width="110">
105
             <el-table-column prop="name" label="就诊号" width="110">
96
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
106
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
934
           return false
944
           return false
935
         } else {
945
         } else {
936
           //挂号
946
           //挂号
947
+          console.log('response.data.data',response.data.data);
948
+          
937
           for (let i = 0; i < response.data.data.list.length; i++) {
949
           for (let i = 0; i < response.data.data.list.length; i++) {
938
             for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
950
             for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
939
               //未就诊
951
               //未就诊
942
                   name: response.data.data.list[i].his_patient[b].name,
954
                   name: response.data.data.list[i].his_patient[b].name,
943
                   number: response.data.data.list[i].his_patient[b].number,
955
                   number: response.data.data.list[i].his_patient[b].number,
944
                   id: response.data.data.list[i].id,
956
                   id: response.data.data.list[i].id,
945
-                  his_patient_id: response.data.data.list[i].his_patient[b].id
957
+                  his_patient_id: response.data.data.list[i].his_patient[b].id,
958
+                  // patient_type:
946
                 }
959
                 }
947
                 this.un_cure_data.push(obj)
960
                 this.un_cure_data.push(obj)
948
               }
961
               }
1157
                   number: response.data.data.list[i].his_patient[b].number,
1170
                   number: response.data.data.list[i].his_patient[b].number,
1158
                   id: response.data.data.list[i].id,
1171
                   id: response.data.data.list[i].id,
1159
                   his_patient_id: response.data.data.list[i].his_patient[b].id,
1172
                   his_patient_id: response.data.data.list[i].his_patient[b].id,
1160
-                  first_letter: response.data.data.list[i].first_letter
1173
+                  first_letter: response.data.data.list[i].first_letter,
1174
+                  patient_type: response.data.data.list[i].patient_type
1161
                 }
1175
                 }
1162
                 this.un_cure_data.push(obj)
1176
                 this.un_cure_data.push(obj)
1163
                 console.log('vvvvv', this.un_cure_data)
1177
                 console.log('vvvvv', this.un_cure_data)
1169
                   number: response.data.data.list[i].his_patient[b].number,
1183
                   number: response.data.data.list[i].his_patient[b].number,
1170
                   id: response.data.data.list[i].id,
1184
                   id: response.data.data.list[i].id,
1171
                   his_patient_id: response.data.data.list[i].his_patient[b].id,
1185
                   his_patient_id: response.data.data.list[i].his_patient[b].id,
1172
-                  first_letter: response.data.data.list[i].first_letter
1186
+                  first_letter: response.data.data.list[i].first_letter,
1187
+                  patient_type: response.data.data.list[i].patient_type
1173
                 }
1188
                 }
1174
                 this.cure_data.push(obj)
1189
                 this.cure_data.push(obj)
1175
               }
1190
               }
1187
                 number: response.data.data.list_two[i].his_patient.number,
1202
                 number: response.data.data.list_two[i].his_patient.number,
1188
                 id: response.data.data.list_two[i].id,
1203
                 id: response.data.data.list_two[i].id,
1189
                 his_patient_id: response.data.data.list_two[i].his_patient.id,
1204
                 his_patient_id: response.data.data.list_two[i].his_patient.id,
1190
-                first_letter: response.data.data.list_two[i].first_letter
1205
+                first_letter: response.data.data.list_two[i].first_letter,
1206
+                patient_type: response.data.data.list_two[i].patient_type
1191
               }
1207
               }
1192
               this.un_cure_data.push(obj)
1208
               this.un_cure_data.push(obj)
1193
               // console.log('aaaaa',this.un_cure_data);
1209
               // console.log('aaaaa',this.un_cure_data);
1200
                 number: response.data.data.list_two[i].his_patient.number,
1216
                 number: response.data.data.list_two[i].his_patient.number,
1201
                 id: response.data.data.list_two[i].id,
1217
                 id: response.data.data.list_two[i].id,
1202
                 his_patient_id: response.data.data.list_two[i].his_patient.id,
1218
                 his_patient_id: response.data.data.list_two[i].his_patient.id,
1203
-                first_letter: response.data.data.list_two[i].first_letter
1219
+                first_letter: response.data.data.list_two[i].first_letter,
1220
+                patient_type: response.data.data.list_two[i].patient_type
1204
               }
1221
               }
1205
               this.cure_data.push(obj)
1222
               this.cure_data.push(obj)
1206
             }
1223
             }
1787
           this.$message.error(response.data.msg)
1804
           this.$message.error(response.data.msg)
1788
           return false
1805
           return false
1789
         } else {
1806
         } else {
1790
-          console.log('getSchedulePatientList', response.data.data.list_two)
1807
+          console.log('getSchedulePatientList', response.data.data)
1791
           //排班
1808
           //排班
1792
           for (let i = 0; i < response.data.data.list_two.length; i++) {
1809
           for (let i = 0; i < response.data.data.list_two.length; i++) {
1793
             //未就诊
1810
             //未就诊
1797
                 number: response.data.data.list_two[i].his_patient.number,
1814
                 number: response.data.data.list_two[i].his_patient.number,
1798
                 id: response.data.data.list_two[i].id,
1815
                 id: response.data.data.list_two[i].id,
1799
                 his_patient_id: response.data.data.list_two[i].his_patient.id,
1816
                 his_patient_id: response.data.data.list_two[i].his_patient.id,
1800
-                first_letter: response.data.data.list_two[i].first_letter
1817
+                first_letter: response.data.data.list_two[i].first_letter,
1818
+                patient_type: response.data.data.list_two[i].patient_type
1801
               }
1819
               }
1802
               // console.log('6666',obj);
1820
               // console.log('6666',obj);
1803
               this.un_cure_data.push(obj)
1821
               this.un_cure_data.push(obj)
1810
                 number: response.data.data.list_two[i].his_patient.number,
1828
                 number: response.data.data.list_two[i].his_patient.number,
1811
                 id: response.data.data.list_two[i].id,
1829
                 id: response.data.data.list_two[i].id,
1812
                 his_patient_id: response.data.data.list_two[i].his_patient.id,
1830
                 his_patient_id: response.data.data.list_two[i].his_patient.id,
1813
-                first_letter: response.data.data.list_two[i].first_letter
1831
+                first_letter: response.data.data.list_two[i].first_letter,
1832
+                patient_type: response.data.data.list_two[i].patient_type
1814
               }
1833
               }
1815
               this.cure_data.push(obj)
1834
               this.cure_data.push(obj)
1816
             }
1835
             }
1826
                   number: response.data.data.list[i].his_patient[b].number,
1845
                   number: response.data.data.list[i].his_patient[b].number,
1827
                   id: response.data.data.list[i].id,
1846
                   id: response.data.data.list[i].id,
1828
                   his_patient_id: response.data.data.list[i].his_patient[b].id,
1847
                   his_patient_id: response.data.data.list[i].his_patient[b].id,
1829
-                  first_letter: response.data.data.list[i].first_letter
1848
+                  first_letter: response.data.data.list[i].first_letter,
1849
+                  patient_type: response.data.data.list[i].patient_type
1830
                 }
1850
                 }
1831
                 // console.log('8888',obj);
1851
                 // console.log('8888',obj);
1832
                 this.un_cure_data.push(obj)
1852
                 this.un_cure_data.push(obj)
1838
                   number: response.data.data.list[i].his_patient[b].number,
1858
                   number: response.data.data.list[i].his_patient[b].number,
1839
                   id: response.data.data.list[i].id,
1859
                   id: response.data.data.list[i].id,
1840
                   his_patient_id: response.data.data.list[i].his_patient[b].id,
1860
                   his_patient_id: response.data.data.list[i].his_patient[b].id,
1841
-                  first_letter: response.data.data.list[i].first_letter
1861
+                  first_letter: response.data.data.list[i].first_letter,
1862
+                  patient_type: response.data.data.list[i].patient_type
1842
                 }
1863
                 }
1843
                 this.cure_data.push(obj)
1864
                 this.cure_data.push(obj)
1844
               }
1865
               }
1861
 
1882
 
1862
           this.all_data = this.all_data.concat(this.cure_data)
1883
           this.all_data = this.all_data.concat(this.cure_data)
1863
           this.all_data = this.all_data.concat(this.un_cure_data)
1884
           this.all_data = this.all_data.concat(this.un_cure_data)
1864
-
1885
+          
1886
+          
1865
           this.cure_data_two = this.cure_data
1887
           this.cure_data_two = this.cure_data
1866
           this.un_cure_data_two = this.un_cure_data
1888
           this.un_cure_data_two = this.un_cure_data
1867
           this.all_data_two = this.all_data
1889
           this.all_data_two = this.all_data
1874
             this.oldCurrentRow = this.un_cure_data[0]
1896
             this.oldCurrentRow = this.un_cure_data[0]
1875
             this.getPatientInfo(this.un_cure_data[0])
1897
             this.getPatientInfo(this.un_cure_data[0])
1876
           }
1898
           }
1899
+          console.log('1111111this.all_data',this.cure_data);
1877
         }
1900
         }
1878
       })
1901
       })
1879
     },
1902
     },
6541
   display: flex;
6564
   display: flex;
6542
   justify-content: space-between;
6565
   justify-content: space-between;
6543
 }
6566
 }
6567
+.futou{
6568
+  display: inline-block;
6569
+  width: 20px;
6570
+  height: 20px;
6571
+  border-radius: 50px;
6572
+  background: #38d7d7;
6573
+  color: white;
6574
+  text-align: center;
6575
+  position: absolute;
6576
+  right: 5px;
6577
+}
6544
 </style>
6578
 </style>
6545
 
6579
 
6546
 <style lang="scss">
6580
 <style lang="scss">