|
@@ -0,0 +1,768 @@
|
|
1
|
+<template>
|
|
2
|
+ <view class="incidentDetail">
|
|
3
|
+ <view class="head">
|
|
4
|
+ <view class="tab" :class="{active: tab.value === dataInfo.tabActiveValue}" v-for="tab in dataInfo.tabs" :key="tab.id" @click="clickTab(tab.value)">
|
|
5
|
+ {{tab.name}}<text v-if="tab.num !== ''">({{tab.num}})</text>
|
|
6
|
+ </view>
|
|
7
|
+ </view>
|
|
8
|
+ <scroll-view scroll-y class="body">
|
|
9
|
+ <!-- 基本信息 -->
|
|
10
|
+ <template v-if="dataInfo.tabActiveValue === '1'">
|
|
11
|
+ <view class="detail_head">
|
|
12
|
+ <text class="title">基本信息</text>
|
|
13
|
+ <view class="other">
|
|
14
|
+ <view class="status">{{dataInfo.patientInspectLogData.state ? dataInfo.patientInspectLogData.state.name : ''}}</view>
|
|
15
|
+ </view>
|
|
16
|
+ </view>
|
|
17
|
+ <view class="detail_item_wrap">
|
|
18
|
+ <view class="deital_item">
|
|
19
|
+ <text class="name">患者科室:</text>
|
|
20
|
+ <text class="value">{{dataInfo.patientInspectLogData.deptName}}</text>
|
|
21
|
+ </view>
|
|
22
|
+ <view class="deital_item">
|
|
23
|
+ <text class="name">患者姓名:</text>
|
|
24
|
+ <text class="value">{{dataInfo.patientInspectLogData.patientName}}</text>
|
|
25
|
+ <text class="value text_value">年龄:<text v-if="dataInfo.patientInspectLogData.age !== undefined">{{dataInfo.patientInspectLogData.age }}岁</text></text>
|
|
26
|
+ </view>
|
|
27
|
+ <view class="deital_item">
|
|
28
|
+ <text class="name">住院号:</text>
|
|
29
|
+ <text class="value">{{dataInfo.patientInspectLogData.patientCode}}</text>
|
|
30
|
+ <text class="value text_value">床号:{{dataInfo.patientInspectLogData.bedNum }}</text>
|
|
31
|
+ </view>
|
|
32
|
+ <view class="deital_item">
|
|
33
|
+ <text class="name">护理等级:</text>
|
|
34
|
+ <text class="value">{{dataInfo.patientInspectLogData.careLevel ? dataInfo.patientInspectLogData.careLevel.name : ''}}</text>
|
|
35
|
+ <text class="value text_value">危重等级:{{dataInfo.patientInspectLogData.illnessState ? dataInfo.patientInspectLogData.illnessState.name : ''}}</text>
|
|
36
|
+ </view>
|
|
37
|
+ </view>
|
|
38
|
+
|
|
39
|
+ <view class="detail_head">
|
|
40
|
+ <text class="title">陪检信息</text>
|
|
41
|
+ </view>
|
|
42
|
+ <view class="detail_item_wrap">
|
|
43
|
+ <view class="deital_item">
|
|
44
|
+ <text class="name">陪检方式:</text>
|
|
45
|
+ <text class="value">{{dataInfo.patientInspectLogData.tripTypeDTO ? dataInfo.patientInspectLogData.tripTypeDTO.inspectMode : ''}}</text>
|
|
46
|
+ </view>
|
|
47
|
+ <view class="deital_item">
|
|
48
|
+ <text class="name">携带设备:</text>
|
|
49
|
+ <text class="value">{{dataInfo.patientInspectLogData.goodsNames}}</text>
|
|
50
|
+ </view>
|
|
51
|
+ <view class="deital_item">
|
|
52
|
+ <text class="name">出科时间:</text>
|
|
53
|
+ <text class="value">{{dataInfo.patientInspectLogData.outDeptTime | formatDate('yyyy-MM-dd hh:mm')}}</text>
|
|
54
|
+ </view>
|
|
55
|
+ <view class="deital_item">
|
|
56
|
+ <text class="name">出科人:</text>
|
|
57
|
+ <text class="value">{{dataInfo.patientInspectLogData.backDeptUserDTO ? dataInfo.patientInspectLogData.backDeptUserDTO.name : ''}}</text>
|
|
58
|
+ </view>
|
|
59
|
+ </view>
|
|
60
|
+
|
|
61
|
+ <view class="detail_head">
|
|
62
|
+ <text class="title">最新操作</text>
|
|
63
|
+ </view>
|
|
64
|
+ <view class="detail_item_wrap">
|
|
65
|
+ <view class="deital_item">
|
|
66
|
+ <text class="name">签到时间:</text>
|
|
67
|
+ <text class="value">{{dataInfo.patientInspectLogData.signTime | formatDate('yyyy-MM-dd hh:mm')}}</text>
|
|
68
|
+ </view>
|
|
69
|
+ <view class="deital_item">
|
|
70
|
+ <text class="name">签到人:</text>
|
|
71
|
+ <text class="value">{{dataInfo.patientInspectLogData.signUserDTO ? dataInfo.patientInspectLogData.signUserDTO.name : ''}}</text>
|
|
72
|
+ </view>
|
|
73
|
+ <view class="deital_item">
|
|
74
|
+ <text class="name">签到科室:</text>
|
|
75
|
+ <text class="value">{{dataInfo.patientInspectLogData.signDeptDTO ? dataInfo.patientInspectLogData.signDeptDTO.dept : ''}}</text>
|
|
76
|
+ </view>
|
|
77
|
+ </view>
|
|
78
|
+
|
|
79
|
+ <view class="detail_head">
|
|
80
|
+ <text class="title">回科信息</text>
|
|
81
|
+ </view>
|
|
82
|
+ <view class="detail_item_wrap">
|
|
83
|
+ <view class="deital_item">
|
|
84
|
+ <text class="name">回科时间:</text>
|
|
85
|
+ <text class="value">{{dataInfo.patientInspectLogData.backDeptTime | formatDate('yyyy-MM-dd hh:mm')}}</text>
|
|
86
|
+ </view>
|
|
87
|
+ <view class="deital_item">
|
|
88
|
+ <text class="name">回科人:</text>
|
|
89
|
+ <text class="value">{{dataInfo.patientInspectLogData.backDeptUserDTO ? dataInfo.patientInspectLogData.backDeptUserDTO.name : ''}}</text>
|
|
90
|
+ </view>
|
|
91
|
+ </view>
|
|
92
|
+ </template>
|
|
93
|
+
|
|
94
|
+ <!-- 检查信息 -->
|
|
95
|
+ <template v-if="dataInfo.tabActiveValue === '2'">
|
|
96
|
+ <view class="info">
|
|
97
|
+ <view v-for="item in dataInfo.valueList" :key="item.id" class="infoItem">
|
|
98
|
+ <view class="name">检查项目:<text class="fwb">{{item.inspectName}}</text></view>
|
|
99
|
+ <view class="name">检查单号:<text>{{item.inspectCode}}</text></view>
|
|
100
|
+ <view class="name">状态:<text>{{item.inspectState ? item.inspectState.name : ''}}</text></view>
|
|
101
|
+ <view class="name">检查地点:<text>{{item.execDept ? item.execDept.dept : ''}}</text></view>
|
|
102
|
+ </view>
|
|
103
|
+ </view>
|
|
104
|
+ </template>
|
|
105
|
+
|
|
106
|
+ <!-- 流程图 -->
|
|
107
|
+ <template v-if="dataInfo.tabActiveValue === '3'">
|
|
108
|
+ <view class="process_item_wrap">
|
|
109
|
+ <view class="process_item" v-for="item in dataInfo.logList" :key="item.id">
|
|
110
|
+ <view class="process_item_top">
|
|
111
|
+ <view class="name">{{item.operationType ? item.operationType.name : '' }}</view>
|
|
112
|
+ <view class="value" v-if="item.remark">({{item.remark}})</view>
|
|
113
|
+ </view>
|
|
114
|
+ <view class="process_item_bottom">
|
|
115
|
+ <text class="name">{{item.operationTime | formatDate('yyyy-MM-dd hh:mm')}}</text>
|
|
116
|
+ <text class="value" v-if="item.username">{{item.username}}</text>
|
|
117
|
+ </view>
|
|
118
|
+ </view>
|
|
119
|
+ </view>
|
|
120
|
+ </template>
|
|
121
|
+ </scroll-view>
|
|
122
|
+ <view class="foot_common_btns">
|
|
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>
|
|
125
|
+ </view>
|
|
126
|
+ <!-- 弹窗 -->
|
|
127
|
+ <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content" @ok="ok" @cancel="cancel" @know="know" :operate="models.operate"></showModel>
|
|
128
|
+ </view>
|
|
129
|
+</template>
|
|
130
|
+
|
|
131
|
+<script>
|
|
132
|
+ import { get, post, SM, deleteIt, webHandle } from "../../http/http.js";
|
|
133
|
+ export default {
|
|
134
|
+ data(){
|
|
135
|
+ return {
|
|
136
|
+ selectData: {},
|
|
137
|
+ // 弹窗model
|
|
138
|
+ models: {
|
|
139
|
+ disjunctor: false,
|
|
140
|
+ },
|
|
141
|
+ dataInfo: {
|
|
142
|
+ tabs: [
|
|
143
|
+ {id: 1, name: '基本信息', value: '1', num: ''},
|
|
144
|
+ {id: 2, name: '检查信息', value: '2', num: ''},
|
|
145
|
+ {id: 3, name: '流程信息', value: '3', num: ''},
|
|
146
|
+ ],
|
|
147
|
+ tabActiveValue: 1,//当前选择的tab
|
|
148
|
+ patientInspectLogId: undefined,//闭环ID
|
|
149
|
+ patientInspectLogData: {},//闭环对象
|
|
150
|
+ valueList: [],//检查信息
|
|
151
|
+ logList: [],//流程图
|
|
152
|
+ }
|
|
153
|
+ }
|
|
154
|
+ },
|
|
155
|
+ methods: {
|
|
156
|
+ // 标记回科
|
|
157
|
+ tagClick(data){
|
|
158
|
+ this.selectData = data;
|
|
159
|
+ this.models = {
|
|
160
|
+ disjunctor: true,
|
|
161
|
+ title: "提示",
|
|
162
|
+ content: `您确认${data.patientName}患者已回科吗?`,
|
|
163
|
+ icon: "warn",
|
|
164
|
+ operate: {
|
|
165
|
+ ok: "确定",
|
|
166
|
+ cancel: "取消",
|
|
167
|
+ },
|
|
168
|
+ };
|
|
169
|
+ },
|
|
170
|
+ //确定
|
|
171
|
+ ok() {
|
|
172
|
+ this.models.disjunctor = false;
|
|
173
|
+ uni.showLoading({
|
|
174
|
+ title: "加载中",
|
|
175
|
+ mask: true,
|
|
176
|
+ });
|
|
177
|
+ post("/nurse/patientInspect/setPatientInspectBackDept", {
|
|
178
|
+ pilId: this.selectData.id,
|
|
179
|
+ }).then((res) => {
|
|
180
|
+ uni.hideLoading();
|
|
181
|
+ let _this = this;
|
|
182
|
+ if (res.state == 200) {
|
|
183
|
+ uni.showToast({
|
|
184
|
+ icon: "none",
|
|
185
|
+ mask: true,
|
|
186
|
+ title: "操作成功!",
|
|
187
|
+ });
|
|
188
|
+ setTimeout(() => {
|
|
189
|
+ _this.toList();
|
|
190
|
+ },300)
|
|
191
|
+ } else {
|
|
192
|
+ uni.showToast({
|
|
193
|
+ icon: 'none',
|
|
194
|
+ title: res.msg || '请求数据失败!'
|
|
195
|
+ });
|
|
196
|
+ }
|
|
197
|
+ })
|
|
198
|
+ },
|
|
199
|
+ //取消
|
|
200
|
+ cancel() {
|
|
201
|
+ this.models.disjunctor = false;
|
|
202
|
+ },
|
|
203
|
+ // 点击tab
|
|
204
|
+ clickTab(tabValue){
|
|
205
|
+ if(this.dataInfo.tabActiveValue == tabValue){
|
|
206
|
+ return;
|
|
207
|
+ }
|
|
208
|
+ this.dataInfo.tabActiveValue = tabValue;
|
|
209
|
+ this.initData()
|
|
210
|
+ },
|
|
211
|
+ // tab业务数据接口
|
|
212
|
+ initData(){
|
|
213
|
+ if(this.dataInfo.tabActiveValue === '1'){
|
|
214
|
+
|
|
215
|
+ }else if(this.dataInfo.tabActiveValue === '2'){
|
|
216
|
+ this.getValue();
|
|
217
|
+ }else if(this.dataInfo.tabActiveValue === '3'){
|
|
218
|
+ this.getLog();
|
|
219
|
+ }
|
|
220
|
+ },
|
|
221
|
+ // 获取检查信息
|
|
222
|
+ getValue(){
|
|
223
|
+ uni.showLoading({
|
|
224
|
+ title: "加载中",
|
|
225
|
+ mask: true,
|
|
226
|
+ });
|
|
227
|
+ let postData = {
|
|
228
|
+ pilId: this.dataInfo.patientInspectLogId,
|
|
229
|
+ };
|
|
230
|
+ post(`/nurse/patientInspect/getPatientInspectList`, postData).then(res => {
|
|
231
|
+ uni.hideLoading();
|
|
232
|
+ if(res.status == 200){
|
|
233
|
+ this.dataInfo.valueList = res.list || [];
|
|
234
|
+ }else{
|
|
235
|
+ uni.showToast({
|
|
236
|
+ icon: 'none',
|
|
237
|
+ title: res.msg || '请求数据失败!'
|
|
238
|
+ });
|
|
239
|
+ }
|
|
240
|
+ })
|
|
241
|
+ },
|
|
242
|
+ // 获取流程信息
|
|
243
|
+ getLog(){
|
|
244
|
+ uni.showLoading({
|
|
245
|
+ title: "加载中",
|
|
246
|
+ mask: true,
|
|
247
|
+ });
|
|
248
|
+ let postData = {
|
|
249
|
+ "idx": 0,
|
|
250
|
+ "sum": 9999,
|
|
251
|
+ "patientInspectLogLog": {
|
|
252
|
+ "pilId": this.dataInfo.patientInspectLogId
|
|
253
|
+ }
|
|
254
|
+ };
|
|
255
|
+ post(`/simple/data/fetchDataList/patientInspectLogLog`, postData).then(res => {
|
|
256
|
+ uni.hideLoading();
|
|
257
|
+ if(res.status == 200){
|
|
258
|
+ this.dataInfo.logList = res.list || [];
|
|
259
|
+ }else{
|
|
260
|
+ uni.showToast({
|
|
261
|
+ icon: 'none',
|
|
262
|
+ title: res.msg || '请求数据失败!'
|
|
263
|
+ });
|
|
264
|
+ }
|
|
265
|
+ })
|
|
266
|
+ },
|
|
267
|
+ // 获取详情
|
|
268
|
+ getDetail(){
|
|
269
|
+ uni.showLoading({
|
|
270
|
+ title: "加载中",
|
|
271
|
+ mask: true,
|
|
272
|
+ });
|
|
273
|
+
|
|
274
|
+ get(`/simple/data/fetchData/patientInspectLog/${this.dataInfo.patientInspectLogId}`).then(res => {
|
|
275
|
+ uni.hideLoading();
|
|
276
|
+ if(res.status == 200){
|
|
277
|
+ this.dataInfo.patientInspectLogData = res.data || {};
|
|
278
|
+ this.dataInfo.logList = this.dataInfo.patientInspectLogData.logList || [];
|
|
279
|
+
|
|
280
|
+ this.dataInfo.tabActiveValue = this.dataInfo.tabs[0].value;
|
|
281
|
+ console.log(this.dataInfo.tabActiveValue)
|
|
282
|
+ this.initData()
|
|
283
|
+ }else{
|
|
284
|
+ uni.showToast({
|
|
285
|
+ icon: 'none',
|
|
286
|
+ title: res.msg || '请求数据失败!'
|
|
287
|
+ });
|
|
288
|
+ }
|
|
289
|
+ })
|
|
290
|
+ },
|
|
291
|
+ // 返回列表
|
|
292
|
+ toList(){
|
|
293
|
+ uni.reLaunch({
|
|
294
|
+ url: `/pages/patientInspectLog/patientInspectLogList`
|
|
295
|
+ })
|
|
296
|
+ }
|
|
297
|
+ },
|
|
298
|
+ onLoad(options){
|
|
299
|
+ this.dataInfo.patientInspectLogId = options.patientInspectLogId;
|
|
300
|
+ this.getDetail();
|
|
301
|
+ }
|
|
302
|
+ }
|
|
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
|
+</script>
|
|
494
|
+
|
|
495
|
+<style lang="scss" scoped>
|
|
496
|
+.popup-content{
|
|
497
|
+ padding: 40rpx;
|
|
498
|
+}
|
|
499
|
+.incidentDetail{
|
|
500
|
+ height: 100vh;
|
|
501
|
+ display: flex;
|
|
502
|
+ flex-direction: column;
|
|
503
|
+ justify-content: space-between;
|
|
504
|
+ background-color: #EBEBEB;
|
|
505
|
+ .head{
|
|
506
|
+ height: 88rpx;
|
|
507
|
+ display: flex;
|
|
508
|
+ position: fixed;
|
|
509
|
+ z-index: 99;
|
|
510
|
+ width: 100%;
|
|
511
|
+ background-color: #fff;
|
|
512
|
+ font-size: 30rpx;
|
|
513
|
+ .tab{
|
|
514
|
+ flex: 1;
|
|
515
|
+ display: flex;
|
|
516
|
+ justify-content: center;
|
|
517
|
+ align-items: center;
|
|
518
|
+ border-bottom: 4rpx solid transparent;
|
|
519
|
+ position: relative;
|
|
520
|
+ &:last-of-type{
|
|
521
|
+ &:after{
|
|
522
|
+ display: none;
|
|
523
|
+ }
|
|
524
|
+ }
|
|
525
|
+ // &:after{
|
|
526
|
+ // content: '';
|
|
527
|
+ // position: absolute;
|
|
528
|
+ // right: 0;
|
|
529
|
+ // top: 50%;
|
|
530
|
+ // transform: translateY(-50%);
|
|
531
|
+ // width: 1rpx;
|
|
532
|
+ // height: 44rpx;
|
|
533
|
+ // background-color: #515151;
|
|
534
|
+ // }
|
|
535
|
+ &.active{
|
|
536
|
+ color: #49B856;
|
|
537
|
+ border-color: #49B856;
|
|
538
|
+ }
|
|
539
|
+ }
|
|
540
|
+ }
|
|
541
|
+ .body{
|
|
542
|
+ margin-top: 88rpx;
|
|
543
|
+ box-sizing: border-box;
|
|
544
|
+ flex: 1;
|
|
545
|
+ min-height: 0;
|
|
546
|
+ border-top: 7rpx solid #EBEBEB;
|
|
547
|
+ .phone-filled{
|
|
548
|
+ margin-left: 5rpx;
|
|
549
|
+ }
|
|
550
|
+ .mic-filled{
|
|
551
|
+ margin-right: 100rpx;
|
|
552
|
+ }
|
|
553
|
+ .detail_item_wrap{
|
|
554
|
+ padding-bottom: 24rpx;
|
|
555
|
+ }
|
|
556
|
+ .detail_head{
|
|
557
|
+ padding: 24rpx;
|
|
558
|
+ border-top: 8rpx solid #D2D2D2;
|
|
559
|
+ border-bottom: 1rpx solid #D2D2D2;
|
|
560
|
+ display: flex;
|
|
561
|
+ justify-content: space-between;
|
|
562
|
+ align-items: center;
|
|
563
|
+ &:first-of-type{
|
|
564
|
+ border-top: none;
|
|
565
|
+ }
|
|
566
|
+ .title{
|
|
567
|
+ font-size: 26rpx;
|
|
568
|
+ color: #49B856;
|
|
569
|
+ padding-left: 18rpx;
|
|
570
|
+ position: relative;
|
|
571
|
+ &:before{
|
|
572
|
+ content: '';
|
|
573
|
+ width: 8rpx;
|
|
574
|
+ height: 25rpx;
|
|
575
|
+ background-color: #49B856;
|
|
576
|
+ position: absolute;
|
|
577
|
+ left: 0;
|
|
578
|
+ top: 50%;
|
|
579
|
+ transform: translateY(-50%);
|
|
580
|
+ }
|
|
581
|
+ }
|
|
582
|
+ .other{
|
|
583
|
+ display: flex;
|
|
584
|
+ align-items: center;
|
|
585
|
+ .priority{
|
|
586
|
+ font-size: 26rpx;
|
|
587
|
+ margin-right: 15rpx;
|
|
588
|
+ }
|
|
589
|
+ .status{
|
|
590
|
+ font-size: 26rpx;
|
|
591
|
+ }
|
|
592
|
+ }
|
|
593
|
+ }
|
|
594
|
+
|
|
595
|
+ .deital_item{
|
|
596
|
+ font-size: 26rpx;
|
|
597
|
+ color: #555;
|
|
598
|
+ padding: 24rpx 24rpx 0;
|
|
599
|
+ display: flex;
|
|
600
|
+ align-items: center;
|
|
601
|
+ .name{
|
|
602
|
+ width: 5em;
|
|
603
|
+ margin-right: 24rpx;
|
|
604
|
+ }
|
|
605
|
+ .value{
|
|
606
|
+ flex: 2;
|
|
607
|
+ word-break: break-all;
|
|
608
|
+ &.text_value{
|
|
609
|
+ flex: 1;
|
|
610
|
+ }
|
|
611
|
+ &.img{
|
|
612
|
+ display: flex;
|
|
613
|
+ .imgItem{
|
|
614
|
+ width: 82rpx;
|
|
615
|
+ height: 82rpx;
|
|
616
|
+ margin-right: 24rpx;
|
|
617
|
+ &:last-of-type{
|
|
618
|
+ margin-right: 0;
|
|
619
|
+ }
|
|
620
|
+ }
|
|
621
|
+ .resourceItem{
|
|
622
|
+ width: 100rpx;
|
|
623
|
+ height: 100rpx;
|
|
624
|
+ margin-right: 24rpx;
|
|
625
|
+ &:last-of-type{
|
|
626
|
+ margin-right: 0;
|
|
627
|
+ }
|
|
628
|
+ }
|
|
629
|
+ .resourceItem-audio{
|
|
630
|
+ width: 300rpx;
|
|
631
|
+ height: 60rpx;
|
|
632
|
+ }
|
|
633
|
+ }
|
|
634
|
+ }
|
|
635
|
+ }
|
|
636
|
+
|
|
637
|
+ .summaryItem_bodyItem{
|
|
638
|
+ padding: 24rpx 24rpx 0;
|
|
639
|
+ font-size: 26rpx;
|
|
640
|
+ .summaryItem_bodyItem_top{
|
|
641
|
+ display: flex;
|
|
642
|
+ justify-content: space-between;
|
|
643
|
+ align-items: center;
|
|
644
|
+ .value{
|
|
645
|
+ padding-left: 48rpx;
|
|
646
|
+ flex-shrink: 0;
|
|
647
|
+ }
|
|
648
|
+ }
|
|
649
|
+ .summaryItem_bodyItem_bottom{
|
|
650
|
+ margin-top: 24rpx;
|
|
651
|
+ display: flex;
|
|
652
|
+ justify-content: space-between;
|
|
653
|
+ align-items: center;
|
|
654
|
+ .name{
|
|
655
|
+ text-align: right;
|
|
656
|
+ flex: 1;
|
|
657
|
+ }
|
|
658
|
+ .value{
|
|
659
|
+ width: 220rpx;
|
|
660
|
+ text-align: right;
|
|
661
|
+ flex-shrink: 0;
|
|
662
|
+ }
|
|
663
|
+ }
|
|
664
|
+ }
|
|
665
|
+
|
|
666
|
+ .summaryItem_bodyItem_total{
|
|
667
|
+ text-align: right;
|
|
668
|
+ padding: 24rpx;
|
|
669
|
+ font-size: 26rpx;
|
|
670
|
+ }
|
|
671
|
+
|
|
672
|
+ .summaryItem_total{
|
|
673
|
+ text-align: center;
|
|
674
|
+ padding-top: 24rpx;
|
|
675
|
+ font-size: 32rpx;
|
|
676
|
+ font-weight: bold;
|
|
677
|
+ color: #49B856;
|
|
678
|
+ border-top: 1rpx solid #D2D2D2;
|
|
679
|
+ }
|
|
680
|
+
|
|
681
|
+ .info{
|
|
682
|
+ .infoItem{
|
|
683
|
+ padding: 24rpx;
|
|
684
|
+ background-color: #fff;
|
|
685
|
+ border-top: 8rpx solid #D2D2D2;
|
|
686
|
+ font-size: 24rpx;
|
|
687
|
+ &:first-of-type{
|
|
688
|
+ border-top: none;
|
|
689
|
+ }
|
|
690
|
+ .name{
|
|
691
|
+ margin-top: 24rpx;
|
|
692
|
+ &:first-of-type{
|
|
693
|
+ margin-top: 0;
|
|
694
|
+ }
|
|
695
|
+ }
|
|
696
|
+ }
|
|
697
|
+ }
|
|
698
|
+
|
|
699
|
+ .process_item_wrap{
|
|
700
|
+ padding: 38rpx;
|
|
701
|
+ .process_item{
|
|
702
|
+ &:last-of-type{
|
|
703
|
+ .process_item_bottom{
|
|
704
|
+ border-left: none;
|
|
705
|
+ }
|
|
706
|
+ }
|
|
707
|
+ .process_item_top{
|
|
708
|
+ padding-left: 30rpx;
|
|
709
|
+ display: flex;
|
|
710
|
+ align-items: center;
|
|
711
|
+ position: relative;
|
|
712
|
+ &:before{
|
|
713
|
+ content: '';
|
|
714
|
+ position: absolute;
|
|
715
|
+ left: -13rpx;
|
|
716
|
+ top: 50%;
|
|
717
|
+ width: 26rpx;
|
|
718
|
+ height: 26rpx;
|
|
719
|
+ border-radius: 50%;
|
|
720
|
+ background-color: #49B856;
|
|
721
|
+ transform: translateY(-50%);
|
|
722
|
+ }
|
|
723
|
+ .name{
|
|
724
|
+ font-size: 30rpx;
|
|
725
|
+ }
|
|
726
|
+ .value{
|
|
727
|
+ margin-left: 20rpx;
|
|
728
|
+ font-size: 22rpx;
|
|
729
|
+ color: #A1A1A1;
|
|
730
|
+ flex: 1;
|
|
731
|
+ }
|
|
732
|
+ }
|
|
733
|
+ .process_item_bottom{
|
|
734
|
+ min-height: 82rpx;
|
|
735
|
+ border-left: 1rpx solid #B7BDC6;
|
|
736
|
+ margin-top: 5rpx;
|
|
737
|
+ padding-left: 30rpx;
|
|
738
|
+ display: flex;
|
|
739
|
+ font-size: 24rpx;
|
|
740
|
+ color: #A1A1A1;
|
|
741
|
+ .value{
|
|
742
|
+ margin-left: 20rpx;
|
|
743
|
+ }
|
|
744
|
+ }
|
|
745
|
+ }
|
|
746
|
+ }
|
|
747
|
+
|
|
748
|
+ .appraise_detail{
|
|
749
|
+ padding: 24rpx 24rpx 24rpx 40rpx;
|
|
750
|
+ .appraise_detail_top{
|
|
751
|
+ display: flex;
|
|
752
|
+ align-items: center;
|
|
753
|
+ justify-content: space-between;
|
|
754
|
+ font-size: 26rpx;
|
|
755
|
+ .name{
|
|
756
|
+ color: #A1A1A1;
|
|
757
|
+ }
|
|
758
|
+ .value{}
|
|
759
|
+ }
|
|
760
|
+ .appraise_detail_bottom{
|
|
761
|
+ font-size: 30rpx;
|
|
762
|
+ margin-top: 24rpx;
|
|
763
|
+ word-break: break-all;
|
|
764
|
+ }
|
|
765
|
+ }
|
|
766
|
+ }
|
|
767
|
+}
|
|
768
|
+</style>
|