| | |
| | | :wrapperCol="wrapperCol" |
| | | prop="useId" |
| | | > |
| | | <!-- <a-tree-select |
| | | style="width: 100%" |
| | | :disabled="formDisabled" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择使用部门" |
| | | tree-default-expand-all |
| | | v-model="model.useId" |
| | | /> --> |
| | | |
| | | |
| | | |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="是否生产线设备" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="isLineEquip" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请选择" |
| | | :triggerChange="true" |
| | | :disabled="true" |
| | | dictCode="is_product" |
| | | v-model="model.isLineEquip" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="是否生产线" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="isLine" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请选择" |
| | | :triggerChange="true" |
| | | :disabled="true" |
| | | dictCode="is_product" |
| | | v-model="model.isLine" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="设备图片" |
| | |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this |
| | | this.edit(this.modelDefault); |
| | | }, |
| | | edit(record) { |
| | |
| | | this.model = Object.assign({}, record); |
| | | if (!this.model.id) { |
| | | this.model.equipmentStatus = '1' |
| | | this.model.isLineEquip = 'no' |
| | | this.model.isLine = 'no' |
| | | } |
| | | this.visible = true; |
| | | }, |