| | |
| | | <template> |
| | | <a-modal title="新增库区信息" :width="900" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit" |
| | | <a-modal title="新增库区信息" :width="1100" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit" |
| | | @cancel="handleCancel"> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form :form="form"> |
| | |
| | | <!-- <a-form-item label="仓库编号" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> |
| | | <a-input placeholder="请输入仓库编号" v-decorator="['warehouseCode', {rules: [{required: true, message: '请输入仓库编号!'}]}]" /> |
| | | </a-form-item> --> |
| | | <a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> |
| | | <!-- <a-form-item label="仓库名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> |
| | | <a-input placeholder="请输入仓库名称" |
| | | v-decorator="['warehouseName', { rules: [{ required: true, message: '请输入仓库名称!' }] }]" /> |
| | | </a-form-item> |
| | | </a-form-item> --> |
| | | <a-form-item label="库区名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> |
| | | <a-input placeholder="请输入库区名称" |
| | | v-decorator="['areaName', { rules: [{ required: true, message: '请输入库区名称!' }] }]" /> |
| | |
| | | form: this.$form.createForm(this) |
| | | } |
| | | }, |
| | | created() { |
| | | WmsWarehousePage().then((d) => { |
| | | this.warehouseIdData = d.data.rows || [] |
| | | }).catch(() => { |
| | | }) |
| | | }, |
| | | methods: { |
| | | moment, |
| | | // 初始化方法 |
| | |
| | | }); |
| | | // const warehouseIdOption = this.$options |
| | | // this.warehouseIdData = warehouseIdOption.filters['dictData']('area_type') |
| | | WmsWarehousePage().then((d) => { |
| | | // this.selectTypeData = d.data || [] |
| | | this.warehouseIdData = d.data.rows || [] |
| | | }).catch(() => { |
| | | |
| | | }) |
| | | |
| | | |
| | | }, |
| | | /** |
| | |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="less" scoped> |
| | | .ant-row.ant-form-item { |
| | | width: 50% !important; |
| | | display: inline-block; |
| | | } |
| | | </style> |