瀏覽代碼

提交代码

陈少旭 2 年之前
父節點
當前提交
9c80e38d12

+ 4 - 2
src/xt_pages/Dialysisanalysis/albumin/albuminall.vue 查看文件

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

+ 4 - 2
src/xt_pages/Dialysisanalysis/bloodPhosphorus/phosphorusall.vue 查看文件

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

+ 3 - 2
src/xt_pages/Dialysisanalysis/bloodPotassium/potassiumall.vue 查看文件

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

+ 7 - 3
src/xt_pages/Dialysisanalysis/calcium/calciumall.vue 查看文件

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

+ 144 - 3
src/xt_pages/Dialysisanalysis/hemoglobin/hemoglobinall.vue 查看文件

81
         </el-table-column>
81
         </el-table-column>
82
       </el-table>
82
       </el-table>
83
     </div>
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
   </div>
224
   </div>
85
 </template>
225
 </template>
86
 <script>
226
 <script>
328
           this.tableData.push(objtwo)
468
           this.tableData.push(objtwo)
329
 
469
 
330
           let objthree = {
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
             name: '未检查患者',
472
             name: '未检查患者',
333
             count:response.data.data.no_check_total,
473
             count:response.data.data.no_check_total,
334
 
474
 
357
               top: '30%',
497
               top: '30%',
358
               orient: 'vertical'
498
               orient: 'vertical'
359
             },
499
             },
360
-            color: ['#ff7f9f', '#fff67f', '#1e5feb'],
500
+            color: ['#F74587', '#32D79B', '#6590FF'],
501
+
502
+
361
             title: {
503
             title: {
362
               // 设置饼图标题,位置设为顶部居中
504
               // 设置饼图标题,位置设为顶部居中
363
               //   text: "国内院士前五省份图示",
505
               //   text: "国内院士前五省份图示",
512
       return sums
654
       return sums
513
     },
655
     },
514
     handleClick(row) {
656
     handleClick(row) {
515
-      console.log(row)
516
       if(row.name == "不达标值患者"){
657
       if(row.name == "不达标值患者"){
517
         this.statistics_type = 1
658
         this.statistics_type = 1
518
       }else if(row.name == "达标值患者"){
659
       }else if(row.name == "达标值患者"){

+ 4 - 2
src/xt_pages/Dialysisanalysis/platelets/plateletsall.vue 查看文件

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

+ 2 - 2
src/xt_pages/Dialysisanalysis/qualitycontrol/totalSstatistics.vue 查看文件

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

+ 3 - 0
src/xt_pages/outpatientCharges/costComparison.vue 查看文件

85
                         type="index"
85
                         type="index"
86
                 >
86
                 >
87
                 </el-table-column>
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
                 <el-table-column align="center" prop="name" label="对账结果">
91
                 <el-table-column align="center" prop="name" label="对账结果">
89
                     <template slot-scope="scope">{{'平'}}</template>
92
                     <template slot-scope="scope">{{'平'}}</template>
90
                 </el-table-column>
93
                 </el-table-column>

+ 37 - 67
src/xt_pages/outpatientTool/labelPrint.vue 查看文件

104
 
104
 
105
             </el-table>
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
             <el-pagination
108
             <el-pagination
152
               v-if="isShow"
109
               v-if="isShow"
177
                               <div>{{getTime(current_ctime,'{m}-{d}')}}</div>
134
                               <div>{{getTime(current_ctime,'{m}-{d}')}}</div>
178
                               <div>{{getTime(current_ctime,'{h}:{i}')}}</div>
135
                               <div>{{getTime(current_ctime,'{h}:{i}')}}</div>
179
                           </div>
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
                       </div>
138
                       </div>
182
                       <div style="margin-bottom:5px;">{{current_number}}</div>
139
                       <div style="margin-bottom:5px;">{{current_number}}</div>
183
                       <div style="display:flex;">
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
                           <div style="font-size:24px;margin-left:20px;">{{current_name}}</div>
142
                           <div style="font-size:24px;margin-left:20px;">{{current_name}}</div>
186
                       </div>
143
                       </div>
187
                   </div>
144
                   </div>
250
     },
207
     },
251
     methods: {
208
     methods: {
252
       printTwo(){
209
       printTwo(){
210
+        if(this.selecting_schs.length == 0){
211
+          this.$message.error("请选择需要组合打印的记录")
212
+          return
213
+        }
253
         let patient_ids = []
214
         let patient_ids = []
254
         for(let i = 0; i < this.selecting_schs.length; i++){
215
         for(let i = 0; i < this.selecting_schs.length; i++){
255
           patient_ids.push(this.selecting_schs[i].patient_id)
216
           patient_ids.push(this.selecting_schs[i].patient_id)
259
           this.$message.error("请选择同一患者打印")
220
           this.$message.error("请选择同一患者打印")
260
           return
221
           return
261
         }else{
222
         }else{
262
-          let ids = []
263
           var name = ""
223
           var name = ""
264
           var patient_name = ""
224
           var patient_name = ""
265
           var team_ids = ""
225
           var team_ids = ""
266
-          var project_ids = ""
267
-
226
+          var ids = ""
268
 
227
 
228
+          var project_ids = ""
269
           for(let i = 0; i < this.selecting_schs.length; i++){
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
             patient_name = this.selecting_schs[0].patient_name
235
             patient_name = this.selecting_schs[0].patient_name
272
             if(name.length == 0){
236
             if(name.length == 0){
273
               name = this.selecting_schs[i].project_name
237
               name = this.selecting_schs[i].project_name
274
             }else{
238
             }else{
275
               name = name + "," + this.selecting_schs[i].project_name
239
               name = name + "," + this.selecting_schs[i].project_name
276
-
277
             }
240
             }
278
-
279
             if(team_ids.length == 0){
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
             }else{
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
             if(project_ids.length == 0){
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
             }else{
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
           let params = {
268
           let params = {
300
             patient_id: patient_ids[0],
269
             patient_id: patient_ids[0],
301
             ids: ids,
270
             ids: ids,
341
                   is_team:0,
310
                   is_team:0,
342
                   record_date:this.chargeDate,
311
                   record_date:this.chargeDate,
343
                 }
312
                 }
313
+
344
                 this.current_params = params
314
                 this.current_params = params
345
                 console.log(this.current_params)
315
                 console.log(this.current_params)
346
                 if(!this.current_params.is_combination_print){
316
                 if(!this.current_params.is_combination_print){
361
                       this.$message.error(response.data.msg)
331
                       this.$message.error(response.data.msg)
362
                       return false
332
                       return false
363
                     } else {
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
                       this.$nextTick(() => {
338
                       this.$nextTick(() => {
369
                         JsBarcode('#barcode',response.data.data.hlpsi.id, {
339
                         JsBarcode('#barcode',response.data.data.hlpsi.id, {
370
                           format: 'CODE39',
340
                           format: 'CODE39',
392
                       this.$message.error(response.data.msg)
362
                       this.$message.error(response.data.msg)
393
                       return false
363
                       return false
394
                     } else {
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
                       this.$nextTick(() => {
369
                       this.$nextTick(() => {
400
                         JsBarcode('#barcode',response.data.data.hlpsi.id, {
370
                         JsBarcode('#barcode',response.data.data.hlpsi.id, {
401
                           format: 'CODE39',
371
                           format: 'CODE39',