Commit e2c00c07 by zhangxw

bug修复

1 parent 59aac959
...@@ -290,9 +290,7 @@ export default { ...@@ -290,9 +290,7 @@ export default {
taskCountInput(e) { taskCountInput(e) {
e = e ? String(e) : '' e = e ? String(e) : ''
let value = e let value = e
const intDigitReg = `(^\\d{5})\\d+(\\.\\d+)?` value = e.replace(/[^\d]/g, '')
value = e.replace(/^0\d/g, '0').replace(/[^\d.]/g, '').replace(/^\./g, '').replace(new RegExp(intDigitReg,'g'), '$1').replace('.', '$#$')
.replace(/\./g, '').replace('$#$', '.').replace(new RegExp(`^(-)*(\\d+)\\.(\\d{0}).*$`), this.intDigit == -1 ? '$1$2' : '$1$2.$3')
if (+e <= 0) { if (+e <= 0) {
value = '' value = ''
} else if (+e >= 10000) { } else if (+e >= 10000) {
...@@ -302,7 +300,7 @@ export default { ...@@ -302,7 +300,7 @@ export default {
}, },
// 下载导入模板 // 下载导入模板
downloadTemplate() { downloadTemplate() {
let res = 'https://qcimg01.glsx.com.cn/rpc-scrm-equity/upload/pdf/批量新增导入模板.xlsx' let res = 'https://qcimg01.glsx.com.cn/rpc-scrm-equity/upload/pdf/线下订单导入模板.xlsx'
let tempaa = util.getExplorer() let tempaa = util.getExplorer()
if (tempaa == 'QQ') { if (tempaa == 'QQ') {
window.open(res) window.open(res)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!