农资管理打开窗口表单重置;用户管理打开窗口移除验证
| | |
| | | } |
| | | }; |
| | | |
| | | /** |
| | | * 限制输入的数字长度 |
| | | * @param rule |
| | | * @param value |
| | | * @param callback |
| | | */ |
| | | const limitNumLength = (rule, value, callback) => { |
| | | if (rule.required) { |
| | | if (value) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | export {limitNumInt,limitNumLength} |
| | |
| | | , |
| | | // 往入库页面填充数据 |
| | | modifiedGrades(row) { |
| | | this.gradeBoxVisible = true; |
| | | this.$nextTick(()=>{ |
| | | this.$refs.formR.resetForm() |
| | | }) |
| | | this.formR = { |
| | | id: null, |
| | | stockId1: row.stockId, |
| | |
| | | sid: row.id, |
| | | }; |
| | | this.formTemp = this.formR |
| | | this.gradeBoxVisible = true; |
| | | } |
| | | , |
| | | mod(row) { |
| | | this.formK = {} |
| | | this.gradec = true; |
| | | } |
| | | , |
| | | modifiedGrades1(row) { |
| | | this.gradeBoxVisible1 = true; |
| | | this.$nextTick(()=>{ |
| | | this.$refs.formC.resetForm() |
| | | }) |
| | | this.formC = { |
| | | id: null, |
| | | stockId1: row.stockId, |
| | |
| | | sid: row.id, |
| | | }; |
| | | this.formTemp = this.formC |
| | | this.gradeBoxVisible1 = true; |
| | | } |
| | | , |
| | | rowSave(row, done, loading) { |
| | |
| | | import {dateNow} from "@/util/date"; |
| | | import NProgress from 'nprogress'; |
| | | import 'nprogress/nprogress.css'; |
| | | |
| | | export default { |
| | | data() { |
| | | const validatePass = (rule, value, callback) => { |
| | |
| | | }); |
| | | }, |
| | | update(row){ |
| | | this.dialogVisible = true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.form.clearValidate() |
| | | }) |
| | | this.form = { |
| | | id:row.id, |
| | | account:row.account, |
| | |
| | | var password2Column = this.findObject(this.option.group,"password2") |
| | | passwordColumn.display = false; |
| | | password2Column.display = false; |
| | | this.dialogVisible = true |
| | | }, |
| | | submitUpdate(row, done, loading){ |
| | | this.form['deptId'] = this.userInfo.dept_id; |