From 5cbba170e270e6f1c99a91e27dbb7951a27d596a Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期五, 24 十一月 2023 16:41:32 +0800 Subject: [PATCH] 故障报修验收 --- src/views/eam/modules/specialtyMaintenanceStandard/SpecialtyMaintenanceStandardModal.vue | 98 +++++++++++++++++++++++++++---------------------- 1 files changed, 54 insertions(+), 44 deletions(-) diff --git a/src/views/eam/modules/specialtyMaintenanceStandard/SpecialtyMaintenanceStandardModal.vue b/src/views/eam/modules/specialtyMaintenanceStandard/SpecialtyMaintenanceStandardModal.vue index 8419dfd..e4a5093 100644 --- a/src/views/eam/modules/specialtyMaintenanceStandard/SpecialtyMaintenanceStandardModal.vue +++ b/src/views/eam/modules/specialtyMaintenanceStandard/SpecialtyMaintenanceStandardModal.vue @@ -63,14 +63,14 @@ </a-col> <!-- <a-col :span="12"> <a-form-item - label="瀵硅薄閮ㄩ棬" + label="浣跨敤閮ㄩ棬" :labelCol="labelCol" :wrapperCol="wrapperCol" > <j-dict-select-tag allow-clear :disabled="disableSubmit" - :placeholder="disableSubmit?'':'璇峰璞¢儴闂�'" + :placeholder="disableSubmit?'':'璇蜂娇鐢ㄩ儴闂�'" :triggerChange="true" dictCode="sys_depart,depart_name,id,version = '7' and del_flag!='1'" v-decorator="['departId', validatorRules.departId]" @@ -82,13 +82,13 @@ <a-row :gutter="24"> <a-col :span="12"> <a-form-item - label="瀵硅薄閮ㄩ棬" + label="浣跨敤閮ㄩ棬" :labelCol="labelCol" :wrapperCol="wrapperCol" > <j-dict-select-tag allow-clear - :placeholder="disableSubmit?'':'璇烽�夋嫨瀵硅薄閮ㄩ棬'" + :placeholder="disableSubmit?'':'璇烽�夋嫨浣跨敤閮ㄩ棬'" :triggerChange="true" :disabled="true" dictCode="sys_depart,depart_name,id" @@ -351,24 +351,24 @@ dataIndex: 'standard', width: 100, }, - { - title: '鏂规硶', - align: 'center', - dataIndex: 'maintenanceMethodName', - width: 100, - }, - { - title: '宸ュ叿', - align: 'center', - dataIndex: 'maintenanceTool', - width: 100, - }, - { - title: '缁翠繚涓撲笟', - align: 'center', - dataIndex: 'maintenanceSpecialtyName', - width: 100, - }, + // { + // title: '鏂规硶', + // align: 'center', + // dataIndex: 'maintenanceMethodName', + // width: 100, + // }, + // { + // title: '宸ュ叿', + // align: 'center', + // dataIndex: 'maintenanceTool', + // width: 100, + // }, + // { + // title: '缁翠繚涓撲笟', + // align: 'center', + // dataIndex: 'maintenanceSpecialtyName', + // width: 100, + // }, { title: '瀹夊叏瑕佹眰', align: 'center', @@ -454,7 +454,7 @@ }, departId: { rules: [ - { required: true, message: '璇烽�夋嫨瀵硅薄閮ㄩ棬!' }, + { required: true, message: '璇烽�夋嫨浣跨敤閮ㄩ棬!' }, ] }, equipmentId: { @@ -482,7 +482,8 @@ getMaintenanceMode: "/eam/maintenanceStandardDetail/getMaintenanceMode", realDelete: "/eam/maintenanceStandardDetail/realDelete", revise: '/eam/maintenanceStandard/revise', - getReviseVersion: "/eam/maintenanceStandard/getReviseVersion" + getReviseVersion: "/eam/maintenanceStandard/getReviseVersion", + getNum: '/eam/sysIdentity/getNumNew' }, dataSource: [], @@ -551,6 +552,7 @@ add() { this.edit({ maintenanceStandardDetaillist: [] }) + this.getSeq() }, @@ -615,31 +617,31 @@ return } for (var i = 0; i < that.dataSource.length; i++) { - if (that.dataSource[i].maintenanceRequire == null || that.dataSource[i].maintenanceRequire == undefined || that.dataSource[i].maintenanceRequire == '') { - this.$message.error("绗�" + (i + 1) + "琛屽畨鍏ㄨ姹備负绌猴紝璇峰~鍐�") - that.confirmLoading = false - return false; - } - if (that.dataSource[i].photo == null || that.dataSource[i].photo == undefined || that.dataSource[i].photo == '') { - this.$message.error("绗�" + (i + 1) + "琛岀ず鎰忓浘涓虹┖锛岃涓婁紶") - that.confirmLoading = false - return false; - } - if (that.dataSource[i].location == null || that.dataSource[i].location == undefined || that.dataSource[i].location == '') { - this.$message.error("绗�" + (i + 1) + "琛岄儴浣嶄负绌猴紝璇峰~鍐�") - that.confirmLoading = false - return false; - } + // if (that.dataSource[i].maintenanceRequire == null || that.dataSource[i].maintenanceRequire == undefined || that.dataSource[i].maintenanceRequire == '') { + // this.$message.error("绗�" + (i + 1) + "琛屽畨鍏ㄨ姹備负绌猴紝璇峰~鍐�") + // that.confirmLoading = false + // return false; + // } + // if (that.dataSource[i].photo == null || that.dataSource[i].photo == undefined || that.dataSource[i].photo == '') { + // this.$message.error("绗�" + (i + 1) + "琛岀ず鎰忓浘涓虹┖锛岃涓婁紶") + // that.confirmLoading = false + // return false; + // } + // if (that.dataSource[i].location == null || that.dataSource[i].location == undefined || that.dataSource[i].location == '') { + // this.$message.error("绗�" + (i + 1) + "琛岄儴浣嶄负绌猴紝璇峰~鍐�") + // that.confirmLoading = false + // return false; + // } if (that.dataSource[i].maintenanceCycleId == null || that.dataSource[i].maintenanceCycleId == undefined) { this.$message.error("绗�" + (i + 1) + "琛屽懆鏈熶负绌猴紝璇烽�夋嫨") that.confirmLoading = false return false; } - if (that.dataSource[i].maintenanceMode == null || that.dataSource[i].maintenanceMode == undefined || that.dataSource[i].maintenanceMode == '') { - this.$message.error("绗�" + (i + 1) + "琛岀淮淇濇柟寮忎负绌猴紝璇烽�夋嫨") - that.confirmLoading = false - return false; - } + // if (that.dataSource[i].maintenanceMode == null || that.dataSource[i].maintenanceMode == undefined || that.dataSource[i].maintenanceMode == '') { + // this.$message.error("绗�" + (i + 1) + "琛岀淮淇濇柟寮忎负绌猴紝璇烽�夋嫨") + // that.confirmLoading = false + // return false; + // } @@ -691,6 +693,14 @@ }) }, + getSeq() { + getAction(this.url.getNum, { type: 'SpecialtyMaintenanceStandard', length: 4 }).then(res => { + if (res.success) { + this.form.setFieldsValue({ "num": res.result }) + } + }) + }, + getMaintenanceCycle() { getAction(this.url.getMaintenanceCycle).then((res) => { if (res.success) { -- Gitblit v1.9.3