| | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="加工设备编号" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-select v-model="model.processingEquipmentCode" placeholder="请选择加工设备编号"></a-select> |
| | | <a-select v-model="model.processingEquipmentCode" placeholder="请选择加工设备编号"> |
| | | <a-select-option v-for="item in allDeviceList" :key="item.deviceId"> |
| | | {{item.deviceId}} |
| | | </a-select-option> |
| | | </a-select> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="加工设备型号"> |
| | | <a-input v-model="model.processingEquipmentModel" placeholder="请输入加工设备型号"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="加工设备类型"> |
| | | <a-input v-model="model.processingEquipmentOs" placeholder="请输入加工设备类型"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | export default { |
| | | name: 'ProcessModalForm', |
| | | components: {}, |
| | | props: { |
| | | allDeviceList: { |
| | | type: Array |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | model: { |
| | |
| | | created() { |
| | | //备份model原始值 |
| | | this.modelDefault = JSON.parse(JSON.stringify(this.model)) |
| | | this.$bus.$on('sendAllDeviceList', deviceList => this.deviceList = deviceList) |
| | | }, |
| | | methods: { |
| | | add(params) { |