Commit 74bd583f by 胡悦

fix(工资申诉): 修复申诉记录组件中属性名错误和显示问题

修复 AttendanceRecord 组件中属性名错误,将 type 改为 popType
修复申诉回复时间字段错误,使用 replyDate 替代 createdDate
修复表单项单位显示错误,使用正确的单位字段
1 parent 9dbc508d
<template> <template>
<RightPopup ref="rightPopup" :title="title[type]" :showFooter="true" @confirm="confirm" :confirmDisabled="confirmDisabled"> <RightPopup ref="rightPopup" :title="title[popType]" :showFooter="true" @confirm="confirm" :confirmDisabled="confirmDisabled">
<view class="popup-content"> <view class="popup-content">
<view class="appeal-desc"> <view class="appeal-desc">
<view class="sprite-icon icon-icon-appeal"></view>规定申诉时间为<view class="blod-text">每月{{appealStartTime}}号-每月{{appealEndTime}}号</view> <view class="sprite-icon icon-icon-appeal"></view>规定申诉时间为<view class="blod-text">每月{{appealStartTime}}号-每月{{appealEndTime}}号</view>
,支持提交修订异议处理,总部流转审批,请在规定时间内完成,逾期不再受理。 ,支持提交修订异议处理,总部流转审批,请在规定时间内完成,逾期不再受理。
</view> </view>
<view class="form-item flex-item line"> <view class="form-item flex-item line" v-if="formItem[popType]">
<view class="label">{{formItem[type][0].label}}</view> <view class="label">{{formItem[popType][0].label}}</view>
<view class="value"><text class="blue-text">{{ count }}</text> {{formItem[type][1].unit}}</view> <view class="value"><text class="blue-text">{{ count }}</text> {{formItem[popType][0].unit}}</view>
</view> </view>
<view class="form-item"> <view class="form-item" v-if="formItem[popType]">
<view class="label m-b">{{formItem[type][1].label}}</view> <view class="label m-b">{{formItem[popType][1].label}}</view>
<view class="input-box"> <view class="input-box">
<input type="number" v-model="formData.modifyCount" :maxlength="formItem[type][1].maxlength" placeholder="请输入" placeholder-class="placeholder" @input="onInput" /> <input type="number" v-model="formData.modifyCount" :maxlength="formItem[popType][1].maxlength" placeholder="请输入" placeholder-class="placeholder" @input="onInput" />
<text class="suffix">{{formItem[type][1].unit}}</text> <text class="suffix">{{formItem[popType][1].unit}}</text>
</view> </view>
</view> </view>
...@@ -71,6 +71,7 @@ import dayjs from 'dayjs' ...@@ -71,6 +71,7 @@ import dayjs from 'dayjs'
import { uploadFile } from '@/utils/ossUpload.js' import { uploadFile } from '@/utils/ossUpload.js'
import RightPopup from '../../components/RightPopup.vue' import RightPopup from '../../components/RightPopup.vue'
import { title, formItem } from './contant.js' import { title, formItem } from './contant.js'
import permision from '@/js_sdk/wa-permission/permission.js'
const MAX_IMAGE_SIZE = 10 * 1024 * 1024, // 图片最大10MB const MAX_IMAGE_SIZE = 10 * 1024 * 1024, // 图片最大10MB
MAX_IMG_COUNT = 10 // 最大图片数量 MAX_IMG_COUNT = 10 // 最大图片数量
export default { export default {
...@@ -87,9 +88,9 @@ export default { ...@@ -87,9 +88,9 @@ export default {
type: [Number, String], type: [Number, String],
default: 0 default: 0
}, },
type: { popType: {
type: String, type: String,
default: '' default: 'attendance'
}, },
lastRecord: { lastRecord: {
type: Object, type: Object,
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<view class="reply-content">{{ item.replyContent }}</view> <view class="reply-content">{{ item.replyContent }}</view>
<view class="reply-footer"> <view class="reply-footer">
<text>申诉类型:{{ item.appealType === 1 ? '考勤' : '平板' }}</text> <text>申诉类型:{{ item.appealType === 1 ? '考勤' : '平板' }}</text>
<text class="time">{{ formatTime(item.createdDate, 'YYYY-MM-DD HH:mm:ss') }}</text> <text class="time">{{ formatTime(item.replyDate, 'YYYY-MM-DD HH:mm:ss') }}</text>
</view> </view>
</view> </view>
<view v-if="replyList.length === 0" class="empty-text"> <view v-if="replyList.length === 0" class="empty-text">
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<AttendanceRecord @confirm="handleConfirm" :appealStartTime="appealData.appealStartTime" :appealEndTime="appealData.appealEndTime" ref="attendanceRecord" :lastRecord="lastRecord" :currentCount="currentCount" :type="popType" :month="month" /> <AttendanceRecord @confirm="handleConfirm" :appealStartTime="appealData.appealStartTime" :appealEndTime="appealData.appealEndTime" ref="attendanceRecord" :lastRecord="lastRecord" :currentCount="currentCount" :popType="popType" :month="month" />
</view> </view>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!