|
|
@@ -2,10 +2,10 @@ |
|
|
|
<view class="page"> |
|
|
|
<view v-if="ready"> |
|
|
|
<l-select @input="setValue('OfficeEquipment.Name', $event)" :value="getValue('OfficeEquipment.Name')" |
|
|
|
:range="dataSource.OfficeEquipment.Name" title="姓名" required disabled /> |
|
|
|
:range="dataSource.OfficeEquipment.Name" title="姓名" required /> |
|
|
|
<l-select @input="setValue('OfficeEquipment.Department', $event)" |
|
|
|
:value="getValue('OfficeEquipment.Department')" :range="dataSource.OfficeEquipment.Department" |
|
|
|
title="部门" required disabled /> |
|
|
|
title="部门" required /> |
|
|
|
<l-input @input="setValue('OfficeEquipment.Code', $event)" :value="getValue('OfficeEquipment.Code')" |
|
|
|
:disabled="!edit" title="设备编号" required /> |
|
|
|
<l-input @input="setValue('OfficeEquipment.DeviceName', $event)" |
|
|
@@ -138,9 +138,9 @@ |
|
|
|
async fetchForm() { |
|
|
|
if (this.mode === 'create') { |
|
|
|
this.origin = await this.getDefaultForm() |
|
|
|
let userInfo = this.GET_GLOBAL('loginUser'); |
|
|
|
this.origin.OfficeEquipment.Name = userInfo.enCode |
|
|
|
this.origin.OfficeEquipment.Department = userInfo.departmentId |
|
|
|
// let userInfo = this.GET_GLOBAL('loginUser'); |
|
|
|
// this.origin.OfficeEquipment.Name = userInfo.enCode |
|
|
|
// this.origin.OfficeEquipment.Department = userInfo.departmentId |
|
|
|
} else { |
|
|
|
const result = await this.HTTP_GET('/Learun/adms/EducationalAdministration/officeEquipment/form', |
|
|
|
this |
|
|
|