Browse Source

提交代码

陈少旭 1 year ago
parent
commit
9c80e38d12

+ 4 - 2
src/xt_pages/Dialysisanalysis/albumin/albuminall.vue View File

@@ -389,7 +389,7 @@ export default {
389 389
           this.tableData.push(objtwo)
390 390
 
391 391
           let objthree = {
392
-            value: response.data.data.patient_count / response.data.data.no_check_total,
392
+            value: response.data.data.no_check_total / response.data.data.patient_count,
393 393
             name: '未检查患者',
394 394
             count:response.data.data.no_check_total,
395 395
 
@@ -418,7 +418,9 @@ export default {
418 418
               top: '30%',
419 419
               orient: 'vertical'
420 420
             },
421
-            color: ['#ff7f9f', '#fff67f', '#1e5feb'],
421
+            color: ['#F74587', '#32D79B', '#6590FF'],
422
+
423
+
422 424
             title: {
423 425
               // 设置饼图标题,位置设为顶部居中
424 426
               //   text: "国内院士前五省份图示",

+ 4 - 2
src/xt_pages/Dialysisanalysis/bloodPhosphorus/phosphorusall.vue View File

@@ -468,7 +468,7 @@ export default {
468 468
           this.tableData.push(objtwo)
469 469
 
470 470
           let objthree = {
471
-            value: response.data.data.patient_count / response.data.data.no_check_total,
471
+            value: response.data.data.no_check_total / response.data.data.patient_count,
472 472
             name: '未检查患者',
473 473
             count:response.data.data.no_check_total,
474 474
 
@@ -497,7 +497,9 @@ export default {
497 497
               top: '30%',
498 498
               orient: 'vertical'
499 499
             },
500
-            color: ['#ff7f9f', '#fff67f', '#1e5feb'],
500
+            color: ['#F74587', '#32D79B', '#6590FF'],
501
+
502
+
501 503
             title: {
502 504
               // 设置饼图标题,位置设为顶部居中
503 505
               //   text: "国内院士前五省份图示",

+ 3 - 2
src/xt_pages/Dialysisanalysis/bloodPotassium/potassiumall.vue View File

@@ -388,7 +388,7 @@ export default {
388 388
           this.tableData.push(objtwo)
389 389
 
390 390
           let objthree = {
391
-            value: response.data.data.patient_count / response.data.data.no_check_total,
391
+            value: response.data.data.no_check_total / response.data.data.patient_count,
392 392
             name: '未检查患者',
393 393
             count:response.data.data.no_check_total,
394 394
 
@@ -417,7 +417,8 @@ export default {
417 417
               top: '30%',
418 418
               orient: 'vertical'
419 419
             },
420
-            color: ['#ff7f9f', '#fff67f', '#1e5feb'],
420
+            color: ['#F74587', '#32D79B', '#6590FF'],
421
+
421 422
             title: {
422 423
               // 设置饼图标题,位置设为顶部居中
423 424
               //   text: "国内院士前五省份图示",

+ 7 - 3
src/xt_pages/Dialysisanalysis/calcium/calciumall.vue View File

@@ -370,7 +370,7 @@ export default {
370 370
         if (response.data.state == 1) {
371 371
           this.reference = response.data.data.reference
372 372
 
373
-          this.input = response.data.data.reference.range_min + "<=" + response.data.data.reference.item_name + "<=" + response.data.data.reference.range_max
373
+          this.input = response.data.data.reference.range_min + "<=" + "钙" + "<=" + response.data.data.reference.range_max
374 374
           let objone = {
375 375
             value:  response.data.data.unusual_total / response.data.data.patient_count,
376 376
             name: '不达标值患者',
@@ -389,11 +389,12 @@ export default {
389 389
           this.tableData.push(objtwo)
390 390
 
391 391
           let objthree = {
392
-            value: response.data.data.patient_count / response.data.data.no_check_total,
392
+            value: response.data.data.no_check_total / response.data.data.patient_count,
393 393
             name: '未检查患者',
394 394
             count:response.data.data.no_check_total,
395 395
 
396 396
           }
397
+
397 398
           this.pieData.push(objthree)
398 399
           this.tableData.push(objthree)
399 400
 
@@ -418,7 +419,10 @@ export default {
418 419
               top: '30%',
419 420
               orient: 'vertical'
420 421
             },
421
-            color: ['#ff7f9f', '#fff67f', '#1e5feb'],
422
+            color: ['#F74587', '#32D79B', '#6590FF'],
423
+
424
+
425
+
422 426
             title: {
423 427
               // 设置饼图标题,位置设为顶部居中
424 428
               //   text: "国内院士前五省份图示",

+ 144 - 3
src/xt_pages/Dialysisanalysis/hemoglobin/hemoglobinall.vue View File

@@ -81,6 +81,146 @@
81 81
         </el-table-column>
82 82
       </el-table>
83 83
     </div>
84
+    <el-dialog
85
+      width="1000px" class="registerDialog" :visible.sync="detailVisibility"
86
+      :close-on-click-modal="isClose"
87
+      :close-on-press-escape="isClose"
88
+    >
89
+      <el-row :gutter="25">
90
+        <el-col :span="5">
91
+          <div class="block">
92
+            <span>查询时间:</span>
93
+            <el-select size="small" v-model="time_type_two" placeholder="请选择"
94
+                       style="width:100px;margin-left:5px;" @change="changeItemTwo">
95
+              <el-option
96
+                v-for="item,index in times"
97
+                :key="index"
98
+                :label="item.label"
99
+                :value="item.value">
100
+              </el-option>
101
+            </el-select>
102
+          </div>
103
+        </el-col>
104
+        <el-col :span="10">
105
+          <div>
106
+            <el-date-picker
107
+              style="width: 120px"
108
+              v-model="start_time_one"
109
+              format="yyyy-MM-dd"
110
+              value-format="yyyy-MM-dd"
111
+              type="date"
112
+
113
+              placeholder="选择日期">
114
+            </el-date-picker>
115
+            <span>-</span>
116
+            <el-date-picker
117
+              style="width: 120px"
118
+              v-model="end_time_one"
119
+              format="yyyy-MM-dd"
120
+              value-format="yyyy-MM-dd"
121
+              type="date"
122
+              placeholder="选择日期">
123
+            </el-date-picker>
124
+          </div>
125
+        </el-col>
126
+
127
+        <el-col :span="4">
128
+          <div>
129
+
130
+            <el-select size="small" v-model="statistics_type" placeholder="请选择"
131
+                       style="width:100px;margin-left:5px;">
132
+              <el-option
133
+                v-for="item,index in statistics_types"
134
+                :key="index"
135
+                :label="item.label"
136
+                :value="item.value">
137
+              </el-option>
138
+            </el-select>
139
+
140
+          </div>
141
+        </el-col>
142
+
143
+        <!--        <el-col :span="4">-->
144
+        <!--          <div>-->
145
+        <!--            <el-select size="small" v-model="sort_type" placeholder="请选择"-->
146
+        <!--                       style="width:100px;margin-left:5px;">-->
147
+        <!--              <el-option-->
148
+        <!--                v-for="item,index in sort_types"-->
149
+        <!--                :key="index"-->
150
+        <!--                :label="item.label"-->
151
+        <!--                :value="item.value">-->
152
+        <!--              </el-option>-->
153
+        <!--            </el-select>-->
154
+        <!--          </div>-->
155
+        <!--        </el-col>-->
156
+
157
+        <el-col :span="4">
158
+          <div >
159
+            <el-input v-model="keyword" placeholder="请输入患者姓名或透析号"></el-input>
160
+          </div>
161
+        </el-col>
162
+
163
+        <el-col :span="2">
164
+          <div>
165
+            <el-button @click="getDataTwo()">查询</el-button>
166
+          </div>
167
+        </el-col>
168
+
169
+        <el-col :span="2">
170
+          <div>
171
+            <el-button @click="exportAction()">导出</el-button>
172
+          </div>
173
+        </el-col>
174
+
175
+        <!--        <el-col :span="2">-->
176
+        <!--          <div>-->
177
+        <!--            <el-button @click="getDataTwo()">打印</el-button>-->
178
+        <!--          </div>-->
179
+        <!--        </el-col>-->
180
+
181
+
182
+
183
+
184
+
185
+      </el-row>
186
+
187
+      <el-table
188
+        :data="patientTableData"
189
+        border
190
+        ref="table"
191
+        max-height="500px"
192
+        style="width: 100%">
193
+        <el-table-column
194
+          prop="dialysis_no"
195
+          align="center"
196
+          label="透析号"
197
+        >
198
+        </el-table-column>
199
+        <el-table-column
200
+          prop="name"
201
+          label="患者姓名"
202
+        >
203
+        </el-table-column>
204
+        <el-table-column
205
+          prop="date"
206
+          label="检查日期"
207
+        >
208
+        </el-table-column>
209
+
210
+        <el-table-column
211
+          prop="inspect_value"
212
+          label="结果"
213
+        >
214
+        </el-table-column>
215
+
216
+      </el-table>
217
+
218
+      <div slot="footer" class="dialog-footer">
219
+        <el-button @click="detailVisibility = false">取消</el-button>
220
+        <el-button type="primary" @click="detailVisibility = false">确定</el-button>
221
+      </div>
222
+    </el-dialog>
223
+
84 224
   </div>
85 225
 </template>
86 226
 <script>
@@ -328,7 +468,7 @@ export default {
328 468
           this.tableData.push(objtwo)
329 469
 
330 470
           let objthree = {
331
-            value: response.data.data.patient_count / response.data.data.no_check_total,
471
+            value: response.data.data.no_check_total / response.data.data.patient_count,
332 472
             name: '未检查患者',
333 473
             count:response.data.data.no_check_total,
334 474
 
@@ -357,7 +497,9 @@ export default {
357 497
               top: '30%',
358 498
               orient: 'vertical'
359 499
             },
360
-            color: ['#ff7f9f', '#fff67f', '#1e5feb'],
500
+            color: ['#F74587', '#32D79B', '#6590FF'],
501
+
502
+
361 503
             title: {
362 504
               // 设置饼图标题,位置设为顶部居中
363 505
               //   text: "国内院士前五省份图示",
@@ -512,7 +654,6 @@ export default {
512 654
       return sums
513 655
     },
514 656
     handleClick(row) {
515
-      console.log(row)
516 657
       if(row.name == "不达标值患者"){
517 658
         this.statistics_type = 1
518 659
       }else if(row.name == "达标值患者"){

+ 4 - 2
src/xt_pages/Dialysisanalysis/platelets/plateletsall.vue View File

@@ -387,7 +387,7 @@ export default {
387 387
           this.tableData.push(objtwo)
388 388
 
389 389
           let objthree = {
390
-            value: response.data.data.patient_count / response.data.data.no_check_total,
390
+            value: response.data.data.no_check_total / response.data.data.patient_count,
391 391
             name: '未检查患者',
392 392
             count:response.data.data.no_check_total,
393 393
 
@@ -416,7 +416,9 @@ export default {
416 416
               top: '30%',
417 417
               orient: 'vertical'
418 418
             },
419
-            color: ['#ff7f9f', '#fff67f', '#1e5feb'],
419
+            color: ['#F74587', '#32D79B', '#6590FF'],
420
+
421
+
420 422
             title: {
421 423
               // 设置饼图标题,位置设为顶部居中
422 424
               //   text: "国内院士前五省份图示",

+ 2 - 2
src/xt_pages/Dialysisanalysis/qualitycontrol/totalSstatistics.vue View File

@@ -388,7 +388,7 @@ export default {
388 388
           this.tableData.push(objtwo)
389 389
 
390 390
           let objthree = {
391
-            value: response.data.data.patient_count / response.data.data.no_check_total,
391
+            value: response.data.data.no_check_total / response.data.data.patient_count,
392 392
             name: '未检查患者',
393 393
             count:response.data.data.no_check_total,
394 394
 
@@ -417,7 +417,7 @@ export default {
417 417
               top: '30%',
418 418
               orient: 'vertical'
419 419
             },
420
-            color: ['#ff7f9f', '#fff67f', '#1e5feb'],
420
+            color: ['#F74587', '#32D79B', '#6590FF'],
421 421
             title: {
422 422
               // 设置饼图标题,位置设为顶部居中
423 423
               //   text: "国内院士前五省份图示",

+ 3 - 0
src/xt_pages/outpatientCharges/costComparison.vue View File

@@ -85,6 +85,9 @@ c<template>
85 85
                         type="index"
86 86
                 >
87 87
                 </el-table-column>
88
+              <el-table-column align="center" prop="name" label="对账日期">
89
+                <template slot-scope="scope">{{getTimes(scope.row.ctime)}}</template>
90
+              </el-table-column>
88 91
                 <el-table-column align="center" prop="name" label="对账结果">
89 92
                     <template slot-scope="scope">{{'平'}}</template>
90 93
                 </el-table-column>

+ 37 - 67
src/xt_pages/outpatientTool/labelPrint.vue View File

@@ -104,49 +104,6 @@
104 104
 
105 105
             </el-table>
106 106
 
107
-<!--          <el-table  :data="tableDataTwo" border :row-style="{ color: '#303133' }" ref="table"-->
108
-<!--                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
109
-<!--                    highlight-current-row>-->
110
-
111
-<!--            <el-table-column align="center" prop="name" label="患者名字">-->
112
-<!--              <template slot-scope="scope">{{ scope.row.patient_name }}</template>-->
113
-<!--            </el-table-column>-->
114
-
115
-<!--            <el-table-column align="center" prop="name" label="创建时间">-->
116
-<!--              <template slot-scope="scope">{{scope.row.record_date)}}</template>-->
117
-<!--            </el-table-column>-->
118
-<!--&lt;!&ndash;            <el-table-column align="center" prop="name" label="创建医生">&ndash;&gt;-->
119
-<!--&lt;!&ndash;              <template slot-scope="scope">{{scope.row.doctor_name}}</template>&ndash;&gt;-->
120
-<!--&lt;!&ndash;            </el-table-column>&ndash;&gt;-->
121
-<!--            <el-table-column align="center" prop="name" label="项目名称">-->
122
-<!--              <template slot-scope="scope">-->
123
-<!--                <div>{{scope.row.project_name}}</div>-->
124
-<!--              </template>-->
125
-<!--            </el-table-column>-->
126
-
127
-<!--            <el-table-column-->
128
-<!--              align="center"-->
129
-<!--              label="操作"-->
130
-<!--              width="180"-->
131
-<!--              class-name="small-padding fixed-width"-->
132
-<!--            >-->
133
-<!--              <template slot-scope="scope">-->
134
-<!--                <el-tooltip class="item" effect="dark" content="打印" placement="top">-->
135
-<!--                  <el-button-->
136
-<!--                    type="primary"-->
137
-<!--                    size="small"-->
138
-<!--                    icon="el-icon-printer"-->
139
-<!--                    @click="Print(scope.row, scope.$index)"-->
140
-<!--                  >-->
141
-
142
-<!--                    &lt;!&ndash; icon="el-icon-edit-outline" &ndash;&gt;-->
143
-<!--                  </el-button>-->
144
-<!--                </el-tooltip>-->
145
-<!--              </template>-->
146
-<!--            </el-table-column>-->
147
-
148
-
149
-<!--          </el-table>-->
150 107
 
151 108
             <el-pagination
152 109
               v-if="isShow"
@@ -177,11 +134,11 @@
177 134
                               <div>{{getTime(current_ctime,'{m}-{d}')}}</div>
178 135
                               <div>{{getTime(current_ctime,'{h}:{i}')}}</div>
179 136
                           </div>
180
-                          <img style="width:300px;height:200px;margin-left:10px;" id="barcode">
137
+                          <img  v-if="$store.getters.xt_user.org.id != 0 &&  $store.getters.xt_user.org.id != 10138" style="width:300px;height:200px;margin-left:10px;" id="barcode">
181 138
                       </div>
182 139
                       <div style="margin-bottom:5px;">{{current_number}}</div>
183 140
                       <div style="display:flex;">
184
-                          <div style="padding-left:20px;">{{current_project_name}}</div>
141
+                          <div style="font-size:24px;padding-left:20px;">{{current_project_name}}</div>
185 142
                           <div style="font-size:24px;margin-left:20px;">{{current_name}}</div>
186 143
                       </div>
187 144
                   </div>
@@ -250,6 +207,10 @@
250 207
     },
251 208
     methods: {
252 209
       printTwo(){
210
+        if(this.selecting_schs.length == 0){
211
+          this.$message.error("请选择需要组合打印的记录")
212
+          return
213
+        }
253 214
         let patient_ids = []
254 215
         for(let i = 0; i < this.selecting_schs.length; i++){
255 216
           patient_ids.push(this.selecting_schs[i].patient_id)
@@ -259,43 +220,51 @@
259 220
           this.$message.error("请选择同一患者打印")
260 221
           return
261 222
         }else{
262
-          let ids = []
263 223
           var name = ""
264 224
           var patient_name = ""
265 225
           var team_ids = ""
266
-          var project_ids = ""
267
-
226
+          var ids = ""
268 227
 
228
+          var project_ids = ""
269 229
           for(let i = 0; i < this.selecting_schs.length; i++){
270
-            ids.push(this.selecting_schs[i].id)
230
+            if(ids.length == 0){
231
+                ids = this.selecting_schs[i].id
232
+            }else{
233
+                ids = ids + "," + this.selecting_schs[i].id
234
+            }
271 235
             patient_name = this.selecting_schs[0].patient_name
272 236
             if(name.length == 0){
273 237
               name = this.selecting_schs[i].project_name
274 238
             }else{
275 239
               name = name + "," + this.selecting_schs[i].project_name
276
-
277 240
             }
278
-
279 241
             if(team_ids.length == 0){
280
-              if(this.selecting_schs[i].team_id > 0) {
281
-                team_ids = this.selecting_schs[i].team_id
242
+              if(this.selecting_schs[i].item_id > 0) {
243
+                team_ids = this.selecting_schs[i].item_id
282 244
               }
283 245
             }else{
284
-              if(this.selecting_schs[i].team_id > 0) {
285
-                team_ids = team_ids + "," + this.selecting_schs[i].team_id
246
+              if(this.selecting_schs[i].item_id > 0) {
247
+                team_ids = team_ids + "," + this.selecting_schs[i].item_id
286 248
               }
287 249
             }
288 250
 
289 251
             if(project_ids.length == 0){
290
-              if(this.selecting_schs[i].team_id > 0) {
291
-                project_ids = this.selecting_schs[i].project_ids
252
+              console.log(this.selecting_schs[i])
253
+              if(this.selecting_schs[i].item_id == 0) {
254
+                project_ids = this.selecting_schs[i].project_id
255
+                console.log(project_ids)
256
+
292 257
               }
293 258
             }else{
294
-              if(this.selecting_schs[i].team_id > 0) {
295
-                project_ids = project_ids + "," + this.selecting_schs[i].project_ids
259
+              if(this.selecting_schs[i].item_id == 0) {
260
+                project_ids = project_ids + "," + this.selecting_schs[i].project_id
261
+                console.log(project_ids)
262
+
296 263
               }
297 264
             }
298 265
           }
266
+          console.log(project_ids)
267
+
299 268
           let params = {
300 269
             patient_id: patient_ids[0],
301 270
             ids: ids,
@@ -341,6 +310,7 @@
341 310
                   is_team:0,
342 311
                   record_date:this.chargeDate,
343 312
                 }
313
+
344 314
                 this.current_params = params
345 315
                 console.log(this.current_params)
346 316
                 if(!this.current_params.is_combination_print){
@@ -361,10 +331,10 @@
361 331
                       this.$message.error(response.data.msg)
362 332
                       return false
363 333
                     } else {
364
-                      this.current_ctime = row.ctime
365
-                      this.current_number = row.number
366
-                      this.current_project_name = row.project_name
367
-                      this.current_name = row.patient_name
334
+                      this.current_ctime = response.data.data.hlpsi.ctime
335
+                      this.current_number = ""
336
+                      this.current_project_name = name
337
+                      this.current_name = patient_name
368 338
                       this.$nextTick(() => {
369 339
                         JsBarcode('#barcode',response.data.data.hlpsi.id, {
370 340
                           format: 'CODE39',
@@ -392,10 +362,10 @@
392 362
                       this.$message.error(response.data.msg)
393 363
                       return false
394 364
                     } else {
395
-                      this.current_ctime = row.ctime
396
-                      this.current_number = row.number
397
-                      this.current_project_name = row.project_name
398
-                      this.current_name = row.patient_name
365
+                      this.current_ctime =  response.data.data.hlpsi.ctime
366
+                      this.current_number =""
367
+                      this.current_project_name = name
368
+                      this.current_name = patient_name
399 369
                       this.$nextTick(() => {
400 370
                         JsBarcode('#barcode',response.data.data.hlpsi.id, {
401 371
                           format: 'CODE39',