|
@@ -11,33 +11,30 @@ export default defineComponent({
|
|
|
name: 'subsidy-detail',
|
|
|
props: {
|
|
|
item: {
|
|
|
- type: Object as PropType<ICourseSalaryRecordDetailItem>,
|
|
|
- default() {
|
|
|
- return {
|
|
|
- courseScheduleTeacherAttendanceList: [{}]
|
|
|
- }
|
|
|
- }
|
|
|
+ type: Object,
|
|
|
+ default: () => {}
|
|
|
}
|
|
|
},
|
|
|
setup(props) {
|
|
|
console.log("🚀 ~ props", props)
|
|
|
+ const item = (props?.item || {}) as ICourseSalaryRecordDetailItem
|
|
|
return () => (
|
|
|
<div>
|
|
|
<div class={[styles.item, styles.listItem]}>
|
|
|
- <Cell border={false} center class={styles.listItem} title="补助标准" value={`${props.item.standardSalary}元/天`} />
|
|
|
+ <Cell border={false} center class={styles.listItem} title="补助标准" value={`${item.standardSalary}元/天`} />
|
|
|
<Cell
|
|
|
border={false}
|
|
|
center
|
|
|
class={styles.listItem}
|
|
|
title="补助课程"
|
|
|
- value={courseEmnu[props.item.courseType]}
|
|
|
+ value={courseEmnu[item.courseType]}
|
|
|
/>
|
|
|
<Cell
|
|
|
border={false}
|
|
|
center
|
|
|
class={styles.listItem}
|
|
|
title="课件使用未达标"
|
|
|
- value={`-${props.item.reduceSalary}元`}
|
|
|
+ value={`-${item.reduceSalary}元`}
|
|
|
/>
|
|
|
<Cell border={false} center class={styles.listItem} title="早退" value={`-0.00元`} />
|
|
|
<Cell
|
|
@@ -45,11 +42,11 @@ export default defineComponent({
|
|
|
center
|
|
|
class={styles.listItem}
|
|
|
title="实际补助金额"
|
|
|
- value={`${props.item.actualSalary}元`}
|
|
|
+ value={`${item.actualSalary}元`}
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
|
- {props.item.courseScheduleTeacherAttendanceList.map((item: ICourseScheduleTeacherAttendance) => (
|
|
|
+ {item?.courseScheduleTeacherAttendanceList.map((item: ICourseScheduleTeacherAttendance) => (
|
|
|
<div class={styles.item}>
|
|
|
<Cell center>
|
|
|
{{
|