Browse Source

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

28169 9 months ago
parent
commit
50bf045a1d

+ 55 - 40
src/xt_pages/dialysis/template/DialysisPrintOrderSeventynine.vue View File

36
                     {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
36
                     {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
37
                   </div>
37
                   </div>
38
                   <div style="flex: 1;">
38
                   <div style="flex: 1;">
39
-                    透析次数:  {{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ? 
39
+                    透析次数:  {{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ?
40
                                 patientInfo.total_dialysis + patientInfo.user_sys_before_count : "/" }}
40
                                 patientInfo.total_dialysis + patientInfo.user_sys_before_count : "/" }}
41
                   </div>
41
                   </div>
42
                 </div>
42
                 </div>
62
                   {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : ""}}
62
                   {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : ""}}
63
                   mmHg
63
                   mmHg
64
                 </div>
64
                 </div>
65
-                
65
+
66
               </td>
66
               </td>
67
             </tr>
67
             </tr>
68
 
68
 
133
                   <div style="flex: 1;">
133
                   <div style="flex: 1;">
134
                     体重增加量:{{ (predialysis.weight_before - assessmentafter.weight_after).toFixed(1) }}kg
134
                     体重增加量:{{ (predialysis.weight_before - assessmentafter.weight_after).toFixed(1) }}kg
135
                   </div>
135
                   </div>
136
-                 
136
+
137
                 </div>
137
                 </div>
138
               </td>
138
               </td>
139
             </tr>
139
             </tr>
200
             </td>
200
             </td>
201
             <td style="">
201
             <td style="">
202
               透析液:钾:
202
               透析液:钾:
203
-              <span style="">2.0</span>mmol/L&nbsp; 
203
+              <span style="">2.0</span>mmol/L&nbsp;
204
               钙:
204
               钙:
205
-              <span style="">1.5</span>mmol/L&nbsp; 
205
+              <span style="">1.5</span>mmol/L&nbsp;
206
               碳酸氢盐:
206
               碳酸氢盐:
207
               <span >32</span>mmol/L&nbsp;
207
               <span >32</span>mmol/L&nbsp;
208
               钠:
208
               钠:
215
             <td colspan="3">
215
             <td colspan="3">
216
               <div style="display: inline-block;line-height: 30px;">
216
               <div style="display: inline-block;line-height: 30px;">
217
                 血管通路:
217
                 血管通路:
218
-          
218
+
219
                 {{ predialysis.blood_access_part_id ? predialysis.blood_access_part_id :'/' }}
219
                 {{ predialysis.blood_access_part_id ? predialysis.blood_access_part_id :'/' }}
220
                 {{ predialysis.blood_access_part_opera_name ? predialysis.blood_access_part_opera_name :'/' }}
220
                 {{ predialysis.blood_access_part_opera_name ? predialysis.blood_access_part_opera_name :'/' }}
221
               </div>&nbsp;&nbsp;
221
               </div>&nbsp;&nbsp;
289
                   <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
289
                   <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
290
                 </span>
290
                 </span>
291
               </td>
291
               </td>
292
-              
292
+
293
               <td>
293
               <td>
294
                 {{ monitor.end }} {{ monitor.symptom }} &nbsp;
294
                 {{ monitor.end }} {{ monitor.symptom }} &nbsp;
295
                 {{monitor.dispose}} &nbsp;{{ monitor.result }}
295
                 {{monitor.dispose}} &nbsp;{{ monitor.result }}
796
           this.assessmentafter = response.data.data.assessmentAfterDislysis;
796
           this.assessmentafter = response.data.data.assessmentAfterDislysis;
797
           console.log("上次透后体重", this.assessmentafter);
797
           console.log("上次透后体重", this.assessmentafter);
798
           // var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
798
           // var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
799
-          
799
+
800
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;
800
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;
801
           console.log("透后评估", this.afterdialysis);
801
           console.log("透后评估", this.afterdialysis);
802
           this.operators = response.data.data.operators;
802
           this.operators = response.data.data.operators;
997
 
997
 
998
           this.advices = response.data.data.advices;
998
           this.advices = response.data.data.advices;
999
 
999
 
1000
-          
1000
+
1001
           this.monitors = response.data.data.monitors;
