Commit f6ec26a0 by liang ce

分支处理

parent ecd11c25
......@@ -2,7 +2,6 @@ import * as dd from 'dingtalk-jsapi'
import router from '../router'
import axios from 'axios'
import qs from 'qs'
import { message } from 'ant-design-vue'
var instance = axios.create()
const BASE_URL = process.env.VUE_APP_API_URL
......
......@@ -357,7 +357,7 @@ export default {
saveProduct () {
const temp = /^\d+\.?\d{0,2}$/
if (!temp.test(this.addProduct.productPrice) || parseFloat(this.addProduct.productPrice) > 1000) {
this.$message.error('请输入正确的数字金额,最多保留小数点后两位')
this.$message.error('请输入正确的数字金额,最多保留小数点后两位,最高金额为1000')
return
}
if (!/^[0-9]*$/.test(this.addProduct.sort)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment