| | |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item label='加工数量' :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入加工数量" v-decorator="['processQuantity', validatorRules.processQuantity]"></a-input> |
| | | <a-input-number :min="0" placeholder="请输入加工数量" v-decorator="['processQuantity', validatorRules.processQuantity]"></a-input-number> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="备注" :labelCol="labelColLong1" :wrapperCol="wrapperColLong1"> |
| | | <a-textarea v-decorator="['remark', validatorRules.remark]" placeholder="请输入备注" ></a-textarea> |
| | | <a-textarea :maxLength="20" v-decorator="['remark', validatorRules.remark]" placeholder="请输入备注" ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | 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 |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | <style scoped lang="less"> |
| | | .ant-btn { |
| | | padding: 0 10px; |
| | | margin-left: 3px; |
| | |
| | | .ant-tabs-content .ant-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | /deep/ .ant-input-number{ |
| | | width: 100%!important; |
| | | } |
| | | </style> |