1001
           this.monitors = response.data.data.monitors;
1002
           console.log("透析监测", this.monitors);
1002
           console.log("透析监测", this.monitors);
1003
           this.summary = response.data.data.summary;
1003
           this.summary = response.data.data.summary;
1174
             }
1174
             }
1175
           }
1175
           }
1176
           console.log(this.advice_groups);
1176
           console.log(this.advice_groups);
1177
-          
1177
+
1178
           var advices = response.data.data.advices;
1178
           var advices = response.data.data.advices;
1179
-         
1179
+          var projects = response.data.data.projects
1180
           var newDocArr= []
1180
           var newDocArr= []
1181
+          var projectarr = []
1181
           for(let i=0;i<advices.length;i++){
1182
           for(let i=0;i<advices.length;i++){
1182
             console.log("hhahahahh",advices[i].advice_name.indexOf("0.9%氯化钠注射液"))
1183
             console.log("hhahahahh",advices[i].advice_name.indexOf("0.9%氯化钠注射液"))
1183
             console.log("jjjjjjjjj",advices[i].delivery_way.indexOf("管路预冲"))
1184
             console.log("jjjjjjjjj",advices[i].delivery_way.indexOf("管路预冲"))
1185
               newDocArr.push(advices[i])
1186
               newDocArr.push(advices[i])
1186
            }
1187
            }
1187
           }
1188
           }
1188
-          console.log("newDocArr----------------------",newDocArr)
1189
-        
1189
+          for(let i in projects){
1190
+            if(projects[i].type ==2){
1191
+              projectarr.push(projects[i])
1192
+            }
1193
+          }
1194
+
1195
+          console.log("newDocArr----------------------",projectarr)
1190
           var doctorAdevieInfo = response.data.data.doctorAdevieInfo
1196
           var doctorAdevieInfo = response.data.data.doctorAdevieInfo
1191
-        
1192
-         
1193
-       
1194
           var tableAdvice = newDocArr.concat(doctorAdevieInfo);
1197
           var tableAdvice = newDocArr.concat(doctorAdevieInfo);
1195
-        
1198
+          if(projectarr.length>0){
1199
+            for(let i in projectarr){
1200
+              if(projectarr[i].team!= "undefined" && projectarr[i].team.id >0){
1201
+                  projectarr[i].project_team = projectarr[i].team.project_team
1202
+                  projectarr[i].project_team_id = projectarr[i].team.id
1203
+                  projectarr[i].start_time = projectarr[i].start_time
1204
+                  projectarr[i].single_dose = projectarr[i].single_dose
1205
+                  projectarr[i].single_dose_unit = projectarr[i].unit
1206
+                  projectarr[i].execution_time = projectarr[i].execution_time
1207
+                  projectarr[i].execution_staff= projectarr[i].execution_staff
1208
+                  projectarr[i].advice_name =  projectarr[i].team.project_team
1209
+                  projectarr[i].advice_doctor = projectarr[i].doctor
1210
+
1211
+                  tableAdvice.push(projectarr[i])
1212
+                  // this.doctor_advices.push(projectarr[i])
1213
+                  // this.doctor_advices_2.push(this.project[i])
1214
+                }else{
1215
+                  projectarr[i].project_team = projectarr[i].project.project_name
1216
+                  projectarr[i].advice_name = projectarr[i].project.project_name
1217
+                  projectarr[i].start_time = projectarr[i].start_time
1218
+                  projectarr[i].single_dose = projectarr[i].single_dose
1219
+                  projectarr[i].single_dose_unit = projectarr[i].unit
1220
+                  projectarr[i].execution_time = projectarr[i].execution_time
1221
+                  projectarr[i].execution_staff= projectarr[i].execution_staff
1222
+                  projectarr[i].advice_doctor = projectarr[i].doctor
1223
+                  tableAdvice.push(projectarr[i])
1224
+                  // this.doctor_advices.push(projectarr[i])
1225
+                  // this.doctor_advices_2.push(this.projects[i])
1226
+                }
1227
+            }
1228
+          }
1196
           console.log('response.data.data', response.data.data)
1229
           console.log('response.data.data', response.data.data)
