Browse Source

设备编辑修改

master
zyzm 3 years ago
parent
commit
357b51bc1f
  1. 2
      src/views/storeManage/deviceManage/module/deviceDetail.vue

2
src/views/storeManage/deviceManage/module/deviceDetail.vue

@ -27,6 +27,7 @@
<span class="dialog-left-bottom" />
<div class="setting-dialog">
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="80px">
<!-- <el-input v-model="form.storeroomId" type="hidden" /> -->
<el-form-item label="设备厂商" prop="supplier">
<el-select v-model="form.supplier" style="width: 370px;" :disabled="crud.status.edit === 1">
<el-option v-for="item in supplierOptions" :key="item.id" :label="item.name" :value="item.id" />
@ -418,7 +419,6 @@ export default {
return false
},
[CRUD.HOOK.beforeSubmit]() {
this.crud.form.storeroomId = this.storeroomId
this.crud.form.supplierId = this.supplierOptions.find(item => item.id === this.crud.form.supplier)
this.crud.form.deviceTypeId = this.deviceTypeOptions.find(item => item.name === this.selectedDeviceType)
},

Loading…
Cancel
Save