From 3a8223b71d18205d40b894fd0b4c0fa1ca773e86 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期一, 13 十一月 2023 10:44:11 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/mdc-test' into mdc-test --- src/views/eam/modules/malfunctionRepair/MalfunctionRepaireForm.vue | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/views/eam/modules/malfunctionRepair/MalfunctionRepaireForm.vue b/src/views/eam/modules/malfunctionRepair/MalfunctionRepaireForm.vue index 9cf49d5..c36671c 100644 --- a/src/views/eam/modules/malfunctionRepair/MalfunctionRepaireForm.vue +++ b/src/views/eam/modules/malfunctionRepair/MalfunctionRepaireForm.vue @@ -176,7 +176,8 @@ add: "/eam/equipmentReportRepair/add", edit: "/eam/equipmentReportRepair/edit", queryById: "/eam/equipmentReportRepair/queryById", - equipmentList: '/eam/equipment/list' + equipmentList: '/eam/equipment/list', + getNum:'/eam/sysIdentity/getNumNew' }, isMaintenance: [ { label: '鏄�', value: true }, @@ -272,13 +273,22 @@ add() { this.modelDefault.status = 1 this.modelDefault.isStop = false - this.edit(this.modelDefault); + let that = this; + let param = { + type: 'EquipmentReportRepair', + length: 4 + }; + getAction(this.url.getNum,param).then(res=>{ + if(res.success){ + that.modelDefault.num = res.result; + that.edit(that.modelDefault); + } + }) }, async edit(record) { await this.fetchList() this.model = Object.assign({}, record); if (this.model.id) { - this.selectStatus = Number(record.status) record.isStop == 'true' ? this.isStop = true : this.isStop = false this.equipmentId = String(record.equipmentId) -- Gitblit v1.9.3