禅道bug修复

This commit is contained in:
BianLzhaoMin 2025-10-17 10:12:24 +08:00
parent c7d92328e1
commit 37936dbb76
5 changed files with 18 additions and 7 deletions

View File

@ -1444,7 +1444,10 @@ export default {
(item) => item.value === val, (item) => item.value === val,
).label ).label
this.getTeamSelectList({ subId: val }) this.getTeamSelectList({
subId: val,
proId: this.keyInfoForm.proId,
})
}, },
// //
onChangeTeamId(val) { onChangeTeamId(val) {

View File

@ -214,6 +214,8 @@ export default {
'/bmw/workerStatistics/exportWorkerEinDayRecordDetail', '/bmw/workerStatistics/exportWorkerEinDayRecordDetail',
{ {
workerId: this.workerId, workerId: this.workerId,
subId: this.subId,
proId: this.proId,
}, },
'考勤信息.xlsx', '考勤信息.xlsx',
) )

View File

@ -71,7 +71,7 @@ export default {
this.download( this.download(
'/bmw/workerStatistics/exportWorkerStatisticsTable', '/bmw/workerStatistics/exportWorkerStatisticsTable',
{ {
// ...queryParams, ...queryParams,
}, },
'人员统计.xlsx', '人员统计.xlsx',
) )

View File

@ -74,7 +74,7 @@ export default {
this.download( this.download(
'/bmw/subStatistics/exportProStatisticsTable', '/bmw/subStatistics/exportProStatisticsTable',
{ {
// ...queryParams, ...queryParams,
}, },
'分包统计.xlsx', '分包统计.xlsx',
) )

View File

@ -288,7 +288,8 @@ export default {
} }
}) })
const reg = /^[0-7]\d*(\.\d{1,2})?$/ const reg =
/^[0-7]\d{0,7}(\.\d{1,2})?$|^8\d{0,7}(\.\d{1,2})?$|^9\d{0,7}(\.\d{1,2})?$|^[1-9]\d{0,8}(\.\d{1,2})?$/
const valid = validData.every((item) => { const valid = validData.every((item) => {
return ( return (
reg.test(item.deductMoney) && reg.test(item.actualMoney) reg.test(item.deductMoney) && reg.test(item.actualMoney)
@ -296,7 +297,7 @@ export default {
}) })
if (!valid) { if (!valid) {
this.$modal.msgError( this.$modal.msgError(
'代扣/代缴、实发工资金额必须为数字且最多两位小数', '代扣/代缴、实发工资金额必须为数字且最多两位小数并且不能超过99999999.99',
) )
this.isEdit = true this.isEdit = true
return false return false
@ -325,13 +326,18 @@ export default {
onIptChange(value, prop, index, label) { onIptChange(value, prop, index, label) {
// 0 // 0
const reg = /^[0-7]\d*(\.\d{1,2})?$/ const reg =
/^[0-7]\d{0,7}(\.\d{1,2})?$|^8\d{0,7}(\.\d{1,2})?$|^9\d{0,7}(\.\d{1,2})?$|^[1-9]\d{0,8}(\.\d{1,2})?$/
const inputRef = `${index}-${prop}Ref` const inputRef = `${index}-${prop}Ref`
const inputElement = this.$refs[inputRef] const inputElement = this.$refs[inputRef]
if (!reg.test(value)) { if (!reg.test(value)) {
// this.$message.error('') // this.$message.error('')
this.$modal.msgError(`${index + 1}${label}金额输入错误`) this.$modal.msgError(
`${
index + 1
}行${label}金额输入错误金额必须为数字且最多两位小数并且不能超过99999999.99`,
)
// this.columnData[index][prop] = 0 // this.columnData[index][prop] = 0
// 0 // 0