1. 新增validSpecification规格校验函数,校验格式为数字.两位小数*数字的钢卷规格 2. 为多个页面的钢卷号输入框添加trim修饰符自动去除首尾空格 3. 在API层统一对钢卷号字段做trim预处理 4. 为原料和产品表单添加规格必填校验和格式校验 5. 新增钢卷信息修正页面,添加生产耗时自动计算功能 6. 优化部分页面的UI和代码冗余
开发
# 克隆项目
git clone https://gitee.com/KonBAI-Q/klp-flowable-plus.git
# 进入项目目录
cd klp-ui
# 安装依赖
npm install
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npmmirror.com
# 启动服务
npm run dev
浏览器访问 http://localhost:80
发布
# 构建测试环境
npm run build:stage
# 构建生产环境
npm run build:prod