vue2-client 1.22.37 → 1.22.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,7 +101,7 @@
101
101
  :ref="el => registerFig(el)"
102
102
  />
103
103
  </div>
104
- <!-- 隐患照片 -->
104
+ <!-- 隐患照片 -->
105
105
  <div class="hazard-photos-section" v-if="device.hazardPhotos && device.hazardPhotos.length > 0">
106
106
  <div class="section-title">隐患照片</div>
107
107
  <!-- 隐患照片使用FileImageGroup -->
@@ -48,7 +48,12 @@ export default {
48
48
  this.$message.warning('请输入有效的安检 ID')
49
49
  return
50
50
  }
51
- this.$refs.detailDrawer.init({ id })
51
+ this.$refs.detailDrawer.init({
52
+ historyListParams: {
53
+ f_content: '合规'
54
+ },
55
+ f_userinfo_id: 96448
56
+ })
52
57
  },
53
58
  handleRefresh () {
54
59
  this.$message.success('详情已刷新')
@@ -426,7 +426,11 @@ export default {
426
426
  this.showHistoryPanel = !params?.id && !!params?.f_userinfo_id
427
427
 
428
428
  if (params.f_userinfo_id) {
429
- const historyList = await inspectionService.getHistoryList(params.f_userinfo_id)
429
+ const historyListParams = {
430
+ ...(params.historyListParams ?? {}),
431
+ f_userinfo_id: params.f_userinfo_id
432
+ }
433
+ const historyList = await inspectionService.getHistoryList(historyListParams)
430
434
  if (historyList && historyList.length > 0) {
431
435
  this.inspectionData.historyList = historyList
432
436
  if (!params.id) {
@@ -463,9 +467,9 @@ export default {
463
467
  }
464
468
  console.warn('datra', data)
465
469
  this.formFigInstances = []
466
- //遍历隐患明细,获取隐患处理后照片
470
+ // 遍历隐患明细,获取隐患处理后照片
467
471
  for (let i = 0; i < data.hazardList.length; i++) {
468
- let param = { defectId:data.hazardList[i].id }
472
+ const param = { defectId:data.hazardList[i].id }
469
473
  const res = await runLogic('getDefectDetailList', param,'af-safecheck')
470
474
  data.hazardList[i].handleimages=res[0].handleimages
471
475
  }
@@ -14,8 +14,8 @@ export const getInspectionFullDetail = async (paperId) => {
14
14
  }
15
15
  throw new Error('API返回数据格式不正确')
16
16
  }
17
- export const fetchHistoryList = async (userinfoId) => {
18
- return post('api/af-safecheck/logic/getSafecheckHistoryList', { f_userinfo_id: userinfoId })
17
+ export const fetchHistoryList = async (params) => {
18
+ return post('api/af-safecheck/logic/getSafecheckHistoryList', params)
19
19
  }
20
20
 
21
21
  export const approveInspection = async (params) => {
@@ -34,8 +34,8 @@ class InspectionService {
34
34
  return getInspectionFullDetail(id)
35
35
  }
36
36
 
37
- async getHistoryList (userInfoId) {
38
- const list = await fetchHistoryList(userInfoId)
37
+ async getHistoryList (params) {
38
+ const list = await fetchHistoryList(params)
39
39
  return this.formatHistoryList(list)
40
40
  }
41
41