| | |
| | | span: 24 |
| | | }, |
| | | sm: { |
| | | span: 6 |
| | | span: 8 |
| | | } |
| | | }, |
| | | wrapperCol: { |
| | |
| | | span: 24 |
| | | }, |
| | | sm: { |
| | | span: 18 |
| | | span: 16 |
| | | } |
| | | }, |
| | | labelColLong: { |
| | |
| | | span: 24 |
| | | }, |
| | | sm: { |
| | | span: 3 |
| | | span: 4 |
| | | } |
| | | }, |
| | | wrapperColLong1: { |
| | |
| | | span: 24 |
| | | }, |
| | | sm: { |
| | | span: 21 |
| | | span: 20 |
| | | } |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | validatorRules: { |
| | | duration:{ |
| | | rules:[ |
| | | {required:true,message:'请选择标准加工时间'} |
| | | ] |
| | | }, |
| | | efficientDate:{ |
| | | rules:[ |
| | | {required:true,message:'请选择日期'} |
| | | ] |
| | | }, |
| | | processQuantity:{ |
| | | rules:[ |
| | | {required:true,message:'请选择加工数量'} |
| | | ] |
| | | }, |
| | | }, |
| | | |
| | | url: { |
| | | add: '/mdc/mdcProcessQuantity/add', |
| | | edit: '/mdc/mdcProcessQuantity/edit' |
| | |
| | | } |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("添加成功") |
| | | // that.$message.success("添加成功") |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:"添加成功" |
| | | }); |
| | | // that.$message.success(res.message) |
| | | that.$emit('ok', res.result) |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | // that.$message.warning(res.message) |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false |