This commit is contained in:
parent
4ce724efb9
commit
744d69291b
|
|
@ -137,13 +137,13 @@ export default {
|
||||||
|
|
||||||
// 导出
|
// 导出
|
||||||
onHandleExport(queryParams) {
|
onHandleExport(queryParams) {
|
||||||
// this.download(
|
this.download(
|
||||||
// '/bmw/projectStatistics/exportProjectStatisticsTable',
|
'/bmw/proStatistics/exportProStatisticsTable',
|
||||||
// {
|
{
|
||||||
// // ...queryParams,
|
// ...queryParams,
|
||||||
// },
|
},
|
||||||
// '工程统计.xlsx',
|
'工程统计.xlsx',
|
||||||
// )
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,7 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const reg = /^[0-9]\d*(\.\d{1,2})?$/
|
const reg = /^[0-7]\d*(\.\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)
|
||||||
|
|
@ -320,7 +320,7 @@ export default {
|
||||||
|
|
||||||
onIptChange(value, prop, index, label) {
|
onIptChange(value, prop, index, label) {
|
||||||
// 增加一个正则校验 要求必须是大于等于0的并且是两位小数点的金额
|
// 增加一个正则校验 要求必须是大于等于0的并且是两位小数点的金额
|
||||||
const reg = /^[0-9]\d*(\.\d{1,2})?$/
|
const reg = /^[0-7]\d*(\.\d{1,2})?$/
|
||||||
const inputRef = `${index}-${prop}Ref`
|
const inputRef = `${index}-${prop}Ref`
|
||||||
const inputElement = this.$refs[inputRef]
|
const inputElement = this.$refs[inputRef]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue