| | |
| | | @change="handleTableChange" |
| | | :customRow="customTableRow" |
| | | > |
| | | <span slot="equipmentImportance" slot-scope="text"> |
| | | <lx-switch v-model="text" disabled checked-children="是" un-checked-children="否"/> |
| | | </span> |
| | | <span slot="mdcFlag" slot-scope="text"> |
| | | <lx-switch v-model="text" disabled checked-children="是" un-checked-children="否"/> |
| | | </span> |
| | | <span slot="processParametersFlag" slot-scope="text"> |
| | | <lx-switch v-model="text" disabled checked-children="有" un-checked-children="无"/> |
| | | </span> |
| | | <span slot="precisionParametersFlag" slot-scope="text"> |
| | | <lx-switch v-model="text" disabled checked-children="有" un-checked-children="无"/> |
| | | </span> |
| | | <span slot="specialEquipment" slot-scope="text"> |
| | | <lx-switch v-model="text" disabled checked-children="是" un-checked-children="否"/> |
| | | </span> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click.stop="handleEdit(record)">编辑</a> |
| | |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '关键设备标识', |
| | | title: '管理分类', |
| | | align: 'center', |
| | | width: 120, |
| | | dataIndex: 'equipmentImportance', |
| | | scopedSlots: { customRender: 'equipmentImportance' } |
| | | dataIndex: 'equipmentImportance_dictText', |
| | | }, |
| | | { |
| | | title: '资产状态', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'assetStatus_dictText' |
| | | }, |
| | | { |
| | | title: '技术状态', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'technologyStatus_dictText' |
| | | }, |
| | | { |
| | | title: '维修状态', |
| | |
| | | dataIndex: 'maintenanceStatus_dictText' |
| | | }, |
| | | { |
| | | title: '操作系统', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'operationSystem' |
| | | }, |
| | | { |
| | | title: '使用车间', |
| | | align: 'center', |
| | | width: 100, |
| | |
| | | dataIndex: 'equipmentManager_dictText' |
| | | }, |
| | | { |
| | | title: '设备分类', |
| | | title: '设备类别', |
| | | align: 'center', |
| | | dataIndex: 'equipmentCategory_dictText' |
| | | }, |
| | | { |
| | | title: '设备种类', |
| | | align: 'center', |
| | | dataIndex: 'equipmentType_dictText' |
| | | }, |
| | | { |
| | | title: '设备型号', |
| | |
| | | dataIndex: 'equipmentSpecification' |
| | | }, |
| | | { |
| | | title: '主轴连接尺寸', |
| | | title: '区号', |
| | | align: 'center', |
| | | width: 120, |
| | | dataIndex: 'spindleConnectDimension' |
| | | width: 100, |
| | | dataIndex: 'areaCode' |
| | | }, |
| | | { |
| | | title: '总功率', |
| | | title: '电机台数', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'motorsNumber' |
| | | }, |
| | | { |
| | | title: '总功率(KW)', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'equipmentPower' |
| | | }, |
| | | { |
| | | title: '重量(吨)', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'equipmentWeight' |
| | | }, |
| | | { |
| | | title: '安装位置', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'installationPosition' |
| | | }, |
| | | { |
| | | title: '立项卡号', |
| | | align: 'center', |
| | | dataIndex: 'cardNumber' |
| | | }, |
| | | { |
| | | title: '出厂编号', |
| | |
| | | dataIndex: 'originCountry' |
| | | }, |
| | | { |
| | | title: '设备供应商', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'supplier' |
| | | }, |
| | | { |
| | | title: '出厂日期', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'leaveFactoryDate' |
| | | }, |
| | | { |
| | | title: '验收日期', |
| | | title: '投用日期', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'acceptanceCheckDate' |
| | | }, |
| | | { |
| | | title: '质保开始日期', |
| | | align: 'center', |
| | | width: 120, |
| | | dataIndex: 'warrantyStartDate' |
| | | }, |
| | | { |
| | | title: '质保结束日期', |
| | | align: 'center', |
| | | width: 120, |
| | | dataIndex: 'warrantyEndDate' |
| | | }, |
| | | { |
| | | title: '是否实施MDC', |
| | | align: 'center', |
| | | width: 120, |
| | | dataIndex: 'mdcFlag', |
| | | scopedSlots: { customRender: 'mdcFlag' } |
| | | }, |
| | | { |
| | | title: '有无工艺参数', |
| | |
| | | scopedSlots: { customRender: 'precisionParametersFlag' } |
| | | }, |
| | | { |
| | | title: '是否为特种设备', |
| | | title: '外形尺寸', |
| | | align: 'center', |
| | | width: 120, |
| | | dataIndex: 'specialEquipment', |
| | | scopedSlots: { customRender: 'specialEquipment' } |
| | | dataIndex: 'overallDimensions' |
| | | }, |
| | | { |
| | | title: '重量', |
| | | title: '原值(元)', |
| | | align: 'center', |
| | | dataIndex: 'equipmentWeight' |
| | | dataIndex: 'originalValue' |
| | | }, |
| | | { |
| | | title: '设备端口', |
| | | title: '资金来源', |
| | | align: 'center', |
| | | dataIndex: 'equipmentPort' |
| | | dataIndex: 'fundingSource' |
| | | }, |
| | | { |
| | | title: '坐标数量', |
| | | title: '功能用途', |
| | | align: 'center', |
| | | dataIndex: 'coordinateNum' |
| | | dataIndex: 'functionUse' |
| | | }, |
| | | { |
| | | title: '性能指标', |
| | | align: 'center', |
| | | dataIndex: 'performanceIndicators' |
| | | }, |
| | | { |
| | | title: '入帐时间', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'bookingTime' |
| | | }, |
| | | { |
| | | title: '创建人', |
| | |
| | | exportXlsUrl: 'eam/equipment/exportXls', |
| | | importExcelUrl: 'eam/equipment/importExcel', |
| | | loadProductionOptions: '/mdc/mdcProduction/loadProductionTreeOptions', |
| | | templateXlsDownloadUrl: '导入模板/设备台账导入模板_v1.0.xlsx' |
| | | templateXlsDownloadUrl: '导入模板/设备台账导入模板_v1.1.xlsx' |
| | | }, |
| | | treeData: [], |
| | | printedRows: [], |
| | |
| | | cancelText="关闭"> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> 设备基础信息 |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> 基础信息 |
| | | </a-divider> |
| | | |
| | | <a-row :gutter="24"> |
| | |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="equipmentCategory" |
| | | label="设备分类"> |
| | | <j-dict-select-tag dict-code="equipment_category" placeholder="请选择设备分类" |
| | | label="设备类别"> |
| | | <j-dict-select-tag dict-code="equipment_category" placeholder="请选择设备类别" |
| | | v-model="model.equipmentCategory" :disabled="disableSubmit" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="operationSystem" |
| | | label="操作系统"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入操作系统'" v-model="model.operationSystem" :disabled="disableSubmit" /> |
| | | <a-form-model-item prop="equipmentType" |
| | | label="设备种类"> |
| | | <j-tree-dict placeholder="请选择设备种类" v-model="model.equipmentType" parent-code="equipment_category" field="code" :async="false" :disabled="disableSubmit"></j-tree-dict> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="equipmentImportance" |
| | | label="关键设备标识"> |
| | | <lx-switch |
| | | checked-children='是' |
| | | un-checked-children='否' |
| | | v-model="model.equipmentImportance" |
| | | :disabled="disableSubmit" |
| | | /> |
| | | label="管理分类"> |
| | | <j-dict-select-tag dict-code="equipment_abc_flag" placeholder="请选择管理分类" |
| | | v-model="model.equipmentImportance" :disabled="disableSubmit" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="equipmentPower" label="总功率"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入总功率'" v-model="model.equipmentPower" :disabled="disableSubmit"/> |
| | | <a-form-model-item prop="originalValue" label="原值(元)"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入原值'" v-model="model.originalValue" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="cardNumber" label="立项卡号"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入立项卡号'" v-model="model.cardNumber" :disabled="disableSubmit"/> |
| | | <a-form-model-item prop="fundingSource" label="资金来源"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入资金来源'" v-model="model.fundingSource" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | <j-image-upload text="设备图片" bizPath="eam_equipment_image" v-model="model.equipmentImage"></j-image-upload> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="equipmentWeight" label="重量"> |
| | | <a-form-model-item prop="motorsNumber" |
| | | label="电机台数"> |
| | | <a-input-number :placeholder="disableSubmit?'':'请输入电机台数'" v-model="model.motorsNumber" :disabled="disableSubmit" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="equipmentPower" label="总功率(KW)"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入总功率'" v-model="model.equipmentPower" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="equipmentWeight" label="重量(吨)"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入重量'" v-model="model.equipmentWeight" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="equipmentPort" label="设备端口"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入设备端口'" v-model="model.equipmentPort" :disabled="disableSubmit"/> |
| | | <a-form-model-item prop="overallDimensions" label="外形尺寸"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入外形尺寸'" v-model="model.overallDimensions" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="areaCode" label="区号"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入区号'" v-model="model.areaCode" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="coordinateNum" label="坐标数量"> |
| | | <a-input-number :placeholder="disableSubmit?'':'请输入坐标数量'" v-model="model.coordinateNum" style="width: 100%" :disabled="disableSubmit"/> |
| | | <a-form-model-item prop="functionUse" label="功能用途"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入功能用途'" v-model="model.functionUse" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="performanceIndicators" label="性能指标"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入性能指标'" v-model="model.performanceIndicators" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="originCountry" label="来源国家"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入来源国家'" v-model="model.originCountry" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="supplier" label="设备供应商"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入设备供应商'" v-model="model.supplier" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="manufacturingEnterprise" label="机床厂家"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入机床厂家'" v-model="model.manufacturingEnterprise" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="leaveFactoryDate" label="出厂日期"> |
| | | <a-date-picker placeholder="请选择出厂日期" v-model="model.leaveFactoryDate" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="acceptanceCheckDate" label="验收日期"> |
| | | <a-date-picker placeholder="请选择验收日期" v-model="model.acceptanceCheckDate" :disabled="disableSubmit"/> |
| | | <a-form-model-item prop="acceptanceCheckDate" label="投用日期"> |
| | | <a-date-picker placeholder="请选择投用日期" v-model="model.acceptanceCheckDate" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="bookingTime" label="入账时间"> |
| | | <a-date-picker placeholder="请选择入账时间" v-model="model.bookingTime" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="installationPosition" label="安装位置"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入安装位置'" v-model="model.installationPosition" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="spindleConnectDimension" label="主轴连接尺寸"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入主轴连接尺寸'" v-model="model.spindleConnectDimension" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="specialEquipment" label="是否特种设备"> |
| | | <lx-switch checked-children='是' un-checked-children='否' v-model="model.specialEquipment" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="manufacturingEnterprise" label="制造厂家"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入制造厂家'" v-model="model.manufacturingEnterprise" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="originCountry" label="来源国家"> |
| | | <a-input :placeholder="disableSubmit?'':'请输入来源国家'" v-model="model.originCountry" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="technologyStatus" label="技术状态"> |
| | | <j-dict-select-tag dict-code="technology_status" placeholder="请选择技术状态" |
| | | v-model="model.technologyStatus" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="mdcFlag" label="是否实施MDC"> |
| | | <lx-switch checked-children='是' un-checked-children='否' v-model="model.mdcFlag" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6" v-if="model.mdcFlag === '1'"> |
| | | <a-form-model-item prop="deviceType" label="MDC设备类型"> |
| | | <j-search-select-tag placeholder="请选择设备类型" v-model="model.deviceType" dict="mdc_equipment_type,equipment_type_name, equipment_type_name, equipment_type_states='Y'" :disabled="disableSubmit" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="warrantyStartDate" label="质保开始日期"> |
| | | <a-date-picker :placeholder="disableSubmit?'':'请选择开始日期'" v-model="model.warrantyStartDate" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="warrantyEndDate" label="质保结束日期"> |
| | | <a-date-picker :placeholder="disableSubmit?'':'请选择结束日期'" v-model="model.warrantyEndDate" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item prop="processParametersFlag" label="有无工艺参数"> |
| | | <lx-switch checked-children='有' un-checked-children='无' v-model="model.processParametersFlag" :disabled="disableSubmit"/> |
| | | </a-form-model-item> |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item :labelCol="labelColLong" :wrapperCol="wrapperColLong" prop="remark" label="备注"> |
| | |
| | | { required: true, message: '请输入设备名称' } |
| | | ], |
| | | equipmentCategory: [ |
| | | { required: true, message: '请选择设备分类' } |
| | | { required: true, message: '请选择设备类别' } |
| | | ], |
| | | leaveFactoryDate: [ |
| | | { required: true, message: '请选择出厂日期' } |
| | | ], |
| | | acceptanceCheckDate: [ |
| | | { required: false, message: '请选择验收日期' } |
| | | ], |
| | | technologyStatus: [ |
| | | { required: true, message: '请选择技术状态' } |
| | | ], |
| | | orgId: [ |
| | | { required: true, message: '请选择使用车间' } |