Browse Source

10月31 腹透

yq1 5 months ago
parent
commit
b564894382

+ 39 - 17
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -57,10 +57,14 @@
57 57
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
58 58
                     highlight-current-row ref="tab"
59 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 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 68
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
65 69
               </template>
66 70
             </el-table-column>
@@ -4793,7 +4797,8 @@ export default {
4793 4797
                     order_number: '',
4794 4798
                     his_patient_id: 0,
4795 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 4804
                   this.all_table_data.push(obj)
@@ -4812,7 +4817,8 @@ export default {
4812 4817
                         order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4813 4818
                         order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4814 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 4824
                       this.all_table_data.push(obj)
@@ -4828,7 +4834,8 @@ export default {
4828 4834
                       order_number: '',
4829 4835
                       order_id: 0,
4830 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 4840
                     this.all_table_data.push(obj)
4834 4841
 
@@ -4847,7 +4854,8 @@ export default {
4847 4854
                         order_number: '',
4848 4855
                         order_id: 0,
4849 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 4860
                       this.all_table_data.push(obj)
4853 4861
                     } else {
@@ -4862,7 +4870,8 @@ export default {
4862 4870
                           order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4863 4871
                           order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4864 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 4876
                         this.all_table_data.push(obj)
4868 4877
                       }
@@ -5043,7 +5052,7 @@ export default {
5043 5052
           let one_count = 0
5044 5053
           let two_count = 0
5045 5054
           let three_count = 0
5046
-          console.log('vvvvvvvvvvvvv',response.data.data);
5055
+          console.log('vvvvvvvvvvvvv1211',response.data.data);
5047 5056
           for (let i = 0; i < response.data.data.list.length; i++) {
5048 5057
             if (response.data.data.list[i].his_patient.length == 0) { //没挂号
5049 5058
               if (response.data.data.list[i].prescription.length > 0) {
@@ -5056,8 +5065,8 @@ export default {
5056 5065
                   his_patient_id: 0,
5057 5066
                   prescription: response.data.data.list[i].prescription,
5058 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 5072
                 this.all_table_data.push(obj)
@@ -5077,8 +5086,8 @@ export default {
5077 5086
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
5078 5087
                       prescription: response.data.data.list[i].prescription,
5079 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 5092
                     this.all_table_data.push(obj)
5084 5093
 
@@ -5094,8 +5103,8 @@ export default {
5094 5103
                     order_id: 0,
5095 5104
                     prescription: response.data.data.list[i].prescription,
5096 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 5109
                   this.all_table_data.push(obj)
5101 5110
 
@@ -5115,7 +5124,8 @@ export default {
5115 5124
                       order_id: 0,
5116 5125
                       prescription: response.data.data.list[i].prescription,
5117 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 5130
                     this.all_table_data.push(obj)
5121 5131
                   } else {
@@ -5131,7 +5141,8 @@ export default {
5131 5141
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
5132 5142
                         prescription: response.data.data.list[i].prescription,
5133 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 5148
                       this.all_table_data.push(obj)
@@ -6739,6 +6750,17 @@ li {
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 6764
 </style>
6743 6765
 
6744 6766
 <style lang="scss">

+ 48 - 14
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -58,7 +58,11 @@
58 58
                     ref="tab"
59 59
           >
60 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 66
             </el-table-column>
63 67
             <el-table-column prop="name" label="就诊号" width="110">
64 68
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
@@ -74,7 +78,10 @@
74 78
                     ref="tab"
75 79
           >
76 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 85
             </el-table-column>
79 86
             <el-table-column prop="name" label="就诊号" width="110">
80 87
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
@@ -90,7 +97,10 @@
90 97
                     ref="tab"
91 98
           >
92 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 104
             </el-table-column>
95 105
             <el-table-column prop="name" label="就诊号" width="110">
96 106
               <template slot-scope="scope">{{ scope.row.number ? scope.row.number : '' }}
@@ -934,6 +944,8 @@ export default {
934 944
           return false
935 945
         } else {
936 946
           //挂号
947
+          console.log('response.data.data',response.data.data);
948
+          
937 949
           for (let i = 0; i < response.data.data.list.length; i++) {
938 950
             for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
939 951
               //未就诊
@@ -942,7 +954,8 @@ export default {
942 954
                   name: response.data.data.list[i].his_patient[b].name,
943 955
                   number: response.data.data.list[i].his_patient[b].number,
944 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 960
                 this.un_cure_data.push(obj)
948 961
               }
@@ -1157,7 +1170,8 @@ export default {
1157 1170
                   number: response.data.data.list[i].his_patient[b].number,
1158 1171
                   id: response.data.data.list[i].id,
1159 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 1176
                 this.un_cure_data.push(obj)
1163 1177
                 console.log('vvvvv', this.un_cure_data)
@@ -1169,7 +1183,8 @@ export default {
1169 1183
                   number: response.data.data.list[i].his_patient[b].number,
1170 1184
                   id: response.data.data.list[i].id,
1171 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 1189
                 this.cure_data.push(obj)
1175 1190
               }
@@ -1187,7 +1202,8 @@ export default {
1187 1202
                 number: response.data.data.list_two[i].his_patient.number,
1188 1203
                 id: response.data.data.list_two[i].id,
1189 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 1208
               this.un_cure_data.push(obj)
1193 1209
               // console.log('aaaaa',this.un_cure_data);
@@ -1200,7 +1216,8 @@ export default {
1200 1216
                 number: response.data.data.list_two[i].his_patient.number,
1201 1217
                 id: response.data.data.list_two[i].id,
1202 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 1222
               this.cure_data.push(obj)
1206 1223
             }
@@ -1787,7 +1804,7 @@ export default {
1787 1804
           this.$message.error(response.data.msg)
1788 1805
           return false
1789 1806
         } else {
1790
-          console.log('getSchedulePatientList', response.data.data.list_two)
1807
+          console.log('getSchedulePatientList', response.data.data)
1791 1808
           //排班
1792 1809
           for (let i = 0; i < response.data.data.list_two.length; i++) {
1793 1810
             //未就诊
@@ -1797,7 +1814,8 @@ export default {
1797 1814
                 number: response.data.data.list_two[i].his_patient.number,
1798 1815
                 id: response.data.data.list_two[i].id,
1799 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 1820
               // console.log('6666',obj);
1803 1821
               this.un_cure_data.push(obj)
@@ -1810,7 +1828,8 @@ export default {
1810 1828
                 number: response.data.data.list_two[i].his_patient.number,
1811 1829
                 id: response.data.data.list_two[i].id,
1812 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 1834
               this.cure_data.push(obj)
1816 1835
             }
@@ -1826,7 +1845,8 @@ export default {
1826 1845
                   number: response.data.data.list[i].his_patient[b].number,
1827 1846
                   id: response.data.data.list[i].id,
1828 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 1851
                 // console.log('8888',obj);
1832 1852
                 this.un_cure_data.push(obj)
@@ -1838,7 +1858,8 @@ export default {
1838 1858
                   number: response.data.data.list[i].his_patient[b].number,
1839 1859
                   id: response.data.data.list[i].id,
1840 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 1864
                 this.cure_data.push(obj)
1844 1865
               }
@@ -1861,7 +1882,8 @@ export default {
1861 1882
 
1862 1883
           this.all_data = this.all_data.concat(this.cure_data)
1863 1884
           this.all_data = this.all_data.concat(this.un_cure_data)
1864
-
1885
+          
1886
+          
1865 1887
           this.cure_data_two = this.cure_data
1866 1888
           this.un_cure_data_two = this.un_cure_data
1867 1889
           this.all_data_two = this.all_data
@@ -1874,6 +1896,7 @@ export default {
1874 1896
             this.oldCurrentRow = this.un_cure_data[0]
1875 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,6 +6564,17 @@ p {
6541 6564
   display: flex;
6542 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 6578
 </style>
6545 6579
 
6546 6580
 <style lang="scss">