| | |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="三级工单编码"> |
| | | <a-form-item label="统一编号"> |
| | | <a-input |
| | | placeholder="请输入三级工单编码" |
| | | v-model="queryParam.num" |
| | | placeholder="请输入统一编号" |
| | | v-model="queryParam.equipmentNum" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >查询</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | >重置</a-button> |
| | | </span> |
| | | <a-form-item label="保养工单编码"> |
| | | <a-input |
| | | placeholder="请输入保养工单编码" |
| | | v-model="queryParam.num" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item label="使用部门"> |
| | | <j-dict-select-tag |
| | | dictCode="sys_depart,depart_name,id" |
| | | placeholder="请输入使用部门" |
| | | v-model="queryParam.useDepartId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item label="状态"> |
| | | <j-dict-select-tag |
| | | dictCode="daily_maintenance_order_status" |
| | | placeholder="请选择状态" |
| | | v-model="queryParam.status" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item label="责任班组"> |
| | | <j-dict-select-tag |
| | | dictCode="mom_base_team,name,id,status='1' and del_flag='0'" |
| | | placeholder="请选择责任班组" |
| | | v-model="queryParam.teamId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="7"> |
| | | <a-form-item label="完工时间"> |
| | | <a-range-picker |
| | | style="width: 100%;" |
| | | format="YYYY-MM-DD HH:mm:ss" |
| | | v-model="finishTime" |
| | | @change="timeChange" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | icon="plus" |
| | | v-has="'daily3MaintenanceOrder:add'" |
| | | >新增</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | style="margin-left: 8px" |
| | | >查询</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | >重置</a-button> |
| | | <a-button |
| | | v-show="selectedRowKeys.length == 1 && selectionRows[0].status == '8'" |
| | | @click="handlePrintPrecision(selectionRows[0])" |
| | |
| | | </a-dropdown> --> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | | <div> |
| | | <!-- <div |
| | | class="ant-alert ant-alert-info" |
| | | style="margin-bottom: 16px;" |
| | | > |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a |
| | | style="margin-left: 24px" |
| | | @click="onClearSelected" |
| | | >清空</a> |
| | | </div> --> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | |
| | | import Maintenance3ReceiptModal from './modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue' |
| | | import { getAction, postAction, requestPut } from '@/api/manage' |
| | | import JEllipsis from "@/components/jeecg/JEllipsis"; |
| | | import moment from 'moment' |
| | | |
| | | export default { |
| | | name: 'DailyMaintenanceOrderList', |
| | |
| | | return { |
| | | description: '三级保养工单', |
| | | queryParam: { maintenanceType: '3' }, |
| | | finishTime: [], |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | scopedSlots: { customRender: 'num' } |
| | | }, |
| | | { |
| | | title: '统一编码', |
| | | align: "center", |
| | | dataIndex: 'equipmentNum', |
| | | }, |
| | | { |
| | | title: '状态', |
| | | align: "center", |
| | | dataIndex: 'statusName', |
| | |
| | | // dataIndex: 'assignModeName', |
| | | // width: 100, |
| | | // }, |
| | | { |
| | | title: '统一编码', |
| | | align: "center", |
| | | dataIndex: 'equipmentNum', |
| | | }, |
| | | |
| | | { |
| | | title: '设备名称', |
| | | align: "center", |
| | |
| | | // align: "center", |
| | | // dataIndex: 'workingHourQuota' |
| | | // }, |
| | | { |
| | | title: '计划开始时间', |
| | | align: "center", |
| | | dataIndex: 'planStartTime', |
| | | //width: '120px', |
| | | }, |
| | | // { |
| | | // title: '计划开始时间', |
| | | // align: "center", |
| | | // dataIndex: 'planStartTime', |
| | | // //width: '120px', |
| | | // }, |
| | | // { |
| | | // title: '计划结束时间', |
| | | // align: "center", |
| | |
| | | // //width: '120px', |
| | | // }, |
| | | { |
| | | title: '实际开始时间', |
| | | title: '执行时间', |
| | | align: "center", |
| | | dataIndex: 'actualStartTime', |
| | | //width: '120px', |
| | | }, |
| | | { |
| | | title: '实际结束时间', |
| | | title: '完工时间', |
| | | align: "center", |
| | | dataIndex: 'actualEndTime', |
| | | //width: '120px', |
| | |
| | | // align: "center", |
| | | // dataIndex: 'actualWorkingHourQuota', |
| | | // }, |
| | | { |
| | | title: '报工人', |
| | | align: "center", |
| | | dataIndex: 'maintenanceUserId' |
| | | }, |
| | | // { |
| | | // title: '报工人', |
| | | // align: "center", |
| | | // dataIndex: 'maintenanceUserId' |
| | | // }, |
| | | { |
| | | title: '问题及相应处理措施描述', |
| | | align: "center", |
| | |
| | | searchReset() { |
| | | this.queryParam = { maintenanceType: '3' } |
| | | this.loadData(1); |
| | | this.finishTime = [] |
| | | }, |
| | | // modalFormOk() { |
| | | // alert(0) |
| | |
| | | // //清空列表选中 |
| | | // this.onClearSelected() |
| | | // }, |
| | | timeChange() { |
| | | this.queryParam.finishStartTime = moment(this.finishTime[0]).format("YYYY-MM-DD HH:mm:ss") |
| | | this.queryParam.finishEndTime = moment(this.finishTime[1]).format("YYYY-MM-DD HH:mm:ss") |
| | | }, |
| | | |
| | | //预警颜色 |
| | | tableRowClass(record, index) { |
| | |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="点检工单编码"> |
| | | <a-form-item label="统一编号"> |
| | | <a-input |
| | | placeholder="请输入点检工单编码" |
| | | v-model="queryParam.num" |
| | | placeholder="请输入统一编号" |
| | | v-model="queryParam.equipmentNum" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="点检方法名称"> |
| | | <j-input |
| | | placeholder="请输入点检方法名称" |
| | | v-model="queryParam.name" |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | <a-form-item label="保养工单编码"> |
| | | <a-input |
| | | placeholder="请输入保养工单编码" |
| | | v-model="queryParam.num" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="使用部门" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >查询</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | >重置</a-button> |
| | | </span> |
| | | <j-dict-select-tag |
| | | dictCode="sys_depart,depart_name,id" |
| | | placeholder="请输入使用部门" |
| | | v-model="queryParam.useDepartId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="状态" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | dictCode="daily_inspection_standard_status" |
| | | placeholder="请选择状态" |
| | | v-model="queryParam.status" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="责任班组" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | dictCode="mom_base_team,name,id,status='1' and del_flag='0'" |
| | | placeholder="请选择责任班组" |
| | | v-model="queryParam.teamId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="7"> |
| | | <a-form-item label="点检时间"> |
| | | <a-range-picker |
| | | style="width: 100%;" |
| | | format="YYYY-MM-DD HH:mm:ss" |
| | | v-model="finishTime" |
| | | @change="timeChange" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | icon="plus" |
| | | v-has="'dailyInspectionOrder:add'" |
| | | >新增</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | style="margin-left: 8px" |
| | | >查询</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | >重置</a-button> |
| | | <!-- <a-button |
| | | type="primary" |
| | | icon="download" |
| | |
| | | import InspectionOrderExeModal from './modules/dailyInspectionOrder/InspectionOrderExeModal' |
| | | import DailyInspectionOrderExeDrawer from './modules/dailyInspectionOrder/DailyInspectionOrderExeDrawer' |
| | | import { getAction, postAction, requestPut } from '@/api/manage' |
| | | import moment from 'moment' |
| | | |
| | | export default { |
| | | name: 'DailyInspectionOrderList', |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | description: '日常点检工单', |
| | | description: '自主维护点检工单', |
| | | finishTime: [], |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | scopedSlots: { customRender: 'num' } |
| | | }, |
| | | { |
| | | title: '统一编码', |
| | | align: "center", |
| | | dataIndex: 'equipmentNum' |
| | | }, |
| | | { |
| | | title: '状态', |
| | |
| | | // align: "center", |
| | | // dataIndex: 'inspectionDeadline', |
| | | // }, |
| | | { |
| | | title: '统一编码', |
| | | align: "center", |
| | | dataIndex: 'equipmentNum' |
| | | }, |
| | | |
| | | { |
| | | title: '设备名称', |
| | | align: "center", |
| | |
| | | // align: "center", |
| | | // dataIndex: 'createBy' |
| | | // }, |
| | | { |
| | | title: '创建日期', |
| | | align: "center", |
| | | dataIndex: 'createTime', |
| | | }, |
| | | // { |
| | | // title: '创建日期', |
| | | // align: "center", |
| | | // dataIndex: 'createTime', |
| | | // }, |
| | | |
| | | { |
| | | title: '操作', |
| | |
| | | }) |
| | | }, |
| | | |
| | | searchReset() { |
| | | this.queryParam = {} |
| | | this.finishTime = [] |
| | | this.loadData(1); |
| | | }, |
| | | |
| | | timeChange() { |
| | | this.queryParam.inspectionStartTime = moment(this.finishTime[0]).format("YYYY-MM-DD HH:mm:ss") |
| | | this.queryParam.inspectionEndTime = moment(this.finishTime[1]).format("YYYY-MM-DD HH:mm:ss") |
| | | }, |
| | | |
| | | |
| | | //预警颜色 |
| | | tableRowClass(record, index) { |
| | | if (("1" == record.status || "2" == record.status) && "1日" == record.inspectionCycleName) { |
| | |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="统一编号"> |
| | | <a-input |
| | | placeholder="请输入统一编号" |
| | | v-model="queryParam.equipmentNum" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="保养工单编码"> |
| | | <a-input |
| | | placeholder="请输入保养工单编码" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="点检方法名称"> |
| | | <j-input |
| | | placeholder="请输入点检方法名称" |
| | | v-model="queryParam.name" |
| | | ></j-input> |
| | | <a-col :span="6"> |
| | | <a-form-item label="使用部门"> |
| | | <j-dict-select-tag |
| | | dictCode="sys_depart,depart_name,id" |
| | | placeholder="请输入使用部门" |
| | | v-model="queryParam.useDepartId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >查询</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | >重置</a-button> |
| | | </span> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item label="状态"> |
| | | <j-dict-select-tag |
| | | dictCode="daily_maintenance_order_status" |
| | | placeholder="请选择状态" |
| | | v-model="queryParam.status" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item label="责任班组"> |
| | | <j-dict-select-tag |
| | | dictCode="mom_base_team,name,id,status='1' and del_flag='0'" |
| | | placeholder="请选择责任班组" |
| | | v-model="queryParam.teamId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item label="移交单状态"> |
| | | <j-dict-select-tag |
| | | dictCode="two_maintenance_devolution_status" |
| | | placeholder="请选择移交单状态" |
| | | v-model="queryParam.confirmStatus" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="7"> |
| | | <a-form-item label="完工时间"> |
| | | <a-range-picker |
| | | style="width: 100%;" |
| | | format="YYYY-MM-DD HH:mm:ss" |
| | | v-model="finishTime" |
| | | @change="timeChange" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | icon="plus" |
| | | v-has="'dailyMaintenanceOrder:add'" |
| | | >新增</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | style="margin-left: 8px" |
| | | >查询</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | >重置</a-button> |
| | | <a-button |
| | | v-show="selectedRowKeys.length == 1 && selectionRows[0].status == '8'" |
| | | @click="handlePrintInfo(selectionRows[0])" |
| | |
| | | import MaintenanceOrderAssignModal from './modules/dailyMaintenanceOrder/MaintenanceOrderAssignModal' |
| | | import DailyMaintenanceOrderExeDrawer from './modules/dailyMaintenanceOrder/DailyMaintenanceOrderExeDrawer' |
| | | import { getAction, postAction, requestPut } from '@/api/manage' |
| | | import moment from 'moment' |
| | | |
| | | export default { |
| | | name: 'DailyMaintenanceOrderList', |
| | |
| | | return { |
| | | description: '二级保养工单', |
| | | queryParam: { maintenanceType: '2' }, |
| | | finishTime: [], |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | scopedSlots: { customRender: 'num' } |
| | | }, |
| | | { |
| | | title: '统一编码', |
| | | align: "center", |
| | | dataIndex: 'equipmentNum', |
| | | }, |
| | | { |
| | | title: '状态', |
| | |
| | | align: "center", |
| | | dataIndex: 'confirmStatusName' |
| | | }, |
| | | { |
| | | title: '统一编码', |
| | | align: "center", |
| | | dataIndex: 'equipmentNum', |
| | | }, |
| | | |
| | | { |
| | | title: '设备名称', |
| | | align: "center", |
| | |
| | | // //width: '120px', |
| | | // }, |
| | | { |
| | | title: '实际开始时间', |
| | | title: '执行时间', |
| | | align: "center", |
| | | dataIndex: 'actualStartTime', |
| | | //width: '120px', |
| | | }, |
| | | { |
| | | title: '实际结束时间', |
| | | title: '完工时间', |
| | | align: "center", |
| | | dataIndex: 'actualEndTime', |
| | | //width: '120px', |
| | |
| | | // align: "center", |
| | | // dataIndex: 'actualWorkingHourQuota', |
| | | // }, |
| | | { |
| | | title: '报工人', |
| | | align: "center", |
| | | dataIndex: 'maintenanceUserId' |
| | | }, |
| | | // { |
| | | // title: '报工人', |
| | | // align: "center", |
| | | // dataIndex: 'maintenanceUserId' |
| | | // }, |
| | | { |
| | | title: '问题及相应处理措施描述', |
| | | align: "center", |
| | |
| | | searchReset() { |
| | | this.queryParam = { maintenanceType: '2' } |
| | | this.loadData(1); |
| | | this.finishTime = [] |
| | | }, |
| | | // modalFormOk() { |
| | | // alert(0) |
| | |
| | | // this.onClearSelected() |
| | | // }, |
| | | |
| | | timeChange() { |
| | | this.queryParam.finishStartTime = moment(this.finishTime[0]).format("YYYY-MM-DD HH:mm:ss") |
| | | this.queryParam.finishEndTime = moment(this.finishTime[1]).format("YYYY-MM-DD HH:mm:ss") |
| | | }, |
| | | |
| | | //预警颜色 |
| | | tableRowClass(record, index) { |
| | | if ("1" == record.status || "2" == record.status) { |
| | |
| | | <a-textarea |
| | | allowClear |
| | | :disabled="this.model.status!='4'" |
| | | :placeholder="'请输入问题及处理措施描述'" |
| | | :placeholder="'请维修人员签字填写!'" |
| | | v-model="model.description" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="7"> |
| | | <a-form-item |
| | | label="报工人" |
| | | label="保养人" |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:17}" |
| | | class="hightColor" |
| | |
| | | <a-input |
| | | :disabled="this.model.status!='4'" |
| | | allow-clear |
| | | placeholder="请输入报工人" |
| | | placeholder="请输入保养人" |
| | | v-model="model.maintenanceUserId" |
| | | /> |
| | | </a-form-item> |
| | |
| | | slot-scope='text, record, index' |
| | | > |
| | | <div :key="col.dataIndex"> |
| | | <span |
| | | <!-- <span |
| | | v-show=" col.dataIndex == 'photo' && !text" |
| | | style="font-size: 12px;font-style: italic;" |
| | | >无图片</span> |
| | |
| | | height="25px" |
| | | alt="" |
| | | style="max-width:80px;font-size: 12px;font-style: italic;" |
| | | /> |
| | | /> --> |
| | | <!-- 示意图 开始 --> |
| | | <!-- <Tooltip |
| | | placement="top" |
| | |
| | | :value="text" |
| | | v-show="col.dataIndex == 'maintenanceOrderDetailUda1'" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="record.disabled" |
| | | :disabled="true" |
| | | /> |
| | | <!-- :disabled="record.disabled" --> |
| | | </div> |
| | | </template> |
| | | </a-table> |
| | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { requestPut, getAction, downFile, postAction } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | |
| | | import { preview } from 'vue-photo-preview' |
| | | import { ACCESS_TOKEN } from '@/store/mutation-types' |
| | | import Vue from 'vue' |
| | |
| | | // align: 'center', |
| | | // dataIndex: 'workingHourQuota', |
| | | // }, |
| | | { |
| | | title: '保养周期', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceCycleName', |
| | | }, |
| | | // { |
| | | // title: '保养周期', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceCycleName', |
| | | // }, |
| | | // { |
| | | // title: '维保专业', |
| | | // align: 'center', |
| | |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/dailyMaintenanceOrderDetail/getDailyMaintenanceOrderDetailList", |
| | | list: "/eam/dailyMaintenanceOrderDetail/get3MaintenanceOrderDetailList", |
| | | urlDownload: window._CONFIG['staticDomainURL'], |
| | | download: '/sys/upload/downloadFile', |
| | | editStatus: "/eam/dailyMaintenanceOrder/editStatus", |
| | |
| | | return "background-color:rgba(127, 127, 127,0.08)"; |
| | | }, |
| | | handleCancel() { |
| | | debugger |
| | | this.maintenanceOrderId = '-1' |
| | | this.$emit('ok'); |
| | | this.alterFlag = new Date(); |
| | |
| | | handleReport() { |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | for (let i = 0; i < that.dataSource.length; i++) { |
| | | let o = this.dataSource[i] |
| | | if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') { |
| | | that.$message.warning("请填写第" + (i + 1) + "保养人!"); |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | | } |
| | | // for (let i = 0; i < that.dataSource.length; i++) { |
| | | // let o = this.dataSource[i] |
| | | // if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') { |
| | | // that.$message.warning("请填写第" + (i + 1) + "保养人!"); |
| | | // that.confirmLoading = false; |
| | | // return |
| | | // } |
| | | // } |
| | | if (that.model.maintenanceUserId == null || that.model.maintenanceUserId == "") { |
| | | that.$message.warning("请填写报工人!"); |
| | | that.$message.warning("请填写保养人!"); |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | |
| | | auto-size |
| | | placeholder="请输入保养内容" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="true" |
| | | /> |
| | | <a-textarea |
| | | :value="text" |
| | |
| | | auto-size |
| | | placeholder="请输入保养标准" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="false" |
| | | :disabled="true" |
| | | /> |
| | | <a-select |
| | | v-if="col.dataIndex == 'firstInspect'" |
| | |
| | | <a-select-option value="1">通过</a-select-option> |
| | | <a-select-option value="2">未通过</a-select-option> |
| | | </a-select> |
| | | <a-input |
| | | v-if="col.dataIndex == 'firstInspect'" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="false" |
| | | placeholder="请填写验收未通过原因" |
| | | /> |
| | | <a-select |
| | | v-if="col.dataIndex == 'secondInspect'" |
| | | :value="text" |
| | |
| | | dataIndex: 'standard', |
| | | scopedSlots: { customRender: 'standard' } |
| | | }, |
| | | // { |
| | | // title: '验收次数', |
| | | // children: [ |
| | | // { |
| | | // title: '第一次检', |
| | | // dataIndex: 'firstInspect', |
| | | // align: 'center', |
| | | // scopedSlots: { customRender: 'firstInspect' } |
| | | // }, |
| | | // { |
| | | // title: '第二次检', |
| | | // dataIndex: 'secondInspect', |
| | | // align: 'center', |
| | | // scopedSlots: { customRender: 'secondInspect' } |
| | | // }, |
| | | // ], |
| | | // }, |
| | | { |
| | | title: '第一次检', |
| | | align: 'center', |
| | |
| | | slot-scope='text, record, index' |
| | | > |
| | | <div :key="col.dataIndex"> |
| | | <span |
| | | <!-- <span |
| | | v-if=" col.dataIndex == 'photo' && !text" |
| | | style="font-size: 12px;font-style: italic;" |
| | | >无图片</span> |
| | |
| | | height="25px" |
| | | alt="" |
| | | style="max-width:80px;font-size: 12px;font-style: italic;" |
| | | /> |
| | | /> --> |
| | | <!-- <j-dict-select-tag |
| | | v-if="col.dataIndex == 'inspectionProjectResult' " |
| | | allow-clear |
| | |
| | | :disabled="record.disabled" |
| | | /> |
| | | |
| | | <j-image-upload |
| | | <!-- <j-image-upload |
| | | :value="text" |
| | | v-if="col.dataIndex == 'abnormalPhoto'" |
| | | :isMultiple="false" |
| | |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="record.disabled" |
| | | > |
| | | </j-image-upload> |
| | | </j-image-upload> --> |
| | | |
| | | <!-- <Tooltip |
| | | placement="top" |
| | |
| | | } |
| | | requestPut(this.url.auditApproval, formData, { id: this.model.id }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$message.success("驳回成功!"); |
| | | that.$emit('ok'); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | |
| | | <a-textarea |
| | | allowClear |
| | | :disabled="this.model.status!='4'" |
| | | :placeholder="'请输入问题及处理措施描述'" |
| | | :placeholder="'请维修人员签字填写!'" |
| | | v-model="model.description" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="7"> |
| | | <a-form-item |
| | | label="报工人" |
| | | label="保养人" |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:17}" |
| | | class="hightColor" |
| | |
| | | <a-input |
| | | :disabled="this.model.status!='4'" |
| | | allow-clear |
| | | placeholder="请输入报工人" |
| | | placeholder="请输入保养人" |
| | | v-model="model.maintenanceUserId" |
| | | /> |
| | | </a-form-item> |
| | |
| | | slot-scope='text, record, index' |
| | | > |
| | | <div :key="col.dataIndex"> |
| | | <span |
| | | <!-- <span |
| | | v-if=" col.dataIndex == 'photo' && !text" |
| | | style="font-size: 12px;font-style: italic;" |
| | | >无图片</span> |
| | |
| | | height="25px" |
| | | alt="" |
| | | style="max-width:80px;font-size: 12px;font-style: italic;" |
| | | /> |
| | | /> --> |
| | | <!-- 示意图 开始 --> |
| | | <!-- <Tooltip |
| | | placement="top" |
| | |
| | | v-if="col.dataIndex == 'maintenanceOrderDetailUda1'" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | placeholder="请输入保养人" |
| | | :disabled="record.disabled" |
| | | :disabled="true" |
| | | /> |
| | | <!-- :disabled="record.disabled" --> |
| | | <!-- <a-input |
| | | :value="text" |
| | | v-if="col.dataIndex == 'maintenanceOrderDetailUda2'" |
| | |
| | | // }, |
| | | // class: "notshow" |
| | | { |
| | | title: '保养角色', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceRole', |
| | | }, |
| | | { |
| | | title: '保养内容', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceProjectNum', |
| | |
| | | // align: 'center', |
| | | // dataIndex: 'workingHourQuota', |
| | | // }, |
| | | { |
| | | title: '保养周期', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceCycleName', |
| | | }, |
| | | // { |
| | | // title: '保养周期', |
| | | // align: 'center', |
| | | // dataIndex: 'maintenanceCycleName', |
| | | // }, |
| | | // { |
| | | // title: '维保专业', |
| | | // align: 'center', |
| | |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | | if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') { |
| | | that.$message.warning("请填写第" + (i + 1) + "保养人!"); |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | | // if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') { |
| | | // that.$message.warning("请填写第" + (i + 1) + "保养人!"); |
| | | // that.confirmLoading = false; |
| | | // return |
| | | // } |
| | | } |
| | | if (that.model.maintenanceUserId == null || that.model.maintenanceUserId == "") { |
| | | that.$message.warning("请填写报工人!"); |
| | | that.$message.warning("请填写保养人!"); |
| | | that.confirmLoading = false; |
| | | return |
| | | } |
| | |
| | | that.loading = false; |
| | | return |
| | | } |
| | | if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') { |
| | | that.$message.warning("请填写第" + (i + 1) + "保养人!"); |
| | | that.loading = false; |
| | | return |
| | | } |
| | | // if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') { |
| | | // that.$message.warning("请填写第" + (i + 1) + "保养人!"); |
| | | // that.loading = false; |
| | | // return |
| | | // } |
| | | } |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | |
| | | let obj = obj = postAction(this.url.edit, formData) |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message) |
| | | that.$message.success("保存成功!") |
| | | that.$emit('ok') |
| | | } else { |
| | | that.$message.warning(res.message) |
| | |
| | | const target = temp[index]; |
| | | if (target) { |
| | | target[column.dataIndex] = value; |
| | | if ('maintenanceOrderDetailUda1' == column.dataIndex) { |
| | | target['maintenanceOrderDetailUda1'] = value.target.value; |
| | | } |
| | | // if ('maintenanceOrderDetailUda1' == column.dataIndex) { |
| | | // target['maintenanceOrderDetailUda1'] = value.target.value; |
| | | // } |
| | | if ('maintenanceOrderDetailUda2' == column.dataIndex) { |
| | | target['maintenanceOrderDetailUda2'] = value.target.value; |
| | | } |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-item |
| | | <!-- <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="保养日期" |
| | | > |
| | | <span v-if="this.model != null">{{ this.model.actualEndTime }}</span> |
| | | <span v-else>-</span> |
| | | </a-form-item> --> |
| | | <a-form-item |
| | | label="保养日期" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-date |
| | | v-model="model.maintenanceDate" |
| | | placeholder="请选择保养日期" |
| | | :showTime="true" |
| | | dateFormat="YYYY-MM-DD" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="false" |
| | | > |
| | | /> |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | | size="middle" |
| | | rowKey='id' |
| | | :columns="columns" |
| | | :dataSource="dataSourceOperation" |
| | | :pagination="false" |
| | | /> |
| | | |
| | | </a-table> |
| | | <div :style="{width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}"> |
| | | <div class="ant-descriptions-title">问题及相应处理措施描述:</div> |
| | | <a-textarea |
| | |
| | | data() { |
| | | return { |
| | | columns: [ |
| | | |
| | | { |
| | | title: '#', |
| | | title: '类型', |
| | | align: 'center', |
| | | width: 260, |
| | | dataIndex: 'maintenanceRole' |
| | | }, |
| | | { |
| | | title: '序号', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: 'center', |
| | |
| | | }, |
| | | width: 50, |
| | | }, |
| | | { |
| | | title: '类型', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceRole' |
| | | }, |
| | | |
| | | // { |
| | | // title: '部位', |
| | |
| | | // dataIndex: 'location' |
| | | // }, |
| | | { |
| | | title: '保养项目', |
| | | title: '保养内容', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceProjectName' |
| | | }, |
| | |
| | | { |
| | | title: '执行情况', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceOrderDetailUda2' |
| | | dataIndex: 'maintenanceOrderDetailUda2', |
| | | width: 150, |
| | | }, |
| | | { |
| | | title: '执行人', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceOrderDetailUda1', |
| | | width: 150, |
| | | }, |
| | | |
| | | ], |
| | |
| | | disableSubmit: false, |
| | | codeDisable: true, |
| | | dataSource: [], |
| | | dataSourceOperation: [], |
| | | model: {}, |
| | | // departs: [], |
| | | labelCol: { |
| | |
| | | this.form.resetFields(); |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | if (record.dailyMaintenanceDetails != undefined) { |
| | | const temp = [...record.dailyMaintenanceDetails]; |
| | | // if (record.dailyMaintenanceDetails != undefined) { |
| | | // const temp = [...record.dailyMaintenanceDetails]; |
| | | // that.dataSource = temp; |
| | | // } |
| | | if (record.operationUserDetails != undefined) { |
| | | const temp = [...record.operationUserDetails]; |
| | | that.dataSourceOperation = temp; |
| | | } |
| | | if (record.repairUserDetails != undefined) { |
| | | const temp = [...record.repairUserDetails]; |
| | | that.dataSource = temp; |
| | | } |
| | | that.$nextTick(() => { |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'teamId', 'remark')); |
| | | }); |
| | | if (record.id) { |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | } |
| | | // that.$nextTick(() => { |
| | | // that.form.setFieldsValue(pick(that.model, 'num', 'teamId', 'remark')); |
| | | // }); |
| | | // if (record.id) { |
| | | // this.codeDisable = true; |
| | | // } else { |
| | | // this.codeDisable = false; |
| | | // } |
| | | }, |
| | | |
| | | |
| | |
| | | } else if (this.model.confirmStatus == '4') { |
| | | formData.confirmStatus = '2' |
| | | } |
| | | requestPut(this.url.edit, formData, { id: this.model.id }).then((res) => { |
| | | requestPut(this.url.edit, formData, { id: this.model.id, maintenanceDate: this.model.maintenanceDate }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | |
| | | } else if (this.model.confirmStatus == '5') { |
| | | formData.confirmStatus = '7' |
| | | } |
| | | requestPut(this.url.edit, formData, { id: this.model.id }).then((res) => { |
| | | requestPut(this.url.edit, formData, { id: this.model.id, maintenanceDate: this.model.maintenanceDate }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | |
| | | // align: "center", |
| | | // dataIndex: 'workingHourQuota', |
| | | // }, |
| | | { |
| | | title: '保养周期', |
| | | align: "center", |
| | | dataIndex: 'maintenanceCycleName', |
| | | }, |
| | | // { |
| | | // title: '保养周期', |
| | | // align: "center", |
| | | // dataIndex: 'maintenanceCycleName', |
| | | // }, |
| | | // { |
| | | // title: '维保专业', |
| | | // align: "center", |
| | |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="设备编号"> |
| | | <j-input |
| | | <a-input |
| | | placeholder="请输入标准编号检索" |
| | | v-model="queryParam.num" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="设备名称"> |
| | | <j-input |
| | | <a-input |
| | | placeholder="请输入设备名称检索" |
| | | v-model="queryParam.name" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |