Browse Source

只保留一个逗号

hella_online_20241114
yufei_wang 2 weeks ago
parent
commit
2ed69e9acd
  1. 10
      src/views/qms/inspectionRecordFirst/addForm.vue

10
src/views/qms/inspectionRecordFirst/addForm.vue

@ -1408,7 +1408,15 @@ const boxList = ref()
// })
// }
const inputChange = (val,cur) => {
cur.inspectionValue = cur.inspectionValue.replace(/[^0-9.]/g, '')
cur.inspectionValue = cur.inspectionValue.replace(/[^0-9.]/g, '').replace(/\./, '#').replace(/\./, '').replace(/#/, '\.') //
// cur.inspectionValue =
// cur.inspectionValue
// .replace(/[^\d^\.^-]+/g, '') //
// .replace(/^0+(\d)/, '$1') // 00
// .replace(/^-0+(\d)/, '-$1') // -00
// .replace(/-/g, (match: any, offset: number) => offset === 0 ? '-' : '') // -
// .replace(/\./, '#').replace(/\./, '').replace(/#/, '\.') //
}
const inspectionValueInput = (item, cur) => {
for (

Loading…
Cancel
Save