| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:3}" |
| | | :wrapperCol="{span:21}" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="线边库编号" |
| | | > |
| | | <a-input |
| | | :readOnly="disableSubmit" |
| | | :disabled="disableSubmit" |
| | | allow-clear |
| | | placeholder="请输入线边库编号" |
| | | v-decorator="['warehouseCode', validatorRules.warehouseCode ]" |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:3}" |
| | | :wrapperCol="{span:21}" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="线边库名称" |
| | | > |
| | | <a-input |
| | | :readOnly="disableSubmit" |
| | | :disabled="disableSubmit" |
| | | allow-clear |
| | | placeholder="请输入线边库名称" |
| | | v-decorator="['warehouseName', validatorRules.warehouseName ]" |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="产线" |
| | | > |
| | | <j-dict-select-tag |
| | | type="list" |
| | | <j-select-factory |
| | | :disabled="disableSubmit" |
| | | v-model="model.factoryId" |
| | | :trigger-change="true" |
| | | dictCode="base_factory,factory_name,id" |
| | | placeholder="请选择产线" |
| | | /> |
| | | :multi="true" |
| | | @back="backFactoryInfo" |
| | | :backProduction="true" |
| | | :treeProductOpera="true" |
| | | ></j-select-factory> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | import moment from 'moment' |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import JTreeDict from '@/components/jeecg/JTreeDict'//分类字典树形下拉组件 |
| | | import JSelectFactory from '../../../../components/jeecgbiz/JSelectFactory' |
| | | |
| | | export default { |
| | | name: "WarehouseModal", |
| | | components: { |
| | | JDate, |
| | | JTreeDict, |
| | | JSelectFactory |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | warehouseId: "", //保存线边库id |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 18 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | |
| | | confirmLoading: false, |
| | |
| | | add: "/base/lineSideWarehouse/add", |
| | | edit: "/base/lineSideWarehouse/edit", |
| | | }, |
| | | nextFactoryOptions: [], |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | backFactoryInfo(info) { |
| | | this.model.factoryIds = this.model.factoryId |
| | | this.nextFactoryOptions = info.map((item, index, arr) => { |
| | | let c = { label: item.text, value: item.value + '' } |
| | | return c |
| | | }) |
| | | }, |
| | | // 关闭弹窗时清除表单校验 |
| | | removeValidate() { |
| | | if (this.$refs.form) this.$refs.form.clearValidate() |
| | | } |
| | | } |
| | | } |
| | | </script> |