| | |
| | | */ |
| | | export function productionDeviceForm(sceneType, defaultValue) { |
| | | const items = [ |
| | | hideInputItem('id', 'piId'), |
| | | hideInputItem('创建时间', 'piCreateTime'), |
| | | hideInputItem('更新时间', 'piUpdateTime'), |
| | | hideInputItem('场景id', 'piSceneGuid'), |
| | | hideInputItem('场景类型', 'piSceneTypeId'), |
| | | hideInputItem('id', 'wiId'), |
| | | hideInputItem('创建时间', 'wiCreateTime'), |
| | | hideInputItem('更新时间', 'wiUpdateTime'), |
| | | hideInputItem('场景id', 'wiSceneGuid'), |
| | | hideInputItem('场景类型', 'wiSceneTypeId'), |
| | | |
| | | baseInputItem('设备名称', 'piName', true), |
| | | baseInputItem('设备编号', 'piDeviceCode'), |
| | | baseInputItem('设备名称', 'wiName', true), |
| | | baseInputItem('设备编号', 'wiDeviceCode'), |
| | | // 设备类型和设备子类合并用级联选择器展示 |
| | | baseInputItem( |
| | | '设备类型', |
| | |
| | | 'cascader', |
| | | productionDevices(sceneType), |
| | | ['选择设备类型', '选择设备子类'], |
| | | ['piTypeId', 'piSubtypeId'], |
| | | ['wiTypeId', 'wiSubtypeId'], |
| | | ), |
| | | // baseInputItem('设备类型', 'piTypeId', true, 'picker'), |
| | | // baseInputItem('设备子类', 'piSubtypeId', true, 'picker'), |
| | | baseInputItem('供应商', 'piSupplier'), |
| | | baseInputItem('服务商', 'piServicer'), |
| | | baseInputItem('服务人员', 'piMaintainStaff'), |
| | | baseInputItem('服务电话', 'piMaintainTel'), |
| | | baseInputItem('运行状态', 'piRunningStatus', true, 'picker', status), |
| | | baseInputItem('品牌型号', 'piBrandModel'), |
| | | baseInputItem('设备参数', 'piDeviceParam'), |
| | | baseInputItem('所有权', 'piOwnership', true, 'picker', ownership), |
| | | baseInputItem('供应商', 'wiSupplier'), |
| | | baseInputItem('服务商', 'wiServicer'), |
| | | baseInputItem('服务人员', 'wiMaintainStaff'), |
| | | baseInputItem('服务电话', 'wiMaintainTel'), |
| | | baseInputItem('运行状态', 'wiRunningStatus', true, 'picker', status), |
| | | baseInputItem('品牌型号', 'wiBrandModel'), |
| | | baseInputItem('设备参数', 'wiDeviceParam'), |
| | | baseInputItem('所有权', 'wiOwnership', true, 'picker', ownership), |
| | | |
| | | // todo 2024/8/12: 后续要添加二维码的信息扫描录入 |
| | | // baseInputItem('标识二维码', 'piQRCode'), |
| | | // baseInputItem('其他第三方或设备自带二维码', 'piOtherQRCode'), |
| | | // baseInputItem('标识二维码', 'wiQRCode'), |
| | | // baseInputItem('其他第三方或设备自带二维码', 'wiOtherQRCode'), |
| | | ]; |
| | | setDefaultValue(items, defaultValue); |
| | | return items; |