| | |
| | | align: 'center', |
| | | dataIndex: 'code', |
| | | }, |
| | | // { |
| | | // title: '周期名称', |
| | | // align: 'center', |
| | | // dataIndex: 'name', |
| | | // }, |
| | | { |
| | | title: '周期类型', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceTypeName', |
| | | }, |
| | | { |
| | | title: '周期', |
| | | align: 'center', |
| | |
| | | { |
| | | title: '产品损失情况', |
| | | align: "center", |
| | | dataIndex: 'condition', |
| | | dataIndex: 'condition_dictText', |
| | | width: 100 |
| | | }, |
| | | { |
| | |
| | | this.$refs.repairOrderExcuteDrawer.visible = true |
| | | this.$refs.repairOrderExcuteDrawer.title = '维修工单执行' |
| | | }, |
| | | handleDetail(record) { |
| | | this.excuteRepairOrder = record; |
| | | this.excuteRepairOrder.status = '4'; |
| | | this.$refs.repairOrderExcuteDrawer.visible = true |
| | | this.$refs.repairOrderExcuteDrawer.title = '维修详情' |
| | | }, |
| | | |
| | | searchQuery() { |
| | | this.loadData(1) |
| | |
| | | { required: true, message: '请输入周期单位!' }, |
| | | ], |
| | | firstInspectionTime: [ |
| | | { required: true, message: '请选择首次点检时间!' }, |
| | | { required: false, message: '请选择首次点检时间!' }, |
| | | ], |
| | | leadTime: [ |
| | | { required: true, message: '请输入提前时间!' }, |
| | | { required: false, message: '请输入提前时间!' }, |
| | | ], |
| | | effectiveTime: [ |
| | | { required: true, message: '请输入有效时间!' }, |
| | | { required: false, message: '请输入有效时间!' }, |
| | | ], |
| | | unit: [ |
| | | { required: true, message: '请选择时间单位!' }, |
| | | { required: false, message: '请选择时间单位!' }, |
| | | ], |
| | | arrangeWay: [ |
| | | { required: true, message: '请选择调整方式!' }, |
| | | { required: false, message: '请选择调整方式!' }, |
| | | ], |
| | | startCondition: [ |
| | | { required: true, message: '请选择开工条件!' }, |
| | | { required: false, message: '请选择开工条件!' }, |
| | | ], |
| | | version: [ |
| | | { required: true, message: '请输入版本号!' }, |
| | | { required: false, message: '请输入版本号!' }, |
| | | ], |
| | | overdueDisposeMode: [ |
| | | { required: true, message: '请选择逾期处理方式!' }, |
| | | { required: false, message: '请选择逾期处理方式!' }, |
| | | ], |
| | | accordingCalendar: [ |
| | | { required: true, message: '请选择依据日历!' }, |
| | | { required: false, message: '请选择依据日历!' }, |
| | | ], |
| | | }, |
| | | url: { |
| | |
| | | @click="handleAdd" |
| | | type="primary" |
| | | icon="plus" |
| | | :hidden="disabled" |
| | | >新增</a-button> |
| | | <!-- :hidden="disabled" --> |
| | | <a-upload |
| | | name="file" |
| | | :showUploadList="false" |
| | |
| | | label="保养类型" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="maintenanceType" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | |
| | | cycleUnit: [ |
| | | { required: true, message: '请输入周期单位!' }, |
| | | ], |
| | | maintenanceType: [ |
| | | { required: true, message: '请选择保养类型!' }, |
| | | ], |
| | | |
| | | firstMaintenanceTime: [ |
| | | { required: true, message: '请选择首次保养时间!' }, |
| | | { required: false, message: '请选择首次保养时间!' }, |
| | | ], |
| | | leadTime: [ |
| | | { required: true, message: '请输入提前时间!' }, |
| | | { required: false, message: '请输入提前时间!' }, |
| | | ], |
| | | effectiveTime: [ |
| | | { required: true, message: '请输入有效时间!' }, |
| | | { required: false, message: '请输入有效时间!' }, |
| | | ], |
| | | unit: [ |
| | | { required: true, message: '请选择时间单位!' }, |
| | | { required: false, message: '请选择时间单位!' }, |
| | | ], |
| | | arrangeWay: [ |
| | | { required: true, message: '请选择调整方式!' }, |
| | | { required: false, message: '请选择调整方式!' }, |
| | | ], |
| | | version: [ |
| | | { required: true, message: '请输入版本号!' }, |
| | | { required: false, message: '请输入版本号!' }, |
| | | ], |
| | | overdueDisposeMode: [ |
| | | { required: true, message: '请选择逾期处理方式!' }, |
| | | { required: false, message: '请选择逾期处理方式!' }, |
| | | ], |
| | | accordingCalendar: [ |
| | | { required: true, message: '请选择依据日历!' }, |
| | | { required: false, message: '请选择依据日历!' }, |
| | | ], |
| | | }, |
| | | url: { |
| | |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel"> |
| | | <equipment-maintenance-plan-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"/> |
| | | @cancel="handleCancel" |
| | | > |
| | | <equipment-maintenance-plan-form |
| | | ref="realForm" |
| | | @ok="submitCallback" |
| | | :disabled="disableSubmit" |
| | | /> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import EquipmentMaintenancePlanForm from './EquipmentMaintenancePlanForm' |
| | | import EquipmentMaintenancePlanForm from './EquipmentMaintenancePlanForm' |
| | | |
| | | export default { |
| | | name: 'EquipmentMaintenancePlanModal', |
| | | components: { |
| | | EquipmentMaintenancePlanForm |
| | | export default { |
| | | name: 'EquipmentMaintenancePlanModal', |
| | | components: { |
| | | EquipmentMaintenancePlanForm |
| | | }, |
| | | data() { |
| | | return { |
| | | title: '', |
| | | width: 800, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | }, |
| | | data() { |
| | | return { |
| | | title:'', |
| | | width:800, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | edit(record) { |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.edit(record); |
| | | }) |
| | | }, |
| | | methods:{ |
| | | add () { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | }, |
| | | edit (record) { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | }) |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | this.$refs.realForm.handleOk(); |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk() { |
| | | this.$refs.realForm.handleOk(); |
| | | }, |
| | | submitCallback() { |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel() { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | |
| | | @cancel="close" |
| | | style="top:50px" |
| | | cancelText="关闭" |
| | | :width="2000" |
| | | :width="1600" |
| | | > |
| | | <a-card :bordered="false"> |
| | | <div class="table-page-search-wrapper"> |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- 按中心查询 --> |
| | | <!-- 按中心查询 --> |
| | | <a-col |
| | | :md="6" |
| | | :sm="6" > |
| | | :sm="6" |
| | | > |
| | | <a-form-item label="中心"> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请选择中心" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_area,name,id,del_flag!='1' and type='1'" |
| | | v-model="queryParam.workCenterId" |
| | | /> |
| | | allow-clear |
| | | placeholder="请选择中心" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_area,name,id,del_flag!='1' and type='1'" |
| | | v-model="queryParam.workCenterId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="6"> |
| | | <a-form-model-item |
| | | label="下次三保时间" |
| | | prop="ranges" |
| | | :sm="6" |
| | | > |
| | | <a-form-model-item |
| | | label="下次三保时间" |
| | | prop="ranges" |
| | | > |
| | | <a-range-picker |
| | | v-model="ranges" |
| | | style="width:100%" |
| | | format="YYYY-MM-DD HH:mm:ss" |
| | | showTime |
| | | :placeholder="[ '开始时间', '结束时间']" |
| | | @change="changeDate" |
| | | v-model="ranges" |
| | | style="width:100%" |
| | | format="YYYY-MM-DD HH:mm:ss" |
| | | showTime |
| | | :placeholder="[ '开始时间', '结束时间']" |
| | | @change="changeDate" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | |
| | | <a-col :md="3"> |
| | | <span |
| | |
| | | title: '统一编码', |
| | | align: 'center', |
| | | dataIndex: 'num', |
| | | width: 200 |
| | | // width: 200 |
| | | }, |
| | | { |
| | | title: '设备名称', |
| | | align: 'center', |
| | | dataIndex: 'name', |
| | | width: 200 |
| | | // width: 200 |
| | | }, |
| | | { |
| | | title: '设备型号', |
| | | align: 'center', |
| | | dataIndex: 'model', |
| | | width: 200 |
| | | // width: 200 |
| | | }, |
| | | { |
| | | title: '设备规格', |
| | | align: 'center', |
| | | dataIndex: 'specification', |
| | | width: 200 |
| | | // width: 200 |
| | | }, |
| | | { |
| | | title: 'ABC标识', |
| | | align: "center", |
| | | dataIndex: 'equipmentImportanceId', |
| | | width: 100 |
| | | // width: 100 |
| | | }, |
| | | { |
| | | title: '关键设备标识', |
| | |
| | | { |
| | | title: '设备状态', |
| | | align: 'center', |
| | | dataIndex: 'equipmentStatus_dictText', |
| | | width: 100 |
| | | // dataIndex: 'equipmentStatus_dictText', |
| | | // width: 100 |
| | | }, |
| | | { |
| | | title: '技术状态', |
| | | align: 'center', |
| | | dataIndex: 'technologyStatus_dictText', |
| | | width: 100 |
| | | // width: 100 |
| | | }, |
| | | //下次三保时间 |
| | | { |
| | | title: '下次三保时间', |
| | | align: 'center', |
| | | dataIndex: 'nextThirdMaintenanceTime', |
| | | width: 200 |
| | | // width: 200 |
| | | }, |
| | | //中心 |
| | | { |
| | | title: '中心', |
| | | align: 'center', |
| | | dataIndex: 'workCenterId_dictText', |
| | | width: 200 |
| | | // width: 200 |
| | | }, |
| | | ], |
| | | selectedRowKeys: [], |
| | |
| | | @click="handleAdd" |
| | | type="primary" |
| | | icon="plus" |
| | | :hidden="disabled" |
| | | >新增</a-button> |
| | | <!-- :hidden="disabled" --> |
| | | <a-button |
| | | type="primary" |
| | | icon="download" |