1197
           if (tableAdvice.length === 0) {
1230
           if (tableAdvice.length === 0) {
1198
-            console.log('1111111',tableAdvice.length);
1199
             var obj = { advice_name: "", start_time: "" };
1231
             var obj = { advice_name: "", start_time: "" };
1200
             var obj1 = { advice_name: "", start_time: "" };
1232
             var obj1 = { advice_name: "", start_time: "" };
1201
             var obj2 = { advice_name: "", start_time: "" };
1233
             var obj2 = { advice_name: "", start_time: "" };
1216
             return this.tableAdvice
1248
             return this.tableAdvice
1217
           }
1249
           }
1218
           if (tableAdvice.length === 1) {
1250
           if (tableAdvice.length === 1) {
1219
-            console.log('2222222',tableAdvice.length);
1251
+
1220
             var obj = { advice_name: "", start_time: "" };
1252
             var obj = { advice_name: "", start_time: "" };
1221
             var obj1 = { advice_name: "", start_time: "" };
1253
             var obj1 = { advice_name: "", start_time: "" };
1222
             var obj2 = { advice_name: "", start_time: "" };
1254
             var obj2 = { advice_name: "", start_time: "" };
1235
             // return this.tableAdvice
1267
             // return this.tableAdvice
1236
           }
1268
           }
1237
           if (tableAdvice.length === 2) {
1269
           if (tableAdvice.length === 2) {
1238
-            console.log('333333',tableAdvice.length);
1270
+
1239
             var obj = { advice_name: "", start_time: "" };
1271
             var obj = { advice_name: "", start_time: "" };
1240
             var obj1 = { advice_name: "", start_time: "" };
1272
             var obj1 = { advice_name: "", start_time: "" };
1241
             var obj2 = { advice_name: "", start_time: "" };
1273
             var obj2 = { advice_name: "", start_time: "" };
1252
             // return this.tableAdvice
1284
             // return this.tableAdvice
1253
           }
1285
           }
1254
           if (tableAdvice.length === 3) {
1286
           if (tableAdvice.length === 3) {
1255
-            console.log('444444',tableAdvice.length);
1287
+
1256
             var obj = { advice_name: "", start_time: "" };
1288
             var obj = { advice_name: "", start_time: "" };
1257
             var obj1 = { advice_name: "", start_time: "" };
1289
             var obj1 = { advice_name: "", start_time: "" };
1258
             // var obj2 = { advice_name: "", start_time: "" };
1290
             // var obj2 = { advice_name: "", start_time: "" };
1267
             // return this.tableAdvice
1299
             // return this.tableAdvice
1268
           }
1300
           }
1269
           if (tableAdvice.length === 4) {
1301
           if (tableAdvice.length === 4) {
1270
-            console.log('5555555',tableAdvice.length);
1302
+
1271
             var obj = { advice_name: "", start_time: "" };
1303
             var obj = { advice_name: "", start_time: "" };
1272
             // var obj1 = { advice_name: "", start_time: "" };
1304
             // var obj1 = { advice_name: "", start_time: "" };
1273
             // var obj2 = { advice_name: "", start_time: "" };
1305
             // var obj2 = { advice_name: "", start_time: "" };
1280
             // return this.tableAdvice
1312
             // return this.tableAdvice
1281
           }
1313
           }
1282
           if (tableAdvice.length === 5) {
1314
           if (tableAdvice.length === 5) {
1283
-            console.log('6666666',tableAdvice.length);
1284
-            // var obj = { advice_name: "", start_time: "" };
1285
-            // var obj1 = { advice_name: "", start_time: "" };
1286
-            // var obj2 = { advice_name: "", start_time: "" };
1287
 
1315
 
1288
-            // tableAdvice.push(obj);
1289
-            // tableAdvice.push(obj1);
1290
-            // tableAdvice.push(obj2);
1291
 
1316
 
1292
             this.tableAdvice = tableAdvice;
1317
             this.tableAdvice = tableAdvice;
1293
             // return this.tableAdvice
1318
             // return this.tableAdvice
1294
           }
1319
           }
