禅道bug修复
This commit is contained in:
parent
c7d92328e1
commit
37936dbb76
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ export default {
|
||||||
this.download(
|
this.download(
|
||||||
'/bmw/workerStatistics/exportWorkerStatisticsTable',
|
'/bmw/workerStatistics/exportWorkerStatisticsTable',
|
||||||
{
|
{
|
||||||
// ...queryParams,
|
...queryParams,
|
||||||
},
|
},
|
||||||
'人员统计.xlsx',
|
'人员统计.xlsx',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ export default {
|
||||||
this.download(
|
this.download(
|
||||||
'/bmw/subStatistics/exportProStatisticsTable',
|
'/bmw/subStatistics/exportProStatisticsTable',
|
||||||
{
|
{
|
||||||
// ...queryParams,
|
...queryParams,
|
||||||
},
|
},
|
||||||
'分包统计.xlsx',
|
'分包统计.xlsx',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue