| | |
| | | }, |
| | | url: { |
| | | add: "/eam/precisionInspection/precisionInspection", |
| | | getEquipmentPrecision: "/eam/equipmentPrecisionParameters/getByEquipmentId", |
| | | getPrecisionInspection: "/eam/precisionInspection/getPrecisionInspectionList", |
| | | list: "/eam/dailyMaintenanceOrder/getMaintenanceCycleByStandardId", |
| | | }, |
| | |
| | | // record.judgmentResult = "" |
| | | this.model = Object.assign({}, record); |
| | | this.getPrecisionInspection() |
| | | this.getEquipmentPrecision() |
| | | // this.getEquipmentPrecision() |
| | | this.visible = true; |
| | | that.$nextTick(() => { |
| | | // that.form.setFieldsValue(pick(that.model, 'num', 'teamId', 'remark')); |
| | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | // handleOk() { |
| | | // const that = this; |
| | | // this.form.validateFields((err, values) => { |
| | | // if (!err) { |
| | | // that.confirmLoading = true; |
| | | // let formData = Object.assign(this.model, values); |
| | | // requestPut(this.url.add, formData, { id: this.model.id }).then((res) => { |
| | | // if (res.success) { |
| | | // that.$message.success(res.message); |
| | | // that.$emit('ok'); |
| | | // } else { |
| | | // that.$message.warning(res.message); |
| | | // } |
| | | // }).finally(() => { |
| | | // that.confirmLoading = false; |
| | | // that.close(); |
| | | // }) |
| | | // } |
| | | // }) |
| | | // }, |
| | | |
| | | handleDelete(text, record, index) { |
| | | this.dataSource.splice(index, 1); |
| | | }, |
| | | |
| | | |
| | | getEquipmentPrecision() { |
| | | getAction(this.url.getEquipmentPrecision, { equipmentId: this.model.equipmentId }).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getPrecisionInspection() { |
| | | getAction(this.url.getPrecisionInspection, { maintenanceOrderId: this.model.id }).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result[0].precisionInspectionDetails |
| | | this.model = Object.assign({}, res.result[0]); |
| | | debugger |
| | | } |
| | | }) |
| | | }, |