1、设备台账新增和编辑增加技术状态字段
2、二保编辑功能
3、二保以及点检自动带入保养周期默认值而不是从设备处带出
| | |
| | | </template> |
| | | |
| | | <template v-if="record.standardStatus != 'WAIT_SUBMIT'"> |
| | | <a-divider type="vertical"/> |
| | | <a-divider type="vertical" v-if="record.standardStatus=='START'"/> |
| | | |
| | | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
| | | <a @click.stop="event=>event.stopPropagation()">删除</a> |
| | |
| | | </a-table> |
| | | </div> |
| | | <!-- table区域-end --> |
| | | |
| | | <!--<a-tabs v-model="activeTabKey" @change="handleTabChange">--> |
| | | <!--<a-tab-pane tab="设备文档" :key="1">--> |
| | | <!--<eam-equipment-attachment-list ref="tabPaneTableListRef1"/>--> |
| | | <!--</a-tab-pane>--> |
| | | <!--<a-tab-pane tab="点检工单" :key="2">--> |
| | | <!--<eam-inspection-order-list ref="tabPaneTableListRef2" :isDisplayOperation="false"/>--> |
| | | <!--</a-tab-pane>--> |
| | | <!--<a-tab-pane tab="二保工单" :key="3">--> |
| | | <!--<eam-second-maintenance-order-list ref="tabPaneTableListRef3" :isDisplayOperation="false"/>--> |
| | | <!--</a-tab-pane>--> |
| | | <!--<a-tab-pane tab="三保工单" :key="4">--> |
| | | <!--<eam-third-maintenance-order-list ref="tabPaneTableListRef4" :isDisplayOperation="false"/>--> |
| | | <!--</a-tab-pane>--> |
| | | <!--<a-tab-pane tab="维修工单" :key="5">--> |
| | | <!--<eam-repair-order-list ref="tabPaneTableListRef5" :isDisplayOperation="false"/>--> |
| | | <!--</a-tab-pane>--> |
| | | <!--<a-tab-pane tab="保养标准" :key="6">--> |
| | | <!--<eam-maintenance-standard-list ref="tabPaneTableListRef6" :isDisplayOperation="false"/>--> |
| | | <!--</a-tab-pane>--> |
| | | <!--<a-tab-pane tab="工艺参数" :key="7" v-if="isOpenProcess">--> |
| | | <!--<eam-equipment-process-list ref="tabPaneTableListRef7" :isDisplayOperation="false"/>--> |
| | | <!--</a-tab-pane>--> |
| | | <!--<a-tab-pane tab="设备精度" :key="8" v-if="isOpenPrecision">--> |
| | | <!--<eam-equipment-precision-list ref="tabPaneTableListRef8" :isDisplayOperation="false"/>--> |
| | | <!--</a-tab-pane>--> |
| | | <!--</a-tabs>--> |
| | | |
| | | <!-- 表单区域 --> |
| | | <eamEquipment-modal ref="modalForm" @ok="modalFormOk" :productionTreeData="productionTreeData" |
| | | :repairDepartTreeData="repairDepartTreeData"/> |
| | |
| | | import EamEquipmentModal from './modules/EamEquipmentModal.vue' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction, templateXlsDownload } from '@api/manage' |
| | | import { getSystemConfigValue } from '@api/api' |
| | | import ResumeDrawer from '@views/eam/equipment/modules/ResumeDrawer.vue' |
| | | import EamMaintenanceStandardList from '@views/eam/base/EamMaintenanceStandardList.vue' |
| | | import EamRepairOrderList from '../repair/EamRepairOrderList' |
| | | import EamInspectionOrderList from '../maintenance/EamInspectionOrderList' |
| | | import EamEquipmentAttachmentList from '@views/eam/equipment/EamEquipmentAttachmentList.vue' |
| | | import EamEquipmentProcessList from '@views/eam/equipment/modules/EamEquipmentProcessList.vue' |
| | | import EamEquipmentPrecisionList from '@views/eam/equipment/modules/EamEquipmentPrecisionList.vue' |
| | | import EamSecondMaintenanceOrderList from '@views/eam/maintenance/EamSecondMaintenanceOrderList.vue' |
| | | import EamThirdMaintenanceOrderList from '@views/eam/maintenance/EamThirdMaintenanceOrderList.vue' |
| | | |
| | | export default { |
| | | name: 'EquipmentLedger', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | EamInspectionOrderList, |
| | | EamRepairOrderList, |
| | | EamMaintenanceStandardList, |
| | | ResumeDrawer, |
| | | EamEquipmentModal, |
| | | EamEquipmentAttachmentList, |
| | | EamEquipmentProcessList, |
| | | EamEquipmentPrecisionList, |
| | | EamSecondMaintenanceOrderList, |
| | | EamThirdMaintenanceOrderList |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | align: 'center', |
| | | dataIndex: 'equipmentCode', |
| | | scopedSlots: { customRender: 'equipmentCode' }, |
| | | ellipsis: true, |
| | | fixed: 'left', |
| | | sorter: true |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设备名称', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | ellipsis: true, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '型号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | |
| | | align: 'center', |
| | | dataIndex: 'manufacturingEnterprise', |
| | | scopedSlots: { customRender: 'manufacturingEnterprise' }, |
| | | ellipsis: true |
| | | }, |
| | | { |
| | | title: '资产来源国家', |
| | | align: 'center', |
| | | dataIndex: 'originCountry' |
| | | }, |
| | | { |
| | | title: '型号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel' |
| | | }, |
| | | { |
| | | title: '设备规格', |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="型号"> |
| | | <a-input placeholder="请输入型号" v-model="model.equipmentModel"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item prop="factoryOrgCode" label="使用部门"> |
| | | <a-tree-select v-model="model.factoryOrgCode" style="width: 100%" show-search |
| | | :tree-data="productionTreeData" :disabled="!editable" |
| | |
| | | searchPlaceholder="请输入关键字搜索" tree-default-expand-all/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item prop="equipmentCategory" label="所属分类"> |
| | | <j-dict-select-tag dict-code="equipment_category" placeholder="请选择所属分类" :disabled="!editable" |
| | |
| | | allow-clear tree-default-expand-all/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="安全配置"> |
| | | <a-input placeholder="请输入安全配置" v-model="model.securityConfiguration"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="冷却系统"> |
| | | <j-dict-select-tag dict-code="cooling_system" placeholder="请选择冷却系统" v-model="model.coolSystem"/> |
| | |
| | | v-model="model.fireExtinguisherExpirationDate" placeholder="请输入灭火器有效期"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="操作系统"> |
| | | <j-dict-select-tag dict-code="yn " type="radio" v-model="model.operationSystem"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="系统"> |
| | | <a-input placeholder="请输入系统" :disabled="!Boolean(+model.operationSystem)" v-model="model.system"/> |
| | |
| | | style="width: 100%"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="重量"> |
| | | <a-input-number placeholder="请输入重量" v-model="model.equipmentWeight" :min="0" style="width: 100%"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="重量计量单位"> |
| | | <a-input placeholder="请输入重量计量单位" v-model="model.weightUnit"/> |
| | |
| | | <a-input placeholder="请输入安装位置" v-model="model.installationPosition"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="出厂日期"> |
| | | <a-date-picker v-model="model.leaveFactoryDate" value-format="YYYY-MM-DD" style="width:100%"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="立项卡号"> |
| | | <a-input placeholder="请输入立项卡号" v-model="model.cardNumber"/> |
| | |
| | | <a-date-picker v-model="model.acceptanceCheckDate" value-format="YYYY-MM-DD" style="width:100%"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="出厂编号"> |
| | | <a-input placeholder="请输入出厂编号" v-model="model.factoryNumber"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="资产制造商"> |
| | | <a-input placeholder="请输入资产制造商" v-model="model.manufacturingEnterprise"/> |
| | |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="资产来源国家"> |
| | | <a-input placeholder="请输入资产来源国家" v-model="model.originCountry"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="型号"> |
| | | <a-input placeholder="请输入型号" v-model="model.equipmentModel"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="本次技术鉴定日期"> |
| | | <a-date-picker v-model="model.latestTechnologyCheck" value-format="YYYY-MM-DD" |
| | | :disabled="!editable" style="width:100%"/> |
| | | <a-form-model-item label="技术状态"> |
| | | <j-dict-select-tag placeholder="请选择技术状态" dict-code="equipment_technology_status" |
| | | v-model="model.technologyStatus"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="本次技术鉴定日期"> |
| | | <a-date-picker v-model="model.latestTechnologyCheck" value-format="YYYY-MM-DD" |
| | | :disabled="!editable" style="width:100%"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="下次技术鉴定日期"> |
| | | <a-date-picker v-model="model.nextTechnologyCheck" value-format="YYYY-MM-DD" style="width:100%"/> |
| | | </a-form-model-item> |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- 查询区域 --> |
| | | <div |
| | | class="table-page-search-wrapper" |
| | | v-if="isDisplayOperation" |
| | | > |
| | | <a-form |
| | | layout="inline" |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | <div class="table-page-search-wrapper" v-if="isDisplayOperation"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="4" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="工单号"> |
| | | <a-input |
| | | placeholder="请输入工单号" |
| | | v-model="queryParam.orderNum" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="5" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="统一编码"> |
| | | <lx-search-equipment-select placeholder="请输入统一编码或名称搜索" v-model="queryParam.equipmentId"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="4" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="工单号"> |
| | | <a-input placeholder="请输入工单号" v-model="queryParam.orderNum"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import EamInspectionOrderModal from './modules/EamInspectionOrderModal' |
| | | import { deleteAction, getAction } from '@api/manage' |
| | | import InspectionOrderHandle from '../../flowable/workflow/InspectionOrder/InspectionOrderHandle' |
| | | import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue' |
| | | import LxSearchEquipmentSelect from '../equipment/modules/LxSearchEquipmentSelect' |
| | | |
| | | export default { |
| | | name: 'EamInspectionOrderList', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | LxSearchEquipmentSelect, |
| | | InspectionOrderHandle, |
| | | EamInspectionOrderModal, |
| | | LxSearchEquipmentSelect |
| | | EamInspectionOrderModal |
| | | }, |
| | | props: { |
| | | isDisplayOperation: { |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | description: 'eam_inspection_order管理页面', |
| | | description: '点检工单页面', |
| | | disableMixinCreated: true, |
| | | // 表头 |
| | | columns: [ |
| | |
| | | }) |
| | | that.loadData() |
| | | } else { |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | |
| | | }) |
| | | that.loadData() |
| | | } else { |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | |
| | | }) |
| | | }, |
| | | batchZf(type) { |
| | | if (this.selectedRowKeys.length <= 0) { |
| | | this.$notification.warning({ |
| | | message: '消息', |
| | | description: '请选择一条记录' |
| | | }) |
| | | } else { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | | ids += this.selectedRowKeys[a] + ',' |
| | | } |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '确认作废', |
| | | content: '是否作废选中数据,只有待点检状态的数据才可作废成功?', |
| | | onOk: function() { |
| | | that.loading = true |
| | | getAction(that.url.cancelOrReceive, { ids: ids, type: type }).then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | that.onClearSelected() |
| | | } else { |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }).finally(() => { |
| | | that.loading = false |
| | | }) |
| | | } |
| | | }) |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | | ids += this.selectedRowKeys[a] + ',' |
| | | } |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '确认作废', |
| | | content: '是否作废选中数据,只有待点检状态的数据才可作废成功?', |
| | | onOk: function() { |
| | | that.loading = true |
| | | getAction(that.url.cancelOrReceive, { ids, type }).then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | that.onClearSelected() |
| | | } else { |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }).finally(() => { |
| | | that.loading = false |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | batchLq(type) { |
| | | if (this.selectedRowKeys.length <= 0) { |
| | | this.$notification.warning({ |
| | | message: '消息', |
| | | description: '请选择一条记录' |
| | | }) |
| | | } else { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | | ids += this.selectedRowKeys[a] + ',' |
| | | } |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '确认领取', |
| | | content: '是否领取选中数据,只有待点检状态的数据才可领取成功?', |
| | | onOk: function() { |
| | | that.loading = true |
| | | getAction(that.url.cancelOrReceive, { ids: ids, type: type }).then((res) => { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | | ids += this.selectedRowKeys[a] + ',' |
| | | } |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '确认领取', |
| | | content: '是否领取选中数据,只有待点检状态的数据才可领取成功?', |
| | | onOk: function() { |
| | | that.loading = true |
| | | getAction(that.url.cancelOrReceive, { ids, type }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: '消息', |
| | |
| | | description: res.message |
| | | }) |
| | | } |
| | | }).finally(() => { |
| | | }) |
| | | .finally(() => { |
| | | that.loading = false |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | onInspectionDateChange: function(value, dateString) { |
| | | this.queryParam.inspectionDateBegin = dateString[0] |
| | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | | </script> |
| | |
| | | <a-divider type="vertical" v-if="record.maintenanceStatus === 'COMPLETE'"/> |
| | | <a v-if="record.maintenanceStatus === 'COMPLETE'" @click="handlePrint(record)">打印</a> |
| | | </template> |
| | | |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | |
| | | <!-- 表单区域 --> |
| | | <eamSecondMaintenanceOrder-modal ref="modalForm" @ok="modalFormOk"/> |
| | | |
| | | <second-maintenance-approval-modal ref="secondMaintenanceApprovalModal" |
| | | :selectShenpiData="selectSecondMaintenanceData"/> |
| | | <second-maintenance-approval-modal ref="secondMaintenanceApprovalModal" :selectShenpiData="selectSecondMaintenanceData"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import EamSecondMaintenanceOrderModal from './modules/EamSecondMaintenanceOrderModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { deleteAction, getAction } from '@api/manage' |
| | | import SecondMaintenanceApprovalModal |
| | | from '@views/flowable/workflow/secondMaintenance/SecondMaintenanceApprovalModal.vue' |
| | | import SecondMaintenanceApprovalModal from '@views/flowable/workflow/secondMaintenance/SecondMaintenanceApprovalModal.vue' |
| | | import LxSearchEquipmentSelect from '../equipment/modules/LxSearchEquipmentSelect' |
| | | |
| | | export default { |
| | |
| | | { |
| | | title: '维修工', |
| | | align: 'center', |
| | | dataIndex: 'operator_dictText' |
| | | dataIndex: 'repairer_dictText' |
| | | }, |
| | | { |
| | | title: '保养状态', |
| | |
| | | { |
| | | title: '检查人确认', |
| | | align: 'center', |
| | | dataIndex: 'confirmLeader_dictText' |
| | | dataIndex: 'inspector_dictText' |
| | | }, |
| | | { |
| | | title: '检查人确认时间', |
| | | align: 'center', |
| | | dataIndex: 'leaderConfirmTime' |
| | | dataIndex: 'inspectConfirmTime' |
| | | }, |
| | | { |
| | | title: 'HF编码', |
| | |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="保养周期"> |
| | | <a-input placeholder="选择设备后自动带出" v-model="model.maintenancePeriod" disabled/> |
| | | <a-input v-model="model.maintenancePeriod" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | width: 100, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养项', |
| | | key: 'itemName', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养规范或要求', |
| | | key: 'itemDemand', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | align: 'center' |
| | | } |
| | | ], |
| | | weekInspectionColumns: [], |
| | |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | width: 60, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养项', |
| | | key: 'itemName', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养要求', |
| | | key: 'itemDemand', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '点检结果', |
| | |
| | | title: '异常描述', |
| | | key: 'exceptionDescription', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '异常是否报修', |
| | |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.model = {} |
| | | this.model = { maintenancePeriod: 1 } |
| | | this.visible = true |
| | | this.editable = true |
| | | this.detail.dayInspectionList = [] |
| | |
| | | }, |
| | | |
| | | edit(record) { |
| | | this.model = Object.assign({}, record) |
| | | this.model = Object.assign({ maintenancePeriod: 1 }, record) |
| | | this.editable = false |
| | | this.visible = true |
| | | this.spinning = true |
| | |
| | | |
| | | autocompleteForm(selectObj) { |
| | | this.model.standardName = selectObj.standardName |
| | | this.model.maintenancePeriod = selectObj.maintenancePeriod |
| | | this.model.standardCode = selectObj.standardCode |
| | | this.standardId = selectObj.id |
| | | this.detail.dayInspectionList = [] |
| | |
| | | <template> |
| | | <j-modal :title="title" :width="1200" :visible="visible" :confirmLoading="confirmLoading" switchFullscreen |
| | | :mask-closable="false" @ok="handleOk" @cancel="handleCancel" cancelText="关闭"> |
| | | |
| | | <a-spin :spinning="spinning"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-row> |
| | |
| | | <a-row> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="maintenanceDate" label="保养日期"> |
| | | <a-date-picker v-model="model.maintenanceDate" value-format="YYYY-MM-DD" style="width: 100%"/> |
| | | <a-date-picker v-model="model.maintenanceDate" value-format="YYYY-MM-DD" :allowClear="false" |
| | | style="width: 100%"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="保养周期"> |
| | | <a-input placeholder="选择设备后自动带出" v-model="model.maintenancePeriod" disabled/> |
| | | <a-input v-model="model.maintenancePeriod" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | return { |
| | | title: '操作', |
| | | visible: false, |
| | | editable: false, |
| | | editable: true, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | |
| | | detail: { |
| | | operatorMaintenanceList: [], |
| | | repairerMaintenanceList: [], |
| | | dataSource: [], |
| | | columns: [ |
| | | { |
| | | title: 'ID', |
| | |
| | | }, |
| | | |
| | | edit(record) { |
| | | this.model = Object.assign({}, record) |
| | | this.model = Object.assign({ maintenancePeriod: 6 }, record) |
| | | this.visible = true |
| | | this.editable = false |
| | | this.detail.operatorMaintenanceList = this.detail.repairerMaintenanceList = [] |
| | |
| | | * @param standardId 规范Id |
| | | */ |
| | | loadStandardDetail(standardId) { |
| | | if (standardId) { |
| | | this.spinning = true |
| | | getAction(this.url.standardDetail, { standardId }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.detail.operatorMaintenanceList = res.result.filter(item => item.itemCategory == 'OPERATOR_MAINTENANCE') |
| | | this.detail.repairerMaintenanceList = res.result.filter(item => item.itemCategory == 'REPAIRER_MAINTENANCE') |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.spinning = false |
| | | }) |
| | | } |
| | | this.spinning = true |
| | | getAction(this.url.standardDetail, { standardId }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.detail.operatorMaintenanceList = res.result.filter(item => item.itemCategory == 'OPERATOR_MAINTENANCE') |
| | | this.detail.repairerMaintenanceList = res.result.filter(item => item.itemCategory == 'REPAIRER_MAINTENANCE') |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.spinning = false |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | |
| | | * @param orderId 工单Id |
| | | */ |
| | | loadDetail(orderId) { |
| | | if (orderId) { |
| | | getAction(this.url.detail, { orderId }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.detail.dataSource = [...res.result] |
| | | } |
| | | }) |
| | | } |
| | | this.spinning = true |
| | | getAction(this.url.detail, { orderId }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.detail.operatorMaintenanceList = res.result.filter(item => item.itemCategory == 'OPERATOR_MAINTENANCE') |
| | | this.detail.repairerMaintenanceList = res.result.filter(item => item.itemCategory == 'REPAIRER_MAINTENANCE') |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.spinning = false |
| | | }) |
| | | }, |
| | | |
| | | async handleOk() { |