| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | <a-divider type="vertical" /> |
| | | <!-- <a-divider type="vertical" /> |
| | | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </a-popconfirm> --> |
| | | <a @click="handleEdit(record)" :disabled="mainStatus!=='distributed'">计划变更</a> |
| | | </span> |
| | | <span |
| | | slot="num" |
| | |
| | | </a-table> |
| | | </div> |
| | | <standard-detail-model :mainId="standardId" ref="standardDetail"></standard-detail-model> |
| | | <maintenance-plan-change-model ref="modalForm" @ok="modalFormOk"></maintenance-plan-change-model> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import StandardDetailModel from './modules/maintenancePlan/StandardDetailModel.vue' |
| | | import StandardDetailModel from './modules/maintenancePlan/StandardDetailModel' |
| | | import MaintenancePlanChangeModel from './modules/maintenancePlan/MaintenancePlanChangeModel.vue' |
| | | export default { |
| | | name: "EquipmentMaintenancePlanDetailList", |
| | | mixins:[JeecgListMixin], |
| | | components: {StandardDetailModel}, |
| | | components: {StandardDetailModel, MaintenancePlanChangeModel}, |
| | | props:{ |
| | | mainId:{ |
| | | type:String, |
| | | default:'', |
| | | required:false |
| | | }, |
| | | mainStatus:{ |
| | | type:String, |
| | | default:'', |
| | | required:false |
| | |
| | | title:'保养标准', |
| | | align:"center", |
| | | dataIndex: 'standardNum', |
| | | width:300, |
| | | width:250, |
| | | scopedSlots: { customRender: 'num' } |
| | | }, |
| | | { |
| | | title:'设备统一编码', |
| | | align:"center", |
| | | dataIndex: 'equipmentNum', |
| | | width:300, |
| | | width:250, |
| | | }, |
| | | { |
| | | title:'设备名称', |
| | | align:"center", |
| | | dataIndex: 'equipmentName', |
| | | width:300, |
| | | width:250, |
| | | }, |
| | | { |
| | | title:'设备型号', |
| | | align:"center", |
| | | dataIndex: 'model', |
| | | width:300, |
| | | width:250, |
| | | }, |
| | | { |
| | | title:'计划开始时间', |
| | | align:"center", |
| | | dataIndex: 'planStartTime', |
| | | width:300, |
| | | width:280, |
| | | }, |
| | | { |
| | | title:'计划结束时间', |
| | | align:"center", |
| | | dataIndex: 'planEndTime', |
| | | width:300, |
| | | width:280, |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:200, |
| | | scopedSlots: { customRender: 'action' }, |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/equipmentMaintenancePlan/listEquipmentMaintenancePlanDetailByMainId", |