|
@@ -711,7 +711,17 @@ export default {
|
|
|
case 'banci':
|
|
case 'banci':
|
|
|
{
|
|
{
|
|
|
this.banciInfo = dateArr
|
|
this.banciInfo = dateArr
|
|
|
- this.banciDialogVisible = true
|
|
|
|
|
|
|
+ // 更新考勤数据
|
|
|
|
|
+ const self = this
|
|
|
|
|
+ const sql = `select * from t_attendance_detail where id_ = '${dateArr.attendance?.id_}' `
|
|
|
|
|
+ this.$common.request('sql', sql).then((res) => {
|
|
|
|
|
+ const obj = res.variables.data[0] || dateArr.attendance
|
|
|
|
|
+ self.banciInfo = {
|
|
|
|
|
+ ...self.banciInfo, // 保留其他属性
|
|
|
|
|
+ attendance: obj // 更新 attendance
|
|
|
|
|
+ }
|
|
|
|
|
+ self.banciDialogVisible = true
|
|
|
|
|
+ })
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 'buka':
|
|
case 'buka':
|