From 9d3b355061393f9dd031c1d8aaf124564d9c0d19 Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期二, 24 十月 2023 17:06:17 +0800 Subject: [PATCH] 编码生成 --- src/views/eam/modules/specialtyMaintenanceStandard/SpecialtyMaintenanceStandardModal.vue | 92 +++++++++++++++++++++++++-------------------- 1 files changed, 51 insertions(+), 41 deletions(-) diff --git a/src/views/eam/modules/specialtyMaintenanceStandard/SpecialtyMaintenanceStandardModal.vue b/src/views/eam/modules/specialtyMaintenanceStandard/SpecialtyMaintenanceStandardModal.vue index 8419dfd..9ead2db 100644 --- a/src/views/eam/modules/specialtyMaintenanceStandard/SpecialtyMaintenanceStandardModal.vue +++ b/src/views/eam/modules/specialtyMaintenanceStandard/SpecialtyMaintenanceStandardModal.vue @@ -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', @@ -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