|
@@ -46,7 +46,7 @@
|
46
|
46
|
</view>
|
47
|
47
|
<view class="deital_item">
|
48
|
48
|
<text class="name">携带设备:</text>
|
49
|
|
- <text class="value">{{dataInfo.patientInspectLogData.goodsNames}}</text>
|
|
49
|
+ <text class="value">{{dataInfo.patientInspectLogData.goodsList | filterNames('name')}}</text>
|
50
|
50
|
</view>
|
51
|
51
|
<view class="deital_item">
|
52
|
52
|
<text class="name">出科时间:</text>
|
|
@@ -54,7 +54,7 @@
|
54
|
54
|
</view>
|
55
|
55
|
<view class="deital_item">
|
56
|
56
|
<text class="name">出科人:</text>
|
57
|
|
- <text class="value">{{dataInfo.patientInspectLogData.backDeptUserDTO ? dataInfo.patientInspectLogData.backDeptUserDTO.name : ''}}</text>
|
|
57
|
+ <text class="value">{{dataInfo.patientInspectLogData.outDeptUserDTO ? dataInfo.patientInspectLogData.outDeptUserDTO.name : ''}}</text>
|
58
|
58
|
</view>
|
59
|
59
|
</view>
|
60
|
60
|
|
|
@@ -121,7 +121,7 @@
|
121
|
121
|
</scroll-view>
|
122
|
122
|
<view class="foot_common_btns">
|
123
|
123
|
<button @click="toList()" type="default" class="primaryButton btn">返回</button>
|
124
|
|
- <button v-if="dataInfo.patientInspectLogData.state.value === '4'" @click="tagClick(dataInfo.patientInspectLogData)" type="default" class="primaryButton btn">标记回科</button>
|
|
124
|
+ <button v-if="dataInfo.patientInspectLogData.state && dataInfo.patientInspectLogData.state.value === '4'" @click="tagClick(dataInfo.patientInspectLogData)" type="default" class="primaryButton btn">标记回科</button>
|
125
|
125
|
</view>
|
126
|
126
|
<!-- 弹窗 -->
|
127
|
127
|
<showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content" @ok="ok" @cancel="cancel" @know="know" :operate="models.operate"></showModel>
|
|
@@ -276,9 +276,7 @@
|
276
|
276
|
if(res.status == 200){
|
277
|
277
|
this.dataInfo.patientInspectLogData = res.data || {};
|
278
|
278
|
this.dataInfo.logList = this.dataInfo.patientInspectLogData.logList || [];
|
279
|
|
-
|
280
|
279
|
this.dataInfo.tabActiveValue = this.dataInfo.tabs[0].value;
|
281
|
|
- console.log(this.dataInfo.tabActiveValue)
|
282
|
280
|
this.initData()
|
283
|
281
|
}else{
|
284
|
282
|
uni.showToast({
|
|
@@ -300,196 +298,6 @@
|
300
|
298
|
this.getDetail();
|
301
|
299
|
}
|
302
|
300
|
}
|
303
|
|
- // import chunk from 'lodash-es/chunk'
|
304
|
|
- // import { ref, reactive } from 'vue'
|
305
|
|
- // import { onLoad } from '@dcloudio/uni-app'
|
306
|
|
- // import { api_listAttachment, api_inspectionTaskDetail, api_inspectionFormValues } from "@/http/api.js"
|
307
|
|
- // import { defaultColor } from '@/static/js/theme.js'
|
308
|
|
- // import { useSetTitle } from '@/share/useSetTitle.js'
|
309
|
|
- // import { filterFormatDate } from '@/filters/filterFormatDate.js'
|
310
|
|
-
|
311
|
|
- // useSetTitle();
|
312
|
|
- // const { formatDate } = filterFormatDate();
|
313
|
|
-
|
314
|
|
- // // 主题颜色
|
315
|
|
- // const primaryColor = ref(defaultColor)
|
316
|
|
-
|
317
|
|
- // // 数据
|
318
|
|
- // const dataInfo = reactive({
|
319
|
|
- // tabs: [
|
320
|
|
- // {id: 1, name: '基础信息', value: '1', num: ''},
|
321
|
|
- // // {id: 2, name: '巡检信息', value: '2', num: ''},
|
322
|
|
- // {id: 3, name: '流程图', value: '3', num: ''},
|
323
|
|
- // ],
|
324
|
|
- // tabActiveValue: 0,//当前选择的tab
|
325
|
|
- // patientInspectLogId: undefined,//巡检执行ID
|
326
|
|
- // patientInspectLogData: {},//巡检执行对象
|
327
|
|
- // inspectionTaskImgs: [],//巡检图片
|
328
|
|
- // valueList: [],//巡检信息
|
329
|
|
- // logList: [],//流程图
|
330
|
|
- // })
|
331
|
|
-
|
332
|
|
- // function getValuex(value){
|
333
|
|
- // return value.formItemConfigList ? value.formItemConfigList.map(v => v.valuex).toString() : value.valuex;
|
334
|
|
- // }
|
335
|
|
-
|
336
|
|
- // // 获取巡检信息
|
337
|
|
- // function getValue(){
|
338
|
|
- // uni.showLoading({
|
339
|
|
- // title: "加载中",
|
340
|
|
- // mask: true,
|
341
|
|
- // });
|
342
|
|
- // let postData = {
|
343
|
|
- // "idx": 0,
|
344
|
|
- // "sum": 9999,
|
345
|
|
- // "inspectionFormValues": {
|
346
|
|
- // taskId: dataInfo.patientInspectLogId,
|
347
|
|
- // }
|
348
|
|
- // };
|
349
|
|
- // api_inspectionFormValues(postData).then(res => {
|
350
|
|
- // uni.hideLoading();
|
351
|
|
- // if(res.status == 200){
|
352
|
|
- // let valueList = res.list || [];
|
353
|
|
- // let imgFlag = valueList.some(v => v.inspectionFormItemDTO.type.value == 7);
|
354
|
|
-
|
355
|
|
- // if(imgFlag){
|
356
|
|
- // valueList.forEach(v => {
|
357
|
|
- // if(v.inspectionFormItemDTO.type.value == 7){
|
358
|
|
- // v.valuex = [];
|
359
|
|
- // }
|
360
|
|
- // })
|
361
|
|
- // }
|
362
|
|
-
|
363
|
|
- // dataInfo.valueList = chunk(valueList, 3);
|
364
|
|
-
|
365
|
|
- // if(imgFlag){
|
366
|
|
- // getInspectionImgs();
|
367
|
|
- // }
|
368
|
|
- // }else{
|
369
|
|
- // uni.showToast({
|
370
|
|
- // icon: 'none',
|
371
|
|
- // title: res.msg || '请求数据失败!'
|
372
|
|
- // });
|
373
|
|
- // }
|
374
|
|
- // })
|
375
|
|
- // }
|
376
|
|
-
|
377
|
|
- // // 预览图片
|
378
|
|
- // function previewImg(index, type, imgList){
|
379
|
|
- // uni.previewImage({
|
380
|
|
- // current: index,
|
381
|
|
- // urls: imgList.map(v => v.previewUrl),
|
382
|
|
- // longPressActions: {
|
383
|
|
- // itemList: ['发送给朋友', '保存图片', '收藏'],
|
384
|
|
- // success: function(data) {
|
385
|
|
- // console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
|
386
|
|
- // },
|
387
|
|
- // fail: function(err) {
|
388
|
|
- // console.log(err.errMsg);
|
389
|
|
- // }
|
390
|
|
- // }
|
391
|
|
- // });
|
392
|
|
- // }
|
393
|
|
-
|
394
|
|
- // // 初始化表单
|
395
|
|
- // function initData(){
|
396
|
|
- // if(dataInfo.tabActiveValue === '1'){
|
397
|
|
-
|
398
|
|
- // }else if(dataInfo.tabActiveValue === '2'){
|
399
|
|
- // getValue();
|
400
|
|
- // }else if(dataInfo.tabActiveValue === '3'){
|
401
|
|
-
|
402
|
|
- // }
|
403
|
|
- // }
|
404
|
|
-
|
405
|
|
- // // 点击tab
|
406
|
|
- // function clickTab(tabValue){
|
407
|
|
- // if(dataInfo.tabActiveValue == tabValue){
|
408
|
|
- // return;
|
409
|
|
- // }
|
410
|
|
- // dataInfo.tabActiveValue = tabValue;
|
411
|
|
- // initData()
|
412
|
|
- // }
|
413
|
|
-
|
414
|
|
- // // 获取巡检执行详情
|
415
|
|
- // function getDetail(){
|
416
|
|
- // uni.showLoading({
|
417
|
|
- // title: "加载中",
|
418
|
|
- // mask: true,
|
419
|
|
- // });
|
420
|
|
-
|
421
|
|
- // api_inspectionTaskDetail(dataInfo.patientInspectLogId).then(res => {
|
422
|
|
- // uni.hideLoading();
|
423
|
|
- // if(res.status == 200){
|
424
|
|
- // dataInfo.patientInspectLogData = res.data || {};
|
425
|
|
- // dataInfo.logList = dataInfo.patientInspectLogData.logList || [];
|
426
|
|
-
|
427
|
|
- // // 巡检信息
|
428
|
|
- // if(dataInfo.patientInspectLogData.status.value === '2'){
|
429
|
|
- // let flag = dataInfo.tabs.some(v => v.value === '2');
|
430
|
|
- // !flag && dataInfo.tabs.splice(1, 0, {id: 2, name: '巡检信息', value: '2', num: ''});
|
431
|
|
- // }
|
432
|
|
-
|
433
|
|
- // dataInfo.tabActiveValue = dataInfo.tabs[0].value;
|
434
|
|
- // initData()
|
435
|
|
- // }else{
|
436
|
|
- // uni.showToast({
|
437
|
|
- // icon: 'none',
|
438
|
|
- // title: res.msg || '请求数据失败!'
|
439
|
|
- // });
|
440
|
|
- // }
|
441
|
|
- // })
|
442
|
|
- // }
|
443
|
|
-
|
444
|
|
- // // 获取巡检图片
|
445
|
|
- // function getInspectionImgs(){
|
446
|
|
- // uni.showLoading({
|
447
|
|
- // title: "加载中",
|
448
|
|
- // mask: true,
|
449
|
|
- // });
|
450
|
|
- // api_listAttachment('inspection', dataInfo.patientInspectLogId).then(res => {
|
451
|
|
- // uni.hideLoading();
|
452
|
|
- // res.data = res.data || [];
|
453
|
|
- // res.data.forEach(v => {
|
454
|
|
- // v.previewUrl = location.origin + "/file" + v.relativeFilePath;
|
455
|
|
- // v.thumbFilePath = location.origin + "/file" + v.thumbFilePath;
|
456
|
|
- // })
|
457
|
|
-
|
458
|
|
- // let imgList = res.data || [];
|
459
|
|
- // dataInfo.valueList.forEach(v => {
|
460
|
|
- // v.forEach(vv => {
|
461
|
|
- // imgList.forEach(item => {
|
462
|
|
- // if(vv.itemId == item.recordId){
|
463
|
|
- // if(vv.valuex && vv.valuex.length){
|
464
|
|
- // vv.valuex.push(item)
|
465
|
|
- // }else{
|
466
|
|
- // vv.valuex = [item];
|
467
|
|
- // }
|
468
|
|
- // }
|
469
|
|
- // })
|
470
|
|
- // })
|
471
|
|
- // })
|
472
|
|
- // })
|
473
|
|
- // }
|
474
|
|
-
|
475
|
|
- // // 返回巡检列表
|
476
|
|
- // function toList(){
|
477
|
|
- // uni.reLaunch({
|
478
|
|
- // url: `/pages/inspection/inspectionExecute/inspectionExecute`
|
479
|
|
- // })
|
480
|
|
- // }
|
481
|
|
-
|
482
|
|
- // // 查看故障单
|
483
|
|
- // function viewIncidentDetail(incidentId){
|
484
|
|
- // uni.navigateTo({
|
485
|
|
- // url: `/pages/incidentDetail/incidentDetail?incidentId=${incidentId}`
|
486
|
|
- // })
|
487
|
|
- // }
|
488
|
|
-
|
489
|
|
- // onLoad((option) => {
|
490
|
|
- // dataInfo.patientInspectLogId = option.patientInspectLogId;
|
491
|
|
- // getDetail();
|
492
|
|
- // })
|
493
|
301
|
</script>
|
494
|
302
|
|
495
|
303
|
<style lang="scss" scoped>
|