| | |
| | | </div> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | <!-- <a-tab-pane |
| | | key="2" |
| | | forceRender |
| | | > |
| | |
| | | > |
| | | <service-object-list ref="EquipmentFileList"></service-object-list> |
| | | </div> |
| | | </a-tab-pane> |
| | | </a-tab-pane> --> |
| | | </a-tabs> |
| | | <warehouse-modal |
| | | ref="modalForm" |
| | |
| | | :value="text" |
| | | v-if="col.dataIndex == 'inspectionProjectResult' && record.analysisMethod == '1'" |
| | | :min="0" |
| | | :max="200" |
| | | :max="20000" |
| | | @change="(e)=>handleChange(e, record.key, col, index,record)" |
| | | style="width: 100%" |
| | | :disabled="record.disabled" |
| | |
| | | hidden |
| | | :gutter="24" |
| | | > |
| | | |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="有效时长" |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <!-- <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请选择对象部门'" |
| | | :triggerChange="true" |
| | | dictCode="mom_eam_equipment,use_id,id,status!='0' and del_flag!='1' and use_id!='null'" |
| | | v-decorator="['useId', validatorRules.useId]" |
| | | /> --> |
| | | <a-input-search |
| | | <!-- <a-input-search |
| | | :disabled="disableSubmit" |
| | | placeholder="请选择对象部门" |
| | | enter-button |
| | | @search="onDepartList()" |
| | | :read-only="true" |
| | | v-decorator="['useDepartName', validatorRules.useDepartName]" |
| | | /> --> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择对象部门" |
| | | tree-default-expand-all |
| | | v-decorator="['useId', validatorRules.useId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="对象部门Id" |
| | | :labelCol="labelCol" |
| | |
| | | v-decorator="['useId', validatorRules.useId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | |
| | | isRevise: false, |
| | | model: {}, |
| | | inspectionCycles: {}, |
| | | treeData: [], |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | |
| | | getInspectionCycle: "/eam/inspectionStandardDetail/getInspectionCycle", |
| | | revise: '/eam/inspectionStandard/revise', |
| | | getReviseVersion: "/eam/inspectionStandard/getReviseVersion", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | |
| | | dataSource: [], |
| | |
| | | edit(record) { |
| | | let that = this; |
| | | that.getInspectionCycle() |
| | | that.initOptions(); |
| | | that.dataSource = []; |
| | | that.form.resetFields(); |
| | | that.model = Object.assign({}, record); |
| | |
| | | } |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | onEquipmentList() { |
| | | let data = this.form.getFieldsValue(['useId']); |
| | | this.$refs.EquipmentList.list(data.useId); |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input-search |
| | | <!-- <a-input-search |
| | | :disabled="disableSubmit" |
| | | placeholder="请选择对象部门" |
| | | enter-button |
| | | @search="onDepartList()" |
| | | :read-only="true" |
| | | v-decorator="['useDepartName', validatorRules.useDepartName]" |
| | | /> --> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择部门" |
| | | tree-default-expand-all |
| | | v-decorator="['departId', validatorRules.useId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请输入责任班组'" |
| | | v-decorator="['teamName', validatorRules.teamName ]" |
| | | v-decorator="['teamName', {} ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="对象部门Id" |
| | | :labelCol="labelCol" |
| | |
| | | v-decorator="['departId', validatorRules.useId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="班组Id" |
| | |
| | | model: {}, |
| | | upload: {}, |
| | | maintenanceCycles: {}, |
| | | treeData: [], |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | |
| | | realDelete: "/eam/maintenanceStandardDetail/realDelete", |
| | | revise: '/eam/maintenanceStandard/revise', |
| | | getReviseVersion: "/eam/maintenanceStandard/getReviseVersion", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | |
| | | dataSource: [], |
| | |
| | | |
| | | edit(record) { |
| | | let that = this; |
| | | this.initOptions(); |
| | | this.getMaintenanceCycle() |
| | | this.dataSource = []; |
| | | this.form.resetFields(); |
| | |
| | | } |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | onEquipmentList() { |
| | | let data = this.form.getFieldsValue(['departId']); |
| | | if (data.departId == null || data.departId == "") { |
| | |
| | | placeholder="请输入所有组织" |
| | | v-decorator="['affiliationId', validatorRules.affiliationId]" |
| | | /> --> |
| | | <a-select |
| | | <!-- <a-select |
| | | :placeholder="disableSubmit?'':'请选择所有组织'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit" |
| | | v-decorator="['affiliationId', validatorRules.affiliationId]" |
| | | /> |
| | | /> --> |
| | | <!-- @change="(e)=>handle1Change(e)" --> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择管理组织" |
| | | tree-default-expand-all |
| | | v-decorator="['affiliationId', validatorRules.affiliationId]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24 / 3"> |
| | |
| | | placeholder="请输入管理组织" |
| | | v-decorator="['manageId', validatorRules.manageId]" |
| | | /> --> |
| | | <a-select |
| | | <!-- <a-select |
| | | :placeholder="disableSubmit?'':'请选择管理组织'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit" |
| | | v-decorator="['manageId', validatorRules.manageId]" |
| | | /> |
| | | /> --> |
| | | <!-- @change="(e)=>handle3Change(e)" --> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择管理组织" |
| | | tree-default-expand-all |
| | | v-decorator="['manageId', validatorRules.manageId]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24 / 3"> |
| | |
| | | :wrapperCol="wrapperCol" |
| | | label="使用部门" |
| | | > |
| | | <!-- <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请选择使用组织'" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,version = '7' and del_flag!='1'" |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择部门" |
| | | tree-default-expand-all |
| | | v-decorator="['useId', validatorRules.useId]" |
| | | /> --> |
| | | <a-select |
| | | /> |
| | | <!-- <a-select |
| | | :placeholder="disableSubmit?'':'请选择使用部门'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit" |
| | | v-decorator="['useId', validatorRules.useId]" |
| | | /> |
| | | <!-- @change="(e)=>handle2Change(e)" --> |
| | | /> --> |
| | | </a-form-item> |
| | | |
| | | </a-col> |
| | | |
| | | <a-col :span="24 / 3"> |
| | |
| | | :placeholder="disableSubmit?'':'请选择责任班组'" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_team,name,id,status='1' and del_flag='0'" |
| | | v-decorator="['teamId', validatorRules.teamId]" |
| | | v-decorator="['teamId', {}]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | 关闭 |
| | | </a-button> |
| | | <a-button |
| | | hidden |
| | | v-if="!this.model.id" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | :loading="confirmLoading" |
| | |
| | | precisionParametersTemplateId: '', |
| | | equipmentPhoto: '', |
| | | departs: [], |
| | | treeData: [], |
| | | model: {}, |
| | | headers: {}, |
| | | labelCol: { |
| | |
| | | add: "/eam/equipment/add", |
| | | edit: "/eam/equipment/edit", |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: "", |
| | |
| | | }, |
| | | created() { |
| | | this.getSysDeparts() |
| | | |
| | | }, |
| | | methods: { |
| | | moment, |
| | |
| | | this.visible = true; |
| | | this.disableSubmit = false; |
| | | this.fileList = []; |
| | | this.initOptions(); |
| | | this.precisionParametersTemplateId = record.precisionParametersTemplateId |
| | | this.processParametersTemplateId = record.processParametersTemplateId |
| | | this.$nextTick(() => { |
| | |
| | | } |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | onSearchProcessParametersTemplate() { |
| | | this.$refs.ProcessParametersTemplateList.list(); |
| | |
| | | :toolbar="true" |
| | | :toolbarConfig="toolbarConfig" |
| | | :linkage-config="linkageConfig" |
| | | :addDefaultRowNum="0" |
| | | > |
| | | <template slot="toolbarPrefix"> |
| | | <a-button |
| | |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <a-col |
| | | v-if="analysisMethod == '2'" |
| | | v-if="testValueType == '2'" |
| | | :span="12" |
| | | > |
| | | <a-form-item |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | v-if="analysisMethod == '1'" |
| | | v-if="testValueType == '1'" |
| | | :span="12" |
| | | > |
| | | <a-form-item |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row |
| | | v-if="analysisMethod == '1'" |
| | | v-if="testValueType == '1'" |
| | | :gutter="24" |
| | | > |
| | | <a-col :span="12"> |
| | |
| | | codeDisable: true, |
| | | disableSubmit: false, |
| | | inspectionProjectCategoryId: '', |
| | | analysisMethod: null, |
| | | testValueType: null, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | |
| | | { validator: this.validateName }, |
| | | ] |
| | | }, |
| | | analysisMethod: { |
| | | rules: [ |
| | | { required: true, message: '请选择分析方法!' }, |
| | | ] |
| | | }, |
| | | // analysisMethod: { |
| | | // rules: [ |
| | | // { required: true, message: '请选择分析方法!' }, |
| | | // ] |
| | | // }, |
| | | surfaceValue: { |
| | | rules: [ |
| | | { required: true, message: '请输入名义值!' }, |
| | |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | this.disableSubmit = false; |
| | | this.analysisMethod = record.analysisMethod |
| | | this.testValueType = record.testValueType |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'inspectionProjectCategoryNumName', |
| | | 'num', 'name', 'unitId', 'testValueType', 'analysisMethod', 'inspectionMethod', 'inspectionTool', 'remark')) |
| | | 'num', 'name', 'unitId', 'testValueType', 'inspectionMethod', 'inspectionTool', 'remark')) |
| | | }); |
| | | if (record.analysisMethod == '1') { |
| | | if (record.testValueType == '1') { |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'surfaceValue', 'upValue', 'downValue')) |
| | | }); |
| | |
| | | }, |
| | | |
| | | handleChange(val) { |
| | | this.analysisMethod = val |
| | | this.testValueType = val |
| | | }, |
| | | |
| | | validateDownValue(rule, value, callback) { |
| | |
| | | align: 'center', |
| | | dataIndex: 'unitId_dictText', |
| | | }, |
| | | { |
| | | title: '分析方法', |
| | | align: 'center', |
| | | dataIndex: 'analysisMethod_dictText', |
| | | }, |
| | | // { |
| | | // title: '分析方法', |
| | | // align: 'center', |
| | | // dataIndex: 'analysisMethod_dictText', |
| | | // }, |
| | | { |
| | | title: '检验值类型', |
| | | align: "center", |
| | |
| | | <a-input |
| | | :disabled=true |
| | | placeholder="请输入图片名称" |
| | | v-decorator="['name', validatorRules.name ]" |
| | | v-decorator="['name', {} ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-select |
| | | <!-- <a-select |
| | | :placeholder="disableSubmit?'':'请选择对象部门'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | @change="(e)=>handle2Change(e)" |
| | | /> --> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择对象部门" |
| | | tree-default-expand-all |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | @change="(e)=>handle2Change(e)" |
| | | /> |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请选择责任班组'" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | |
| | | </a-row> |
| | | </a-form> |
| | | </a-spin> |
| | |
| | | codeDisable: true, |
| | | model: {}, |
| | | maintenanceCycles: [], |
| | | treeData: [], |
| | | departs: [], |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | |
| | | { required: true, message: '请选择对象部门!' }, |
| | | ] |
| | | }, |
| | | teamId: { |
| | | teamId: { |
| | | rules: [ |
| | | { required: true, message: '请选择责任班组!' }, |
| | | ] |
| | |
| | | listByBusIdAndBusType: "/system/sysUploadRela/listByBusIdAndBusType", |
| | | getMaintenanceCycles: "/eam/maintenanceStandardDetail/getMaintenanceCycle", |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | dataSource: [], |
| | | //用于展示文件 |
| | |
| | | maintenanceStandardId: data[i].id, |
| | | num: data[i].num, |
| | | equipmentId: data[i].equipmentId, |
| | | version:data[i].version, |
| | | versionStatus:data[i].versionStatus, |
| | | versionStatusName:data[i].versionStatusName, |
| | | version: data[i].version, |
| | | versionStatus: data[i].versionStatus, |
| | | versionStatusName: data[i].versionStatusName, |
| | | equipmentNum: data[i].equipmentNum, |
| | | equipmentName: data[i].equipmentName, |
| | | equipmentModel: data[i].equipmentModel, |
| | |
| | | |
| | | created() { |
| | | this.getMaintenanceCycles() |
| | | this.getSysDeparts() |
| | | // this.getSysDeparts() |
| | | const token = Vue.ls.get(ACCESS_TOKEN); |
| | | const tenantid = Vue.ls.get(TENANT_ID) |
| | | this.headers = { |
| | |
| | | let that = this; |
| | | that.visible = true; |
| | | that.isFileChange = false; |
| | | that.initOptions(); |
| | | that.model = Object.assign({}, record); |
| | | that.$nextTick(() => { |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'departId','teamId','teamName' ,'assignMode','maintenanceCycleId', 'dutyDepartId', 'maintenanceTypeId', 'maintenanceMode', 'remark')) |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'departId', 'teamId', 'teamName', 'assignMode', 'maintenanceCycleId', 'dutyDepartId', 'maintenanceTypeId', 'maintenanceMode', 'remark')) |
| | | }); |
| | | that.fileList = []; |
| | | that.form.resetFields(); |
| | | |
| | | that.uploadId = '' |
| | | if (record.specialtyMaintenancePlanDetailList != undefined) { |
| | | const temp = [...record.specialtyMaintenancePlanDetailList]; |
| | |
| | | this.visible = false; |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleOk() { |
| | | const that = this; |
| | | // 触发表单验证 |