Sfoglia il codice sorgente

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

28169 9 mesi fa
parent
commit
50bf045a1d

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

@@ -36,7 +36,7 @@
36 36
                     {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
37 37
                   </div>
38 38
                   <div style="flex: 1;">
39
-                    透析次数:  {{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ? 
39
+                    透析次数:  {{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ?
40 40
                                 patientInfo.total_dialysis + patientInfo.user_sys_before_count : "/" }}
41 41
                   </div>
42 42
                 </div>
@@ -62,7 +62,7 @@
62 62
                   {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : ""}}
63 63
                   mmHg
64 64
                 </div>
65
-                
65
+
66 66
               </td>
67 67
             </tr>
68 68
 
@@ -133,7 +133,7 @@
133 133
                   <div style="flex: 1;">
134 134
                     体重增加量:{{ (predialysis.weight_before - assessmentafter.weight_after).toFixed(1) }}kg
135 135
                   </div>
136
-                 
136
+
137 137
                 </div>
138 138
               </td>
139 139
             </tr>
@@ -200,9 +200,9 @@
200 200
             </td>
201 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 207
               <span >32</span>mmol/L&nbsp;
208 208
               钠:
@@ -215,7 +215,7 @@
215 215
             <td colspan="3">
216 216
               <div style="display: inline-block;line-height: 30px;">
217 217
                 血管通路:
218
-          
218
+
219 219
                 {{ predialysis.blood_access_part_id ? predialysis.blood_access_part_id :'/' }}
220 220
                 {{ predialysis.blood_access_part_opera_name ? predialysis.blood_access_part_opera_name :'/' }}
221 221
               </div>&nbsp;&nbsp;
@@ -289,7 +289,7 @@
289 289
                   <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
290 290
                 </span>
291 291
               </td>
292
-              
292
+
293 293
               <td>
294 294
                 {{ monitor.end }} {{ monitor.symptom }} &nbsp;
295 295
                 {{monitor.dispose}} &nbsp;{{ monitor.result }}
@@ -796,7 +796,7 @@ export default {
796 796
           this.assessmentafter = response.data.data.assessmentAfterDislysis;
797 797
           console.log("上次透后体重", this.assessmentafter);
798 798
           // var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
799
-          
799
+
800 800
           this.afterdialysis = response.data.data.AssessmentAfterDislysis;
801 801
           console.log("透后评估", this.afterdialysis);
802 802
           this.operators = response.data.data.operators;
@@ -997,7 +997,7 @@ export default {
997 997
 
998 998
           this.advices = response.data.data.advices;
999 999
 
1000
-          
1000
+
1001 1001
           this.monitors = response.data.data.monitors;
1002 1002
           console.log("透析监测", this.monitors);
1003 1003
           this.summary = response.data.data.summary;
@@ -1174,10 +1174,11 @@ export default {
1174 1174
             }
1175 1175
           }
1176 1176
           console.log(this.advice_groups);
1177
-          
1177
+
1178 1178
           var advices = response.data.data.advices;
1179
-         
1179
+          var projects = response.data.data.projects
1180 1180
           var newDocArr= []
1181
+          var projectarr = []
1181 1182
           for(let i=0;i<advices.length;i++){
1182 1183
             console.log("hhahahahh",advices[i].advice_name.indexOf("0.9%氯化钠注射液"))
1183 1184
             console.log("jjjjjjjjj",advices[i].delivery_way.indexOf("管路预冲"))
@@ -1185,17 +1186,48 @@ export default {
1185 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 1196
           var doctorAdevieInfo = response.data.data.doctorAdevieInfo
1191
-        
1192
-         
1193
-       
1194 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 1229
           console.log('response.data.data', response.data.data)
1197 1230
           if (tableAdvice.length === 0) {
1198
-            console.log('1111111',tableAdvice.length);
1199 1231
             var obj = { advice_name: "", start_time: "" };
1200 1232
             var obj1 = { advice_name: "", start_time: "" };
1201 1233
             var obj2 = { advice_name: "", start_time: "" };
@@ -1216,7 +1248,7 @@ export default {
1216 1248
             return this.tableAdvice
1217 1249
           }
1218 1250
           if (tableAdvice.length === 1) {
1219
-            console.log('2222222',tableAdvice.length);
1251
+
1220 1252
             var obj = { advice_name: "", start_time: "" };
1221 1253
             var obj1 = { advice_name: "", start_time: "" };
1222 1254
             var obj2 = { advice_name: "", start_time: "" };
@@ -1235,7 +1267,7 @@ export default {
1235 1267
             // return this.tableAdvice
1236 1268
           }
1237 1269
           if (tableAdvice.length === 2) {
1238
-            console.log('333333',tableAdvice.length);
1270
+
1239 1271
             var obj = { advice_name: "", start_time: "" };
1240 1272
             var obj1 = { advice_name: "", start_time: "" };
1241 1273
             var obj2 = { advice_name: "", start_time: "" };
@@ -1252,7 +1284,7 @@ export default {
1252 1284
             // return this.tableAdvice
1253 1285
           }
1254 1286
           if (tableAdvice.length === 3) {
1255
-            console.log('444444',tableAdvice.length);
1287
+
1256 1288
             var obj = { advice_name: "", start_time: "" };
1257 1289
             var obj1 = { advice_name: "", start_time: "" };
1258 1290
             // var obj2 = { advice_name: "", start_time: "" };
@@ -1267,7 +1299,7 @@ export default {
1267 1299
             // return this.tableAdvice
1268 1300
           }
1269 1301
           if (tableAdvice.length === 4) {
1270
-            console.log('5555555',tableAdvice.length);
1302
+
1271 1303
             var obj = { advice_name: "", start_time: "" };
1272 1304
             // var obj1 = { advice_name: "", start_time: "" };
1273 1305
             // var obj2 = { advice_name: "", start_time: "" };
@@ -1280,33 +1312,16 @@ export default {
1280 1312
             // return this.tableAdvice
1281 1313
           }
1282 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 1317
             this.tableAdvice = tableAdvice;
1293 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 1320
           if (tableAdvice.length >5) {
1305
-            console.log('777777',tableAdvice);
1306 1321
             this.tableAdvice = tableAdvice;
1307 1322
 
1308 1323
           }
1309
-          console.log('医嘱',this.tableAdvice.length);
1324
+          console.log('医嘱',this.tableAdvice);
1310 1325
         } else {
1311 1326
           this.loading = false;
1312 1327
           this.$message.error("请求数据失败");

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

@@ -11,9 +11,15 @@
11 11
           margin-bottom: 10px;
12 12
         ">
13 13
         <div>
14
+          <el-button size="small" type="primary"
15
+                     @click="login">登录
16
+          </el-button>
14 17
           <el-button size="small" type="primary"
15 18
                      @click="query">查询
16 19
           </el-button>
20
+          <el-button size="small" type="primary"
21
+                     @click="login">短信登录税局
22
+          </el-button>
17 23
           <el-button size="small" type="primary"
18 24
                      @click="auth">认证
19 25
           </el-button>
@@ -180,7 +186,53 @@
180 186
       </el-pagination>
181 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 236
   </div>
185 237
 </template>
186 238
 
@@ -203,7 +255,7 @@ import {
203 255
 } from '../../api/fapiao'
204 256
 
205 257
 import { getDialysisRecordInitData } from '@/api/dialysis_record'
206
-
258
+import QRCode from 'qrcodejs2'
207 259
 const moment = require('moment')
208 260
 export default {
209 261
   name: 'OutpatientChargesSummary',
@@ -266,6 +318,21 @@ export default {
266 318
       settlementVisible: false,
267 319
       settlementObj: {},
268 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,7 +345,32 @@ export default {
278 345
   },
279 346
 
280 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 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 376
     query(){
@@ -578,6 +670,15 @@ export default {
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 684
 </script>

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

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

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

@@ -83,6 +83,12 @@
83 83
               </template>
84 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 92
           <el-table-column align="center" prop="item_name" label="结算类型">
87 93
               <template slot-scope="scope">
88 94
                   <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
@@ -245,6 +251,13 @@
245 251
         </template>
246 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 261
       <el-table-column align="center" prop="item_name" label="结算类型">
249 262
         <template slot-scope="scope">
250 263
           <div v-if="scope.row.is_medicine_insurance == 0">自费</div>