1295
-          // if (tableAdvice.length === 6) {
1296
-          //   console.log('6666666',tableAdvice.length);
1297
-          //   var obj = { advice_name: "", start_time: "" };
1298
-          //   tableAdvice.push(obj);
1299
-
1300
-          //   this.tableAdvice = tableAdvice;
1301
-          //   // return this.tableAdvice
1302
-          // }
1303
-
1304
           if (tableAdvice.length >5) {
1320
           if (tableAdvice.length >5) {
1305
-            console.log('777777',tableAdvice);
1306
             this.tableAdvice = tableAdvice;
1321
             this.tableAdvice = tableAdvice;
1307
 
1322
 
1308
           }
1323
           }
1309
-          console.log('医嘱',this.tableAdvice.length);
1324
+          console.log('医嘱',this.tableAdvice);
1310
         } else {
1325
         } else {
1311
           this.loading = false;
1326
           this.loading = false;
1312
           this.$message.error("请求数据失败");
1327
           this.$message.error("请求数据失败");

+ 103 - 2
src/xt_pages/fapiao/settleDetail.vue View File

11
           margin-bottom: 10px;
11
           margin-bottom: 10px;
12
         ">
12
         ">
13
         <div>
13
         <div>
14
+          <el-button size="small" type="primary"
15
+                     @click="login">登录
16
+          </el-button>
14
           <el-button size="small" type="primary"
17
           <el-button size="small" type="primary"
15
                      @click="query">查询
18
                      @click="query">查询
16
           </el-button>
19
           </el-button>
20
+          <el-button size="small" type="primary"
21
+                     @click="login">短信登录税局
22
+          </el-button>
17
           <el-button size="small" type="primary"
23
           <el-button size="small" type="primary"
18
                      @click="auth">认证
24
                      @click="auth">认证
19
           </el-button>
25
           </el-button>
180
       </el-pagination>
186
       </el-pagination>
181
     </div>
187
     </div>
182
 
188
 
183
-
189
+    <el-dialog
190
+      title="登录"
191
+      :visible.sync="login_dialogVisible"
192
+      width="40%"
193
+    >
194
+      <div>
195
+        <el-form :rules="rules" :label-position="labelPosition" label-width="100px" :model="formLabelAlign">
196
+          <el-form-item label="税局账号">
197
+            <el-input v-model="formLabelAlign.name"></el-input>
198
+          </el-form-item>
199
+          <el-form-item label="税局密码">
200
+            <el-input v-model="formLabelAlign.region"></el-input>
201
+          </el-form-item>
202
+          <el-form-item label="手机号码">
203
+            <el-input v-model="formLabelAlign.type"></el-input>
204
+          </el-form-item>
205
+          <el-form-item label="短信验证码" prop="verify">
206
+            <div style="display: inline-block;width: 50%;">
207
+              <el-input v-model="formLabelAlign.verify"></el-input>
208
+            </div>
209
+            <div style="display: inline-block;">
210
+              <el-button :disabled="countdown > 0" @click="verify_click">{{countdown > 0?countdown:'获取短信验证码'}}</el-button>
211
+            </div>
212
+          </el-form-item>
213
+        </el-form>
214
+      </div>
215
+      <span slot="footer" class="dialog-footer">
216
+        <el-button @click="login_dialogVisible = false">取 消</el-button>
217
+        <el-button type="primary" @click="login_dialogVisible = false">确 定</el-button>
218
+      </span>
219
+    </el-dialog>
220
+
221
+    <!-- 二维码 -->
222
+    <el-dialog
223
+      title="提示"
224
+      :visible.sync="qr_dialogVisible"
225
+      width="30%"
226
+      center
227
+    >
228
+      <div style="margin: auto;width: 120px;">
229
+        <div class="qrcode" ref="qrCodeUrl"></div>
230
+      </div>
231
+      <span slot="footer" class="dialog-footer">
232
+        <el-button @click="qr_dialogVisible = false">取 消</el-button>
233
+        <el-button type="primary" @click="qr_dialogVisible = false">确 定</el-button>
234
+      </span>
235
+    </el-dialog>
184
   </div>
236
   </div>
185
 </template>
237
 </template>
186
 
238
 
203
 } from '../../api/fapiao'
255
 } from '../../api/fapiao'
204
 
256
 
205
 import { getDialysisRecordInitData } from '@/api/dialysis_record'
257
 import { getDialysisRecordInitData } from '@/api/dialysis_record'
