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