206
-
258
+import QRCode from 'qrcodejs2'
207
 const moment = require('moment')
259
 const moment = require('moment')
208
 export default {
260
 export default {
209
   name: 'OutpatientChargesSummary',
261
   name: 'OutpatientChargesSummary',
266
       settlementVisible: false,
318
       settlementVisible: false,
267
       settlementObj: {},
319
       settlementObj: {},
268
       accounts_click_vi:false,
320
       accounts_click_vi:false,
321
+
322
+      login_dialogVisible:false,
323
+      qr_dialogVisible:false,
324
+      formLabelAlign: {
325
+        name: '',
326
+        region: '',
327
+        type: '',
328
+        verify:'',
329
+      },
330
+      rules:{
331
+        verify:[{ required: true, message: '请输入活动名称', trigger: 'blur' },]
332
+      },
333
+      time:null,
334
+      countdown: 0,
335
+
269
     }
336
     }
270
   },
337
   },
271
 
338
 
278
   },
345
   },
279
 
346
 
280
   methods: {
347
   methods: {
348
+    login(){
349
+      this.login_dialogVisible = true
350
+    },
351
+    verify_click(){
352
+      this.countdown = 60
353
+      this.time = setInterval(() => {
354
+        if (this.countdown > 0) {
355
+          this.countdown--
356
+        } else {
357
+          clearInterval(this.time)
358
+        }
359
+      }, 1000)
360
+    },
281
     auth(){
361
     auth(){
362
+        this.qr_dialogVisible =true
363
+        this.$nextTick(() =>{
364
+          var qrcode = new QRCode(this.$refs.qrCodeUrl, {
365
+            text: 'https://blog.csdn.net/weixin_42601136', // 需要转换为二维码的内容
366
+            width: 120,
367
+            height: 120,
368
+            
369
+            colorDark: '#000000',
370
+            colorLight: '#ffffff',
371
+            correctLevel: QRCode.CorrectLevel.H
372
+          })
373
+        })
282
 
374
 
283
     },
375
     },
284
     query(){
376
     query(){
578
 
670
 
579
 
671
 
580
     }
672
     }
673
+  },
674
+  watch:{
675
+    countdown(news,old){
676
+      if(this.countdown ==0){
677
+        clearInterval(this.time)
678
+      }
679
+      
680
+    }
681
+
581
   }
682
   }
582
 }
683
 }
583
 </script>
684
 </script>

+ 1 - 0
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

770
                         that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
770
                         that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
771
                         that.form.phone = patient.phone
771
                         that.form.phone = patient.phone
772
                         that.form.id_card = patient.id_card_no
772
                         that.form.id_card = patient.id_card_no
773
+                        that.form.social_type = parseInt(response.data.data.insutype)
773
 
774
 
774
                       } else {
775
                       } else {
775
                         that.form.id = patient.id
776
                         that.form.id = patient.id

+ 13 - 0
src/xt_pages/outpatientTool/components/settle.vue View File

83
               </template>
83
               </template>
84
           </el-table-column>
84
           </el-table-column>
85
 
85
 
86
+        <el-table-column align="center" prop="item_name" label="病种名称">
87
+          <template slot-scope="scope">
88
+            {{scope.row.sick_name}}
89
+          </template>
90
+        </el-table-column>
91
+
86
           <el-table-column align="center" prop="item_name" label="结算类型">
92
           <el-table-column align="center" prop="item_name" label="结算类型">
87
               <template slot-scope="scope">
93
               <template slot-scope="scope">
88
                   <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
94
                   <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
245
         </template>
251
         </template>
246
       </el-table-column>
252
       </el-table-column>
247
 
253
 
254
+
255
+      <el-table-column align="center" prop="item_name" label="病种名称">
256
+        <template slot-scope="scope">
257
+          {{scope.row.sick_name}}
258
+        </template>
259
+      </el-table-column>
260
+
248
       <el-table-column align="center" prop="item_name" label="结算类型">
261
       <el-table-column align="center" prop="item_name" label="结算类型">
249
         <template slot-scope="scope">
262
         <template slot-scope="scope">
250
           <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
263
           <div v-if="scope.row.is_medicine_insurance == 0">自费</div>